From dba2bdd9e75c2a5ba12bfadfd683db77b6d2fbf2 Mon Sep 17 00:00:00 2001 From: weifashi <605403358@qq.com> Date: Mon, 5 Jun 2023 14:21:49 +0800 Subject: [PATCH 01/10] =?UTF-8?q?fix:=20=E6=9B=B4=E6=94=B9=E9=BB=98?= =?UTF-8?q?=E8=AE=A4=E5=AE=A1=E6=A0=B8=E7=9A=84=E5=9B=BE=E7=89=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- resources/assets/js/pages/manage/approve/details.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/assets/js/pages/manage/approve/details.vue b/resources/assets/js/pages/manage/approve/details.vue index 44010c938..af760a534 100644 --- a/resources/assets/js/pages/manage/approve/details.vue +++ b/resources/assets/js/pages/manage/approve/details.vue @@ -99,7 +99,7 @@

{{$L('抄送')}}

- +

{{$L('系统')}}

{{$L('自动抄送')}} @@ -116,7 +116,7 @@

{{$L('结束')}}

- +

{{$L('系统')}}

{{ datas.is_finished ? $L('已结束') : $L('未结束') }}

From 4739539722f8ee6b8538dc967e3ac6cdbf75b2c2 Mon Sep 17 00:00:00 2001 From: weifashi <605403358@qq.com> Date: Mon, 5 Jun 2023 15:11:40 +0800 Subject: [PATCH 02/10] =?UTF-8?q?fix:=20=20dootask=E5=AF=B9=E6=8E=A5?= =?UTF-8?q?=E7=B3=BB=E7=BB=9F=E5=88=86=E4=BA=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Http/Controllers/Api/SystemController.php | 89 +++++++++++++++---- resources/assets/js/store/actions.js | 16 ++++ 2 files changed, 90 insertions(+), 15 deletions(-) diff --git a/app/Http/Controllers/Api/SystemController.php b/app/Http/Controllers/Api/SystemController.php index 5be00603c..35d81676d 100755 --- a/app/Http/Controllers/Api/SystemController.php +++ b/app/Http/Controllers/Api/SystemController.php @@ -2,23 +2,26 @@ namespace App\Http\Controllers\Api; -use App\Models\Setting; -use App\Models\User; -use App\Models\UserCheckinRecord; -use App\Module\Base; -use App\Module\BillExport; -use App\Module\BillMultipleExport; -use App\Module\Doo; -use App\Module\Extranet; -use Carbon\Carbon; -use Guanguans\Notify\Factory; -use Guanguans\Notify\Messages\EmailMessage; -use LdapRecord\Container; -use LdapRecord\LdapRecordException; -use Madzipper; use Request; -use Response; use Session; +use Response; +use Madzipper; +use Carbon\Carbon; +use App\Module\Doo; +use App\Models\File; +use App\Models\User; +use App\Module\Base; +use App\Models\Setting; +use App\Module\Extranet; +use LdapRecord\Container; +use App\Module\BillExport; +use Guanguans\Notify\Factory; +use App\Models\WebSocketDialog; +use App\Models\UserCheckinRecord; +use App\Module\BillMultipleExport; +use Illuminate\Support\Facades\DB; +use LdapRecord\LdapRecordException; +use Guanguans\Notify\Messages\EmailMessage; /** * @apiDefine system @@ -1200,4 +1203,60 @@ class SystemController extends AbstractController } return $array; } + + /** + * @api {get} api/system/getChatAndDirList 25. 获取聊天与用户列表 + * + * @apiVersion 1.0.0 + * @apiGroup system + * @apiName getChatAndDirList + * + * @apiSuccess {Number} ret 返回状态码(1正确、0错误) + * @apiSuccess {String} msg 返回信息(错误描述) + * @apiSuccess {Object} data 返回数据 + */ + public function getChatAndDirList() + { + $user = User::auth(); + $userids = $user->isTemp() ? [$user->userid] : [0, $user->userid]; + //目录列表 + $dir = Base::list2Tree( + File::select('files.id','files.pid','files.name') + ->leftJoin('file_users', 'files.id', '=', 'file_users.file_id') + ->where('files.type','folder') + ->where(function ($q) use ($userids) { + $q->whereIn('files.userid',$userids); + $q->orWhere(function ($qq) use ($userids) { + $qq->where('file_users.permission',1); + $qq->whereIn('file_users.userid',$userids); + }); + }) + ->get() + ->toArray() + ); + //聊天列表 + $chatList = WebSocketDialog::select(['web_socket_dialogs.*', 'u.top_at', 'u.silence', 'u.updated_at as user_at']) + ->join('web_socket_dialog_users as u', 'web_socket_dialogs.id', '=', 'u.dialog_id') + ->where('u.userid', $user->userid) + ->orderByDesc('u.top_at') + ->orderByDesc('web_socket_dialogs.last_at') + ->get() + ->transform(function (WebSocketDialog $item) use ($user) { + return $item->formatData($user->userid); + }) + ->toArray(); + // 用户列表 + $notUserIds = array(); + foreach($chatList as $chat){ + if($chat['type'] == 'user'){ + $notUserIds[] = $chat['dialog_user']['userid']; + } + } + $userList = User::select('userid','email','nickname','userimg') + ->where('bot',0) + ->where('userid','not in',$notUserIds) + ->get(); + // 返回 + return Base::retSuccess('success', ["dir"=>$dir,"chatList"=>$chatList,"userList"=>$userList]); + } } diff --git a/resources/assets/js/store/actions.js b/resources/assets/js/store/actions.js index 56cb26cfc..7a9d25339 100644 --- a/resources/assets/js/store/actions.js +++ b/resources/assets/js/store/actions.js @@ -548,6 +548,22 @@ export default { state.userToken = userInfo.token; state.userIsAdmin = $A.inArray('admin', userInfo.identity); await $A.IDBSet("userInfo", state.userInfo); + + // + $A.eeuiAppSendMessage({ + action: 'userChatList', + token: state.userToken, + url: $A.apiUrl('../api/system/getChatAndDirList') + `?token=${state.userToken}` + }); + + // + $A.eeuiAppSendMessage({ + action:"userUploadUrl", + token: state.userToken, + dirUrl: $A.apiUrl('../api/file/content/upload') + `?token=${state.userToken}`, + chatUrl: $A.apiUrl('../api/dialog/msg/sendfile') + `?token=${state.userToken}`, + }); + // dispatch("getBasicData", null); if (state.userId > 0) { From 20496b2edb10ad50e42d619506dd378ac78808f2 Mon Sep 17 00:00:00 2001 From: weifashi <605403358@qq.com> Date: Mon, 5 Jun 2023 15:21:58 +0800 Subject: [PATCH 03/10] build --- .../{404.900d8350.js => 404.211efd59.js} | 2 +- ...itor.ad64c791.js => AceEditor.5593e011.js} | 2 +- ....cf6a4b77.js => CheckinExport.874caf6b.js} | 2 +- ...t.52e38d8e.js => DialogSelect.fb5f42c6.js} | 2 +- ....7a212b74.js => DialogWrapper.1892cac4.js} | 6 +- ...{Drawio.a6570d68.js => Drawio.b02152e9.js} | 2 +- ...nt.60e99ccb.js => FileContent.789e9b3b.js} | 2 +- ...ew.bac893ec.js => FilePreview.6f0e339c.js} | 2 +- ...{IFrame.509253e7.js => IFrame.f24c40d2.js} | 2 +- ...load.4fe6c2dc.js => ImgUpload.732c31bf.js} | 2 +- ...{Minder.0d9de7de.js => Minder.b530b5c9.js} | 2 +- ...ice.8b86e1e3.js => OnlyOffice.bb691c8f.js} | 2 +- ...Log.b1086bd7.js => ProjectLog.77802854.js} | 2 +- ...l.52f0651b.js => ReportDetail.77b12923.js} | 2 +- ...dit.c8ae84ca.js => ReportEdit.32133ea6.js} | 2 +- ...Editor.aca79ca9.js => TEditor.a74a72fe.js} | 2 +- ...ail.bd370bd4.js => TaskDetail.d8b2d0c8.js} | 2 +- ...kMenu.1bac226b.js => TaskMenu.718b8e6d.js} | 2 +- ...eLog.0c7fc61f.js => UpdateLog.1ec0a901.js} | 2 +- ...nput.1a8a4094.js => UserInput.d31ec6c9.js} | 2 +- public/js/build/app.7a29bd84.js | 376 ------------------ public/js/build/app.aaf5ae6f.js | 373 +++++++++++++++++ .../{app.b16d0b3f.css => app.cd204fe3.css} | 2 +- public/js/build/approve.14748925.css | 1 + public/js/build/approve.431141d6.js | 1 - public/js/build/approve.7d60a3f3.css | 1 - public/js/build/approve.82eef108.js | 1 + ...62e025.js => bn.interface.min.52614609.js} | 2 +- ...{bn.min.7187d200.js => bn.min.9e3f839b.js} | 2 +- ...endar.c6b44ae4.js => calendar.b545db54.js} | 2 +- ...heckin.c904092f.js => checkin.f97063e2.js} | 2 +- ...oard.f9063ee8.js => dashboard.d861288b.js} | 2 +- ...{delete.052be0b6.js => delete.d31bdeeb.js} | 2 +- public/js/build/details.ace814ba.js | 1 + public/js/build/details.b7065305.js | 1 - ...n.0af4040c.js => elliptic.min.f6b7fd2a.js} | 2 +- .../{email.b481a12c.js => email.77339261.js} | 2 +- .../{file.f6ad075b.js => file.943fba26.js} | 4 +- .../{file.1d1646a9.js => file.9f4324ca.js} | 2 +- ...ileMsg.4b8a32ed.js => fileMsg.c26111aa.js} | 2 +- ...eTask.39426212.js => fileTask.0c3bb159.js} | 2 +- .../{index.66539be6.js => index.1c7753eb.js} | 2 +- .../{index.6f320ddc.js => index.437d93f5.js} | 2 +- public/js/build/index.6ad15a4c.css | 1 - public/js/build/index.6ea2c0c0.js | 1 - public/js/build/index.86886e0f.js | 1 + public/js/build/index.9d0cdd21.css | 1 + .../{index.7ae540bf.js => index.df4669b0.js} | 2 +- .../{index.d31a8c95.js => index.f4581a7b.js} | 2 +- ...board.81c5584f.js => keyboard.b82cec5e.js} | 2 +- ...guage.ae63bdf1.js => language.31e602ce.js} | 2 +- ...icense.7a3714da.js => license.a9e3e76a.js} | 2 +- .../{login.0e97fdb8.js => login.e3d1775d.js} | 2 +- public/js/build/manage.7dfa86ad.js | 1 + public/js/build/manage.8bd531a3.js | 1 - ...nger.85eb7e36.js => messenger.69923783.js} | 2 +- ...sword.1cdce0c4.js => password.ea967009.js} | 2 +- ...sonal.cb0cdbcc.js => personal.40308003.js} | 2 +- ...c82b47.js => ponyfill.es6.min.bff3eb18.js} | 2 +- public/js/build/preview.5c68c877.js | 1 - public/js/build/preview.abc33550.js | 1 + .../{pro.87f212ed.js => pro.c7e9ad56.js} | 2 +- ...roject.2c61aba1.js => project.d9d21d79.js} | 2 +- ....d9bdc494.js => projectInvite.749212b4.js} | 2 +- ...l.9e132e37.js => reportDetail.3ac27008.js} | 2 +- ...dit.c3e9891d.js => reportEdit.e5eab9c7.js} | 2 +- .../{swipe.ca667dac.js => swipe.1f75ca93.js} | 2 +- ...{system.6eeeff14.js => system.512db55a.js} | 2 +- .../{task.12f6df01.js => task.b47e54ec.js} | 2 +- .../{theme.6f4a5a9c.js => theme.4a4133ee.js} | 2 +- .../{token.b941f083.js => token.e801b197.js} | 2 +- ...ail.cc0e647a.js => validEmail.b4f3b6a9.js} | 2 +- .../{view.39454036.js => view.1339f68f.js} | 2 +- ...js => web-streams-adapter.min.e04c653a.js} | 2 +- public/manifest.json | 322 +++++++-------- 75 files changed, 602 insertions(+), 605 deletions(-) rename public/js/build/{404.900d8350.js => 404.211efd59.js} (87%) rename public/js/build/{AceEditor.ad64c791.js => AceEditor.5593e011.js} (98%) rename public/js/build/{CheckinExport.cf6a4b77.js => CheckinExport.874caf6b.js} (99%) rename public/js/build/{DialogSelect.52e38d8e.js => DialogSelect.fb5f42c6.js} (96%) rename public/js/build/{DialogWrapper.7a212b74.js => DialogWrapper.1892cac4.js} (98%) rename public/js/build/{Drawio.a6570d68.js => Drawio.b02152e9.js} (93%) rename public/js/build/{FileContent.60e99ccb.js => FileContent.789e9b3b.js} (92%) rename public/js/build/{FilePreview.bac893ec.js => FilePreview.6f0e339c.js} (76%) rename public/js/build/{IFrame.509253e7.js => IFrame.f24c40d2.js} (94%) rename public/js/build/{ImgUpload.4fe6c2dc.js => ImgUpload.732c31bf.js} (99%) rename public/js/build/{Minder.0d9de7de.js => Minder.b530b5c9.js} (97%) rename public/js/build/{OnlyOffice.8b86e1e3.js => OnlyOffice.bb691c8f.js} (96%) rename public/js/build/{ProjectLog.b1086bd7.js => ProjectLog.77802854.js} (98%) rename public/js/build/{ReportDetail.52f0651b.js => ReportDetail.77b12923.js} (95%) rename public/js/build/{ReportEdit.c8ae84ca.js => ReportEdit.32133ea6.js} (94%) rename public/js/build/{TEditor.aca79ca9.js => TEditor.a74a72fe.js} (99%) rename public/js/build/{TaskDetail.bd370bd4.js => TaskDetail.d8b2d0c8.js} (99%) rename public/js/build/{TaskMenu.1bac226b.js => TaskMenu.718b8e6d.js} (96%) rename public/js/build/{UpdateLog.0c7fc61f.js => UpdateLog.1ec0a901.js} (94%) rename public/js/build/{UserInput.1a8a4094.js => UserInput.d31ec6c9.js} (98%) delete mode 100644 public/js/build/app.7a29bd84.js create mode 100644 public/js/build/app.aaf5ae6f.js rename public/js/build/{app.b16d0b3f.css => app.cd204fe3.css} (56%) create mode 100644 public/js/build/approve.14748925.css delete mode 100644 public/js/build/approve.431141d6.js delete mode 100644 public/js/build/approve.7d60a3f3.css create mode 100644 public/js/build/approve.82eef108.js rename public/js/build/{bn.interface.min.a062e025.js => bn.interface.min.52614609.js} (93%) rename public/js/build/{bn.min.7187d200.js => bn.min.9e3f839b.js} (99%) rename public/js/build/{calendar.c6b44ae4.js => calendar.b545db54.js} (99%) rename public/js/build/{checkin.c904092f.js => checkin.f97063e2.js} (99%) rename public/js/build/{dashboard.f9063ee8.js => dashboard.d861288b.js} (97%) rename public/js/build/{delete.052be0b6.js => delete.d31bdeeb.js} (99%) create mode 100644 public/js/build/details.ace814ba.js delete mode 100644 public/js/build/details.b7065305.js rename public/js/build/{elliptic.min.0af4040c.js => elliptic.min.f6b7fd2a.js} (99%) rename public/js/build/{email.b481a12c.js => email.77339261.js} (98%) rename public/js/build/{file.f6ad075b.js => file.943fba26.js} (99%) rename public/js/build/{file.1d1646a9.js => file.9f4324ca.js} (88%) rename public/js/build/{fileMsg.4b8a32ed.js => fileMsg.c26111aa.js} (70%) rename public/js/build/{fileTask.39426212.js => fileTask.0c3bb159.js} (69%) rename public/js/build/{index.66539be6.js => index.1c7753eb.js} (98%) rename public/js/build/{index.6f320ddc.js => index.437d93f5.js} (99%) delete mode 100644 public/js/build/index.6ad15a4c.css delete mode 100644 public/js/build/index.6ea2c0c0.js create mode 100644 public/js/build/index.86886e0f.js create mode 100644 public/js/build/index.9d0cdd21.css rename public/js/build/{index.7ae540bf.js => index.df4669b0.js} (98%) rename public/js/build/{index.d31a8c95.js => index.f4581a7b.js} (99%) rename public/js/build/{keyboard.81c5584f.js => keyboard.b82cec5e.js} (97%) rename public/js/build/{language.ae63bdf1.js => language.31e602ce.js} (95%) rename public/js/build/{license.7a3714da.js => license.a9e3e76a.js} (98%) rename public/js/build/{login.0e97fdb8.js => login.e3d1775d.js} (99%) create mode 100644 public/js/build/manage.7dfa86ad.js delete mode 100644 public/js/build/manage.8bd531a3.js rename public/js/build/{messenger.85eb7e36.js => messenger.69923783.js} (98%) rename public/js/build/{password.1cdce0c4.js => password.ea967009.js} (97%) rename public/js/build/{personal.cb0cdbcc.js => personal.40308003.js} (96%) rename public/js/build/{ponyfill.es6.min.fbc82b47.js => ponyfill.es6.min.bff3eb18.js} (99%) delete mode 100644 public/js/build/preview.5c68c877.js create mode 100644 public/js/build/preview.abc33550.js rename public/js/build/{pro.87f212ed.js => pro.c7e9ad56.js} (99%) rename public/js/build/{project.2c61aba1.js => project.d9d21d79.js} (99%) rename public/js/build/{projectInvite.d9bdc494.js => projectInvite.749212b4.js} (96%) rename public/js/build/{reportDetail.9e132e37.js => reportDetail.3ac27008.js} (85%) rename public/js/build/{reportEdit.c3e9891d.js => reportEdit.e5eab9c7.js} (86%) rename public/js/build/{swipe.ca667dac.js => swipe.1f75ca93.js} (99%) rename public/js/build/{system.6eeeff14.js => system.512db55a.js} (99%) rename public/js/build/{task.12f6df01.js => task.b47e54ec.js} (83%) rename public/js/build/{theme.6f4a5a9c.js => theme.4a4133ee.js} (96%) rename public/js/build/{token.b941f083.js => token.e801b197.js} (91%) rename public/js/build/{validEmail.cc0e647a.js => validEmail.b4f3b6a9.js} (95%) rename public/js/build/{view.39454036.js => view.1339f68f.js} (98%) rename public/js/build/{web-streams-adapter.min.351bbc41.js => web-streams-adapter.min.e04c653a.js} (99%) diff --git a/public/js/build/404.900d8350.js b/public/js/build/404.211efd59.js similarity index 87% rename from public/js/build/404.900d8350.js rename to public/js/build/404.211efd59.js index 3e7619bdd..9472a0c2b 100644 --- a/public/js/build/404.900d8350.js +++ b/public/js/build/404.211efd59.js @@ -1 +1 @@ -import{n}from"./app.7a29bd84.js";var r=function(){var e=this,t=e.$createElement;return e._self._c,e._m(0)},a=[function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"page-404"},[s("div",{staticClass:"flex-center position-ref full-height"},[s("div",{staticClass:"code"},[e._v("404")]),s("div",{staticClass:"message"},[e._v("Not Found")])])])}];const i={},_={};var o=n(i,r,a,!1,c,"7d7154a8",null,null);function c(e){for(let t in _)this[t]=_[t]}var v=function(){return o.exports}();export{v as default}; +import{n}from"./app.aaf5ae6f.js";var r=function(){var e=this,t=e.$createElement;return e._self._c,e._m(0)},a=[function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"page-404"},[s("div",{staticClass:"flex-center position-ref full-height"},[s("div",{staticClass:"code"},[e._v("404")]),s("div",{staticClass:"message"},[e._v("Not Found")])])])}];const i={},_={};var o=n(i,r,a,!1,c,"7d7154a8",null,null);function c(e){for(let t in _)this[t]=_[t]}var v=function(){return o.exports}();export{v as default}; diff --git a/public/js/build/AceEditor.ad64c791.js b/public/js/build/AceEditor.5593e011.js similarity index 98% rename from public/js/build/AceEditor.ad64c791.js rename to public/js/build/AceEditor.5593e011.js index bd5ed84b5..a5a003343 100644 --- a/public/js/build/AceEditor.ad64c791.js +++ b/public/js/build/AceEditor.5593e011.js @@ -1 +1 @@ -import{m as h,n as l}from"./app.7a29bd84.js";const d={name:"AceEditor",props:{value:{default:""},options:{type:Object,default:()=>({})},theme:{type:String,default:"auto"},ext:{type:String,default:"txt"},height:{type:Number||null,default:null},width:{type:Number||null,default:null},wrap:{type:Boolean,default:!1},readOnly:{type:Boolean,default:!1}},render(e){return e("div",{class:"no-dark-content"})},data:()=>({code:"",editor:null,cursorPosition:{row:0,column:0},supportedModes:{Apache_Conf:["^htaccess|^htgroups|^htpasswd|^conf|htaccess|htgroups|htpasswd"],BatchFile:["bat|cmd"],C_Cpp:["cpp|c|cc|cxx|h|hh|hpp|ino"],CSharp:["cs"],CSS:["css"],Dockerfile:["^Dockerfile"],golang:["go|golang"],HTML:["html|htm|xhtml|vue|we|wpy"],Java:["java"],JavaScript:["js|jsm|jsx"],JSON:["json"],JSP:["jsp"],LESS:["less"],Lua:["lua"],Makefile:["^Makefile|^GNUmakefile|^makefile|^OCamlMakefile|make"],Markdown:["md|markdown"],MySQL:["mysql"],Nginx:["nginx|conf"],INI:["ini|conf|cfg|prefs"],ObjectiveC:["m|mm"],Perl:["pl|pm"],Perl6:["p6|pl6|pm6"],pgSQL:["pgsql"],PHP_Laravel_blade:["blade.php"],PHP:["php|inc|phtml|shtml|php3|php4|php5|phps|phpt|aw|ctp|module"],Powershell:["ps1"],Python:["py"],R:["r"],Ruby:["rb|ru|gemspec|rake|^Guardfile|^Rakefile|^Gemfile"],Rust:["rs"],SASS:["sass"],SCSS:["scss"],SH:["sh|bash|^.bashrc"],SQL:["sql"],SQLServer:["sqlserver"],Swift:["swift"],Text:["txt"],Typescript:["ts|typescript|str"],VBScript:["vbs|vb"],Verilog:["v|vh|sv|svh"],XML:["xml|rdf|rss|wsdl|xslt|atom|mathml|mml|xul|xbl|xaml|plist"],YAML:["yaml|yml"],Compress:["tar|zip|7z|rar|gz|arj|z"],images:["icon|jpg|jpeg|webp|png|bmp|gif|tif|emf"]}}),mounted(){$A.loadScriptS(["js/ace/ace.js","js/ace/mode-json.js"]).then(e=>{this.setSize(this.$el,{height:this.height,width:this.width}),this.editor=window.ace.edit(this.$el,{wrap:this.wrap,showPrintMargin:!1,readOnly:this.readOnly,keyboardHandler:"vscode"}),this.editor.session.setMode(`ace/mode/${this.getFileMode()}`),this.$emit("mounted",this.editor),this.editor.session.$worker&&this.editor.session.$worker.addEventListener("annotate",this.workerMessage,!1),this.setValue(this.value),this.editor.setOptions(this.options),this.editTheme&&this.editor.setTheme(`ace/theme/${this.editTheme}`),this.editor.commands.addCommand({name:"\u4FDD\u5B58\u6587\u4EF6",bindKey:{win:"Ctrl-S",mac:"Command-S"},exec:()=>{this.$emit("saveData")},readOnly:!1}),this.editor.getSession().on("change",()=>{this.code=this.editor.getValue(),this.$emit("input",this.code)})})},methods:{workerMessage({data:e}){this.cursorPosition=this.editor.selection.getCursor();const[t]=e;t&&t.type==="error"?this.$emit("validationFailed",t):this.$emit("change",this.editor.getValue())},setSize(e,{width:t=this.width,height:s=this.height}){e.style.width=t&&typeof t=="number"?`${t}px`:"100%",e.style.height=s&&typeof s=="number"?`${s}px`:"100%",this.$nextTick(()=>this.editor&&this.editor.resize())},setValue(e){typeof e=="string"&&this.editor&&(this.editor.setValue(e),this.editor.clearSelection())},getFileMode(){var e=this.ext||"text";for(var t in this.supportedModes)for(var s=this.supportedModes[t],r=s[0].split("|"),a=t.toLowerCase(),i=0;i({})},theme:{type:String,default:"auto"},ext:{type:String,default:"txt"},height:{type:Number||null,default:null},width:{type:Number||null,default:null},wrap:{type:Boolean,default:!1},readOnly:{type:Boolean,default:!1}},render(e){return e("div",{class:"no-dark-content"})},data:()=>({code:"",editor:null,cursorPosition:{row:0,column:0},supportedModes:{Apache_Conf:["^htaccess|^htgroups|^htpasswd|^conf|htaccess|htgroups|htpasswd"],BatchFile:["bat|cmd"],C_Cpp:["cpp|c|cc|cxx|h|hh|hpp|ino"],CSharp:["cs"],CSS:["css"],Dockerfile:["^Dockerfile"],golang:["go|golang"],HTML:["html|htm|xhtml|vue|we|wpy"],Java:["java"],JavaScript:["js|jsm|jsx"],JSON:["json"],JSP:["jsp"],LESS:["less"],Lua:["lua"],Makefile:["^Makefile|^GNUmakefile|^makefile|^OCamlMakefile|make"],Markdown:["md|markdown"],MySQL:["mysql"],Nginx:["nginx|conf"],INI:["ini|conf|cfg|prefs"],ObjectiveC:["m|mm"],Perl:["pl|pm"],Perl6:["p6|pl6|pm6"],pgSQL:["pgsql"],PHP_Laravel_blade:["blade.php"],PHP:["php|inc|phtml|shtml|php3|php4|php5|phps|phpt|aw|ctp|module"],Powershell:["ps1"],Python:["py"],R:["r"],Ruby:["rb|ru|gemspec|rake|^Guardfile|^Rakefile|^Gemfile"],Rust:["rs"],SASS:["sass"],SCSS:["scss"],SH:["sh|bash|^.bashrc"],SQL:["sql"],SQLServer:["sqlserver"],Swift:["swift"],Text:["txt"],Typescript:["ts|typescript|str"],VBScript:["vbs|vb"],Verilog:["v|vh|sv|svh"],XML:["xml|rdf|rss|wsdl|xslt|atom|mathml|mml|xul|xbl|xaml|plist"],YAML:["yaml|yml"],Compress:["tar|zip|7z|rar|gz|arj|z"],images:["icon|jpg|jpeg|webp|png|bmp|gif|tif|emf"]}}),mounted(){$A.loadScriptS(["js/ace/ace.js","js/ace/mode-json.js"]).then(e=>{this.setSize(this.$el,{height:this.height,width:this.width}),this.editor=window.ace.edit(this.$el,{wrap:this.wrap,showPrintMargin:!1,readOnly:this.readOnly,keyboardHandler:"vscode"}),this.editor.session.setMode(`ace/mode/${this.getFileMode()}`),this.$emit("mounted",this.editor),this.editor.session.$worker&&this.editor.session.$worker.addEventListener("annotate",this.workerMessage,!1),this.setValue(this.value),this.editor.setOptions(this.options),this.editTheme&&this.editor.setTheme(`ace/theme/${this.editTheme}`),this.editor.commands.addCommand({name:"\u4FDD\u5B58\u6587\u4EF6",bindKey:{win:"Ctrl-S",mac:"Command-S"},exec:()=>{this.$emit("saveData")},readOnly:!1}),this.editor.getSession().on("change",()=>{this.code=this.editor.getValue(),this.$emit("input",this.code)})})},methods:{workerMessage({data:e}){this.cursorPosition=this.editor.selection.getCursor();const[t]=e;t&&t.type==="error"?this.$emit("validationFailed",t):this.$emit("change",this.editor.getValue())},setSize(e,{width:t=this.width,height:s=this.height}){e.style.width=t&&typeof t=="number"?`${t}px`:"100%",e.style.height=s&&typeof s=="number"?`${s}px`:"100%",this.$nextTick(()=>this.editor&&this.editor.resize())},setValue(e){typeof e=="string"&&this.editor&&(this.editor.setValue(e),this.editor.clearSelection())},getFileMode(){var e=this.ext||"text";for(var t in this.supportedModes)for(var s=this.supportedModes[t],r=s[0].split("|"),a=t.toLowerCase(),i=0;i0?e("Loading"):t._e()],1)]),e("div",{staticClass:"management-box"},[e("div",{staticClass:"management-department"},[e("ul",[e("li",{class:["level-1",t.departmentSelect===0?"active":""],on:{click:function(a){return t.onSelectDepartment(0)}}},[e("i",{staticClass:"taskfont department-icon"},[t._v("\uE766")]),e("div",{staticClass:"department-title"},[t._v(t._s(t.$L("\u9ED8\u8BA4\u90E8\u95E8")))]),e("EDropdown",{attrs:{size:"medium",trigger:"click"},on:{command:t.onOpDepartment}},[e("i",{staticClass:"taskfont department-menu",on:{click:function(a){a.stopPropagation()}}},[t._v("\uE6E9")]),e("EDropdownMenu",{attrs:{slot:"dropdown"},slot:"dropdown"},[e("EDropdownItem",{attrs:{command:"add_0"}},[e("div",[t._v(t._s(t.$L("\u6DFB\u52A0\u5B50\u90E8\u95E8")))])])],1)],1)],1),t._l(t.departmentList,function(a){return e("li",{key:a.id,class:[`level-${a.level}`,t.departmentSelect===a.id?"active":""],on:{click:function(i){return t.onSelectDepartment(a.id)}}},[e("UserAvatar",{staticClass:"department-icon",attrs:{userid:a.owner_userid,size:20}},[e("p",[e("strong",[t._v(t._s(t.$L("\u90E8\u95E8\u8D1F\u8D23\u4EBA")))])])]),e("div",{staticClass:"department-title"},[t._v(t._s(a.name))]),e("EDropdown",{attrs:{size:"medium",trigger:"click"},on:{command:t.onOpDepartment}},[e("i",{staticClass:"taskfont department-menu",on:{click:function(i){i.stopPropagation()}}},[t._v("\uE6E9")]),e("EDropdownMenu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a.level<=2?e("EDropdownItem",{attrs:{command:`add_${a.id}`}},[e("div",[t._v(t._s(t.$L("\u6DFB\u52A0\u5B50\u90E8\u95E8")))])]):t._e(),e("EDropdownItem",{attrs:{command:`edit_${a.id}`}},[e("div",[t._v(t._s(t.$L("\u7F16\u8F91")))])]),e("EDropdownItem",{attrs:{command:`del_${a.id}`}},[e("div",{staticStyle:{color:"#f00"}},[t._v(t._s(t.$L("\u5220\u9664")))])])],1)],1)],1)})],2),e("div",{staticClass:"department-buttons"},[e("Button",{attrs:{type:"primary",icon:"md-add"},on:{click:function(a){return t.onShowDepartment(null)}}},[t._v(t._s(t.$L("\u65B0\u5EFA\u90E8\u95E8")))])],1)]),e("div",{staticClass:"management-user"},[e("div",{staticClass:"search-container lr"},[e("ul",[e("li",[e("div",{staticClass:"search-label"},[t._v(" "+t._s(t.$L("\u5173\u952E\u8BCD"))+" ")]),e("div",{staticClass:"search-content"},[e("Input",{attrs:{placeholder:t.$L("\u90AE\u7BB1\u3001\u6635\u79F0\u3001\u804C\u4F4D"),clearable:""},model:{value:t.keys.key,callback:function(a){t.$set(t.keys,"key",a)},expression:"keys.key"}})],1)]),e("li",[e("div",{staticClass:"search-label"},[t._v(" "+t._s(t.$L("\u8EAB\u4EFD"))+" ")]),e("div",{staticClass:"search-content"},[e("Select",{attrs:{placeholder:t.$L("\u5168\u90E8")},model:{value:t.keys.identity,callback:function(a){t.$set(t.keys,"identity",a)},expression:"keys.identity"}},[e("Option",{attrs:{value:""}},[t._v(t._s(t.$L("\u5168\u90E8")))]),e("Option",{attrs:{value:"admin"}},[t._v(t._s(t.$L("\u7BA1\u7406\u5458")))]),e("Option",{attrs:{value:"noadmin"}},[t._v(t._s(t.$L("\u975E\u7BA1\u7406\u5458")))]),e("Option",{attrs:{value:"temp"}},[t._v(t._s(t.$L("\u4E34\u65F6\u5E10\u53F7")))]),e("Option",{attrs:{value:"notemp"}},[t._v(t._s(t.$L("\u975E\u4E34\u65F6\u5E10\u53F7")))])],1)],1)]),e("li",[e("div",{staticClass:"search-label"},[t._v(" "+t._s(t.$L("\u5728\u804C\u72B6\u6001"))+" ")]),e("div",{staticClass:"search-content"},[e("Select",{attrs:{placeholder:t.$L("\u5728\u804C")},model:{value:t.keys.disable,callback:function(a){t.$set(t.keys,"disable",a)},expression:"keys.disable"}},[e("Option",{attrs:{value:""}},[t._v(t._s(t.$L("\u5728\u804C")))]),e("Option",{attrs:{value:"yes"}},[t._v(t._s(t.$L("\u79BB\u804C")))]),e("Option",{attrs:{value:"all"}},[t._v(t._s(t.$L("\u5168\u90E8")))])],1)],1)]),t.checkinMac?e("li",[e("div",{staticClass:"search-label"},[t._v(" "+t._s(t.$L("MAC\u5730\u5740"))+" ")]),e("div",{staticClass:"search-content"},[e("Input",{attrs:{placeholder:t.$L("MAC\u5730\u5740"),clearable:""},model:{value:t.keys.checkin_mac,callback:function(a){t.$set(t.keys,"checkin_mac",a)},expression:"keys.checkin_mac"}})],1)]):e("li",[e("div",{staticClass:"search-label"},[t._v(" "+t._s(t.$L("\u90AE\u7BB1\u8BA4\u8BC1"))+" ")]),e("div",{staticClass:"search-content"},[e("Select",{attrs:{placeholder:t.$L("\u5168\u90E8")},model:{value:t.keys.email_verity,callback:function(a){t.$set(t.keys,"email_verity",a)},expression:"keys.email_verity"}},[e("Option",{attrs:{value:""}},[t._v(t._s(t.$L("\u5168\u90E8")))]),e("Option",{attrs:{value:"yes"}},[t._v(t._s(t.$L("\u5DF2\u90AE\u7BB1\u8BA4\u8BC1")))]),e("Option",{attrs:{value:"no"}},[t._v(t._s(t.$L("\u672A\u90AE\u7BB1\u8BA4\u8BC1")))])],1)],1)]),e("li",{staticClass:"search-button"},[e("Tooltip",{attrs:{theme:"light",placement:"bottom","transfer-class-name":"search-button-clear",transfer:""}},[e("Button",{attrs:{loading:t.loadIng>0,type:"primary",icon:"ios-search"},on:{click:t.onSearch}},[t._v(t._s(t.$L("\u641C\u7D22")))]),e("div",{attrs:{slot:"content"},slot:"content"},[t.keyIs?e("Button",{attrs:{type:"text"},on:{click:function(a){t.keyIs=!1}}},[t._v(t._s(t.$L("\u53D6\u6D88\u7B5B\u9009")))]):e("Button",{attrs:{loading:t.loadIng>0,type:"text"},on:{click:t.getLists}},[t._v(t._s(t.$L("\u5237\u65B0")))])],1)],1)],1)])]),e("div",{staticClass:"table-page-box"},[e("Table",{attrs:{columns:t.columns,data:t.list,loading:t.loadIng>0,"no-data-text":t.$L(t.noText),stripe:""}}),e("Page",{attrs:{total:t.total,current:t.page,"page-size":t.pageSize,disabled:t.loadIng>0,simple:t.windowSmall,"page-size-opts":[10,20,30,50,100],"show-elevator":"","show-sizer":"","show-total":""},on:{"on-change":t.setPage,"on-page-size-change":t.setPageSize}})],1)])]),e("Modal",{attrs:{title:t.$L(t.departmentData.id>0?"\u4FEE\u6539\u90E8\u95E8":"\u65B0\u5EFA\u90E8\u95E8"),"mask-closable":!1},model:{value:t.departmentShow,callback:function(a){t.departmentShow=a},expression:"departmentShow"}},[e("Form",{ref:"addProject",attrs:{model:t.departmentData,"label-width":"auto"},nativeOn:{submit:function(a){a.preventDefault()}}},[e("FormItem",{attrs:{prop:"name",label:t.$L("\u90E8\u95E8\u540D\u79F0")}},[e("Input",{attrs:{type:"text",placeholder:t.$L("\u8BF7\u8F93\u5165\u90E8\u95E8\u540D\u79F0")},model:{value:t.departmentData.name,callback:function(a){t.$set(t.departmentData,"name",a)},expression:"departmentData.name"}})],1),e("FormItem",{attrs:{prop:"parent_id",label:t.$L("\u4E0A\u7EA7\u90E8\u95E8")}},[e("Select",{attrs:{disabled:t.departmentParentDisabled,placeholder:t.$L("\u8BF7\u9009\u62E9\u4E0A\u7EA7\u90E8\u95E8")},model:{value:t.departmentData.parent_id,callback:function(a){t.$set(t.departmentData,"parent_id",a)},expression:"departmentData.parent_id"}},[e("Option",{attrs:{value:0}},[t._v(t._s(t.$L("\u9ED8\u8BA4\u90E8\u95E8")))]),t._l(t.departmentList,function(a,i){return a.parent_id==0&&a.id!=t.departmentData.id?e("Option",{key:i,attrs:{value:a.id,label:a.name}},[t._v("\xA0\xA0\xA0\xA0"+t._s(a.name))]):t._e()})],2),t.departmentParentDisabled?e("div",{staticClass:"form-tip",staticStyle:{"margin-bottom":"-16px"}},[t._v(t._s(t.$L("\u542B\u6709\u5B50\u90E8\u95E8\u65E0\u6CD5\u4FEE\u6539\u4E0A\u7EA7\u90E8\u95E8")))]):t._e()],1),e("FormItem",{attrs:{prop:"owner_userid",label:t.$L("\u90E8\u95E8\u8D1F\u8D23\u4EBA")}},[e("UserInput",{attrs:{"multiple-max":1,"max-hidden-select":"",placeholder:t.$L("\u8BF7\u9009\u62E9\u90E8\u95E8\u8D1F\u8D23\u4EBA")},model:{value:t.departmentData.owner_userid,callback:function(a){t.$set(t.departmentData,"owner_userid",a)},expression:"departmentData.owner_userid"}})],1),t.departmentData.id==0?[e("Divider",{attrs:{orientation:"left"}},[t._v(t._s(t.$L("\u7FA4\u7EC4\u8BBE\u7F6E")))]),e("FormItem",{attrs:{prop:"dialog_group",label:t.$L("\u90E8\u95E8\u7FA4\u804A")}},[e("RadioGroup",{model:{value:t.departmentData.dialog_group,callback:function(a){t.$set(t.departmentData,"dialog_group",a)},expression:"departmentData.dialog_group"}},[e("Radio",{attrs:{label:"new"}},[t._v(t._s(t.$L("\u521B\u5EFA\u90E8\u95E8\u7FA4")))]),e("Radio",{attrs:{label:"use"}},[t._v(t._s(t.$L("\u4F7F\u7528\u73B0\u6709\u7FA4")))])],1)],1),t.departmentData.dialog_group==="use"?e("FormItem",{attrs:{prop:"dialog_useid",label:t.$L("\u9009\u62E9\u7FA4\u7EC4")}},[e("Select",{attrs:{filterable:"","remote-method":t.dialogRemote,placeholder:t.$L("\u8F93\u5165\u5173\u952E\u8BCD\u641C\u7D22\u7FA4"),loading:t.dialogLoad},model:{value:t.departmentData.dialog_useid,callback:function(a){t.$set(t.departmentData,"dialog_useid",a)},expression:"departmentData.dialog_useid"}},t._l(t.dialogList,function(a,i){return e("Option",{key:i,attrs:{value:a.id,label:a.name}},[e("div",{staticClass:"team-department-add-dialog-group"},[e("div",{staticClass:"dialog-name"},[t._v(t._s(a.name))]),e("UserAvatar",{attrs:{userid:a.owner_id,size:20}})],1)])}),1),e("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u4EC5\u652F\u6301\u9009\u62E9\u4E2A\u4EBA\u7FA4\u8F6C\u4E3A\u90E8\u95E8\u7FA4")))])],1):t._e()]:t._e()],2),e("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[e("Button",{attrs:{type:"default"},on:{click:function(a){t.departmentShow=!1}}},[t._v(t._s(t.$L("\u53D6\u6D88")))]),e("Button",{attrs:{type:"primary",loading:t.departmentLoading>0},on:{click:t.onSaveDepartment}},[t._v(t._s(t.$L(t.departmentData.id>0?"\u4FDD\u5B58":"\u65B0\u5EFA")))])],1)],1),e("Modal",{attrs:{title:t.$L("\u4FEE\u6539\u7B7E\u5230MAC\u5730\u5740")},model:{value:t.checkinMacEditShow,callback:function(a){t.checkinMacEditShow=a},expression:"checkinMacEditShow"}},[e("Form",{attrs:{model:t.checkinMacEditData,"label-width":"auto"},nativeOn:{submit:function(a){a.preventDefault()}}},[e("Alert",{staticStyle:{"margin-bottom":"18px"},attrs:{type:"error"}},[t._v(t._s(t.$L(`\u6B63\u5728\u8FDB\u884C\u5E10\u53F7\u3010ID:${t.checkinMacEditData.userid}\uFF0C${t.checkinMacEditData.nickname}\u3011MAC\u5730\u5740\u4FEE\u6539\u3002`)))]),e("Row",{staticClass:"team-department-checkin-item"},[e("Col",{attrs:{span:"12"}},[t._v(t._s(t.$L("\u8BBE\u5907MAC\u5730\u5740")))]),e("Col",{attrs:{span:"12"}},[t._v(t._s(t.$L("\u5907\u6CE8")))])],1),t._l(t.checkinMacEditData.checkin_macs,function(a,i){return e("Row",{key:i,staticClass:"team-department-checkin-item"},[e("Col",{attrs:{span:"12"}},[e("Input",{attrs:{maxlength:20,placeholder:t.$L("\u8BF7\u8F93\u5165\u8BBE\u5907MAC\u5730\u5740"),clearable:""},on:{"on-clear":function(n){return t.delCheckinDatum(i)}},model:{value:a.mac,callback:function(n){t.$set(a,"mac",n)},expression:"item.mac"}})],1),e("Col",{attrs:{span:"12"}},[e("Input",{attrs:{maxlength:100,placeholder:t.$L("\u5907\u6CE8")},model:{value:a.remark,callback:function(n){t.$set(a,"remark",n)},expression:"item.remark"}})],1)],1)}),e("Button",{attrs:{type:"default",icon:"md-add"},on:{click:t.addCheckinDatum}},[t._v(t._s(t.$L("\u6DFB\u52A0\u8BBE\u5907")))])],2),e("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[e("Button",{attrs:{type:"default"},on:{click:function(a){t.checkinMacEditShow=!1}}},[t._v(t._s(t.$L("\u53D6\u6D88")))]),e("Button",{attrs:{type:"primary",loading:t.checkinMacEditLoading>0},on:{click:function(a){return t.operationUser(t.checkinMacEditData,!0)}}},[t._v(t._s(t.$L("\u786E\u5B9A\u4FEE\u6539")))])],1)],1),e("Modal",{attrs:{title:t.$L("\u4FEE\u6539\u90E8\u95E8")},model:{value:t.departmentEditShow,callback:function(a){t.departmentEditShow=a},expression:"departmentEditShow"}},[e("Form",{attrs:{model:t.departmentEditData,"label-width":"auto"},nativeOn:{submit:function(a){a.preventDefault()}}},[e("Alert",{staticStyle:{"margin-bottom":"18px"},attrs:{type:"error"}},[t._v(t._s(t.$L(`\u6B63\u5728\u8FDB\u884C\u5E10\u53F7\u3010ID:${t.departmentEditData.userid}\uFF0C${t.departmentEditData.nickname}\u3011\u90E8\u95E8\u4FEE\u6539\u3002`)))]),e("FormItem",{attrs:{label:t.$L("\u4FEE\u6539\u90E8\u95E8")}},[e("Select",{attrs:{multiple:"","multiple-max":10,placeholder:t.$L("\u7559\u7A7A\u4E3A\u9ED8\u8BA4\u90E8\u95E8")},model:{value:t.departmentEditData.department,callback:function(a){t.$set(t.departmentEditData,"department",a)},expression:"departmentEditData.department"}},t._l(t.departmentList,function(a,i){return e("Option",{key:i,attrs:{value:a.id}},[t._v(t._s(a.name))])}),1)],1)],1),e("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[e("Button",{attrs:{type:"default"},on:{click:function(a){t.departmentEditShow=!1}}},[t._v(t._s(t.$L("\u53D6\u6D88")))]),e("Button",{attrs:{type:"primary",loading:t.departmentEditLoading>0},on:{click:function(a){return t.operationUser(t.departmentEditData,!0)}}},[t._v(t._s(t.$L("\u786E\u5B9A\u4FEE\u6539")))])],1)],1),e("Modal",{attrs:{title:t.$L("\u64CD\u4F5C\u79BB\u804C")},model:{value:t.disableShow,callback:function(a){t.disableShow=a},expression:"disableShow"}},[e("Form",{attrs:{model:t.disableData,"label-width":"auto"},nativeOn:{submit:function(a){a.preventDefault()}}},[e("Alert",{staticStyle:{"margin-bottom":"18px"},attrs:{type:"error"}},[t._v(t._s(t.$L(`\u6B63\u5728\u8FDB\u884C\u5E10\u53F7\u3010ID:${t.disableData.userid}\uFF0C${t.disableData.nickname}\u3011\u79BB\u804C\u64CD\u4F5C\u3002`)))]),e("FormItem",{attrs:{label:t.$L("\u79BB\u804C\u65F6\u95F4")}},[e("DatePicker",{ref:"disableTime",staticStyle:{width:"100%"},attrs:{editable:!1,placeholder:t.$L("\u9009\u62E9\u79BB\u804C\u65F6\u95F4"),options:t.disableOptions,format:"yyyy/MM/dd HH:mm",type:"datetime"},model:{value:t.disableData.disable_time,callback:function(a){t.$set(t.disableData,"disable_time",a)},expression:"disableData.disable_time"}})],1),e("FormItem",{attrs:{label:t.$L("\u4EA4\u63A5\u4EBA")}},[e("UserInput",{attrs:{"disabled-choice":[t.disableData.userid],"multiple-max":1,"max-hidden-select":"",placeholder:t.$L("\u9009\u62E9\u4EA4\u63A5\u4EBA")},model:{value:t.disableData.transfer_userid,callback:function(a){t.$set(t.disableData,"transfer_userid",a)},expression:"disableData.transfer_userid"}}),e("div",{staticClass:"form-tip"},[t._v(t._s(t.$L(`${t.disableData.nickname} \u8D1F\u8D23\u7684\u90E8\u95E8\u3001\u9879\u76EE\u3001\u4EFB\u52A1\u548C\u6587\u4EF6\u5C06\u79FB\u4EA4\u7ED9\u4EA4\u63A5\u4EBA\uFF1B\u540C\u65F6\u9000\u51FA\u6240\u6709\u7FA4\uFF08\u5982\u679C\u662F\u7FA4\u4E3B\u5219\u8F6C\u8BA9\u7ED9\u4EA4\u63A5\u4EBA\uFF09`)))])],1)],1),e("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[e("Button",{attrs:{type:"default"},on:{click:function(a){t.disableShow=!1}}},[t._v(t._s(t.$L("\u53D6\u6D88")))]),e("Poptip",{staticStyle:{"margin-left":"8px"},attrs:{confirm:"",placement:"bottom","ok-text":t.$L("\u786E\u5B9A"),"cancel-text":t.$L("\u53D6\u6D88"),transfer:""},on:{"on-ok":function(a){return t.operationUser(t.disableData,!0)}}},[e("div",{attrs:{slot:"title"},slot:"title"},[e("p",[t._v(t._s(t.$L("\u6CE8\u610F\uFF1A\u79BB\u804C\u64CD\u4F5C\u4E0D\u53EF\u9006\uFF01")))])]),e("Button",{attrs:{type:"primary",loading:t.disableLoading>0}},[t._v(t._s(t.$L("\u786E\u5B9A\u79BB\u804C")))])],1)],1)],1)],1)},m=[];const u={name:"TeamManagement",components:{UserInput:l},props:{checkinMac:{type:Boolean,default:!1}},data(){return{loadIng:0,keys:{},keyIs:!1,columns:[{title:"ID",key:"userid",width:80,render:(t,{row:s,column:e})=>t("TableAction",{props:{column:e,align:"left"}},[t("div",s.userid)])},{title:this.$L("\u90AE\u7BB1"),key:"email",minWidth:160,render:(t,{row:s})=>{const e=[t("AutoTip",s.email)],{email_verity:a,identity:i,disable_at:n,is_principal:c}=s;return a&&e.push(t("Icon",{props:{type:"md-mail"}})),c&&e.push(t("Tag",{props:{color:"blue"}},this.$L("\u8D1F\u8D23\u4EBA"))),i.includes("ldap")&&e.push(t("Tag",{props:{color:"orange"}},this.$L("LDAP"))),i.includes("admin")&&e.push(t("Tag",{props:{color:"warning"}},this.$L("\u7BA1\u7406\u5458"))),i.includes("temp")&&e.push(t("Tag",{props:{color:"success"}},this.$L("\u4E34\u65F6"))),i.includes("disable")&&e.push(t("Tooltip",{props:{content:this.$L("\u79BB\u804C\u65F6\u95F4")+": "+n}},[t("Tag",{props:{color:"error"}},this.$L("\u79BB\u804C"))])),t("div",{class:"team-email"},e)}},{title:this.$L("\u7535\u8BDD"),key:"tel",minWidth:80,render:(t,{row:s})=>t("QuickEdit",{props:{value:s.tel},on:{"on-update":(e,a)=>{this.operationUser({userid:s.userid,tel:e},!0).finally(a)}}},[t("AutoTip",s.tel||"-")])},{title:this.$L("\u6635\u79F0"),key:"nickname",minWidth:80,render:(t,{row:s})=>t("QuickEdit",{props:{value:s.nickname_original},on:{"on-update":(e,a)=>{this.operationUser({userid:s.userid,nickname:e},!0).finally(a)}}},[t("AutoTip",s.nickname_original||"-")])},{title:this.$L("\u804C\u4F4D/\u804C\u79F0"),key:"profession",minWidth:80,render:(t,{row:s})=>t("QuickEdit",{props:{value:s.profession},on:{"on-update":(e,a)=>{this.operationUser({userid:s.userid,profession:e},!0).finally(a)}}},[t("AutoTip",s.profession||"-")])},{title:this.$L("\u90E8\u95E8"),key:"department",minWidth:80,render:(t,{row:s})=>{let e=[];if(s.department.some(a=>{const i=this.departmentList.find(n=>n.id==a);i&&e.push(i.name)}),e.length===0)return t("div",this.$L("\u9ED8\u8BA4\u90E8\u95E8"));{const a=[];return a.push(t("span",{domProps:{title:e[0]}},e[0])),e.length>1&&(e=e.splice(1),a.push(t("ETooltip",[t("div",{slot:"content",domProps:{innerHTML:e.join("
")}}),t("div",{class:"department-tag-num"},` +${e.length}`)]))),t("div",{class:"team-table-department-warp"},a)}}},{title:this.$L("\u6700\u540E\u5728\u7EBF"),key:"line_at",width:168},{title:this.$L("\u64CD\u4F5C"),align:"center",width:100,render:(t,s)=>{const e=s.row.identity,a=[];e.includes("admin")?a.push(t("EDropdownItem",{props:{command:"clearadmin"}},[t("div",this.$L("\u53D6\u6D88\u7BA1\u7406\u5458"))])):a.push(t("EDropdownItem",{props:{command:"setadmin"}},[t("div",this.$L("\u8BBE\u4E3A\u7BA1\u7406\u5458"))])),e.includes("temp")?a.push(t("EDropdownItem",{props:{command:"cleartemp"}},[t("div",this.$L("\u53D6\u6D88\u4E34\u65F6\u8EAB\u4EFD"))])):a.push(t("EDropdownItem",{props:{command:"settemp"}},[t("div",this.$L("\u8BBE\u4E3A\u4E34\u65F6\u5E10\u53F7"))])),a.push(t("EDropdownItem",{props:{command:"email"}},[t("div",this.$L("\u4FEE\u6539\u90AE\u7BB1"))])),a.push(t("EDropdownItem",{props:{command:"password"}},[t("div",this.$L("\u4FEE\u6539\u5BC6\u7801"))])),this.checkinMac&&a.push(t("EDropdownItem",{props:{command:"checkin_mac"}},[t("div",this.$L("\u4FEE\u6539MAC"))])),a.push(t("EDropdownItem",{props:{command:"department"}},[t("div",this.$L("\u4FEE\u6539\u90E8\u95E8"))])),e.includes("disable")?a.push(t("EDropdownItem",{props:{command:"cleardisable"},style:{color:"#f90"}},[t("div",this.$L("\u6062\u590D\u5E10\u53F7\uFF08\u5DF2\u79BB\u804C\uFF09"))])):a.push(t("EDropdownItem",{props:{command:"setdisable"},style:{color:"#f90"}},[t("div",this.$L("\u64CD\u4F5C\u79BB\u804C"))])),a.push(t("EDropdownItem",{props:{command:"delete"},style:{color:"red"}},[t("div",this.$L("\u5220\u9664"))]));const i=t("EDropdown",{props:{size:"small",trigger:"click"},on:{command:n=>{this.dropUser(n,s.row)}}},[t("Button",{props:{type:"primary",size:"small"},style:{fontSize:"12px"}},this.$L("\u64CD\u4F5C")),t("EDropdownMenu",{slot:"dropdown"},[a])]);return t("TableAction",{props:{column:s.column}},[i])}}],list:[],page:1,pageSize:20,total:0,noText:"",checkinMacEditShow:!1,checkinMacEditLoading:0,checkinMacEditData:{},departmentEditShow:!1,departmentEditLoading:0,departmentEditData:{},disableShow:!1,disableLoading:0,disableData:{},disableOptions:{shortcuts:[{text:this.$L("12:00"),value(){return $A.Date($A.formatDate("Y-m-d 12:00:00"))},onClick:t=>{t.handlePickSuccess()}},{text:this.$L("17:00"),value(){return $A.Date($A.formatDate("Y-m-d 17:00:00"))},onClick:t=>{t.handlePickSuccess()}},{text:this.$L("18:00"),value(){return $A.Date($A.formatDate("Y-m-d 18:00:00"))},onClick:t=>{t.handlePickSuccess()}},{text:this.$L("19:00"),value(){return $A.Date($A.formatDate("Y-m-d 19:00:00"))},onClick:t=>{t.handlePickSuccess()}},{text:this.$L("\u73B0\u5728"),value(){return new Date},onClick:t=>{t.handlePickSuccess()}}]},departmentShow:!1,departmentLoading:0,departmentSelect:-1,departmentData:{id:0,name:"",parent_id:0,owner_userid:[],dialog_group:"new",dialog_useid:0},departmentList:[],dialogLoad:!1,dialogList:[],nullCheckinDatum:{mac:"",remark:""}}},created(){this.checkinMac&&this.columns.splice(5,0,{title:this.$L("MAC\u5730\u5740"),key:"checkin_mac",minWidth:80,render:(t,{row:s})=>{let e=$A.cloneJSON(s.checkin_macs||[]);if(e.length===0)return t("div","-");{const a=n=>n.remark?`${n.mac} (${n.remark})`:n.mac,i=[];return i.push(t("AutoTip",a(e[0]))),e.length>1&&(e=e.splice(1),i.push(t("ETooltip",[t("div",{slot:"content",domProps:{innerHTML:e.map(n=>a(n)).join("
")}}),t("div",{class:"department-tag-num"},` +${e.length}`)]))),t("div",{class:"team-table-department-warp"},i)}}})},mounted(){this.getLists(),this.getDepartmentLists()},watch:{keyIs(t){t||(this.keys={},this.setPage(1))},departmentSelect(){this.setPage(1)}},computed:{departmentParentDisabled(){return!!(this.departmentData.id>0&&this.departmentList.find(({parent_id:t})=>t==this.departmentData.id))}},methods:{onSearch(){this.page=1,this.getLists()},getLists(){this.loadIng++,this.keyIs=$A.objImplode(this.keys)!="";let t=$A.cloneJSON(this.keys);this.departmentSelect>-1&&(t=Object.assign(t,{department:this.departmentSelect})),this.$store.dispatch("call",{url:"users/lists",data:{keys:t,get_checkin_mac:this.checkinMac?1:0,page:Math.max(this.page,1),pagesize:Math.max($A.runNum(this.pageSize),10)}}).then(({data:s})=>{this.page=s.current_page,this.total=s.total,this.list=s.data,this.noText="\u6CA1\u6709\u76F8\u5173\u7684\u6210\u5458"}).catch(()=>{this.noText="\u6570\u636E\u52A0\u8F7D\u5931\u8D25"}).finally(s=>{this.loadIng--})},setPage(t){this.page=t,this.getLists()},setPageSize(t){this.page=1,this.pageSize=t,this.getLists()},dropUser(t,s){switch(t){case"settemp":$A.modalConfirm({content:`\u4F60\u786E\u5B9A\u5C06\u3010ID:${s.userid}\uFF0C${s.nickname}\u3011\u8BBE\u4E3A\u4E34\u65F6\u5E10\u53F7\u5417\uFF1F\uFF08\u6CE8\uFF1A\u4E34\u65F6\u5E10\u53F7\u9650\u5236\u8BF7\u67E5\u770B\u7CFB\u7EDF\u8BBE\u7F6E\uFF09`,loading:!0,onOk:()=>this.operationUser({userid:s.userid,type:t})});break;case"cleartemp":$A.modalConfirm({content:`\u4F60\u786E\u5B9A\u53D6\u6D88\u3010ID:${s.userid}\uFF0C${s.nickname}\u3011\u4E34\u65F6\u8EAB\u4EFD\u5417\uFF1F`,loading:!0,onOk:()=>this.operationUser({userid:s.userid,type:t})});break;case"email":$A.modalInput({title:"\u4FEE\u6539\u90AE\u7BB1",placeholder:`\u8BF7\u8F93\u5165\u65B0\u7684\u90AE\u7BB1\uFF08${s.email}\uFF09`,onOk:a=>a?this.operationUser({userid:s.userid,email:a}):"\u8BF7\u8F93\u5165\u65B0\u7684\u90AE\u7BB1\u5730\u5740"});break;case"password":$A.modalInput({title:"\u4FEE\u6539\u5BC6\u7801",placeholder:"\u8BF7\u8F93\u5165\u65B0\u7684\u5BC6\u7801",onOk:a=>a?this.operationUser({userid:s.userid,password:a}):"\u8BF7\u8F93\u5165\u65B0\u7684\u5BC6\u7801"});break;case"checkin_mac":this.checkinMacEditData={type:"checkin_macs",userid:s.userid,nickname:s.nickname,checkin_macs:s.checkin_macs},this.checkinMacEditData.checkin_macs.length===0&&this.addCheckinDatum(),this.checkinMacEditShow=!0;break;case"department":let e=[];s.department.some(a=>{const i=this.departmentList.find(n=>n.id==a);i&&e.push(i.owner_userid===s.userid?`${i.name} (${this.$L("\u8D1F\u8D23\u4EBA")})`:i.name)}),this.departmentEditData={type:"department",userid:s.userid,nickname:s.nickname,department:s.department.map(a=>parseInt(a))},this.departmentEditShow=!0;break;case"setdisable":this.disableData={type:"setdisable",userid:s.userid,nickname:s.nickname},this.disableShow=!0;break;case"cleardisable":$A.modalConfirm({content:`\u4F60\u786E\u5B9A\u6062\u590D\u5DF2\u79BB\u804C\u5E10\u53F7\u3010ID:${s.userid}\uFF0C${s.nickname}\u3011\u5417\uFF1F\uFF08\u6CE8\uFF1A\u6B64\u64CD\u4F5C\u4EC5\u6062\u590D\u5E10\u53F7\u72B6\u6001\uFF0C\u65E0\u6CD5\u6062\u590D\u64CD\u4F5C\u79BB\u804C\u65F6\u79FB\u4EA4\u7684\u6570\u636E\uFF09`,loading:!0,onOk:()=>this.operationUser({userid:s.userid,type:t})});break;case"delete":$A.modalInput({title:`\u5220\u9664\u5E10\u53F7\u3010ID:${s.userid}\uFF0C${s.nickname}\u3011`,placeholder:"\u8BF7\u8F93\u5165\u5220\u9664\u539F\u56E0",okText:"\u786E\u5B9A\u5220\u9664",onOk:a=>a?this.operationUser({userid:s.userid,type:t,delete_reason:a}):"\u5220\u9664\u539F\u56E0\u4E0D\u80FD\u4E3A\u7A7A"});break;default:this.operationUser({userid:s.userid,type:t},!0);break}},operationUser(t,s){return new Promise((e,a)=>{t.type=="checkin_macs"?this.checkinMacEditLoading++:t.type=="department"?this.departmentEditLoading++:t.type=="setdisable"?this.disableLoading++:this.loadIng++,this.$store.dispatch("call",{url:"users/operation",data:t}).then(({msg:i})=>{$A.messageSuccess(i),this.getLists(),e(),t.type=="checkin_macs"?this.checkinMacEditShow=!1:t.type=="department"?this.departmentEditShow=!1:t.type=="setdisable"&&(this.disableShow=!1)}).catch(({msg:i})=>{s===!0&&$A.modalError(i),this.getLists(),a(i)}).finally(i=>{t.type=="checkin_macs"?this.checkinMacEditLoading--:t.type=="department"?this.departmentEditLoading--:t.type=="setdisable"?this.disableLoading--:this.loadIng--})})},getDepartmentLists(){this.departmentLoading++,this.$store.dispatch("call",{url:"users/department/list"}).then(({data:t})=>{this.departmentList=[],this.generateDepartmentList(t,0,1)}).finally(t=>{this.departmentLoading--})},generateDepartmentList(t,s,e){t.some(a=>{a.parent_id==s&&(this.departmentList.push(Object.assign(a,{level:e+1})),this.generateDepartmentList(t,a.id,e+1))})},onShowDepartment(t){this.departmentData=Object.assign({id:0,name:"",parent_id:0,owner_userid:[],dialog_group:"new"},t||{}),this.departmentShow=!0},onSaveDepartment(){this.departmentLoading++,this.$store.dispatch("call",{url:"users/department/add",data:Object.assign(this.departmentData,{owner_userid:this.departmentData.owner_userid[0]})}).then(({msg:t})=>{$A.messageSuccess(t),this.getDepartmentLists(),this.getLists(),this.departmentShow=!1}).catch(({msg:t})=>{$A.modalError(t)}).finally(t=>{this.departmentLoading--})},onSelectDepartment(t){if(this.departmentSelect===t){this.departmentSelect=-1;return}this.departmentSelect=t},onOpDepartment(t){if($A.leftExists(t,"add_"))this.onShowDepartment({parent_id:parseInt(t.substr(4))});else if($A.leftExists(t,"edit_")){const s=this.departmentList.find(({id:e})=>e===parseInt(t.substr(5)));s&&this.onShowDepartment(s)}else if($A.leftExists(t,"del_")){const s=this.departmentList.find(({id:e})=>e===parseInt(t.substr(4)));s&&$A.modalConfirm({title:this.$L("\u5220\u9664\u90E8\u95E8"),content:`
${this.$L(`\u4F60\u786E\u5B9A\u8981\u5220\u9664\u3010${s.name}\u3011\u90E8\u95E8\u5417\uFF1F`)}
${this.$L("\u6CE8\u610F\uFF1A\u6B64\u64CD\u4F5C\u4E0D\u53EF\u6062\u590D\uFF0C\u90E8\u95E8\u4E0B\u7684\u6210\u5458\u5C06\u79FB\u81F3\u9ED8\u8BA4\u90E8\u95E8\u3002")}
`,language:!1,loading:!0,onOk:()=>new Promise((e,a)=>{this.$store.dispatch("call",{url:"users/department/del",data:{id:s.id}}).then(({msg:i})=>{s.id===this.departmentSelect&&(this.departmentSelect=-1),e(i),this.getDepartmentLists()}).catch(({msg:i})=>{a(i)})})})}},dialogRemote(t){t!==""?(this.dialogLoad=!0,this.$store.dispatch("call",{url:"dialog/group/searchuser",data:{key:t}}).then(({data:s})=>{this.dialogList=s.list}).finally(s=>{this.dialogLoad=!1})):this.dialogList=[]},addCheckinDatum(){this.checkinMacEditData.checkin_macs.push($A.cloneJSON(this.nullCheckinDatum))},delCheckinDatum(t){this.checkinMacEditData.checkin_macs.splice(t,1),this.checkinMacEditData.checkin_macs.length===0&&this.addCheckinDatum()}}},r={};var h=d(u,p,m,!1,_,null,null,null);function _(t){for(let s in r)this[s]=r[s]}var b=function(){return h.exports}(),f=function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("Modal",{attrs:{title:t.$L("\u5BFC\u51FA\u7B7E\u5230\u6570\u636E"),"mask-closable":!1},model:{value:t.show,callback:function(a){t.show=a},expression:"show"}},[e("Form",{ref:"export",attrs:{model:t.formData,"label-width":"auto"},nativeOn:{submit:function(a){a.preventDefault()}}},[e("FormItem",{attrs:{label:t.$L("\u5BFC\u51FA\u6210\u5458")}},[e("UserInput",{attrs:{"multiple-max":100,placeholder:t.$L("\u8BF7\u9009\u62E9\u6210\u5458")},model:{value:t.formData.userid,callback:function(a){t.$set(t.formData,"userid",a)},expression:"formData.userid"}}),e("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u6BCF\u6B21\u6700\u591A\u9009\u62E9\u5BFC\u51FA100\u4E2A\u6210\u5458")))])],1),e("FormItem",{attrs:{label:t.$L("\u7B7E\u5230\u65E5\u671F")}},[e("DatePicker",{staticStyle:{width:"100%"},attrs:{type:"daterange",format:"yyyy/MM/dd",placeholder:t.$L("\u8BF7\u9009\u62E9\u7B7E\u5230\u65E5\u671F")},model:{value:t.formData.date,callback:function(a){t.$set(t.formData,"date",a)},expression:"formData.date"}}),e("div",{staticClass:"form-tip checkin-export-quick-select"},[e("span",[t._v(t._s(t.$L("\u5FEB\u6377\u9009\u62E9"))+":")]),e("em",{on:{click:function(a){t.formData.date=t.dateShortcuts("prev")}}},[t._v(t._s(t.$L("\u4E0A\u4E2A\u6708")))]),e("em",{on:{click:function(a){t.formData.date=t.dateShortcuts("this")}}},[t._v(t._s(t.$L("\u8FD9\u4E2A\u6708")))])])],1),e("FormItem",{attrs:{label:t.$L("\u73ED\u6B21\u65F6\u95F4")}},[e("TimePicker",{staticStyle:{width:"100%"},attrs:{type:"timerange",format:"HH:mm",placeholder:t.$L("\u8BF7\u9009\u62E9\u73ED\u6B21\u65F6\u95F4")},model:{value:t.formData.time,callback:function(a){t.$set(t.formData,"time",a)},expression:"formData.time"}}),e("div",{staticClass:"form-tip checkin-export-quick-select"},[e("span",[t._v(t._s(t.$L("\u5FEB\u6377\u9009\u62E9"))+":")]),e("em",{on:{click:function(a){t.formData.time=["8:30","18:00"]}}},[t._v("8:30-18:00")]),e("em",{on:{click:function(a){t.formData.time=["9:00","18:00"]}}},[t._v("9:00-18:00")]),e("em",{on:{click:function(a){t.formData.time=["9:30","18:00"]}}},[t._v("9:30-18:30")])])],1)],1),e("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[e("Button",{attrs:{type:"default"},on:{click:function(a){t.show=!1}}},[t._v(t._s(t.$L("\u53D6\u6D88")))]),e("Button",{attrs:{type:"primary",loading:t.loadIng>0},on:{click:t.onExport}},[t._v(t._s(t.$L("\u5BFC\u51FA")))])],1)],1)},$=[];const v={name:"CheckinExport",components:{UserInput:l},props:{value:{type:Boolean,default:!1}},data(){return{show:this.value,loadIng:0,formData:{userid:[],date:[],time:[]}}},watch:{value(t){this.show=t},show(t){this.value!==t&&this.$emit("input",t)}},methods:{dateShortcuts(t){if(t==="prev")return[$A.getSpecifyDate("\u4E0A\u4E2A\u6708"),$A.getSpecifyDate("\u4E0A\u4E2A\u6708\u7ED3\u675F")];if(t==="this")return[$A.getSpecifyDate("\u672C\u6708"),$A.getSpecifyDate("\u672C\u6708\u7ED3\u675F")]},onExport(){this.loadIng>0||(this.loadIng++,this.$store.dispatch("call",{url:"system/checkin/export",data:this.formData}).then(({data:t})=>{this.show=!1,this.$store.dispatch("downUrl",{url:t.url})}).catch(({msg:t})=>{$A.modalError(t)}).finally(t=>{this.loadIng--}))}}},o={};var k=d(v,f,$,!1,g,null,null,null);function g(t){for(let s in o)this[s]=o[s]}var y=function(){return k.exports}();export{y as C,b as T}; +import{U as l}from"./UserInput.d31ec6c9.js";import{n as d}from"./app.aaf5ae6f.js";var p=function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",{staticClass:"team-management"},[e("div",{staticClass:"management-title"},[t._v(" "+t._s(t.$L("\u56E2\u961F\u7BA1\u7406"))+" "),e("div",{staticClass:"title-icon"},[t.loadIng>0?e("Loading"):t._e()],1)]),e("div",{staticClass:"management-box"},[e("div",{staticClass:"management-department"},[e("ul",[e("li",{class:["level-1",t.departmentSelect===0?"active":""],on:{click:function(a){return t.onSelectDepartment(0)}}},[e("i",{staticClass:"taskfont department-icon"},[t._v("\uE766")]),e("div",{staticClass:"department-title"},[t._v(t._s(t.$L("\u9ED8\u8BA4\u90E8\u95E8")))]),e("EDropdown",{attrs:{size:"medium",trigger:"click"},on:{command:t.onOpDepartment}},[e("i",{staticClass:"taskfont department-menu",on:{click:function(a){a.stopPropagation()}}},[t._v("\uE6E9")]),e("EDropdownMenu",{attrs:{slot:"dropdown"},slot:"dropdown"},[e("EDropdownItem",{attrs:{command:"add_0"}},[e("div",[t._v(t._s(t.$L("\u6DFB\u52A0\u5B50\u90E8\u95E8")))])])],1)],1)],1),t._l(t.departmentList,function(a){return e("li",{key:a.id,class:[`level-${a.level}`,t.departmentSelect===a.id?"active":""],on:{click:function(i){return t.onSelectDepartment(a.id)}}},[e("UserAvatar",{staticClass:"department-icon",attrs:{userid:a.owner_userid,size:20}},[e("p",[e("strong",[t._v(t._s(t.$L("\u90E8\u95E8\u8D1F\u8D23\u4EBA")))])])]),e("div",{staticClass:"department-title"},[t._v(t._s(a.name))]),e("EDropdown",{attrs:{size:"medium",trigger:"click"},on:{command:t.onOpDepartment}},[e("i",{staticClass:"taskfont department-menu",on:{click:function(i){i.stopPropagation()}}},[t._v("\uE6E9")]),e("EDropdownMenu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a.level<=2?e("EDropdownItem",{attrs:{command:`add_${a.id}`}},[e("div",[t._v(t._s(t.$L("\u6DFB\u52A0\u5B50\u90E8\u95E8")))])]):t._e(),e("EDropdownItem",{attrs:{command:`edit_${a.id}`}},[e("div",[t._v(t._s(t.$L("\u7F16\u8F91")))])]),e("EDropdownItem",{attrs:{command:`del_${a.id}`}},[e("div",{staticStyle:{color:"#f00"}},[t._v(t._s(t.$L("\u5220\u9664")))])])],1)],1)],1)})],2),e("div",{staticClass:"department-buttons"},[e("Button",{attrs:{type:"primary",icon:"md-add"},on:{click:function(a){return t.onShowDepartment(null)}}},[t._v(t._s(t.$L("\u65B0\u5EFA\u90E8\u95E8")))])],1)]),e("div",{staticClass:"management-user"},[e("div",{staticClass:"search-container lr"},[e("ul",[e("li",[e("div",{staticClass:"search-label"},[t._v(" "+t._s(t.$L("\u5173\u952E\u8BCD"))+" ")]),e("div",{staticClass:"search-content"},[e("Input",{attrs:{placeholder:t.$L("\u90AE\u7BB1\u3001\u6635\u79F0\u3001\u804C\u4F4D"),clearable:""},model:{value:t.keys.key,callback:function(a){t.$set(t.keys,"key",a)},expression:"keys.key"}})],1)]),e("li",[e("div",{staticClass:"search-label"},[t._v(" "+t._s(t.$L("\u8EAB\u4EFD"))+" ")]),e("div",{staticClass:"search-content"},[e("Select",{attrs:{placeholder:t.$L("\u5168\u90E8")},model:{value:t.keys.identity,callback:function(a){t.$set(t.keys,"identity",a)},expression:"keys.identity"}},[e("Option",{attrs:{value:""}},[t._v(t._s(t.$L("\u5168\u90E8")))]),e("Option",{attrs:{value:"admin"}},[t._v(t._s(t.$L("\u7BA1\u7406\u5458")))]),e("Option",{attrs:{value:"noadmin"}},[t._v(t._s(t.$L("\u975E\u7BA1\u7406\u5458")))]),e("Option",{attrs:{value:"temp"}},[t._v(t._s(t.$L("\u4E34\u65F6\u5E10\u53F7")))]),e("Option",{attrs:{value:"notemp"}},[t._v(t._s(t.$L("\u975E\u4E34\u65F6\u5E10\u53F7")))])],1)],1)]),e("li",[e("div",{staticClass:"search-label"},[t._v(" "+t._s(t.$L("\u5728\u804C\u72B6\u6001"))+" ")]),e("div",{staticClass:"search-content"},[e("Select",{attrs:{placeholder:t.$L("\u5728\u804C")},model:{value:t.keys.disable,callback:function(a){t.$set(t.keys,"disable",a)},expression:"keys.disable"}},[e("Option",{attrs:{value:""}},[t._v(t._s(t.$L("\u5728\u804C")))]),e("Option",{attrs:{value:"yes"}},[t._v(t._s(t.$L("\u79BB\u804C")))]),e("Option",{attrs:{value:"all"}},[t._v(t._s(t.$L("\u5168\u90E8")))])],1)],1)]),t.checkinMac?e("li",[e("div",{staticClass:"search-label"},[t._v(" "+t._s(t.$L("MAC\u5730\u5740"))+" ")]),e("div",{staticClass:"search-content"},[e("Input",{attrs:{placeholder:t.$L("MAC\u5730\u5740"),clearable:""},model:{value:t.keys.checkin_mac,callback:function(a){t.$set(t.keys,"checkin_mac",a)},expression:"keys.checkin_mac"}})],1)]):e("li",[e("div",{staticClass:"search-label"},[t._v(" "+t._s(t.$L("\u90AE\u7BB1\u8BA4\u8BC1"))+" ")]),e("div",{staticClass:"search-content"},[e("Select",{attrs:{placeholder:t.$L("\u5168\u90E8")},model:{value:t.keys.email_verity,callback:function(a){t.$set(t.keys,"email_verity",a)},expression:"keys.email_verity"}},[e("Option",{attrs:{value:""}},[t._v(t._s(t.$L("\u5168\u90E8")))]),e("Option",{attrs:{value:"yes"}},[t._v(t._s(t.$L("\u5DF2\u90AE\u7BB1\u8BA4\u8BC1")))]),e("Option",{attrs:{value:"no"}},[t._v(t._s(t.$L("\u672A\u90AE\u7BB1\u8BA4\u8BC1")))])],1)],1)]),e("li",{staticClass:"search-button"},[e("Tooltip",{attrs:{theme:"light",placement:"bottom","transfer-class-name":"search-button-clear",transfer:""}},[e("Button",{attrs:{loading:t.loadIng>0,type:"primary",icon:"ios-search"},on:{click:t.onSearch}},[t._v(t._s(t.$L("\u641C\u7D22")))]),e("div",{attrs:{slot:"content"},slot:"content"},[t.keyIs?e("Button",{attrs:{type:"text"},on:{click:function(a){t.keyIs=!1}}},[t._v(t._s(t.$L("\u53D6\u6D88\u7B5B\u9009")))]):e("Button",{attrs:{loading:t.loadIng>0,type:"text"},on:{click:t.getLists}},[t._v(t._s(t.$L("\u5237\u65B0")))])],1)],1)],1)])]),e("div",{staticClass:"table-page-box"},[e("Table",{attrs:{columns:t.columns,data:t.list,loading:t.loadIng>0,"no-data-text":t.$L(t.noText),stripe:""}}),e("Page",{attrs:{total:t.total,current:t.page,"page-size":t.pageSize,disabled:t.loadIng>0,simple:t.windowSmall,"page-size-opts":[10,20,30,50,100],"show-elevator":"","show-sizer":"","show-total":""},on:{"on-change":t.setPage,"on-page-size-change":t.setPageSize}})],1)])]),e("Modal",{attrs:{title:t.$L(t.departmentData.id>0?"\u4FEE\u6539\u90E8\u95E8":"\u65B0\u5EFA\u90E8\u95E8"),"mask-closable":!1},model:{value:t.departmentShow,callback:function(a){t.departmentShow=a},expression:"departmentShow"}},[e("Form",{ref:"addProject",attrs:{model:t.departmentData,"label-width":"auto"},nativeOn:{submit:function(a){a.preventDefault()}}},[e("FormItem",{attrs:{prop:"name",label:t.$L("\u90E8\u95E8\u540D\u79F0")}},[e("Input",{attrs:{type:"text",placeholder:t.$L("\u8BF7\u8F93\u5165\u90E8\u95E8\u540D\u79F0")},model:{value:t.departmentData.name,callback:function(a){t.$set(t.departmentData,"name",a)},expression:"departmentData.name"}})],1),e("FormItem",{attrs:{prop:"parent_id",label:t.$L("\u4E0A\u7EA7\u90E8\u95E8")}},[e("Select",{attrs:{disabled:t.departmentParentDisabled,placeholder:t.$L("\u8BF7\u9009\u62E9\u4E0A\u7EA7\u90E8\u95E8")},model:{value:t.departmentData.parent_id,callback:function(a){t.$set(t.departmentData,"parent_id",a)},expression:"departmentData.parent_id"}},[e("Option",{attrs:{value:0}},[t._v(t._s(t.$L("\u9ED8\u8BA4\u90E8\u95E8")))]),t._l(t.departmentList,function(a,i){return a.parent_id==0&&a.id!=t.departmentData.id?e("Option",{key:i,attrs:{value:a.id,label:a.name}},[t._v("\xA0\xA0\xA0\xA0"+t._s(a.name))]):t._e()})],2),t.departmentParentDisabled?e("div",{staticClass:"form-tip",staticStyle:{"margin-bottom":"-16px"}},[t._v(t._s(t.$L("\u542B\u6709\u5B50\u90E8\u95E8\u65E0\u6CD5\u4FEE\u6539\u4E0A\u7EA7\u90E8\u95E8")))]):t._e()],1),e("FormItem",{attrs:{prop:"owner_userid",label:t.$L("\u90E8\u95E8\u8D1F\u8D23\u4EBA")}},[e("UserInput",{attrs:{"multiple-max":1,"max-hidden-select":"",placeholder:t.$L("\u8BF7\u9009\u62E9\u90E8\u95E8\u8D1F\u8D23\u4EBA")},model:{value:t.departmentData.owner_userid,callback:function(a){t.$set(t.departmentData,"owner_userid",a)},expression:"departmentData.owner_userid"}})],1),t.departmentData.id==0?[e("Divider",{attrs:{orientation:"left"}},[t._v(t._s(t.$L("\u7FA4\u7EC4\u8BBE\u7F6E")))]),e("FormItem",{attrs:{prop:"dialog_group",label:t.$L("\u90E8\u95E8\u7FA4\u804A")}},[e("RadioGroup",{model:{value:t.departmentData.dialog_group,callback:function(a){t.$set(t.departmentData,"dialog_group",a)},expression:"departmentData.dialog_group"}},[e("Radio",{attrs:{label:"new"}},[t._v(t._s(t.$L("\u521B\u5EFA\u90E8\u95E8\u7FA4")))]),e("Radio",{attrs:{label:"use"}},[t._v(t._s(t.$L("\u4F7F\u7528\u73B0\u6709\u7FA4")))])],1)],1),t.departmentData.dialog_group==="use"?e("FormItem",{attrs:{prop:"dialog_useid",label:t.$L("\u9009\u62E9\u7FA4\u7EC4")}},[e("Select",{attrs:{filterable:"","remote-method":t.dialogRemote,placeholder:t.$L("\u8F93\u5165\u5173\u952E\u8BCD\u641C\u7D22\u7FA4"),loading:t.dialogLoad},model:{value:t.departmentData.dialog_useid,callback:function(a){t.$set(t.departmentData,"dialog_useid",a)},expression:"departmentData.dialog_useid"}},t._l(t.dialogList,function(a,i){return e("Option",{key:i,attrs:{value:a.id,label:a.name}},[e("div",{staticClass:"team-department-add-dialog-group"},[e("div",{staticClass:"dialog-name"},[t._v(t._s(a.name))]),e("UserAvatar",{attrs:{userid:a.owner_id,size:20}})],1)])}),1),e("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u4EC5\u652F\u6301\u9009\u62E9\u4E2A\u4EBA\u7FA4\u8F6C\u4E3A\u90E8\u95E8\u7FA4")))])],1):t._e()]:t._e()],2),e("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[e("Button",{attrs:{type:"default"},on:{click:function(a){t.departmentShow=!1}}},[t._v(t._s(t.$L("\u53D6\u6D88")))]),e("Button",{attrs:{type:"primary",loading:t.departmentLoading>0},on:{click:t.onSaveDepartment}},[t._v(t._s(t.$L(t.departmentData.id>0?"\u4FDD\u5B58":"\u65B0\u5EFA")))])],1)],1),e("Modal",{attrs:{title:t.$L("\u4FEE\u6539\u7B7E\u5230MAC\u5730\u5740")},model:{value:t.checkinMacEditShow,callback:function(a){t.checkinMacEditShow=a},expression:"checkinMacEditShow"}},[e("Form",{attrs:{model:t.checkinMacEditData,"label-width":"auto"},nativeOn:{submit:function(a){a.preventDefault()}}},[e("Alert",{staticStyle:{"margin-bottom":"18px"},attrs:{type:"error"}},[t._v(t._s(t.$L(`\u6B63\u5728\u8FDB\u884C\u5E10\u53F7\u3010ID:${t.checkinMacEditData.userid}\uFF0C${t.checkinMacEditData.nickname}\u3011MAC\u5730\u5740\u4FEE\u6539\u3002`)))]),e("Row",{staticClass:"team-department-checkin-item"},[e("Col",{attrs:{span:"12"}},[t._v(t._s(t.$L("\u8BBE\u5907MAC\u5730\u5740")))]),e("Col",{attrs:{span:"12"}},[t._v(t._s(t.$L("\u5907\u6CE8")))])],1),t._l(t.checkinMacEditData.checkin_macs,function(a,i){return e("Row",{key:i,staticClass:"team-department-checkin-item"},[e("Col",{attrs:{span:"12"}},[e("Input",{attrs:{maxlength:20,placeholder:t.$L("\u8BF7\u8F93\u5165\u8BBE\u5907MAC\u5730\u5740"),clearable:""},on:{"on-clear":function(n){return t.delCheckinDatum(i)}},model:{value:a.mac,callback:function(n){t.$set(a,"mac",n)},expression:"item.mac"}})],1),e("Col",{attrs:{span:"12"}},[e("Input",{attrs:{maxlength:100,placeholder:t.$L("\u5907\u6CE8")},model:{value:a.remark,callback:function(n){t.$set(a,"remark",n)},expression:"item.remark"}})],1)],1)}),e("Button",{attrs:{type:"default",icon:"md-add"},on:{click:t.addCheckinDatum}},[t._v(t._s(t.$L("\u6DFB\u52A0\u8BBE\u5907")))])],2),e("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[e("Button",{attrs:{type:"default"},on:{click:function(a){t.checkinMacEditShow=!1}}},[t._v(t._s(t.$L("\u53D6\u6D88")))]),e("Button",{attrs:{type:"primary",loading:t.checkinMacEditLoading>0},on:{click:function(a){return t.operationUser(t.checkinMacEditData,!0)}}},[t._v(t._s(t.$L("\u786E\u5B9A\u4FEE\u6539")))])],1)],1),e("Modal",{attrs:{title:t.$L("\u4FEE\u6539\u90E8\u95E8")},model:{value:t.departmentEditShow,callback:function(a){t.departmentEditShow=a},expression:"departmentEditShow"}},[e("Form",{attrs:{model:t.departmentEditData,"label-width":"auto"},nativeOn:{submit:function(a){a.preventDefault()}}},[e("Alert",{staticStyle:{"margin-bottom":"18px"},attrs:{type:"error"}},[t._v(t._s(t.$L(`\u6B63\u5728\u8FDB\u884C\u5E10\u53F7\u3010ID:${t.departmentEditData.userid}\uFF0C${t.departmentEditData.nickname}\u3011\u90E8\u95E8\u4FEE\u6539\u3002`)))]),e("FormItem",{attrs:{label:t.$L("\u4FEE\u6539\u90E8\u95E8")}},[e("Select",{attrs:{multiple:"","multiple-max":10,placeholder:t.$L("\u7559\u7A7A\u4E3A\u9ED8\u8BA4\u90E8\u95E8")},model:{value:t.departmentEditData.department,callback:function(a){t.$set(t.departmentEditData,"department",a)},expression:"departmentEditData.department"}},t._l(t.departmentList,function(a,i){return e("Option",{key:i,attrs:{value:a.id}},[t._v(t._s(a.name))])}),1)],1)],1),e("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[e("Button",{attrs:{type:"default"},on:{click:function(a){t.departmentEditShow=!1}}},[t._v(t._s(t.$L("\u53D6\u6D88")))]),e("Button",{attrs:{type:"primary",loading:t.departmentEditLoading>0},on:{click:function(a){return t.operationUser(t.departmentEditData,!0)}}},[t._v(t._s(t.$L("\u786E\u5B9A\u4FEE\u6539")))])],1)],1),e("Modal",{attrs:{title:t.$L("\u64CD\u4F5C\u79BB\u804C")},model:{value:t.disableShow,callback:function(a){t.disableShow=a},expression:"disableShow"}},[e("Form",{attrs:{model:t.disableData,"label-width":"auto"},nativeOn:{submit:function(a){a.preventDefault()}}},[e("Alert",{staticStyle:{"margin-bottom":"18px"},attrs:{type:"error"}},[t._v(t._s(t.$L(`\u6B63\u5728\u8FDB\u884C\u5E10\u53F7\u3010ID:${t.disableData.userid}\uFF0C${t.disableData.nickname}\u3011\u79BB\u804C\u64CD\u4F5C\u3002`)))]),e("FormItem",{attrs:{label:t.$L("\u79BB\u804C\u65F6\u95F4")}},[e("DatePicker",{ref:"disableTime",staticStyle:{width:"100%"},attrs:{editable:!1,placeholder:t.$L("\u9009\u62E9\u79BB\u804C\u65F6\u95F4"),options:t.disableOptions,format:"yyyy/MM/dd HH:mm",type:"datetime"},model:{value:t.disableData.disable_time,callback:function(a){t.$set(t.disableData,"disable_time",a)},expression:"disableData.disable_time"}})],1),e("FormItem",{attrs:{label:t.$L("\u4EA4\u63A5\u4EBA")}},[e("UserInput",{attrs:{"disabled-choice":[t.disableData.userid],"multiple-max":1,"max-hidden-select":"",placeholder:t.$L("\u9009\u62E9\u4EA4\u63A5\u4EBA")},model:{value:t.disableData.transfer_userid,callback:function(a){t.$set(t.disableData,"transfer_userid",a)},expression:"disableData.transfer_userid"}}),e("div",{staticClass:"form-tip"},[t._v(t._s(t.$L(`${t.disableData.nickname} \u8D1F\u8D23\u7684\u90E8\u95E8\u3001\u9879\u76EE\u3001\u4EFB\u52A1\u548C\u6587\u4EF6\u5C06\u79FB\u4EA4\u7ED9\u4EA4\u63A5\u4EBA\uFF1B\u540C\u65F6\u9000\u51FA\u6240\u6709\u7FA4\uFF08\u5982\u679C\u662F\u7FA4\u4E3B\u5219\u8F6C\u8BA9\u7ED9\u4EA4\u63A5\u4EBA\uFF09`)))])],1)],1),e("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[e("Button",{attrs:{type:"default"},on:{click:function(a){t.disableShow=!1}}},[t._v(t._s(t.$L("\u53D6\u6D88")))]),e("Poptip",{staticStyle:{"margin-left":"8px"},attrs:{confirm:"",placement:"bottom","ok-text":t.$L("\u786E\u5B9A"),"cancel-text":t.$L("\u53D6\u6D88"),transfer:""},on:{"on-ok":function(a){return t.operationUser(t.disableData,!0)}}},[e("div",{attrs:{slot:"title"},slot:"title"},[e("p",[t._v(t._s(t.$L("\u6CE8\u610F\uFF1A\u79BB\u804C\u64CD\u4F5C\u4E0D\u53EF\u9006\uFF01")))])]),e("Button",{attrs:{type:"primary",loading:t.disableLoading>0}},[t._v(t._s(t.$L("\u786E\u5B9A\u79BB\u804C")))])],1)],1)],1)],1)},m=[];const u={name:"TeamManagement",components:{UserInput:l},props:{checkinMac:{type:Boolean,default:!1}},data(){return{loadIng:0,keys:{},keyIs:!1,columns:[{title:"ID",key:"userid",width:80,render:(t,{row:s,column:e})=>t("TableAction",{props:{column:e,align:"left"}},[t("div",s.userid)])},{title:this.$L("\u90AE\u7BB1"),key:"email",minWidth:160,render:(t,{row:s})=>{const e=[t("AutoTip",s.email)],{email_verity:a,identity:i,disable_at:n,is_principal:c}=s;return a&&e.push(t("Icon",{props:{type:"md-mail"}})),c&&e.push(t("Tag",{props:{color:"blue"}},this.$L("\u8D1F\u8D23\u4EBA"))),i.includes("ldap")&&e.push(t("Tag",{props:{color:"orange"}},this.$L("LDAP"))),i.includes("admin")&&e.push(t("Tag",{props:{color:"warning"}},this.$L("\u7BA1\u7406\u5458"))),i.includes("temp")&&e.push(t("Tag",{props:{color:"success"}},this.$L("\u4E34\u65F6"))),i.includes("disable")&&e.push(t("Tooltip",{props:{content:this.$L("\u79BB\u804C\u65F6\u95F4")+": "+n}},[t("Tag",{props:{color:"error"}},this.$L("\u79BB\u804C"))])),t("div",{class:"team-email"},e)}},{title:this.$L("\u7535\u8BDD"),key:"tel",minWidth:80,render:(t,{row:s})=>t("QuickEdit",{props:{value:s.tel},on:{"on-update":(e,a)=>{this.operationUser({userid:s.userid,tel:e},!0).finally(a)}}},[t("AutoTip",s.tel||"-")])},{title:this.$L("\u6635\u79F0"),key:"nickname",minWidth:80,render:(t,{row:s})=>t("QuickEdit",{props:{value:s.nickname_original},on:{"on-update":(e,a)=>{this.operationUser({userid:s.userid,nickname:e},!0).finally(a)}}},[t("AutoTip",s.nickname_original||"-")])},{title:this.$L("\u804C\u4F4D/\u804C\u79F0"),key:"profession",minWidth:80,render:(t,{row:s})=>t("QuickEdit",{props:{value:s.profession},on:{"on-update":(e,a)=>{this.operationUser({userid:s.userid,profession:e},!0).finally(a)}}},[t("AutoTip",s.profession||"-")])},{title:this.$L("\u90E8\u95E8"),key:"department",minWidth:80,render:(t,{row:s})=>{let e=[];if(s.department.some(a=>{const i=this.departmentList.find(n=>n.id==a);i&&e.push(i.name)}),e.length===0)return t("div",this.$L("\u9ED8\u8BA4\u90E8\u95E8"));{const a=[];return a.push(t("span",{domProps:{title:e[0]}},e[0])),e.length>1&&(e=e.splice(1),a.push(t("ETooltip",[t("div",{slot:"content",domProps:{innerHTML:e.join("
")}}),t("div",{class:"department-tag-num"},` +${e.length}`)]))),t("div",{class:"team-table-department-warp"},a)}}},{title:this.$L("\u6700\u540E\u5728\u7EBF"),key:"line_at",width:168},{title:this.$L("\u64CD\u4F5C"),align:"center",width:100,render:(t,s)=>{const e=s.row.identity,a=[];e.includes("admin")?a.push(t("EDropdownItem",{props:{command:"clearadmin"}},[t("div",this.$L("\u53D6\u6D88\u7BA1\u7406\u5458"))])):a.push(t("EDropdownItem",{props:{command:"setadmin"}},[t("div",this.$L("\u8BBE\u4E3A\u7BA1\u7406\u5458"))])),e.includes("temp")?a.push(t("EDropdownItem",{props:{command:"cleartemp"}},[t("div",this.$L("\u53D6\u6D88\u4E34\u65F6\u8EAB\u4EFD"))])):a.push(t("EDropdownItem",{props:{command:"settemp"}},[t("div",this.$L("\u8BBE\u4E3A\u4E34\u65F6\u5E10\u53F7"))])),a.push(t("EDropdownItem",{props:{command:"email"}},[t("div",this.$L("\u4FEE\u6539\u90AE\u7BB1"))])),a.push(t("EDropdownItem",{props:{command:"password"}},[t("div",this.$L("\u4FEE\u6539\u5BC6\u7801"))])),this.checkinMac&&a.push(t("EDropdownItem",{props:{command:"checkin_mac"}},[t("div",this.$L("\u4FEE\u6539MAC"))])),a.push(t("EDropdownItem",{props:{command:"department"}},[t("div",this.$L("\u4FEE\u6539\u90E8\u95E8"))])),e.includes("disable")?a.push(t("EDropdownItem",{props:{command:"cleardisable"},style:{color:"#f90"}},[t("div",this.$L("\u6062\u590D\u5E10\u53F7\uFF08\u5DF2\u79BB\u804C\uFF09"))])):a.push(t("EDropdownItem",{props:{command:"setdisable"},style:{color:"#f90"}},[t("div",this.$L("\u64CD\u4F5C\u79BB\u804C"))])),a.push(t("EDropdownItem",{props:{command:"delete"},style:{color:"red"}},[t("div",this.$L("\u5220\u9664"))]));const i=t("EDropdown",{props:{size:"small",trigger:"click"},on:{command:n=>{this.dropUser(n,s.row)}}},[t("Button",{props:{type:"primary",size:"small"},style:{fontSize:"12px"}},this.$L("\u64CD\u4F5C")),t("EDropdownMenu",{slot:"dropdown"},[a])]);return t("TableAction",{props:{column:s.column}},[i])}}],list:[],page:1,pageSize:20,total:0,noText:"",checkinMacEditShow:!1,checkinMacEditLoading:0,checkinMacEditData:{},departmentEditShow:!1,departmentEditLoading:0,departmentEditData:{},disableShow:!1,disableLoading:0,disableData:{},disableOptions:{shortcuts:[{text:this.$L("12:00"),value(){return $A.Date($A.formatDate("Y-m-d 12:00:00"))},onClick:t=>{t.handlePickSuccess()}},{text:this.$L("17:00"),value(){return $A.Date($A.formatDate("Y-m-d 17:00:00"))},onClick:t=>{t.handlePickSuccess()}},{text:this.$L("18:00"),value(){return $A.Date($A.formatDate("Y-m-d 18:00:00"))},onClick:t=>{t.handlePickSuccess()}},{text:this.$L("19:00"),value(){return $A.Date($A.formatDate("Y-m-d 19:00:00"))},onClick:t=>{t.handlePickSuccess()}},{text:this.$L("\u73B0\u5728"),value(){return new Date},onClick:t=>{t.handlePickSuccess()}}]},departmentShow:!1,departmentLoading:0,departmentSelect:-1,departmentData:{id:0,name:"",parent_id:0,owner_userid:[],dialog_group:"new",dialog_useid:0},departmentList:[],dialogLoad:!1,dialogList:[],nullCheckinDatum:{mac:"",remark:""}}},created(){this.checkinMac&&this.columns.splice(5,0,{title:this.$L("MAC\u5730\u5740"),key:"checkin_mac",minWidth:80,render:(t,{row:s})=>{let e=$A.cloneJSON(s.checkin_macs||[]);if(e.length===0)return t("div","-");{const a=n=>n.remark?`${n.mac} (${n.remark})`:n.mac,i=[];return i.push(t("AutoTip",a(e[0]))),e.length>1&&(e=e.splice(1),i.push(t("ETooltip",[t("div",{slot:"content",domProps:{innerHTML:e.map(n=>a(n)).join("
")}}),t("div",{class:"department-tag-num"},` +${e.length}`)]))),t("div",{class:"team-table-department-warp"},i)}}})},mounted(){this.getLists(),this.getDepartmentLists()},watch:{keyIs(t){t||(this.keys={},this.setPage(1))},departmentSelect(){this.setPage(1)}},computed:{departmentParentDisabled(){return!!(this.departmentData.id>0&&this.departmentList.find(({parent_id:t})=>t==this.departmentData.id))}},methods:{onSearch(){this.page=1,this.getLists()},getLists(){this.loadIng++,this.keyIs=$A.objImplode(this.keys)!="";let t=$A.cloneJSON(this.keys);this.departmentSelect>-1&&(t=Object.assign(t,{department:this.departmentSelect})),this.$store.dispatch("call",{url:"users/lists",data:{keys:t,get_checkin_mac:this.checkinMac?1:0,page:Math.max(this.page,1),pagesize:Math.max($A.runNum(this.pageSize),10)}}).then(({data:s})=>{this.page=s.current_page,this.total=s.total,this.list=s.data,this.noText="\u6CA1\u6709\u76F8\u5173\u7684\u6210\u5458"}).catch(()=>{this.noText="\u6570\u636E\u52A0\u8F7D\u5931\u8D25"}).finally(s=>{this.loadIng--})},setPage(t){this.page=t,this.getLists()},setPageSize(t){this.page=1,this.pageSize=t,this.getLists()},dropUser(t,s){switch(t){case"settemp":$A.modalConfirm({content:`\u4F60\u786E\u5B9A\u5C06\u3010ID:${s.userid}\uFF0C${s.nickname}\u3011\u8BBE\u4E3A\u4E34\u65F6\u5E10\u53F7\u5417\uFF1F\uFF08\u6CE8\uFF1A\u4E34\u65F6\u5E10\u53F7\u9650\u5236\u8BF7\u67E5\u770B\u7CFB\u7EDF\u8BBE\u7F6E\uFF09`,loading:!0,onOk:()=>this.operationUser({userid:s.userid,type:t})});break;case"cleartemp":$A.modalConfirm({content:`\u4F60\u786E\u5B9A\u53D6\u6D88\u3010ID:${s.userid}\uFF0C${s.nickname}\u3011\u4E34\u65F6\u8EAB\u4EFD\u5417\uFF1F`,loading:!0,onOk:()=>this.operationUser({userid:s.userid,type:t})});break;case"email":$A.modalInput({title:"\u4FEE\u6539\u90AE\u7BB1",placeholder:`\u8BF7\u8F93\u5165\u65B0\u7684\u90AE\u7BB1\uFF08${s.email}\uFF09`,onOk:a=>a?this.operationUser({userid:s.userid,email:a}):"\u8BF7\u8F93\u5165\u65B0\u7684\u90AE\u7BB1\u5730\u5740"});break;case"password":$A.modalInput({title:"\u4FEE\u6539\u5BC6\u7801",placeholder:"\u8BF7\u8F93\u5165\u65B0\u7684\u5BC6\u7801",onOk:a=>a?this.operationUser({userid:s.userid,password:a}):"\u8BF7\u8F93\u5165\u65B0\u7684\u5BC6\u7801"});break;case"checkin_mac":this.checkinMacEditData={type:"checkin_macs",userid:s.userid,nickname:s.nickname,checkin_macs:s.checkin_macs},this.checkinMacEditData.checkin_macs.length===0&&this.addCheckinDatum(),this.checkinMacEditShow=!0;break;case"department":let e=[];s.department.some(a=>{const i=this.departmentList.find(n=>n.id==a);i&&e.push(i.owner_userid===s.userid?`${i.name} (${this.$L("\u8D1F\u8D23\u4EBA")})`:i.name)}),this.departmentEditData={type:"department",userid:s.userid,nickname:s.nickname,department:s.department.map(a=>parseInt(a))},this.departmentEditShow=!0;break;case"setdisable":this.disableData={type:"setdisable",userid:s.userid,nickname:s.nickname},this.disableShow=!0;break;case"cleardisable":$A.modalConfirm({content:`\u4F60\u786E\u5B9A\u6062\u590D\u5DF2\u79BB\u804C\u5E10\u53F7\u3010ID:${s.userid}\uFF0C${s.nickname}\u3011\u5417\uFF1F\uFF08\u6CE8\uFF1A\u6B64\u64CD\u4F5C\u4EC5\u6062\u590D\u5E10\u53F7\u72B6\u6001\uFF0C\u65E0\u6CD5\u6062\u590D\u64CD\u4F5C\u79BB\u804C\u65F6\u79FB\u4EA4\u7684\u6570\u636E\uFF09`,loading:!0,onOk:()=>this.operationUser({userid:s.userid,type:t})});break;case"delete":$A.modalInput({title:`\u5220\u9664\u5E10\u53F7\u3010ID:${s.userid}\uFF0C${s.nickname}\u3011`,placeholder:"\u8BF7\u8F93\u5165\u5220\u9664\u539F\u56E0",okText:"\u786E\u5B9A\u5220\u9664",onOk:a=>a?this.operationUser({userid:s.userid,type:t,delete_reason:a}):"\u5220\u9664\u539F\u56E0\u4E0D\u80FD\u4E3A\u7A7A"});break;default:this.operationUser({userid:s.userid,type:t},!0);break}},operationUser(t,s){return new Promise((e,a)=>{t.type=="checkin_macs"?this.checkinMacEditLoading++:t.type=="department"?this.departmentEditLoading++:t.type=="setdisable"?this.disableLoading++:this.loadIng++,this.$store.dispatch("call",{url:"users/operation",data:t}).then(({msg:i})=>{$A.messageSuccess(i),this.getLists(),e(),t.type=="checkin_macs"?this.checkinMacEditShow=!1:t.type=="department"?this.departmentEditShow=!1:t.type=="setdisable"&&(this.disableShow=!1)}).catch(({msg:i})=>{s===!0&&$A.modalError(i),this.getLists(),a(i)}).finally(i=>{t.type=="checkin_macs"?this.checkinMacEditLoading--:t.type=="department"?this.departmentEditLoading--:t.type=="setdisable"?this.disableLoading--:this.loadIng--})})},getDepartmentLists(){this.departmentLoading++,this.$store.dispatch("call",{url:"users/department/list"}).then(({data:t})=>{this.departmentList=[],this.generateDepartmentList(t,0,1)}).finally(t=>{this.departmentLoading--})},generateDepartmentList(t,s,e){t.some(a=>{a.parent_id==s&&(this.departmentList.push(Object.assign(a,{level:e+1})),this.generateDepartmentList(t,a.id,e+1))})},onShowDepartment(t){this.departmentData=Object.assign({id:0,name:"",parent_id:0,owner_userid:[],dialog_group:"new"},t||{}),this.departmentShow=!0},onSaveDepartment(){this.departmentLoading++,this.$store.dispatch("call",{url:"users/department/add",data:Object.assign(this.departmentData,{owner_userid:this.departmentData.owner_userid[0]})}).then(({msg:t})=>{$A.messageSuccess(t),this.getDepartmentLists(),this.getLists(),this.departmentShow=!1}).catch(({msg:t})=>{$A.modalError(t)}).finally(t=>{this.departmentLoading--})},onSelectDepartment(t){if(this.departmentSelect===t){this.departmentSelect=-1;return}this.departmentSelect=t},onOpDepartment(t){if($A.leftExists(t,"add_"))this.onShowDepartment({parent_id:parseInt(t.substr(4))});else if($A.leftExists(t,"edit_")){const s=this.departmentList.find(({id:e})=>e===parseInt(t.substr(5)));s&&this.onShowDepartment(s)}else if($A.leftExists(t,"del_")){const s=this.departmentList.find(({id:e})=>e===parseInt(t.substr(4)));s&&$A.modalConfirm({title:this.$L("\u5220\u9664\u90E8\u95E8"),content:`
${this.$L(`\u4F60\u786E\u5B9A\u8981\u5220\u9664\u3010${s.name}\u3011\u90E8\u95E8\u5417\uFF1F`)}
${this.$L("\u6CE8\u610F\uFF1A\u6B64\u64CD\u4F5C\u4E0D\u53EF\u6062\u590D\uFF0C\u90E8\u95E8\u4E0B\u7684\u6210\u5458\u5C06\u79FB\u81F3\u9ED8\u8BA4\u90E8\u95E8\u3002")}
`,language:!1,loading:!0,onOk:()=>new Promise((e,a)=>{this.$store.dispatch("call",{url:"users/department/del",data:{id:s.id}}).then(({msg:i})=>{s.id===this.departmentSelect&&(this.departmentSelect=-1),e(i),this.getDepartmentLists()}).catch(({msg:i})=>{a(i)})})})}},dialogRemote(t){t!==""?(this.dialogLoad=!0,this.$store.dispatch("call",{url:"dialog/group/searchuser",data:{key:t}}).then(({data:s})=>{this.dialogList=s.list}).finally(s=>{this.dialogLoad=!1})):this.dialogList=[]},addCheckinDatum(){this.checkinMacEditData.checkin_macs.push($A.cloneJSON(this.nullCheckinDatum))},delCheckinDatum(t){this.checkinMacEditData.checkin_macs.splice(t,1),this.checkinMacEditData.checkin_macs.length===0&&this.addCheckinDatum()}}},r={};var h=d(u,p,m,!1,_,null,null,null);function _(t){for(let s in r)this[s]=r[s]}var b=function(){return h.exports}(),f=function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("Modal",{attrs:{title:t.$L("\u5BFC\u51FA\u7B7E\u5230\u6570\u636E"),"mask-closable":!1},model:{value:t.show,callback:function(a){t.show=a},expression:"show"}},[e("Form",{ref:"export",attrs:{model:t.formData,"label-width":"auto"},nativeOn:{submit:function(a){a.preventDefault()}}},[e("FormItem",{attrs:{label:t.$L("\u5BFC\u51FA\u6210\u5458")}},[e("UserInput",{attrs:{"multiple-max":100,placeholder:t.$L("\u8BF7\u9009\u62E9\u6210\u5458")},model:{value:t.formData.userid,callback:function(a){t.$set(t.formData,"userid",a)},expression:"formData.userid"}}),e("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u6BCF\u6B21\u6700\u591A\u9009\u62E9\u5BFC\u51FA100\u4E2A\u6210\u5458")))])],1),e("FormItem",{attrs:{label:t.$L("\u7B7E\u5230\u65E5\u671F")}},[e("DatePicker",{staticStyle:{width:"100%"},attrs:{type:"daterange",format:"yyyy/MM/dd",placeholder:t.$L("\u8BF7\u9009\u62E9\u7B7E\u5230\u65E5\u671F")},model:{value:t.formData.date,callback:function(a){t.$set(t.formData,"date",a)},expression:"formData.date"}}),e("div",{staticClass:"form-tip checkin-export-quick-select"},[e("span",[t._v(t._s(t.$L("\u5FEB\u6377\u9009\u62E9"))+":")]),e("em",{on:{click:function(a){t.formData.date=t.dateShortcuts("prev")}}},[t._v(t._s(t.$L("\u4E0A\u4E2A\u6708")))]),e("em",{on:{click:function(a){t.formData.date=t.dateShortcuts("this")}}},[t._v(t._s(t.$L("\u8FD9\u4E2A\u6708")))])])],1),e("FormItem",{attrs:{label:t.$L("\u73ED\u6B21\u65F6\u95F4")}},[e("TimePicker",{staticStyle:{width:"100%"},attrs:{type:"timerange",format:"HH:mm",placeholder:t.$L("\u8BF7\u9009\u62E9\u73ED\u6B21\u65F6\u95F4")},model:{value:t.formData.time,callback:function(a){t.$set(t.formData,"time",a)},expression:"formData.time"}}),e("div",{staticClass:"form-tip checkin-export-quick-select"},[e("span",[t._v(t._s(t.$L("\u5FEB\u6377\u9009\u62E9"))+":")]),e("em",{on:{click:function(a){t.formData.time=["8:30","18:00"]}}},[t._v("8:30-18:00")]),e("em",{on:{click:function(a){t.formData.time=["9:00","18:00"]}}},[t._v("9:00-18:00")]),e("em",{on:{click:function(a){t.formData.time=["9:30","18:00"]}}},[t._v("9:30-18:30")])])],1)],1),e("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[e("Button",{attrs:{type:"default"},on:{click:function(a){t.show=!1}}},[t._v(t._s(t.$L("\u53D6\u6D88")))]),e("Button",{attrs:{type:"primary",loading:t.loadIng>0},on:{click:t.onExport}},[t._v(t._s(t.$L("\u5BFC\u51FA")))])],1)],1)},$=[];const v={name:"CheckinExport",components:{UserInput:l},props:{value:{type:Boolean,default:!1}},data(){return{show:this.value,loadIng:0,formData:{userid:[],date:[],time:[]}}},watch:{value(t){this.show=t},show(t){this.value!==t&&this.$emit("input",t)}},methods:{dateShortcuts(t){if(t==="prev")return[$A.getSpecifyDate("\u4E0A\u4E2A\u6708"),$A.getSpecifyDate("\u4E0A\u4E2A\u6708\u7ED3\u675F")];if(t==="this")return[$A.getSpecifyDate("\u672C\u6708"),$A.getSpecifyDate("\u672C\u6708\u7ED3\u675F")]},onExport(){this.loadIng>0||(this.loadIng++,this.$store.dispatch("call",{url:"system/checkin/export",data:this.formData}).then(({data:t})=>{this.show=!1,this.$store.dispatch("downUrl",{url:t.url})}).catch(({msg:t})=>{$A.modalError(t)}).finally(t=>{this.loadIng--}))}}},o={};var k=d(v,f,$,!1,g,null,null,null);function g(t){for(let s in o)this[s]=o[s]}var y=function(){return k.exports}();export{y as C,b as T}; diff --git a/public/js/build/DialogSelect.52e38d8e.js b/public/js/build/DialogSelect.fb5f42c6.js similarity index 96% rename from public/js/build/DialogSelect.52e38d8e.js rename to public/js/build/DialogSelect.fb5f42c6.js index 21c877cd6..686e4f69d 100644 --- a/public/js/build/DialogSelect.52e38d8e.js +++ b/public/js/build/DialogSelect.fb5f42c6.js @@ -1 +1 @@ -import{U as i}from"./UserInput.1a8a4094.js";import{m as c,n as u}from"./app.7a29bd84.js";const l="ontouchend"in document,h={bind:function(t,s){let a=500,e=s.value;if($A.isJson(s.value)&&(a=s.value.delay||500,e=s.value.callback),typeof e!="function")throw"callback must be a function";if(!l){t.__longpressContextmenu__=r=>{r.preventDefault(),r.stopPropagation(),e(r,t)},t.addEventListener("contextmenu",t.__longpressContextmenu__);return}let n=null,o=!1;t.__longpressStart__=r=>{r.type==="click"&&r.button!==0||(o=!1,n===null&&(n=setTimeout(()=>{o=!0,e(r.touches[0],t)},a)))},t.__longpressCancel__=r=>{n!==null&&(clearTimeout(n),n=null)},t.__longpressClick__=r=>{o&&(r.preventDefault(),r.stopPropagation()),t.__longpressCancel__(r)},t.addEventListener("touchstart",t.__longpressStart__),t.addEventListener("click",t.__longpressClick__),t.addEventListener("touchmove",t.__longpressCancel__),t.addEventListener("touchend",t.__longpressCancel__),t.addEventListener("touchcancel",t.__longpressCancel__)},unbind(t){if(!l){t.removeEventListener("contextmenu",t.__longpressContextmenu__),delete t.__longpressContextmenu__;return}t.removeEventListener("touchstart",t.__longpressStart__),t.removeEventListener("click",t.__longpressClick__),t.removeEventListener("touchmove",t.__longpressCancel__),t.removeEventListener("touchend",t.__longpressCancel__),t.removeEventListener("touchcancel",t.__longpressCancel__),delete t.__longpressStart__,delete t.__longpressClick__,delete t.__longpressCancel__}};var p=function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("Form",{ref:"forwardForm",attrs:{model:t.value,"label-width":"auto"},nativeOn:{submit:function(e){e.preventDefault()}}},[a("FormItem",{attrs:{prop:"dialogids",label:t.$L("\u6700\u8FD1\u804A\u5929")}},[a("Select",{staticClass:"dialog-wrapper-dialogids",attrs:{placeholder:t.$L("\u9009\u62E9\u8F6C\u53D1\u6700\u8FD1\u804A\u5929"),"multiple-max":20,multiple:"",filterable:"","transfer-class-name":"dialog-wrapper-forward"},model:{value:t.value.dialogids,callback:function(e){t.$set(t.value,"dialogids",e)},expression:"value.dialogids"}},[a("div",{staticClass:"forward-drop-prepend",attrs:{slot:"drop-prepend"},slot:"drop-prepend"},[t._v(t._s(t.$L("\u6700\u591A\u53EA\u80FD\u9009\u62E920\u4E2A")))]),t._l(t.dialogList,function(e,n){return a("Option",{key:n,attrs:{value:e.id,"key-value":e.name,label:e.name}},[a("div",{staticClass:"forward-option"},[a("div",{staticClass:"forward-avatar"},[e.type=="group"?[e.group_type=="department"?a("i",{staticClass:"taskfont icon-avatar department"},[t._v("\uE75C")]):e.group_type=="project"?a("i",{staticClass:"taskfont icon-avatar project"},[t._v("\uE6F9")]):e.group_type=="task"?a("i",{staticClass:"taskfont icon-avatar task"},[t._v("\uE6F4")]):a("Icon",{staticClass:"icon-avatar",attrs:{type:"ios-people"}})]:e.dialog_user?a("div",{staticClass:"user-avatar"},[a("UserAvatar",{attrs:{userid:e.dialog_user.userid,size:26}})],1):a("Icon",{staticClass:"icon-avatar",attrs:{type:"md-person"}})],2),a("div",{staticClass:"forward-name"},[t._v(t._s(e.name))])])])})],2)],1),a("FormItem",{attrs:{prop:"userids",label:t.$L("\u6307\u5B9A\u6210\u5458")}},[a("UserInput",{attrs:{"multiple-max":20,placeholder:`(${t.$L("\u6216")}) ${t.$L("\u9009\u62E9\u8F6C\u53D1\u6307\u5B9A\u6210\u5458")}`},model:{value:t.value.userids,callback:function(e){t.$set(t.value,"userids",e)},expression:"value.userids"}})],1)],1)},d=[];const v={name:"DialogSelect",components:{UserInput:i},props:{value:{type:Object,default:()=>({})}},computed:{...c(["cacheDialogs"]),dialogList(){return this.cacheDialogs.filter(t=>!(t.name===void 0||t.dialog_delete===1)).sort((t,s)=>t.top_at||s.top_at?$A.Date(s.top_at)-$A.Date(t.top_at):t.todo_num>0||s.todo_num>0?s.todo_num-t.todo_num:$A.Date(s.last_at)-$A.Date(t.last_at))}}},_={};var m=u(v,p,d,!1,f,null,null,null);function f(t){for(let s in _)this[s]=_[s]}var L=function(){return m.exports}();export{L as D,h as l}; +import{U as i}from"./UserInput.d31ec6c9.js";import{m as c,n as u}from"./app.aaf5ae6f.js";const l="ontouchend"in document,h={bind:function(t,s){let a=500,e=s.value;if($A.isJson(s.value)&&(a=s.value.delay||500,e=s.value.callback),typeof e!="function")throw"callback must be a function";if(!l){t.__longpressContextmenu__=r=>{r.preventDefault(),r.stopPropagation(),e(r,t)},t.addEventListener("contextmenu",t.__longpressContextmenu__);return}let n=null,o=!1;t.__longpressStart__=r=>{r.type==="click"&&r.button!==0||(o=!1,n===null&&(n=setTimeout(()=>{o=!0,e(r.touches[0],t)},a)))},t.__longpressCancel__=r=>{n!==null&&(clearTimeout(n),n=null)},t.__longpressClick__=r=>{o&&(r.preventDefault(),r.stopPropagation()),t.__longpressCancel__(r)},t.addEventListener("touchstart",t.__longpressStart__),t.addEventListener("click",t.__longpressClick__),t.addEventListener("touchmove",t.__longpressCancel__),t.addEventListener("touchend",t.__longpressCancel__),t.addEventListener("touchcancel",t.__longpressCancel__)},unbind(t){if(!l){t.removeEventListener("contextmenu",t.__longpressContextmenu__),delete t.__longpressContextmenu__;return}t.removeEventListener("touchstart",t.__longpressStart__),t.removeEventListener("click",t.__longpressClick__),t.removeEventListener("touchmove",t.__longpressCancel__),t.removeEventListener("touchend",t.__longpressCancel__),t.removeEventListener("touchcancel",t.__longpressCancel__),delete t.__longpressStart__,delete t.__longpressClick__,delete t.__longpressCancel__}};var p=function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("Form",{ref:"forwardForm",attrs:{model:t.value,"label-width":"auto"},nativeOn:{submit:function(e){e.preventDefault()}}},[a("FormItem",{attrs:{prop:"dialogids",label:t.$L("\u6700\u8FD1\u804A\u5929")}},[a("Select",{staticClass:"dialog-wrapper-dialogids",attrs:{placeholder:t.$L("\u9009\u62E9\u8F6C\u53D1\u6700\u8FD1\u804A\u5929"),"multiple-max":20,multiple:"",filterable:"","transfer-class-name":"dialog-wrapper-forward"},model:{value:t.value.dialogids,callback:function(e){t.$set(t.value,"dialogids",e)},expression:"value.dialogids"}},[a("div",{staticClass:"forward-drop-prepend",attrs:{slot:"drop-prepend"},slot:"drop-prepend"},[t._v(t._s(t.$L("\u6700\u591A\u53EA\u80FD\u9009\u62E920\u4E2A")))]),t._l(t.dialogList,function(e,n){return a("Option",{key:n,attrs:{value:e.id,"key-value":e.name,label:e.name}},[a("div",{staticClass:"forward-option"},[a("div",{staticClass:"forward-avatar"},[e.type=="group"?[e.group_type=="department"?a("i",{staticClass:"taskfont icon-avatar department"},[t._v("\uE75C")]):e.group_type=="project"?a("i",{staticClass:"taskfont icon-avatar project"},[t._v("\uE6F9")]):e.group_type=="task"?a("i",{staticClass:"taskfont icon-avatar task"},[t._v("\uE6F4")]):a("Icon",{staticClass:"icon-avatar",attrs:{type:"ios-people"}})]:e.dialog_user?a("div",{staticClass:"user-avatar"},[a("UserAvatar",{attrs:{userid:e.dialog_user.userid,size:26}})],1):a("Icon",{staticClass:"icon-avatar",attrs:{type:"md-person"}})],2),a("div",{staticClass:"forward-name"},[t._v(t._s(e.name))])])])})],2)],1),a("FormItem",{attrs:{prop:"userids",label:t.$L("\u6307\u5B9A\u6210\u5458")}},[a("UserInput",{attrs:{"multiple-max":20,placeholder:`(${t.$L("\u6216")}) ${t.$L("\u9009\u62E9\u8F6C\u53D1\u6307\u5B9A\u6210\u5458")}`},model:{value:t.value.userids,callback:function(e){t.$set(t.value,"userids",e)},expression:"value.userids"}})],1)],1)},d=[];const v={name:"DialogSelect",components:{UserInput:i},props:{value:{type:Object,default:()=>({})}},computed:{...c(["cacheDialogs"]),dialogList(){return this.cacheDialogs.filter(t=>!(t.name===void 0||t.dialog_delete===1)).sort((t,s)=>t.top_at||s.top_at?$A.Date(s.top_at)-$A.Date(t.top_at):t.todo_num>0||s.todo_num>0?s.todo_num-t.todo_num:$A.Date(s.last_at)-$A.Date(t.last_at))}}},_={};var m=u(v,p,d,!1,f,null,null,null);function f(t){for(let s in _)this[s]=_[s]}var L=function(){return m.exports}();export{L as D,h as l}; diff --git a/public/js/build/DialogWrapper.7a212b74.js b/public/js/build/DialogWrapper.1892cac4.js similarity index 98% rename from public/js/build/DialogWrapper.7a212b74.js rename to public/js/build/DialogWrapper.1892cac4.js index d99676cb9..5e7270d0a 100644 --- a/public/js/build/DialogWrapper.7a212b74.js +++ b/public/js/build/DialogWrapper.1892cac4.js @@ -1,4 +1,4 @@ -import{n as Kt,g as qu,e as qa,m as Xn,c as Cl,d as Ya,f as Yu,h as zu,r as $u,V as Hu,i as Vu}from"./app.7a29bd84.js";import{l as za,D as Wu}from"./DialogSelect.52e38d8e.js";import{U as Rl}from"./UserInput.1a8a4094.js";import{D as Ku}from"./index.66539be6.js";import{I as Qu}from"./ImgUpload.4fe6c2dc.js";import Xu from"./details.b7065305.js";var ju=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"common-circle",style:e.style,attrs:{"data-id":e.percent}},[n("svg",{attrs:{viewBox:"0 0 28 28"}},[n("g",{attrs:{fill:"none","fill-rule":"evenodd"}},[n("path",{staticClass:"common-circle-path",attrs:{d:"M-500-100h997V48h-997z"}}),n("g",{attrs:{"fill-rule":"nonzero"}},[n("path",{staticClass:"common-circle-g-path-ring",attrs:{"stroke-width":"3",d:"M14 25.5c6.351 0 11.5-5.149 11.5-11.5S20.351 2.5 14 2.5 2.5 7.649 2.5 14 7.649 25.5 14 25.5z"}}),n("path",{staticClass:"common-circle-g-path-core",attrs:{d:e.arc(e.args)}})])])])])},Zu=[];const Ju={name:"WCircle",props:{percent:{type:Number,default:0},size:{type:Number,default:120}},computed:{style(){let{size:e}=this;return this.isNumeric(e)&&(e+="px"),{width:e,height:e}},args(){const{percent:e}=this;let t=Math.min(360,360/100*e);return t==360?t=0:t==0&&(t=360),{x:14,y:14,r:14,start:360,end:t}}},methods:{isNumeric(e){return e!==""&&!isNaN(parseFloat(e))&&isFinite(e)},point(e,t,n,r){return[(e+Math.sin(r)*n).toFixed(2),(t-Math.cos(r)*n).toFixed(2)]},full(e,t,n,r){return r<=0?`M ${e-n} ${t} A ${n} ${n} 0 1 1 ${e+n} ${t} A ${n} ${n} 1 1 1 ${e-n} ${t} Z`:`M ${e-n} ${t} A ${n} ${n} 0 1 1 ${e+n} ${t} A ${n} ${n} 1 1 1 ${e-n} ${t} M ${e-r} ${t} A ${r} ${r} 0 1 1 ${e+r} ${t} A ${r} ${r} 1 1 1 ${e-r} ${t} Z`},part(e,t,n,r,a,l){const[u,c]=[a/360*2*Math.PI,l/360*2*Math.PI],d=[this.point(e,t,r,u),this.point(e,t,n,u),this.point(e,t,n,c),this.point(e,t,r,c)],f=c-u>Math.PI?"1":"0";return`M ${d[0][0]} ${d[0][1]} L ${d[1][0]} ${d[1][1]} A ${n} ${n} 0 ${f} 1 ${d[2][0]} ${d[2][1]} L ${d[3][0]} ${d[3][1]} A ${r} ${r} 0 ${f} 0 ${d[0][0]} ${d[0][1]} Z`},arc(e){const{x:t=0,y:n=0}=e;let{R:r=0,r:a=0,start:l,end:u}=e;return[r,a]=[Math.max(r,a),Math.min(r,a)],r<=0?"":l!==+l||u!==+u?this.full(t,n,r,a):Math.abs(l-u)<1e-6?"":Math.abs(l-u)%360<1e-6?this.full(t,n,r,a):([l,u]=[l%360,u%360],l>u&&(u+=360),this.part(t,n,r,a,l,u))}}},Ss={};var ed=Kt(Ju,ju,Zu,!1,td,null,null,null);function td(e){for(let t in Ss)this[t]=Ss[t]}var nd=function(){return ed.exports}();var Je={};const rd="\xC1",id="\xE1",ad="\u0102",od="\u0103",sd="\u223E",ld="\u223F",cd="\u223E\u0333",ud="\xC2",dd="\xE2",_d="\xB4",pd="\u0410",md="\u0430",fd="\xC6",gd="\xE6",hd="\u2061",Ed="\u{1D504}",Sd="\u{1D51E}",bd="\xC0",vd="\xE0",Td="\u2135",yd="\u2135",Cd="\u0391",Rd="\u03B1",Od="\u0100",Nd="\u0101",Ad="\u2A3F",Id="&",Dd="&",xd="\u2A55",wd="\u2A53",Md="\u2227",Ld="\u2A5C",kd="\u2A58",Pd="\u2A5A",Bd="\u2220",Fd="\u29A4",Ud="\u2220",Gd="\u29A8",qd="\u29A9",Yd="\u29AA",zd="\u29AB",$d="\u29AC",Hd="\u29AD",Vd="\u29AE",Wd="\u29AF",Kd="\u2221",Qd="\u221F",Xd="\u22BE",jd="\u299D",Zd="\u2222",Jd="\xC5",e_="\u237C",t_="\u0104",n_="\u0105",r_="\u{1D538}",i_="\u{1D552}",a_="\u2A6F",o_="\u2248",s_="\u2A70",l_="\u224A",c_="\u224B",u_="'",d_="\u2061",__="\u2248",p_="\u224A",m_="\xC5",f_="\xE5",g_="\u{1D49C}",h_="\u{1D4B6}",E_="\u2254",S_="*",b_="\u2248",v_="\u224D",T_="\xC3",y_="\xE3",C_="\xC4",R_="\xE4",O_="\u2233",N_="\u2A11",A_="\u224C",I_="\u03F6",D_="\u2035",x_="\u223D",w_="\u22CD",M_="\u2216",L_="\u2AE7",k_="\u22BD",P_="\u2305",B_="\u2306",F_="\u2305",U_="\u23B5",G_="\u23B6",q_="\u224C",Y_="\u0411",z_="\u0431",$_="\u201E",H_="\u2235",V_="\u2235",W_="\u2235",K_="\u29B0",Q_="\u03F6",X_="\u212C",j_="\u212C",Z_="\u0392",J_="\u03B2",ep="\u2136",tp="\u226C",np="\u{1D505}",rp="\u{1D51F}",ip="\u22C2",ap="\u25EF",op="\u22C3",sp="\u2A00",lp="\u2A01",cp="\u2A02",up="\u2A06",dp="\u2605",_p="\u25BD",pp="\u25B3",mp="\u2A04",fp="\u22C1",gp="\u22C0",hp="\u290D",Ep="\u29EB",Sp="\u25AA",bp="\u25B4",vp="\u25BE",Tp="\u25C2",yp="\u25B8",Cp="\u2423",Rp="\u2592",Op="\u2591",Np="\u2593",Ap="\u2588",Ip="=\u20E5",Dp="\u2261\u20E5",xp="\u2AED",wp="\u2310",Mp="\u{1D539}",Lp="\u{1D553}",kp="\u22A5",Pp="\u22A5",Bp="\u22C8",Fp="\u29C9",Up="\u2510",Gp="\u2555",qp="\u2556",Yp="\u2557",zp="\u250C",$p="\u2552",Hp="\u2553",Vp="\u2554",Wp="\u2500",Kp="\u2550",Qp="\u252C",Xp="\u2564",jp="\u2565",Zp="\u2566",Jp="\u2534",em="\u2567",tm="\u2568",nm="\u2569",rm="\u229F",im="\u229E",am="\u22A0",om="\u2518",sm="\u255B",lm="\u255C",cm="\u255D",um="\u2514",dm="\u2558",_m="\u2559",pm="\u255A",mm="\u2502",fm="\u2551",gm="\u253C",hm="\u256A",Em="\u256B",Sm="\u256C",bm="\u2524",vm="\u2561",Tm="\u2562",ym="\u2563",Cm="\u251C",Rm="\u255E",Om="\u255F",Nm="\u2560",Am="\u2035",Im="\u02D8",Dm="\u02D8",xm="\xA6",wm="\u{1D4B7}",Mm="\u212C",Lm="\u204F",km="\u223D",Pm="\u22CD",Bm="\u29C5",Fm="\\",Um="\u27C8",Gm="\u2022",qm="\u2022",Ym="\u224E",zm="\u2AAE",$m="\u224F",Hm="\u224E",Vm="\u224F",Wm="\u0106",Km="\u0107",Qm="\u2A44",Xm="\u2A49",jm="\u2A4B",Zm="\u2229",Jm="\u22D2",ef="\u2A47",tf="\u2A40",nf="\u2145",rf="\u2229\uFE00",af="\u2041",of="\u02C7",sf="\u212D",lf="\u2A4D",cf="\u010C",uf="\u010D",df="\xC7",_f="\xE7",pf="\u0108",mf="\u0109",ff="\u2230",gf="\u2A4C",hf="\u2A50",Ef="\u010A",Sf="\u010B",bf="\xB8",vf="\xB8",Tf="\u29B2",yf="\xA2",Cf="\xB7",Rf="\xB7",Of="\u{1D520}",Nf="\u212D",Af="\u0427",If="\u0447",Df="\u2713",xf="\u2713",wf="\u03A7",Mf="\u03C7",Lf="\u02C6",kf="\u2257",Pf="\u21BA",Bf="\u21BB",Ff="\u229B",Uf="\u229A",Gf="\u229D",qf="\u2299",Yf="\xAE",zf="\u24C8",$f="\u2296",Hf="\u2295",Vf="\u2297",Wf="\u25CB",Kf="\u29C3",Qf="\u2257",Xf="\u2A10",jf="\u2AEF",Zf="\u29C2",Jf="\u2232",e0="\u201D",t0="\u2019",n0="\u2663",r0="\u2663",i0=":",a0="\u2237",o0="\u2A74",s0="\u2254",l0="\u2254",c0=",",u0="@",d0="\u2201",_0="\u2218",p0="\u2201",m0="\u2102",f0="\u2245",g0="\u2A6D",h0="\u2261",E0="\u222E",S0="\u222F",b0="\u222E",v0="\u{1D554}",T0="\u2102",y0="\u2210",C0="\u2210",R0="\xA9",O0="\xA9",N0="\u2117",A0="\u2233",I0="\u21B5",D0="\u2717",x0="\u2A2F",w0="\u{1D49E}",M0="\u{1D4B8}",L0="\u2ACF",k0="\u2AD1",P0="\u2AD0",B0="\u2AD2",F0="\u22EF",U0="\u2938",G0="\u2935",q0="\u22DE",Y0="\u22DF",z0="\u21B6",$0="\u293D",H0="\u2A48",V0="\u2A46",W0="\u224D",K0="\u222A",Q0="\u22D3",X0="\u2A4A",j0="\u228D",Z0="\u2A45",J0="\u222A\uFE00",eg="\u21B7",tg="\u293C",ng="\u22DE",rg="\u22DF",ig="\u22CE",ag="\u22CF",og="\xA4",sg="\u21B6",lg="\u21B7",cg="\u22CE",ug="\u22CF",dg="\u2232",_g="\u2231",pg="\u232D",mg="\u2020",fg="\u2021",gg="\u2138",hg="\u2193",Eg="\u21A1",Sg="\u21D3",bg="\u2010",vg="\u2AE4",Tg="\u22A3",yg="\u290F",Cg="\u02DD",Rg="\u010E",Og="\u010F",Ng="\u0414",Ag="\u0434",Ig="\u2021",Dg="\u21CA",xg="\u2145",wg="\u2146",Mg="\u2911",Lg="\u2A77",kg="\xB0",Pg="\u2207",Bg="\u0394",Fg="\u03B4",Ug="\u29B1",Gg="\u297F",qg="\u{1D507}",Yg="\u{1D521}",zg="\u2965",$g="\u21C3",Hg="\u21C2",Vg="\xB4",Wg="\u02D9",Kg="\u02DD",Qg="`",Xg="\u02DC",jg="\u22C4",Zg="\u22C4",Jg="\u22C4",eh="\u2666",th="\u2666",nh="\xA8",rh="\u2146",ih="\u03DD",ah="\u22F2",oh="\xF7",sh="\xF7",lh="\u22C7",ch="\u22C7",uh="\u0402",dh="\u0452",_h="\u231E",ph="\u230D",mh="$",fh="\u{1D53B}",gh="\u{1D555}",hh="\xA8",Eh="\u02D9",Sh="\u20DC",bh="\u2250",vh="\u2251",Th="\u2250",yh="\u2238",Ch="\u2214",Rh="\u22A1",Oh="\u2306",Nh="\u222F",Ah="\xA8",Ih="\u21D3",Dh="\u21D0",xh="\u21D4",wh="\u2AE4",Mh="\u27F8",Lh="\u27FA",kh="\u27F9",Ph="\u21D2",Bh="\u22A8",Fh="\u21D1",Uh="\u21D5",Gh="\u2225",qh="\u2913",Yh="\u2193",zh="\u2193",$h="\u21D3",Hh="\u21F5",Vh="\u0311",Wh="\u21CA",Kh="\u21C3",Qh="\u21C2",Xh="\u2950",jh="\u295E",Zh="\u2956",Jh="\u21BD",eE="\u295F",tE="\u2957",nE="\u21C1",rE="\u21A7",iE="\u22A4",aE="\u2910",oE="\u231F",sE="\u230C",lE="\u{1D49F}",cE="\u{1D4B9}",uE="\u0405",dE="\u0455",_E="\u29F6",pE="\u0110",mE="\u0111",fE="\u22F1",gE="\u25BF",hE="\u25BE",EE="\u21F5",SE="\u296F",bE="\u29A6",vE="\u040F",TE="\u045F",yE="\u27FF",CE="\xC9",RE="\xE9",OE="\u2A6E",NE="\u011A",AE="\u011B",IE="\xCA",DE="\xEA",xE="\u2256",wE="\u2255",ME="\u042D",LE="\u044D",kE="\u2A77",PE="\u0116",BE="\u0117",FE="\u2251",UE="\u2147",GE="\u2252",qE="\u{1D508}",YE="\u{1D522}",zE="\u2A9A",$E="\xC8",HE="\xE8",VE="\u2A96",WE="\u2A98",KE="\u2A99",QE="\u2208",XE="\u23E7",jE="\u2113",ZE="\u2A95",JE="\u2A97",eS="\u0112",tS="\u0113",nS="\u2205",rS="\u2205",iS="\u25FB",aS="\u2205",oS="\u25AB",sS="\u2004",lS="\u2005",cS="\u2003",uS="\u014A",dS="\u014B",_S="\u2002",pS="\u0118",mS="\u0119",fS="\u{1D53C}",gS="\u{1D556}",hS="\u22D5",ES="\u29E3",SS="\u2A71",bS="\u03B5",vS="\u0395",TS="\u03B5",yS="\u03F5",CS="\u2256",RS="\u2255",OS="\u2242",NS="\u2A96",AS="\u2A95",IS="\u2A75",DS="=",xS="\u2242",wS="\u225F",MS="\u21CC",LS="\u2261",kS="\u2A78",PS="\u29E5",BS="\u2971",FS="\u2253",US="\u212F",GS="\u2130",qS="\u2250",YS="\u2A73",zS="\u2242",$S="\u0397",HS="\u03B7",VS="\xD0",WS="\xF0",KS="\xCB",QS="\xEB",XS="\u20AC",jS="!",ZS="\u2203",JS="\u2203",eb="\u2130",tb="\u2147",nb="\u2147",rb="\u2252",ib="\u0424",ab="\u0444",ob="\u2640",sb="\uFB03",lb="\uFB00",cb="\uFB04",ub="\u{1D509}",db="\u{1D523}",_b="\uFB01",pb="\u25FC",mb="\u25AA",fb="fj",gb="\u266D",hb="\uFB02",Eb="\u25B1",Sb="\u0192",bb="\u{1D53D}",vb="\u{1D557}",Tb="\u2200",yb="\u2200",Cb="\u22D4",Rb="\u2AD9",Ob="\u2131",Nb="\u2A0D",Ab="\xBD",Ib="\u2153",Db="\xBC",xb="\u2155",wb="\u2159",Mb="\u215B",Lb="\u2154",kb="\u2156",Pb="\xBE",Bb="\u2157",Fb="\u215C",Ub="\u2158",Gb="\u215A",qb="\u215D",Yb="\u215E",zb="\u2044",$b="\u2322",Hb="\u{1D4BB}",Vb="\u2131",Wb="\u01F5",Kb="\u0393",Qb="\u03B3",Xb="\u03DC",jb="\u03DD",Zb="\u2A86",Jb="\u011E",ev="\u011F",tv="\u0122",nv="\u011C",rv="\u011D",iv="\u0413",av="\u0433",ov="\u0120",sv="\u0121",lv="\u2265",cv="\u2267",uv="\u2A8C",dv="\u22DB",_v="\u2265",pv="\u2267",mv="\u2A7E",fv="\u2AA9",gv="\u2A7E",hv="\u2A80",Ev="\u2A82",Sv="\u2A84",bv="\u22DB\uFE00",vv="\u2A94",Tv="\u{1D50A}",yv="\u{1D524}",Cv="\u226B",Rv="\u22D9",Ov="\u22D9",Nv="\u2137",Av="\u0403",Iv="\u0453",Dv="\u2AA5",xv="\u2277",wv="\u2A92",Mv="\u2AA4",Lv="\u2A8A",kv="\u2A8A",Pv="\u2A88",Bv="\u2269",Fv="\u2A88",Uv="\u2269",Gv="\u22E7",qv="\u{1D53E}",Yv="\u{1D558}",zv="`",$v="\u2265",Hv="\u22DB",Vv="\u2267",Wv="\u2AA2",Kv="\u2277",Qv="\u2A7E",Xv="\u2273",jv="\u{1D4A2}",Zv="\u210A",Jv="\u2273",eT="\u2A8E",tT="\u2A90",nT="\u2AA7",rT="\u2A7A",iT=">",aT=">",oT="\u226B",sT="\u22D7",lT="\u2995",cT="\u2A7C",uT="\u2A86",dT="\u2978",_T="\u22D7",pT="\u22DB",mT="\u2A8C",fT="\u2277",gT="\u2273",hT="\u2269\uFE00",ET="\u2269\uFE00",ST="\u02C7",bT="\u200A",vT="\xBD",TT="\u210B",yT="\u042A",CT="\u044A",RT="\u2948",OT="\u2194",NT="\u21D4",AT="\u21AD",IT="^",DT="\u210F",xT="\u0124",wT="\u0125",MT="\u2665",LT="\u2665",kT="\u2026",PT="\u22B9",BT="\u{1D525}",FT="\u210C",UT="\u210B",GT="\u2925",qT="\u2926",YT="\u21FF",zT="\u223B",$T="\u21A9",HT="\u21AA",VT="\u{1D559}",WT="\u210D",KT="\u2015",QT="\u2500",XT="\u{1D4BD}",jT="\u210B",ZT="\u210F",JT="\u0126",ey="\u0127",ty="\u224E",ny="\u224F",ry="\u2043",iy="\u2010",ay="\xCD",oy="\xED",sy="\u2063",ly="\xCE",cy="\xEE",uy="\u0418",dy="\u0438",_y="\u0130",py="\u0415",my="\u0435",fy="\xA1",gy="\u21D4",hy="\u{1D526}",Ey="\u2111",Sy="\xCC",by="\xEC",vy="\u2148",Ty="\u2A0C",yy="\u222D",Cy="\u29DC",Ry="\u2129",Oy="\u0132",Ny="\u0133",Ay="\u012A",Iy="\u012B",Dy="\u2111",xy="\u2148",wy="\u2110",My="\u2111",Ly="\u0131",ky="\u2111",Py="\u22B7",By="\u01B5",Fy="\u21D2",Uy="\u2105",Gy="\u221E",qy="\u29DD",Yy="\u0131",zy="\u22BA",$y="\u222B",Hy="\u222C",Vy="\u2124",Wy="\u222B",Ky="\u22BA",Qy="\u22C2",Xy="\u2A17",jy="\u2A3C",Zy="\u2063",Jy="\u2062",e1="\u0401",t1="\u0451",n1="\u012E",r1="\u012F",i1="\u{1D540}",a1="\u{1D55A}",o1="\u0399",s1="\u03B9",l1="\u2A3C",c1="\xBF",u1="\u{1D4BE}",d1="\u2110",_1="\u2208",p1="\u22F5",m1="\u22F9",f1="\u22F4",g1="\u22F3",h1="\u2208",E1="\u2062",S1="\u0128",b1="\u0129",v1="\u0406",T1="\u0456",y1="\xCF",C1="\xEF",R1="\u0134",O1="\u0135",N1="\u0419",A1="\u0439",I1="\u{1D50D}",D1="\u{1D527}",x1="\u0237",w1="\u{1D541}",M1="\u{1D55B}",L1="\u{1D4A5}",k1="\u{1D4BF}",P1="\u0408",B1="\u0458",F1="\u0404",U1="\u0454",G1="\u039A",q1="\u03BA",Y1="\u03F0",z1="\u0136",$1="\u0137",H1="\u041A",V1="\u043A",W1="\u{1D50E}",K1="\u{1D528}",Q1="\u0138",X1="\u0425",j1="\u0445",Z1="\u040C",J1="\u045C",eC="\u{1D542}",tC="\u{1D55C}",nC="\u{1D4A6}",rC="\u{1D4C0}",iC="\u21DA",aC="\u0139",oC="\u013A",sC="\u29B4",lC="\u2112",cC="\u039B",uC="\u03BB",dC="\u27E8",_C="\u27EA",pC="\u2991",mC="\u27E8",fC="\u2A85",gC="\u2112",hC="\xAB",EC="\u21E4",SC="\u291F",bC="\u2190",vC="\u219E",TC="\u21D0",yC="\u291D",CC="\u21A9",RC="\u21AB",OC="\u2939",NC="\u2973",AC="\u21A2",IC="\u2919",DC="\u291B",xC="\u2AAB",wC="\u2AAD",MC="\u2AAD\uFE00",LC="\u290C",kC="\u290E",PC="\u2772",BC="{",FC="[",UC="\u298B",GC="\u298F",qC="\u298D",YC="\u013D",zC="\u013E",$C="\u013B",HC="\u013C",VC="\u2308",WC="{",KC="\u041B",QC="\u043B",XC="\u2936",jC="\u201C",ZC="\u201E",JC="\u2967",eR="\u294B",tR="\u21B2",nR="\u2264",rR="\u2266",iR="\u27E8",aR="\u21E4",oR="\u2190",sR="\u2190",lR="\u21D0",cR="\u21C6",uR="\u21A2",dR="\u2308",_R="\u27E6",pR="\u2961",mR="\u2959",fR="\u21C3",gR="\u230A",hR="\u21BD",ER="\u21BC",SR="\u21C7",bR="\u2194",vR="\u2194",TR="\u21D4",yR="\u21C6",CR="\u21CB",RR="\u21AD",OR="\u294E",NR="\u21A4",AR="\u22A3",IR="\u295A",DR="\u22CB",xR="\u29CF",wR="\u22B2",MR="\u22B4",LR="\u2951",kR="\u2960",PR="\u2958",BR="\u21BF",FR="\u2952",UR="\u21BC",GR="\u2A8B",qR="\u22DA",YR="\u2264",zR="\u2266",$R="\u2A7D",HR="\u2AA8",VR="\u2A7D",WR="\u2A7F",KR="\u2A81",QR="\u2A83",XR="\u22DA\uFE00",jR="\u2A93",ZR="\u2A85",JR="\u22D6",eO="\u22DA",tO="\u2A8B",nO="\u22DA",rO="\u2266",iO="\u2276",aO="\u2276",oO="\u2AA1",sO="\u2272",lO="\u2A7D",cO="\u2272",uO="\u297C",dO="\u230A",_O="\u{1D50F}",pO="\u{1D529}",mO="\u2276",fO="\u2A91",gO="\u2962",hO="\u21BD",EO="\u21BC",SO="\u296A",bO="\u2584",vO="\u0409",TO="\u0459",yO="\u21C7",CO="\u226A",RO="\u22D8",OO="\u231E",NO="\u21DA",AO="\u296B",IO="\u25FA",DO="\u013F",xO="\u0140",wO="\u23B0",MO="\u23B0",LO="\u2A89",kO="\u2A89",PO="\u2A87",BO="\u2268",FO="\u2A87",UO="\u2268",GO="\u22E6",qO="\u27EC",YO="\u21FD",zO="\u27E6",$O="\u27F5",HO="\u27F5",VO="\u27F8",WO="\u27F7",KO="\u27F7",QO="\u27FA",XO="\u27FC",jO="\u27F6",ZO="\u27F6",JO="\u27F9",eN="\u21AB",tN="\u21AC",nN="\u2985",rN="\u{1D543}",iN="\u{1D55D}",aN="\u2A2D",oN="\u2A34",sN="\u2217",lN="_",cN="\u2199",uN="\u2198",dN="\u25CA",_N="\u25CA",pN="\u29EB",mN="(",fN="\u2993",gN="\u21C6",hN="\u231F",EN="\u21CB",SN="\u296D",bN="\u200E",vN="\u22BF",TN="\u2039",yN="\u{1D4C1}",CN="\u2112",RN="\u21B0",ON="\u21B0",NN="\u2272",AN="\u2A8D",IN="\u2A8F",DN="[",xN="\u2018",wN="\u201A",MN="\u0141",LN="\u0142",kN="\u2AA6",PN="\u2A79",BN="<",FN="<",UN="\u226A",GN="\u22D6",qN="\u22CB",YN="\u22C9",zN="\u2976",$N="\u2A7B",HN="\u25C3",VN="\u22B4",WN="\u25C2",KN="\u2996",QN="\u294A",XN="\u2966",jN="\u2268\uFE00",ZN="\u2268\uFE00",JN="\xAF",eA="\u2642",tA="\u2720",nA="\u2720",rA="\u21A6",iA="\u21A6",aA="\u21A7",oA="\u21A4",sA="\u21A5",lA="\u25AE",cA="\u2A29",uA="\u041C",dA="\u043C",_A="\u2014",pA="\u223A",mA="\u2221",fA="\u205F",gA="\u2133",hA="\u{1D510}",EA="\u{1D52A}",SA="\u2127",bA="\xB5",vA="*",TA="\u2AF0",yA="\u2223",CA="\xB7",RA="\u229F",OA="\u2212",NA="\u2238",AA="\u2A2A",IA="\u2213",DA="\u2ADB",xA="\u2026",wA="\u2213",MA="\u22A7",LA="\u{1D544}",kA="\u{1D55E}",PA="\u2213",BA="\u{1D4C2}",FA="\u2133",UA="\u223E",GA="\u039C",qA="\u03BC",YA="\u22B8",zA="\u22B8",HA="\u2207",VA="\u0143",WA="\u0144",KA="\u2220\u20D2",QA="\u2249",XA="\u2A70\u0338",jA="\u224B\u0338",ZA="\u0149",JA="\u2249",eI="\u266E",tI="\u2115",nI="\u266E",rI="\xA0",iI="\u224E\u0338",aI="\u224F\u0338",oI="\u2A43",sI="\u0147",lI="\u0148",cI="\u0145",uI="\u0146",dI="\u2247",_I="\u2A6D\u0338",pI="\u2A42",mI="\u041D",fI="\u043D",gI="\u2013",hI="\u2924",EI="\u2197",SI="\u21D7",bI="\u2197",vI="\u2260",TI="\u2250\u0338",yI="\u200B",CI="\u200B",RI="\u200B",OI="\u200B",NI="\u2262",AI="\u2928",II="\u2242\u0338",DI="\u226B",xI="\u226A",wI=` +import{n as Kt,g as qu,e as qa,m as Xn,c as Cl,d as Ya,f as Yu,h as zu,r as $u,V as Hu,i as Vu}from"./app.aaf5ae6f.js";import{l as za,D as Wu}from"./DialogSelect.fb5f42c6.js";import{U as Rl}from"./UserInput.d31ec6c9.js";import{D as Ku}from"./index.1c7753eb.js";import{I as Qu}from"./ImgUpload.732c31bf.js";import Xu from"./details.ace814ba.js";var ju=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"common-circle",style:e.style,attrs:{"data-id":e.percent}},[n("svg",{attrs:{viewBox:"0 0 28 28"}},[n("g",{attrs:{fill:"none","fill-rule":"evenodd"}},[n("path",{staticClass:"common-circle-path",attrs:{d:"M-500-100h997V48h-997z"}}),n("g",{attrs:{"fill-rule":"nonzero"}},[n("path",{staticClass:"common-circle-g-path-ring",attrs:{"stroke-width":"3",d:"M14 25.5c6.351 0 11.5-5.149 11.5-11.5S20.351 2.5 14 2.5 2.5 7.649 2.5 14 7.649 25.5 14 25.5z"}}),n("path",{staticClass:"common-circle-g-path-core",attrs:{d:e.arc(e.args)}})])])])])},Zu=[];const Ju={name:"WCircle",props:{percent:{type:Number,default:0},size:{type:Number,default:120}},computed:{style(){let{size:e}=this;return this.isNumeric(e)&&(e+="px"),{width:e,height:e}},args(){const{percent:e}=this;let t=Math.min(360,360/100*e);return t==360?t=0:t==0&&(t=360),{x:14,y:14,r:14,start:360,end:t}}},methods:{isNumeric(e){return e!==""&&!isNaN(parseFloat(e))&&isFinite(e)},point(e,t,n,r){return[(e+Math.sin(r)*n).toFixed(2),(t-Math.cos(r)*n).toFixed(2)]},full(e,t,n,r){return r<=0?`M ${e-n} ${t} A ${n} ${n} 0 1 1 ${e+n} ${t} A ${n} ${n} 1 1 1 ${e-n} ${t} Z`:`M ${e-n} ${t} A ${n} ${n} 0 1 1 ${e+n} ${t} A ${n} ${n} 1 1 1 ${e-n} ${t} M ${e-r} ${t} A ${r} ${r} 0 1 1 ${e+r} ${t} A ${r} ${r} 1 1 1 ${e-r} ${t} Z`},part(e,t,n,r,a,l){const[u,c]=[a/360*2*Math.PI,l/360*2*Math.PI],d=[this.point(e,t,r,u),this.point(e,t,n,u),this.point(e,t,n,c),this.point(e,t,r,c)],f=c-u>Math.PI?"1":"0";return`M ${d[0][0]} ${d[0][1]} L ${d[1][0]} ${d[1][1]} A ${n} ${n} 0 ${f} 1 ${d[2][0]} ${d[2][1]} L ${d[3][0]} ${d[3][1]} A ${r} ${r} 0 ${f} 0 ${d[0][0]} ${d[0][1]} Z`},arc(e){const{x:t=0,y:n=0}=e;let{R:r=0,r:a=0,start:l,end:u}=e;return[r,a]=[Math.max(r,a),Math.min(r,a)],r<=0?"":l!==+l||u!==+u?this.full(t,n,r,a):Math.abs(l-u)<1e-6?"":Math.abs(l-u)%360<1e-6?this.full(t,n,r,a):([l,u]=[l%360,u%360],l>u&&(u+=360),this.part(t,n,r,a,l,u))}}},Ss={};var ed=Kt(Ju,ju,Zu,!1,td,null,null,null);function td(e){for(let t in Ss)this[t]=Ss[t]}var nd=function(){return ed.exports}();var Je={};const rd="\xC1",id="\xE1",ad="\u0102",od="\u0103",sd="\u223E",ld="\u223F",cd="\u223E\u0333",ud="\xC2",dd="\xE2",_d="\xB4",pd="\u0410",md="\u0430",fd="\xC6",gd="\xE6",hd="\u2061",Ed="\u{1D504}",Sd="\u{1D51E}",bd="\xC0",vd="\xE0",Td="\u2135",yd="\u2135",Cd="\u0391",Rd="\u03B1",Od="\u0100",Nd="\u0101",Ad="\u2A3F",Id="&",Dd="&",xd="\u2A55",wd="\u2A53",Md="\u2227",Ld="\u2A5C",kd="\u2A58",Pd="\u2A5A",Bd="\u2220",Fd="\u29A4",Ud="\u2220",Gd="\u29A8",qd="\u29A9",Yd="\u29AA",zd="\u29AB",$d="\u29AC",Hd="\u29AD",Vd="\u29AE",Wd="\u29AF",Kd="\u2221",Qd="\u221F",Xd="\u22BE",jd="\u299D",Zd="\u2222",Jd="\xC5",e_="\u237C",t_="\u0104",n_="\u0105",r_="\u{1D538}",i_="\u{1D552}",a_="\u2A6F",o_="\u2248",s_="\u2A70",l_="\u224A",c_="\u224B",u_="'",d_="\u2061",__="\u2248",p_="\u224A",m_="\xC5",f_="\xE5",g_="\u{1D49C}",h_="\u{1D4B6}",E_="\u2254",S_="*",b_="\u2248",v_="\u224D",T_="\xC3",y_="\xE3",C_="\xC4",R_="\xE4",O_="\u2233",N_="\u2A11",A_="\u224C",I_="\u03F6",D_="\u2035",x_="\u223D",w_="\u22CD",M_="\u2216",L_="\u2AE7",k_="\u22BD",P_="\u2305",B_="\u2306",F_="\u2305",U_="\u23B5",G_="\u23B6",q_="\u224C",Y_="\u0411",z_="\u0431",$_="\u201E",H_="\u2235",V_="\u2235",W_="\u2235",K_="\u29B0",Q_="\u03F6",X_="\u212C",j_="\u212C",Z_="\u0392",J_="\u03B2",ep="\u2136",tp="\u226C",np="\u{1D505}",rp="\u{1D51F}",ip="\u22C2",ap="\u25EF",op="\u22C3",sp="\u2A00",lp="\u2A01",cp="\u2A02",up="\u2A06",dp="\u2605",_p="\u25BD",pp="\u25B3",mp="\u2A04",fp="\u22C1",gp="\u22C0",hp="\u290D",Ep="\u29EB",Sp="\u25AA",bp="\u25B4",vp="\u25BE",Tp="\u25C2",yp="\u25B8",Cp="\u2423",Rp="\u2592",Op="\u2591",Np="\u2593",Ap="\u2588",Ip="=\u20E5",Dp="\u2261\u20E5",xp="\u2AED",wp="\u2310",Mp="\u{1D539}",Lp="\u{1D553}",kp="\u22A5",Pp="\u22A5",Bp="\u22C8",Fp="\u29C9",Up="\u2510",Gp="\u2555",qp="\u2556",Yp="\u2557",zp="\u250C",$p="\u2552",Hp="\u2553",Vp="\u2554",Wp="\u2500",Kp="\u2550",Qp="\u252C",Xp="\u2564",jp="\u2565",Zp="\u2566",Jp="\u2534",em="\u2567",tm="\u2568",nm="\u2569",rm="\u229F",im="\u229E",am="\u22A0",om="\u2518",sm="\u255B",lm="\u255C",cm="\u255D",um="\u2514",dm="\u2558",_m="\u2559",pm="\u255A",mm="\u2502",fm="\u2551",gm="\u253C",hm="\u256A",Em="\u256B",Sm="\u256C",bm="\u2524",vm="\u2561",Tm="\u2562",ym="\u2563",Cm="\u251C",Rm="\u255E",Om="\u255F",Nm="\u2560",Am="\u2035",Im="\u02D8",Dm="\u02D8",xm="\xA6",wm="\u{1D4B7}",Mm="\u212C",Lm="\u204F",km="\u223D",Pm="\u22CD",Bm="\u29C5",Fm="\\",Um="\u27C8",Gm="\u2022",qm="\u2022",Ym="\u224E",zm="\u2AAE",$m="\u224F",Hm="\u224E",Vm="\u224F",Wm="\u0106",Km="\u0107",Qm="\u2A44",Xm="\u2A49",jm="\u2A4B",Zm="\u2229",Jm="\u22D2",ef="\u2A47",tf="\u2A40",nf="\u2145",rf="\u2229\uFE00",af="\u2041",of="\u02C7",sf="\u212D",lf="\u2A4D",cf="\u010C",uf="\u010D",df="\xC7",_f="\xE7",pf="\u0108",mf="\u0109",ff="\u2230",gf="\u2A4C",hf="\u2A50",Ef="\u010A",Sf="\u010B",bf="\xB8",vf="\xB8",Tf="\u29B2",yf="\xA2",Cf="\xB7",Rf="\xB7",Of="\u{1D520}",Nf="\u212D",Af="\u0427",If="\u0447",Df="\u2713",xf="\u2713",wf="\u03A7",Mf="\u03C7",Lf="\u02C6",kf="\u2257",Pf="\u21BA",Bf="\u21BB",Ff="\u229B",Uf="\u229A",Gf="\u229D",qf="\u2299",Yf="\xAE",zf="\u24C8",$f="\u2296",Hf="\u2295",Vf="\u2297",Wf="\u25CB",Kf="\u29C3",Qf="\u2257",Xf="\u2A10",jf="\u2AEF",Zf="\u29C2",Jf="\u2232",e0="\u201D",t0="\u2019",n0="\u2663",r0="\u2663",i0=":",a0="\u2237",o0="\u2A74",s0="\u2254",l0="\u2254",c0=",",u0="@",d0="\u2201",_0="\u2218",p0="\u2201",m0="\u2102",f0="\u2245",g0="\u2A6D",h0="\u2261",E0="\u222E",S0="\u222F",b0="\u222E",v0="\u{1D554}",T0="\u2102",y0="\u2210",C0="\u2210",R0="\xA9",O0="\xA9",N0="\u2117",A0="\u2233",I0="\u21B5",D0="\u2717",x0="\u2A2F",w0="\u{1D49E}",M0="\u{1D4B8}",L0="\u2ACF",k0="\u2AD1",P0="\u2AD0",B0="\u2AD2",F0="\u22EF",U0="\u2938",G0="\u2935",q0="\u22DE",Y0="\u22DF",z0="\u21B6",$0="\u293D",H0="\u2A48",V0="\u2A46",W0="\u224D",K0="\u222A",Q0="\u22D3",X0="\u2A4A",j0="\u228D",Z0="\u2A45",J0="\u222A\uFE00",eg="\u21B7",tg="\u293C",ng="\u22DE",rg="\u22DF",ig="\u22CE",ag="\u22CF",og="\xA4",sg="\u21B6",lg="\u21B7",cg="\u22CE",ug="\u22CF",dg="\u2232",_g="\u2231",pg="\u232D",mg="\u2020",fg="\u2021",gg="\u2138",hg="\u2193",Eg="\u21A1",Sg="\u21D3",bg="\u2010",vg="\u2AE4",Tg="\u22A3",yg="\u290F",Cg="\u02DD",Rg="\u010E",Og="\u010F",Ng="\u0414",Ag="\u0434",Ig="\u2021",Dg="\u21CA",xg="\u2145",wg="\u2146",Mg="\u2911",Lg="\u2A77",kg="\xB0",Pg="\u2207",Bg="\u0394",Fg="\u03B4",Ug="\u29B1",Gg="\u297F",qg="\u{1D507}",Yg="\u{1D521}",zg="\u2965",$g="\u21C3",Hg="\u21C2",Vg="\xB4",Wg="\u02D9",Kg="\u02DD",Qg="`",Xg="\u02DC",jg="\u22C4",Zg="\u22C4",Jg="\u22C4",eh="\u2666",th="\u2666",nh="\xA8",rh="\u2146",ih="\u03DD",ah="\u22F2",oh="\xF7",sh="\xF7",lh="\u22C7",ch="\u22C7",uh="\u0402",dh="\u0452",_h="\u231E",ph="\u230D",mh="$",fh="\u{1D53B}",gh="\u{1D555}",hh="\xA8",Eh="\u02D9",Sh="\u20DC",bh="\u2250",vh="\u2251",Th="\u2250",yh="\u2238",Ch="\u2214",Rh="\u22A1",Oh="\u2306",Nh="\u222F",Ah="\xA8",Ih="\u21D3",Dh="\u21D0",xh="\u21D4",wh="\u2AE4",Mh="\u27F8",Lh="\u27FA",kh="\u27F9",Ph="\u21D2",Bh="\u22A8",Fh="\u21D1",Uh="\u21D5",Gh="\u2225",qh="\u2913",Yh="\u2193",zh="\u2193",$h="\u21D3",Hh="\u21F5",Vh="\u0311",Wh="\u21CA",Kh="\u21C3",Qh="\u21C2",Xh="\u2950",jh="\u295E",Zh="\u2956",Jh="\u21BD",eE="\u295F",tE="\u2957",nE="\u21C1",rE="\u21A7",iE="\u22A4",aE="\u2910",oE="\u231F",sE="\u230C",lE="\u{1D49F}",cE="\u{1D4B9}",uE="\u0405",dE="\u0455",_E="\u29F6",pE="\u0110",mE="\u0111",fE="\u22F1",gE="\u25BF",hE="\u25BE",EE="\u21F5",SE="\u296F",bE="\u29A6",vE="\u040F",TE="\u045F",yE="\u27FF",CE="\xC9",RE="\xE9",OE="\u2A6E",NE="\u011A",AE="\u011B",IE="\xCA",DE="\xEA",xE="\u2256",wE="\u2255",ME="\u042D",LE="\u044D",kE="\u2A77",PE="\u0116",BE="\u0117",FE="\u2251",UE="\u2147",GE="\u2252",qE="\u{1D508}",YE="\u{1D522}",zE="\u2A9A",$E="\xC8",HE="\xE8",VE="\u2A96",WE="\u2A98",KE="\u2A99",QE="\u2208",XE="\u23E7",jE="\u2113",ZE="\u2A95",JE="\u2A97",eS="\u0112",tS="\u0113",nS="\u2205",rS="\u2205",iS="\u25FB",aS="\u2205",oS="\u25AB",sS="\u2004",lS="\u2005",cS="\u2003",uS="\u014A",dS="\u014B",_S="\u2002",pS="\u0118",mS="\u0119",fS="\u{1D53C}",gS="\u{1D556}",hS="\u22D5",ES="\u29E3",SS="\u2A71",bS="\u03B5",vS="\u0395",TS="\u03B5",yS="\u03F5",CS="\u2256",RS="\u2255",OS="\u2242",NS="\u2A96",AS="\u2A95",IS="\u2A75",DS="=",xS="\u2242",wS="\u225F",MS="\u21CC",LS="\u2261",kS="\u2A78",PS="\u29E5",BS="\u2971",FS="\u2253",US="\u212F",GS="\u2130",qS="\u2250",YS="\u2A73",zS="\u2242",$S="\u0397",HS="\u03B7",VS="\xD0",WS="\xF0",KS="\xCB",QS="\xEB",XS="\u20AC",jS="!",ZS="\u2203",JS="\u2203",eb="\u2130",tb="\u2147",nb="\u2147",rb="\u2252",ib="\u0424",ab="\u0444",ob="\u2640",sb="\uFB03",lb="\uFB00",cb="\uFB04",ub="\u{1D509}",db="\u{1D523}",_b="\uFB01",pb="\u25FC",mb="\u25AA",fb="fj",gb="\u266D",hb="\uFB02",Eb="\u25B1",Sb="\u0192",bb="\u{1D53D}",vb="\u{1D557}",Tb="\u2200",yb="\u2200",Cb="\u22D4",Rb="\u2AD9",Ob="\u2131",Nb="\u2A0D",Ab="\xBD",Ib="\u2153",Db="\xBC",xb="\u2155",wb="\u2159",Mb="\u215B",Lb="\u2154",kb="\u2156",Pb="\xBE",Bb="\u2157",Fb="\u215C",Ub="\u2158",Gb="\u215A",qb="\u215D",Yb="\u215E",zb="\u2044",$b="\u2322",Hb="\u{1D4BB}",Vb="\u2131",Wb="\u01F5",Kb="\u0393",Qb="\u03B3",Xb="\u03DC",jb="\u03DD",Zb="\u2A86",Jb="\u011E",ev="\u011F",tv="\u0122",nv="\u011C",rv="\u011D",iv="\u0413",av="\u0433",ov="\u0120",sv="\u0121",lv="\u2265",cv="\u2267",uv="\u2A8C",dv="\u22DB",_v="\u2265",pv="\u2267",mv="\u2A7E",fv="\u2AA9",gv="\u2A7E",hv="\u2A80",Ev="\u2A82",Sv="\u2A84",bv="\u22DB\uFE00",vv="\u2A94",Tv="\u{1D50A}",yv="\u{1D524}",Cv="\u226B",Rv="\u22D9",Ov="\u22D9",Nv="\u2137",Av="\u0403",Iv="\u0453",Dv="\u2AA5",xv="\u2277",wv="\u2A92",Mv="\u2AA4",Lv="\u2A8A",kv="\u2A8A",Pv="\u2A88",Bv="\u2269",Fv="\u2A88",Uv="\u2269",Gv="\u22E7",qv="\u{1D53E}",Yv="\u{1D558}",zv="`",$v="\u2265",Hv="\u22DB",Vv="\u2267",Wv="\u2AA2",Kv="\u2277",Qv="\u2A7E",Xv="\u2273",jv="\u{1D4A2}",Zv="\u210A",Jv="\u2273",eT="\u2A8E",tT="\u2A90",nT="\u2AA7",rT="\u2A7A",iT=">",aT=">",oT="\u226B",sT="\u22D7",lT="\u2995",cT="\u2A7C",uT="\u2A86",dT="\u2978",_T="\u22D7",pT="\u22DB",mT="\u2A8C",fT="\u2277",gT="\u2273",hT="\u2269\uFE00",ET="\u2269\uFE00",ST="\u02C7",bT="\u200A",vT="\xBD",TT="\u210B",yT="\u042A",CT="\u044A",RT="\u2948",OT="\u2194",NT="\u21D4",AT="\u21AD",IT="^",DT="\u210F",xT="\u0124",wT="\u0125",MT="\u2665",LT="\u2665",kT="\u2026",PT="\u22B9",BT="\u{1D525}",FT="\u210C",UT="\u210B",GT="\u2925",qT="\u2926",YT="\u21FF",zT="\u223B",$T="\u21A9",HT="\u21AA",VT="\u{1D559}",WT="\u210D",KT="\u2015",QT="\u2500",XT="\u{1D4BD}",jT="\u210B",ZT="\u210F",JT="\u0126",ey="\u0127",ty="\u224E",ny="\u224F",ry="\u2043",iy="\u2010",ay="\xCD",oy="\xED",sy="\u2063",ly="\xCE",cy="\xEE",uy="\u0418",dy="\u0438",_y="\u0130",py="\u0415",my="\u0435",fy="\xA1",gy="\u21D4",hy="\u{1D526}",Ey="\u2111",Sy="\xCC",by="\xEC",vy="\u2148",Ty="\u2A0C",yy="\u222D",Cy="\u29DC",Ry="\u2129",Oy="\u0132",Ny="\u0133",Ay="\u012A",Iy="\u012B",Dy="\u2111",xy="\u2148",wy="\u2110",My="\u2111",Ly="\u0131",ky="\u2111",Py="\u22B7",By="\u01B5",Fy="\u21D2",Uy="\u2105",Gy="\u221E",qy="\u29DD",Yy="\u0131",zy="\u22BA",$y="\u222B",Hy="\u222C",Vy="\u2124",Wy="\u222B",Ky="\u22BA",Qy="\u22C2",Xy="\u2A17",jy="\u2A3C",Zy="\u2063",Jy="\u2062",e1="\u0401",t1="\u0451",n1="\u012E",r1="\u012F",i1="\u{1D540}",a1="\u{1D55A}",o1="\u0399",s1="\u03B9",l1="\u2A3C",c1="\xBF",u1="\u{1D4BE}",d1="\u2110",_1="\u2208",p1="\u22F5",m1="\u22F9",f1="\u22F4",g1="\u22F3",h1="\u2208",E1="\u2062",S1="\u0128",b1="\u0129",v1="\u0406",T1="\u0456",y1="\xCF",C1="\xEF",R1="\u0134",O1="\u0135",N1="\u0419",A1="\u0439",I1="\u{1D50D}",D1="\u{1D527}",x1="\u0237",w1="\u{1D541}",M1="\u{1D55B}",L1="\u{1D4A5}",k1="\u{1D4BF}",P1="\u0408",B1="\u0458",F1="\u0404",U1="\u0454",G1="\u039A",q1="\u03BA",Y1="\u03F0",z1="\u0136",$1="\u0137",H1="\u041A",V1="\u043A",W1="\u{1D50E}",K1="\u{1D528}",Q1="\u0138",X1="\u0425",j1="\u0445",Z1="\u040C",J1="\u045C",eC="\u{1D542}",tC="\u{1D55C}",nC="\u{1D4A6}",rC="\u{1D4C0}",iC="\u21DA",aC="\u0139",oC="\u013A",sC="\u29B4",lC="\u2112",cC="\u039B",uC="\u03BB",dC="\u27E8",_C="\u27EA",pC="\u2991",mC="\u27E8",fC="\u2A85",gC="\u2112",hC="\xAB",EC="\u21E4",SC="\u291F",bC="\u2190",vC="\u219E",TC="\u21D0",yC="\u291D",CC="\u21A9",RC="\u21AB",OC="\u2939",NC="\u2973",AC="\u21A2",IC="\u2919",DC="\u291B",xC="\u2AAB",wC="\u2AAD",MC="\u2AAD\uFE00",LC="\u290C",kC="\u290E",PC="\u2772",BC="{",FC="[",UC="\u298B",GC="\u298F",qC="\u298D",YC="\u013D",zC="\u013E",$C="\u013B",HC="\u013C",VC="\u2308",WC="{",KC="\u041B",QC="\u043B",XC="\u2936",jC="\u201C",ZC="\u201E",JC="\u2967",eR="\u294B",tR="\u21B2",nR="\u2264",rR="\u2266",iR="\u27E8",aR="\u21E4",oR="\u2190",sR="\u2190",lR="\u21D0",cR="\u21C6",uR="\u21A2",dR="\u2308",_R="\u27E6",pR="\u2961",mR="\u2959",fR="\u21C3",gR="\u230A",hR="\u21BD",ER="\u21BC",SR="\u21C7",bR="\u2194",vR="\u2194",TR="\u21D4",yR="\u21C6",CR="\u21CB",RR="\u21AD",OR="\u294E",NR="\u21A4",AR="\u22A3",IR="\u295A",DR="\u22CB",xR="\u29CF",wR="\u22B2",MR="\u22B4",LR="\u2951",kR="\u2960",PR="\u2958",BR="\u21BF",FR="\u2952",UR="\u21BC",GR="\u2A8B",qR="\u22DA",YR="\u2264",zR="\u2266",$R="\u2A7D",HR="\u2AA8",VR="\u2A7D",WR="\u2A7F",KR="\u2A81",QR="\u2A83",XR="\u22DA\uFE00",jR="\u2A93",ZR="\u2A85",JR="\u22D6",eO="\u22DA",tO="\u2A8B",nO="\u22DA",rO="\u2266",iO="\u2276",aO="\u2276",oO="\u2AA1",sO="\u2272",lO="\u2A7D",cO="\u2272",uO="\u297C",dO="\u230A",_O="\u{1D50F}",pO="\u{1D529}",mO="\u2276",fO="\u2A91",gO="\u2962",hO="\u21BD",EO="\u21BC",SO="\u296A",bO="\u2584",vO="\u0409",TO="\u0459",yO="\u21C7",CO="\u226A",RO="\u22D8",OO="\u231E",NO="\u21DA",AO="\u296B",IO="\u25FA",DO="\u013F",xO="\u0140",wO="\u23B0",MO="\u23B0",LO="\u2A89",kO="\u2A89",PO="\u2A87",BO="\u2268",FO="\u2A87",UO="\u2268",GO="\u22E6",qO="\u27EC",YO="\u21FD",zO="\u27E6",$O="\u27F5",HO="\u27F5",VO="\u27F8",WO="\u27F7",KO="\u27F7",QO="\u27FA",XO="\u27FC",jO="\u27F6",ZO="\u27F6",JO="\u27F9",eN="\u21AB",tN="\u21AC",nN="\u2985",rN="\u{1D543}",iN="\u{1D55D}",aN="\u2A2D",oN="\u2A34",sN="\u2217",lN="_",cN="\u2199",uN="\u2198",dN="\u25CA",_N="\u25CA",pN="\u29EB",mN="(",fN="\u2993",gN="\u21C6",hN="\u231F",EN="\u21CB",SN="\u296D",bN="\u200E",vN="\u22BF",TN="\u2039",yN="\u{1D4C1}",CN="\u2112",RN="\u21B0",ON="\u21B0",NN="\u2272",AN="\u2A8D",IN="\u2A8F",DN="[",xN="\u2018",wN="\u201A",MN="\u0141",LN="\u0142",kN="\u2AA6",PN="\u2A79",BN="<",FN="<",UN="\u226A",GN="\u22D6",qN="\u22CB",YN="\u22C9",zN="\u2976",$N="\u2A7B",HN="\u25C3",VN="\u22B4",WN="\u25C2",KN="\u2996",QN="\u294A",XN="\u2966",jN="\u2268\uFE00",ZN="\u2268\uFE00",JN="\xAF",eA="\u2642",tA="\u2720",nA="\u2720",rA="\u21A6",iA="\u21A6",aA="\u21A7",oA="\u21A4",sA="\u21A5",lA="\u25AE",cA="\u2A29",uA="\u041C",dA="\u043C",_A="\u2014",pA="\u223A",mA="\u2221",fA="\u205F",gA="\u2133",hA="\u{1D510}",EA="\u{1D52A}",SA="\u2127",bA="\xB5",vA="*",TA="\u2AF0",yA="\u2223",CA="\xB7",RA="\u229F",OA="\u2212",NA="\u2238",AA="\u2A2A",IA="\u2213",DA="\u2ADB",xA="\u2026",wA="\u2213",MA="\u22A7",LA="\u{1D544}",kA="\u{1D55E}",PA="\u2213",BA="\u{1D4C2}",FA="\u2133",UA="\u223E",GA="\u039C",qA="\u03BC",YA="\u22B8",zA="\u22B8",HA="\u2207",VA="\u0143",WA="\u0144",KA="\u2220\u20D2",QA="\u2249",XA="\u2A70\u0338",jA="\u224B\u0338",ZA="\u0149",JA="\u2249",eI="\u266E",tI="\u2115",nI="\u266E",rI="\xA0",iI="\u224E\u0338",aI="\u224F\u0338",oI="\u2A43",sI="\u0147",lI="\u0148",cI="\u0145",uI="\u0146",dI="\u2247",_I="\u2A6D\u0338",pI="\u2A42",mI="\u041D",fI="\u043D",gI="\u2013",hI="\u2924",EI="\u2197",SI="\u21D7",bI="\u2197",vI="\u2260",TI="\u2250\u0338",yI="\u200B",CI="\u200B",RI="\u200B",OI="\u200B",NI="\u2262",AI="\u2928",II="\u2242\u0338",DI="\u226B",xI="\u226A",wI=` `,MI="\u2204",LI="\u2204",kI="\u{1D511}",PI="\u{1D52B}",BI="\u2267\u0338",FI="\u2271",UI="\u2271",GI="\u2267\u0338",qI="\u2A7E\u0338",YI="\u2A7E\u0338",zI="\u22D9\u0338",$I="\u2275",HI="\u226B\u20D2",VI="\u226F",WI="\u226F",KI="\u226B\u0338",QI="\u21AE",XI="\u21CE",jI="\u2AF2",ZI="\u220B",JI="\u22FC",eD="\u22FA",tD="\u220B",nD="\u040A",rD="\u045A",iD="\u219A",aD="\u21CD",oD="\u2025",sD="\u2266\u0338",lD="\u2270",cD="\u219A",uD="\u21CD",dD="\u21AE",_D="\u21CE",pD="\u2270",mD="\u2266\u0338",fD="\u2A7D\u0338",gD="\u2A7D\u0338",hD="\u226E",ED="\u22D8\u0338",SD="\u2274",bD="\u226A\u20D2",vD="\u226E",TD="\u22EA",yD="\u22EC",CD="\u226A\u0338",RD="\u2224",OD="\u2060",ND="\xA0",AD="\u{1D55F}",ID="\u2115",DD="\u2AEC",xD="\xAC",wD="\u2262",MD="\u226D",LD="\u2226",kD="\u2209",PD="\u2260",BD="\u2242\u0338",FD="\u2204",UD="\u226F",GD="\u2271",qD="\u2267\u0338",YD="\u226B\u0338",zD="\u2279",$D="\u2A7E\u0338",HD="\u2275",VD="\u224E\u0338",WD="\u224F\u0338",KD="\u2209",QD="\u22F5\u0338",XD="\u22F9\u0338",jD="\u2209",ZD="\u22F7",JD="\u22F6",ex="\u29CF\u0338",tx="\u22EA",nx="\u22EC",rx="\u226E",ix="\u2270",ax="\u2278",ox="\u226A\u0338",sx="\u2A7D\u0338",lx="\u2274",cx="\u2AA2\u0338",ux="\u2AA1\u0338",dx="\u220C",_x="\u220C",px="\u22FE",mx="\u22FD",fx="\u2280",gx="\u2AAF\u0338",hx="\u22E0",Ex="\u220C",Sx="\u29D0\u0338",bx="\u22EB",vx="\u22ED",Tx="\u228F\u0338",yx="\u22E2",Cx="\u2290\u0338",Rx="\u22E3",Ox="\u2282\u20D2",Nx="\u2288",Ax="\u2281",Ix="\u2AB0\u0338",Dx="\u22E1",xx="\u227F\u0338",wx="\u2283\u20D2",Mx="\u2289",Lx="\u2241",kx="\u2244",Px="\u2247",Bx="\u2249",Fx="\u2224",Ux="\u2226",Gx="\u2226",qx="\u2AFD\u20E5",Yx="\u2202\u0338",zx="\u2A14",$x="\u2280",Hx="\u22E0",Vx="\u2280",Wx="\u2AAF\u0338",Kx="\u2AAF\u0338",Qx="\u2933\u0338",Xx="\u219B",jx="\u21CF",Zx="\u219D\u0338",Jx="\u219B",ew="\u21CF",tw="\u22EB",nw="\u22ED",rw="\u2281",iw="\u22E1",aw="\u2AB0\u0338",ow="\u{1D4A9}",sw="\u{1D4C3}",lw="\u2224",cw="\u2226",uw="\u2241",dw="\u2244",_w="\u2244",pw="\u2224",mw="\u2226",fw="\u22E2",gw="\u22E3",hw="\u2284",Ew="\u2AC5\u0338",Sw="\u2288",bw="\u2282\u20D2",vw="\u2288",Tw="\u2AC5\u0338",yw="\u2281",Cw="\u2AB0\u0338",Rw="\u2285",Ow="\u2AC6\u0338",Nw="\u2289",Aw="\u2283\u20D2",Iw="\u2289",Dw="\u2AC6\u0338",xw="\u2279",ww="\xD1",Mw="\xF1",Lw="\u2278",kw="\u22EA",Pw="\u22EC",Bw="\u22EB",Fw="\u22ED",Uw="\u039D",Gw="\u03BD",qw="#",Yw="\u2116",zw="\u2007",$w="\u224D\u20D2",Hw="\u22AC",Vw="\u22AD",Ww="\u22AE",Kw="\u22AF",Qw="\u2265\u20D2",Xw=">\u20D2",jw="\u2904",Zw="\u29DE",Jw="\u2902",e2="\u2264\u20D2",t2="<\u20D2",n2="\u22B4\u20D2",r2="\u2903",i2="\u22B5\u20D2",a2="\u223C\u20D2",o2="\u2923",s2="\u2196",l2="\u21D6",c2="\u2196",u2="\u2927",d2="\xD3",_2="\xF3",p2="\u229B",m2="\xD4",f2="\xF4",g2="\u229A",h2="\u041E",E2="\u043E",S2="\u229D",b2="\u0150",v2="\u0151",T2="\u2A38",y2="\u2299",C2="\u29BC",R2="\u0152",O2="\u0153",N2="\u29BF",A2="\u{1D512}",I2="\u{1D52C}",D2="\u02DB",x2="\xD2",w2="\xF2",M2="\u29C1",L2="\u29B5",k2="\u03A9",P2="\u222E",B2="\u21BA",F2="\u29BE",U2="\u29BB",G2="\u203E",q2="\u29C0",Y2="\u014C",z2="\u014D",$2="\u03A9",H2="\u03C9",V2="\u039F",W2="\u03BF",K2="\u29B6",Q2="\u2296",X2="\u{1D546}",j2="\u{1D560}",Z2="\u29B7",J2="\u201C",eM="\u2018",tM="\u29B9",nM="\u2295",rM="\u21BB",iM="\u2A54",aM="\u2228",oM="\u2A5D",sM="\u2134",lM="\u2134",cM="\xAA",uM="\xBA",dM="\u22B6",_M="\u2A56",pM="\u2A57",mM="\u2A5B",fM="\u24C8",gM="\u{1D4AA}",hM="\u2134",EM="\xD8",SM="\xF8",bM="\u2298",vM="\xD5",TM="\xF5",yM="\u2A36",CM="\u2A37",RM="\u2297",OM="\xD6",NM="\xF6",AM="\u233D",IM="\u203E",DM="\u23DE",xM="\u23B4",wM="\u23DC",MM="\xB6",LM="\u2225",kM="\u2225",PM="\u2AF3",BM="\u2AFD",FM="\u2202",UM="\u2202",GM="\u041F",qM="\u043F",YM="%",zM=".",$M="\u2030",HM="\u22A5",VM="\u2031",WM="\u{1D513}",KM="\u{1D52D}",QM="\u03A6",XM="\u03C6",jM="\u03D5",ZM="\u2133",JM="\u260E",e4="\u03A0",t4="\u03C0",n4="\u22D4",r4="\u03D6",i4="\u210F",a4="\u210E",o4="\u210F",s4="\u2A23",l4="\u229E",c4="\u2A22",u4="+",d4="\u2214",_4="\u2A25",p4="\u2A72",m4="\xB1",f4="\xB1",g4="\u2A26",h4="\u2A27",E4="\xB1",S4="\u210C",b4="\u2A15",v4="\u{1D561}",T4="\u2119",y4="\xA3",C4="\u2AB7",R4="\u2ABB",O4="\u227A",N4="\u227C",A4="\u2AB7",I4="\u227A",D4="\u227C",x4="\u227A",w4="\u2AAF",M4="\u227C",L4="\u227E",k4="\u2AAF",P4="\u2AB9",B4="\u2AB5",F4="\u22E8",U4="\u2AAF",G4="\u2AB3",q4="\u227E",Y4="\u2032",z4="\u2033",$4="\u2119",H4="\u2AB9",V4="\u2AB5",W4="\u22E8",K4="\u220F",Q4="\u220F",X4="\u232E",j4="\u2312",Z4="\u2313",J4="\u221D",eL="\u221D",tL="\u2237",nL="\u221D",rL="\u227E",iL="\u22B0",aL="\u{1D4AB}",oL="\u{1D4C5}",sL="\u03A8",lL="\u03C8",cL="\u2008",uL="\u{1D514}",dL="\u{1D52E}",_L="\u2A0C",pL="\u{1D562}",mL="\u211A",fL="\u2057",gL="\u{1D4AC}",hL="\u{1D4C6}",EL="\u210D",SL="\u2A16",bL="?",vL="\u225F",TL='"',yL='"',CL="\u21DB",RL="\u223D\u0331",OL="\u0154",NL="\u0155",AL="\u221A",IL="\u29B3",DL="\u27E9",xL="\u27EB",wL="\u2992",ML="\u29A5",LL="\u27E9",kL="\xBB",PL="\u2975",BL="\u21E5",FL="\u2920",UL="\u2933",GL="\u2192",qL="\u21A0",YL="\u21D2",zL="\u291E",$L="\u21AA",HL="\u21AC",VL="\u2945",WL="\u2974",KL="\u2916",QL="\u21A3",XL="\u219D",jL="\u291A",ZL="\u291C",JL="\u2236",ek="\u211A",tk="\u290D",nk="\u290F",rk="\u2910",ik="\u2773",ak="}",ok="]",sk="\u298C",lk="\u298E",ck="\u2990",uk="\u0158",dk="\u0159",_k="\u0156",pk="\u0157",mk="\u2309",fk="}",gk="\u0420",hk="\u0440",Ek="\u2937",Sk="\u2969",bk="\u201D",vk="\u201D",Tk="\u21B3",yk="\u211C",Ck="\u211B",Rk="\u211C",Ok="\u211D",Nk="\u211C",Ak="\u25AD",Ik="\xAE",Dk="\xAE",xk="\u220B",wk="\u21CB",Mk="\u296F",Lk="\u297D",kk="\u230B",Pk="\u{1D52F}",Bk="\u211C",Fk="\u2964",Uk="\u21C1",Gk="\u21C0",qk="\u296C",Yk="\u03A1",zk="\u03C1",$k="\u03F1",Hk="\u27E9",Vk="\u21E5",Wk="\u2192",Kk="\u2192",Qk="\u21D2",Xk="\u21C4",jk="\u21A3",Zk="\u2309",Jk="\u27E7",e3="\u295D",t3="\u2955",n3="\u21C2",r3="\u230B",i3="\u21C1",a3="\u21C0",o3="\u21C4",s3="\u21CC",l3="\u21C9",c3="\u219D",u3="\u21A6",d3="\u22A2",_3="\u295B",p3="\u22CC",m3="\u29D0",f3="\u22B3",g3="\u22B5",h3="\u294F",E3="\u295C",S3="\u2954",b3="\u21BE",v3="\u2953",T3="\u21C0",y3="\u02DA",C3="\u2253",R3="\u21C4",O3="\u21CC",N3="\u200F",A3="\u23B1",I3="\u23B1",D3="\u2AEE",x3="\u27ED",w3="\u21FE",M3="\u27E7",L3="\u2986",k3="\u{1D563}",P3="\u211D",B3="\u2A2E",F3="\u2A35",U3="\u2970",G3=")",q3="\u2994",Y3="\u2A12",z3="\u21C9",$3="\u21DB",H3="\u203A",V3="\u{1D4C7}",W3="\u211B",K3="\u21B1",Q3="\u21B1",X3="]",j3="\u2019",Z3="\u2019",J3="\u22CC",e5="\u22CA",t5="\u25B9",n5="\u22B5",r5="\u25B8",i5="\u29CE",a5="\u29F4",o5="\u2968",s5="\u211E",l5="\u015A",c5="\u015B",u5="\u201A",d5="\u2AB8",_5="\u0160",p5="\u0161",m5="\u2ABC",f5="\u227B",g5="\u227D",h5="\u2AB0",E5="\u2AB4",S5="\u015E",b5="\u015F",v5="\u015C",T5="\u015D",y5="\u2ABA",C5="\u2AB6",R5="\u22E9",O5="\u2A13",N5="\u227F",A5="\u0421",I5="\u0441",D5="\u22A1",x5="\u22C5",w5="\u2A66",M5="\u2925",L5="\u2198",k5="\u21D8",P5="\u2198",B5="\xA7",F5=";",U5="\u2929",G5="\u2216",q5="\u2216",Y5="\u2736",z5="\u{1D516}",$5="\u{1D530}",H5="\u2322",V5="\u266F",W5="\u0429",K5="\u0449",Q5="\u0428",X5="\u0448",j5="\u2193",Z5="\u2190",J5="\u2223",eP="\u2225",tP="\u2192",nP="\u2191",rP="\xAD",iP="\u03A3",aP="\u03C3",oP="\u03C2",sP="\u03C2",lP="\u223C",cP="\u2A6A",uP="\u2243",dP="\u2243",_P="\u2A9E",pP="\u2AA0",mP="\u2A9D",fP="\u2A9F",gP="\u2246",hP="\u2A24",EP="\u2972",SP="\u2190",bP="\u2218",vP="\u2216",TP="\u2A33",yP="\u29E4",CP="\u2223",RP="\u2323",OP="\u2AAA",NP="\u2AAC",AP="\u2AAC\uFE00",IP="\u042C",DP="\u044C",xP="\u233F",wP="\u29C4",MP="/",LP="\u{1D54A}",kP="\u{1D564}",PP="\u2660",BP="\u2660",FP="\u2225",UP="\u2293",GP="\u2293\uFE00",qP="\u2294",YP="\u2294\uFE00",zP="\u221A",$P="\u228F",HP="\u2291",VP="\u228F",WP="\u2291",KP="\u2290",QP="\u2292",XP="\u2290",jP="\u2292",ZP="\u25A1",JP="\u25A1",e6="\u2293",t6="\u228F",n6="\u2291",r6="\u2290",i6="\u2292",a6="\u2294",o6="\u25AA",s6="\u25A1",l6="\u25AA",c6="\u2192",u6="\u{1D4AE}",d6="\u{1D4C8}",_6="\u2216",p6="\u2323",m6="\u22C6",f6="\u22C6",g6="\u2606",h6="\u2605",E6="\u03F5",S6="\u03D5",b6="\xAF",v6="\u2282",T6="\u22D0",y6="\u2ABD",C6="\u2AC5",R6="\u2286",O6="\u2AC3",N6="\u2AC1",A6="\u2ACB",I6="\u228A",D6="\u2ABF",x6="\u2979",w6="\u2282",M6="\u22D0",L6="\u2286",k6="\u2AC5",P6="\u2286",B6="\u228A",F6="\u2ACB",U6="\u2AC7",G6="\u2AD5",q6="\u2AD3",Y6="\u2AB8",z6="\u227B",$6="\u227D",H6="\u227B",V6="\u2AB0",W6="\u227D",K6="\u227F",Q6="\u2AB0",X6="\u2ABA",j6="\u2AB6",Z6="\u22E9",J6="\u227F",e7="\u220B",t7="\u2211",n7="\u2211",r7="\u266A",i7="\xB9",a7="\xB2",o7="\xB3",s7="\u2283",l7="\u22D1",c7="\u2ABE",u7="\u2AD8",d7="\u2AC6",_7="\u2287",p7="\u2AC4",m7="\u2283",f7="\u2287",g7="\u27C9",h7="\u2AD7",E7="\u297B",S7="\u2AC2",b7="\u2ACC",v7="\u228B",T7="\u2AC0",y7="\u2283",C7="\u22D1",R7="\u2287",O7="\u2AC6",N7="\u228B",A7="\u2ACC",I7="\u2AC8",D7="\u2AD4",x7="\u2AD6",w7="\u2926",M7="\u2199",L7="\u21D9",k7="\u2199",P7="\u292A",B7="\xDF",F7=" ",U7="\u2316",G7="\u03A4",q7="\u03C4",Y7="\u23B4",z7="\u0164",$7="\u0165",H7="\u0162",V7="\u0163",W7="\u0422",K7="\u0442",Q7="\u20DB",X7="\u2315",j7="\u{1D517}",Z7="\u{1D531}",J7="\u2234",e8="\u2234",t8="\u2234",n8="\u0398",r8="\u03B8",i8="\u03D1",a8="\u03D1",o8="\u2248",s8="\u223C",l8="\u205F\u200A",c8="\u2009",u8="\u2009",d8="\u2248",_8="\u223C",p8="\xDE",m8="\xFE",f8="\u02DC",g8="\u223C",h8="\u2243",E8="\u2245",S8="\u2248",b8="\u2A31",v8="\u22A0",T8="\xD7",y8="\u2A30",C8="\u222D",R8="\u2928",O8="\u2336",N8="\u2AF1",A8="\u22A4",I8="\u{1D54B}",D8="\u{1D565}",x8="\u2ADA",w8="\u2929",M8="\u2034",L8="\u2122",k8="\u2122",P8="\u25B5",B8="\u25BF",F8="\u25C3",U8="\u22B4",G8="\u225C",q8="\u25B9",Y8="\u22B5",z8="\u25EC",$8="\u225C",H8="\u2A3A",V8="\u20DB",W8="\u2A39",K8="\u29CD",Q8="\u2A3B",X8="\u23E2",j8="\u{1D4AF}",Z8="\u{1D4C9}",J8="\u0426",e9="\u0446",t9="\u040B",n9="\u045B",r9="\u0166",i9="\u0167",a9="\u226C",o9="\u219E",s9="\u21A0",l9="\xDA",c9="\xFA",u9="\u2191",d9="\u219F",_9="\u21D1",p9="\u2949",m9="\u040E",f9="\u045E",g9="\u016C",h9="\u016D",E9="\xDB",S9="\xFB",b9="\u0423",v9="\u0443",T9="\u21C5",y9="\u0170",C9="\u0171",R9="\u296E",O9="\u297E",N9="\u{1D518}",A9="\u{1D532}",I9="\xD9",D9="\xF9",x9="\u2963",w9="\u21BF",M9="\u21BE",L9="\u2580",k9="\u231C",P9="\u231C",B9="\u230F",F9="\u25F8",U9="\u016A",G9="\u016B",q9="\xA8",Y9="_",z9="\u23DF",$9="\u23B5",H9="\u23DD",V9="\u22C3",W9="\u228E",K9="\u0172",Q9="\u0173",X9="\u{1D54C}",j9="\u{1D566}",Z9="\u2912",J9="\u2191",eB="\u2191",tB="\u21D1",nB="\u21C5",rB="\u2195",iB="\u2195",aB="\u21D5",oB="\u296E",sB="\u21BF",lB="\u21BE",cB="\u228E",uB="\u2196",dB="\u2197",_B="\u03C5",pB="\u03D2",mB="\u03D2",fB="\u03A5",gB="\u03C5",hB="\u21A5",EB="\u22A5",SB="\u21C8",bB="\u231D",vB="\u231D",TB="\u230E",yB="\u016E",CB="\u016F",RB="\u25F9",OB="\u{1D4B0}",NB="\u{1D4CA}",AB="\u22F0",IB="\u0168",DB="\u0169",xB="\u25B5",wB="\u25B4",MB="\u21C8",LB="\xDC",kB="\xFC",PB="\u29A7",BB="\u299C",FB="\u03F5",UB="\u03F0",GB="\u2205",qB="\u03D5",YB="\u03D6",zB="\u221D",$B="\u2195",HB="\u21D5",VB="\u03F1",WB="\u03C2",KB="\u228A\uFE00",QB="\u2ACB\uFE00",XB="\u228B\uFE00",jB="\u2ACC\uFE00",ZB="\u03D1",JB="\u22B2",eF="\u22B3",tF="\u2AE8",nF="\u2AEB",rF="\u2AE9",iF="\u0412",aF="\u0432",oF="\u22A2",sF="\u22A8",lF="\u22A9",cF="\u22AB",uF="\u2AE6",dF="\u22BB",_F="\u2228",pF="\u22C1",mF="\u225A",fF="\u22EE",gF="|",hF="\u2016",EF="|",SF="\u2016",bF="\u2223",vF="|",TF="\u2758",yF="\u2240",CF="\u200A",RF="\u{1D519}",OF="\u{1D533}",NF="\u22B2",AF="\u2282\u20D2",IF="\u2283\u20D2",DF="\u{1D54D}",xF="\u{1D567}",wF="\u221D",MF="\u22B3",LF="\u{1D4B1}",kF="\u{1D4CB}",PF="\u2ACB\uFE00",BF="\u228A\uFE00",FF="\u2ACC\uFE00",UF="\u228B\uFE00",GF="\u22AA",qF="\u299A",YF="\u0174",zF="\u0175",$F="\u2A5F",HF="\u2227",VF="\u22C0",WF="\u2259",KF="\u2118",QF="\u{1D51A}",XF="\u{1D534}",jF="\u{1D54E}",ZF="\u{1D568}",JF="\u2118",eU="\u2240",tU="\u2240",nU="\u{1D4B2}",rU="\u{1D4CC}",iU="\u22C2",aU="\u25EF",oU="\u22C3",sU="\u25BD",lU="\u{1D51B}",cU="\u{1D535}",uU="\u27F7",dU="\u27FA",_U="\u039E",pU="\u03BE",mU="\u27F5",fU="\u27F8",gU="\u27FC",hU="\u22FB",EU="\u2A00",SU="\u{1D54F}",bU="\u{1D569}",vU="\u2A01",TU="\u2A02",yU="\u27F6",CU="\u27F9",RU="\u{1D4B3}",OU="\u{1D4CD}",NU="\u2A06",AU="\u2A04",IU="\u25B3",DU="\u22C1",xU="\u22C0",wU="\xDD",MU="\xFD",LU="\u042F",kU="\u044F",PU="\u0176",BU="\u0177",FU="\u042B",UU="\u044B",GU="\xA5",qU="\u{1D51C}",YU="\u{1D536}",zU="\u0407",$U="\u0457",HU="\u{1D550}",VU="\u{1D56A}",WU="\u{1D4B4}",KU="\u{1D4CE}",QU="\u042E",XU="\u044E",jU="\xFF",ZU="\u0178",JU="\u0179",eG="\u017A",tG="\u017D",nG="\u017E",rG="\u0417",iG="\u0437",aG="\u017B",oG="\u017C",sG="\u2128",lG="\u200B",cG="\u0396",uG="\u03B6",dG="\u{1D537}",_G="\u2128",pG="\u0416",mG="\u0436",fG="\u21DD",gG="\u{1D56B}",hG="\u2124",EG="\u{1D4B5}",SG="\u{1D4CF}",bG="\u200D",vG="\u200C";var TG={Aacute:rd,aacute:id,Abreve:ad,abreve:od,ac:sd,acd:ld,acE:cd,Acirc:ud,acirc:dd,acute:_d,Acy:pd,acy:md,AElig:fd,aelig:gd,af:hd,Afr:Ed,afr:Sd,Agrave:bd,agrave:vd,alefsym:Td,aleph:yd,Alpha:Cd,alpha:Rd,Amacr:Od,amacr:Nd,amalg:Ad,amp:Id,AMP:Dd,andand:xd,And:wd,and:Md,andd:Ld,andslope:kd,andv:Pd,ang:Bd,ange:Fd,angle:Ud,angmsdaa:Gd,angmsdab:qd,angmsdac:Yd,angmsdad:zd,angmsdae:$d,angmsdaf:Hd,angmsdag:Vd,angmsdah:Wd,angmsd:Kd,angrt:Qd,angrtvb:Xd,angrtvbd:jd,angsph:Zd,angst:Jd,angzarr:e_,Aogon:t_,aogon:n_,Aopf:r_,aopf:i_,apacir:a_,ap:o_,apE:s_,ape:l_,apid:c_,apos:u_,ApplyFunction:d_,approx:__,approxeq:p_,Aring:m_,aring:f_,Ascr:g_,ascr:h_,Assign:E_,ast:S_,asymp:b_,asympeq:v_,Atilde:T_,atilde:y_,Auml:C_,auml:R_,awconint:O_,awint:N_,backcong:A_,backepsilon:I_,backprime:D_,backsim:x_,backsimeq:w_,Backslash:M_,Barv:L_,barvee:k_,barwed:P_,Barwed:B_,barwedge:F_,bbrk:U_,bbrktbrk:G_,bcong:q_,Bcy:Y_,bcy:z_,bdquo:$_,becaus:H_,because:V_,Because:W_,bemptyv:K_,bepsi:Q_,bernou:X_,Bernoullis:j_,Beta:Z_,beta:J_,beth:ep,between:tp,Bfr:np,bfr:rp,bigcap:ip,bigcirc:ap,bigcup:op,bigodot:sp,bigoplus:lp,bigotimes:cp,bigsqcup:up,bigstar:dp,bigtriangledown:_p,bigtriangleup:pp,biguplus:mp,bigvee:fp,bigwedge:gp,bkarow:hp,blacklozenge:Ep,blacksquare:Sp,blacktriangle:bp,blacktriangledown:vp,blacktriangleleft:Tp,blacktriangleright:yp,blank:Cp,blk12:Rp,blk14:Op,blk34:Np,block:Ap,bne:Ip,bnequiv:Dp,bNot:xp,bnot:wp,Bopf:Mp,bopf:Lp,bot:kp,bottom:Pp,bowtie:Bp,boxbox:Fp,boxdl:Up,boxdL:Gp,boxDl:qp,boxDL:Yp,boxdr:zp,boxdR:$p,boxDr:Hp,boxDR:Vp,boxh:Wp,boxH:Kp,boxhd:Qp,boxHd:Xp,boxhD:jp,boxHD:Zp,boxhu:Jp,boxHu:em,boxhU:tm,boxHU:nm,boxminus:rm,boxplus:im,boxtimes:am,boxul:om,boxuL:sm,boxUl:lm,boxUL:cm,boxur:um,boxuR:dm,boxUr:_m,boxUR:pm,boxv:mm,boxV:fm,boxvh:gm,boxvH:hm,boxVh:Em,boxVH:Sm,boxvl:bm,boxvL:vm,boxVl:Tm,boxVL:ym,boxvr:Cm,boxvR:Rm,boxVr:Om,boxVR:Nm,bprime:Am,breve:Im,Breve:Dm,brvbar:xm,bscr:wm,Bscr:Mm,bsemi:Lm,bsim:km,bsime:Pm,bsolb:Bm,bsol:Fm,bsolhsub:Um,bull:Gm,bullet:qm,bump:Ym,bumpE:zm,bumpe:$m,Bumpeq:Hm,bumpeq:Vm,Cacute:Wm,cacute:Km,capand:Qm,capbrcup:Xm,capcap:jm,cap:Zm,Cap:Jm,capcup:ef,capdot:tf,CapitalDifferentialD:nf,caps:rf,caret:af,caron:of,Cayleys:sf,ccaps:lf,Ccaron:cf,ccaron:uf,Ccedil:df,ccedil:_f,Ccirc:pf,ccirc:mf,Cconint:ff,ccups:gf,ccupssm:hf,Cdot:Ef,cdot:Sf,cedil:bf,Cedilla:vf,cemptyv:Tf,cent:yf,centerdot:Cf,CenterDot:Rf,cfr:Of,Cfr:Nf,CHcy:Af,chcy:If,check:Df,checkmark:xf,Chi:wf,chi:Mf,circ:Lf,circeq:kf,circlearrowleft:Pf,circlearrowright:Bf,circledast:Ff,circledcirc:Uf,circleddash:Gf,CircleDot:qf,circledR:Yf,circledS:zf,CircleMinus:$f,CirclePlus:Hf,CircleTimes:Vf,cir:Wf,cirE:Kf,cire:Qf,cirfnint:Xf,cirmid:jf,cirscir:Zf,ClockwiseContourIntegral:Jf,CloseCurlyDoubleQuote:e0,CloseCurlyQuote:t0,clubs:n0,clubsuit:r0,colon:i0,Colon:a0,Colone:o0,colone:s0,coloneq:l0,comma:c0,commat:u0,comp:d0,compfn:_0,complement:p0,complexes:m0,cong:f0,congdot:g0,Congruent:h0,conint:E0,Conint:S0,ContourIntegral:b0,copf:v0,Copf:T0,coprod:y0,Coproduct:C0,copy:R0,COPY:O0,copysr:N0,CounterClockwiseContourIntegral:A0,crarr:I0,cross:D0,Cross:x0,Cscr:w0,cscr:M0,csub:L0,csube:k0,csup:P0,csupe:B0,ctdot:F0,cudarrl:U0,cudarrr:G0,cuepr:q0,cuesc:Y0,cularr:z0,cularrp:$0,cupbrcap:H0,cupcap:V0,CupCap:W0,cup:K0,Cup:Q0,cupcup:X0,cupdot:j0,cupor:Z0,cups:J0,curarr:eg,curarrm:tg,curlyeqprec:ng,curlyeqsucc:rg,curlyvee:ig,curlywedge:ag,curren:og,curvearrowleft:sg,curvearrowright:lg,cuvee:cg,cuwed:ug,cwconint:dg,cwint:_g,cylcty:pg,dagger:mg,Dagger:fg,daleth:gg,darr:hg,Darr:Eg,dArr:Sg,dash:bg,Dashv:vg,dashv:Tg,dbkarow:yg,dblac:Cg,Dcaron:Rg,dcaron:Og,Dcy:Ng,dcy:Ag,ddagger:Ig,ddarr:Dg,DD:xg,dd:wg,DDotrahd:Mg,ddotseq:Lg,deg:kg,Del:Pg,Delta:Bg,delta:Fg,demptyv:Ug,dfisht:Gg,Dfr:qg,dfr:Yg,dHar:zg,dharl:$g,dharr:Hg,DiacriticalAcute:Vg,DiacriticalDot:Wg,DiacriticalDoubleAcute:Kg,DiacriticalGrave:Qg,DiacriticalTilde:Xg,diam:jg,diamond:Zg,Diamond:Jg,diamondsuit:eh,diams:th,die:nh,DifferentialD:rh,digamma:ih,disin:ah,div:oh,divide:sh,divideontimes:lh,divonx:ch,DJcy:uh,djcy:dh,dlcorn:_h,dlcrop:ph,dollar:mh,Dopf:fh,dopf:gh,Dot:hh,dot:Eh,DotDot:Sh,doteq:bh,doteqdot:vh,DotEqual:Th,dotminus:yh,dotplus:Ch,dotsquare:Rh,doublebarwedge:Oh,DoubleContourIntegral:Nh,DoubleDot:Ah,DoubleDownArrow:Ih,DoubleLeftArrow:Dh,DoubleLeftRightArrow:xh,DoubleLeftTee:wh,DoubleLongLeftArrow:Mh,DoubleLongLeftRightArrow:Lh,DoubleLongRightArrow:kh,DoubleRightArrow:Ph,DoubleRightTee:Bh,DoubleUpArrow:Fh,DoubleUpDownArrow:Uh,DoubleVerticalBar:Gh,DownArrowBar:qh,downarrow:Yh,DownArrow:zh,Downarrow:$h,DownArrowUpArrow:Hh,DownBreve:Vh,downdownarrows:Wh,downharpoonleft:Kh,downharpoonright:Qh,DownLeftRightVector:Xh,DownLeftTeeVector:jh,DownLeftVectorBar:Zh,DownLeftVector:Jh,DownRightTeeVector:eE,DownRightVectorBar:tE,DownRightVector:nE,DownTeeArrow:rE,DownTee:iE,drbkarow:aE,drcorn:oE,drcrop:sE,Dscr:lE,dscr:cE,DScy:uE,dscy:dE,dsol:_E,Dstrok:pE,dstrok:mE,dtdot:fE,dtri:gE,dtrif:hE,duarr:EE,duhar:SE,dwangle:bE,DZcy:vE,dzcy:TE,dzigrarr:yE,Eacute:CE,eacute:RE,easter:OE,Ecaron:NE,ecaron:AE,Ecirc:IE,ecirc:DE,ecir:xE,ecolon:wE,Ecy:ME,ecy:LE,eDDot:kE,Edot:PE,edot:BE,eDot:FE,ee:UE,efDot:GE,Efr:qE,efr:YE,eg:zE,Egrave:$E,egrave:HE,egs:VE,egsdot:WE,el:KE,Element:QE,elinters:XE,ell:jE,els:ZE,elsdot:JE,Emacr:eS,emacr:tS,empty:nS,emptyset:rS,EmptySmallSquare:iS,emptyv:aS,EmptyVerySmallSquare:oS,emsp13:sS,emsp14:lS,emsp:cS,ENG:uS,eng:dS,ensp:_S,Eogon:pS,eogon:mS,Eopf:fS,eopf:gS,epar:hS,eparsl:ES,eplus:SS,epsi:bS,Epsilon:vS,epsilon:TS,epsiv:yS,eqcirc:CS,eqcolon:RS,eqsim:OS,eqslantgtr:NS,eqslantless:AS,Equal:IS,equals:DS,EqualTilde:xS,equest:wS,Equilibrium:MS,equiv:LS,equivDD:kS,eqvparsl:PS,erarr:BS,erDot:FS,escr:US,Escr:GS,esdot:qS,Esim:YS,esim:zS,Eta:$S,eta:HS,ETH:VS,eth:WS,Euml:KS,euml:QS,euro:XS,excl:jS,exist:ZS,Exists:JS,expectation:eb,exponentiale:tb,ExponentialE:nb,fallingdotseq:rb,Fcy:ib,fcy:ab,female:ob,ffilig:sb,fflig:lb,ffllig:cb,Ffr:ub,ffr:db,filig:_b,FilledSmallSquare:pb,FilledVerySmallSquare:mb,fjlig:fb,flat:gb,fllig:hb,fltns:Eb,fnof:Sb,Fopf:bb,fopf:vb,forall:Tb,ForAll:yb,fork:Cb,forkv:Rb,Fouriertrf:Ob,fpartint:Nb,frac12:Ab,frac13:Ib,frac14:Db,frac15:xb,frac16:wb,frac18:Mb,frac23:Lb,frac25:kb,frac34:Pb,frac35:Bb,frac38:Fb,frac45:Ub,frac56:Gb,frac58:qb,frac78:Yb,frasl:zb,frown:$b,fscr:Hb,Fscr:Vb,gacute:Wb,Gamma:Kb,gamma:Qb,Gammad:Xb,gammad:jb,gap:Zb,Gbreve:Jb,gbreve:ev,Gcedil:tv,Gcirc:nv,gcirc:rv,Gcy:iv,gcy:av,Gdot:ov,gdot:sv,ge:lv,gE:cv,gEl:uv,gel:dv,geq:_v,geqq:pv,geqslant:mv,gescc:fv,ges:gv,gesdot:hv,gesdoto:Ev,gesdotol:Sv,gesl:bv,gesles:vv,Gfr:Tv,gfr:yv,gg:Cv,Gg:Rv,ggg:Ov,gimel:Nv,GJcy:Av,gjcy:Iv,gla:Dv,gl:xv,glE:wv,glj:Mv,gnap:Lv,gnapprox:kv,gne:Pv,gnE:Bv,gneq:Fv,gneqq:Uv,gnsim:Gv,Gopf:qv,gopf:Yv,grave:zv,GreaterEqual:$v,GreaterEqualLess:Hv,GreaterFullEqual:Vv,GreaterGreater:Wv,GreaterLess:Kv,GreaterSlantEqual:Qv,GreaterTilde:Xv,Gscr:jv,gscr:Zv,gsim:Jv,gsime:eT,gsiml:tT,gtcc:nT,gtcir:rT,gt:iT,GT:aT,Gt:oT,gtdot:sT,gtlPar:lT,gtquest:cT,gtrapprox:uT,gtrarr:dT,gtrdot:_T,gtreqless:pT,gtreqqless:mT,gtrless:fT,gtrsim:gT,gvertneqq:hT,gvnE:ET,Hacek:ST,hairsp:bT,half:vT,hamilt:TT,HARDcy:yT,hardcy:CT,harrcir:RT,harr:OT,hArr:NT,harrw:AT,Hat:IT,hbar:DT,Hcirc:xT,hcirc:wT,hearts:MT,heartsuit:LT,hellip:kT,hercon:PT,hfr:BT,Hfr:FT,HilbertSpace:UT,hksearow:GT,hkswarow:qT,hoarr:YT,homtht:zT,hookleftarrow:$T,hookrightarrow:HT,hopf:VT,Hopf:WT,horbar:KT,HorizontalLine:QT,hscr:XT,Hscr:jT,hslash:ZT,Hstrok:JT,hstrok:ey,HumpDownHump:ty,HumpEqual:ny,hybull:ry,hyphen:iy,Iacute:ay,iacute:oy,ic:sy,Icirc:ly,icirc:cy,Icy:uy,icy:dy,Idot:_y,IEcy:py,iecy:my,iexcl:fy,iff:gy,ifr:hy,Ifr:Ey,Igrave:Sy,igrave:by,ii:vy,iiiint:Ty,iiint:yy,iinfin:Cy,iiota:Ry,IJlig:Oy,ijlig:Ny,Imacr:Ay,imacr:Iy,image:Dy,ImaginaryI:xy,imagline:wy,imagpart:My,imath:Ly,Im:ky,imof:Py,imped:By,Implies:Fy,incare:Uy,in:"\u2208",infin:Gy,infintie:qy,inodot:Yy,intcal:zy,int:$y,Int:Hy,integers:Vy,Integral:Wy,intercal:Ky,Intersection:Qy,intlarhk:Xy,intprod:jy,InvisibleComma:Zy,InvisibleTimes:Jy,IOcy:e1,iocy:t1,Iogon:n1,iogon:r1,Iopf:i1,iopf:a1,Iota:o1,iota:s1,iprod:l1,iquest:c1,iscr:u1,Iscr:d1,isin:_1,isindot:p1,isinE:m1,isins:f1,isinsv:g1,isinv:h1,it:E1,Itilde:S1,itilde:b1,Iukcy:v1,iukcy:T1,Iuml:y1,iuml:C1,Jcirc:R1,jcirc:O1,Jcy:N1,jcy:A1,Jfr:I1,jfr:D1,jmath:x1,Jopf:w1,jopf:M1,Jscr:L1,jscr:k1,Jsercy:P1,jsercy:B1,Jukcy:F1,jukcy:U1,Kappa:G1,kappa:q1,kappav:Y1,Kcedil:z1,kcedil:$1,Kcy:H1,kcy:V1,Kfr:W1,kfr:K1,kgreen:Q1,KHcy:X1,khcy:j1,KJcy:Z1,kjcy:J1,Kopf:eC,kopf:tC,Kscr:nC,kscr:rC,lAarr:iC,Lacute:aC,lacute:oC,laemptyv:sC,lagran:lC,Lambda:cC,lambda:uC,lang:dC,Lang:_C,langd:pC,langle:mC,lap:fC,Laplacetrf:gC,laquo:hC,larrb:EC,larrbfs:SC,larr:bC,Larr:vC,lArr:TC,larrfs:yC,larrhk:CC,larrlp:RC,larrpl:OC,larrsim:NC,larrtl:AC,latail:IC,lAtail:DC,lat:xC,late:wC,lates:MC,lbarr:LC,lBarr:kC,lbbrk:PC,lbrace:BC,lbrack:FC,lbrke:UC,lbrksld:GC,lbrkslu:qC,Lcaron:YC,lcaron:zC,Lcedil:$C,lcedil:HC,lceil:VC,lcub:WC,Lcy:KC,lcy:QC,ldca:XC,ldquo:jC,ldquor:ZC,ldrdhar:JC,ldrushar:eR,ldsh:tR,le:nR,lE:rR,LeftAngleBracket:iR,LeftArrowBar:aR,leftarrow:oR,LeftArrow:sR,Leftarrow:lR,LeftArrowRightArrow:cR,leftarrowtail:uR,LeftCeiling:dR,LeftDoubleBracket:_R,LeftDownTeeVector:pR,LeftDownVectorBar:mR,LeftDownVector:fR,LeftFloor:gR,leftharpoondown:hR,leftharpoonup:ER,leftleftarrows:SR,leftrightarrow:bR,LeftRightArrow:vR,Leftrightarrow:TR,leftrightarrows:yR,leftrightharpoons:CR,leftrightsquigarrow:RR,LeftRightVector:OR,LeftTeeArrow:NR,LeftTee:AR,LeftTeeVector:IR,leftthreetimes:DR,LeftTriangleBar:xR,LeftTriangle:wR,LeftTriangleEqual:MR,LeftUpDownVector:LR,LeftUpTeeVector:kR,LeftUpVectorBar:PR,LeftUpVector:BR,LeftVectorBar:FR,LeftVector:UR,lEg:GR,leg:qR,leq:YR,leqq:zR,leqslant:$R,lescc:HR,les:VR,lesdot:WR,lesdoto:KR,lesdotor:QR,lesg:XR,lesges:jR,lessapprox:ZR,lessdot:JR,lesseqgtr:eO,lesseqqgtr:tO,LessEqualGreater:nO,LessFullEqual:rO,LessGreater:iO,lessgtr:aO,LessLess:oO,lesssim:sO,LessSlantEqual:lO,LessTilde:cO,lfisht:uO,lfloor:dO,Lfr:_O,lfr:pO,lg:mO,lgE:fO,lHar:gO,lhard:hO,lharu:EO,lharul:SO,lhblk:bO,LJcy:vO,ljcy:TO,llarr:yO,ll:CO,Ll:RO,llcorner:OO,Lleftarrow:NO,llhard:AO,lltri:IO,Lmidot:DO,lmidot:xO,lmoustache:wO,lmoust:MO,lnap:LO,lnapprox:kO,lne:PO,lnE:BO,lneq:FO,lneqq:UO,lnsim:GO,loang:qO,loarr:YO,lobrk:zO,longleftarrow:$O,LongLeftArrow:HO,Longleftarrow:VO,longleftrightarrow:WO,LongLeftRightArrow:KO,Longleftrightarrow:QO,longmapsto:XO,longrightarrow:jO,LongRightArrow:ZO,Longrightarrow:JO,looparrowleft:eN,looparrowright:tN,lopar:nN,Lopf:rN,lopf:iN,loplus:aN,lotimes:oN,lowast:sN,lowbar:lN,LowerLeftArrow:cN,LowerRightArrow:uN,loz:dN,lozenge:_N,lozf:pN,lpar:mN,lparlt:fN,lrarr:gN,lrcorner:hN,lrhar:EN,lrhard:SN,lrm:bN,lrtri:vN,lsaquo:TN,lscr:yN,Lscr:CN,lsh:RN,Lsh:ON,lsim:NN,lsime:AN,lsimg:IN,lsqb:DN,lsquo:xN,lsquor:wN,Lstrok:MN,lstrok:LN,ltcc:kN,ltcir:PN,lt:BN,LT:FN,Lt:UN,ltdot:GN,lthree:qN,ltimes:YN,ltlarr:zN,ltquest:$N,ltri:HN,ltrie:VN,ltrif:WN,ltrPar:KN,lurdshar:QN,luruhar:XN,lvertneqq:jN,lvnE:ZN,macr:JN,male:eA,malt:tA,maltese:nA,Map:"\u2905",map:rA,mapsto:iA,mapstodown:aA,mapstoleft:oA,mapstoup:sA,marker:lA,mcomma:cA,Mcy:uA,mcy:dA,mdash:_A,mDDot:pA,measuredangle:mA,MediumSpace:fA,Mellintrf:gA,Mfr:hA,mfr:EA,mho:SA,micro:bA,midast:vA,midcir:TA,mid:yA,middot:CA,minusb:RA,minus:OA,minusd:NA,minusdu:AA,MinusPlus:IA,mlcp:DA,mldr:xA,mnplus:wA,models:MA,Mopf:LA,mopf:kA,mp:PA,mscr:BA,Mscr:FA,mstpos:UA,Mu:GA,mu:qA,multimap:YA,mumap:zA,nabla:HA,Nacute:VA,nacute:WA,nang:KA,nap:QA,napE:XA,napid:jA,napos:ZA,napprox:JA,natural:eI,naturals:tI,natur:nI,nbsp:rI,nbump:iI,nbumpe:aI,ncap:oI,Ncaron:sI,ncaron:lI,Ncedil:cI,ncedil:uI,ncong:dI,ncongdot:_I,ncup:pI,Ncy:mI,ncy:fI,ndash:gI,nearhk:hI,nearr:EI,neArr:SI,nearrow:bI,ne:vI,nedot:TI,NegativeMediumSpace:yI,NegativeThickSpace:CI,NegativeThinSpace:RI,NegativeVeryThinSpace:OI,nequiv:NI,nesear:AI,nesim:II,NestedGreaterGreater:DI,NestedLessLess:xI,NewLine:wI,nexist:MI,nexists:LI,Nfr:kI,nfr:PI,ngE:BI,nge:FI,ngeq:UI,ngeqq:GI,ngeqslant:qI,nges:YI,nGg:zI,ngsim:$I,nGt:HI,ngt:VI,ngtr:WI,nGtv:KI,nharr:QI,nhArr:XI,nhpar:jI,ni:ZI,nis:JI,nisd:eD,niv:tD,NJcy:nD,njcy:rD,nlarr:iD,nlArr:aD,nldr:oD,nlE:sD,nle:lD,nleftarrow:cD,nLeftarrow:uD,nleftrightarrow:dD,nLeftrightarrow:_D,nleq:pD,nleqq:mD,nleqslant:fD,nles:gD,nless:hD,nLl:ED,nlsim:SD,nLt:bD,nlt:vD,nltri:TD,nltrie:yD,nLtv:CD,nmid:RD,NoBreak:OD,NonBreakingSpace:ND,nopf:AD,Nopf:ID,Not:DD,not:xD,NotCongruent:wD,NotCupCap:MD,NotDoubleVerticalBar:LD,NotElement:kD,NotEqual:PD,NotEqualTilde:BD,NotExists:FD,NotGreater:UD,NotGreaterEqual:GD,NotGreaterFullEqual:qD,NotGreaterGreater:YD,NotGreaterLess:zD,NotGreaterSlantEqual:$D,NotGreaterTilde:HD,NotHumpDownHump:VD,NotHumpEqual:WD,notin:KD,notindot:QD,notinE:XD,notinva:jD,notinvb:ZD,notinvc:JD,NotLeftTriangleBar:ex,NotLeftTriangle:tx,NotLeftTriangleEqual:nx,NotLess:rx,NotLessEqual:ix,NotLessGreater:ax,NotLessLess:ox,NotLessSlantEqual:sx,NotLessTilde:lx,NotNestedGreaterGreater:cx,NotNestedLessLess:ux,notni:dx,notniva:_x,notnivb:px,notnivc:mx,NotPrecedes:fx,NotPrecedesEqual:gx,NotPrecedesSlantEqual:hx,NotReverseElement:Ex,NotRightTriangleBar:Sx,NotRightTriangle:bx,NotRightTriangleEqual:vx,NotSquareSubset:Tx,NotSquareSubsetEqual:yx,NotSquareSuperset:Cx,NotSquareSupersetEqual:Rx,NotSubset:Ox,NotSubsetEqual:Nx,NotSucceeds:Ax,NotSucceedsEqual:Ix,NotSucceedsSlantEqual:Dx,NotSucceedsTilde:xx,NotSuperset:wx,NotSupersetEqual:Mx,NotTilde:Lx,NotTildeEqual:kx,NotTildeFullEqual:Px,NotTildeTilde:Bx,NotVerticalBar:Fx,nparallel:Ux,npar:Gx,nparsl:qx,npart:Yx,npolint:zx,npr:$x,nprcue:Hx,nprec:Vx,npreceq:Wx,npre:Kx,nrarrc:Qx,nrarr:Xx,nrArr:jx,nrarrw:Zx,nrightarrow:Jx,nRightarrow:ew,nrtri:tw,nrtrie:nw,nsc:rw,nsccue:iw,nsce:aw,Nscr:ow,nscr:sw,nshortmid:lw,nshortparallel:cw,nsim:uw,nsime:dw,nsimeq:_w,nsmid:pw,nspar:mw,nsqsube:fw,nsqsupe:gw,nsub:hw,nsubE:Ew,nsube:Sw,nsubset:bw,nsubseteq:vw,nsubseteqq:Tw,nsucc:yw,nsucceq:Cw,nsup:Rw,nsupE:Ow,nsupe:Nw,nsupset:Aw,nsupseteq:Iw,nsupseteqq:Dw,ntgl:xw,Ntilde:ww,ntilde:Mw,ntlg:Lw,ntriangleleft:kw,ntrianglelefteq:Pw,ntriangleright:Bw,ntrianglerighteq:Fw,Nu:Uw,nu:Gw,num:qw,numero:Yw,numsp:zw,nvap:$w,nvdash:Hw,nvDash:Vw,nVdash:Ww,nVDash:Kw,nvge:Qw,nvgt:Xw,nvHarr:jw,nvinfin:Zw,nvlArr:Jw,nvle:e2,nvlt:t2,nvltrie:n2,nvrArr:r2,nvrtrie:i2,nvsim:a2,nwarhk:o2,nwarr:s2,nwArr:l2,nwarrow:c2,nwnear:u2,Oacute:d2,oacute:_2,oast:p2,Ocirc:m2,ocirc:f2,ocir:g2,Ocy:h2,ocy:E2,odash:S2,Odblac:b2,odblac:v2,odiv:T2,odot:y2,odsold:C2,OElig:R2,oelig:O2,ofcir:N2,Ofr:A2,ofr:I2,ogon:D2,Ograve:x2,ograve:w2,ogt:M2,ohbar:L2,ohm:k2,oint:P2,olarr:B2,olcir:F2,olcross:U2,oline:G2,olt:q2,Omacr:Y2,omacr:z2,Omega:$2,omega:H2,Omicron:V2,omicron:W2,omid:K2,ominus:Q2,Oopf:X2,oopf:j2,opar:Z2,OpenCurlyDoubleQuote:J2,OpenCurlyQuote:eM,operp:tM,oplus:nM,orarr:rM,Or:iM,or:aM,ord:oM,order:sM,orderof:lM,ordf:cM,ordm:uM,origof:dM,oror:_M,orslope:pM,orv:mM,oS:fM,Oscr:gM,oscr:hM,Oslash:EM,oslash:SM,osol:bM,Otilde:vM,otilde:TM,otimesas:yM,Otimes:CM,otimes:RM,Ouml:OM,ouml:NM,ovbar:AM,OverBar:IM,OverBrace:DM,OverBracket:xM,OverParenthesis:wM,para:MM,parallel:LM,par:kM,parsim:PM,parsl:BM,part:FM,PartialD:UM,Pcy:GM,pcy:qM,percnt:YM,period:zM,permil:$M,perp:HM,pertenk:VM,Pfr:WM,pfr:KM,Phi:QM,phi:XM,phiv:jM,phmmat:ZM,phone:JM,Pi:e4,pi:t4,pitchfork:n4,piv:r4,planck:i4,planckh:a4,plankv:o4,plusacir:s4,plusb:l4,pluscir:c4,plus:u4,plusdo:d4,plusdu:_4,pluse:p4,PlusMinus:m4,plusmn:f4,plussim:g4,plustwo:h4,pm:E4,Poincareplane:S4,pointint:b4,popf:v4,Popf:T4,pound:y4,prap:C4,Pr:R4,pr:O4,prcue:N4,precapprox:A4,prec:I4,preccurlyeq:D4,Precedes:x4,PrecedesEqual:w4,PrecedesSlantEqual:M4,PrecedesTilde:L4,preceq:k4,precnapprox:P4,precneqq:B4,precnsim:F4,pre:U4,prE:G4,precsim:q4,prime:Y4,Prime:z4,primes:$4,prnap:H4,prnE:V4,prnsim:W4,prod:K4,Product:Q4,profalar:X4,profline:j4,profsurf:Z4,prop:J4,Proportional:eL,Proportion:tL,propto:nL,prsim:rL,prurel:iL,Pscr:aL,pscr:oL,Psi:sL,psi:lL,puncsp:cL,Qfr:uL,qfr:dL,qint:_L,qopf:pL,Qopf:mL,qprime:fL,Qscr:gL,qscr:hL,quaternions:EL,quatint:SL,quest:bL,questeq:vL,quot:TL,QUOT:yL,rAarr:CL,race:RL,Racute:OL,racute:NL,radic:AL,raemptyv:IL,rang:DL,Rang:xL,rangd:wL,range:ML,rangle:LL,raquo:kL,rarrap:PL,rarrb:BL,rarrbfs:FL,rarrc:UL,rarr:GL,Rarr:qL,rArr:YL,rarrfs:zL,rarrhk:$L,rarrlp:HL,rarrpl:VL,rarrsim:WL,Rarrtl:KL,rarrtl:QL,rarrw:XL,ratail:jL,rAtail:ZL,ratio:JL,rationals:ek,rbarr:tk,rBarr:nk,RBarr:rk,rbbrk:ik,rbrace:ak,rbrack:ok,rbrke:sk,rbrksld:lk,rbrkslu:ck,Rcaron:uk,rcaron:dk,Rcedil:_k,rcedil:pk,rceil:mk,rcub:fk,Rcy:gk,rcy:hk,rdca:Ek,rdldhar:Sk,rdquo:bk,rdquor:vk,rdsh:Tk,real:yk,realine:Ck,realpart:Rk,reals:Ok,Re:Nk,rect:Ak,reg:Ik,REG:Dk,ReverseElement:xk,ReverseEquilibrium:wk,ReverseUpEquilibrium:Mk,rfisht:Lk,rfloor:kk,rfr:Pk,Rfr:Bk,rHar:Fk,rhard:Uk,rharu:Gk,rharul:qk,Rho:Yk,rho:zk,rhov:$k,RightAngleBracket:Hk,RightArrowBar:Vk,rightarrow:Wk,RightArrow:Kk,Rightarrow:Qk,RightArrowLeftArrow:Xk,rightarrowtail:jk,RightCeiling:Zk,RightDoubleBracket:Jk,RightDownTeeVector:e3,RightDownVectorBar:t3,RightDownVector:n3,RightFloor:r3,rightharpoondown:i3,rightharpoonup:a3,rightleftarrows:o3,rightleftharpoons:s3,rightrightarrows:l3,rightsquigarrow:c3,RightTeeArrow:u3,RightTee:d3,RightTeeVector:_3,rightthreetimes:p3,RightTriangleBar:m3,RightTriangle:f3,RightTriangleEqual:g3,RightUpDownVector:h3,RightUpTeeVector:E3,RightUpVectorBar:S3,RightUpVector:b3,RightVectorBar:v3,RightVector:T3,ring:y3,risingdotseq:C3,rlarr:R3,rlhar:O3,rlm:N3,rmoustache:A3,rmoust:I3,rnmid:D3,roang:x3,roarr:w3,robrk:M3,ropar:L3,ropf:k3,Ropf:P3,roplus:B3,rotimes:F3,RoundImplies:U3,rpar:G3,rpargt:q3,rppolint:Y3,rrarr:z3,Rrightarrow:$3,rsaquo:H3,rscr:V3,Rscr:W3,rsh:K3,Rsh:Q3,rsqb:X3,rsquo:j3,rsquor:Z3,rthree:J3,rtimes:e5,rtri:t5,rtrie:n5,rtrif:r5,rtriltri:i5,RuleDelayed:a5,ruluhar:o5,rx:s5,Sacute:l5,sacute:c5,sbquo:u5,scap:d5,Scaron:_5,scaron:p5,Sc:m5,sc:f5,sccue:g5,sce:h5,scE:E5,Scedil:S5,scedil:b5,Scirc:v5,scirc:T5,scnap:y5,scnE:C5,scnsim:R5,scpolint:O5,scsim:N5,Scy:A5,scy:I5,sdotb:D5,sdot:x5,sdote:w5,searhk:M5,searr:L5,seArr:k5,searrow:P5,sect:B5,semi:F5,seswar:U5,setminus:G5,setmn:q5,sext:Y5,Sfr:z5,sfr:$5,sfrown:H5,sharp:V5,SHCHcy:W5,shchcy:K5,SHcy:Q5,shcy:X5,ShortDownArrow:j5,ShortLeftArrow:Z5,shortmid:J5,shortparallel:eP,ShortRightArrow:tP,ShortUpArrow:nP,shy:rP,Sigma:iP,sigma:aP,sigmaf:oP,sigmav:sP,sim:lP,simdot:cP,sime:uP,simeq:dP,simg:_P,simgE:pP,siml:mP,simlE:fP,simne:gP,simplus:hP,simrarr:EP,slarr:SP,SmallCircle:bP,smallsetminus:vP,smashp:TP,smeparsl:yP,smid:CP,smile:RP,smt:OP,smte:NP,smtes:AP,SOFTcy:IP,softcy:DP,solbar:xP,solb:wP,sol:MP,Sopf:LP,sopf:kP,spades:PP,spadesuit:BP,spar:FP,sqcap:UP,sqcaps:GP,sqcup:qP,sqcups:YP,Sqrt:zP,sqsub:$P,sqsube:HP,sqsubset:VP,sqsubseteq:WP,sqsup:KP,sqsupe:QP,sqsupset:XP,sqsupseteq:jP,square:ZP,Square:JP,SquareIntersection:e6,SquareSubset:t6,SquareSubsetEqual:n6,SquareSuperset:r6,SquareSupersetEqual:i6,SquareUnion:a6,squarf:o6,squ:s6,squf:l6,srarr:c6,Sscr:u6,sscr:d6,ssetmn:_6,ssmile:p6,sstarf:m6,Star:f6,star:g6,starf:h6,straightepsilon:E6,straightphi:S6,strns:b6,sub:v6,Sub:T6,subdot:y6,subE:C6,sube:R6,subedot:O6,submult:N6,subnE:A6,subne:I6,subplus:D6,subrarr:x6,subset:w6,Subset:M6,subseteq:L6,subseteqq:k6,SubsetEqual:P6,subsetneq:B6,subsetneqq:F6,subsim:U6,subsub:G6,subsup:q6,succapprox:Y6,succ:z6,succcurlyeq:$6,Succeeds:H6,SucceedsEqual:V6,SucceedsSlantEqual:W6,SucceedsTilde:K6,succeq:Q6,succnapprox:X6,succneqq:j6,succnsim:Z6,succsim:J6,SuchThat:e7,sum:t7,Sum:n7,sung:r7,sup1:i7,sup2:a7,sup3:o7,sup:s7,Sup:l7,supdot:c7,supdsub:u7,supE:d7,supe:_7,supedot:p7,Superset:m7,SupersetEqual:f7,suphsol:g7,suphsub:h7,suplarr:E7,supmult:S7,supnE:b7,supne:v7,supplus:T7,supset:y7,Supset:C7,supseteq:R7,supseteqq:O7,supsetneq:N7,supsetneqq:A7,supsim:I7,supsub:D7,supsup:x7,swarhk:w7,swarr:M7,swArr:L7,swarrow:k7,swnwar:P7,szlig:B7,Tab:F7,target:U7,Tau:G7,tau:q7,tbrk:Y7,Tcaron:z7,tcaron:$7,Tcedil:H7,tcedil:V7,Tcy:W7,tcy:K7,tdot:Q7,telrec:X7,Tfr:j7,tfr:Z7,there4:J7,therefore:e8,Therefore:t8,Theta:n8,theta:r8,thetasym:i8,thetav:a8,thickapprox:o8,thicksim:s8,ThickSpace:l8,ThinSpace:c8,thinsp:u8,thkap:d8,thksim:_8,THORN:p8,thorn:m8,tilde:f8,Tilde:g8,TildeEqual:h8,TildeFullEqual:E8,TildeTilde:S8,timesbar:b8,timesb:v8,times:T8,timesd:y8,tint:C8,toea:R8,topbot:O8,topcir:N8,top:A8,Topf:I8,topf:D8,topfork:x8,tosa:w8,tprime:M8,trade:L8,TRADE:k8,triangle:P8,triangledown:B8,triangleleft:F8,trianglelefteq:U8,triangleq:G8,triangleright:q8,trianglerighteq:Y8,tridot:z8,trie:$8,triminus:H8,TripleDot:V8,triplus:W8,trisb:K8,tritime:Q8,trpezium:X8,Tscr:j8,tscr:Z8,TScy:J8,tscy:e9,TSHcy:t9,tshcy:n9,Tstrok:r9,tstrok:i9,twixt:a9,twoheadleftarrow:o9,twoheadrightarrow:s9,Uacute:l9,uacute:c9,uarr:u9,Uarr:d9,uArr:_9,Uarrocir:p9,Ubrcy:m9,ubrcy:f9,Ubreve:g9,ubreve:h9,Ucirc:E9,ucirc:S9,Ucy:b9,ucy:v9,udarr:T9,Udblac:y9,udblac:C9,udhar:R9,ufisht:O9,Ufr:N9,ufr:A9,Ugrave:I9,ugrave:D9,uHar:x9,uharl:w9,uharr:M9,uhblk:L9,ulcorn:k9,ulcorner:P9,ulcrop:B9,ultri:F9,Umacr:U9,umacr:G9,uml:q9,UnderBar:Y9,UnderBrace:z9,UnderBracket:$9,UnderParenthesis:H9,Union:V9,UnionPlus:W9,Uogon:K9,uogon:Q9,Uopf:X9,uopf:j9,UpArrowBar:Z9,uparrow:J9,UpArrow:eB,Uparrow:tB,UpArrowDownArrow:nB,updownarrow:rB,UpDownArrow:iB,Updownarrow:aB,UpEquilibrium:oB,upharpoonleft:sB,upharpoonright:lB,uplus:cB,UpperLeftArrow:uB,UpperRightArrow:dB,upsi:_B,Upsi:pB,upsih:mB,Upsilon:fB,upsilon:gB,UpTeeArrow:hB,UpTee:EB,upuparrows:SB,urcorn:bB,urcorner:vB,urcrop:TB,Uring:yB,uring:CB,urtri:RB,Uscr:OB,uscr:NB,utdot:AB,Utilde:IB,utilde:DB,utri:xB,utrif:wB,uuarr:MB,Uuml:LB,uuml:kB,uwangle:PB,vangrt:BB,varepsilon:FB,varkappa:UB,varnothing:GB,varphi:qB,varpi:YB,varpropto:zB,varr:$B,vArr:HB,varrho:VB,varsigma:WB,varsubsetneq:KB,varsubsetneqq:QB,varsupsetneq:XB,varsupsetneqq:jB,vartheta:ZB,vartriangleleft:JB,vartriangleright:eF,vBar:tF,Vbar:nF,vBarv:rF,Vcy:iF,vcy:aF,vdash:oF,vDash:sF,Vdash:lF,VDash:cF,Vdashl:uF,veebar:dF,vee:_F,Vee:pF,veeeq:mF,vellip:fF,verbar:gF,Verbar:hF,vert:EF,Vert:SF,VerticalBar:bF,VerticalLine:vF,VerticalSeparator:TF,VerticalTilde:yF,VeryThinSpace:CF,Vfr:RF,vfr:OF,vltri:NF,vnsub:AF,vnsup:IF,Vopf:DF,vopf:xF,vprop:wF,vrtri:MF,Vscr:LF,vscr:kF,vsubnE:PF,vsubne:BF,vsupnE:FF,vsupne:UF,Vvdash:GF,vzigzag:qF,Wcirc:YF,wcirc:zF,wedbar:$F,wedge:HF,Wedge:VF,wedgeq:WF,weierp:KF,Wfr:QF,wfr:XF,Wopf:jF,wopf:ZF,wp:JF,wr:eU,wreath:tU,Wscr:nU,wscr:rU,xcap:iU,xcirc:aU,xcup:oU,xdtri:sU,Xfr:lU,xfr:cU,xharr:uU,xhArr:dU,Xi:_U,xi:pU,xlarr:mU,xlArr:fU,xmap:gU,xnis:hU,xodot:EU,Xopf:SU,xopf:bU,xoplus:vU,xotime:TU,xrarr:yU,xrArr:CU,Xscr:RU,xscr:OU,xsqcup:NU,xuplus:AU,xutri:IU,xvee:DU,xwedge:xU,Yacute:wU,yacute:MU,YAcy:LU,yacy:kU,Ycirc:PU,ycirc:BU,Ycy:FU,ycy:UU,yen:GU,Yfr:qU,yfr:YU,YIcy:zU,yicy:$U,Yopf:HU,yopf:VU,Yscr:WU,yscr:KU,YUcy:QU,yucy:XU,yuml:jU,Yuml:ZU,Zacute:JU,zacute:eG,Zcaron:tG,zcaron:nG,Zcy:rG,zcy:iG,Zdot:aG,zdot:oG,zeetrf:sG,ZeroWidthSpace:lG,Zeta:cG,zeta:uG,zfr:dG,Zfr:_G,ZHcy:pG,zhcy:mG,zigrarr:fG,zopf:gG,Zopf:hG,Zscr:EG,zscr:SG,zwj:bG,zwnj:vG},Ol=TG,$a=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4E\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDF55-\uDF59]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDF3C-\uDF3E]|\uD806[\uDC3B\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/,jn={},bs={};function yG(e){var t,n,r=bs[e];if(r)return r;for(r=bs[e]=[],t=0;t<128;t++)n=String.fromCharCode(t),/^[0-9a-z]$/i.test(n)?r.push(n):r.push("%"+("0"+t.toString(16).toUpperCase()).slice(-2));for(t=0;t=55296&&l<=57343){if(l>=55296&&l<=56319&&r+1=56320&&u<=57343)){d+=encodeURIComponent(e[r]+e[r+1]),r++;continue}d+="%EF%BF%BD";continue}d+=encodeURIComponent(e[r])}return d}Ei.defaultChars=";/?:@&=+$,-_.!~*'()#";Ei.componentChars="-_.!~*'()";var CG=Ei,vs={};function RG(e){var t,n,r=vs[e];if(r)return r;for(r=vs[e]=[],t=0;t<128;t++)n=String.fromCharCode(t),r.push(n);for(t=0;t=55296&&g<=57343?h+="\uFFFD\uFFFD\uFFFD":h+=String.fromCharCode(g),a+=6;continue}if((u&248)===240&&a+91114111?h+="\uFFFD\uFFFD\uFFFD\uFFFD":(g-=65536,h+=String.fromCharCode(55296+(g>>10),56320+(g&1023))),a+=9;continue}h+="\uFFFD"}return h})}Si.defaultChars=";/?:@&=+$,#";Si.componentChars="";var OG=Si,NG=function(t){var n="";return n+=t.protocol||"",n+=t.slashes?"//":"",n+=t.auth?t.auth+"@":"",t.hostname&&t.hostname.indexOf(":")!==-1?n+="["+t.hostname+"]":n+=t.hostname||"",n+=t.port?":"+t.port:"",n+=t.pathname||"",n+=t.search||"",n+=t.hash||"",n};function _i(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}var AG=/^([a-z0-9.+-]+:)/i,IG=/:[0-9]*$/,DG=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,xG=["<",">",'"',"`"," ","\r",` `," "],wG=["{","}","|","\\","^","`"].concat(xG),MG=["'"].concat(wG),Ts=["%","/","?",";","#"].concat(MG),ys=["/","?","#"],LG=255,Cs=/^[+a-z0-9A-Z_-]{0,63}$/,kG=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,Rs={javascript:!0,"javascript:":!0},Os={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function PG(e,t){if(e&&e instanceof _i)return e;var n=new _i;return n.parse(e,t),n}_i.prototype.parse=function(e,t){var n,r,a,l,u,c=e;if(c=c.trim(),!t&&e.split("#").length===1){var d=DG.exec(c);if(d)return this.pathname=d[1],d[2]&&(this.search=d[2]),this}var f=AG.exec(c);if(f&&(f=f[0],a=f.toLowerCase(),this.protocol=f,c=c.substr(f.length)),(t||f||c.match(/^\/\/[^@\/]+@[^@\/]+/))&&(u=c.substr(0,2)==="//",u&&!(f&&Rs[f])&&(c=c.substr(2),this.slashes=!0)),!Rs[f]&&(u||f&&!Os[f])){var g=-1;for(n=0;n127?E+="x":E+=C[v];if(!E.match(Cs)){var S=b.slice(0,n),A=b.slice(n+1),P=C.match(kG);P&&(S.push(P[1]),A.unshift(P[2])),A.length&&(c=A.join(".")+c),this.hostname=S.join(".");break}}}}this.hostname.length>LG&&(this.hostname=""),y&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}var F=c.indexOf("#");F!==-1&&(this.hash=c.substr(F),c=c.slice(0,F));var G=c.indexOf("?");return G!==-1&&(this.search=c.substr(G),c=c.slice(0,G)),c&&(this.pathname=c),Os[a]&&this.hostname&&!this.pathname&&(this.pathname=""),this};_i.prototype.parseHost=function(e){var t=IG.exec(e);t&&(t=t[0],t!==":"&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)};var BG=PG;jn.encode=CG;jn.decode=OG;jn.format=NG;jn.parse=BG;var Zn={},Nl=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,Al=/[\0-\x1F\x7F-\x9F]/,FG=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/,Il=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/;Zn.Any=Nl;Zn.Cc=Al;Zn.Cf=FG;Zn.P=$a;Zn.Z=Il;(function(e){function t(x){return Object.prototype.toString.call(x)}function n(x){return t(x)==="[object String]"}var r=Object.prototype.hasOwnProperty;function a(x,Y){return r.call(x,Y)}function l(x){var Y=Array.prototype.slice.call(arguments,1);return Y.forEach(function(J){if(!!J){if(typeof J!="object")throw new TypeError(J+"must be object");Object.keys(J).forEach(function(X){x[X]=J[X]})}}),x}function u(x,Y,J){return[].concat(x.slice(0,Y),J,x.slice(Y+1))}function c(x){return!(x>=55296&&x<=57343||x>=64976&&x<=65007||(x&65535)===65535||(x&65535)===65534||x>=0&&x<=8||x===11||x>=14&&x<=31||x>=127&&x<=159||x>1114111)}function d(x){if(x>65535){x-=65536;var Y=55296+(x>>10),J=56320+(x&1023);return String.fromCharCode(Y,J)}return String.fromCharCode(x)}var f=/\\([!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~])/g,g=/&([a-z#][a-z0-9]{1,31});/gi,h=new RegExp(f.source+"|"+g.source,"gi"),p=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i,m=Ol;function y(x,Y){var J=0;return a(m,Y)?m[Y]:Y.charCodeAt(0)===35&&p.test(Y)&&(J=Y[1].toLowerCase()==="x"?parseInt(Y.slice(2),16):parseInt(Y.slice(1),10),c(J))?d(J):x}function b(x){return x.indexOf("\\")<0?x:x.replace(f,"$1")}function C(x){return x.indexOf("\\")<0&&x.indexOf("&")<0?x:x.replace(h,function(Y,J,X){return J||y(Y,X)})}var E=/[&<>"]/,v=/[&<>"]/g,O={"&":"&","<":"<",">":">",'"':"""};function S(x){return O[x]}function A(x){return E.test(x)?x.replace(v,S):x}var P=/[.?*+^$[\]\\(){}|-]/g;function F(x){return x.replace(P,"\\$&")}function G(x){switch(x){case 9:case 32:return!0}return!1}function z(x){if(x>=8192&&x<=8202)return!0;switch(x){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}var k=$a;function L(x){return k.test(x)}function w(x){switch(x){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function M(x){return x=x.trim().replace(/\s+/g," "),"\u1E9E".toLowerCase()==="\u1E7E"&&(x=x.replace(/ẞ/g,"\xDF")),x.toLowerCase().toUpperCase()}e.lib={},e.lib.mdurl=jn,e.lib.ucmicro=Zn,e.assign=l,e.isString=n,e.has=a,e.unescapeMd=b,e.unescapeAll=C,e.isValidEntityCode=c,e.fromCodePoint=d,e.escapeHtml=A,e.arrayReplaceAt=u,e.isSpace=G,e.isWhiteSpace=z,e.isMdAsciiPunct=w,e.isPunctChar=L,e.escapeRE=F,e.normalizeReference=M})(Je);var bi={},UG=function(t,n,r){var a,l,u,c,d=-1,f=t.posMax,g=t.pos;for(t.pos=n+1,a=1;t.pos32))return d;if(a===41){if(l===0)break;l--}n++}return c===n||l!==0||(d.str=Ns(t.slice(c,n)),d.lines=u,d.pos=n,d.ok=!0),d},qG=Je.unescapeAll,YG=function(t,n,r){var a,l,u=0,c=n,d={ok:!1,pos:0,lines:0,str:""};if(n>=r||(l=t.charCodeAt(n),l!==34&&l!==39&&l!==40))return d;for(n++,l===40&&(l=41);n"+Rn(e[t].content)+""};Qt.code_block=function(e,t,n,r,a){var l=e[t];return""+Rn(e[t].content)+` `};Qt.fence=function(e,t,n,r,a){var l=e[t],u=l.info?$G(l.info).trim():"",c="",d="",f,g,h,p,m;return u&&(h=u.split(/(\s+)/g),c=h[0],d=h.slice(2).join("")),n.highlight?f=n.highlight(l.content,c,d)||Rn(l.content):f=Rn(l.content),f.indexOf("w.length)&&(M=w.length);for(var x=0,Y=new Array(M);xthis.range.start)){var Y=Math.max(x-this.param.buffer,0);this.checkRange(Y,this.getEndByStart(Y))}}},{key:"handleBehind",value:function(){var x=this.getScrollOvers();xx&&(ie=J-1)}return Y>0?--Y:0}},{key:"getIndexOffset",value:function(x){if(!x)return 0;for(var Y=0,J=0,X=0;X1&&arguments[1]!==void 0?arguments[1]:0;if(M>=this.dataSources.length-1)this.scrollToBottom();else{var Y=this.virtual.getOffset(M);x!==0&&(Y=Math.max(0,Y+x)),this.scrollToOffset(Y)}},scrollToBottom:function(){var M=this,x=this.$refs.shepherd;if(x){var Y=x[this.isHorizontal?"offsetLeft":"offsetTop"];this.scrollToOffset(Y),this.toBottomTime&&(clearTimeout(this.toBottomTime),this.toBottomTime=null),this.toBottomTime=setTimeout(function(){M.getOffset()+M.getClientSize()+1J+1||!J||(this.virtual.handleScroll(x),this.emitEvent(x,Y,J,M))}},emitEvent:function(M,x,Y,J){this.$emit("scroll",J,this.virtual.getRange()),this.virtual.isFront()&&!!this.dataSources.length&&M-this.topThreshold<=0?this.$emit("totop"):this.virtual.isBehind()&&M+x+this.bottomThreshold>=Y&&this.$emit("tobottom")},getRenderSlots:function(M){for(var x=[],Y=this.range,J=Y.start,X=Y.end,ie=this.dataSources,ee=this.dataKey,j=this.itemClass,U=this.itemTag,Q=this.itemStyle,Z=this.isHorizontal,ce=this.extraProps,oe=this.dataComponent,K=this.itemScopedSlots,ae=this.$scopedSlots&&this.$scopedSlots.item,_e=J;_e<=X;_e++){var ue=ie[_e];if(ue){var Se=typeof ee=="function"?ee(ue):ue[ee];typeof Se=="string"||typeof Se=="number"?x.push(M(F,{props:{index:_e,tag:U,event:z.ITEM,horizontal:Z,uniqueKey:Se,source:ue,extraProps:ce,component:oe,slotComponent:ae,scopedSlots:K},style:Q,class:"".concat(j).concat(this.itemClassAdd?" "+this.itemClassAdd(_e):"")})):console.warn("Cannot get the data-key '".concat(ee,"' from data-sources."))}else console.warn("Cannot get the index '".concat(_e,"' from data-sources."))}return x}},render:function(M){var x=this.$slots,Y=x.header,J=x.footer,X=this.range,ie=X.padFront,ee=X.padBehind,j=this.isHorizontal,U=this.pageMode,Q=this.rootTag,Z=this.wrapTag,ce=this.wrapClass,oe=this.wrapStyle,K=this.headerTag,ae=this.headerClass,_e=this.headerStyle,ue=this.footerTag,Se=this.footerClass,De=this.footerStyle,ke=this.disabled,Ge={padding:j?"0px ".concat(ee,"px 0px ").concat(ie,"px"):"".concat(ie,"px 0px ").concat(ee,"px")},ze=oe?Object.assign({},oe,Ge):Ge;return M(Q,{ref:"root",style:ke?{overflow:"hidden"}:null,on:{"&scroll":!U&&this.onScroll}},[Y?M(G,{class:ae,style:_e,props:{tag:K,event:z.SLOT,uniqueKey:k.HEADER}},Y):null,M(Z,{class:ce,attrs:{role:"group"},style:ze},this.getRenderSlots(M)),J?M(G,{class:Se,style:De,props:{tag:ue,event:z.SLOT,uniqueKey:k.FOOTER}},J):null,M("div",{ref:"shepherd",style:{width:j?"0px":"100%",height:j?"100%":"0px"}})])}});return L})})(Dc);var CJ=Dc.exports;function RJ(){return new Promise(e=>{const t=new Hu({render(a){return a(Vu.exports.Modal,{class:"chat-emoji-one-modal",props:{fullscreen:!0,footerHide:!0},on:{"on-visible-change":l=>{l||setTimeout(u=>{document.body.removeChild(this.$el)},500)}}},[a(Ic,{attrs:{onlyEmoji:!0},on:{"on-select":l=>{this.$children[0].visible=!1,l.type==="emoji"&&e(l.text)}}})])}}),n=t.$mount();document.body.appendChild(n.$el);const r=t.$children[0];r.visible=!0,r.$el.lastChild.addEventListener("click",({target:a})=>{a.classList.contains("ivu-modal-body")&&(r.visible=!1)})})}var OJ=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.isReady?n("div",{staticClass:"dialog-wrapper",class:e.wrapperClass,on:{drop:function(r){return r.preventDefault(),e.chatPasteDrag(r,"drag")},dragover:function(r){return r.preventDefault(),e.chatDragOver(!0,r)},dragleave:function(r){return r.preventDefault(),e.chatDragOver(!1,r)},touchstart:e.onTouchStart,touchmove:e.onTouchMove}},[n("div",{staticClass:"dialog-nav",style:e.navStyle},[e._t("head",function(){return[n("div",{staticClass:"nav-wrapper",class:{completed:e.$A.dialogCompleted(e.dialogData)}},[n("div",{staticClass:"dialog-back",on:{click:e.onBack}},[n("i",{staticClass:"taskfont"},[e._v("\uE676")]),e.msgUnreadOnly?n("div",{staticClass:"back-num"},[e._v(e._s(e.msgUnreadOnly))]):e._e()]),n("div",{staticClass:"dialog-block"},[n("div",{staticClass:"dialog-avatar",on:{click:e.onViewAvatar}},[e.dialogData.type=="group"?[e.dialogData.avatar?n("EAvatar",{staticClass:"img-avatar",attrs:{src:e.dialogData.avatar,size:42}}):e.dialogData.group_type=="department"?n("i",{staticClass:"taskfont icon-avatar department"},[e._v("\uE75C")]):e.dialogData.group_type=="project"?n("i",{staticClass:"taskfont icon-avatar project"},[e._v("\uE6F9")]):e.dialogData.group_type=="task"?n("i",{staticClass:"taskfont icon-avatar task"},[e._v("\uE6F4")]):n("Icon",{staticClass:"icon-avatar",attrs:{type:"ios-people"}})]:e.dialogData.dialog_user?n("div",{staticClass:"user-avatar"},[n("UserAvatar",{attrs:{online:e.dialogData.online_state,userid:e.dialogData.dialog_user.userid,size:42},on:{"update:online":function(r){return e.$set(e.dialogData,"online_state",r)}}},[e.dialogData.type==="user"&&e.dialogData.online_state!==!0?n("p",{attrs:{slot:"end"},slot:"end"},[e._v(" "+e._s(e.$L(e.dialogData.online_state))+" ")]):e._e()])],1):n("Icon",{staticClass:"icon-avatar",attrs:{type:"md-person"}})],2),n("div",{staticClass:"dialog-title"},[n("div",{staticClass:"main-title"},[e._l(e.$A.dialogTags(e.dialogData),function(r){return r.color!="success"?[n("Tag",{attrs:{color:r.color,fade:!1}},[e._v(e._s(e.$L(r.text)))])]:e._e()}),n("h2",[e._v(e._s(e.dialogData.name))]),e.peopleNum>0?n("em",{on:{click:function(r){return e.onDialogMenu("groupInfo")}}},[e._v("("+e._s(e.peopleNum)+")")]):e._e(),e.dialogData.bot?n("Tag",{staticClass:"after",attrs:{fade:!1}},[e._v(e._s(e.$L("\u673A\u5668\u4EBA")))]):e._e(),e.dialogData.group_type=="all"?n("Tag",{staticClass:"after pointer",attrs:{fade:!1},on:{"on-click":function(r){return e.onDialogMenu("groupInfo")}}},[e._v(e._s(e.$L("\u5168\u5458")))]):e.dialogData.group_type=="department"?n("Tag",{staticClass:"after pointer",attrs:{fade:!1},on:{"on-click":function(r){return e.onDialogMenu("groupInfo")}}},[e._v(e._s(e.$L("\u90E8\u95E8")))]):e._e(),e.msgLoadIng>0?n("div",{staticClass:"load"},[n("Loading")],1):e._e()],2),n("ul",{staticClass:"title-desc"},[e.dialogData.type==="user"?n("li",{class:[e.dialogData.online_state===!0?"online":"offline"]},[e._v(" "+e._s(e.$L(e.dialogData.online_state===!0?"\u5728\u7EBF":e.dialogData.online_state))+" ")]):e._e()]),e.tagShow?n("ul",{staticClass:"title-tags scrollbar-hidden"},e._l(e.msgTags,function(r){var a;return n("li",{key:r.type,class:(a={},a[r.type||"msg"]=!0,a.active=e.msgType===r.type,a),on:{click:function(l){return e.onMsgType(r.type)}}},[n("i",{staticClass:"no-dark-content"}),n("span",[e._v(e._s(e.$L(r.label)))])])}),0):e._e()])]),n("EDropdown",{staticClass:"dialog-menu",attrs:{trigger:"click"},on:{command:e.onDialogMenu}},[n("i",{staticClass:"taskfont dialog-menu-icon"},[e._v("\uE6E9")]),n("EDropdownMenu",{attrs:{slot:"dropdown"},slot:"dropdown"},[n("EDropdownItem",{attrs:{command:"searchMsg"}},[n("div",[e._v(e._s(e.$L("\u641C\u7D22\u6D88\u606F")))])]),e.dialogData.type==="user"?[e.dialogData.bot==e.userId?n("EDropdownItem",{attrs:{command:"modifyNormal"}},[n("div",[e._v(e._s(e.$L("\u4FEE\u6539\u8D44\u6599")))])]):e._e(),n("EDropdownItem",{attrs:{command:"openCreate"}},[n("div",[e._v(e._s(e.$L("\u521B\u5EFA\u7FA4\u7EC4")))])])]:[n("EDropdownItem",{attrs:{command:"groupInfo"}},[n("div",[e._v(e._s(e.$L("\u7FA4\u7EC4\u8BBE\u7F6E")))])]),e.dialogData.owner_id!=e.userId?[e.dialogData.group_type==="all"&&e.userIsAdmin?n("EDropdownItem",{attrs:{command:"modifyAdmin"}},[n("div",[e._v(e._s(e.$L("\u4FEE\u6539\u8D44\u6599")))])]):e._e(),n("EDropdownItem",{attrs:{command:"exit"}},[n("div",{staticStyle:{color:"#f00"}},[e._v(e._s(e.$L("\u9000\u51FA\u7FA4\u7EC4")))])])]:e.dialogData.group_type==="user"?[n("EDropdownItem",{attrs:{command:"modifyNormal"}},[n("div",[e._v(e._s(e.$L("\u4FEE\u6539\u8D44\u6599")))])]),n("EDropdownItem",{attrs:{command:"transfer"}},[n("div",[e._v(e._s(e.$L("\u8F6C\u8BA9\u7FA4\u4E3B")))])]),n("EDropdownItem",{attrs:{command:"disband"}},[n("div",{staticStyle:{color:"#f00"}},[e._v(e._s(e.$L("\u89E3\u6563\u7FA4\u7EC4")))])])]:e._e()]],2)],1),e.searchShow?n("div",{staticClass:"dialog-search"},[n("div",{staticClass:"search-location"},[n("i",{staticClass:"taskfont",on:{click:function(r){return e.onSearchSwitch("prev")}}},[e._v("\uE702")]),n("i",{staticClass:"taskfont",on:{click:function(r){return e.onSearchSwitch("next")}}},[e._v("\uE705")])]),n("div",{staticClass:"search-input"},[n("Input",{ref:"searchInput",attrs:{placeholder:e.$L("\u641C\u7D22\u6D88\u606F"),clearable:""},on:{"on-keyup":e.onSearchKeyup},model:{value:e.searchKey,callback:function(r){e.searchKey=r},expression:"searchKey"}},[n("div",{staticClass:"search-pre",attrs:{slot:"prefix"},slot:"prefix"},[e.searchLoad>0?n("Loading"):n("Icon",{attrs:{type:"ios-search"}})],1)]),e.searchLoad===0&&e.searchResult.length>0?n("div",{staticClass:"search-total",attrs:{slot:"append"},slot:"append"},[e._v(e._s(e.searchLocation)+"/"+e._s(e.searchResult.length))]):e._e()],1),n("div",{staticClass:"search-cancel",on:{click:function(r){return e.onSearchKeyup(null)}}},[e._v(e._s(e.$L("\u53D6\u6D88")))])]):e._e()],1)]})],2),e.positionMsg?n("div",{staticClass:"dialog-position",class:{down:e.tagShow}},[n("div",{staticClass:"position-label",on:{click:e.onPositionMark}},[e.positionLoad>0?n("Icon",{staticClass:"icon-loading",attrs:{type:"ios-loading"}}):n("i",{staticClass:"taskfont"},[e._v("\uE624")]),e._v(" "+e._s(e.positionMsg.label)+" ")],1)]):e._e(),n("VirtualList",{ref:"scroller",staticClass:"dialog-scroller scrollbar-overlay",class:e.scrollerClass,attrs:{"data-key":"id","data-sources":e.allMsgs,"data-component":e.msgItem,"item-class-add":e.itemClassAdd,"extra-props":{dialogData:e.dialogData,operateVisible:e.operateVisible,operateItem:e.operateItem,isMyDialog:e.isMyDialog,msgId:e.msgId},"estimate-size":e.dialogData.type=="group"?105:77,keeps:50,disabled:e.scrollDisabled},on:{scroll:e.onScroll,range:e.onRange,totop:e.onPrevPage,"on-mention":e.onMention,"on-longpress":e.onLongpress,"on-view-reply":e.onViewReply,"on-view-text":e.onViewText,"on-view-file":e.onViewFile,"on-down-file":e.onDownFile,"on-reply-list":e.onReplyList,"on-error":e.onError,"on-emoji":e.onEmoji,"on-show-emoji-user":e.onShowEmojiUser},scopedSlots:e._u([{key:"header",fn:function(){return[e.allMsgs.length===0&&e.loadIng||e.prevId>0?n("div",{staticClass:"dialog-item loading"},[e.scrollOffset<100?n("div",{staticClass:"dialog-wrapper-loading"}):e._e()]):e.allMsgs.length===0?n("div",{staticClass:"dialog-item nothing"},[e._v(e._s(e.$L("\u6682\u65E0\u6D88\u606F")))]):e._e()]},proxy:!0}],null,!1,3828201241)}),n("div",{ref:"footer",staticClass:"dialog-footer",class:e.footerClass,on:{click:e.onActive}},[n("div",{staticClass:"dialog-newmsg",on:{click:e.onToBottom}},[e._v(e._s(e.$L(`\u6709${e.msgNew}\u6761\u65B0\u6D88\u606F`)))]),n("div",{staticClass:"dialog-goto",on:{click:e.onToBottom}},[n("i",{staticClass:"taskfont"},[e._v("\uE72B")])]),n("DialogUpload",{ref:"chatUpload",staticClass:"chat-upload",attrs:{"dialog-id":e.dialogId},on:{"on-progress":function(r){return e.chatFile("progress",r)},"on-success":function(r){return e.chatFile("success",r)},"on-error":function(r){return e.chatFile("error",r)}}}),e.todoShow?n("div",{staticClass:"chat-bottom-menu"},[n("div",{staticClass:"bottom-menu-label"},[e._v(e._s(e.$L("\u5F85\u529E"))+":")]),n("ul",{staticClass:"scrollbar-hidden"},e._l(e.todoList,function(r){return n("li",{on:{click:function(a){return a.stopPropagation(),e.onViewTodo(r)}}},[n("div",{staticClass:"bottom-menu-desc no-dark-content"},[e._v(e._s(e.$A.getMsgSimpleDesc(r.msg_data)))])])}),0)]):e.quickShow?n("div",{staticClass:"chat-bottom-menu"},[n("ul",{staticClass:"scrollbar-hidden"},e._l(e.quickMsgs,function(r){return n("li",{on:{click:function(a){return a.stopPropagation(),e.sendQuick(r)}}},[n("div",{staticClass:"bottom-menu-desc no-dark-content",style:r.style||null},[e._v(e._s(r.label))])])}),0)]):e._e(),e.isMute?n("div",{staticClass:"chat-mute"},[e._v(" "+e._s(e.$L("\u7981\u8A00\u53D1\u8A00"))+" ")]):n("ChatInput",{ref:"input",attrs:{"dialog-id":e.dialogId,"emoji-bottom":e.windowSmall,maxlength:2e5,placeholder:e.$L("\u8F93\u5165\u6D88\u606F...")},on:{"on-focus":e.onEventFocus,"on-blur":e.onEventBlur,"on-more":e.onEventMore,"on-file":e.sendFileMsg,"on-send":e.sendMsg,"on-record":e.sendRecord,"on-record-state":e.onRecordState,"on-emoji-visible-change":e.onEventEmojiVisibleChange,"on-height-change":e.onHeightChange},model:{value:e.msgText,callback:function(r){e.msgText=r},expression:"msgText"}})],1),n("div",{directives:[{name:"show",rawName:"v-show",value:e.operateVisible,expression:"operateVisible"}],staticClass:"operate-position",style:e.operateStyles},[n("Dropdown",{attrs:{trigger:"custom",placement:"top",visible:e.operateVisible,transferClassName:"dialog-wrapper-operate",transfer:""},on:{"on-clickoutside":function(r){e.operateVisible=!1}}},[n("div",{style:{userSelect:e.operateVisible?"none":"auto",height:e.operateStyles.height}}),n("DropdownMenu",{attrs:{slot:"list"},slot:"list"},[n("DropdownItem",{attrs:{name:"action"}},[n("ul",{staticClass:"operate-action"},[e.msgId===0?n("li",{on:{click:function(r){return e.onOperate("reply")}}},[n("i",{staticClass:"taskfont"},[e._v("\uE6EB")]),n("span",[e._v(e._s(e.$L("\u56DE\u590D")))])]):e._e(),e.operateItem.userid==e.userId&&e.operateItem.type==="text"?n("li",{on:{click:function(r){return e.onOperate("update")}}},[n("i",{staticClass:"taskfont"},[e._v("\uE779")]),n("span",[e._v(e._s(e.$L("\u7F16\u8F91")))])]):e._e(),e._l(e.operateCopys,function(r){return n("li",{on:{click:function(a){return e.onOperate("copy",r)}}},[n("i",{staticClass:"taskfont",domProps:{innerHTML:e._s(r.icon)}}),n("span",[e._v(e._s(e.$L(r.label)))])])}),n("li",{on:{click:function(r){return e.onOperate("forward")}}},[n("i",{staticClass:"taskfont"},[e._v("\uE638")]),n("span",[e._v(e._s(e.$L("\u8F6C\u53D1")))])]),e.operateItem.userid==e.userId?n("li",{on:{click:function(r){return e.onOperate("withdraw")}}},[n("i",{staticClass:"taskfont"},[e._v("\uE637")]),n("span",[e._v(e._s(e.$L("\u64A4\u56DE")))])]):e._e(),e.operateItem.type==="file"?[n("li",{on:{click:function(r){return e.onOperate("view")}}},[n("i",{staticClass:"taskfont"},[e._v("\uE77B")]),n("span",[e._v(e._s(e.$L("\u67E5\u770B")))])]),n("li",{on:{click:function(r){return e.onOperate("down")}}},[n("i",{staticClass:"taskfont"},[e._v("\uE7A8")]),n("span",[e._v(e._s(e.$L("\u4E0B\u8F7D")))])])]:e._e(),n("li",{on:{click:function(r){return e.onOperate("tag")}}},[n("i",{staticClass:"taskfont"},[e._v("\uE61E")]),n("span",[e._v(e._s(e.$L(e.operateItem.tag?"\u53D6\u6D88\u6807\u6CE8":"\u6807\u6CE8")))])]),e.operateItem.type==="text"?n("li",{on:{click:function(r){return e.onOperate("newTask")}}},[n("i",{staticClass:"taskfont"},[e._v("\uE7B8")]),n("span",[e._v(e._s(e.$L("\u65B0\u4EFB\u52A1")))])]):e._e(),n("li",{on:{click:function(r){return e.onOperate("todo")}}},[n("i",{staticClass:"taskfont"},[e._v("\uE7B7")]),n("span",[e._v(e._s(e.$L(e.operateItem.todo?"\u53D6\u6D88\u5F85\u529E":"\u8BBE\u5F85\u529E")))])]),e.msgType!==""?n("li",{on:{click:function(r){return e.onOperate("pos")}}},[n("i",{staticClass:"taskfont"},[e._v("\uEE15")]),n("span",[e._v(e._s(e.$L("\u5B8C\u6574\u5BF9\u8BDD")))])]):e._e()],2)]),n("DropdownItem",{staticClass:"dropdown-emoji",attrs:{name:"emoji"}},[n("ul",{staticClass:"operate-emoji scrollbar-hidden"},[e._l(e.operateEmojis,function(r,a){return n("li",{key:a,staticClass:"no-dark-content",domProps:{innerHTML:e._s(r)},on:{click:function(l){return e.onOperate("emoji",r)}}})}),n("li"),n("li",{staticClass:"more-emoji",on:{click:function(r){return e.onOperate("emoji","more")}}},[n("i",{staticClass:"taskfont"},[e._v("\uE790")])])],2)])],1)],1)],1),e.dialogDrag?n("div",{staticClass:"drag-over",on:{click:function(r){e.dialogDrag=!1}}},[n("div",{staticClass:"drag-text"},[e._v(e._s(e.$L("\u62D6\u52A8\u5230\u8FD9\u91CC\u53D1\u9001")))])]):e._e(),n("Modal",{attrs:{title:e.$L(e.pasteTitle),"cancel-text":e.$L("\u53D6\u6D88"),"ok-text":e.$L("\u53D1\u9001"),"enter-ok":!0},on:{"on-ok":e.pasteSend},model:{value:e.pasteShow,callback:function(r){e.pasteShow=r},expression:"pasteShow"}},[n("ul",{staticClass:"dialog-wrapper-paste",class:e.pasteWrapperClass},e._l(e.pasteItem,function(r){return n("li",[r.type=="image"?n("img",{attrs:{src:r.result}}):n("div",[e._v(e._s(e.$L("\u6587\u4EF6"))+": "+e._s(r.name)+" ("+e._s(e.$A.bytesToSize(r.size))+")")])])}),0)]),n("Modal",{attrs:{title:e.$L("\u521B\u5EFA\u7FA4\u7EC4"),"mask-closable":!1},model:{value:e.createGroupShow,callback:function(r){e.createGroupShow=r},expression:"createGroupShow"}},[n("Form",{attrs:{model:e.createGroupData,"label-width":"auto"},nativeOn:{submit:function(r){r.preventDefault()}}},[n("FormItem",{attrs:{prop:"avatar",label:e.$L("\u7FA4\u5934\u50CF")}},[n("ImgUpload",{attrs:{num:1,width:512,height:512,whcut:1},model:{value:e.createGroupData.avatar,callback:function(r){e.$set(e.createGroupData,"avatar",r)},expression:"createGroupData.avatar"}})],1),n("FormItem",{attrs:{prop:"chat_name",label:e.$L("\u7FA4\u540D\u79F0")}},[n("Input",{attrs:{placeholder:e.$L("\u8F93\u5165\u7FA4\u540D\u79F0\uFF08\u9009\u586B\uFF09")},model:{value:e.createGroupData.chat_name,callback:function(r){e.$set(e.createGroupData,"chat_name",r)},expression:"createGroupData.chat_name"}})],1),n("FormItem",{attrs:{prop:"userids",label:e.$L("\u7FA4\u6210\u5458")}},[n("UserInput",{attrs:{uncancelable:e.createGroupData.uncancelable,"multiple-max":100,"show-bot":"",placeholder:e.$L("\u9009\u62E9\u9879\u76EE\u6210\u5458")},model:{value:e.createGroupData.userids,callback:function(r){e.$set(e.createGroupData,"userids",r)},expression:"createGroupData.userids"}})],1)],1),n("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[n("Button",{attrs:{type:"default"},on:{click:function(r){e.createGroupShow=!1}}},[e._v(e._s(e.$L("\u53D6\u6D88")))]),n("Button",{attrs:{type:"primary",loading:e.createGroupLoad>0},on:{click:e.onCreateGroup}},[e._v(e._s(e.$L("\u521B\u5EFA")))])],1)],1),n("Modal",{attrs:{title:e.$L("\u4FEE\u6539\u8D44\u6599"),"mask-closable":!1},model:{value:e.modifyShow,callback:function(r){e.modifyShow=r},expression:"modifyShow"}},[n("Form",{attrs:{model:e.modifyData,"label-width":"auto"},nativeOn:{submit:function(r){r.preventDefault()}}},[n("FormItem",{attrs:{prop:"avatar",label:e.$L("\u5934\u50CF")}},[n("ImgUpload",{attrs:{num:1,width:512,height:512,whcut:1},model:{value:e.modifyData.avatar,callback:function(r){e.$set(e.modifyData,"avatar",r)},expression:"modifyData.avatar"}})],1),typeof e.modifyData.name!="undefined"?n("FormItem",{attrs:{prop:"name",label:e.$L("\u540D\u79F0")}},[n("Input",{attrs:{maxlength:20},model:{value:e.modifyData.name,callback:function(r){e.$set(e.modifyData,"name",r)},expression:"modifyData.name"}})],1):e._e(),typeof e.modifyData.clear_day!="undefined"?n("FormItem",{attrs:{prop:"clear_day",label:e.$L("\u6D88\u606F\u4FDD\u7559")}},[n("Input",{attrs:{maxlength:3,type:"number"},model:{value:e.modifyData.clear_day,callback:function(r){e.$set(e.modifyData,"clear_day",r)},expression:"modifyData.clear_day"}},[n("div",{attrs:{slot:"append"},slot:"append"},[e._v(e._s(e.$L("\u5929")))])])],1):e._e(),typeof e.modifyData.webhook_url!="undefined"?n("FormItem",{attrs:{prop:"webhook_url",label:"Webhook"}},[n("Input",{attrs:{maxlength:255},model:{value:e.modifyData.webhook_url,callback:function(r){e.$set(e.modifyData,"webhook_url",r)},expression:"modifyData.webhook_url"}})],1):e._e()],1),n("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[n("Button",{attrs:{type:"default"},on:{click:function(r){e.modifyShow=!1}}},[e._v(e._s(e.$L("\u53D6\u6D88")))]),n("Button",{attrs:{type:"primary",loading:e.modifyLoad>0},on:{click:e.onModify}},[e._v(e._s(e.$L("\u4FDD\u5B58")))])],1)],1),n("Modal",{attrs:{title:e.$L("\u8F6C\u53D1"),"mask-closable":!1},model:{value:e.forwardShow,callback:function(r){e.forwardShow=r},expression:"forwardShow"}},[n("DialogSelect",{model:{value:e.forwardData,callback:function(r){e.forwardData=r},expression:"forwardData"}}),n("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[n("Button",{attrs:{type:"default"},on:{click:function(r){e.forwardShow=!1}}},[e._v(e._s(e.$L("\u53D6\u6D88")))]),n("Button",{attrs:{type:"primary",loading:e.forwardLoad},on:{click:function(r){return e.onForward("submit")}}},[e._v(e._s(e.$L("\u8F6C\u53D1")))])],1)],1),n("Modal",{attrs:{title:e.$L("\u8BBE\u7F6E\u5F85\u529E"),"mask-closable":!1},model:{value:e.todoSettingShow,callback:function(r){e.todoSettingShow=r},expression:"todoSettingShow"}},[n("Form",{ref:"todoSettingForm",attrs:{model:e.todoSettingData,"label-width":"auto"},nativeOn:{submit:function(r){r.preventDefault()}}},[n("FormItem",{attrs:{prop:"type",label:e.$L("\u5F53\u524D\u4F1A\u8BDD")}},[n("RadioGroup",{model:{value:e.todoSettingData.type,callback:function(r){e.$set(e.todoSettingData,"type",r)},expression:"todoSettingData.type"}},[n("Radio",{attrs:{label:"all"}},[e._v(e._s(e.$L("\u6240\u6709\u6210\u5458")))]),n("Radio",{attrs:{label:"user"}},[e._v(e._s(e.$L("\u6307\u5B9A\u6210\u5458")))]),e.todoSettingData.my_id?n("Radio",{attrs:{label:"my"}},[n("div",{staticClass:"dialog-wrapper-todo"},[n("div",[n("UserAvatar",{attrs:{userid:e.todoSettingData.my_id,"show-icon":!1,"show-name":!0}}),n("Tag",[e._v(e._s(e.$L("\u81EA\u5DF1")))])],1)])]):e._e(),e.todoSettingData.you_id?n("Radio",{attrs:{label:"you"}},[n("div",{staticClass:"dialog-wrapper-todo"},[n("div",[n("UserAvatar",{attrs:{userid:e.todoSettingData.you_id,"show-icon":!1,"show-name":!0}})],1)])]):e._e()],1)],1),e.todoSettingData.type==="user"?n("FormItem",{attrs:{prop:"userids"}},[n("UserInput",{attrs:{"dialog-id":e.dialogId,placeholder:e.$L("\u9009\u62E9\u6307\u5B9A\u6210\u5458")},model:{value:e.todoSettingData.userids,callback:function(r){e.$set(e.todoSettingData,"userids",r)},expression:"todoSettingData.userids"}})],1):e._e()],1),n("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[n("Button",{attrs:{type:"default"},on:{click:function(r){e.todoSettingShow=!1}}},[e._v(e._s(e.$L("\u53D6\u6D88")))]),n("Button",{attrs:{type:"primary",loading:e.todoSettingLoad>0},on:{click:function(r){return e.onTodo("submit")}}},[e._v(e._s(e.$L("\u786E\u5B9A")))])],1)],1),n("DrawerOverlay",{attrs:{placement:"right",size:400},model:{value:e.groupInfoShow,callback:function(r){e.groupInfoShow=r},expression:"groupInfoShow"}},[e.groupInfoShow?n("DialogGroupInfo",{attrs:{dialogId:e.dialogId},on:{"on-close":function(r){e.groupInfoShow=!1}}}):e._e()],1),n("Modal",{attrs:{title:e.$L("\u8F6C\u8BA9\u7FA4\u4E3B\u8EAB\u4EFD"),"mask-closable":!1},model:{value:e.groupTransferShow,callback:function(r){e.groupTransferShow=r},expression:"groupTransferShow"}},[n("Form",{attrs:{model:e.groupTransferData,"label-width":"auto"},nativeOn:{submit:function(r){r.preventDefault()}}},[n("FormItem",{attrs:{prop:"userid",label:e.$L("\u65B0\u7684\u7FA4\u4E3B")}},[n("UserInput",{attrs:{disabledChoice:e.groupTransferData.disabledChoice,"multiple-max":1,"max-hidden-select":"",placeholder:e.$L("\u9009\u62E9\u65B0\u7684\u7FA4\u4E3B")},model:{value:e.groupTransferData.userid,callback:function(r){e.$set(e.groupTransferData,"userid",r)},expression:"groupTransferData.userid"}})],1)],1),n("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[n("Button",{attrs:{type:"default"},on:{click:function(r){e.groupTransferShow=!1}}},[e._v(e._s(e.$L("\u53D6\u6D88")))]),n("Button",{attrs:{type:"primary",loading:e.groupTransferLoad>0},on:{click:function(r){return e.onDialogMenu("transferConfirm")}}},[e._v(e._s(e.$L("\u786E\u5B9A\u8F6C\u8BA9")))])],1)],1),n("DrawerOverlay",{attrs:{placement:"right","class-name":"dialog-wrapper-drawer-list",size:500},model:{value:e.replyListShow,callback:function(r){e.replyListShow=r},expression:"replyListShow"}},[e.replyListShow?n("DialogWrapper",{staticClass:"drawer-list",attrs:{dialogId:e.dialogId,msgId:e.replyListId}},[n("div",{staticClass:"drawer-title",attrs:{slot:"head"},slot:"head"},[e._v(e._s(e.$L("\u56DE\u590D\u6D88\u606F")))])]):e._e()],1),n("DrawerOverlay",{attrs:{placement:"right",size:400},model:{value:e.respondShow,callback:function(r){e.respondShow=r},expression:"respondShow"}},[e.respondShow?n("DialogRespond",{attrs:{"respond-data":e.respondData},on:{"on-close":function(r){e.respondShow=!1}}}):e._e()],1),n("DrawerOverlay",{attrs:{placement:"right","class-name":"dialog-wrapper-drawer-list",size:500},model:{value:e.todoViewShow,callback:function(r){e.todoViewShow=r},expression:"todoViewShow"}},[n("div",{staticClass:"dialog-wrapper drawer-list"},[n("div",{staticClass:"dialog-nav"},[n("div",{staticClass:"drawer-title"},[e._v(e._s(e.$L("\u5F85\u529E\u6D88\u606F")))])]),n("div",{staticClass:"dialog-scroller scrollbar-overlay"},[e.todoViewMsg?n("DialogItem",{attrs:{source:e.todoViewMsg,simpleView:""},on:{"on-view-text":e.onViewText,"on-view-file":e.onViewFile,"on-down-file":e.onDownFile,"on-emoji":e.onEmoji}}):e._e(),n("Button",{staticClass:"original-button",attrs:{icon:"md-exit",type:"text",loading:e.todoViewPosLoad},on:{click:e.onPosTodo}},[e._v(e._s(e.$L("\u56DE\u5230\u539F\u6587")))])],1),n("div",{staticClass:"todo-button"},[n("Button",{attrs:{type:"primary",size:"large",icon:"md-checkbox-outline",loading:e.todoViewLoad,long:""},on:{click:e.onDoneTodo}},[e._v(e._s(e.$L("\u5B8C\u6210")))])],1)])]),n("DrawerOverlay",{attrs:{placement:"right",size:600},model:{value:e.approveDetailsShow,callback:function(r){e.approveDetailsShow=r},expression:"approveDetailsShow"}},[e.approveDetailsShow?n("ReviewDetails",{staticStyle:{height:"100%","border-radius":"10px"},attrs:{data:e.approveDetails}}):e._e()],1)],1):e._e()},NJ=[];const AJ={name:"DialogWrapper",components:{ImgUpload:Qu,DialogSelect:Wu,DialogRespond:QZ,DialogItem:pl,VirtualList:CJ,ChatInput:yJ,DialogGroupInfo:zZ,DrawerOverlay:Ku,UserInput:Rl,DialogUpload:BZ,ReviewDetails:Xu},props:{dialogId:{type:Number,default:0},msgId:{type:Number,default:0},autoFocus:{type:Boolean,default:!1},beforeBack:Function},data(){return{msgItem:pl,msgText:"",msgNew:0,msgType:"",loadIng:0,allMsgs:[],tempMsgs:[],tempId:$A.randNum(1e9,9999999999),msgLoadIng:0,msgActiveIndex:-1,pasteShow:!1,pasteFile:[],pasteItem:[],searchShow:!1,searchKey:"",searchLoad:0,searchLocation:1,searchResult:[],createGroupShow:!1,createGroupData:{},createGroupLoad:0,modifyShow:!1,modifyData:{},modifyLoad:0,forwardShow:!1,forwardLoad:!1,forwardData:{dialogids:[],userids:[]},openId:0,dialogDrag:!1,groupInfoShow:!1,groupTransferShow:!1,groupTransferLoad:0,groupTransferData:{userid:[],disabledChoice:[]},navStyle:{},operateVisible:!1,operateCopys:[],operateStyles:{},operateItem:{},recordState:"",wrapperStart:{},scrollOffset:0,scrollTail:0,preventMoreLoad:!1,preventToBottom:!1,replyListShow:!1,replyListId:0,respondShow:!1,respondData:{},todoSettingShow:!1,todoSettingLoad:0,todoSettingData:{type:"all",userids:[]},todoViewLoad:!1,todoViewPosLoad:!1,todoViewShow:!1,todoViewData:{},todoViewMid:0,todoViewId:0,scrollDisabled:!1,scrollDirection:null,scrollAction:0,scrollTmp:0,positionLoad:0,approveDetails:{id:0},approveDetailsShow:!1}},beforeDestroy(){this.$store.dispatch("forgetInDialog",this._uid),this.$store.dispatch("closeDialog",this.dialogId)},computed:{...Xn(["userIsAdmin","taskId","dialogSearchMsgId","dialogMsgs","dialogTodos","dialogMsgTransfer","cacheDialogs","wsOpenNum","touchBackInProgress","dialogIns","cacheUserBasic","fileLinks","cacheEmojis"]),...Cl(["isLoad"]),isReady(){return this.dialogId>0&&this.dialogData.id>0},dialogData(){return this.cacheDialogs.find(({id:e})=>e==this.dialogId)||{}},dialogList(){return this.cacheDialogs.filter(e=>!(e.name===void 0||e.dialog_delete===1)).sort((e,t)=>e.top_at||t.top_at?$A.Date(t.top_at)-$A.Date(e.top_at):e.todo_num>0||t.todo_num>0?t.todo_num-e.todo_num:$A.Date(t.last_at)-$A.Date(e.last_at))},dialogMsgList(){return this.isReady?this.dialogMsgs.filter(e=>e.dialog_id==this.dialogId):[]},tempMsgList(){return this.isReady?this.tempMsgs.filter(e=>e.dialog_id==this.dialogId):[]},allMsgList(){const e=[];if(e.push(...this.dialogMsgList.filter(t=>this.msgFilter(t))),this.msgId>0){const t=this.dialogMsgs.find(n=>n.id==this.msgId);t&&e.unshift(t)}if(this.tempMsgList.length>0){const t=e.map(({id:r})=>r),n=this.tempMsgList.filter(r=>!t.includes(r.id)&&this.msgFilter(r));n.length>0&&e.push(...n)}return e.sort((t,n)=>t.id-n.id)},loadMsg(){return this.isLoad(`msg::${this.dialogId}-${this.msgId}-${this.msgType}`)},prevId(){return this.allMsgs.length>0?$A.runNum(this.allMsgs[0].prev_id):0},peopleNum(){return this.dialogData.type==="group"?$A.runNum(this.dialogData.people):0},pasteTitle(){const{pasteItem:e}=this;let t=e.find(({type:r})=>r=="image"),n=e.find(({type:r})=>r!="image");return t&&n?"\u53D1\u9001\u6587\u4EF6/\u56FE\u7247":t?"\u53D1\u9001\u56FE\u7247":"\u53D1\u9001\u6587\u4EF6"},msgTags(){const e=[{type:"",label:"\u6D88\u606F"}];return this.dialogData.has_tag&&e.push({type:"tag",label:"\u6807\u6CE8"}),this.dialogData.has_image&&e.push({type:"image",label:"\u56FE\u7247"}),this.dialogData.has_file&&e.push({type:"file",label:"\u6587\u4EF6"}),this.dialogData.has_link&&e.push({type:"link",label:"\u94FE\u63A5"}),this.dialogData.group_type==="project"&&e.push({type:"project",label:"\u6253\u5F00\u9879\u76EE"}),this.dialogData.group_type==="task"&&e.push({type:"task",label:"\u6253\u5F00\u4EFB\u52A1"}),e},quickMsgs(){return this.dialogData.quick_msgs||[]},quickShow(){return this.quickMsgs.length>0&&this.windowScrollY===0&&this.quoteId===0},todoList(){return this.dialogData.todo_num?this.dialogTodos.filter(e=>!e.done_at&&e.dialog_id==this.dialogId).sort((e,t)=>t.id-e.id):[]},todoShow(){return this.todoList.length>0&&this.windowScrollY===0&&this.quoteId===0},wrapperClass(){return["ready","ing"].includes(this.recordState)?["record-ready"]:null},tagShow(){return this.msgTags.length>1&&this.windowScrollY===0&&!this.searchShow},scrollerClass(){return!this.$slots.head&&this.tagShow?"default-header":null},pasteWrapperClass(){return this.pasteItem.find(({type:e})=>e!=="image")?["multiple"]:[]},footerClass(){return this.msgNew>0&&this.allMsgs.length>0?"newmsg":this.scrollTail>500?"goto":null},msgUnreadOnly(){let e=0;return this.cacheDialogs.some(t=>{e+=$A.getDialogNum(t)}),e<=0?"":(e>999&&(e="999+"),String(e))},isMyDialog(){const{dialogData:e,userId:t}=this;return e.dialog_user&&e.dialog_user.userid==t},isMute(){if(this.dialogData.group_type==="all"){if(this.dialogData.all_group_mute==="all")return!0;if(this.dialogData.all_group_mute==="user"&&!this.userIsAdmin)return!0}return!1},quoteId(){return this.msgId>0?this.msgId:this.dialogData.extra_quote_id||0},quoteUpdate(){return this.dialogData.extra_quote_type==="update"},quoteData(){return this.quoteId?this.allMsgs.find(({id:e})=>e===this.quoteId):null},todoViewMsg(){if(this.todoViewMid){const e=this.allMsgs.find(t=>t.id==this.todoViewMid);if(e)return e;if(this.todoViewData.id===this.todoViewMid)return this.todoViewData}return null},positionMsg(){const{unread:e,position_msgs:t}=this.dialogData;if(!t||t.length===0||e===0||this.allMsgs.length===0)return null;const n=t.sort((r,a)=>a.msg_id-r.msg_id)[0];return this.allMsgs.findIndex(({id:r})=>r==n.msg_id)===-1?n.label==="{UNREAD}"?Object.assign(n,{label:this.$L(`\u672A\u8BFB\u6D88\u606F${e}\u6761`)}):n:null},operateEmojis(){const e=this.cacheEmojis.slice(0,3);return Object.values(["\u{1F44C}","\u{1F44D}","\u{1F602}","\u{1F389}","\u2764\uFE0F","\u{1F973}\uFE0F","\u{1F970}","\u{1F625}","\u{1F62D}"]).some(t=>{e.includes(t)||e.push(t)}),e}},watch:{dialogId:{handler(e,t){e&&(this.msgNew=0,this.msgType="",this.searchShow=!1,this.allMsgList.length>0&&(this.allMsgs=this.allMsgList,requestAnimationFrame(this.onToBottom)),this.getMsgs({dialog_id:e,msg_id:this.msgId,msg_type:this.msgType}).then(n=>{this.openId=e,setTimeout(this.onSearchMsgId,100)}).catch(n=>{}),this.$store.dispatch("saveInDialog",{uid:this._uid,dialog_id:e}),this.autoFocus&&this.inputFocus()),this.$store.dispatch("closeDialog",t)},immediate:!0},loadMsg:{handler(e){e?this.loadIng++:setTimeout(t=>{this.loadIng--},300)},immediate:!0},msgType(){this.getMsgs({dialog_id:this.dialogId,msg_id:this.msgId,msg_type:this.msgType,clear_before:!0}).catch(e=>{})},searchKey(e){!e||(this.searchLoad++,setTimeout(t=>{this.searchKey===e&&(this.searchLoad++,this.searchResult=[],this.searchLocation=0,this.$store.dispatch("call",{url:"dialog/msg/search",data:{dialog_id:this.dialogId,key:e}}).then(({data:n})=>{this.searchKey===e&&(this.searchResult=n.data,this.searchLocation=this.searchResult.length)}).finally(n=>{this.searchLoad--})),this.searchLoad--},600))},searchLocation(e){if(e===0)return;const t=this.searchResult[e-1];t&&this.onPositionId(t)},dialogSearchMsgId(){this.onSearchMsgId()},dialogMsgTransfer:{handler({time:e,msgFile:t,msgRecord:n,msgText:r,dialogId:a}){e>$A.Time()&&a==this.dialogId&&(this.$store.state.dialogMsgTransfer.time=0,this.$nextTick(()=>{$A.isArray(t)&&t.length>0?this.sendFileMsg(t):$A.isJson(n)&&n.duration>0?this.sendRecord(n):r&&this.sendMsg(r)}))},immediate:!0},wsOpenNum(e){e<=1||this.getMsgs({dialog_id:this.dialogId,msg_id:this.msgId,msg_type:this.msgType}).catch(t=>{})},allMsgList(e,t){const{tail:n}=this.scrollInfo();if(this.allMsgs=e,!this.windowActive||n>10&&t.length>0){const r=t[t.length-1]?t[t.length-1].id:0,a=e.filter(l=>l.id&&l.id>r);this.msgNew+=a.length}else this.preventToBottom||this.$nextTick(this.onToBottom)},windowScrollY(e){if($A.isIos()){const{tail:t}=this.scrollInfo();this.navStyle={marginTop:e+"px"},t<=10&&requestAnimationFrame(this.onToBottom),this.$refs.input.isFocus&&$A.scrollToView(this.$refs.footer)}},windowActive(e){if(e&&this.autoFocus){const t=$A.last(this.dialogIns);t&&t.uid===this._uid&&this.inputFocus()}},dialogDrag(e){e&&(this.operateVisible=!1)},msgActiveIndex(e){e>-1&&setTimeout(t=>this.msgActiveIndex=-1,800)}},methods:{sendMsg(e,t){let n,r="text",a="no",l=!1;if(typeof e=="string"&&e?n=e:(n=this.msgText,l=!0),t==="md"?(n=this.$refs.input.getText(),r="md"):t==="silence"&&(a="yes"),n==""){this.inputFocus();return}if(r==="text"&&(n=n.replace(/<\/span> <\/p>$/,"

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

${e.label}

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

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

${e.label}

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

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

\u70B9\u51FB\u3010\u786E\u5B9A\u3011\u52A0\u8F7D\u6700\u65B0\u5185\u5BB9\u3002",onOk:()=>{this.getContent()}});break}},deep:!0}},computed:{...c(["wsMsg"]),fileId(){return this.file.id||0},fileName(){return this.fileExt?$A.getFileName(Object.assign(this.file,{ext:this.fileExt})):$A.getFileName(this.file)},equalContent(){return this.contentBak==$A.jsonStringify(this.contentDetail)},contentLoad(){return this.loadContent>0||this.previewLoad},isPreview(){return this.contentDetail&&this.contentDetail.preview===!0},previewLoad(){return this.isPreview&&this.loadPreview===!0},previewUrl(){if(this.isPreview){const{name:e,key:s}=this.contentDetail;return $A.apiUrl(`../online/preview/${e}?key=${s}`)}return""}},methods:{handleOfficeMessage({data:e,source:s}){if(e.source==="onlyoffice")switch(e.action){case"ready":s.postMessage("createMenu","*");break;case"link":this.handleClick("link");break;case"history":const t=this.$refs.officeHeader;t&&(t.style.top=`${e.rect.top}px`,t.style.left=`${e.rect.left}px`,t.style.width=`${e.rect.width}px`,t.style.height=`${e.rect.height}px`,t.click());break}},onFrameLoad(){this.loadPreview=!1},keySave(e){this.value&&e.keyCode===83&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),this.onSaveSave())},getContent(){if(this.fileId===0){this.contentDetail={},this.updateBak();return}if(["word","excel","ppt"].includes(this.file.type)){this.contentDetail=$A.cloneJSON(this.file),this.updateBak();return}this.loadSave++,setTimeout(e=>{this.loadContent++},600),this.$store.dispatch("call",{url:"file/content",data:{id:this.fileId}}).then(({data:e})=>{this.contentDetail=e.content,this.updateBak()}).catch(({msg:e})=>{$A.modalError(e)}).finally(e=>{this.loadSave--,this.loadContent--})},updateBak(){this.contentBak=$A.jsonStringify(this.contentDetail)},handleClick(e){switch(e){case"link":this.linkData={id:this.fileId,name:this.file.name},this.linkShow=!0,this.linkGet();break;case"saveBefore":!this.equalContent&&this.loadSave==0?this.handleClick("save"):$A.messageWarning("\u6CA1\u6709\u4EFB\u4F55\u4FEE\u6539\uFF01");break;case"save":if(this.file.only_view)return;this.updateBak(),this.loadSave++,this.$store.dispatch("call",{url:"file/content/save",method:"post",data:{id:this.fileId,content:this.contentBak}}).then(({data:s,msg:t})=>{$A.messageSuccess(t);const i={id:this.fileId,size:s.size};this.fileExt&&(i.ext=this.fileExt,this.fileExt=null),this.$store.dispatch("saveFile",i)}).catch(({msg:s})=>{$A.modalError(s),this.getContent()}).finally(s=>{this.loadSave--});break;case"officeReady":this.officeReady=!0;break}},onRestoreHistory(e){this.historyShow=!1,$A.modalConfirm({content:`\u4F60\u786E\u5B9A\u6587\u4EF6\u8FD8\u539F\u81F3\u3010${e.created_at}\u3011\u5417\uFF1F`,cancelText:"\u53D6\u6D88",okText:"\u786E\u5B9A",loading:!0,onOk:()=>new Promise((s,t)=>{this.$store.dispatch("call",{url:"file/content/restore",data:{id:this.fileId,history_id:e.id}}).then(({msg:i})=>{s(i),this.contentDetail=null,this.getContent()}).catch(({msg:i})=>{t(i)})})})},linkGet(e){this.linkLoad++,this.$store.dispatch("call",{url:"file/link",data:{id:this.linkData.id,refresh:e===!0?"yes":"no"}}).then(({data:s})=>{this.linkData=Object.assign(s,{id:this.linkData.id,name:this.linkData.name}),this.linkFocus()}).catch(({msg:s})=>{this.linkShow=!1,$A.modalError(s)}).finally(s=>{this.linkLoad--})},linkCopy(){!this.linkData.url||(this.linkFocus(),this.$copyText(this.linkData.url).then(e=>{$A.messageSuccess("\u590D\u5236\u6210\u529F")}).catch(e=>{$A.messageError("\u590D\u5236\u5931\u8D25")}))},linkFocus(){this.$nextTick(e=>{this.$refs.linkInput.focus({cursor:"all"})})},exportMenu(e){switch(this.file.type){case"mind":this.$refs.myMind.exportHandle(e,this.file.name);break}},unSaveGive(){this.getContent(),this.unsaveTip=!1},onSaveSave(){this.handleClick("save"),this.unsaveTip=!1},setTextType(e){this.fileExt=e,this.$set(this.contentDetail,"type",e)},documentKey(){return new Promise(e=>{this.$store.dispatch("call",{url:"file/content",data:{id:this.fileId,only_update_at:"yes"}}).then(({data:s})=>{e(`${s.id}-${$A.Time(s.update_at)}`)}).catch(()=>{e(0)})})}}},l={};var C=r(S,m,y,!1,L,null,null,null);function L(e){for(let s in l)this[s]=l[s]}var A=function(){return C.exports}();export{A as default}; diff --git a/public/js/build/FilePreview.bac893ec.js b/public/js/build/FilePreview.6f0e339c.js similarity index 76% rename from public/js/build/FilePreview.bac893ec.js rename to public/js/build/FilePreview.6f0e339c.js index 2c85f8def..3f02f0aa2 100644 --- a/public/js/build/FilePreview.bac893ec.js +++ b/public/js/build/FilePreview.6f0e339c.js @@ -1 +1 @@ -import{n as r,_ as n}from"./app.7a29bd84.js";import{I as a}from"./IFrame.509253e7.js";var s=function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("div",{staticClass:"file-preview"},[e.isPreview?t("IFrame",{staticClass:"preview-iframe",attrs:{src:e.previewUrl},on:{"on-load":e.onFrameLoad}}):e.contentDetail?[t("div",{directives:[{name:"show",rawName:"v-show",value:e.headerShow&&!["word","excel","ppt"].includes(e.file.type),expression:"headerShow && !['word', 'excel', 'ppt'].includes(file.type)"}],staticClass:"edit-header"},[t("div",{staticClass:"header-title"},[t("div",{staticClass:"title-name"},[e._v(e._s(e.$A.getFileName(e.file)))]),t("Tag",{attrs:{color:"default"}},[e._v(e._s(e.$L("\u53EA\u8BFB")))]),t("div",{staticClass:"refresh"},[e.contentLoad?t("Loading"):t("Icon",{attrs:{type:"ios-refresh"},on:{click:e.getContent}})],1)],1),e.file.type=="mind"?t("Dropdown",{staticClass:"header-hint",attrs:{trigger:"click"},on:{"on-click":e.exportMenu}},[t("a",{attrs:{href:"javascript:void(0)"}},[e._v(e._s(e.$L("\u5BFC\u51FA"))),t("Icon",{attrs:{type:"ios-arrow-down"}})],1),t("DropdownMenu",{attrs:{slot:"list"},slot:"list"},[t("DropdownItem",{attrs:{name:"png"}},[e._v(e._s(e.$L("\u5BFC\u51FAPNG\u56FE\u7247")))]),t("DropdownItem",{attrs:{name:"pdf"}},[e._v(e._s(e.$L("\u5BFC\u51FAPDF\u6587\u4EF6")))])],1)],1):e._e()],1),t("div",{staticClass:"content-body"},[e.file.type=="document"?[e.contentDetail.type=="md"?t("MDPreview",{attrs:{initialValue:e.contentDetail.content}}):t("TEditor",{attrs:{value:e.contentDetail.content,height:"100%",readOnly:""}})]:e.file.type=="drawio"?t("Drawio",{ref:"myFlow",attrs:{value:e.contentDetail,title:e.file.name,readOnly:""}}):e.file.type=="mind"?t("Minder",{ref:"myMind",attrs:{value:e.contentDetail,readOnly:""}}):["code","txt"].includes(e.file.type)?t("AceEditor",{attrs:{value:e.contentDetail.content,ext:e.file.ext,readOnly:""}}):["word","excel","ppt"].includes(e.file.type)?t("OnlyOffice",{attrs:{value:e.contentDetail,code:e.code,historyId:e.historyId,documentKey:e.documentKey,readOnly:""}}):e._e()],2)]:e._e(),e.contentLoad?t("div",{staticClass:"content-load"},[t("Loading")],1):e._e()],2)},l=[];const d=()=>n(()=>import("./preview.5c68c877.js"),["js/build/preview.5c68c877.js","js/build/app.7a29bd84.js","js/build/app.b16d0b3f.css"]),c=()=>n(()=>import("./TEditor.aca79ca9.js"),["js/build/TEditor.aca79ca9.js","js/build/app.7a29bd84.js","js/build/app.b16d0b3f.css","js/build/ImgUpload.4fe6c2dc.js"]),_=()=>n(()=>import("./AceEditor.ad64c791.js"),["js/build/AceEditor.ad64c791.js","js/build/app.7a29bd84.js","js/build/app.b16d0b3f.css"]),p=()=>n(()=>import("./OnlyOffice.8b86e1e3.js"),["js/build/OnlyOffice.8b86e1e3.js","js/build/OnlyOffice.a5dfbde1.css","js/build/app.7a29bd84.js","js/build/app.b16d0b3f.css","js/build/IFrame.509253e7.js"]),u=()=>n(()=>import("./Drawio.a6570d68.js"),["js/build/Drawio.a6570d68.js","js/build/Drawio.fc5c6326.css","js/build/app.7a29bd84.js","js/build/app.b16d0b3f.css","js/build/IFrame.509253e7.js"]),h=()=>n(()=>import("./Minder.0d9de7de.js"),["js/build/Minder.0d9de7de.js","js/build/Minder.f2273bdb.css","js/build/IFrame.509253e7.js","js/build/app.7a29bd84.js","js/build/app.b16d0b3f.css"]),v={name:"FilePreview",components:{IFrame:a,AceEditor:_,TEditor:c,MDPreview:d,OnlyOffice:p,Drawio:u,Minder:h},props:{code:{type:String,default:""},historyId:{type:Number,default:0},file:{type:Object,default:()=>({})},headerShow:{type:Boolean,default:!0}},data(){return{loadContent:0,contentDetail:null,loadPreview:!0}},watch:{"file.id":{handler(e){e&&(this.contentDetail=null,this.getContent())},immediate:!0,deep:!0}},computed:{contentLoad(){return this.loadContent>0||this.previewLoad},isPreview(){return this.contentDetail&&this.contentDetail.preview===!0},previewLoad(){return this.isPreview&&this.loadPreview===!0},previewUrl(){if(this.isPreview){const{name:e,key:i}=this.contentDetail;return $A.apiUrl(`../online/preview/${e}?key=${i}`)}return""}},methods:{onFrameLoad(){this.loadPreview=!1},getContent(){if(["word","excel","ppt"].includes(this.file.type)){this.contentDetail=$A.cloneJSON(this.file);return}setTimeout(e=>{this.loadContent++},600),this.$store.dispatch("call",{url:"file/content",data:{id:this.code||this.file.id,history_id:this.historyId}}).then(({data:e})=>{this.contentDetail=e.content}).catch(({msg:e})=>{$A.modalError(e)}).finally(e=>{this.loadContent--})},documentKey(){return new Promise(e=>{this.$store.dispatch("call",{url:"file/content",data:{id:this.code||this.file.id,only_update_at:"yes"}}).then(({data:i})=>{e(`${i.id}-${$A.Time(i.update_at)}`)}).catch(()=>{e(0)})})},exportMenu(e){switch(this.file.type){case"mind":this.$refs.myMind.exportHandle(e,this.file.name);break}}}},o={};var f=r(v,s,l,!1,m,null,null,null);function m(e){for(let i in o)this[i]=o[i]}var D=function(){return f.exports}();export{D as default}; +import{n as r,_ as n}from"./app.aaf5ae6f.js";import{I as a}from"./IFrame.f24c40d2.js";var s=function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("div",{staticClass:"file-preview"},[e.isPreview?t("IFrame",{staticClass:"preview-iframe",attrs:{src:e.previewUrl},on:{"on-load":e.onFrameLoad}}):e.contentDetail?[t("div",{directives:[{name:"show",rawName:"v-show",value:e.headerShow&&!["word","excel","ppt"].includes(e.file.type),expression:"headerShow && !['word', 'excel', 'ppt'].includes(file.type)"}],staticClass:"edit-header"},[t("div",{staticClass:"header-title"},[t("div",{staticClass:"title-name"},[e._v(e._s(e.$A.getFileName(e.file)))]),t("Tag",{attrs:{color:"default"}},[e._v(e._s(e.$L("\u53EA\u8BFB")))]),t("div",{staticClass:"refresh"},[e.contentLoad?t("Loading"):t("Icon",{attrs:{type:"ios-refresh"},on:{click:e.getContent}})],1)],1),e.file.type=="mind"?t("Dropdown",{staticClass:"header-hint",attrs:{trigger:"click"},on:{"on-click":e.exportMenu}},[t("a",{attrs:{href:"javascript:void(0)"}},[e._v(e._s(e.$L("\u5BFC\u51FA"))),t("Icon",{attrs:{type:"ios-arrow-down"}})],1),t("DropdownMenu",{attrs:{slot:"list"},slot:"list"},[t("DropdownItem",{attrs:{name:"png"}},[e._v(e._s(e.$L("\u5BFC\u51FAPNG\u56FE\u7247")))]),t("DropdownItem",{attrs:{name:"pdf"}},[e._v(e._s(e.$L("\u5BFC\u51FAPDF\u6587\u4EF6")))])],1)],1):e._e()],1),t("div",{staticClass:"content-body"},[e.file.type=="document"?[e.contentDetail.type=="md"?t("MDPreview",{attrs:{initialValue:e.contentDetail.content}}):t("TEditor",{attrs:{value:e.contentDetail.content,height:"100%",readOnly:""}})]:e.file.type=="drawio"?t("Drawio",{ref:"myFlow",attrs:{value:e.contentDetail,title:e.file.name,readOnly:""}}):e.file.type=="mind"?t("Minder",{ref:"myMind",attrs:{value:e.contentDetail,readOnly:""}}):["code","txt"].includes(e.file.type)?t("AceEditor",{attrs:{value:e.contentDetail.content,ext:e.file.ext,readOnly:""}}):["word","excel","ppt"].includes(e.file.type)?t("OnlyOffice",{attrs:{value:e.contentDetail,code:e.code,historyId:e.historyId,documentKey:e.documentKey,readOnly:""}}):e._e()],2)]:e._e(),e.contentLoad?t("div",{staticClass:"content-load"},[t("Loading")],1):e._e()],2)},l=[];const d=()=>n(()=>import("./preview.abc33550.js"),["js/build/preview.abc33550.js","js/build/app.aaf5ae6f.js","js/build/app.cd204fe3.css"]),c=()=>n(()=>import("./TEditor.a74a72fe.js"),["js/build/TEditor.a74a72fe.js","js/build/app.aaf5ae6f.js","js/build/app.cd204fe3.css","js/build/ImgUpload.732c31bf.js"]),_=()=>n(()=>import("./AceEditor.5593e011.js"),["js/build/AceEditor.5593e011.js","js/build/app.aaf5ae6f.js","js/build/app.cd204fe3.css"]),p=()=>n(()=>import("./OnlyOffice.bb691c8f.js"),["js/build/OnlyOffice.bb691c8f.js","js/build/OnlyOffice.a5dfbde1.css","js/build/app.aaf5ae6f.js","js/build/app.cd204fe3.css","js/build/IFrame.f24c40d2.js"]),u=()=>n(()=>import("./Drawio.b02152e9.js"),["js/build/Drawio.b02152e9.js","js/build/Drawio.fc5c6326.css","js/build/app.aaf5ae6f.js","js/build/app.cd204fe3.css","js/build/IFrame.f24c40d2.js"]),h=()=>n(()=>import("./Minder.b530b5c9.js"),["js/build/Minder.b530b5c9.js","js/build/Minder.f2273bdb.css","js/build/IFrame.f24c40d2.js","js/build/app.aaf5ae6f.js","js/build/app.cd204fe3.css"]),v={name:"FilePreview",components:{IFrame:a,AceEditor:_,TEditor:c,MDPreview:d,OnlyOffice:p,Drawio:u,Minder:h},props:{code:{type:String,default:""},historyId:{type:Number,default:0},file:{type:Object,default:()=>({})},headerShow:{type:Boolean,default:!0}},data(){return{loadContent:0,contentDetail:null,loadPreview:!0}},watch:{"file.id":{handler(e){e&&(this.contentDetail=null,this.getContent())},immediate:!0,deep:!0}},computed:{contentLoad(){return this.loadContent>0||this.previewLoad},isPreview(){return this.contentDetail&&this.contentDetail.preview===!0},previewLoad(){return this.isPreview&&this.loadPreview===!0},previewUrl(){if(this.isPreview){const{name:e,key:i}=this.contentDetail;return $A.apiUrl(`../online/preview/${e}?key=${i}`)}return""}},methods:{onFrameLoad(){this.loadPreview=!1},getContent(){if(["word","excel","ppt"].includes(this.file.type)){this.contentDetail=$A.cloneJSON(this.file);return}setTimeout(e=>{this.loadContent++},600),this.$store.dispatch("call",{url:"file/content",data:{id:this.code||this.file.id,history_id:this.historyId}}).then(({data:e})=>{this.contentDetail=e.content}).catch(({msg:e})=>{$A.modalError(e)}).finally(e=>{this.loadContent--})},documentKey(){return new Promise(e=>{this.$store.dispatch("call",{url:"file/content",data:{id:this.code||this.file.id,only_update_at:"yes"}}).then(({data:i})=>{e(`${i.id}-${$A.Time(i.update_at)}`)}).catch(()=>{e(0)})})},exportMenu(e){switch(this.file.type){case"mind":this.$refs.myMind.exportHandle(e,this.file.name);break}}}},o={};var f=r(v,s,l,!1,m,null,null,null);function m(e){for(let i in o)this[i]=o[i]}var D=function(){return f.exports}();export{D as default}; diff --git a/public/js/build/IFrame.509253e7.js b/public/js/build/IFrame.f24c40d2.js similarity index 94% rename from public/js/build/IFrame.509253e7.js rename to public/js/build/IFrame.f24c40d2.js index 6e53b5f26..df7764267 100644 --- a/public/js/build/IFrame.509253e7.js +++ b/public/js/build/IFrame.f24c40d2.js @@ -1 +1 @@ -import{n}from"./app.7a29bd84.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.aaf5ae6f.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.4fe6c2dc.js b/public/js/build/ImgUpload.732c31bf.js similarity index 99% rename from public/js/build/ImgUpload.4fe6c2dc.js rename to public/js/build/ImgUpload.732c31bf.js index 5c5fdce42..4e8271325 100644 --- a/public/js/build/ImgUpload.4fe6c2dc.js +++ b/public/js/build/ImgUpload.732c31bf.js @@ -1 +1 @@ -import{n as o}from"./app.7a29bd84.js";var r=function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",{staticClass:"common-img-update"},[t._l(t.uploadList,function(s){return t.type!=="callback"?e("div",{staticClass:"imgcomp-upload-list"},[s.status==="finished"?[e("div",{staticClass:"imgcomp-upload-img",style:{"background-image":"url("+t.__thumb(s.thumb)+")"}}),e("div",{staticClass:"imgcomp-upload-list-cover"},[e("Icon",{attrs:{type:"ios-eye-outline"},nativeOn:{click:function(a){return t.handleView(s)}}}),e("Icon",{attrs:{type:"ios-trash-outline"},nativeOn:{click:function(a){return t.handleRemove(s)}}})],1)]:[s.showProgress?e("Progress",{attrs:{percent:s.percentage,"hide-info":""}}):t._e()]],2):t._e()}),e("div",{staticClass:"add-box",class:{"callback-add-box":t.type==="callback"}},[e("div",{staticClass:"add-box-icon"},[e("Icon",{attrs:{type:"md-add",size:"32"}})],1),e("div",{staticClass:"add-box-upload"},[e("div",{staticClass:"add-box-item",on:{click:t.browsePicture}},[e("span",[t._v(t._s(t.$L("\u6D4F\u89C8"))),t.type==="callback"?e("em",[t._v(t._s(t.$L("\u56FE\u7247")))]):t._e()])]),e("div",{staticClass:"add-box-item"},[e("Upload",{ref:"upload",attrs:{name:"image",accept:"image/*",action:t.actionUrl,headers:t.uploadHeaders,data:t.uploadParams,"show-upload-list":!1,"max-size":t.maxSize,format:["jpg","jpeg","webp","gif","png"],"default-file-list":t.defaultList,"on-progress":t.handleProgress,"on-success":t.handleSuccess,"on-error":t.handleError,"on-format-error":t.handleFormatError,"on-exceeded-size":t.handleMaxSize,"before-upload":t.handleBeforeUpload,multiple:t.multiple}},[e("span",[t._v(t._s(t.$L("\u4E0A\u4F20"))),t.type==="callback"?e("em",[t._v(t._s(t.$L("\u56FE\u7247")))]):t._e()])])],1)])]),e("Modal",{staticClass:"img-upload-modal",attrs:{title:t.$L("\u6D4F\u89C8\u56FE\u7247\u7A7A\u95F4"),width:"710"},model:{value:t.browseVisible,callback:function(s){t.browseVisible=s},expression:"browseVisible"}},[t.isLoading?e("div",{staticClass:"browse-load"},[t._v(t._s(t.$L("\u52A0\u8F7D\u4E2D...")))]):e("div",{ref:"browselistbox",staticClass:"browse-list",class:t.httpType==="input"?"browse-list-disabled":""},[t.browseList.length<=0?e("div",[t._v(t._s(t.$L("\u65E0\u5185\u5BB9")))]):t._l(t.browseList,function(s){return e("div",{staticClass:"browse-item",on:{click:function(a){return t.browseItem(s)}}},[s.active?e("Icon",{staticClass:"browse-icon",attrs:{type:"ios-checkmark-circle"}}):t._e(),e("div",{staticClass:"browse-img",style:{"background-image":"url("+s.thumb+")"}}),e("div",{staticClass:"browse-title"},[t._v(t._s(s.title))])],1)})],2),e("div",{staticClass:"img-upload-foot",attrs:{slot:"footer"},slot:"footer"},[t.type!=="callback"&&t.http&&t.httpType===""?e("div",{staticClass:"img-upload-foot-input",on:{click:function(s){t.httpType="input"}}},[e("Icon",{attrs:{type:"ios-image",size:"22"}}),e("div",{staticClass:"img-upload-foot-httptitle"},[t._v(t._s(t.$L("\u81EA\u5B9A\u4E49\u56FE\u7247\u5730\u5740")))])],1):t._e(),t.type!=="callback"&&t.http&&t.httpType==="input"?e("div",{staticClass:"img-upload-foot-input"},[e("Input",{attrs:{placeholder:t.$L("\u4EE5 http:// \u6216 https:// \u5F00\u5934"),search:"","enter-button":t.$L("\u786E\u5B9A")},on:{"on-search":t.httpEnter},model:{value:t.httpValue,callback:function(s){t.httpValue=s},expression:"httpValue"}},[e("span",{staticStyle:{cursor:"pointer"},attrs:{slot:"prepend"},on:{click:function(s){t.httpType=""}},slot:"prepend"},[t._v(t._s(t.$L("\u81EA\u5B9A\u4E49\u5730\u5740"))+": ")])])],1):t._e(),t.httpType===""?e("Button",{on:{click:function(s){t.browseVisible=!1}}},[t._v(t._s(t.$L("\u5173\u95ED")))]):t._e(),t.httpType===""?e("Button",{attrs:{type:"primary"},on:{click:function(s){return t.handleCallback(!0)}}},[t._v(t._s(t.$L("\u5B8C\u6210")))]):t._e()],1)]),e("Modal",{staticClass:"img-upload-modal",attrs:{title:t.$L("\u67E5\u770B\u56FE\u7247"),draggable:""},model:{value:t.visible,callback:function(s){t.visible=s},expression:"visible"}},[e("div",{staticStyle:{"max-height":"480px",overflow:"auto"}},[e("a",{attrs:{href:t.imgVisible,target:"_blank"}},[t.visible?e("img",{staticStyle:{"max-width":"100%","max-height":"900px",display:"block",margin:"0 auto"},attrs:{src:t.imgVisible}}):t._e()])])])],2)},n=[];const h={name:"ImgUpload",props:{value:{},num:{},width:{},height:{},whcut:{},type:{},http:{type:Boolean,default:!1},otherParams:{type:Object,default:()=>({})},uploadIng:{type:Number,default:0}},data(){return{actionUrl:$A.apiUrl("system/imgupload"),multiple:this.num>1,visible:!1,browseVisible:!1,isLoading:!1,browseList:[],browseListNext:[],imgVisible:"",defaultList:this.initItems(this.value),uploadList:[],maxNum:Math.min(Math.max($A.runNum(this.num),1),99),httpValue:"",httpType:"",maxSize:2048}},mounted(){this.uploadList=this.$refs.upload.fileList,this.$emit("input",this.uploadList);let t=$A(this.$refs.browselistbox);t.scroll(()=>{let i=t[0].scrollHeight,e=t[0].scrollTop,s=t.height();if(e+s>=i&&this.browseListNext.length>0){let a=this.browseListNext;this.browseListNext=[],this.browsePictureFor(a)}})},watch:{value(t){if(typeof t=="string"){this.$emit("input",this.initItems(t));return}t!==this.$refs.upload.fileList&&(this.$refs.upload.fileList=this.initItems(t),this.uploadList=this.$refs.upload.fileList)},browseVisible(){this.httpType="",this.httpValue=""}},computed:{uploadHeaders(){return{fd:$A.getSessionStorageString("userWsFd"),token:this.userToken}},uploadParams(){let t={width:this.width,height:this.height,whcut:this.whcut};return Object.keys(this.otherParams).length>0?Object.assign(t,this.otherParams):t}},methods:{handleCallback(t){this.type==="callback"&&(t===!0?(this.$emit("on-callback",this.uploadList),this.$refs.upload.fileList=[],this.uploadList=this.$refs.upload.fileList):typeof t=="object"&&this.$emit("on-callback",[t])),this.browseVisible=!1},initItems(t){typeof t=="string"&&(t=[{url:t}]);let i=[];return $A.each(t,(e,s)=>{typeof s=="string"&&(s={url:s}),s.url&&(s.active=!0,s.status="finished",typeof s.path=="undefined"&&(s.path=s.url),typeof s.thumb=="undefined"&&(s.thumb=s.url),i.push(s))}),i},handleView(t){this.$store.dispatch("previewImage",t.url)},handleRemove(t){let i=this.$refs.upload.fileList;this.$refs.upload.fileList.splice(i.indexOf(t),1),this.$emit("input",this.$refs.upload.fileList)},handleProgress(t,i){i._uploadIng===void 0&&(i._uploadIng=!0,this.$emit("update:uploadIng",this.uploadIng+1))},handleSuccess(t,i){this.$emit("update:uploadIng",this.uploadIng-1),t.ret===1?(i.url=t.data.url,i.path=t.data.path,i.thumb=t.data.thumb,this.handleCallback(i)):($A.noticeWarning({title:this.$L("\u4E0A\u4F20\u5931\u8D25"),desc:this.$L("\u6587\u4EF6 "+i.name+" \u4E0A\u4F20\u5931\u8D25 "+t.msg)}),this.$refs.upload.fileList.pop()),this.$emit("input",this.$refs.upload.fileList)},handleError(){this.$emit("update:uploadIng",this.uploadIng-1)},handleFormatError(t){$A.noticeWarning({title:this.$L("\u6587\u4EF6\u683C\u5F0F\u4E0D\u6B63\u786E"),desc:this.$L("\u6587\u4EF6 "+t.name+" \u683C\u5F0F\u4E0D\u6B63\u786E\uFF0C\u8BF7\u4E0A\u4F20 jpg\u3001jpeg\u3001webp\u3001gif\u3001png \u683C\u5F0F\u7684\u56FE\u7247\u3002")})},handleMaxSize(t){$A.noticeWarning({title:this.$L("\u8D85\u51FA\u6587\u4EF6\u5927\u5C0F\u9650\u5236"),desc:this.$L("\u6587\u4EF6 "+t.name+" \u592A\u5927\uFF0C\u4E0D\u80FD\u8D85\u8FC7\uFF1A"+$A.bytesToSize(this.maxSize*1024))})},handleBeforeUpload(){let t=this.uploadList.length{let e=i.dirs;for(let s=0;s{this.browseVisible=!1,$A.noticeWarning(i)}).finally(i=>{this.isLoading=!1})},browsePictureFor(t){for(let i=0;i({})},uploadIng:{type:Number,default:0}},data(){return{actionUrl:$A.apiUrl("system/imgupload"),multiple:this.num>1,visible:!1,browseVisible:!1,isLoading:!1,browseList:[],browseListNext:[],imgVisible:"",defaultList:this.initItems(this.value),uploadList:[],maxNum:Math.min(Math.max($A.runNum(this.num),1),99),httpValue:"",httpType:"",maxSize:2048}},mounted(){this.uploadList=this.$refs.upload.fileList,this.$emit("input",this.uploadList);let t=$A(this.$refs.browselistbox);t.scroll(()=>{let i=t[0].scrollHeight,e=t[0].scrollTop,s=t.height();if(e+s>=i&&this.browseListNext.length>0){let a=this.browseListNext;this.browseListNext=[],this.browsePictureFor(a)}})},watch:{value(t){if(typeof t=="string"){this.$emit("input",this.initItems(t));return}t!==this.$refs.upload.fileList&&(this.$refs.upload.fileList=this.initItems(t),this.uploadList=this.$refs.upload.fileList)},browseVisible(){this.httpType="",this.httpValue=""}},computed:{uploadHeaders(){return{fd:$A.getSessionStorageString("userWsFd"),token:this.userToken}},uploadParams(){let t={width:this.width,height:this.height,whcut:this.whcut};return Object.keys(this.otherParams).length>0?Object.assign(t,this.otherParams):t}},methods:{handleCallback(t){this.type==="callback"&&(t===!0?(this.$emit("on-callback",this.uploadList),this.$refs.upload.fileList=[],this.uploadList=this.$refs.upload.fileList):typeof t=="object"&&this.$emit("on-callback",[t])),this.browseVisible=!1},initItems(t){typeof t=="string"&&(t=[{url:t}]);let i=[];return $A.each(t,(e,s)=>{typeof s=="string"&&(s={url:s}),s.url&&(s.active=!0,s.status="finished",typeof s.path=="undefined"&&(s.path=s.url),typeof s.thumb=="undefined"&&(s.thumb=s.url),i.push(s))}),i},handleView(t){this.$store.dispatch("previewImage",t.url)},handleRemove(t){let i=this.$refs.upload.fileList;this.$refs.upload.fileList.splice(i.indexOf(t),1),this.$emit("input",this.$refs.upload.fileList)},handleProgress(t,i){i._uploadIng===void 0&&(i._uploadIng=!0,this.$emit("update:uploadIng",this.uploadIng+1))},handleSuccess(t,i){this.$emit("update:uploadIng",this.uploadIng-1),t.ret===1?(i.url=t.data.url,i.path=t.data.path,i.thumb=t.data.thumb,this.handleCallback(i)):($A.noticeWarning({title:this.$L("\u4E0A\u4F20\u5931\u8D25"),desc:this.$L("\u6587\u4EF6 "+i.name+" \u4E0A\u4F20\u5931\u8D25 "+t.msg)}),this.$refs.upload.fileList.pop()),this.$emit("input",this.$refs.upload.fileList)},handleError(){this.$emit("update:uploadIng",this.uploadIng-1)},handleFormatError(t){$A.noticeWarning({title:this.$L("\u6587\u4EF6\u683C\u5F0F\u4E0D\u6B63\u786E"),desc:this.$L("\u6587\u4EF6 "+t.name+" \u683C\u5F0F\u4E0D\u6B63\u786E\uFF0C\u8BF7\u4E0A\u4F20 jpg\u3001jpeg\u3001webp\u3001gif\u3001png \u683C\u5F0F\u7684\u56FE\u7247\u3002")})},handleMaxSize(t){$A.noticeWarning({title:this.$L("\u8D85\u51FA\u6587\u4EF6\u5927\u5C0F\u9650\u5236"),desc:this.$L("\u6587\u4EF6 "+t.name+" \u592A\u5927\uFF0C\u4E0D\u80FD\u8D85\u8FC7\uFF1A"+$A.bytesToSize(this.maxSize*1024))})},handleBeforeUpload(){let t=this.uploadList.length{let e=i.dirs;for(let s=0;s{this.browseVisible=!1,$A.noticeWarning(i)}).finally(i=>{this.isLoading=!1})},browsePictureFor(t){for(let i=0;i"office_"+Math.round(Math.random()*1e4)},code:{type:String,default:""},historyId:{type:Number,default:0},value:{type:[Object,Array],default:function(){return{}}},readOnly:{type:Boolean,default:!1},documentKey:Function},data(){return{loading:!1,loadError:!1,docEditor:null}},beforeDestroy(){this.docEditor!==null&&(this.docEditor.destroyEditor(),this.docEditor=null)},computed:{...d(["userInfo","themeIsDark"]),fileType(){return this.getType(this.value.type)},fileName(){return this.value.name},fileUrl(){let e=this.code||this.value.id,t;return $A.leftExists(e,"msgFile_")?t=`dialog/msg/download/?msg_id=${$A.leftDelete(e,"msgFile_")}&token=${this.userToken}`:$A.leftExists(e,"taskFile_")?t=`project/task/filedown/?file_id=${$A.leftDelete(e,"taskFile_")}&token=${this.userToken}`:(t=`file/content/?id=${e}&token=${this.userToken}`,this.historyId>0&&(t+=`&history_id=${this.historyId}`)),t},previewUrl(){return $A.apiUrl(this.fileUrl)+"&down=preview"}},watch:{"value.id":{handler(e){!e||!$A.isDesktop()||(this.loading=!0,this.loadError=!1,$A.loadScript($A.apiUrl("../office/web-apps/apps/api/documents/api.js")).then(t=>{if(!this.documentKey){this.handleClose();return}const i=this.documentKey();i&&i.then?i.then(this.loadFile):this.loadFile()}).catch(t=>{this.loadError=!0}).finally(t=>{this.loading=!1}))},immediate:!0},previewUrl:{handler(){$A.isDesktop()||(this.loading=!0)},immediate:!0}},methods:{onFrameLoad(){this.loading=!1},getType(e){switch(e){case"word":return"docx";case"excel":return"xlsx";case"ppt":return"pptx"}return e},loadFile(e=""){this.docEditor!==null&&(this.docEditor.destroyEditor(),this.docEditor=null);let t=l;switch(l){case"zh-CHT":t="zh-TW";break}let i=this.code||this.value.id,a=$A.strExists(this.fileName,".")?this.fileName:this.fileName+"."+this.fileType,s=`${this.fileType}-${e||i}`;this.historyId>0&&(s+=`-${this.historyId}`);const r={document:{fileType:this.fileType,title:a,key:s,url:`http://nginx/api/${this.fileUrl}`},editorConfig:{mode:"edit",lang:t,user:{id:String(this.userInfo.userid),name:this.userInfo.nickname},customization:{uiTheme:this.themeIsDark?"theme-dark":"theme-classic-light",forcesave:!0,help:!1},callbackUrl:`http://nginx/api/file/content/office?id=${i}&token=${this.userToken}`},events:{onDocumentReady:this.onDocumentReady}};/\/hideenOfficeTitle\//.test(window.navigator.userAgent)&&(r.document.title=" "),(async y=>{if((this.readOnly||this.historyId>0)&&(r.editorConfig.mode="view",r.editorConfig.callbackUrl=null,!r.editorConfig.user.id)){let o=await $A.IDBInt("officeViewer");o||(o=$A.randNum(1e3,99999),await $A.IDBSet("officeViewer",o)),r.editorConfig.user.id="viewer_"+o,r.editorConfig.user.name="Viewer_"+o}this.$nextTick(()=>{this.docEditor=new DocsAPI.DocEditor(this.id,r)})})()},onDocumentReady(){this.$emit("on-document-ready",this.docEditor)}}},n={};var p=f(m,h,u,!1,_,"38b2d892",null,null);function _(e){for(let t in n)this[t]=n[t]}var $=function(){return p.exports}();export{$ as default}; +import{m as d,n as f,a as l}from"./app.aaf5ae6f.js";import{I as c}from"./IFrame.f24c40d2.js";var h=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"component-only-office"},[e.$A.isDesktop()?[e.loadError?i("Alert",{staticClass:"load-error",attrs:{type:"error","show-icon":""}},[e._v(e._s(e.$L("\u7EC4\u4EF6\u52A0\u8F7D\u5931\u8D25\uFF01")))]):e._e(),i("div",{staticClass:"placeholder",attrs:{id:e.id}})]:i("IFrame",{staticClass:"preview-iframe",attrs:{src:e.previewUrl},on:{"on-load":e.onFrameLoad}}),e.loading?i("div",{staticClass:"office-loading"},[i("Loading")],1):e._e()],2)},u=[];const m={name:"OnlyOffice",components:{IFrame:c},props:{id:{type:String,default:()=>"office_"+Math.round(Math.random()*1e4)},code:{type:String,default:""},historyId:{type:Number,default:0},value:{type:[Object,Array],default:function(){return{}}},readOnly:{type:Boolean,default:!1},documentKey:Function},data(){return{loading:!1,loadError:!1,docEditor:null}},beforeDestroy(){this.docEditor!==null&&(this.docEditor.destroyEditor(),this.docEditor=null)},computed:{...d(["userInfo","themeIsDark"]),fileType(){return this.getType(this.value.type)},fileName(){return this.value.name},fileUrl(){let e=this.code||this.value.id,t;return $A.leftExists(e,"msgFile_")?t=`dialog/msg/download/?msg_id=${$A.leftDelete(e,"msgFile_")}&token=${this.userToken}`:$A.leftExists(e,"taskFile_")?t=`project/task/filedown/?file_id=${$A.leftDelete(e,"taskFile_")}&token=${this.userToken}`:(t=`file/content/?id=${e}&token=${this.userToken}`,this.historyId>0&&(t+=`&history_id=${this.historyId}`)),t},previewUrl(){return $A.apiUrl(this.fileUrl)+"&down=preview"}},watch:{"value.id":{handler(e){!e||!$A.isDesktop()||(this.loading=!0,this.loadError=!1,$A.loadScript($A.apiUrl("../office/web-apps/apps/api/documents/api.js")).then(t=>{if(!this.documentKey){this.handleClose();return}const i=this.documentKey();i&&i.then?i.then(this.loadFile):this.loadFile()}).catch(t=>{this.loadError=!0}).finally(t=>{this.loading=!1}))},immediate:!0},previewUrl:{handler(){$A.isDesktop()||(this.loading=!0)},immediate:!0}},methods:{onFrameLoad(){this.loading=!1},getType(e){switch(e){case"word":return"docx";case"excel":return"xlsx";case"ppt":return"pptx"}return e},loadFile(e=""){this.docEditor!==null&&(this.docEditor.destroyEditor(),this.docEditor=null);let t=l;switch(l){case"zh-CHT":t="zh-TW";break}let i=this.code||this.value.id,a=$A.strExists(this.fileName,".")?this.fileName:this.fileName+"."+this.fileType,s=`${this.fileType}-${e||i}`;this.historyId>0&&(s+=`-${this.historyId}`);const r={document:{fileType:this.fileType,title:a,key:s,url:`http://nginx/api/${this.fileUrl}`},editorConfig:{mode:"edit",lang:t,user:{id:String(this.userInfo.userid),name:this.userInfo.nickname},customization:{uiTheme:this.themeIsDark?"theme-dark":"theme-classic-light",forcesave:!0,help:!1},callbackUrl:`http://nginx/api/file/content/office?id=${i}&token=${this.userToken}`},events:{onDocumentReady:this.onDocumentReady}};/\/hideenOfficeTitle\//.test(window.navigator.userAgent)&&(r.document.title=" "),(async y=>{if((this.readOnly||this.historyId>0)&&(r.editorConfig.mode="view",r.editorConfig.callbackUrl=null,!r.editorConfig.user.id)){let o=await $A.IDBInt("officeViewer");o||(o=$A.randNum(1e3,99999),await $A.IDBSet("officeViewer",o)),r.editorConfig.user.id="viewer_"+o,r.editorConfig.user.name="Viewer_"+o}this.$nextTick(()=>{this.docEditor=new DocsAPI.DocEditor(this.id,r)})})()},onDocumentReady(){this.$emit("on-document-ready",this.docEditor)}}},n={};var p=f(m,h,u,!1,_,"38b2d892",null,null);function _(e){for(let t in n)this[t]=n[t]}var $=function(){return p.exports}();export{$ as default}; diff --git a/public/js/build/ProjectLog.b1086bd7.js b/public/js/build/ProjectLog.77802854.js similarity index 98% rename from public/js/build/ProjectLog.b1086bd7.js rename to public/js/build/ProjectLog.77802854.js index 11ca9daee..fb3a3179a 100644 --- a/public/js/build/ProjectLog.b1086bd7.js +++ b/public/js/build/ProjectLog.77802854.js @@ -1 +1 @@ -import{m as p,n as c}from"./app.7a29bd84.js";var h=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"task-priority",style:t.myStyle},[t._t("default")],2)},m=[];const _={name:"TaskPriority",props:{color:{default:"#ffffff"},background:{default:"#7DBEEA"},backgroundColor:{default:"#7DBEEA"}},data(){return{}},computed:{...p(["themeIsDark"]),myStyle(){const{color:t,background:e,backgroundColor:s,themeIsDark:a}=this;return a?{color:s||e,borderColor:s||e,backgroundColor:"transparent"}:{color:t,borderColor:s||e,backgroundColor:s||e}}}},l={};var f=c(_,h,m,!1,g,null,null,null);function g(t){for(let e in l)this[e]=l[e]}var I=function(){return f.exports}(),v={name:"ProjectLogDetail",functional:!0,props:{render:Function,item:Object},render:(t,e)=>e.props.render(t,e.props.item)},$=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{class:["project-log",t.taskId==0?"is-drawer":""]},[s("div",{staticClass:"log-title"},[t._v(t._s(t.$L("\u9879\u76EE\u52A8\u6001")))]),s("ul",{staticClass:"logs-activity"},[t._l(t.lists,function(a){return s("li",[s("div",{staticClass:"logs-date"},[t._v(t._s(t.logDate(a)))]),s("div",{staticClass:"logs-section"},[s("Timeline",t._l(a.lists,function(r,o){return s("TimelineItem",{key:o},[s("div",{staticClass:"logs-dot",attrs:{slot:"dot"},slot:"dot"},[r.userid?s("UserAvatar",{attrs:{userid:r.userid,size:18,showName:""}}):s("div",{staticClass:"avatar-wrapper common-avatar"},[s("EAvatar",{attrs:{size:18}},[t._v("A")]),s("div",{staticClass:"avatar-name auto"},[t._v(t._s(t.$L("\u7CFB\u7EDF")))])],1)],1),t._l(r.lists,function(i){return[s("div",{staticClass:"log-summary"},[s("ProjectLogDetail",{attrs:{render:t.logDetail,item:i}}),t.operationList(i).length>0?s("span",{staticClass:"log-operation"},t._l(t.operationList(i),function(n,d){return s("Button",{key:d,attrs:{size:"small"},on:{click:function(P){return t.onOperation(n)}}},[t._v(t._s(n.button))])}),1):t._e(),s("span",{staticClass:"log-time"},[t._v(t._s(i.time.ymd)+" "+t._s(i.time.segment)+" "+t._s(i.time.hi))])],1),i.project_task?s("div",{staticClass:"log-task"},[s("em",{on:{click:function(n){return t.openTask(i.project_task)}}},[t._v(t._s(t.$L("\u5173\u8054\u4EFB\u52A1"))+": "+t._s(i.project_task.name))])]):t._e()]})],2)}),1)],1)])}),t.loadIng>0&&t.showLoad?s("li",{staticClass:"logs-loading"},[s("Loading")],1):t.hasMorePages?s("li",{staticClass:"logs-more",on:{click:t.getMore}},[t._v(t._s(t.$L("\u52A0\u8F7D\u66F4\u591A")))]):t.totalNum==0?s("li",{staticClass:"logs-none",on:{click:function(a){return t.getLists(!0)}}},[t._v(t._s(t.$L("\u6CA1\u6709\u4EFB\u4F55\u52A8\u6001")))]):t._e()],2)])},k=[];const y={name:"ProjectLog",components:{ProjectLogDetail:v},props:{projectId:{type:Number,default:0},taskId:{type:Number,default:0},showLoad:{type:Boolean,default:!0}},data(){return{loadIng:0,lists:[],listPage:1,listPageSize:20,hasMorePages:!1,totalNum:-1}},mounted(){this.getLists(!0)},computed:{},watch:{projectId(){this.lists=[],this.getLists(!0)},taskId(){this.lists=[],this.getLists(!0)},loadIng(t){this.$emit("on-load-change",t>0)}},methods:{logDate(t){return $A.formatDate("m-d")==t.ymd?t.ymd+" "+this.$L("\u4ECA\u5929"):t.key},getLists(t){t===!0&&(this.listPage=1),this.loadIng++,this.$store.dispatch("call",{url:"project/log/lists",data:{project_id:this.projectId,task_id:this.taskId,page:Math.max(this.listPage,1),pagesize:Math.max($A.runNum(this.listPageSize),10)}}).then(({data:e})=>{t===!0&&(this.lists=[]),e.data.some(s=>{let a=s.time,r=a.ymd+" "+a.week,o=this.lists.find(({key:i})=>i==r);if(o){let i=o.lists.find(({userid:n})=>n==s.userid);i?i.lists.push(s):o.lists.push({userid:s.userid,lists:[s]})}else this.lists.push({key:r,ymd:s.ymd,lists:[{userid:s.userid,lists:[s]}]})}),this.hasMorePages=e.current_page{this.lists=[],this.hasMorePages=!1,this.totalNum=0}).finally(e=>{this.loadIng--})},getMore(){!this.hasMorePages||(this.hasMorePages=!1,this.listPage++,this.getLists())},logDetail(t,{detail:e,record:s}){let a=[t("span",e)];if($A.isJson(s)){if($A.isArray(s.change)){let[r,o]=s.change;a.push(t("span",": ")),r&&r!=o?(a.push(t("span",{class:"change-value"},`${r||"-"}`)),a.push(t("span"," => ")),a.push(t("span",{class:"change-value"},`${o||"-"}`))):a.push(t("span",{class:"change-value"},o||"-"))}if(s.userid){let r=$A.isArray(s.userid)?s.userid:[s.userid],o=[];r.some(i=>{/^\d+$/.test(i)?o.push(t("UserAvatar",{props:{size:18,userid:i}})):o.push(t("span",i))}),o.length>0&&a.push(t("div",{class:"detail-user"},[t("div",{class:"detail-user-wrap"},o)]))}}return t("span",{class:"log-text"},a)},operationList({id:t,record:e}){let s=[];if(!$A.isJson(e))return s;if(this.taskId>0&&$A.isJson(e.flow)){let a=$A.getMiddle(e.flow.flow_item_name,"|");a&&s.push({id:t,button:this.$L("\u91CD\u7F6E"),content:this.$L(`\u786E\u5B9A\u91CD\u7F6E\u4E3A\u3010${a}\u3011\u5417\uFF1F`)})}return s},onOperation(t){$A.modalConfirm({content:t.content,loading:!0,onOk:()=>new Promise((e,s)=>{this.$store.dispatch("call",{url:"project/task/resetfromlog",data:{id:t.id}}).then(({data:a,msg:r})=>{e(r),this.$store.dispatch("saveTask",a),this.getLists(!0)}).catch(({msg:a})=>{s(a)})})})},openTask(t){this.$store.dispatch("openTask",t)}}},u={};var L=c(y,$,k,!1,C,null,null,null);function C(t){for(let e in u)this[e]=u[e]}var A=function(){return L.exports}();export{A as P,I as T}; +import{m as p,n as c}from"./app.aaf5ae6f.js";var h=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"task-priority",style:t.myStyle},[t._t("default")],2)},m=[];const _={name:"TaskPriority",props:{color:{default:"#ffffff"},background:{default:"#7DBEEA"},backgroundColor:{default:"#7DBEEA"}},data(){return{}},computed:{...p(["themeIsDark"]),myStyle(){const{color:t,background:e,backgroundColor:s,themeIsDark:a}=this;return a?{color:s||e,borderColor:s||e,backgroundColor:"transparent"}:{color:t,borderColor:s||e,backgroundColor:s||e}}}},l={};var f=c(_,h,m,!1,g,null,null,null);function g(t){for(let e in l)this[e]=l[e]}var I=function(){return f.exports}(),v={name:"ProjectLogDetail",functional:!0,props:{render:Function,item:Object},render:(t,e)=>e.props.render(t,e.props.item)},$=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{class:["project-log",t.taskId==0?"is-drawer":""]},[s("div",{staticClass:"log-title"},[t._v(t._s(t.$L("\u9879\u76EE\u52A8\u6001")))]),s("ul",{staticClass:"logs-activity"},[t._l(t.lists,function(a){return s("li",[s("div",{staticClass:"logs-date"},[t._v(t._s(t.logDate(a)))]),s("div",{staticClass:"logs-section"},[s("Timeline",t._l(a.lists,function(r,o){return s("TimelineItem",{key:o},[s("div",{staticClass:"logs-dot",attrs:{slot:"dot"},slot:"dot"},[r.userid?s("UserAvatar",{attrs:{userid:r.userid,size:18,showName:""}}):s("div",{staticClass:"avatar-wrapper common-avatar"},[s("EAvatar",{attrs:{size:18}},[t._v("A")]),s("div",{staticClass:"avatar-name auto"},[t._v(t._s(t.$L("\u7CFB\u7EDF")))])],1)],1),t._l(r.lists,function(i){return[s("div",{staticClass:"log-summary"},[s("ProjectLogDetail",{attrs:{render:t.logDetail,item:i}}),t.operationList(i).length>0?s("span",{staticClass:"log-operation"},t._l(t.operationList(i),function(n,d){return s("Button",{key:d,attrs:{size:"small"},on:{click:function(P){return t.onOperation(n)}}},[t._v(t._s(n.button))])}),1):t._e(),s("span",{staticClass:"log-time"},[t._v(t._s(i.time.ymd)+" "+t._s(i.time.segment)+" "+t._s(i.time.hi))])],1),i.project_task?s("div",{staticClass:"log-task"},[s("em",{on:{click:function(n){return t.openTask(i.project_task)}}},[t._v(t._s(t.$L("\u5173\u8054\u4EFB\u52A1"))+": "+t._s(i.project_task.name))])]):t._e()]})],2)}),1)],1)])}),t.loadIng>0&&t.showLoad?s("li",{staticClass:"logs-loading"},[s("Loading")],1):t.hasMorePages?s("li",{staticClass:"logs-more",on:{click:t.getMore}},[t._v(t._s(t.$L("\u52A0\u8F7D\u66F4\u591A")))]):t.totalNum==0?s("li",{staticClass:"logs-none",on:{click:function(a){return t.getLists(!0)}}},[t._v(t._s(t.$L("\u6CA1\u6709\u4EFB\u4F55\u52A8\u6001")))]):t._e()],2)])},k=[];const y={name:"ProjectLog",components:{ProjectLogDetail:v},props:{projectId:{type:Number,default:0},taskId:{type:Number,default:0},showLoad:{type:Boolean,default:!0}},data(){return{loadIng:0,lists:[],listPage:1,listPageSize:20,hasMorePages:!1,totalNum:-1}},mounted(){this.getLists(!0)},computed:{},watch:{projectId(){this.lists=[],this.getLists(!0)},taskId(){this.lists=[],this.getLists(!0)},loadIng(t){this.$emit("on-load-change",t>0)}},methods:{logDate(t){return $A.formatDate("m-d")==t.ymd?t.ymd+" "+this.$L("\u4ECA\u5929"):t.key},getLists(t){t===!0&&(this.listPage=1),this.loadIng++,this.$store.dispatch("call",{url:"project/log/lists",data:{project_id:this.projectId,task_id:this.taskId,page:Math.max(this.listPage,1),pagesize:Math.max($A.runNum(this.listPageSize),10)}}).then(({data:e})=>{t===!0&&(this.lists=[]),e.data.some(s=>{let a=s.time,r=a.ymd+" "+a.week,o=this.lists.find(({key:i})=>i==r);if(o){let i=o.lists.find(({userid:n})=>n==s.userid);i?i.lists.push(s):o.lists.push({userid:s.userid,lists:[s]})}else this.lists.push({key:r,ymd:s.ymd,lists:[{userid:s.userid,lists:[s]}]})}),this.hasMorePages=e.current_page{this.lists=[],this.hasMorePages=!1,this.totalNum=0}).finally(e=>{this.loadIng--})},getMore(){!this.hasMorePages||(this.hasMorePages=!1,this.listPage++,this.getLists())},logDetail(t,{detail:e,record:s}){let a=[t("span",e)];if($A.isJson(s)){if($A.isArray(s.change)){let[r,o]=s.change;a.push(t("span",": ")),r&&r!=o?(a.push(t("span",{class:"change-value"},`${r||"-"}`)),a.push(t("span"," => ")),a.push(t("span",{class:"change-value"},`${o||"-"}`))):a.push(t("span",{class:"change-value"},o||"-"))}if(s.userid){let r=$A.isArray(s.userid)?s.userid:[s.userid],o=[];r.some(i=>{/^\d+$/.test(i)?o.push(t("UserAvatar",{props:{size:18,userid:i}})):o.push(t("span",i))}),o.length>0&&a.push(t("div",{class:"detail-user"},[t("div",{class:"detail-user-wrap"},o)]))}}return t("span",{class:"log-text"},a)},operationList({id:t,record:e}){let s=[];if(!$A.isJson(e))return s;if(this.taskId>0&&$A.isJson(e.flow)){let a=$A.getMiddle(e.flow.flow_item_name,"|");a&&s.push({id:t,button:this.$L("\u91CD\u7F6E"),content:this.$L(`\u786E\u5B9A\u91CD\u7F6E\u4E3A\u3010${a}\u3011\u5417\uFF1F`)})}return s},onOperation(t){$A.modalConfirm({content:t.content,loading:!0,onOk:()=>new Promise((e,s)=>{this.$store.dispatch("call",{url:"project/task/resetfromlog",data:{id:t.id}}).then(({data:a,msg:r})=>{e(r),this.$store.dispatch("saveTask",a),this.getLists(!0)}).catch(({msg:a})=>{s(a)})})})},openTask(t){this.$store.dispatch("openTask",t)}}},u={};var L=c(y,$,k,!1,C,null,null,null);function C(t){for(let e in u)this[e]=u[e]}var A=function(){return L.exports}();export{A as P,I as T}; diff --git a/public/js/build/ReportDetail.52f0651b.js b/public/js/build/ReportDetail.77b12923.js similarity index 95% rename from public/js/build/ReportDetail.52f0651b.js rename to public/js/build/ReportDetail.77b12923.js index d6bc2180e..5a1708642 100644 --- a/public/js/build/ReportDetail.52f0651b.js +++ b/public/js/build/ReportDetail.77b12923.js @@ -1 +1 @@ -import{n as o}from"./app.7a29bd84.js";var l=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),a("div",{staticClass:"report-detail-context"},[a("Form",{staticClass:"report-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(s,i){return a("UserAvatar",{key:i,attrs:{userid:s.userid,size:28}})})],2)],1),a("Form",{staticClass:"report-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)])},n=[];const d={name:"ReportDetail",props:{data:{default:{}}},data(){return{loadIng:0}},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--})}}},r={};var c=o(d,l,n,!1,_,null,null,null);function _(t){for(let e in r)this[e]=r[e]}var m=function(){return c.exports}();export{m as R}; +import{n as o}from"./app.aaf5ae6f.js";var l=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),a("div",{staticClass:"report-detail-context"},[a("Form",{staticClass:"report-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(s,i){return a("UserAvatar",{key:i,attrs:{userid:s.userid,size:28}})})],2)],1),a("Form",{staticClass:"report-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)])},n=[];const d={name:"ReportDetail",props:{data:{default:{}}},data(){return{loadIng:0}},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--})}}},r={};var c=o(d,l,n,!1,_,null,null,null);function _(t){for(let e in r)this[e]=r[e]}var m=function(){return c.exports}();export{m as R}; diff --git a/public/js/build/ReportEdit.c8ae84ca.js b/public/js/build/ReportEdit.32133ea6.js similarity index 94% rename from public/js/build/ReportEdit.c8ae84ca.js rename to public/js/build/ReportEdit.32133ea6.js index c0f94fbe7..0ad74a52e 100644 --- a/public/js/build/ReportEdit.c8ae84ca.js +++ b/public/js/build/ReportEdit.32133ea6.js @@ -1 +1 @@ -import{n as s,_ as o}from"./app.7a29bd84.js";import{U as l}from"./UserInput.1a8a4094.js";var n=function(){var t=this,r=t.$createElement,e=t._self._c||r;return e("Form",{staticClass:"report-edit",attrs:{"label-width":"auto"},nativeOn:{submit:function(a){a.preventDefault()}}},[e("FormItem",{attrs:{label:t.$L("\u6C47\u62A5\u7C7B\u578B")}},[e("RadioGroup",{staticClass:"report-radiogroup",attrs:{type:"button","button-style":"solid",readonly:t.id>0},on:{"on-change":t.typeChange},model:{value:t.reportData.type,callback:function(a){t.$set(t.reportData,"type",a)},expression:"reportData.type"}},[e("Radio",{attrs:{label:"weekly",disabled:t.id>0&&t.reportData.type=="daily"}},[t._v(t._s(t.$L("\u5468\u62A5")))]),e("Radio",{attrs:{label:"daily",disabled:t.id>0&&t.reportData.type=="weekly"}},[t._v(t._s(t.$L("\u65E5\u62A5")))])],1),t.id===0?e("ButtonGroup",{staticClass:"report-buttongroup"},[e("ETooltip",{attrs:{disabled:t.windowSmall||t.$isEEUiApp,content:t.prevCycleText,placement:"bottom"}},[e("Button",{attrs:{type:"primary"},on:{click:t.prevCycle}},[e("Icon",{attrs:{type:"ios-arrow-back"}})],1)],1),e("div",{staticClass:"report-buttongroup-vertical"}),e("ETooltip",{attrs:{disabled:t.windowSmall||t.$isEEUiApp||t.reportData.offset>=0,content:t.nextCycleText,placement:"bottom"}},[e("Button",{attrs:{type:"primary",disabled:t.reportData.offset>=0},on:{click:t.nextCycle}},[e("Icon",{attrs:{type:"ios-arrow-forward"}})],1)],1)],1):t._e()],1),e("FormItem",{attrs:{label:t.$L("\u6C47\u62A5\u540D\u79F0")}},[e("Input",{attrs:{disabled:""},model:{value:t.reportData.title,callback:function(a){t.$set(t.reportData,"title",a)},expression:"reportData.title"}})],1),e("FormItem",{attrs:{label:t.$L("\u6C47\u62A5\u5BF9\u8C61")}},[e("div",{staticClass:"report-users"},[e("UserInput",{attrs:{disabledChoice:[t.userId],placeholder:t.$L("\u9009\u62E9\u63A5\u6536\u4EBA"),transfer:!1},model:{value:t.reportData.receive,callback:function(a){t.$set(t.reportData,"receive",a)},expression:"reportData.receive"}}),e("a",{staticClass:"report-user-link",attrs:{href:"javascript:void(0);"},on:{click:t.getLastSubmitter}},[t.receiveLoad>0?e("Icon",{staticClass:"icon-loading",attrs:{type:"ios-loading"}}):e("Icon",{attrs:{type:"ios-share-outline"}}),t._v(" "+t._s(t.$L("\u4F7F\u7528\u6211\u4E0A\u6B21\u7684\u6C47\u62A5\u5BF9\u8C61"))+" ")],1)],1)]),e("FormItem",{staticClass:"report-content-editor",attrs:{label:t.$L("\u6C47\u62A5\u5185\u5BB9")}},[e("TEditor",{attrs:{height:"100%"},model:{value:t.reportData.content,callback:function(a){t.$set(t.reportData,"content",a)},expression:"reportData.content"}})],1),e("FormItem",{staticClass:"report-foot"},[e("Button",{staticClass:"report-bottom",attrs:{type:"primary",loading:t.loadIng>0},on:{click:t.handleSubmit}},[t._v(t._s(t.$L(t.id>0?"\u4FEE\u6539":"\u63D0\u4EA4")))])],1)],1)},p=[];const c=()=>o(()=>import("./TEditor.aca79ca9.js"),["js/build/TEditor.aca79ca9.js","js/build/app.7a29bd84.js","js/build/app.b16d0b3f.css","js/build/ImgUpload.4fe6c2dc.js"]),h={name:"ReportEdit",components:{TEditor:c,UserInput:l},props:{id:{default:0}},data(){return{loadIng:0,receiveLoad:0,reportData:{sign:"",title:"",content:"",type:"weekly",receive:[],id:0,offset:0},prevCycleText:this.$L("\u4E0A\u4E00\u5468"),nextCycleText:this.$L("\u4E0B\u4E00\u5468")}},watch:{id:{handler(t){t>0?this.getDetail(t):(this.reportData.offset=0,this.reportData.type="weekly",this.reportData.receive=[],this.getTemplate())},immediate:!0}},mounted(){},methods:{handleSubmit(){this.id===0&&this.reportData.id>0?$A.modalConfirm({title:"\u8986\u76D6\u63D0\u4EA4",content:"\u4F60\u5DF2\u63D0\u4EA4\u8FC7\u6B64\u65E5\u671F\u7684\u62A5\u544A\uFF0C\u662F\u5426\u8986\u76D6\u63D0\u4EA4\uFF1F",onOk:()=>{this.doSubmit()}}):this.doSubmit()},doSubmit(){this.loadIng++,this.$store.dispatch("call",{url:"report/store",data:this.reportData,method:"post"}).then(({data:t,msg:r})=>{this.reportData.offset=0,this.reportData.type="weekly",this.reportData.receive=[],this.getTemplate(),!this.$isSubElectron&&$A.messageSuccess(r),this.$emit("saveSuccess",{data:t,msg:r})}).catch(({msg:t})=>{$A.messageError(t)}).finally(t=>{this.loadIng--})},getTemplate(){this.loadIng++,this.$store.dispatch("call",{url:"report/template",data:{type:this.reportData.type,offset:this.reportData.offset,id:this.id}}).then(({data:t})=>{t.id?(this.reportData.id=t.id,this.id>0?this.getDetail(t.id):(this.reportData.sign=t.sign,this.reportData.title=t.title,this.reportData.content=t.content)):(this.reportData.id=0,this.reportData.sign=t.sign,this.reportData.title=t.title,this.reportData.content=t.content)}).catch(({msg:t})=>{$A.messageError(t)}).finally(t=>{this.loadIng--})},typeChange(t){this.reportData.offset=0,t==="weekly"?(this.prevCycleText=this.$L("\u4E0A\u4E00\u5468"),this.nextCycleText=this.$L("\u4E0B\u4E00\u5468")):(this.prevCycleText=this.$L("\u4E0A\u4E00\u5929"),this.nextCycleText=this.$L("\u4E0B\u4E00\u5929")),this.getTemplate()},getDetail(t){this.$store.dispatch("call",{url:"report/detail",data:{id:t}}).then(({data:r})=>{this.reportData.title=r.title,this.reportData.content=r.content,this.reportData.receive=r.receives_user.map(({userid:e})=>e),this.reportData.type=r.type_val,this.reportData.id=t}).catch(({msg:r})=>{$A.messageError(r)})},prevCycle(){this.reportData.offset-=1,this.reReportData(),this.getTemplate()},nextCycle(){this.reportData.offset<0&&(this.reportData.offset+=1),this.reReportData(),this.getTemplate()},getLastSubmitter(){setTimeout(t=>{this.receiveLoad++},300),this.$store.dispatch("call",{url:"report/last_submitter"}).then(({data:t})=>{this.reportData.receive=t}).catch(({msg:t})=>{$A.messageError(t)}).finally(t=>{this.receiveLoad--})},reReportData(){this.reportData.title="",this.reportData.content="",this.reportData.receive=[],this.reportData.id=0}}},i={};var d=s(h,n,p,!1,m,null,null,null);function m(t){for(let r in i)this[r]=i[r]}var f=function(){return d.exports}();export{f as R}; +import{n as s,_ as o}from"./app.aaf5ae6f.js";import{U as l}from"./UserInput.d31ec6c9.js";var n=function(){var t=this,r=t.$createElement,e=t._self._c||r;return e("Form",{staticClass:"report-edit",attrs:{"label-width":"auto"},nativeOn:{submit:function(a){a.preventDefault()}}},[e("FormItem",{attrs:{label:t.$L("\u6C47\u62A5\u7C7B\u578B")}},[e("RadioGroup",{staticClass:"report-radiogroup",attrs:{type:"button","button-style":"solid",readonly:t.id>0},on:{"on-change":t.typeChange},model:{value:t.reportData.type,callback:function(a){t.$set(t.reportData,"type",a)},expression:"reportData.type"}},[e("Radio",{attrs:{label:"weekly",disabled:t.id>0&&t.reportData.type=="daily"}},[t._v(t._s(t.$L("\u5468\u62A5")))]),e("Radio",{attrs:{label:"daily",disabled:t.id>0&&t.reportData.type=="weekly"}},[t._v(t._s(t.$L("\u65E5\u62A5")))])],1),t.id===0?e("ButtonGroup",{staticClass:"report-buttongroup"},[e("ETooltip",{attrs:{disabled:t.windowSmall||t.$isEEUiApp,content:t.prevCycleText,placement:"bottom"}},[e("Button",{attrs:{type:"primary"},on:{click:t.prevCycle}},[e("Icon",{attrs:{type:"ios-arrow-back"}})],1)],1),e("div",{staticClass:"report-buttongroup-vertical"}),e("ETooltip",{attrs:{disabled:t.windowSmall||t.$isEEUiApp||t.reportData.offset>=0,content:t.nextCycleText,placement:"bottom"}},[e("Button",{attrs:{type:"primary",disabled:t.reportData.offset>=0},on:{click:t.nextCycle}},[e("Icon",{attrs:{type:"ios-arrow-forward"}})],1)],1)],1):t._e()],1),e("FormItem",{attrs:{label:t.$L("\u6C47\u62A5\u540D\u79F0")}},[e("Input",{attrs:{disabled:""},model:{value:t.reportData.title,callback:function(a){t.$set(t.reportData,"title",a)},expression:"reportData.title"}})],1),e("FormItem",{attrs:{label:t.$L("\u6C47\u62A5\u5BF9\u8C61")}},[e("div",{staticClass:"report-users"},[e("UserInput",{attrs:{disabledChoice:[t.userId],placeholder:t.$L("\u9009\u62E9\u63A5\u6536\u4EBA"),transfer:!1},model:{value:t.reportData.receive,callback:function(a){t.$set(t.reportData,"receive",a)},expression:"reportData.receive"}}),e("a",{staticClass:"report-user-link",attrs:{href:"javascript:void(0);"},on:{click:t.getLastSubmitter}},[t.receiveLoad>0?e("Icon",{staticClass:"icon-loading",attrs:{type:"ios-loading"}}):e("Icon",{attrs:{type:"ios-share-outline"}}),t._v(" "+t._s(t.$L("\u4F7F\u7528\u6211\u4E0A\u6B21\u7684\u6C47\u62A5\u5BF9\u8C61"))+" ")],1)],1)]),e("FormItem",{staticClass:"report-content-editor",attrs:{label:t.$L("\u6C47\u62A5\u5185\u5BB9")}},[e("TEditor",{attrs:{height:"100%"},model:{value:t.reportData.content,callback:function(a){t.$set(t.reportData,"content",a)},expression:"reportData.content"}})],1),e("FormItem",{staticClass:"report-foot"},[e("Button",{staticClass:"report-bottom",attrs:{type:"primary",loading:t.loadIng>0},on:{click:t.handleSubmit}},[t._v(t._s(t.$L(t.id>0?"\u4FEE\u6539":"\u63D0\u4EA4")))])],1)],1)},p=[];const c=()=>o(()=>import("./TEditor.a74a72fe.js"),["js/build/TEditor.a74a72fe.js","js/build/app.aaf5ae6f.js","js/build/app.cd204fe3.css","js/build/ImgUpload.732c31bf.js"]),h={name:"ReportEdit",components:{TEditor:c,UserInput:l},props:{id:{default:0}},data(){return{loadIng:0,receiveLoad:0,reportData:{sign:"",title:"",content:"",type:"weekly",receive:[],id:0,offset:0},prevCycleText:this.$L("\u4E0A\u4E00\u5468"),nextCycleText:this.$L("\u4E0B\u4E00\u5468")}},watch:{id:{handler(t){t>0?this.getDetail(t):(this.reportData.offset=0,this.reportData.type="weekly",this.reportData.receive=[],this.getTemplate())},immediate:!0}},mounted(){},methods:{handleSubmit(){this.id===0&&this.reportData.id>0?$A.modalConfirm({title:"\u8986\u76D6\u63D0\u4EA4",content:"\u4F60\u5DF2\u63D0\u4EA4\u8FC7\u6B64\u65E5\u671F\u7684\u62A5\u544A\uFF0C\u662F\u5426\u8986\u76D6\u63D0\u4EA4\uFF1F",onOk:()=>{this.doSubmit()}}):this.doSubmit()},doSubmit(){this.loadIng++,this.$store.dispatch("call",{url:"report/store",data:this.reportData,method:"post"}).then(({data:t,msg:r})=>{this.reportData.offset=0,this.reportData.type="weekly",this.reportData.receive=[],this.getTemplate(),!this.$isSubElectron&&$A.messageSuccess(r),this.$emit("saveSuccess",{data:t,msg:r})}).catch(({msg:t})=>{$A.messageError(t)}).finally(t=>{this.loadIng--})},getTemplate(){this.loadIng++,this.$store.dispatch("call",{url:"report/template",data:{type:this.reportData.type,offset:this.reportData.offset,id:this.id}}).then(({data:t})=>{t.id?(this.reportData.id=t.id,this.id>0?this.getDetail(t.id):(this.reportData.sign=t.sign,this.reportData.title=t.title,this.reportData.content=t.content)):(this.reportData.id=0,this.reportData.sign=t.sign,this.reportData.title=t.title,this.reportData.content=t.content)}).catch(({msg:t})=>{$A.messageError(t)}).finally(t=>{this.loadIng--})},typeChange(t){this.reportData.offset=0,t==="weekly"?(this.prevCycleText=this.$L("\u4E0A\u4E00\u5468"),this.nextCycleText=this.$L("\u4E0B\u4E00\u5468")):(this.prevCycleText=this.$L("\u4E0A\u4E00\u5929"),this.nextCycleText=this.$L("\u4E0B\u4E00\u5929")),this.getTemplate()},getDetail(t){this.$store.dispatch("call",{url:"report/detail",data:{id:t}}).then(({data:r})=>{this.reportData.title=r.title,this.reportData.content=r.content,this.reportData.receive=r.receives_user.map(({userid:e})=>e),this.reportData.type=r.type_val,this.reportData.id=t}).catch(({msg:r})=>{$A.messageError(r)})},prevCycle(){this.reportData.offset-=1,this.reReportData(),this.getTemplate()},nextCycle(){this.reportData.offset<0&&(this.reportData.offset+=1),this.reReportData(),this.getTemplate()},getLastSubmitter(){setTimeout(t=>{this.receiveLoad++},300),this.$store.dispatch("call",{url:"report/last_submitter"}).then(({data:t})=>{this.reportData.receive=t}).catch(({msg:t})=>{$A.messageError(t)}).finally(t=>{this.receiveLoad--})},reReportData(){this.reportData.title="",this.reportData.content="",this.reportData.receive=[],this.reportData.id=0}}},i={};var d=s(h,n,p,!1,m,null,null,null);function m(t){for(let r in i)this[r]=i[r]}var f=function(){return d.exports}();export{f as R}; diff --git a/public/js/build/TEditor.aca79ca9.js b/public/js/build/TEditor.a74a72fe.js similarity index 99% rename from public/js/build/TEditor.aca79ca9.js rename to public/js/build/TEditor.a74a72fe.js index 7b926a06a..b050a230a 100644 --- a/public/js/build/TEditor.aca79ca9.js +++ b/public/js/build/TEditor.a74a72fe.js @@ -1,4 +1,4 @@ -import{e as PC,m as a2,a as IC,n as i2}from"./app.7a29bd84.js";import{I as o2}from"./ImgUpload.4fe6c2dc.js";var FC={exports:{}};(function(V){(function(){var Ee=function(e){if(e===null)return"null";if(e===void 0)return"undefined";var t=typeof e;return t==="object"&&(Array.prototype.isPrototypeOf(e)||e.constructor&&e.constructor.name==="Array")?"array":t==="object"&&(String.prototype.isPrototypeOf(e)||e.constructor&&e.constructor.name==="String")?"string":t},be=function(e){return["undefined","boolean","number","string","function","xml","null"].indexOf(e)!==-1},he=function(e,t){var n=Array.prototype.slice.call(e);return n.sort(t)},Ke=function(e,t){return ht(function(n,r){return e.eq(t(n),t(r))})},ht=function(e){return{eq:e}},Qt=ht(function(e,t){return e===t}),Qr=Qt,Ka=function(e){return ht(function(t,n){if(t.length!==n.length)return!1;for(var r=t.length,a=0;a-1},bt=function(e,t){for(var n=0,r=e.length;n=0;n--){var r=e[n];t(r,n)}},Yc=function(e,t){for(var n=[],r=[],a=0,i=e.length;a=0&&t=t.length&&e.substr(n,n+t.length)===t},d0=function(e,t){return Sr(e,t)?c0(e,t.length):e},yt=function(e,t){return e.indexOf(t)!==-1},Sr=function(e,t){return v0(e,t,0)},cs=function(e){return function(t){return t.replace(e,"")}},vs=cs(/^\s+|\s+$/g),m0=cs(/^\s+/g),uv=cs(/\s+$/g),Gi=function(e){return e.length>0},sv=function(e){return!Gi(e)},ds=/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,Pn=function(e){return function(t){return yt(t,e)}},p0=[{name:"Edge",versionRegexes:[/.*?edge\/ ?([0-9]+)\.([0-9]+)$/],search:function(e){return yt(e,"edge/")&&yt(e,"chrome")&&yt(e,"safari")&&yt(e,"applewebkit")}},{name:"Chrome",brand:"Chromium",versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/,ds],search:function(e){return yt(e,"chrome")&&!yt(e,"chromeframe")}},{name:"IE",versionRegexes:[/.*?msie\ ?([0-9]+)\.([0-9]+).*/,/.*?rv:([0-9]+)\.([0-9]+).*/],search:function(e){return yt(e,"msie")||yt(e,"trident")}},{name:"Opera",versionRegexes:[ds,/.*?opera\/([0-9]+)\.([0-9]+).*/],search:Pn("opera")},{name:"Firefox",versionRegexes:[/.*?firefox\/\ ?([0-9]+)\.([0-9]+).*/],search:Pn("firefox")},{name:"Safari",versionRegexes:[ds,/.*?cpu os ([0-9]+)_([0-9]+).*/],search:function(e){return(yt(e,"safari")||yt(e,"mobile/"))&&yt(e,"applewebkit")}}],g0=[{name:"Windows",search:Pn("win"),versionRegexes:[/.*?windows\ nt\ ?([0-9]+)\.([0-9]+).*/]},{name:"iOS",search:function(e){return yt(e,"iphone")||yt(e,"ipad")},versionRegexes:[/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,/.*cpu os ([0-9]+)_([0-9]+).*/,/.*cpu iphone os ([0-9]+)_([0-9]+).*/]},{name:"Android",search:Pn("android"),versionRegexes:[/.*?android\ ?([0-9]+)\.([0-9]+).*/]},{name:"OSX",search:Pn("mac os x"),versionRegexes:[/.*?mac\ os\ x\ ?([0-9]+)_([0-9]+).*/]},{name:"Linux",search:Pn("linux"),versionRegexes:[]},{name:"Solaris",search:Pn("sunos"),versionRegexes:[]},{name:"FreeBSD",search:Pn("freebsd"),versionRegexes:[]},{name:"ChromeOS",search:Pn("cros"),versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/]}],fv={browsers:X(p0),oses:X(g0)},lv="Edge",cv="Chrome",vv="IE",dv="Opera",mv="Firefox",pv="Safari",h0=function(){return gv({current:void 0,version:Za.unknown()})},gv=function(e){var t=e.current,n=e.version,r=function(a){return function(){return t===a}};return{current:t,version:n,isEdge:r(lv),isChrome:r(cv),isIE:r(vv),isOpera:r(dv),isFirefox:r(mv),isSafari:r(pv)}},hv={unknown:h0,nu:gv,edge:X(lv),chrome:X(cv),ie:X(vv),opera:X(dv),firefox:X(mv),safari:X(pv)},bv="Windows",yv="iOS",Cv="Android",wv="Linux",Sv="OSX",Ev="Solaris",kv="FreeBSD",xv="ChromeOS",b0=function(){return Nv({current:void 0,version:Za.unknown()})},Nv=function(e){var t=e.current,n=e.version,r=function(a){return function(){return t===a}};return{current:t,version:n,isWindows:r(bv),isiOS:r(yv),isAndroid:r(Cv),isOSX:r(Sv),isLinux:r(wv),isSolaris:r(Ev),isFreeBSD:r(kv),isChromeOS:r(xv)}},Tv={unknown:b0,nu:Nv,windows:X(bv),ios:X(yv),android:X(Cv),linux:X(wv),osx:X(Sv),solaris:X(Ev),freebsd:X(kv),chromeos:X(xv)},y0=function(e,t,n){var r=fv.browsers(),a=fv.oses(),i=t.bind(function(s){return s0(r,s)}).orThunk(function(){return f0(r,e)}).fold(hv.unknown,hv.nu),o=l0(a,e).fold(Tv.unknown,Tv.nu),u=a0(o,i,e,n);return{browser:i,os:o,deviceType:u}},C0={detect:y0},w0=function(e){return window.matchMedia(e).matches},S0=fs(function(){return C0.detect(navigator.userAgent,b.from(navigator.userAgentData),w0)}),qt=function(){return S0()},Av=navigator.userAgent,ms=qt(),Ct=ms.browser,It=ms.os,pn=ms.deviceType,E0=/WebKit/.test(Av)&&!Ct.isEdge(),k0="FormData"in window&&"FileReader"in window&&"URL"in window&&!!URL.createObjectURL,x0=Av.indexOf("Windows Phone")!==-1,se={opera:Ct.isOpera(),webkit:E0,ie:Ct.isIE()||Ct.isEdge()?Ct.version.major:!1,gecko:Ct.isFirefox(),mac:It.isOSX()||It.isiOS(),iOS:pn.isiPad()||pn.isiPhone(),android:It.isAndroid(),contentEditable:!0,transparentSrc:"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",caretAfter:!0,range:window.getSelection&&"Range"in window,documentMode:Ct.isIE()?document.documentMode||7:10,fileApi:k0,ceFalse:!0,cacheSuffix:null,container:null,experimentalShadowDom:!1,canHaveCSP:!Ct.isIE(),desktop:pn.isDesktop(),windowsPhone:x0,browser:{current:Ct.current,version:Ct.version,isChrome:Ct.isChrome,isEdge:Ct.isEdge,isFirefox:Ct.isFirefox,isIE:Ct.isIE,isOpera:Ct.isOpera,isSafari:Ct.isSafari},os:{current:It.current,version:It.version,isAndroid:It.isAndroid,isChromeOS:It.isChromeOS,isFreeBSD:It.isFreeBSD,isiOS:It.isiOS,isLinux:It.isLinux,isOSX:It.isOSX,isSolaris:It.isSolaris,isWindows:It.isWindows},deviceType:{isDesktop:pn.isDesktop,isiPad:pn.isiPad,isiPhone:pn.isiPhone,isPhone:pn.isPhone,isTablet:pn.isTablet,isTouch:pn.isTouch,isWebView:pn.isWebView}},N0=/^\s*|\s*$/g,Rv=function(e){return e==null?"":(""+e).replace(N0,"")},Bv=function(e,t){return t?t==="array"&&us(e)?!0:typeof e===t:e!==void 0},T0=function(e,t,n){var r;for(e=e||[],t=t||",",typeof e=="string"&&(e=e.split(t)),n=n||{},r=e.length;r--;)n[e[r]]={};return n},A0=de,R0=function(e,t,n){var r=this,a,i,o,u=0;e=/^((static) )?([\w.]+)(:([\w.]+))?/.exec(e);var s=e[3].match(/(^|\.)(\w+)$/i)[2],f=r.createNS(e[3].replace(/\.\w+$/,""),n);if(!f[s]){if(e[2]==="static"){f[s]=t,this.onCreate&&this.onCreate(e[2],e[3],f[s]);return}t[s]||(t[s]=function(){},u=1),f[s]=t[s],r.extend(f[s].prototype,t),e[5]&&(a=r.resolve(e[5]).prototype,i=e[5].match(/\.(\w+)$/i)[1],o=f[s],u?f[s]=function(){return a[i].apply(this,arguments)}:f[s]=function(){return this.parent=a[i],o.apply(this,arguments)},f[s].prototype[s]=f[s],r.each(a,function(l,c){f[s].prototype[c]=a[c]}),r.each(t,function(l,c){a[c]?f[s].prototype[c]=function(){return this.parent=a[c],l.apply(this,arguments)}:c!==s&&(f[s].prototype[c]=l)})),r.each(t.static,function(l,c){f[s][c]=l})}},B0=function(e){for(var t=[],n=1;n1)throw console.error("HTML does not have a single root node",e),new Error("HTML must have a single root node");return Ja(r.childNodes[0])},$0=function(e,t){var n=t||document,r=n.createElement(e);return Ja(r)},L0=function(e,t){var n=t||document,r=n.createTextNode(e);return Ja(r)},Ja=function(e){if(e==null)throw new Error("Node cannot be null or undefined");return{dom:e}},F0=function(e,t,n){return b.from(e.dom.elementFromPoint(t,n)).map(Ja)},k={fromHtml:I0,fromTag:$0,fromText:L0,fromDom:Ja,fromPoint:F0},Dv=function(e,t){var n=[],r=function(i){return n.push(i),t(i)},a=t(e);do a=a.bind(r);while(a.isSome());return n},M0=function(e,t,n){return(e.compareDocumentPosition(t)&n)!==0},U0=function(e,t){return M0(e,t,Node.DOCUMENT_POSITION_CONTAINED_BY)},z0=8,Ov=9,Pv=11,ps=1,H0=3,aa=function(e,t){var n=e.dom;if(n.nodeType!==ps)return!1;var r=n;if(r.matches!==void 0)return r.matches(t);if(r.msMatchesSelector!==void 0)return r.msMatchesSelector(t);if(r.webkitMatchesSelector!==void 0)return r.webkitMatchesSelector(t);if(r.mozMatchesSelector!==void 0)return r.mozMatchesSelector(t);throw new Error("Browser lacks native selectors")},Iv=function(e){return e.nodeType!==ps&&e.nodeType!==Ov&&e.nodeType!==Pv||e.childElementCount===0},V0=function(e,t){var n=t===void 0?document:t.dom;return Iv(n)?[]:De(n.querySelectorAll(e),k.fromDom)},q0=function(e,t){var n=t===void 0?document:t.dom;return Iv(n)?b.none():b.from(n.querySelector(e)).map(k.fromDom)},Te=function(e,t){return e.dom===t.dom},W0=function(e,t){var n=e.dom,r=t.dom;return n===r?!1:n.contains(r)},j0=function(e,t){return U0(e.dom,t.dom)},Wn=function(e,t){return qt().browser.isIE()?j0(e,t):W0(e,t)};typeof window!="undefined"||Function("return this;")();var je=function(e){var t=e.dom.nodeName;return t.toLowerCase()},$v=function(e){return e.dom.nodeType},Xi=function(e){return function(t){return $v(t)===e}},K0=function(e){return $v(e)===z0||je(e)==="#comment"},Jt=Xi(ps),Wt=Xi(H0),G0=Xi(Ov),X0=Xi(Pv),Y0=function(e){return function(t){return Jt(t)&&je(t)===e}},Lv=function(e){return k.fromDom(e.dom.ownerDocument)},ia=function(e){return G0(e)?e:Lv(e)},Q0=function(e){return k.fromDom(ia(e).dom.documentElement)},Fv=function(e){return k.fromDom(ia(e).dom.defaultView)},en=function(e){return b.from(e.dom.parentNode).map(k.fromDom)},Z0=function(e,t){for(var n=Oe(t)?t:Re,r=e.dom,a=[];r.parentNode!==null&&r.parentNode!==void 0;){var i=r.parentNode,o=k.fromDom(i);if(a.push(o),n(o)===!0)break;r=i}return a},J0=function(e){var t=function(n){return ve(n,function(r){return!Te(e,r)})};return en(e).map(jt).map(t).getOr([])},Er=function(e){return b.from(e.dom.previousSibling).map(k.fromDom)},ei=function(e){return b.from(e.dom.nextSibling).map(k.fromDom)},Mv=function(e){return ji(Dv(e,Er))},Uv=function(e){return Dv(e,ei)},jt=function(e){return De(e.dom.childNodes,k.fromDom)},Yi=function(e,t){var n=e.dom.childNodes;return b.from(n[t]).map(k.fromDom)},zv=function(e){return Yi(e,0)},gs=function(e){return Yi(e,e.dom.childNodes.length-1)},Hv=function(e){return e.dom.childNodes.length},ew=function(e){var t=e.dom.head;if(t==null)throw new Error("Head is not available yet");return k.fromDom(t)},Vv=function(e){return X0(e)&&Ne(e.dom.host)},qv=Oe(Element.prototype.attachShadow)&&Oe(Node.prototype.getRootNode),tw=X(qv),kr=qv?function(e){return k.fromDom(e.dom.getRootNode())}:ia,hs=function(e){return Vv(e)?e:ew(ia(e))},nw=function(e){var t=kr(e);return Vv(t)?b.some(t):b.none()},rw=function(e){return k.fromDom(e.dom.host)},aw=function(e){if(tw()&&Ne(e.target)){var t=k.fromDom(e.target);if(Jt(t)&&iw(t)&&e.composed&&e.composedPath){var n=e.composedPath();if(n)return Pt(n)}}return b.from(e.target)},iw=function(e){return Ne(e.dom.shadowRoot)},tn=function(e,t){var n=en(e);n.each(function(r){r.dom.insertBefore(t.dom,e.dom)})},ti=function(e,t){var n=ei(e);n.fold(function(){var r=en(e);r.each(function(a){at(a,t)})},function(r){tn(r,t)})},Wv=function(e,t){var n=zv(e);n.fold(function(){at(e,t)},function(r){e.dom.insertBefore(t.dom,r.dom)})},at=function(e,t){e.dom.appendChild(t.dom)},ow=function(e,t){tn(e,t),at(t,e)},uw=function(e,t){Y(t,function(n){tn(e,n)})},Qi=function(e,t){Y(t,function(n){at(e,n)})},bs=function(e){e.dom.textContent="",Y(jt(e),function(t){tt(t)})},tt=function(e){var t=e.dom;t.parentNode!==null&&t.parentNode.removeChild(t)},jv=function(e){var t=jt(e);t.length>0&&uw(e,t),tt(e)},ni=function(e){var t=Wt(e)?e.dom.parentNode:e.dom;if(t==null||t.ownerDocument===null)return!1;var n=t.ownerDocument;return nw(k.fromDom(t)).fold(function(){return n.body.contains(t)},Kc(ni,rw))},Kv=function(e,t){var n=function(r,a){return Kv(e+r,t+a)};return{left:e,top:t,translate:n}},oa=Kv,sw=function(e){var t=e.getBoundingClientRect();return oa(t.left,t.top)},Zi=function(e,t){return e!==void 0?e:t!==void 0?t:0},fw=function(e){var t=e.dom.ownerDocument,n=t.body,r=t.defaultView,a=t.documentElement;if(n===e.dom)return oa(n.offsetLeft,n.offsetTop);var i=Zi(r==null?void 0:r.pageYOffset,a.scrollTop),o=Zi(r==null?void 0:r.pageXOffset,a.scrollLeft),u=Zi(a.clientTop,n.clientTop),s=Zi(a.clientLeft,n.clientLeft);return ys(e).translate(o-s,i-u)},ys=function(e){var t=e.dom,n=t.ownerDocument,r=n.body;return r===t?oa(r.offsetLeft,r.offsetTop):ni(e)?sw(t):oa(0,0)},Cs=function(e){var t=e!==void 0?e.dom:document,n=t.body.scrollLeft||t.documentElement.scrollLeft,r=t.body.scrollTop||t.documentElement.scrollTop;return oa(n,r)},Gv=function(e,t,n){var r=n!==void 0?n.dom:document,a=r.defaultView;a&&a.scrollTo(e,t)},Xv=function(e,t){var n=qt().browser.isSafari();n&&Oe(e.dom.scrollIntoViewIfNeeded)?e.dom.scrollIntoViewIfNeeded(!1):e.dom.scrollIntoView(t)},lw=function(e){var t=e===void 0?window:e;return qt().browser.isFirefox()?b.none():b.from(t.visualViewport)},Yv=function(e,t,n,r){return{x:e,y:t,width:n,height:r,right:e+n,bottom:t+r}},Qv=function(e){var t=e===void 0?window:e,n=t.document,r=Cs(k.fromDom(n));return lw(t).fold(function(){var a=t.document.documentElement,i=a.clientWidth,o=a.clientHeight;return Yv(r.left,r.top,i,o)},function(a){return Yv(Math.max(a.pageLeft,r.left),Math.max(a.pageTop,r.top),a.width,a.height)})},ri=function(e){return function(t){return!!t&&t.nodeType===e}},Ji=function(e){return!!e&&!Object.getPrototypeOf(e)},ae=ri(1),Kt=function(e){var t=e.map(function(n){return n.toLowerCase()});return function(n){if(n&&n.nodeName){var r=n.nodeName.toLowerCase();return Je(t,r)}return!1}},eo=function(e,t){var n=t.toLowerCase().split(" ");return function(r){if(ae(r))for(var a=0;a0})},rd=function(e){var t={},n=e.dom;if(ro(n))for(var r=0;r=e.length&&n(r)}};e.length===0?n([]):Y(e,function(o,u){o.get(i(u))})})},Dw=function(e){return _w(e,sd.nu)},fa=function(e){var t=function(c){return fa(e)},n=function(c){return fa(e)},r=function(c){return fa(c(e))},a=function(c){return fa(e)},i=function(c){c(e)},o=function(c){return c(e)},u=function(c,v){return v(e)},s=function(c){return c(e)},f=function(c){return c(e)},l=function(){return b.some(e)};return{isValue:qe,isError:Re,getOr:X(e),getOrThunk:X(e),getOrDie:X(e),or:t,orThunk:n,fold:u,map:r,mapError:a,each:i,bind:o,exists:s,forall:f,toOptional:l}},ii=function(e){var t=function(f){return f()},n=function(){return zC(String(e))()},r=Tt,a=function(f){return f()},i=function(f){return ii(e)},o=function(f){return ii(f(e))},u=function(f){return ii(e)},s=function(f,l){return f(e)};return{isValue:Re,isError:qe,getOr:Tt,getOrThunk:t,getOrDie:n,or:r,orThunk:a,fold:s,map:i,mapError:o,each:le,bind:u,exists:Re,forall:qe,toOptional:b.none}},Ow=function(e,t){return e.fold(function(){return ii(t)},fa)},fd={value:fa,error:ii,fromOption:Ow},Pw=function(e){if(!Vt(e))throw new Error("cases must be an array");if(e.length===0)throw new Error("there must be at least one case");var t=[],n={};return Y(e,function(r,a){var i=ta(r);if(i.length!==1)throw new Error("one and only one name per case");var o=i[0],u=r[o];if(n[o]!==void 0)throw new Error("duplicate key detected:"+o);if(o==="cata")throw new Error("cannot have a case named cata (sorry)");if(!Vt(u))throw new Error("case arguments must be an array");t.push(o),n[o]=function(){for(var s=[],f=0;f-1},bt=function(e,t){for(var n=0,r=e.length;n=0;n--){var r=e[n];t(r,n)}},Yc=function(e,t){for(var n=[],r=[],a=0,i=e.length;a=0&&t=t.length&&e.substr(n,n+t.length)===t},d0=function(e,t){return Sr(e,t)?c0(e,t.length):e},yt=function(e,t){return e.indexOf(t)!==-1},Sr=function(e,t){return v0(e,t,0)},cs=function(e){return function(t){return t.replace(e,"")}},vs=cs(/^\s+|\s+$/g),m0=cs(/^\s+/g),uv=cs(/\s+$/g),Gi=function(e){return e.length>0},sv=function(e){return!Gi(e)},ds=/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,Pn=function(e){return function(t){return yt(t,e)}},p0=[{name:"Edge",versionRegexes:[/.*?edge\/ ?([0-9]+)\.([0-9]+)$/],search:function(e){return yt(e,"edge/")&&yt(e,"chrome")&&yt(e,"safari")&&yt(e,"applewebkit")}},{name:"Chrome",brand:"Chromium",versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/,ds],search:function(e){return yt(e,"chrome")&&!yt(e,"chromeframe")}},{name:"IE",versionRegexes:[/.*?msie\ ?([0-9]+)\.([0-9]+).*/,/.*?rv:([0-9]+)\.([0-9]+).*/],search:function(e){return yt(e,"msie")||yt(e,"trident")}},{name:"Opera",versionRegexes:[ds,/.*?opera\/([0-9]+)\.([0-9]+).*/],search:Pn("opera")},{name:"Firefox",versionRegexes:[/.*?firefox\/\ ?([0-9]+)\.([0-9]+).*/],search:Pn("firefox")},{name:"Safari",versionRegexes:[ds,/.*?cpu os ([0-9]+)_([0-9]+).*/],search:function(e){return(yt(e,"safari")||yt(e,"mobile/"))&&yt(e,"applewebkit")}}],g0=[{name:"Windows",search:Pn("win"),versionRegexes:[/.*?windows\ nt\ ?([0-9]+)\.([0-9]+).*/]},{name:"iOS",search:function(e){return yt(e,"iphone")||yt(e,"ipad")},versionRegexes:[/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,/.*cpu os ([0-9]+)_([0-9]+).*/,/.*cpu iphone os ([0-9]+)_([0-9]+).*/]},{name:"Android",search:Pn("android"),versionRegexes:[/.*?android\ ?([0-9]+)\.([0-9]+).*/]},{name:"OSX",search:Pn("mac os x"),versionRegexes:[/.*?mac\ os\ x\ ?([0-9]+)_([0-9]+).*/]},{name:"Linux",search:Pn("linux"),versionRegexes:[]},{name:"Solaris",search:Pn("sunos"),versionRegexes:[]},{name:"FreeBSD",search:Pn("freebsd"),versionRegexes:[]},{name:"ChromeOS",search:Pn("cros"),versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/]}],fv={browsers:X(p0),oses:X(g0)},lv="Edge",cv="Chrome",vv="IE",dv="Opera",mv="Firefox",pv="Safari",h0=function(){return gv({current:void 0,version:Za.unknown()})},gv=function(e){var t=e.current,n=e.version,r=function(a){return function(){return t===a}};return{current:t,version:n,isEdge:r(lv),isChrome:r(cv),isIE:r(vv),isOpera:r(dv),isFirefox:r(mv),isSafari:r(pv)}},hv={unknown:h0,nu:gv,edge:X(lv),chrome:X(cv),ie:X(vv),opera:X(dv),firefox:X(mv),safari:X(pv)},bv="Windows",yv="iOS",Cv="Android",wv="Linux",Sv="OSX",Ev="Solaris",kv="FreeBSD",xv="ChromeOS",b0=function(){return Nv({current:void 0,version:Za.unknown()})},Nv=function(e){var t=e.current,n=e.version,r=function(a){return function(){return t===a}};return{current:t,version:n,isWindows:r(bv),isiOS:r(yv),isAndroid:r(Cv),isOSX:r(Sv),isLinux:r(wv),isSolaris:r(Ev),isFreeBSD:r(kv),isChromeOS:r(xv)}},Tv={unknown:b0,nu:Nv,windows:X(bv),ios:X(yv),android:X(Cv),linux:X(wv),osx:X(Sv),solaris:X(Ev),freebsd:X(kv),chromeos:X(xv)},y0=function(e,t,n){var r=fv.browsers(),a=fv.oses(),i=t.bind(function(s){return s0(r,s)}).orThunk(function(){return f0(r,e)}).fold(hv.unknown,hv.nu),o=l0(a,e).fold(Tv.unknown,Tv.nu),u=a0(o,i,e,n);return{browser:i,os:o,deviceType:u}},C0={detect:y0},w0=function(e){return window.matchMedia(e).matches},S0=fs(function(){return C0.detect(navigator.userAgent,b.from(navigator.userAgentData),w0)}),qt=function(){return S0()},Av=navigator.userAgent,ms=qt(),Ct=ms.browser,It=ms.os,pn=ms.deviceType,E0=/WebKit/.test(Av)&&!Ct.isEdge(),k0="FormData"in window&&"FileReader"in window&&"URL"in window&&!!URL.createObjectURL,x0=Av.indexOf("Windows Phone")!==-1,se={opera:Ct.isOpera(),webkit:E0,ie:Ct.isIE()||Ct.isEdge()?Ct.version.major:!1,gecko:Ct.isFirefox(),mac:It.isOSX()||It.isiOS(),iOS:pn.isiPad()||pn.isiPhone(),android:It.isAndroid(),contentEditable:!0,transparentSrc:"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",caretAfter:!0,range:window.getSelection&&"Range"in window,documentMode:Ct.isIE()?document.documentMode||7:10,fileApi:k0,ceFalse:!0,cacheSuffix:null,container:null,experimentalShadowDom:!1,canHaveCSP:!Ct.isIE(),desktop:pn.isDesktop(),windowsPhone:x0,browser:{current:Ct.current,version:Ct.version,isChrome:Ct.isChrome,isEdge:Ct.isEdge,isFirefox:Ct.isFirefox,isIE:Ct.isIE,isOpera:Ct.isOpera,isSafari:Ct.isSafari},os:{current:It.current,version:It.version,isAndroid:It.isAndroid,isChromeOS:It.isChromeOS,isFreeBSD:It.isFreeBSD,isiOS:It.isiOS,isLinux:It.isLinux,isOSX:It.isOSX,isSolaris:It.isSolaris,isWindows:It.isWindows},deviceType:{isDesktop:pn.isDesktop,isiPad:pn.isiPad,isiPhone:pn.isiPhone,isPhone:pn.isPhone,isTablet:pn.isTablet,isTouch:pn.isTouch,isWebView:pn.isWebView}},N0=/^\s*|\s*$/g,Rv=function(e){return e==null?"":(""+e).replace(N0,"")},Bv=function(e,t){return t?t==="array"&&us(e)?!0:typeof e===t:e!==void 0},T0=function(e,t,n){var r;for(e=e||[],t=t||",",typeof e=="string"&&(e=e.split(t)),n=n||{},r=e.length;r--;)n[e[r]]={};return n},A0=de,R0=function(e,t,n){var r=this,a,i,o,u=0;e=/^((static) )?([\w.]+)(:([\w.]+))?/.exec(e);var s=e[3].match(/(^|\.)(\w+)$/i)[2],f=r.createNS(e[3].replace(/\.\w+$/,""),n);if(!f[s]){if(e[2]==="static"){f[s]=t,this.onCreate&&this.onCreate(e[2],e[3],f[s]);return}t[s]||(t[s]=function(){},u=1),f[s]=t[s],r.extend(f[s].prototype,t),e[5]&&(a=r.resolve(e[5]).prototype,i=e[5].match(/\.(\w+)$/i)[1],o=f[s],u?f[s]=function(){return a[i].apply(this,arguments)}:f[s]=function(){return this.parent=a[i],o.apply(this,arguments)},f[s].prototype[s]=f[s],r.each(a,function(l,c){f[s].prototype[c]=a[c]}),r.each(t,function(l,c){a[c]?f[s].prototype[c]=function(){return this.parent=a[c],l.apply(this,arguments)}:c!==s&&(f[s].prototype[c]=l)})),r.each(t.static,function(l,c){f[s][c]=l})}},B0=function(e){for(var t=[],n=1;n1)throw console.error("HTML does not have a single root node",e),new Error("HTML must have a single root node");return Ja(r.childNodes[0])},$0=function(e,t){var n=t||document,r=n.createElement(e);return Ja(r)},L0=function(e,t){var n=t||document,r=n.createTextNode(e);return Ja(r)},Ja=function(e){if(e==null)throw new Error("Node cannot be null or undefined");return{dom:e}},F0=function(e,t,n){return b.from(e.dom.elementFromPoint(t,n)).map(Ja)},k={fromHtml:I0,fromTag:$0,fromText:L0,fromDom:Ja,fromPoint:F0},Dv=function(e,t){var n=[],r=function(i){return n.push(i),t(i)},a=t(e);do a=a.bind(r);while(a.isSome());return n},M0=function(e,t,n){return(e.compareDocumentPosition(t)&n)!==0},U0=function(e,t){return M0(e,t,Node.DOCUMENT_POSITION_CONTAINED_BY)},z0=8,Ov=9,Pv=11,ps=1,H0=3,aa=function(e,t){var n=e.dom;if(n.nodeType!==ps)return!1;var r=n;if(r.matches!==void 0)return r.matches(t);if(r.msMatchesSelector!==void 0)return r.msMatchesSelector(t);if(r.webkitMatchesSelector!==void 0)return r.webkitMatchesSelector(t);if(r.mozMatchesSelector!==void 0)return r.mozMatchesSelector(t);throw new Error("Browser lacks native selectors")},Iv=function(e){return e.nodeType!==ps&&e.nodeType!==Ov&&e.nodeType!==Pv||e.childElementCount===0},V0=function(e,t){var n=t===void 0?document:t.dom;return Iv(n)?[]:De(n.querySelectorAll(e),k.fromDom)},q0=function(e,t){var n=t===void 0?document:t.dom;return Iv(n)?b.none():b.from(n.querySelector(e)).map(k.fromDom)},Te=function(e,t){return e.dom===t.dom},W0=function(e,t){var n=e.dom,r=t.dom;return n===r?!1:n.contains(r)},j0=function(e,t){return U0(e.dom,t.dom)},Wn=function(e,t){return qt().browser.isIE()?j0(e,t):W0(e,t)};typeof window!="undefined"||Function("return this;")();var je=function(e){var t=e.dom.nodeName;return t.toLowerCase()},$v=function(e){return e.dom.nodeType},Xi=function(e){return function(t){return $v(t)===e}},K0=function(e){return $v(e)===z0||je(e)==="#comment"},Jt=Xi(ps),Wt=Xi(H0),G0=Xi(Ov),X0=Xi(Pv),Y0=function(e){return function(t){return Jt(t)&&je(t)===e}},Lv=function(e){return k.fromDom(e.dom.ownerDocument)},ia=function(e){return G0(e)?e:Lv(e)},Q0=function(e){return k.fromDom(ia(e).dom.documentElement)},Fv=function(e){return k.fromDom(ia(e).dom.defaultView)},en=function(e){return b.from(e.dom.parentNode).map(k.fromDom)},Z0=function(e,t){for(var n=Oe(t)?t:Re,r=e.dom,a=[];r.parentNode!==null&&r.parentNode!==void 0;){var i=r.parentNode,o=k.fromDom(i);if(a.push(o),n(o)===!0)break;r=i}return a},J0=function(e){var t=function(n){return ve(n,function(r){return!Te(e,r)})};return en(e).map(jt).map(t).getOr([])},Er=function(e){return b.from(e.dom.previousSibling).map(k.fromDom)},ei=function(e){return b.from(e.dom.nextSibling).map(k.fromDom)},Mv=function(e){return ji(Dv(e,Er))},Uv=function(e){return Dv(e,ei)},jt=function(e){return De(e.dom.childNodes,k.fromDom)},Yi=function(e,t){var n=e.dom.childNodes;return b.from(n[t]).map(k.fromDom)},zv=function(e){return Yi(e,0)},gs=function(e){return Yi(e,e.dom.childNodes.length-1)},Hv=function(e){return e.dom.childNodes.length},ew=function(e){var t=e.dom.head;if(t==null)throw new Error("Head is not available yet");return k.fromDom(t)},Vv=function(e){return X0(e)&&Ne(e.dom.host)},qv=Oe(Element.prototype.attachShadow)&&Oe(Node.prototype.getRootNode),tw=X(qv),kr=qv?function(e){return k.fromDom(e.dom.getRootNode())}:ia,hs=function(e){return Vv(e)?e:ew(ia(e))},nw=function(e){var t=kr(e);return Vv(t)?b.some(t):b.none()},rw=function(e){return k.fromDom(e.dom.host)},aw=function(e){if(tw()&&Ne(e.target)){var t=k.fromDom(e.target);if(Jt(t)&&iw(t)&&e.composed&&e.composedPath){var n=e.composedPath();if(n)return Pt(n)}}return b.from(e.target)},iw=function(e){return Ne(e.dom.shadowRoot)},tn=function(e,t){var n=en(e);n.each(function(r){r.dom.insertBefore(t.dom,e.dom)})},ti=function(e,t){var n=ei(e);n.fold(function(){var r=en(e);r.each(function(a){at(a,t)})},function(r){tn(r,t)})},Wv=function(e,t){var n=zv(e);n.fold(function(){at(e,t)},function(r){e.dom.insertBefore(t.dom,r.dom)})},at=function(e,t){e.dom.appendChild(t.dom)},ow=function(e,t){tn(e,t),at(t,e)},uw=function(e,t){Y(t,function(n){tn(e,n)})},Qi=function(e,t){Y(t,function(n){at(e,n)})},bs=function(e){e.dom.textContent="",Y(jt(e),function(t){tt(t)})},tt=function(e){var t=e.dom;t.parentNode!==null&&t.parentNode.removeChild(t)},jv=function(e){var t=jt(e);t.length>0&&uw(e,t),tt(e)},ni=function(e){var t=Wt(e)?e.dom.parentNode:e.dom;if(t==null||t.ownerDocument===null)return!1;var n=t.ownerDocument;return nw(k.fromDom(t)).fold(function(){return n.body.contains(t)},Kc(ni,rw))},Kv=function(e,t){var n=function(r,a){return Kv(e+r,t+a)};return{left:e,top:t,translate:n}},oa=Kv,sw=function(e){var t=e.getBoundingClientRect();return oa(t.left,t.top)},Zi=function(e,t){return e!==void 0?e:t!==void 0?t:0},fw=function(e){var t=e.dom.ownerDocument,n=t.body,r=t.defaultView,a=t.documentElement;if(n===e.dom)return oa(n.offsetLeft,n.offsetTop);var i=Zi(r==null?void 0:r.pageYOffset,a.scrollTop),o=Zi(r==null?void 0:r.pageXOffset,a.scrollLeft),u=Zi(a.clientTop,n.clientTop),s=Zi(a.clientLeft,n.clientLeft);return ys(e).translate(o-s,i-u)},ys=function(e){var t=e.dom,n=t.ownerDocument,r=n.body;return r===t?oa(r.offsetLeft,r.offsetTop):ni(e)?sw(t):oa(0,0)},Cs=function(e){var t=e!==void 0?e.dom:document,n=t.body.scrollLeft||t.documentElement.scrollLeft,r=t.body.scrollTop||t.documentElement.scrollTop;return oa(n,r)},Gv=function(e,t,n){var r=n!==void 0?n.dom:document,a=r.defaultView;a&&a.scrollTo(e,t)},Xv=function(e,t){var n=qt().browser.isSafari();n&&Oe(e.dom.scrollIntoViewIfNeeded)?e.dom.scrollIntoViewIfNeeded(!1):e.dom.scrollIntoView(t)},lw=function(e){var t=e===void 0?window:e;return qt().browser.isFirefox()?b.none():b.from(t.visualViewport)},Yv=function(e,t,n,r){return{x:e,y:t,width:n,height:r,right:e+n,bottom:t+r}},Qv=function(e){var t=e===void 0?window:e,n=t.document,r=Cs(k.fromDom(n));return lw(t).fold(function(){var a=t.document.documentElement,i=a.clientWidth,o=a.clientHeight;return Yv(r.left,r.top,i,o)},function(a){return Yv(Math.max(a.pageLeft,r.left),Math.max(a.pageTop,r.top),a.width,a.height)})},ri=function(e){return function(t){return!!t&&t.nodeType===e}},Ji=function(e){return!!e&&!Object.getPrototypeOf(e)},ae=ri(1),Kt=function(e){var t=e.map(function(n){return n.toLowerCase()});return function(n){if(n&&n.nodeName){var r=n.nodeName.toLowerCase();return Je(t,r)}return!1}},eo=function(e,t){var n=t.toLowerCase().split(" ");return function(r){if(ae(r))for(var a=0;a0})},rd=function(e){var t={},n=e.dom;if(ro(n))for(var r=0;r=e.length&&n(r)}};e.length===0?n([]):Y(e,function(o,u){o.get(i(u))})})},Dw=function(e){return _w(e,sd.nu)},fa=function(e){var t=function(c){return fa(e)},n=function(c){return fa(e)},r=function(c){return fa(c(e))},a=function(c){return fa(e)},i=function(c){c(e)},o=function(c){return c(e)},u=function(c,v){return v(e)},s=function(c){return c(e)},f=function(c){return c(e)},l=function(){return b.some(e)};return{isValue:qe,isError:Re,getOr:X(e),getOrThunk:X(e),getOrDie:X(e),or:t,orThunk:n,fold:u,map:r,mapError:a,each:i,bind:o,exists:s,forall:f,toOptional:l}},ii=function(e){var t=function(f){return f()},n=function(){return zC(String(e))()},r=Tt,a=function(f){return f()},i=function(f){return ii(e)},o=function(f){return ii(f(e))},u=function(f){return ii(e)},s=function(f,l){return f(e)};return{isValue:Re,isError:qe,getOr:Tt,getOrThunk:t,getOrDie:n,or:r,orThunk:a,fold:s,map:i,mapError:o,each:le,bind:u,exists:Re,forall:qe,toOptional:b.none}},Ow=function(e,t){return e.fold(function(){return ii(t)},fa)},fd={value:fa,error:ii,fromOption:Ow},Pw=function(e){if(!Vt(e))throw new Error("cases must be an array");if(e.length===0)throw new Error("there must be at least one case");var t=[],n={};return Y(e,function(r,a){var i=ta(r);if(i.length!==1)throw new Error("one and only one name per case");var o=i[0],u=r[o];if(n[o]!==void 0)throw new Error("duplicate key detected:"+o);if(o==="cata")throw new Error("cannot have a case named cata (sorry)");if(!Vt(u))throw new Error("case arguments must be an array");t.push(o),n[o]=function(){for(var s=[],f=0;f0?h(S.fail.map(ld)):y(S.pass.map(ld))})},m=function(g){var y=B._addCacheSuffix(g);We(r,y).each(function(h){var E=--h.count;E===0&&(delete r[y],f(h.id))})},p=function(g){Y(g,function(y){m(y)})};return{load:c,loadAll:d,unload:m,unloadAll:p,_setReferrerPolicy:u}},Uw=function(){var e=new WeakMap,t=function(n,r){var a=kr(n),i=a.dom;return b.from(e.get(i)).getOrThunk(function(){var o=md(i,r);return e.set(i,o),o})};return{forElement:t}},pd=Uw(),Ge=function(){function e(t,n){this.node=t,this.rootNode=n,this.current=this.current.bind(this),this.next=this.next.bind(this),this.prev=this.prev.bind(this),this.prev2=this.prev2.bind(this)}return e.prototype.current=function(){return this.node},e.prototype.next=function(t){return this.node=this.findSibling(this.node,"firstChild","nextSibling",t),this.node},e.prototype.prev=function(t){return this.node=this.findSibling(this.node,"lastChild","previousSibling",t),this.node},e.prototype.prev2=function(t){return this.node=this.findPreviousNode(this.node,"lastChild","previousSibling",t),this.node},e.prototype.findSibling=function(t,n,r,a){var i,o;if(t){if(!a&&t[n])return t[n];if(t!==this.rootNode){if(i=t[r],i)return i;for(o=t.parentNode;o&&o!==this.rootNode;o=o.parentNode)if(i=o[r],i)return i}}},e.prototype.findPreviousNode=function(t,n,r,a){var i,o,u;if(t){if(i=t[r],this.rootNode&&i===this.rootNode)return;if(i){if(!a){for(u=i[n];u;u=u[n])if(!u[n])return u}return i}if(o=t.parentNode,o&&o!==this.rootNode)return o}},e}(),zw=["article","aside","details","div","dt","figcaption","footer","form","fieldset","header","hgroup","html","main","nav","section","summary","body","p","dl","multicol","dd","figure","address","center","blockquote","h1","h2","h3","h4","h5","h6","listing","xmp","pre","plaintext","menu","dir","ul","ol","li","hr","table","tbody","thead","tfoot","th","tr","td","caption"],Hw=["td","th"],Vw=["thead","tbody","tfoot"],qw=["h1","h2","h3","h4","h5","h6","p","div","address","pre","form","blockquote","center","dir","fieldset","header","footer","article","section","hgroup","aside","nav","figure"],Ww=["h1","h2","h3","h4","h5","h6"],jw=["li","dd","dt"],Kw=["ul","ol","dl"],Gw=["pre","script","textarea","style"],Xn=function(e){var t;return function(n){return t=t||XC(e,qe),de(t,je(n))}},Xw=Xn(Ww),bn=Xn(zw),Yw=function(e){return je(e)==="table"},Bs=function(e){return Jt(e)&&!bn(e)},la=function(e){return Jt(e)&&je(e)==="br"},gd=Xn(qw),_s=Xn(Kw),ui=Xn(jw),Qw=Xn(Vw),uo=Xn(Hw),so=Xn(Gw),Zw=function(e,t,n){return io(e,t,n).isSome()},Ds="\uFEFF",At="\xA0",Jw=function(e){return e===Ds},eS=function(e){return e.replace(/\uFEFF/g,"")},nt=Ds,fo=Jw,Yn=eS,tS=ae,ca=Q,va=function(e){return ca(e)&&(e=e.parentNode),tS(e)&&e.hasAttribute("data-mce-caret")},da=function(e){return ca(e)&&fo(e.data)},$t=function(e){return va(e)||da(e)},hd=function(e){return e.firstChild!==e.lastChild||!Le(e.firstChild)},nS=function(e,t){var n=e.ownerDocument,r=n.createTextNode(nt),a=e.parentNode;if(t){var i=e.previousSibling;if(ca(i)){if($t(i))return i;if(co(i))return i.splitText(i.data.length-1)}a.insertBefore(r,e)}else{var i=e.nextSibling;if(ca(i)){if($t(i))return i;if(lo(i))return i.splitText(1),i}e.nextSibling?a.insertBefore(r,e.nextSibling):a.appendChild(r)}return r},Os=function(e){var t=e.container();return Q(t)?t.data.charAt(e.offset())===nt||e.isAtStart()&&da(t.previousSibling):!1},Ps=function(e){var t=e.container();return Q(t)?t.data.charAt(e.offset()-1)===nt||e.isAtEnd()&&da(t.nextSibling):!1},rS=function(){var e=document.createElement("br");return e.setAttribute("data-mce-bogus","1"),e},aS=function(e,t,n){var r=t.ownerDocument,a=r.createElement(e);a.setAttribute("data-mce-caret",n?"before":"after"),a.setAttribute("data-mce-bogus","all"),a.appendChild(rS());var i=t.parentNode;return n?i.insertBefore(a,t):t.nextSibling?i.insertBefore(a,t.nextSibling):i.appendChild(a),a},lo=function(e){return ca(e)&&e.data[0]===nt},co=function(e){return ca(e)&&e.data[e.data.length-1]===nt},iS=function(e){var t=e.getElementsByTagName("br"),n=t[t.length-1];xr(n)&&n.parentNode.removeChild(n)},Is=function(e){return e&&e.hasAttribute("data-mce-caret")?(iS(e),e.removeAttribute("data-mce-caret"),e.removeAttribute("data-mce-bogus"),e.removeAttribute("style"),e.removeAttribute("_moz_abspos"),e):null},bd=function(e){return va(e.startContainer)},yd=gn,oS=_e,uS=Le,sS=Q,fS=Kt(["script","style","textarea"]),Cd=Kt(["img","input","textarea","hr","iframe","video","audio","object","embed"]),lS=Kt(["table"]),cS=$t,yn=function(e){return cS(e)?!1:sS(e)?!fS(e.parentNode):Cd(e)||uS(e)||lS(e)||$s(e)},vS=function(e){return ae(e)&&e.getAttribute("unselectable")==="true"},$s=function(e){return vS(e)===!1&&oS(e)},dS=function(e,t){for(e=e.parentNode;e&&e!==t;e=e.parentNode){if($s(e))return!1;if(yd(e))return!0}return!0},mS=function(e){return $s(e)?Zt(mn(e.getElementsByTagName("*")),function(t,n){return t||yd(n)},!1)!==!0:!1},pS=function(e){return Cd(e)||mS(e)},vo=function(e,t){return yn(e)&&dS(e,t)},gS=/^[ \t\r\n]*$/,Nr=function(e){return gS.test(e)},hS=function(e,t){var n=k.fromDom(t),r=k.fromDom(e);return Zw(r,"pre,code",G(Te,n))},bS=function(e,t){return Q(e)&&Nr(e.data)&&hS(e,t)===!1},yS=function(e){return ae(e)&&e.nodeName==="A"&&!e.hasAttribute("href")&&(e.hasAttribute("name")||e.hasAttribute("id"))},mo=function(e,t){return yn(e)&&bS(e,t)===!1||yS(e)||CS(e)},CS=Zv("data-mce-bookmark"),wS=Zv("data-mce-bogus"),SS=cw("data-mce-bogus","all"),ES=function(e,t){var n=0;if(mo(e,e))return!1;var r=e.firstChild;if(!r)return!0;var a=new Ge(r,e);do{if(t){if(SS(r)){r=a.next(!0);continue}if(wS(r)){r=a.next();continue}}if(Le(r)){n++,r=a.next();continue}if(mo(r,e))return!1;r=a.next()}while(r);return n<=1},Xe=function(e,t){return t===void 0&&(t=!0),ES(e.dom,t)},kS=function(e){return e.nodeName.toLowerCase()==="span"},wd=function(e,t){return Ne(e)&&(mo(e,t)||Bs(k.fromDom(e)))},xS=function(e,t){var n=new Ge(e,t).prev(!1),r=new Ge(e,t).next(!1),a=Nt(n)||wd(n,t),i=Nt(r)||wd(r,t);return a&&i},Sd=function(e){return kS(e)&&e.getAttribute("data-mce-type")==="bookmark"},NS=function(e,t){return Q(e)&&e.data.length>0&&xS(e,t)},TS=function(e){return ae(e)?e.childNodes.length>0:!1},AS=function(e){return Es(e)||Ss(e)},Ls=function(e,t,n){var r=n||t;if(ae(t)&&Sd(t))return t;for(var a=t.childNodes,i=a.length-1;i>=0;i--)Ls(e,a[i],r);if(ae(t)){var o=t.childNodes;o.length===1&&Sd(o[0])&&t.parentNode.insertBefore(o[0],t)}return!AS(t)&&!mo(t,r)&&!TS(t)&&!NS(t,r)&&e.remove(t),t},RS=B.makeMap,po=/[&<>\"\u0060\u007E-\uD7FF\uE000-\uFFEF]|[\uD800-\uDBFF][\uDC00-\uDFFF]/g,go=/[<>&\u007E-\uD7FF\uE000-\uFFEF]|[\uD800-\uDBFF][\uDC00-\uDFFF]/g,BS=/[<>&\"\']/g,_S=/&#([a-z0-9]+);?|&([a-z0-9]+);/gi,DS={128:"\u20AC",130:"\u201A",131:"\u0192",132:"\u201E",133:"\u2026",134:"\u2020",135:"\u2021",136:"\u02C6",137:"\u2030",138:"\u0160",139:"\u2039",140:"\u0152",142:"\u017D",145:"\u2018",146:"\u2019",147:"\u201C",148:"\u201D",149:"\u2022",150:"\u2013",151:"\u2014",152:"\u02DC",153:"\u2122",154:"\u0161",155:"\u203A",156:"\u0153",158:"\u017E",159:"\u0178"},Tr={'"':""","'":"'","<":"<",">":">","&":"&","`":"`"},OS={"<":"<",">":">","&":"&",""":'"',"'":"'"},PS=function(e){var t=k.fromTag("div").dom;return t.innerHTML=e,t.textContent||t.innerText||e},Ed=function(e,t){var n,r,a,i={};if(e){for(e=e.split(","),t=t||10,n=0;n1?"&#"+((n.charCodeAt(0)-55296)*1024+(n.charCodeAt(1)-56320)+65536)+";":Tr[n]||"&#"+n.charCodeAt(0)+";"})},Ms=function(e,t,n){return n=n||Fs,e.replace(t?po:go,function(r){return Tr[r]||n[r]||r})},$S=function(e,t){var n=Ed(t)||Fs,r=function(o,u){return o.replace(u?po:go,function(s){return Tr[s]!==void 0?Tr[s]:n[s]!==void 0?n[s]:s.length>1?"&#"+((s.charCodeAt(0)-55296)*1024+(s.charCodeAt(1)-56320)+65536)+";":"&#"+s.charCodeAt(0)+";"})},a=function(o,u){return Ms(o,u,n)},i=RS(e.replace(/\+/g,","));return i.named&&i.numeric?r:i.named?t?a:Ms:i.numeric?xd:kd},LS=function(e){return e.replace(_S,function(t,n){return n?(n.charAt(0).toLowerCase()==="x"?n=parseInt(n.substr(1),16):n=parseInt(n,10),n>65535?(n-=65536,String.fromCharCode(55296+(n>>10),56320+(n&1023))):DS[n]||String.fromCharCode(n)):OS[t]||Fs[t]||PS(t)})},Qn={encodeRaw:kd,encodeAllRaw:IS,encodeNumeric:xd,encodeNamed:Ms,getEncodeFunc:$S,decode:LS},Zn={},FS={},ma=B.makeMap,ut=B.each,Us=B.extend,Nd=B.explode,MS=B.inArray,rt=function(e,t){return e=B.trim(e),e?e.split(t||" "):[]},Td=function(e,t){var n=ma(e," ",ma(e.toUpperCase()," "));return Us(n,t)},Ad=function(e){return Td("td th li dt dd figcaption caption details summary",e.getTextBlockElements())},US=function(e){var t={},n,r,a,i,o,u,s=function(l,c,v){var d,m,p,g=function(h,E){var S={},C,x;for(C=0,x=h.length;C
");return tn(n.element,r),Up(r,function(){return tt(r)})},pN=function(e){return Up(k.fromDom(e),le)},zp=function(e,t,n,r){hN(e,function(a,i){return gN(e,t,n,r)},n)},Hp=function(e,t,n,r,a){var i={elm:r.element.dom,alignToTop:a};if(!cN(e,i)){var o=Cs(t).top;n(t,o,r,a),vN(e,i)}},gN=function(e,t,n,r){var a=k.fromDom(e.getBody()),i=k.fromDom(e.getDoc());Sw(a);var o=mN(k.fromDom(n.startContainer),n.startOffset);Hp(e,i,t,o,r),o.cleanup()},Vp=function(e,t,n,r){var a=k.fromDom(e.getDoc());Hp(e,a,n,pN(t),r)},hN=function(e,t,n){var r=n.startContainer,a=n.startOffset,i=n.endContainer,o=n.endOffset;t(k.fromDom(r),k.fromDom(i));var u=e.dom.createRng();u.setStart(r,a),u.setEnd(i,o),e.selection.setRng(n)},Qf=function(e,t,n,r){var a=e.pos;if(n)Gv(a.left,a.top,r);else{var i=a.top-t+e.height;Gv(a.left,i,r)}},qp=function(e,t,n,r,a){var i=n+t,o=r.pos.top,u=r.bottom,s=u-o>=n;if(oi){var f=s?a!==!1:a===!0;Qf(r,n,f,e)}else u>i&&!s&&Qf(r,n,a===!0,e)},Wp=function(e,t,n,r){var a=e.dom.defaultView.innerHeight;qp(e,t,a,n,r)},jp=function(e,t,n,r){var a=e.dom.defaultView.innerHeight;qp(e,t,a,n,r);var i=lN(n.element),o=Qv(window);i.topo.bottom&&Xv(n.element,r===!0)},bN=function(e,t,n){return zp(e,Wp,t,n)},yN=function(e,t,n){return Vp(e,t,Wp,n)},CN=function(e,t,n){return zp(e,jp,t,n)},wN=function(e,t,n){return Vp(e,t,jp,n)},SN=function(e,t,n){var r=e.inline?yN:wN;r(e,t,n)},Ri=function(e,t,n){var r=e.inline?bN:CN;r(e,t,n)},EN=function(){return k.fromDom(document)},kN=function(e){return e.dom.focus()},Kp=function(e){var t=kr(e).dom;return e.dom===t.activeElement},Zf=function(e){return e===void 0&&(e=EN()),b.from(e.dom.activeElement).map(k.fromDom)},xN=function(e){return Zf(kr(e)).filter(function(t){return e.dom.contains(t.dom)})},NN=function(e,t,n,r){return{start:e,soffset:t,finish:n,foffset:r}},TN={create:NN},Jf=Gn.generate([{before:["element"]},{on:["element","offset"]},{after:["element"]}]),AN=function(e,t,n,r){return e.fold(t,n,r)},RN=function(e){return e.fold(Tt,Tt,Tt)},BN=Jf.before,_N=Jf.on,DN=Jf.after,ON={before:BN,on:_N,after:DN,cata:AN,getStart:RN},Ko=Gn.generate([{domRange:["rng"]},{relative:["startSitu","finishSitu"]},{exact:["start","soffset","finish","foffset"]}]),PN=function(e){return Ko.exact(e.start,e.soffset,e.finish,e.foffset)},IN=function(e){return e.match({domRange:function(t){return k.fromDom(t.startContainer)},relative:function(t,n){return ON.getStart(t)},exact:function(t,n,r,a){return t}})},$N=Ko.domRange,LN=Ko.relative,FN=Ko.exact,MN=function(e){var t=IN(e);return Fv(t)},UN=TN.create,Gp={domRange:$N,relative:LN,exact:FN,exactFromRange:PN,getWin:MN,range:UN},zN=qt().browser,Xp=function(e,t){var n=Wt(t)?Vf(t).length:jt(t).length+1;return e>n?n:e<0?0:e},HN=function(e){return Gp.range(e.start,Xp(e.soffset,e.start),e.finish,Xp(e.foffset,e.finish))},Yp=function(e,t){return!Ji(t.dom)&&(Wn(e,t)||Te(e,t))},el=function(e){return function(t){return Yp(e,t.start)&&Yp(e,t.finish)}},Qp=function(e){return e.inline===!0||zN.isIE()},Zp=function(e){return Gp.range(k.fromDom(e.startContainer),e.startOffset,k.fromDom(e.endContainer),e.endOffset)},VN=function(e){var t=e.getSelection(),n=!t||t.rangeCount===0?b.none():b.from(t.getRangeAt(0));return n.map(Zp)},qN=function(e){var t=Fv(e);return VN(t.dom).filter(el(e))},WN=function(e,t){return b.from(t).filter(el(e)).map(HN)},jN=function(e){var t=document.createRange();try{return t.setStart(e.start.dom,e.soffset),t.setEnd(e.finish.dom,e.foffset),b.some(t)}catch{return b.none()}},Go=function(e){var t=Qp(e)?qN(k.fromDom(e.getBody())):b.none();e.bookmark=t.isSome()?t:e.bookmark},KN=function(e,t){var n=k.fromDom(e.getBody()),r=Qp(e)?b.from(t):b.none(),a=r.map(Zp).filter(el(n));e.bookmark=a.isSome()?a:e.bookmark},tl=function(e){var t=e.bookmark?e.bookmark:b.none();return t.bind(function(n){return WN(k.fromDom(e.getBody()),n)}).bind(jN)},GN=function(e){tl(e).each(function(t){return e.selection.setRng(t)})},XN=function(e){var t=e.className.toString();return t.indexOf("tox-")!==-1||t.indexOf("mce-")!==-1},Jp={isEditorUIElement:XN},YN=function(e){return e.type==="nodechange"&&e.selectionChange},QN=function(e,t){var n=function(){t.throttle()};xe.DOM.bind(document,"mouseup",n),e.on("remove",function(){xe.DOM.unbind(document,"mouseup",n)})},ZN=function(e){e.on("focusout",function(){Go(e)})},JN=function(e,t){e.on("mouseup touchend",function(n){t.throttle()})},eT=function(e,t){var n=qt().browser;n.isIE()?ZN(e):JN(e,t),e.on("keyup NodeChange",function(r){YN(r)||Go(e)})},tT=function(e){var t=cf(function(){Go(e)},0);e.on("init",function(){e.inline&&QN(e,t),eT(e,t)}),e.on("remove",function(){t.cancel()})},Bi,nl=xe.DOM,nT=function(e){return Jp.isEditorUIElement(e)},rT=function(e){var t=e.classList;return t!==void 0?t.contains("tox-edit-area")||t.contains("tox-edit-area__iframe")||t.contains("mce-content-body"):!1},Xo=function(e,t){var n=fx(e),r=nl.getParent(t,function(a){return nT(a)||(n?e.dom.is(a,n):!1)});return r!==null},aT=function(e){try{var t=kr(k.fromDom(e.getElement()));return Zf(t).fold(function(){return document.body},function(n){return n.dom})}catch{return document.body}},iT=function(e,t){var n=t.editor;tT(n),n.on("focusin",function(){var r=e.focusedEditor;r!==n&&(r&&r.fire("blur",{focusedEditor:n}),e.setActive(n),e.focusedEditor=n,n.fire("focus",{blurredEditor:r}),n.focus(!0))}),n.on("focusout",function(){ot.setEditorTimeout(n,function(){var r=e.focusedEditor;!Xo(n,aT(n))&&r===n&&(n.fire("blur",{focusedEditor:null}),e.focusedEditor=null)})}),Bi||(Bi=function(r){var a=e.activeEditor;a&&aw(r).each(function(i){i.ownerDocument===document&&i!==document.body&&!Xo(a,i)&&e.focusedEditor===a&&(a.fire("blur",{focusedEditor:null}),e.focusedEditor=null)})},nl.bind(document,"focusin",Bi))},oT=function(e,t){e.focusedEditor===t.editor&&(e.focusedEditor=null),e.activeEditor||(nl.unbind(document,"focusin",Bi),Bi=null)},uT=function(e){e.on("AddEditor",G(iT,e)),e.on("RemoveEditor",G(oT,e))},sT=function(e,t){return e.dom.getParent(t,function(n){return e.dom.getContentEditable(n)==="true"})},fT=function(e){return e.collapsed?b.from(ur(e.startContainer,e.startOffset)).map(k.fromDom):b.none()},lT=function(e,t){return fT(t).bind(function(n){return Qw(n)?b.some(n):Wn(e,n)===!1?b.some(e):b.none()})},eg=function(e,t){lT(k.fromDom(e.getBody()),t).bind(function(n){return wt(n.dom)}).fold(function(){e.selection.normalize()},function(n){return e.selection.setRng(n.toRange())})},rl=function(e){if(e.setActive)try{e.setActive()}catch{e.focus()}else e.focus()},cT=function(e){return Kp(e)||xN(e).isSome()},vT=function(e){return e.iframeElement&&Kp(k.fromDom(e.iframeElement))},dT=function(e){var t=e.getBody();return t&&cT(k.fromDom(t))},mT=function(e){var t=kr(k.fromDom(e.getElement()));return Zf(t).filter(function(n){return!rT(n.dom)&&Xo(e,n.dom)}).isSome()},Lr=function(e){return e.inline?dT(e):vT(e)},pT=function(e){return Lr(e)||mT(e)},gT=function(e){var t=e.selection,n=e.getBody(),r=t.getRng();e.quirks.refreshContentEditable(),e.bookmark!==void 0&&Lr(e)===!1&&tl(e).each(function(i){e.selection.setRng(i),r=i});var a=sT(e,t.getNode());if(e.$.contains(n,a)){rl(a),eg(e,r),al(e);return}e.inline||(se.opera||rl(n),e.getWin().focus()),(se.gecko||e.inline)&&(rl(n),eg(e,r)),al(e)},al=function(e){return e.editorManager.setActive(e)},hT=function(e,t){e.removed||(t?al(e):gT(e))},tg=function(e,t,n,r,a){var i=n?t.startContainer:t.endContainer,o=n?t.startOffset:t.endOffset;return b.from(i).map(k.fromDom).map(function(u){return!r||!t.collapsed?Yi(u,a(u,o)).getOr(u):u}).bind(function(u){return Jt(u)?b.some(u):en(u).filter(Jt)}).map(function(u){return u.dom}).getOr(e)},ng=function(e,t,n){return tg(e,t,!0,n,function(r,a){return Math.min(Hv(r),a)})},rg=function(e,t,n){return tg(e,t,!1,n,function(r,a){return a>0?a-1:a})},ag=function(e,t){for(var n=e;e&&Q(e)&&e.length===0;)e=t?e.nextSibling:e.previousSibling;return e||n},bT=function(e,t){var n,r,a;if(!t)return e;r=t.startContainer,a=t.endContainer;var i=t.startOffset,o=t.endOffset;return n=t.commonAncestorContainer,!t.collapsed&&(r===a&&o-i<2&&r.hasChildNodes()&&(n=r.childNodes[i]),r.nodeType===3&&a.nodeType===3&&(r.length===i?r=ag(r.nextSibling,!0):r=r.parentNode,o===0?a=ag(a.previousSibling,!1):a=a.parentNode,r&&r===a))?r:n&&n.nodeType===3?n.parentNode:n},yT=function(e,t,n,r){var a,i=[],o=e.getRoot();if(n=e.getParent(n||ng(o,t,t.collapsed),e.isBlock),r=e.getParent(r||rg(o,t,t.collapsed),e.isBlock),n&&n!==o&&i.push(n),n&&r&&n!==r){a=n;for(var u=new Ge(n,o);(a=u.next())&&a!==r;)e.isBlock(a)&&i.push(a)}return r&&n!==r&&r!==o&&i.push(r),i},CT=function(e,t,n){return b.from(t).map(function(r){var a=e.nodeIndex(r),i=e.createRng();return i.setStart(r.parentNode,a),i.setEnd(r.parentNode,a+1),n&&(Uf(e,i,r,!0),Uf(e,i,r,!1)),i})},il=function(e,t){return De(t,function(n){var r=e.fire("GetSelectionRange",{range:n});return r.range!==n?r.range:n})},wT={"#text":3,"#comment":8,"#cdata":4,"#pi":7,"#doctype":10,"#document-fragment":11},Yo=function(e,t,n){var r=n?"lastChild":"firstChild",a=n?"prev":"next";if(e[r])return e[r];if(e!==t){var i=e[a];if(i)return i;for(var o=e.parent;o&&o!==t;o=o.parent)if(i=o[a],i)return i}},ST=function(e){if(!Nr(e.value))return!1;var t=e.parent;return!(t&&(t.name!=="span"||t.attr("style"))&&/^[ ]+$/.test(e.value))},ig=function(e){var t=e.name==="a"&&!e.attr("href")&&e.attr("id");return e.attr("name")||e.attr("id")&&!e.firstChild||e.attr("data-mce-bookmark")||t},Xt=function(){function e(t,n){this.name=t,this.type=n,n===1&&(this.attributes=[],this.attributes.map={})}return e.create=function(t,n){var r=new e(t,wT[t]||1);return n&&Pe(n,function(a,i){r.attr(i,a)}),r},e.prototype.replace=function(t){var n=this;return t.parent&&t.remove(),n.insert(t,n),n.remove(),n},e.prototype.attr=function(t,n){var r=this,a;if(typeof t!="string")return t!=null&&Pe(t,function(o,u){r.attr(u,o)}),r;if(a=r.attributes){if(n!==void 0){if(n===null){if(t in a.map){delete a.map[t];for(var i=a.length;i--;)if(a[i].name===t)return a.splice(i,1),r}return r}if(t in a.map){for(var i=a.length;i--;)if(a[i].name===t){a[i].value=n;break}}else a.push({name:t,value:n});return a.map[t]=n,r}return a.map[t]}},e.prototype.clone=function(){var t=this,n=new e(t.name,t.type),r;if(r=t.attributes){var a=[];a.map={};for(var i=0,o=r.length;i=s.length){for(i=0,o=u.length;i=s.length||u[i]!==s[i]){r=i+1;break}}if(u.length=u.length||u[i]!==s[i]){r=i+1;break}}if(r===1)return n;for(i=0,o=u.length-(r-1);i=0;r--)if(!(f[r].length===0||f[r]===".")){if(f[r]===".."){a++;continue}if(a>0){a--;continue}i.push(f[r])}return r=s.length-a,r<=0?o=ji(i).join("/"):o=s.slice(0,r).join("/")+"/"+ji(i).join("/"),o.indexOf("/")!==0&&(o="/"+o),u&&o.lastIndexOf("/")!==o.length-1&&(o+=u),o},e.prototype.getURI=function(t){t===void 0&&(t=!1);var n;return(!this.source||t)&&(n="",t||(this.protocol?n+=this.protocol+"://":n+="//",this.userInfo&&(n+=this.userInfo+"@"),this.host&&(n+=this.host),this.port&&(n+=":"+this.port)),this.path&&(n+=this.path),this.query&&(n+="?"+this.query),this.anchor&&(n+="#"+this.anchor),this.source=n),this.source},e}(),_T=B.makeMap("button,fieldset,form,iframe,img,image,input,object,output,select,textarea"),DT=function(e){return e.indexOf("data-")===0||e.indexOf("aria-")===0},OT=fs(function(){return document.implementation.createHTMLDocument("parser")}),ul=function(e,t,n){for(var r=/<([!?\/])?([A-Za-z0-9\-_:.]+)/g,a=/(?:\s(?:[^'">]+(?:"[^"]*"|'[^']*'))*[^"'>]*(?:"[^">]*|'[^'>]*)?|\s*|\/)>/g,i=e.getShortEndedElements(),o=1,u=n;o!==0;)for(r.lastIndex=u;;){var s=r.exec(t);if(s===null)return u;if(s[1]==="!"){Sr(s[2],"--")?u=sl(t,!1,s.index+3):u=sl(t,!0,s.index+1);break}else{a.lastIndex=r.lastIndex;var f=a.exec(t);if(Ga(f)||f.index!==r.lastIndex)continue;s[1]==="/"?o-=1:de(i,s[2])||(o+=1),u=r.lastIndex+f[0].length;break}}return u},PT=function(e,t){return/^\s*\[if [\w\W]+\]>.*/.test(e.substr(t))},sl=function(e,t,n){n===void 0&&(n=0);var r=e.toLowerCase();if(r.indexOf("[if ",n)!==-1&&PT(r,n)){var a=r.indexOf("[endif]",n);return r.indexOf(">",a)}else if(t){var i=r.indexOf(">",n);return i!==-1?i:r.length}else{var o=/--!?>/g;o.lastIndex=n;var u=o.exec(e);return u?u.index+u[0].length:r.length}},IT=function(e,t){var n=e.exec(t);if(n){var r=n[1],a=n[2];return typeof r=="string"&&r.toLowerCase()==="data-mce-bogus"?a:null}else return null},Qo=function(e,t){t===void 0&&(t=Jn()),e=e||{};var n=OT(),r=n.createElement("form");e.fix_self_closing!==!1&&(e.fix_self_closing=!0);var a=e.comment?e.comment:le,i=e.cdata?e.cdata:le,o=e.text?e.text:le,u=e.start?e.start:le,s=e.end?e.end:le,f=e.pi?e.pi:le,l=e.doctype?e.doctype:le,c=function(d,m){m===void 0&&(m="html");for(var p=d.html,g,y=0,h,E,S=[],C,x,R,I,ne,W,_,ee,M,q,L,H,K,D,j,fe,pe,me=0,Ve=Qn.decode,Be=B.makeMap("src,href,data,background,action,formaction,poster,xlink:href"),lt=m==="html"?0:1,xt=function(we){var Se,Ue;for(Se=S.length;Se--&&S[Se].name!==we;);if(Se>=0){for(Ue=S.length-1;Ue>=Se;Ue--)we=S[Ue],we.valid&&s(we.name);S.length=Se}},O=function(we,Se){return o(ol(we,d),Se)},U=function(we){we!==""&&(we.charAt(0)===">"&&(we=" "+we),!e.allow_conditional_comments&&we.substr(0,3).toLowerCase()==="[if"&&(we=" "+we),a(ol(we,d)))},Z=function(we){return ol(we,d)},N=function(we,Se){var Ue=we||"",ln=!Sr(Ue,"--"),cn=sl(p,ln,Se);return we=p.substr(Se,cn-Se),U(ln?Ue+we:we),cn+1},$=function(we,Se,Ue,ln,cn){if(Se=Se.toLowerCase(),Ue=Z(Se in Fe?Se:Ve(Ue||ln||cn||"")),$e&&!ne&&DT(Se)===!1){var vn=L[Se];if(!vn&&H){for(var br=H.length;br--&&(vn=H[br],!vn.pattern.test(Se)););br===-1&&(vn=null)}if(!vn||vn.validValues&&!(Ue in vn.validValues))return}var Hc=Se==="name"||Se==="id";Hc&&we in _T&&(Ue in n||Ue in r)||Be[Se]&&!lr.isDomSafe(Ue,we,e)||ne&&(Se in Be||Se.indexOf("on")===0)||(C.map[Se]=Ue,C.push({name:Se,value:Ue}))},P=new RegExp(`<(?:(?:!--([\\w\\W]*?)--!?>)|(?:!\\[CDATA\\[([\\w\\W]*?)\\]\\]>)|(?:![Dd][Oo][Cc][Tt][Yy][Pp][Ee]([\\w\\W]*?)>)|(?:!(--)?)|(?:\\?([^\\s\\/<>]+) ?([\\w\\W]*?)[?/]>)|(?:\\/([A-Za-z][A-Za-z0-9\\-_\\:\\.]*)>)|(?:([A-Za-z][A-Za-z0-9\\-_:.]*)(\\s(?:[^'">]+(?:"[^"]*"|'[^']*'))*[^"'>]*(?:"[^">]*|'[^'>]*)?|\\s*|\\/)>))`,"g"),J=/([\w:\-]+)(?:\s*=\s*(?:(?:\"((?:[^\"])*)\")|(?:\'((?:[^\'])*)\')|([^>\s]+)))?/g,te=t.getShortEndedElements(),ye=e.self_closing_elements||t.getSelfClosingElements(),Fe=t.getBoolAttrs(),$e=e.validate,Vn=e.remove_internals,ct=e.fix_self_closing,pt=t.getSpecialElements(),Me=p+">";g=P.exec(Me);){var Ot=g[0];if(yp.length){O(Ve(p.substr(g.index))),y=g.index+Ot.length;continue}h=h.toLowerCase(),h.charAt(0)===":"&&(h=h.substr(1)),W=h in te,ct&&ye[h]&&S.length>0&&S[S.length-1].name===h&&xt(h);var gt=IT(J,g[9]);if(gt!==null){if(gt==="all"){y=ul(t,p,P.lastIndex),P.lastIndex=y;continue}ee=!1}if(!$e||(_=t.getElementRule(h))){if(ee=!0,$e&&(L=_.attributes,H=_.attributePatterns),(q=g[9])?(ne=q.indexOf("data-mce-type")!==-1,ne&&Vn&&(ee=!1),C=[],C.map={},q.replace(J,function(we,Se,Ue,ln,cn){return $(h,Se,Ue,ln,cn),""})):(C=[],C.map={}),$e&&!ne){if(K=_.attributesRequired,D=_.attributesDefault,j=_.attributesForced,fe=_.removeEmptyAttrs,fe&&!C.length&&(ee=!1),j)for(x=j.length;x--;)M=j[x],I=M.name,pe=M.value,pe==="{$uid}"&&(pe="mce_"+me++),C.map[I]=pe,C.push({name:I,value:pe});if(D)for(x=D.length;x--;)M=D[x],I=M.name,I in C.map||(pe=M.value,pe==="{$uid}"&&(pe="mce_"+me++),C.map[I]=pe,C.push({name:I,value:pe}));if(K){for(x=K.length;x--&&!(K[x]in C.map););x===-1&&(ee=!1)}if(M=C.map["data-mce-bogus"]){if(M==="all"){y=ul(t,p,P.lastIndex),P.lastIndex=y;continue}ee=!1}}ee&&u(h,C,W)}else ee=!1;if(E=pt[h]){E.lastIndex=y=g.index+Ot.length,(g=E.exec(p))?(ee&&(R=p.substr(y,g.index-y)),y=g.index+g[0].length):(R=p.substr(y),y=p.length),ee&&(R.length>0&&O(R,!0),s(h)),P.lastIndex=y;continue}W||(!q||q.indexOf("/")!==q.length-1?S.push({name:h,valid:ee}):ee&&s(h))}else if(h=g[1])U(h);else if(h=g[2]){var Dn=lt===1||e.preserve_cdata||S.length>0&&t.isValidChild(S[S.length-1].name,"#cdata");if(Dn)i(h);else{y=N("",g.index+2),P.lastIndex=y;continue}}else if(h=g[3])l(h);else if((h=g[4])||Ot==="=0;x--)h=S[x],h.valid&&s(h.name)},v=function(d,m){m===void 0&&(m="html"),c(ET(d),m)};return{parse:v}};Qo.findEndTag=ul;var $T=function(e,t){var n=new RegExp(["\\s?("+e.join("|")+')="[^"]+"'].join("|"),"gi");return t.replace(n,"")},ug=function(e,t){for(var n=/<(\w+) [^>]*data-mce-bogus="all"[^>]*>/g,r=e.schema,a=$T(e.getTempAttrs(),t),i=r.getShortEndedElements(),o;o=n.exec(a);){var u=n.lastIndex,s=o[0].length,f=void 0;i[o[1]]?f=u:f=Qo.findEndTag(r,a,u),a=a.substring(0,u-s)+a.substring(f),n.lastIndex=u-s}return Yn(a)},LT=ug,FT=function(e,t){var n=ft(e),r=new RegExp("^(<"+n+"[^>]*>( | |\\s|\xA0|
|)<\\/"+n+`>[\r diff --git a/public/js/build/TaskDetail.bd370bd4.js b/public/js/build/TaskDetail.d8b2d0c8.js similarity index 99% rename from public/js/build/TaskDetail.bd370bd4.js rename to public/js/build/TaskDetail.d8b2d0c8.js index 8f0a9aa71..792a73018 100644 --- a/public/js/build/TaskDetail.bd370bd4.js +++ b/public/js/build/TaskDetail.d8b2d0c8.js @@ -1 +1 @@ -import{n as r,d as c,m as u}from"./app.7a29bd84.js";import h from"./TEditor.aca79ca9.js";import{P as m,T as p}from"./ProjectLog.b1086bd7.js";import{U as f}from"./UserInput.1a8a4094.js";import{C as k,D as g}from"./DialogWrapper.7a212b74.js";import{T as _}from"./TaskMenu.1bac226b.js";var v=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("Upload",{ref:"upload",attrs:{name:"files",action:"",multiple:"",format:t.uploadFormat,"show-upload-list":!1,"max-size":t.maxSize,"on-format-error":t.handleFormatError,"on-exceeded-size":t.handleMaxSize,"before-upload":t.handleBeforeUpload}})},w=[];const D={name:"TaskUpload",props:{maxSize:{type:Number,default:1024e3}},data(){return{uploadFormat:["jpg","jpeg","webp","png","gif","doc","docx","xls","xlsx","ppt","pptx","txt","esp","pdf","rar","zip","gz","ai","avi","bmp","cdr","eps","mov","mp3","mp4","pr","psd","svg","tif"]}},methods:{handleFormatError(t){$A.modalWarning({title:"\u6587\u4EF6\u683C\u5F0F\u4E0D\u6B63\u786E",content:"\u6587\u4EF6 "+t.name+" \u683C\u5F0F\u4E0D\u6B63\u786E\uFF0C\u4EC5\u652F\u6301\u53D1\u9001\uFF1A"+this.uploadFormat.join(",")})},handleMaxSize(t){$A.modalWarning({title:"\u8D85\u51FA\u6587\u4EF6\u5927\u5C0F\u9650\u5236",content:"\u6587\u4EF6 "+t.name+" \u592A\u5927\uFF0C\u4E0D\u80FD\u53D1\u9001\u8D85\u8FC7"+$A.bytesToSize(this.maxSize*1024)+"\u3002"})},handleBeforeUpload(t){return this.$emit("on-select-file",t),!1},handleClick(){this.$refs.upload.handleClick()}}},n={};var b=r(D,v,w,!1,C,null,null,null);function C(t){for(let a in n)this[a]=n[a]}var y=function(){return b.exports}(),A=function(){var t=this,a=t.$createElement,e=t._self._c||a;return t.ready&&t.taskDetail.parent_id>0?e("li",[e("div",{staticClass:"subtask-icon"},[e("TaskMenu",{ref:`taskMenu_${t.taskDetail.id}`,attrs:{disabled:t.taskId===0,task:t.taskDetail,"load-status":t.taskDetail.loading===!0},on:{"on-update":t.getLogLists}})],1),t.taskDetail.flow_item_name?e("div",{staticClass:"subtask-flow"},[e("span",{class:t.taskDetail.flow_item_status,on:{click:function(s){return s.stopPropagation(),t.openMenu(s,t.taskDetail)}}},[t._v(t._s(t.taskDetail.flow_item_name))])]):t._e(),e("div",{staticClass:"subtask-name"},[e("Input",{ref:"name",attrs:{type:"textarea",rows:1,autosize:{minRows:1,maxRows:8},maxlength:255,enterkeyhint:"done"},on:{"on-blur":function(s){return t.updateBlur("name")},"on-keydown":t.onNameKeydown},model:{value:t.taskDetail.name,callback:function(s){t.$set(t.taskDetail,"name",s)},expression:"taskDetail.name"}})],1),e("DatePicker",{staticClass:"subtask-time",attrs:{open:t.timeOpen,options:t.timeOptions,format:"yyyy/MM/dd HH:mm",type:"datetimerange",placement:"bottom-end",transfer:""},on:{"on-open-change":t.timeChange,"on-clear":t.timeClear,"on-ok":t.timeOk},model:{value:t.timeValue,callback:function(s){t.timeValue=s},expression:"timeValue"}},[!t.taskDetail.complete_at&&t.taskDetail.end_at&&t.taskDetail.end_at!=t.mainEndAt?e("div",{class:["time",t.taskDetail.today?"today":"",t.taskDetail.overdue?"overdue":""],on:{click:t.openTime}},[t._v(" "+t._s(t.expiresFormat(t.taskDetail.end_at))+" ")]):e("Icon",{staticClass:"clock",attrs:{type:"ios-clock-outline"},on:{click:t.openTime}})],1),e("Poptip",{ref:"owner",staticClass:"subtask-avatar",attrs:{"popper-class":"task-detail-user-popper",title:t.$L("\u4FEE\u6539\u8D1F\u8D23\u4EBA"),width:240,placement:"bottom",transfer:""},on:{"on-popper-show":t.openOwner,"on-ok":t.onOwner}},[e("div",{attrs:{slot:"content"},slot:"content"},[e("UserInput",{attrs:{"multiple-max":10,"project-id":t.taskDetail.project_id,placeholder:t.$L("\u9009\u62E9\u4EFB\u52A1\u8D1F\u8D23\u4EBA"),transfer:!1,"max-hidden-select":""},model:{value:t.ownerData.owner_userid,callback:function(s){t.$set(t.ownerData,"owner_userid",s)},expression:"ownerData.owner_userid"}}),e("div",{staticClass:"task-detail-avatar-buttons"},[e("Button",{attrs:{size:"small",type:"primary"},on:{click:function(s){return t.$refs.owner.ok()}}},[t._v(t._s(t.$L("\u786E\u5B9A")))])],1)],1),t.getOwner.length>0?t._l(t.getOwner,function(s){return e("UserAvatar",{key:s.userid,attrs:{userid:s.userid,size:20,tooltipDisabled:""}})}):e("div",[t._v("--")])],2)],1):t.ready?e("div",{class:{"task-detail":!0,"open-dialog":t.hasOpenDialog,completed:t.taskDetail.complete_at},style:t.taskDetailStyle},[e("div",{directives:[{name:"show",rawName:"v-show",value:t.taskDetail.id>0,expression:"taskDetail.id > 0"}],staticClass:"task-info"},[e("div",{staticClass:"head"},[e("TaskMenu",{ref:`taskMenu_${t.taskDetail.id}`,staticClass:"icon",attrs:{disabled:t.taskId===0,task:t.taskDetail,size:"medium","color-show":!1},on:{"on-update":t.getLogLists}}),t.taskDetail.flow_item_name?e("div",{staticClass:"flow"},[e("span",{class:t.taskDetail.flow_item_status,on:{click:function(s){return s.stopPropagation(),t.openMenu(s,t.taskDetail)}}},[t._v(t._s(t.taskDetail.flow_item_name))])]):t._e(),t.taskDetail.archived_at?e("div",{staticClass:"flow"},[e("span",{staticClass:"archived",on:{click:function(s){return s.stopPropagation(),t.openMenu(s,t.taskDetail)}}},[t._v(t._s(t.$L("\u5DF2\u5F52\u6863")))])]):t._e(),e("div",{staticClass:"nav"},[t.projectName?e("p",[e("span",[t._v(t._s(t.projectName))])]):t._e(),t.columnName?e("p",[e("span",[t._v(t._s(t.columnName))])]):t._e(),t.taskDetail.id?e("p",[e("span",[t._v(t._s(t.taskDetail.id))])]):t._e()]),e("div",{staticClass:"function"},[t.getOwner.length===0?e("EPopover",{attrs:{placement:"bottom"},model:{value:t.receiveShow,callback:function(s){t.receiveShow=s},expression:"receiveShow"}},[e("div",{staticClass:"task-detail-receive"},[e("div",{staticClass:"receive-title"},[e("Icon",{attrs:{type:"ios-help-circle"}}),t._v(" "+t._s(t.$L("\u786E\u8BA4\u8BA1\u5212\u65F6\u95F4\u9886\u53D6\u4EFB\u52A1"))+" ")],1),e("div",{staticClass:"receive-time"},[e("DatePicker",{attrs:{options:t.timeOptions,format:"yyyy/MM/dd HH:mm",type:"datetimerange",placeholder:t.$L("\u8BF7\u8BBE\u7F6E\u8BA1\u5212\u65F6\u95F4"),clearable:!1,editable:!1},model:{value:t.timeValue,callback:function(s){t.timeValue=s},expression:"timeValue"}})],1),e("div",{staticClass:"receive-bottom"},[e("Button",{attrs:{size:"small",type:"text"},on:{click:function(s){t.receiveShow=!1}}},[t._v("\u53D6\u6D88")]),e("Button",{attrs:{loading:t.ownerLoad>0,size:"small",type:"primary"},on:{click:function(s){return t.onOwner(!0)}}},[t._v("\u786E\u5B9A")])],1)]),e("Button",{staticClass:"pick",attrs:{slot:"reference",loading:t.ownerLoad>0,type:"primary"},slot:"reference"},[t._v(t._s(t.$L("\u6211\u8981\u9886\u53D6\u4EFB\u52A1")))])],1):t._e(),t.$Electron?e("ETooltip",{attrs:{disabled:t.windowSmall||t.$isEEUiApp,content:t.$L("\u65B0\u7A97\u53E3\u6253\u5F00")}},[e("i",{staticClass:"taskfont open",on:{click:t.openNewWin}},[t._v("\uE776")])]):t._e(),e("div",{staticClass:"menu"},[e("TaskMenu",{attrs:{disabled:t.taskId===0,task:t.taskDetail,icon:"ios-more","completed-icon":"ios-more",size:"medium","color-show":!1},on:{"on-update":t.getLogLists}})],1)],1)],1),e("div",{staticClass:"scroller scrollbar-overlay"},[e("div",{staticClass:"title"},[e("Input",{ref:"name",attrs:{type:"textarea",rows:1,autosize:{minRows:1,maxRows:8},maxlength:255,enterkeyhint:"done"},on:{"on-blur":function(s){return t.updateBlur("name")},"on-keydown":t.onNameKeydown},model:{value:t.taskDetail.name,callback:function(s){t.$set(t.taskDetail,"name",s)},expression:"taskDetail.name"}})],1),e("div",{staticClass:"desc"},[e("TEditor",{ref:"desc",attrs:{value:t.taskContent,plugins:t.taskPlugins,options:t.taskOptions,"option-full":t.taskOptionFull,placeholder:t.$L("\u8BE6\u7EC6\u63CF\u8FF0..."),inline:""},on:{"on-blur":function(s){return t.updateBlur("content")}}})],1),e("Form",{staticClass:"items",attrs:{"label-position":"left","label-width":"auto"},nativeOn:{submit:function(s){s.preventDefault()}}},[t.taskDetail.p_name?e("FormItem",[e("div",{staticClass:"item-label",attrs:{slot:"label"},slot:"label"},[e("i",{staticClass:"taskfont"},[t._v("\uE6EC")]),t._v(t._s(t.$L("\u4F18\u5148\u7EA7"))+" ")]),e("ul",{staticClass:"item-content"},[e("li",[e("EDropdown",{ref:"priority",attrs:{trigger:"click",placement:"bottom"},on:{command:function(s){return t.updateData("priority",s)}}},[e("TaskPriority",{attrs:{backgroundColor:t.taskDetail.p_color}},[t._v(t._s(t.taskDetail.p_name))]),e("EDropdownMenu",{attrs:{slot:"dropdown"},slot:"dropdown"},t._l(t.taskPriority,function(s,i){return e("EDropdownItem",{key:i,attrs:{command:s}},[e("i",{staticClass:"taskfont",style:{color:s.color},domProps:{innerHTML:t._s(t.taskDetail.p_name==s.name?"":"")}}),t._v(" "+t._s(s.name)+" ")])}),1)],1)],1)])]):t._e(),t.getOwner.length>0?e("FormItem",[e("div",{staticClass:"item-label",attrs:{slot:"label"},slot:"label"},[e("i",{staticClass:"taskfont"},[t._v("\uE6E4")]),t._v(t._s(t.$L("\u8D1F\u8D23\u4EBA"))+" ")]),e("Poptip",{ref:"owner",staticClass:"item-content user",attrs:{title:t.$L("\u4FEE\u6539\u8D1F\u8D23\u4EBA"),width:240,"popper-class":"task-detail-user-popper",placement:"bottom",transfer:""},on:{"on-popper-show":t.openOwner,"on-ok":t.onOwner}},[e("div",{attrs:{slot:"content"},slot:"content"},[e("UserInput",{attrs:{"multiple-max":10,"project-id":t.taskDetail.project_id,placeholder:t.$L("\u9009\u62E9\u4EFB\u52A1\u8D1F\u8D23\u4EBA"),transfer:!1},model:{value:t.ownerData.owner_userid,callback:function(s){t.$set(t.ownerData,"owner_userid",s)},expression:"ownerData.owner_userid"}}),e("div",{staticClass:"task-detail-avatar-buttons"},[e("Button",{attrs:{size:"small",type:"primary"},on:{click:function(s){return t.$refs.owner.ok()}}},[t._v(t._s(t.$L("\u786E\u5B9A")))])],1)],1),e("div",{staticClass:"user-list"},t._l(t.getOwner,function(s){return e("UserAvatar",{key:s.userid,attrs:{userid:s.userid,size:28,showName:t.getOwner.length===1,tooltipDisabled:""}})}),1)])],1):t._e(),t.getAssist.length>0||t.assistForce?e("FormItem",[e("div",{staticClass:"item-label",attrs:{slot:"label"},slot:"label"},[e("i",{staticClass:"taskfont"},[t._v("\uE63F")]),t._v(t._s(t.$L("\u534F\u52A9\u4EBA\u5458"))+" ")]),e("Poptip",{ref:"assist",staticClass:"item-content user",attrs:{title:t.$L(t.getAssist.length>0?"\u4FEE\u6539\u534F\u52A9\u4EBA\u5458":"\u6DFB\u52A0\u534F\u52A9\u4EBA\u5458"),width:280,"popper-class":"task-detail-user-popper",placement:"bottom",transfer:""},on:{"on-popper-show":t.openAssist,"on-ok":t.onAssist}},[e("div",{attrs:{slot:"content"},slot:"content"},[e("UserInput",{attrs:{"multiple-max":10,"project-id":t.taskDetail.project_id,"disabled-choice":t.assistData.disabled,placeholder:t.$L("\u9009\u62E9\u4EFB\u52A1\u534F\u52A9\u4EBA\u5458"),transfer:!1},model:{value:t.assistData.assist_userid,callback:function(s){t.$set(t.assistData,"assist_userid",s)},expression:"assistData.assist_userid"}}),e("div",{staticClass:"task-detail-avatar-buttons"},[e("Button",{attrs:{size:"small",type:"primary"},on:{click:function(s){return t.$refs.assist.ok()}}},[t._v(t._s(t.$L("\u786E\u5B9A")))])],1)],1),t.getAssist.length>0?e("div",{staticClass:"user-list"},t._l(t.getAssist,function(s){return e("UserAvatar",{key:s.userid,attrs:{userid:s.userid,size:28,showName:t.getAssist.length===1,tooltipDisabled:""}})}),1):e("div",[t._v("--")])])],1):t._e(),t.taskDetail.end_at||t.timeForce?e("FormItem",[e("div",{staticClass:"item-label",attrs:{slot:"label"},slot:"label"},[e("i",{staticClass:"taskfont"},[t._v("\uE6E8")]),t._v(t._s(t.$L("\u622A\u6B62\u65F6\u95F4"))+" ")]),e("ul",{staticClass:"item-content"},[e("li",[e("DatePicker",{attrs:{open:t.timeOpen,options:t.timeOptions,format:"yyyy/MM/dd HH:mm",type:"datetimerange",transfer:""},on:{"on-open-change":t.timeChange,"on-clear":t.timeClear,"on-ok":t.timeOk},model:{value:t.timeValue,callback:function(s){t.timeValue=s},expression:"timeValue"}},[e("div",{staticClass:"picker-time"},[e("div",{staticClass:"time",on:{click:t.openTime}},[t._v(t._s(t.taskDetail.end_at?t.cutTime:"--"))]),!t.taskDetail.complete_at&&t.taskDetail.end_at?[t.within24Hours(t.taskDetail.end_at)?e("Tag",{attrs:{color:"blue"}},[e("i",{staticClass:"taskfont"},[t._v("\uE71D")]),t._v(t._s(t.expiresFormat(t.taskDetail.end_at)))]):t._e(),t.isOverdue(t.taskDetail)?e("Tag",{attrs:{color:"red"}},[t._v(t._s(t.$L("\u8D85\u671F\u672A\u5B8C\u6210")))]):t._e()]:t._e()],2)])],1)])]):t._e(),t.taskDetail.loop&&t.taskDetail.loop!="never"||t.loopForce?e("FormItem",[e("div",{staticClass:"item-label",attrs:{slot:"label"},slot:"label"},[e("i",{staticClass:"taskfont"},[t._v("\uE93F")]),t._v(t._s(t.$L("\u91CD\u590D\u5468\u671F"))+" ")]),e("ul",{staticClass:"item-content"},[e("li",[e("EDropdown",{ref:"loop",attrs:{trigger:"click",placement:"bottom"},on:{command:function(s){return t.updateData("loop",s)}}},[e("ETooltip",{attrs:{disabled:t.windowSmall||t.$isEEUiApp||!t.taskDetail.loop_at,content:`${t.$L("\u4E0B\u4E2A\u5468\u671F")}: ${t.taskDetail.loop_at}`,placement:"right"}},[e("span",[t._v(t._s(t.$L(t.loopLabel(t.taskDetail.loop))))])]),e("EDropdownMenu",{staticClass:"task-detail-loop",attrs:{slot:"dropdown"},slot:"dropdown"},t._l(t.loops,function(s){return e("EDropdownItem",{key:s.key,attrs:{command:s.key}},[t._v(" "+t._s(t.$L(s.label))+" ")])}),1)],1)],1)])]):t._e(),t.fileList.length>0?e("FormItem",[e("div",{staticClass:"item-label",attrs:{slot:"label"},slot:"label"},[e("i",{staticClass:"taskfont"},[t._v("\uE6E6")]),t._v(t._s(t.$L("\u9644\u4EF6"))+" ")]),e("ul",{staticClass:"item-content file"},[t.taskDetail.file_num>50?e("li",{staticClass:"tip"},[t._v(t._s(t.$L(`\u5171${t.taskDetail.file_num}\u4E2A\u6587\u4EF6\uFF0C\u4EC5\u663E\u793A\u6700\u65B050\u4E2A`)))]):t._e(),t._l(t.fileList,function(s){return e("li",[s.id?e("img",{staticClass:"file-ext",attrs:{src:s.thumb}}):e("Loading",{staticClass:"file-load"}),e("div",{staticClass:"file-name"},[t._v(t._s(s.name))]),e("div",{staticClass:"file-size"},[t._v(t._s(t.$A.bytesToSize(s.size)))]),e("div",{staticClass:"file-menu",class:{show:s._show_menu}},[e("Icon",{attrs:{type:"md-eye"},on:{click:function(i){return t.viewFile(s)}}}),e("Icon",{attrs:{type:"md-arrow-round-down"},on:{click:function(i){return t.downFile(s)}}}),e("EPopover",{staticClass:"file-delete",model:{value:s._show_menu,callback:function(i){t.$set(s,"_show_menu",i)},expression:"file._show_menu"}},[e("div",{staticClass:"task-detail-delete-file-popover"},[e("p",[t._v(t._s(t.$L("\u4F60\u786E\u5B9A\u8981\u5220\u9664\u8FD9\u4E2A\u6587\u4EF6\u5417\uFF1F")))]),e("div",{staticClass:"buttons"},[e("Button",{attrs:{size:"small",type:"text"},on:{click:function(i){s._show_menu=!1}}},[t._v(t._s(t.$L("\u53D6\u6D88")))]),e("Button",{attrs:{size:"small",type:"primary"},on:{click:function(i){return t.deleteFile(s)}}},[t._v(t._s(t.$L("\u786E\u5B9A")))])],1)]),e("i",{staticClass:"taskfont del",attrs:{slot:"reference"},slot:"reference"},[t._v("\uE6EA")])])],1)],1)})],2),e("ul",{staticClass:"item-content"},[e("li",[e("div",{staticClass:"add-button",on:{click:function(s){return t.onUploadClick(!0)}}},[e("i",{staticClass:"taskfont"},[t._v("\uE6F2")]),t._v(t._s(t.$L("\u6DFB\u52A0\u9644\u4EF6"))+" ")])])])]):t._e(),t.subList.length>0||t.addsubForce?e("FormItem",[e("div",{staticClass:"item-label",attrs:{slot:"label"},slot:"label"},[e("i",{staticClass:"taskfont"},[t._v("\uE6F0")]),t._v(t._s(t.$L("\u5B50\u4EFB\u52A1"))+" ")]),e("ul",{staticClass:"item-content subtask"},t._l(t.subList,function(s,i){return e("TaskDetail",{key:i,ref:`subTask_${s.id}`,refInFor:!0,attrs:{"task-id":s.id,"open-task":s,"main-end-at":t.taskDetail.end_at,"can-update-blur":t.canUpdateBlur}})}),1),e("ul",{class:["item-content",t.subList.length===0?"nosub":""]},[e("li",[t.addsubShow?e("Input",{ref:"addsub",staticClass:"add-input",class:{loading:t.addsubLoad>0},attrs:{placeholder:t.$L("+ \u8F93\u5165\u5B50\u4EFB\u52A1\uFF0C\u56DE\u8F66\u6DFB\u52A0\u5B50\u4EFB\u52A1"),icon:t.addsubLoad>0?"ios-loading":"",enterkeyhint:"done"},on:{"on-blur":t.addsubChackClose,"on-keydown":t.addsubKeydown},model:{value:t.addsubName,callback:function(s){t.addsubName=s},expression:"addsubName"}}):e("div",{staticClass:"add-button",on:{click:t.addsubOpen}},[e("i",{staticClass:"taskfont"},[t._v("\uE6F2")]),t._v(t._s(t.$L("\u6DFB\u52A0\u5B50\u4EFB\u52A1"))+" ")])],1)])]):t._e()],1),t.menuList.length>0?e("div",{staticClass:"add"},[e("EDropdown",{attrs:{trigger:"click",placement:"bottom"},on:{command:t.dropAdd}},[e("div",{staticClass:"add-button"},[e("i",{staticClass:"taskfont"},[t._v("\uE6F2")]),t._v(" "+t._s(t.$L("\u6DFB\u52A0"))+" "),e("em",[t._v(t._s(t.menuText))])]),e("EDropdownMenu",{attrs:{slot:"dropdown"},slot:"dropdown"},t._l(t.menuList,function(s,i){return e("EDropdownItem",{key:i,attrs:{command:s.command}},[e("div",{staticClass:"item"},[e("i",{staticClass:"taskfont",domProps:{innerHTML:t._s(s.icon)}}),t._v(t._s(t.$L(s.name))+" ")])])}),1)],1)],1):t._e()],1),e("TaskUpload",{ref:"upload",staticClass:"upload",on:{"on-select-file":t.onSelectFile}})],1),e("div",{directives:[{name:"show",rawName:"v-show",value:t.taskDetail.id>0,expression:"taskDetail.id > 0"}],staticClass:"task-dialog",style:t.dialogStyle},[t.hasOpenDialog?[t.taskId>0?e("DialogWrapper",{ref:"dialog",attrs:{"dialog-id":t.taskDetail.dialog_id}},[e("div",{staticClass:"head",attrs:{slot:"head"},slot:"head"},[e("Icon",{staticClass:"icon",attrs:{type:"ios-chatbubbles-outline"}}),e("div",{staticClass:"nav"},[e("p",{class:{active:t.navActive=="dialog"},on:{click:function(s){t.navActive="dialog"}}},[t._v(t._s(t.$L("\u804A\u5929")))]),e("p",{class:{active:t.navActive=="log"},on:{click:function(s){t.navActive="log"}}},[t._v(t._s(t.$L("\u52A8\u6001")))]),t.navActive=="log"?e("div",{staticClass:"refresh"},[t.logLoadIng?e("Loading"):e("Icon",{attrs:{type:"ios-refresh"},on:{click:t.getLogLists}})],1):t._e()])],1)]):t._e(),t.navActive=="log"&&t.taskId>0?e("ProjectLog",{ref:"log",attrs:{"task-id":t.taskDetail.id},on:{"on-load-change":t.logLoadChange}}):t._e()]:e("div",[e("div",{staticClass:"head"},[e("Icon",{staticClass:"icon",attrs:{type:"ios-chatbubbles-outline"}}),e("div",{staticClass:"nav"},[e("p",{class:{active:t.navActive=="dialog"},on:{click:function(s){t.navActive="dialog"}}},[t._v(t._s(t.$L("\u804A\u5929")))]),e("p",{class:{active:t.navActive=="log"},on:{click:function(s){t.navActive="log"}}},[t._v(t._s(t.$L("\u52A8\u6001")))]),t.navActive=="log"?e("div",{staticClass:"refresh"},[t.logLoadIng?e("Loading"):e("Icon",{attrs:{type:"ios-refresh"},on:{click:t.getLogLists}})],1):t._e()]),e("div",{staticClass:"menu"},[t.navActive=="dialog"&&t.taskDetail.msg_num>0?e("div",{staticClass:"menu-item",on:{click:function(s){return s.stopPropagation(),t.onSend("open")}}},[t.openLoad>0?e("div",{staticClass:"menu-load"},[e("Loading")],1):t._e(),t._v(" "+t._s(t.$L("\u4EFB\u52A1\u804A\u5929"))+" "),e("em",[t._v("("+t._s(t.taskDetail.msg_num>999?"999+":t.taskDetail.msg_num)+")")]),e("i",{staticClass:"taskfont"},[t._v("\uE703")])]):t._e()])],1),t.navActive=="log"&&t.taskId>0?e("ProjectLog",{ref:"log",attrs:{"task-id":t.taskDetail.id,"show-load":!1},on:{"on-load-change":t.logLoadChange}}):e("div",{staticClass:"no-dialog",on:{drop:function(s){return s.preventDefault(),t.taskPasteDrag(s,"drag")},dragover:function(s){return s.preventDefault(),t.taskDragOver(!0,s)},dragleave:function(s){return s.preventDefault(),t.taskDragOver(!1,s)}}},[e("div",{staticClass:"no-tip"},[t._v(t._s(t.$L("\u6682\u65E0\u6D88\u606F")))]),e("div",{staticClass:"no-input"},[e("ChatInput",{ref:"chatInput",attrs:{"task-id":t.taskId,loading:t.sendLoad>0,maxlength:2e5,placeholder:t.$L("\u8F93\u5165\u6D88\u606F...")},on:{"on-more":t.onEventMore,"on-file":t.onSelectFile,"on-record":t.onRecord,"on-send":t.onSend},model:{value:t.msgText,callback:function(s){t.msgText=s},expression:"msgText"}})],1),t.dialogDrag?e("div",{staticClass:"drag-over",on:{click:function(s){t.dialogDrag=!1}}},[e("div",{staticClass:"drag-text"},[t._v(t._s(t.$L("\u62D6\u52A8\u5230\u8FD9\u91CC\u53D1\u9001")))])]):t._e()])],1)],2),t.taskDetail.id?t._e():e("div",{staticClass:"task-load"},[e("Loading")],1)]):t._e()},L=[];const x={name:"TaskDetail",components:{ChatInput:k,TaskMenu:_,ProjectLog:m,DialogWrapper:g,TaskUpload:y,UserInput:f,TaskPriority:p,TEditor:h},props:{taskId:{type:Number,default:0},openTask:{type:Object,default:()=>({})},mainEndAt:{default:null},canUpdateBlur:{type:Boolean,default:!0},modalMode:{type:Boolean,default:!1}},data(){return{ready:!1,taskDetail:{},ownerData:{},ownerLoad:0,receiveShow:!1,assistForce:!1,assistData:{},assistLoad:0,addsubForce:!1,addsubShow:!1,addsubName:"",addsubLoad:0,timeForce:!1,timeOpen:!1,timeValue:[],timeOptions:{shortcuts:$A.timeOptionShortcuts()},loopForce:!1,nowTime:$A.Time(),nowInterval:null,msgText:"",msgFile:[],msgRecord:{},navActive:"dialog",logLoadIng:!1,sendLoad:0,openLoad:0,taskPlugins:["advlist autolink lists link image charmap print preview hr anchor pagebreak","searchreplace visualblocks visualchars code","insertdatetime media nonbreaking save table directionality","emoticons paste codesample","autoresize"],taskOptions:{statusbar:!1,menubar:!1,autoresize_bottom_margin:2,min_height:200,max_height:380,contextmenu:"bold italic underline forecolor backcolor | codesample | uploadImages imagePreview | preview screenload",valid_elements:"a[href|target=_blank],em,strong/b,div[align],span[style],a,br,p,img[src|alt|witdh|height],pre[class],code",toolbar:!1},taskOptionFull:{menubar:"file edit view",valid_elements:"a[href|target=_blank],em,strong/b,div[align],span[style],a,br,p,img[src|alt|witdh|height],pre[class],code",toolbar:"uploadImages | bold italic underline forecolor backcolor | codesample | preview screenload"},dialogDrag:!1,imageAttachment:!0,receiveTaskSubscribe:null,loops:[{key:"never",label:"\u4ECE\u4E0D"},{key:"day",label:"\u6BCF\u5929"},{key:"weekdays",label:"\u6BCF\u4E2A\u5DE5\u4F5C\u65E5"},{key:"week",label:"\u6BCF\u5468"},{key:"twoweeks",label:"\u6BCF\u4E24\u5468"},{key:"month",label:"\u6BCF\u6708"},{key:"year",label:"\u6BCF\u5E74"},{key:"custom",label:"\u81EA\u5B9A\u4E49"}]}},created(){const t=$A.getObject(this.$route.query,"navActive");["dialog","log"].includes(t)&&(this.navActive=t)},mounted(){this.nowInterval=setInterval(()=>{this.nowTime=$A.Time()},1e3),this.receiveTaskSubscribe=c.Store.subscribe("receiveTask",()=>{this.receiveShow=!0})},destroyed(){clearInterval(this.nowInterval),this.receiveTaskSubscribe&&(this.receiveTaskSubscribe.unsubscribe(),this.receiveTaskSubscribe=null)},computed:{...u(["cacheProjects","cacheColumns","cacheTasks","taskContents","taskFiles","taskPriority","dialogId"]),projectName(){if(!this.taskDetail.project_id)return"";if(this.taskDetail.project_name)return this.taskDetail.project_name;const t=this.cacheProjects.find(({id:a})=>a==this.taskDetail.project_id);return t?t.name:""},columnName(){if(!this.taskDetail.column_id)return"";if(this.taskDetail.column_name)return this.taskDetail.column_name;const t=this.cacheColumns.find(({id:a})=>a==this.taskDetail.column_id);return t?t.name:""},taskContent(){if(!this.taskId)return"";let t=this.taskContents.find(({task_id:a})=>a==this.taskId);return t?t.content:""},fileList(){return this.taskId?this.taskFiles.filter(({task_id:t})=>t==this.taskId).sort((t,a)=>a.id-t.id):[]},subList(){return this.taskId?this.cacheTasks.filter(t=>t.parent_id==this.taskId).sort((t,a)=>t.id-a.id):[]},hasOpenDialog(){return this.taskDetail.dialog_id>0&&this.windowLarge},dialogStyle(){const{windowHeight:t,hasOpenDialog:a}=this,e=Math.min(1100,t);if(!e)return{};if(!a)return{};const s=e>900?200:70;return{minHeight:e-s-48+"px"}},taskDetailStyle(){const{modalMode:t,windowHeight:a,hasOpenDialog:e}=this,s=Math.min(1100,a);if(t&&e){const i=s>900?200:70;return{maxHeight:s-i-30+"px"}}return{}},cutTime(){const{taskDetail:t}=this;let a=$A.Date(t.start_at,!0),e=$A.Date(t.end_at,!0),s="";return $A.formatDate("Y/m/d",a)==$A.formatDate("Y/m/d",e)?s=$A.formatDate("Y/m/d H:i",a)+" ~ "+$A.formatDate("H:i",e):$A.formatDate("Y",a)==$A.formatDate("Y",e)?(s=$A.formatDate("Y/m/d H:i",a)+" ~ "+$A.formatDate("m/d H:i",e),s=s.replace(/( 00:00| 23:59)/g,"")):(s=$A.formatDate("Y/m/d H:i",a)+" ~ "+$A.formatDate("Y/m/d H:i",e),s=s.replace(/( 00:00| 23:59)/g,"")),s},getOwner(){const{taskDetail:t}=this;return $A.isArray(t.task_user)?t.task_user.filter(({owner:a})=>a===1).sort((a,e)=>a.id-e.id):[]},getAssist(){const{taskDetail:t}=this;return $A.isArray(t.task_user)?t.task_user.filter(({owner:a})=>a!==1).sort((a,e)=>a.id-e.id):[]},menuList(){const{taskDetail:t}=this,a=[];return t.p_name||a.push({command:"priority",icon:"",name:"\u4F18\u5148\u7EA7"}),$A.isArray(t.task_user)&&t.task_user.find(({owner:e})=>e!==1)||a.push({command:"assist",icon:"",name:"\u534F\u52A9\u4EBA\u5458"}),t.end_at||a.push({command:"times",icon:"",name:"\u622A\u6B62\u65F6\u95F4"}),(!t.loop||t.loop=="never")&&a.push({command:"loop",icon:"",name:"\u91CD\u590D\u5468\u671F"}),this.fileList.length==0&&a.push({command:"file",icon:"",name:"\u9644\u4EF6"}),this.subList.length==0&&a.push({command:"subtask",icon:"",name:"\u5B50\u4EFB\u52A1"}),a},menuText(){const{menuList:t}=this;let a="";return t.length>0&&t.forEach((e,s)=>{s>0&&(a+=" / "),a+=this.$L(e.name)}),a}},watch:{openTask:{handler(t){this.taskDetail=$A.cloneJSON(t),this.__openTask&&clearTimeout(this.__openTask),this.__openTask=setTimeout(a=>{var e;return(e=this.$refs.name)==null?void 0:e.resizeTextarea()},100)},immediate:!0,deep:!0},taskId:{handler(t){t>0?this.ready=!0:(this.windowSmall&&$A.onBlur(),this.timeOpen=!1,this.timeForce=!1,this.loopForce=!1,this.assistForce=!1,this.addsubForce=!1,this.receiveShow=!1,this.$refs.owner&&this.$refs.owner.handleClose(),this.$refs.assist&&this.$refs.assist.handleClose(),this.$refs.chatInput&&this.$refs.chatInput.hidePopover())},immediate:!0},receiveShow(t){t&&(this.timeValue=this.taskDetail.end_at?[this.taskDetail.start_at,this.taskDetail.end_at]:[])}},methods:{within24Hours(t){return $A.Date(t,!0)-this.nowTime<86400},expiresFormat(t){return $A.countDownFormat(t,this.nowTime)},isOverdue(t){return t.overdue?!0:$A.Date(t.end_at,!0)e.key===t);return a?a.label:t?`\u6BCF${t}\u5929`:"\u4ECE\u4E0D"},onNameKeydown(t){t.keyCode===13&&(t.shiftKey||(t.preventDefault(),this.updateData("name")))},checkUpdate(t){let a=!1;if(this.openTask.name!=this.taskDetail.name)if(a=!0,t===!0)this.updateData("name");else return t===!1&&this.$refs.name.focus(),!0;if(this.$refs.desc&&this.$refs.desc.getContent()!=this.taskContent)if(a=!0,t===!0)this.updateData("content");else return t===!1&&this.$refs.desc.focus(),!0;if(this.addsubShow&&this.addsubName)if(a=!0,t===!0)this.onAddsub();else return t===!1&&this.$refs.addsub.focus(),!0;return this.subList.some(({id:e})=>{this.$refs[`subTask_${e}`][0].checkUpdate(t)&&(a=!0)}),a},updateBlur(t,a){this.canUpdateBlur&&this.updateData(t,a)},updateData(t,a){let e=null;switch(t){case"priority":this.$set(this.taskDetail,"p_level",a.priority),this.$set(this.taskDetail,"p_name",a.name),this.$set(this.taskDetail,"p_color",a.color),t=["p_level","p_name","p_color"];break;case"times":if(this.taskDetail.start_at&&(Math.abs($A.Time(this.taskDetail.start_at)-$A.Time(a.start_at))>60||Math.abs($A.Time(this.taskDetail.end_at)-$A.Time(a.end_at))>60)&&typeof a.desc=="undefined"){$A.modalInput({title:"\u4FEE\u6539\u4EFB\u52A1\u65F6\u95F4",placeholder:"\u8BF7\u8F93\u5165\u4FEE\u6539\u5907\u6CE8",okText:"\u786E\u5B9A",onOk:o=>o?(this.updateData("times",Object.assign(a,{desc:o})),!1):"\u8BF7\u8F93\u5165\u4FEE\u6539\u5907\u6CE8"});return}this.$set(this.taskDetail,"times",[a.start_at,a.end_at,a.desc]);break;case"loop":if(a==="custom"){this.customLoop();return}this.$set(this.taskDetail,"loop",a);break;case"content":const i=this.$refs.desc.getContent();if(i==this.taskContent)return;this.$set(this.taskDetail,"content",i),e=()=>{this.$store.dispatch("saveTaskContent",{task_id:this.taskId,content:i})};break}let s={task_id:this.taskDetail.id};($A.isArray(t)?t:[t]).forEach(i=>{let o=this.taskDetail[i],d=this.openTask[i];$A.jsonStringify(o)!=$A.jsonStringify(d)&&(s[i]=o)}),!(Object.keys(s).length<=1)&&this.$store.dispatch("taskUpdate",s).then(({msg:i})=>{$A.messageSuccess(i),typeof e=="function"&&e()}).catch(({msg:i})=>{$A.modalError(i)})},customLoop(){let t=this.taskDetail.loop||1;$A.Modal.confirm({render:a=>a("div",[a("div",{style:{fontSize:"16px",fontWeight:"500",marginBottom:"20px"}},this.$L("\u91CD\u590D\u5468\u671F")),a("Input",{style:{width:"160px",margin:"0 auto"},props:{type:"number",value:t,maxlength:3},on:{input:e=>{t=$.runNum(e)}}},[a("span",{slot:"prepend"},this.$L("\u6BCF")),a("span",{slot:"append"},this.$L("\u5929"))])]),onOk:a=>{this.$Modal.remove(),t>0&&this.updateData("loop",t)},loading:!0,okText:this.$L("\u786E\u5B9A"),cancelText:this.$L("\u53D6\u6D88")})},openOwner(){const t=this.getOwner.map(({userid:a})=>a);this.$set(this.taskDetail,"owner_userid",t),this.$set(this.ownerData,"owner_userid",t)},onOwner(t){let a={task_id:this.taskDetail.id,owner:this.ownerData.owner_userid};if(t===!0){if(this.getOwner.length>0){this.receiveShow=!1,$A.messageError("\u4EFB\u52A1\u5DF2\u88AB\u9886\u53D6");return}let e=$A.date2string(this.timeValue,"Y-m-d H:i");if(e[0]&&e[1])$A.rightExists(e[0],"00:00")&&$A.rightExists(e[1],"00:00")&&(e[1]=e[1].replace("00:00","23:59"));else{$A.messageError("\u8BF7\u8BBE\u7F6E\u8BA1\u5212\u65F6\u95F4");return}a.times=e,a.owner=this.ownerData.owner_userid=[this.userId]}$A.jsonStringify(this.taskDetail.owner_userid)!==$A.jsonStringify(this.ownerData.owner_userid)&&($A.count(a.owner)==0&&(a.owner=""),this.ownerLoad++,this.$store.dispatch("taskUpdate",a).then(({msg:e})=>{$A.messageSuccess(e),this.ownerLoad--,this.receiveShow=!1,this.$store.dispatch("getTaskOne",this.taskDetail.id).catch(()=>{})}).catch(({msg:e})=>{$A.modalError(e),this.ownerLoad--,this.receiveShow=!1}))},openAssist(){const t=this.getAssist.map(({userid:a})=>a);this.$set(this.taskDetail,"assist_userid",t),this.$set(this.assistData,"assist_userid",t),this.$set(this.assistData,"disabled",this.getOwner.map(({userid:a})=>a).filter(a=>a!=this.userId))},onAssist(){if($A.jsonStringify(this.taskDetail.assist_userid)!==$A.jsonStringify(this.assistData.assist_userid)){if(this.getOwner.find(({userid:t})=>t===this.userId)&&this.assistData.assist_userid.find(t=>t===this.userId)){$A.modalConfirm({content:"\u4F60\u5F53\u524D\u662F\u8D1F\u8D23\u4EBA\uFF0C\u786E\u5B9A\u8981\u8F6C\u4E3A\u534F\u52A9\u4EBA\u5458\u5417\uFF1F",cancelText:"\u53D6\u6D88",okText:"\u786E\u5B9A",onOk:()=>{this.onAssistConfirm()}});return}this.onAssistConfirm()}},onAssistConfirm(){let t=this.assistData.assist_userid;t.length===0&&(t=!1),this.assistLoad++,this.$store.dispatch("taskUpdate",{task_id:this.taskDetail.id,assist:t}).then(({msg:a})=>{$A.messageSuccess(a),this.assistLoad--,this.$store.dispatch("getTaskOne",this.taskDetail.id).catch(()=>{})}).catch(({msg:a})=>{$A.modalError(a),this.assistLoad--})},openTime(){this.timeOpen=!this.timeOpen,this.timeOpen&&(this.timeValue=this.taskDetail.end_at?[this.taskDetail.start_at,this.taskDetail.end_at]:[])},timeChange(t){t||(this.timeOpen=!1)},timeClear(){this.updateData("times",{start_at:!1,end_at:!1}),this.timeOpen=!1},timeOk(){let t=$A.date2string(this.timeValue,"Y-m-d H:i");t[0]&&t[1]&&$A.rightExists(t[0],"00:00")&&$A.rightExists(t[1],"00:00")&&(t[1]=t[1].replace("00:00","23:59")),this.updateData("times",{start_at:t[0],end_at:t[1]}),this.timeOpen=!1},addsubOpen(){this.addsubShow=!0,this.$nextTick(()=>{this.$refs.addsub.focus()})},addsubChackClose(){this.addsubName==""&&(this.addsubShow=!1)},addsubKeydown(t){if(t.keyCode===13){if(t.shiftKey||this.addsubLoad>0)return;t.preventDefault(),this.onAddsub()}},onAddsub(){if(this.addsubName==""){$A.messageError("\u4EFB\u52A1\u63CF\u8FF0\u4E0D\u80FD\u4E3A\u7A7A");return}this.addsubLoad++,this.$store.dispatch("taskAddSub",{task_id:this.taskDetail.id,name:this.addsubName}).then(({msg:t})=>{$A.messageSuccess(t),this.addsubLoad--,this.addsubName=""}).catch(({msg:t})=>{$A.modalError(t),this.addsubLoad--})},getLogLists(){this.navActive=="log"&&this.$refs.log.getLists(!0)},logLoadChange(t){this.logLoadIng=t},dropAdd(t){switch(t){case"priority":this.$set(this.taskDetail,"p_name",this.$L("\u672A\u8BBE\u7F6E")),this.$nextTick(()=>{this.$refs.priority.show()});break;case"assist":this.assistForce=!0,this.openAssist(),this.$nextTick(()=>{this.$refs.assist.handleClick()});break;case"times":this.timeForce=!0,this.$nextTick(()=>{this.openTime()});break;case"loop":this.loopForce=!0,this.$nextTick(()=>{this.$refs.loop.show()});break;case"file":this.onUploadClick(!0);break;case"subtask":this.addsubForce=!0,this.$nextTick(()=>{this.addsubOpen()});break}},onEventMore(t){["image","file"].includes(t)&&this.onUploadClick(!1)},onUploadClick(t){this.imageAttachment=!!t,this.$refs.upload.handleClick()},msgDialog(t=null,a=!1){this.sendLoad>0||this.openLoad>0||(a===!0?this.openLoad++:this.sendLoad++,this.$store.dispatch("call",{url:"project/task/dialog",data:{task_id:this.taskDetail.id}}).then(({data:e})=>{this.$store.dispatch("saveTask",{id:e.id,dialog_id:e.dialog_id}),this.$store.dispatch("saveDialog",e.dialog_data),$A.isSubElectron?this.resizeDialog().then(()=>{this.sendDialogMsg(t)}):this.$nextTick(()=>{if(this.windowSmall){$A.onBlur();const s={time:$A.Time()+10,msgRecord:this.msgRecord,msgFile:this.msgFile,msgText:typeof t=="string"&&t?t:this.msgText,dialogId:e.dialog_id};this.msgRecord={},this.msgFile=[],this.msgText="",this.$nextTick(i=>{this.dialogId>0&&this.$store.dispatch("openTask",0),this.$store.dispatch("openDialog",e.dialog_id).then(o=>{this.$store.state.dialogMsgTransfer=s})})}else this.sendDialogMsg(t)})}).catch(({msg:e})=>{$A.modalError(e)}).finally(e=>{a===!0?this.openLoad--:this.sendLoad--}))},sendDialogMsg(t=null){this.msgFile.length>0?this.$refs.dialog.sendFileMsg(this.msgFile.map(a=>Object.assign(a,{ajaxExtraData:{image_attachment:this.imageAttachment?1:0}}))):this.msgText?this.$refs.dialog.sendMsg(this.msgText):typeof t=="string"&&t&&this.$refs.dialog.sendMsg(t),this.msgFile=[],this.msgText=""},taskPasteDrag(t,a){this.dialogDrag=!1;const e=a==="drag"?t.dataTransfer.files:t.clipboardData.files;this.msgFile=Array.prototype.slice.call(e),this.msgFile.length>0&&(t.preventDefault(),this.msgDialog())},taskDragOver(t,a){let e=this.__dialogDrag=$A.randomString(8);if(!t)setTimeout(()=>{e===this.__dialogDrag&&(this.dialogDrag=t)},150);else{if(a.dataTransfer.effectAllowed==="move")return;this.dialogDrag=!0}},onSelectFile(t){this.msgFile=$A.isArray(t)?t:[t],this.msgDialog()},onRecord(t){this.msgRecord=t,this.msgDialog()},onSend(t){this.$refs.chatInput&&this.$refs.chatInput.hidePopover(),t==="open"?this.msgDialog(null,!0):this.msgDialog(t)},deleteFile(t){this.$set(t,"_show_menu",!1),this.$store.dispatch("forgetTaskFile",t.id),this.$store.dispatch("call",{url:"project/task/filedelete",data:{file_id:t.id}}).catch(({msg:a})=>{$A.modalError(a),this.$store.dispatch("getTaskFiles",this.taskDetail.id)})},openMenu(t,a){const e=this.$refs[`taskMenu_${a.id}`];e&&e.handleClick(t)},openNewWin(){let t={title:this.taskDetail.name,titleFixed:!0,parent:null,width:Math.min(window.screen.availWidth,this.$el.clientWidth+72),height:Math.min(window.screen.availHeight,this.$el.clientHeight+72),minWidth:600,minHeight:450};this.hasOpenDialog&&(t.minWidth=800,t.minHeight=600),this.$Electron.sendMessage("windowRouter",{name:`task-${this.taskDetail.id}`,path:`/single/task/${this.taskDetail.id}?navActive=${this.navActive}`,force:!1,config:t}),this.$store.dispatch("openTask",0)},resizeDialog(){return new Promise(t=>{this.$Electron.sendMessage("windowSize",{width:Math.max(1100,this.windowWidth),height:Math.max(720,this.windowHeight),minWidth:800,minHeight:600,autoZoom:!0});let a=0,e=setInterval(()=>{a++,(this.$refs.dialog||a>20)&&(clearInterval(e),this.$refs.dialog&&t())},100)})},viewFile(t){if(["jpg","jpeg","webp","gif","png"].includes(t.ext)){const e=this.fileList.filter(i=>["jpg","jpeg","webp","gif","png"].includes(i.ext)),s=e.findIndex(i=>i.id===t.id);s>-1?this.$store.dispatch("previewImage",{index:s,list:e.map(i=>({src:i.path,width:i.width,height:i.height}))}):this.$store.dispatch("previewImage",{index:0,list:[{src:t.path,width:t.width,height:t.height}]});return}const a=`/single/file/task/${t.id}`;this.$Electron?this.$Electron.sendMessage("windowRouter",{name:`file-task-${t.id}`,path:a,userAgent:"/hideenOfficeTitle/",force:!1,config:{title:`${t.name} (${$A.bytesToSize(t.size)})`,titleFixed:!0,parent:null,width:Math.min(window.screen.availWidth,1440),height:Math.min(window.screen.availHeight,900)},webPreferences:{nodeIntegrationInSubFrames:t.ext==="drawio"}}):this.$isEEUiApp?$A.eeuiAppOpenPage({pageType:"app",pageTitle:`${t.name} (${$A.bytesToSize(t.size)})`,url:"web.js",params:{titleFixed:!0,allowAccess:!0,url:$A.rightDelete(window.location.href,window.location.hash)+`#${a}`}}):window.open($A.apiUrl(`..${a}`))},downFile(t){$A.modalConfirm({title:"\u4E0B\u8F7D\u6587\u4EF6",content:`${t.name} (${$A.bytesToSize(t.size)})`,okText:"\u7ACB\u5373\u4E0B\u8F7D",onOk:()=>{this.$store.dispatch("downUrl",$A.apiUrl(`project/task/filedown?file_id=${t.id}`))}})}}},l={};var T=r(x,A,L,!1,I,null,null,null);function I(t){for(let a in l)this[a]=l[a]}var z=function(){return T.exports}();export{z as T}; +import{n as r,d as c,m as u}from"./app.aaf5ae6f.js";import h from"./TEditor.a74a72fe.js";import{P as m,T as p}from"./ProjectLog.77802854.js";import{U as f}from"./UserInput.d31ec6c9.js";import{C as k,D as g}from"./DialogWrapper.1892cac4.js";import{T as _}from"./TaskMenu.718b8e6d.js";var v=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("Upload",{ref:"upload",attrs:{name:"files",action:"",multiple:"",format:t.uploadFormat,"show-upload-list":!1,"max-size":t.maxSize,"on-format-error":t.handleFormatError,"on-exceeded-size":t.handleMaxSize,"before-upload":t.handleBeforeUpload}})},w=[];const D={name:"TaskUpload",props:{maxSize:{type:Number,default:1024e3}},data(){return{uploadFormat:["jpg","jpeg","webp","png","gif","doc","docx","xls","xlsx","ppt","pptx","txt","esp","pdf","rar","zip","gz","ai","avi","bmp","cdr","eps","mov","mp3","mp4","pr","psd","svg","tif"]}},methods:{handleFormatError(t){$A.modalWarning({title:"\u6587\u4EF6\u683C\u5F0F\u4E0D\u6B63\u786E",content:"\u6587\u4EF6 "+t.name+" \u683C\u5F0F\u4E0D\u6B63\u786E\uFF0C\u4EC5\u652F\u6301\u53D1\u9001\uFF1A"+this.uploadFormat.join(",")})},handleMaxSize(t){$A.modalWarning({title:"\u8D85\u51FA\u6587\u4EF6\u5927\u5C0F\u9650\u5236",content:"\u6587\u4EF6 "+t.name+" \u592A\u5927\uFF0C\u4E0D\u80FD\u53D1\u9001\u8D85\u8FC7"+$A.bytesToSize(this.maxSize*1024)+"\u3002"})},handleBeforeUpload(t){return this.$emit("on-select-file",t),!1},handleClick(){this.$refs.upload.handleClick()}}},n={};var b=r(D,v,w,!1,C,null,null,null);function C(t){for(let a in n)this[a]=n[a]}var y=function(){return b.exports}(),A=function(){var t=this,a=t.$createElement,e=t._self._c||a;return t.ready&&t.taskDetail.parent_id>0?e("li",[e("div",{staticClass:"subtask-icon"},[e("TaskMenu",{ref:`taskMenu_${t.taskDetail.id}`,attrs:{disabled:t.taskId===0,task:t.taskDetail,"load-status":t.taskDetail.loading===!0},on:{"on-update":t.getLogLists}})],1),t.taskDetail.flow_item_name?e("div",{staticClass:"subtask-flow"},[e("span",{class:t.taskDetail.flow_item_status,on:{click:function(s){return s.stopPropagation(),t.openMenu(s,t.taskDetail)}}},[t._v(t._s(t.taskDetail.flow_item_name))])]):t._e(),e("div",{staticClass:"subtask-name"},[e("Input",{ref:"name",attrs:{type:"textarea",rows:1,autosize:{minRows:1,maxRows:8},maxlength:255,enterkeyhint:"done"},on:{"on-blur":function(s){return t.updateBlur("name")},"on-keydown":t.onNameKeydown},model:{value:t.taskDetail.name,callback:function(s){t.$set(t.taskDetail,"name",s)},expression:"taskDetail.name"}})],1),e("DatePicker",{staticClass:"subtask-time",attrs:{open:t.timeOpen,options:t.timeOptions,format:"yyyy/MM/dd HH:mm",type:"datetimerange",placement:"bottom-end",transfer:""},on:{"on-open-change":t.timeChange,"on-clear":t.timeClear,"on-ok":t.timeOk},model:{value:t.timeValue,callback:function(s){t.timeValue=s},expression:"timeValue"}},[!t.taskDetail.complete_at&&t.taskDetail.end_at&&t.taskDetail.end_at!=t.mainEndAt?e("div",{class:["time",t.taskDetail.today?"today":"",t.taskDetail.overdue?"overdue":""],on:{click:t.openTime}},[t._v(" "+t._s(t.expiresFormat(t.taskDetail.end_at))+" ")]):e("Icon",{staticClass:"clock",attrs:{type:"ios-clock-outline"},on:{click:t.openTime}})],1),e("Poptip",{ref:"owner",staticClass:"subtask-avatar",attrs:{"popper-class":"task-detail-user-popper",title:t.$L("\u4FEE\u6539\u8D1F\u8D23\u4EBA"),width:240,placement:"bottom",transfer:""},on:{"on-popper-show":t.openOwner,"on-ok":t.onOwner}},[e("div",{attrs:{slot:"content"},slot:"content"},[e("UserInput",{attrs:{"multiple-max":10,"project-id":t.taskDetail.project_id,placeholder:t.$L("\u9009\u62E9\u4EFB\u52A1\u8D1F\u8D23\u4EBA"),transfer:!1,"max-hidden-select":""},model:{value:t.ownerData.owner_userid,callback:function(s){t.$set(t.ownerData,"owner_userid",s)},expression:"ownerData.owner_userid"}}),e("div",{staticClass:"task-detail-avatar-buttons"},[e("Button",{attrs:{size:"small",type:"primary"},on:{click:function(s){return t.$refs.owner.ok()}}},[t._v(t._s(t.$L("\u786E\u5B9A")))])],1)],1),t.getOwner.length>0?t._l(t.getOwner,function(s){return e("UserAvatar",{key:s.userid,attrs:{userid:s.userid,size:20,tooltipDisabled:""}})}):e("div",[t._v("--")])],2)],1):t.ready?e("div",{class:{"task-detail":!0,"open-dialog":t.hasOpenDialog,completed:t.taskDetail.complete_at},style:t.taskDetailStyle},[e("div",{directives:[{name:"show",rawName:"v-show",value:t.taskDetail.id>0,expression:"taskDetail.id > 0"}],staticClass:"task-info"},[e("div",{staticClass:"head"},[e("TaskMenu",{ref:`taskMenu_${t.taskDetail.id}`,staticClass:"icon",attrs:{disabled:t.taskId===0,task:t.taskDetail,size:"medium","color-show":!1},on:{"on-update":t.getLogLists}}),t.taskDetail.flow_item_name?e("div",{staticClass:"flow"},[e("span",{class:t.taskDetail.flow_item_status,on:{click:function(s){return s.stopPropagation(),t.openMenu(s,t.taskDetail)}}},[t._v(t._s(t.taskDetail.flow_item_name))])]):t._e(),t.taskDetail.archived_at?e("div",{staticClass:"flow"},[e("span",{staticClass:"archived",on:{click:function(s){return s.stopPropagation(),t.openMenu(s,t.taskDetail)}}},[t._v(t._s(t.$L("\u5DF2\u5F52\u6863")))])]):t._e(),e("div",{staticClass:"nav"},[t.projectName?e("p",[e("span",[t._v(t._s(t.projectName))])]):t._e(),t.columnName?e("p",[e("span",[t._v(t._s(t.columnName))])]):t._e(),t.taskDetail.id?e("p",[e("span",[t._v(t._s(t.taskDetail.id))])]):t._e()]),e("div",{staticClass:"function"},[t.getOwner.length===0?e("EPopover",{attrs:{placement:"bottom"},model:{value:t.receiveShow,callback:function(s){t.receiveShow=s},expression:"receiveShow"}},[e("div",{staticClass:"task-detail-receive"},[e("div",{staticClass:"receive-title"},[e("Icon",{attrs:{type:"ios-help-circle"}}),t._v(" "+t._s(t.$L("\u786E\u8BA4\u8BA1\u5212\u65F6\u95F4\u9886\u53D6\u4EFB\u52A1"))+" ")],1),e("div",{staticClass:"receive-time"},[e("DatePicker",{attrs:{options:t.timeOptions,format:"yyyy/MM/dd HH:mm",type:"datetimerange",placeholder:t.$L("\u8BF7\u8BBE\u7F6E\u8BA1\u5212\u65F6\u95F4"),clearable:!1,editable:!1},model:{value:t.timeValue,callback:function(s){t.timeValue=s},expression:"timeValue"}})],1),e("div",{staticClass:"receive-bottom"},[e("Button",{attrs:{size:"small",type:"text"},on:{click:function(s){t.receiveShow=!1}}},[t._v("\u53D6\u6D88")]),e("Button",{attrs:{loading:t.ownerLoad>0,size:"small",type:"primary"},on:{click:function(s){return t.onOwner(!0)}}},[t._v("\u786E\u5B9A")])],1)]),e("Button",{staticClass:"pick",attrs:{slot:"reference",loading:t.ownerLoad>0,type:"primary"},slot:"reference"},[t._v(t._s(t.$L("\u6211\u8981\u9886\u53D6\u4EFB\u52A1")))])],1):t._e(),t.$Electron?e("ETooltip",{attrs:{disabled:t.windowSmall||t.$isEEUiApp,content:t.$L("\u65B0\u7A97\u53E3\u6253\u5F00")}},[e("i",{staticClass:"taskfont open",on:{click:t.openNewWin}},[t._v("\uE776")])]):t._e(),e("div",{staticClass:"menu"},[e("TaskMenu",{attrs:{disabled:t.taskId===0,task:t.taskDetail,icon:"ios-more","completed-icon":"ios-more",size:"medium","color-show":!1},on:{"on-update":t.getLogLists}})],1)],1)],1),e("div",{staticClass:"scroller scrollbar-overlay"},[e("div",{staticClass:"title"},[e("Input",{ref:"name",attrs:{type:"textarea",rows:1,autosize:{minRows:1,maxRows:8},maxlength:255,enterkeyhint:"done"},on:{"on-blur":function(s){return t.updateBlur("name")},"on-keydown":t.onNameKeydown},model:{value:t.taskDetail.name,callback:function(s){t.$set(t.taskDetail,"name",s)},expression:"taskDetail.name"}})],1),e("div",{staticClass:"desc"},[e("TEditor",{ref:"desc",attrs:{value:t.taskContent,plugins:t.taskPlugins,options:t.taskOptions,"option-full":t.taskOptionFull,placeholder:t.$L("\u8BE6\u7EC6\u63CF\u8FF0..."),inline:""},on:{"on-blur":function(s){return t.updateBlur("content")}}})],1),e("Form",{staticClass:"items",attrs:{"label-position":"left","label-width":"auto"},nativeOn:{submit:function(s){s.preventDefault()}}},[t.taskDetail.p_name?e("FormItem",[e("div",{staticClass:"item-label",attrs:{slot:"label"},slot:"label"},[e("i",{staticClass:"taskfont"},[t._v("\uE6EC")]),t._v(t._s(t.$L("\u4F18\u5148\u7EA7"))+" ")]),e("ul",{staticClass:"item-content"},[e("li",[e("EDropdown",{ref:"priority",attrs:{trigger:"click",placement:"bottom"},on:{command:function(s){return t.updateData("priority",s)}}},[e("TaskPriority",{attrs:{backgroundColor:t.taskDetail.p_color}},[t._v(t._s(t.taskDetail.p_name))]),e("EDropdownMenu",{attrs:{slot:"dropdown"},slot:"dropdown"},t._l(t.taskPriority,function(s,i){return e("EDropdownItem",{key:i,attrs:{command:s}},[e("i",{staticClass:"taskfont",style:{color:s.color},domProps:{innerHTML:t._s(t.taskDetail.p_name==s.name?"":"")}}),t._v(" "+t._s(s.name)+" ")])}),1)],1)],1)])]):t._e(),t.getOwner.length>0?e("FormItem",[e("div",{staticClass:"item-label",attrs:{slot:"label"},slot:"label"},[e("i",{staticClass:"taskfont"},[t._v("\uE6E4")]),t._v(t._s(t.$L("\u8D1F\u8D23\u4EBA"))+" ")]),e("Poptip",{ref:"owner",staticClass:"item-content user",attrs:{title:t.$L("\u4FEE\u6539\u8D1F\u8D23\u4EBA"),width:240,"popper-class":"task-detail-user-popper",placement:"bottom",transfer:""},on:{"on-popper-show":t.openOwner,"on-ok":t.onOwner}},[e("div",{attrs:{slot:"content"},slot:"content"},[e("UserInput",{attrs:{"multiple-max":10,"project-id":t.taskDetail.project_id,placeholder:t.$L("\u9009\u62E9\u4EFB\u52A1\u8D1F\u8D23\u4EBA"),transfer:!1},model:{value:t.ownerData.owner_userid,callback:function(s){t.$set(t.ownerData,"owner_userid",s)},expression:"ownerData.owner_userid"}}),e("div",{staticClass:"task-detail-avatar-buttons"},[e("Button",{attrs:{size:"small",type:"primary"},on:{click:function(s){return t.$refs.owner.ok()}}},[t._v(t._s(t.$L("\u786E\u5B9A")))])],1)],1),e("div",{staticClass:"user-list"},t._l(t.getOwner,function(s){return e("UserAvatar",{key:s.userid,attrs:{userid:s.userid,size:28,showName:t.getOwner.length===1,tooltipDisabled:""}})}),1)])],1):t._e(),t.getAssist.length>0||t.assistForce?e("FormItem",[e("div",{staticClass:"item-label",attrs:{slot:"label"},slot:"label"},[e("i",{staticClass:"taskfont"},[t._v("\uE63F")]),t._v(t._s(t.$L("\u534F\u52A9\u4EBA\u5458"))+" ")]),e("Poptip",{ref:"assist",staticClass:"item-content user",attrs:{title:t.$L(t.getAssist.length>0?"\u4FEE\u6539\u534F\u52A9\u4EBA\u5458":"\u6DFB\u52A0\u534F\u52A9\u4EBA\u5458"),width:280,"popper-class":"task-detail-user-popper",placement:"bottom",transfer:""},on:{"on-popper-show":t.openAssist,"on-ok":t.onAssist}},[e("div",{attrs:{slot:"content"},slot:"content"},[e("UserInput",{attrs:{"multiple-max":10,"project-id":t.taskDetail.project_id,"disabled-choice":t.assistData.disabled,placeholder:t.$L("\u9009\u62E9\u4EFB\u52A1\u534F\u52A9\u4EBA\u5458"),transfer:!1},model:{value:t.assistData.assist_userid,callback:function(s){t.$set(t.assistData,"assist_userid",s)},expression:"assistData.assist_userid"}}),e("div",{staticClass:"task-detail-avatar-buttons"},[e("Button",{attrs:{size:"small",type:"primary"},on:{click:function(s){return t.$refs.assist.ok()}}},[t._v(t._s(t.$L("\u786E\u5B9A")))])],1)],1),t.getAssist.length>0?e("div",{staticClass:"user-list"},t._l(t.getAssist,function(s){return e("UserAvatar",{key:s.userid,attrs:{userid:s.userid,size:28,showName:t.getAssist.length===1,tooltipDisabled:""}})}),1):e("div",[t._v("--")])])],1):t._e(),t.taskDetail.end_at||t.timeForce?e("FormItem",[e("div",{staticClass:"item-label",attrs:{slot:"label"},slot:"label"},[e("i",{staticClass:"taskfont"},[t._v("\uE6E8")]),t._v(t._s(t.$L("\u622A\u6B62\u65F6\u95F4"))+" ")]),e("ul",{staticClass:"item-content"},[e("li",[e("DatePicker",{attrs:{open:t.timeOpen,options:t.timeOptions,format:"yyyy/MM/dd HH:mm",type:"datetimerange",transfer:""},on:{"on-open-change":t.timeChange,"on-clear":t.timeClear,"on-ok":t.timeOk},model:{value:t.timeValue,callback:function(s){t.timeValue=s},expression:"timeValue"}},[e("div",{staticClass:"picker-time"},[e("div",{staticClass:"time",on:{click:t.openTime}},[t._v(t._s(t.taskDetail.end_at?t.cutTime:"--"))]),!t.taskDetail.complete_at&&t.taskDetail.end_at?[t.within24Hours(t.taskDetail.end_at)?e("Tag",{attrs:{color:"blue"}},[e("i",{staticClass:"taskfont"},[t._v("\uE71D")]),t._v(t._s(t.expiresFormat(t.taskDetail.end_at)))]):t._e(),t.isOverdue(t.taskDetail)?e("Tag",{attrs:{color:"red"}},[t._v(t._s(t.$L("\u8D85\u671F\u672A\u5B8C\u6210")))]):t._e()]:t._e()],2)])],1)])]):t._e(),t.taskDetail.loop&&t.taskDetail.loop!="never"||t.loopForce?e("FormItem",[e("div",{staticClass:"item-label",attrs:{slot:"label"},slot:"label"},[e("i",{staticClass:"taskfont"},[t._v("\uE93F")]),t._v(t._s(t.$L("\u91CD\u590D\u5468\u671F"))+" ")]),e("ul",{staticClass:"item-content"},[e("li",[e("EDropdown",{ref:"loop",attrs:{trigger:"click",placement:"bottom"},on:{command:function(s){return t.updateData("loop",s)}}},[e("ETooltip",{attrs:{disabled:t.windowSmall||t.$isEEUiApp||!t.taskDetail.loop_at,content:`${t.$L("\u4E0B\u4E2A\u5468\u671F")}: ${t.taskDetail.loop_at}`,placement:"right"}},[e("span",[t._v(t._s(t.$L(t.loopLabel(t.taskDetail.loop))))])]),e("EDropdownMenu",{staticClass:"task-detail-loop",attrs:{slot:"dropdown"},slot:"dropdown"},t._l(t.loops,function(s){return e("EDropdownItem",{key:s.key,attrs:{command:s.key}},[t._v(" "+t._s(t.$L(s.label))+" ")])}),1)],1)],1)])]):t._e(),t.fileList.length>0?e("FormItem",[e("div",{staticClass:"item-label",attrs:{slot:"label"},slot:"label"},[e("i",{staticClass:"taskfont"},[t._v("\uE6E6")]),t._v(t._s(t.$L("\u9644\u4EF6"))+" ")]),e("ul",{staticClass:"item-content file"},[t.taskDetail.file_num>50?e("li",{staticClass:"tip"},[t._v(t._s(t.$L(`\u5171${t.taskDetail.file_num}\u4E2A\u6587\u4EF6\uFF0C\u4EC5\u663E\u793A\u6700\u65B050\u4E2A`)))]):t._e(),t._l(t.fileList,function(s){return e("li",[s.id?e("img",{staticClass:"file-ext",attrs:{src:s.thumb}}):e("Loading",{staticClass:"file-load"}),e("div",{staticClass:"file-name"},[t._v(t._s(s.name))]),e("div",{staticClass:"file-size"},[t._v(t._s(t.$A.bytesToSize(s.size)))]),e("div",{staticClass:"file-menu",class:{show:s._show_menu}},[e("Icon",{attrs:{type:"md-eye"},on:{click:function(i){return t.viewFile(s)}}}),e("Icon",{attrs:{type:"md-arrow-round-down"},on:{click:function(i){return t.downFile(s)}}}),e("EPopover",{staticClass:"file-delete",model:{value:s._show_menu,callback:function(i){t.$set(s,"_show_menu",i)},expression:"file._show_menu"}},[e("div",{staticClass:"task-detail-delete-file-popover"},[e("p",[t._v(t._s(t.$L("\u4F60\u786E\u5B9A\u8981\u5220\u9664\u8FD9\u4E2A\u6587\u4EF6\u5417\uFF1F")))]),e("div",{staticClass:"buttons"},[e("Button",{attrs:{size:"small",type:"text"},on:{click:function(i){s._show_menu=!1}}},[t._v(t._s(t.$L("\u53D6\u6D88")))]),e("Button",{attrs:{size:"small",type:"primary"},on:{click:function(i){return t.deleteFile(s)}}},[t._v(t._s(t.$L("\u786E\u5B9A")))])],1)]),e("i",{staticClass:"taskfont del",attrs:{slot:"reference"},slot:"reference"},[t._v("\uE6EA")])])],1)],1)})],2),e("ul",{staticClass:"item-content"},[e("li",[e("div",{staticClass:"add-button",on:{click:function(s){return t.onUploadClick(!0)}}},[e("i",{staticClass:"taskfont"},[t._v("\uE6F2")]),t._v(t._s(t.$L("\u6DFB\u52A0\u9644\u4EF6"))+" ")])])])]):t._e(),t.subList.length>0||t.addsubForce?e("FormItem",[e("div",{staticClass:"item-label",attrs:{slot:"label"},slot:"label"},[e("i",{staticClass:"taskfont"},[t._v("\uE6F0")]),t._v(t._s(t.$L("\u5B50\u4EFB\u52A1"))+" ")]),e("ul",{staticClass:"item-content subtask"},t._l(t.subList,function(s,i){return e("TaskDetail",{key:i,ref:`subTask_${s.id}`,refInFor:!0,attrs:{"task-id":s.id,"open-task":s,"main-end-at":t.taskDetail.end_at,"can-update-blur":t.canUpdateBlur}})}),1),e("ul",{class:["item-content",t.subList.length===0?"nosub":""]},[e("li",[t.addsubShow?e("Input",{ref:"addsub",staticClass:"add-input",class:{loading:t.addsubLoad>0},attrs:{placeholder:t.$L("+ \u8F93\u5165\u5B50\u4EFB\u52A1\uFF0C\u56DE\u8F66\u6DFB\u52A0\u5B50\u4EFB\u52A1"),icon:t.addsubLoad>0?"ios-loading":"",enterkeyhint:"done"},on:{"on-blur":t.addsubChackClose,"on-keydown":t.addsubKeydown},model:{value:t.addsubName,callback:function(s){t.addsubName=s},expression:"addsubName"}}):e("div",{staticClass:"add-button",on:{click:t.addsubOpen}},[e("i",{staticClass:"taskfont"},[t._v("\uE6F2")]),t._v(t._s(t.$L("\u6DFB\u52A0\u5B50\u4EFB\u52A1"))+" ")])],1)])]):t._e()],1),t.menuList.length>0?e("div",{staticClass:"add"},[e("EDropdown",{attrs:{trigger:"click",placement:"bottom"},on:{command:t.dropAdd}},[e("div",{staticClass:"add-button"},[e("i",{staticClass:"taskfont"},[t._v("\uE6F2")]),t._v(" "+t._s(t.$L("\u6DFB\u52A0"))+" "),e("em",[t._v(t._s(t.menuText))])]),e("EDropdownMenu",{attrs:{slot:"dropdown"},slot:"dropdown"},t._l(t.menuList,function(s,i){return e("EDropdownItem",{key:i,attrs:{command:s.command}},[e("div",{staticClass:"item"},[e("i",{staticClass:"taskfont",domProps:{innerHTML:t._s(s.icon)}}),t._v(t._s(t.$L(s.name))+" ")])])}),1)],1)],1):t._e()],1),e("TaskUpload",{ref:"upload",staticClass:"upload",on:{"on-select-file":t.onSelectFile}})],1),e("div",{directives:[{name:"show",rawName:"v-show",value:t.taskDetail.id>0,expression:"taskDetail.id > 0"}],staticClass:"task-dialog",style:t.dialogStyle},[t.hasOpenDialog?[t.taskId>0?e("DialogWrapper",{ref:"dialog",attrs:{"dialog-id":t.taskDetail.dialog_id}},[e("div",{staticClass:"head",attrs:{slot:"head"},slot:"head"},[e("Icon",{staticClass:"icon",attrs:{type:"ios-chatbubbles-outline"}}),e("div",{staticClass:"nav"},[e("p",{class:{active:t.navActive=="dialog"},on:{click:function(s){t.navActive="dialog"}}},[t._v(t._s(t.$L("\u804A\u5929")))]),e("p",{class:{active:t.navActive=="log"},on:{click:function(s){t.navActive="log"}}},[t._v(t._s(t.$L("\u52A8\u6001")))]),t.navActive=="log"?e("div",{staticClass:"refresh"},[t.logLoadIng?e("Loading"):e("Icon",{attrs:{type:"ios-refresh"},on:{click:t.getLogLists}})],1):t._e()])],1)]):t._e(),t.navActive=="log"&&t.taskId>0?e("ProjectLog",{ref:"log",attrs:{"task-id":t.taskDetail.id},on:{"on-load-change":t.logLoadChange}}):t._e()]:e("div",[e("div",{staticClass:"head"},[e("Icon",{staticClass:"icon",attrs:{type:"ios-chatbubbles-outline"}}),e("div",{staticClass:"nav"},[e("p",{class:{active:t.navActive=="dialog"},on:{click:function(s){t.navActive="dialog"}}},[t._v(t._s(t.$L("\u804A\u5929")))]),e("p",{class:{active:t.navActive=="log"},on:{click:function(s){t.navActive="log"}}},[t._v(t._s(t.$L("\u52A8\u6001")))]),t.navActive=="log"?e("div",{staticClass:"refresh"},[t.logLoadIng?e("Loading"):e("Icon",{attrs:{type:"ios-refresh"},on:{click:t.getLogLists}})],1):t._e()]),e("div",{staticClass:"menu"},[t.navActive=="dialog"&&t.taskDetail.msg_num>0?e("div",{staticClass:"menu-item",on:{click:function(s){return s.stopPropagation(),t.onSend("open")}}},[t.openLoad>0?e("div",{staticClass:"menu-load"},[e("Loading")],1):t._e(),t._v(" "+t._s(t.$L("\u4EFB\u52A1\u804A\u5929"))+" "),e("em",[t._v("("+t._s(t.taskDetail.msg_num>999?"999+":t.taskDetail.msg_num)+")")]),e("i",{staticClass:"taskfont"},[t._v("\uE703")])]):t._e()])],1),t.navActive=="log"&&t.taskId>0?e("ProjectLog",{ref:"log",attrs:{"task-id":t.taskDetail.id,"show-load":!1},on:{"on-load-change":t.logLoadChange}}):e("div",{staticClass:"no-dialog",on:{drop:function(s){return s.preventDefault(),t.taskPasteDrag(s,"drag")},dragover:function(s){return s.preventDefault(),t.taskDragOver(!0,s)},dragleave:function(s){return s.preventDefault(),t.taskDragOver(!1,s)}}},[e("div",{staticClass:"no-tip"},[t._v(t._s(t.$L("\u6682\u65E0\u6D88\u606F")))]),e("div",{staticClass:"no-input"},[e("ChatInput",{ref:"chatInput",attrs:{"task-id":t.taskId,loading:t.sendLoad>0,maxlength:2e5,placeholder:t.$L("\u8F93\u5165\u6D88\u606F...")},on:{"on-more":t.onEventMore,"on-file":t.onSelectFile,"on-record":t.onRecord,"on-send":t.onSend},model:{value:t.msgText,callback:function(s){t.msgText=s},expression:"msgText"}})],1),t.dialogDrag?e("div",{staticClass:"drag-over",on:{click:function(s){t.dialogDrag=!1}}},[e("div",{staticClass:"drag-text"},[t._v(t._s(t.$L("\u62D6\u52A8\u5230\u8FD9\u91CC\u53D1\u9001")))])]):t._e()])],1)],2),t.taskDetail.id?t._e():e("div",{staticClass:"task-load"},[e("Loading")],1)]):t._e()},L=[];const x={name:"TaskDetail",components:{ChatInput:k,TaskMenu:_,ProjectLog:m,DialogWrapper:g,TaskUpload:y,UserInput:f,TaskPriority:p,TEditor:h},props:{taskId:{type:Number,default:0},openTask:{type:Object,default:()=>({})},mainEndAt:{default:null},canUpdateBlur:{type:Boolean,default:!0},modalMode:{type:Boolean,default:!1}},data(){return{ready:!1,taskDetail:{},ownerData:{},ownerLoad:0,receiveShow:!1,assistForce:!1,assistData:{},assistLoad:0,addsubForce:!1,addsubShow:!1,addsubName:"",addsubLoad:0,timeForce:!1,timeOpen:!1,timeValue:[],timeOptions:{shortcuts:$A.timeOptionShortcuts()},loopForce:!1,nowTime:$A.Time(),nowInterval:null,msgText:"",msgFile:[],msgRecord:{},navActive:"dialog",logLoadIng:!1,sendLoad:0,openLoad:0,taskPlugins:["advlist autolink lists link image charmap print preview hr anchor pagebreak","searchreplace visualblocks visualchars code","insertdatetime media nonbreaking save table directionality","emoticons paste codesample","autoresize"],taskOptions:{statusbar:!1,menubar:!1,autoresize_bottom_margin:2,min_height:200,max_height:380,contextmenu:"bold italic underline forecolor backcolor | codesample | uploadImages imagePreview | preview screenload",valid_elements:"a[href|target=_blank],em,strong/b,div[align],span[style],a,br,p,img[src|alt|witdh|height],pre[class],code",toolbar:!1},taskOptionFull:{menubar:"file edit view",valid_elements:"a[href|target=_blank],em,strong/b,div[align],span[style],a,br,p,img[src|alt|witdh|height],pre[class],code",toolbar:"uploadImages | bold italic underline forecolor backcolor | codesample | preview screenload"},dialogDrag:!1,imageAttachment:!0,receiveTaskSubscribe:null,loops:[{key:"never",label:"\u4ECE\u4E0D"},{key:"day",label:"\u6BCF\u5929"},{key:"weekdays",label:"\u6BCF\u4E2A\u5DE5\u4F5C\u65E5"},{key:"week",label:"\u6BCF\u5468"},{key:"twoweeks",label:"\u6BCF\u4E24\u5468"},{key:"month",label:"\u6BCF\u6708"},{key:"year",label:"\u6BCF\u5E74"},{key:"custom",label:"\u81EA\u5B9A\u4E49"}]}},created(){const t=$A.getObject(this.$route.query,"navActive");["dialog","log"].includes(t)&&(this.navActive=t)},mounted(){this.nowInterval=setInterval(()=>{this.nowTime=$A.Time()},1e3),this.receiveTaskSubscribe=c.Store.subscribe("receiveTask",()=>{this.receiveShow=!0})},destroyed(){clearInterval(this.nowInterval),this.receiveTaskSubscribe&&(this.receiveTaskSubscribe.unsubscribe(),this.receiveTaskSubscribe=null)},computed:{...u(["cacheProjects","cacheColumns","cacheTasks","taskContents","taskFiles","taskPriority","dialogId"]),projectName(){if(!this.taskDetail.project_id)return"";if(this.taskDetail.project_name)return this.taskDetail.project_name;const t=this.cacheProjects.find(({id:a})=>a==this.taskDetail.project_id);return t?t.name:""},columnName(){if(!this.taskDetail.column_id)return"";if(this.taskDetail.column_name)return this.taskDetail.column_name;const t=this.cacheColumns.find(({id:a})=>a==this.taskDetail.column_id);return t?t.name:""},taskContent(){if(!this.taskId)return"";let t=this.taskContents.find(({task_id:a})=>a==this.taskId);return t?t.content:""},fileList(){return this.taskId?this.taskFiles.filter(({task_id:t})=>t==this.taskId).sort((t,a)=>a.id-t.id):[]},subList(){return this.taskId?this.cacheTasks.filter(t=>t.parent_id==this.taskId).sort((t,a)=>t.id-a.id):[]},hasOpenDialog(){return this.taskDetail.dialog_id>0&&this.windowLarge},dialogStyle(){const{windowHeight:t,hasOpenDialog:a}=this,e=Math.min(1100,t);if(!e)return{};if(!a)return{};const s=e>900?200:70;return{minHeight:e-s-48+"px"}},taskDetailStyle(){const{modalMode:t,windowHeight:a,hasOpenDialog:e}=this,s=Math.min(1100,a);if(t&&e){const i=s>900?200:70;return{maxHeight:s-i-30+"px"}}return{}},cutTime(){const{taskDetail:t}=this;let a=$A.Date(t.start_at,!0),e=$A.Date(t.end_at,!0),s="";return $A.formatDate("Y/m/d",a)==$A.formatDate("Y/m/d",e)?s=$A.formatDate("Y/m/d H:i",a)+" ~ "+$A.formatDate("H:i",e):$A.formatDate("Y",a)==$A.formatDate("Y",e)?(s=$A.formatDate("Y/m/d H:i",a)+" ~ "+$A.formatDate("m/d H:i",e),s=s.replace(/( 00:00| 23:59)/g,"")):(s=$A.formatDate("Y/m/d H:i",a)+" ~ "+$A.formatDate("Y/m/d H:i",e),s=s.replace(/( 00:00| 23:59)/g,"")),s},getOwner(){const{taskDetail:t}=this;return $A.isArray(t.task_user)?t.task_user.filter(({owner:a})=>a===1).sort((a,e)=>a.id-e.id):[]},getAssist(){const{taskDetail:t}=this;return $A.isArray(t.task_user)?t.task_user.filter(({owner:a})=>a!==1).sort((a,e)=>a.id-e.id):[]},menuList(){const{taskDetail:t}=this,a=[];return t.p_name||a.push({command:"priority",icon:"",name:"\u4F18\u5148\u7EA7"}),$A.isArray(t.task_user)&&t.task_user.find(({owner:e})=>e!==1)||a.push({command:"assist",icon:"",name:"\u534F\u52A9\u4EBA\u5458"}),t.end_at||a.push({command:"times",icon:"",name:"\u622A\u6B62\u65F6\u95F4"}),(!t.loop||t.loop=="never")&&a.push({command:"loop",icon:"",name:"\u91CD\u590D\u5468\u671F"}),this.fileList.length==0&&a.push({command:"file",icon:"",name:"\u9644\u4EF6"}),this.subList.length==0&&a.push({command:"subtask",icon:"",name:"\u5B50\u4EFB\u52A1"}),a},menuText(){const{menuList:t}=this;let a="";return t.length>0&&t.forEach((e,s)=>{s>0&&(a+=" / "),a+=this.$L(e.name)}),a}},watch:{openTask:{handler(t){this.taskDetail=$A.cloneJSON(t),this.__openTask&&clearTimeout(this.__openTask),this.__openTask=setTimeout(a=>{var e;return(e=this.$refs.name)==null?void 0:e.resizeTextarea()},100)},immediate:!0,deep:!0},taskId:{handler(t){t>0?this.ready=!0:(this.windowSmall&&$A.onBlur(),this.timeOpen=!1,this.timeForce=!1,this.loopForce=!1,this.assistForce=!1,this.addsubForce=!1,this.receiveShow=!1,this.$refs.owner&&this.$refs.owner.handleClose(),this.$refs.assist&&this.$refs.assist.handleClose(),this.$refs.chatInput&&this.$refs.chatInput.hidePopover())},immediate:!0},receiveShow(t){t&&(this.timeValue=this.taskDetail.end_at?[this.taskDetail.start_at,this.taskDetail.end_at]:[])}},methods:{within24Hours(t){return $A.Date(t,!0)-this.nowTime<86400},expiresFormat(t){return $A.countDownFormat(t,this.nowTime)},isOverdue(t){return t.overdue?!0:$A.Date(t.end_at,!0)e.key===t);return a?a.label:t?`\u6BCF${t}\u5929`:"\u4ECE\u4E0D"},onNameKeydown(t){t.keyCode===13&&(t.shiftKey||(t.preventDefault(),this.updateData("name")))},checkUpdate(t){let a=!1;if(this.openTask.name!=this.taskDetail.name)if(a=!0,t===!0)this.updateData("name");else return t===!1&&this.$refs.name.focus(),!0;if(this.$refs.desc&&this.$refs.desc.getContent()!=this.taskContent)if(a=!0,t===!0)this.updateData("content");else return t===!1&&this.$refs.desc.focus(),!0;if(this.addsubShow&&this.addsubName)if(a=!0,t===!0)this.onAddsub();else return t===!1&&this.$refs.addsub.focus(),!0;return this.subList.some(({id:e})=>{this.$refs[`subTask_${e}`][0].checkUpdate(t)&&(a=!0)}),a},updateBlur(t,a){this.canUpdateBlur&&this.updateData(t,a)},updateData(t,a){let e=null;switch(t){case"priority":this.$set(this.taskDetail,"p_level",a.priority),this.$set(this.taskDetail,"p_name",a.name),this.$set(this.taskDetail,"p_color",a.color),t=["p_level","p_name","p_color"];break;case"times":if(this.taskDetail.start_at&&(Math.abs($A.Time(this.taskDetail.start_at)-$A.Time(a.start_at))>60||Math.abs($A.Time(this.taskDetail.end_at)-$A.Time(a.end_at))>60)&&typeof a.desc=="undefined"){$A.modalInput({title:"\u4FEE\u6539\u4EFB\u52A1\u65F6\u95F4",placeholder:"\u8BF7\u8F93\u5165\u4FEE\u6539\u5907\u6CE8",okText:"\u786E\u5B9A",onOk:o=>o?(this.updateData("times",Object.assign(a,{desc:o})),!1):"\u8BF7\u8F93\u5165\u4FEE\u6539\u5907\u6CE8"});return}this.$set(this.taskDetail,"times",[a.start_at,a.end_at,a.desc]);break;case"loop":if(a==="custom"){this.customLoop();return}this.$set(this.taskDetail,"loop",a);break;case"content":const i=this.$refs.desc.getContent();if(i==this.taskContent)return;this.$set(this.taskDetail,"content",i),e=()=>{this.$store.dispatch("saveTaskContent",{task_id:this.taskId,content:i})};break}let s={task_id:this.taskDetail.id};($A.isArray(t)?t:[t]).forEach(i=>{let o=this.taskDetail[i],d=this.openTask[i];$A.jsonStringify(o)!=$A.jsonStringify(d)&&(s[i]=o)}),!(Object.keys(s).length<=1)&&this.$store.dispatch("taskUpdate",s).then(({msg:i})=>{$A.messageSuccess(i),typeof e=="function"&&e()}).catch(({msg:i})=>{$A.modalError(i)})},customLoop(){let t=this.taskDetail.loop||1;$A.Modal.confirm({render:a=>a("div",[a("div",{style:{fontSize:"16px",fontWeight:"500",marginBottom:"20px"}},this.$L("\u91CD\u590D\u5468\u671F")),a("Input",{style:{width:"160px",margin:"0 auto"},props:{type:"number",value:t,maxlength:3},on:{input:e=>{t=$.runNum(e)}}},[a("span",{slot:"prepend"},this.$L("\u6BCF")),a("span",{slot:"append"},this.$L("\u5929"))])]),onOk:a=>{this.$Modal.remove(),t>0&&this.updateData("loop",t)},loading:!0,okText:this.$L("\u786E\u5B9A"),cancelText:this.$L("\u53D6\u6D88")})},openOwner(){const t=this.getOwner.map(({userid:a})=>a);this.$set(this.taskDetail,"owner_userid",t),this.$set(this.ownerData,"owner_userid",t)},onOwner(t){let a={task_id:this.taskDetail.id,owner:this.ownerData.owner_userid};if(t===!0){if(this.getOwner.length>0){this.receiveShow=!1,$A.messageError("\u4EFB\u52A1\u5DF2\u88AB\u9886\u53D6");return}let e=$A.date2string(this.timeValue,"Y-m-d H:i");if(e[0]&&e[1])$A.rightExists(e[0],"00:00")&&$A.rightExists(e[1],"00:00")&&(e[1]=e[1].replace("00:00","23:59"));else{$A.messageError("\u8BF7\u8BBE\u7F6E\u8BA1\u5212\u65F6\u95F4");return}a.times=e,a.owner=this.ownerData.owner_userid=[this.userId]}$A.jsonStringify(this.taskDetail.owner_userid)!==$A.jsonStringify(this.ownerData.owner_userid)&&($A.count(a.owner)==0&&(a.owner=""),this.ownerLoad++,this.$store.dispatch("taskUpdate",a).then(({msg:e})=>{$A.messageSuccess(e),this.ownerLoad--,this.receiveShow=!1,this.$store.dispatch("getTaskOne",this.taskDetail.id).catch(()=>{})}).catch(({msg:e})=>{$A.modalError(e),this.ownerLoad--,this.receiveShow=!1}))},openAssist(){const t=this.getAssist.map(({userid:a})=>a);this.$set(this.taskDetail,"assist_userid",t),this.$set(this.assistData,"assist_userid",t),this.$set(this.assistData,"disabled",this.getOwner.map(({userid:a})=>a).filter(a=>a!=this.userId))},onAssist(){if($A.jsonStringify(this.taskDetail.assist_userid)!==$A.jsonStringify(this.assistData.assist_userid)){if(this.getOwner.find(({userid:t})=>t===this.userId)&&this.assistData.assist_userid.find(t=>t===this.userId)){$A.modalConfirm({content:"\u4F60\u5F53\u524D\u662F\u8D1F\u8D23\u4EBA\uFF0C\u786E\u5B9A\u8981\u8F6C\u4E3A\u534F\u52A9\u4EBA\u5458\u5417\uFF1F",cancelText:"\u53D6\u6D88",okText:"\u786E\u5B9A",onOk:()=>{this.onAssistConfirm()}});return}this.onAssistConfirm()}},onAssistConfirm(){let t=this.assistData.assist_userid;t.length===0&&(t=!1),this.assistLoad++,this.$store.dispatch("taskUpdate",{task_id:this.taskDetail.id,assist:t}).then(({msg:a})=>{$A.messageSuccess(a),this.assistLoad--,this.$store.dispatch("getTaskOne",this.taskDetail.id).catch(()=>{})}).catch(({msg:a})=>{$A.modalError(a),this.assistLoad--})},openTime(){this.timeOpen=!this.timeOpen,this.timeOpen&&(this.timeValue=this.taskDetail.end_at?[this.taskDetail.start_at,this.taskDetail.end_at]:[])},timeChange(t){t||(this.timeOpen=!1)},timeClear(){this.updateData("times",{start_at:!1,end_at:!1}),this.timeOpen=!1},timeOk(){let t=$A.date2string(this.timeValue,"Y-m-d H:i");t[0]&&t[1]&&$A.rightExists(t[0],"00:00")&&$A.rightExists(t[1],"00:00")&&(t[1]=t[1].replace("00:00","23:59")),this.updateData("times",{start_at:t[0],end_at:t[1]}),this.timeOpen=!1},addsubOpen(){this.addsubShow=!0,this.$nextTick(()=>{this.$refs.addsub.focus()})},addsubChackClose(){this.addsubName==""&&(this.addsubShow=!1)},addsubKeydown(t){if(t.keyCode===13){if(t.shiftKey||this.addsubLoad>0)return;t.preventDefault(),this.onAddsub()}},onAddsub(){if(this.addsubName==""){$A.messageError("\u4EFB\u52A1\u63CF\u8FF0\u4E0D\u80FD\u4E3A\u7A7A");return}this.addsubLoad++,this.$store.dispatch("taskAddSub",{task_id:this.taskDetail.id,name:this.addsubName}).then(({msg:t})=>{$A.messageSuccess(t),this.addsubLoad--,this.addsubName=""}).catch(({msg:t})=>{$A.modalError(t),this.addsubLoad--})},getLogLists(){this.navActive=="log"&&this.$refs.log.getLists(!0)},logLoadChange(t){this.logLoadIng=t},dropAdd(t){switch(t){case"priority":this.$set(this.taskDetail,"p_name",this.$L("\u672A\u8BBE\u7F6E")),this.$nextTick(()=>{this.$refs.priority.show()});break;case"assist":this.assistForce=!0,this.openAssist(),this.$nextTick(()=>{this.$refs.assist.handleClick()});break;case"times":this.timeForce=!0,this.$nextTick(()=>{this.openTime()});break;case"loop":this.loopForce=!0,this.$nextTick(()=>{this.$refs.loop.show()});break;case"file":this.onUploadClick(!0);break;case"subtask":this.addsubForce=!0,this.$nextTick(()=>{this.addsubOpen()});break}},onEventMore(t){["image","file"].includes(t)&&this.onUploadClick(!1)},onUploadClick(t){this.imageAttachment=!!t,this.$refs.upload.handleClick()},msgDialog(t=null,a=!1){this.sendLoad>0||this.openLoad>0||(a===!0?this.openLoad++:this.sendLoad++,this.$store.dispatch("call",{url:"project/task/dialog",data:{task_id:this.taskDetail.id}}).then(({data:e})=>{this.$store.dispatch("saveTask",{id:e.id,dialog_id:e.dialog_id}),this.$store.dispatch("saveDialog",e.dialog_data),$A.isSubElectron?this.resizeDialog().then(()=>{this.sendDialogMsg(t)}):this.$nextTick(()=>{if(this.windowSmall){$A.onBlur();const s={time:$A.Time()+10,msgRecord:this.msgRecord,msgFile:this.msgFile,msgText:typeof t=="string"&&t?t:this.msgText,dialogId:e.dialog_id};this.msgRecord={},this.msgFile=[],this.msgText="",this.$nextTick(i=>{this.dialogId>0&&this.$store.dispatch("openTask",0),this.$store.dispatch("openDialog",e.dialog_id).then(o=>{this.$store.state.dialogMsgTransfer=s})})}else this.sendDialogMsg(t)})}).catch(({msg:e})=>{$A.modalError(e)}).finally(e=>{a===!0?this.openLoad--:this.sendLoad--}))},sendDialogMsg(t=null){this.msgFile.length>0?this.$refs.dialog.sendFileMsg(this.msgFile.map(a=>Object.assign(a,{ajaxExtraData:{image_attachment:this.imageAttachment?1:0}}))):this.msgText?this.$refs.dialog.sendMsg(this.msgText):typeof t=="string"&&t&&this.$refs.dialog.sendMsg(t),this.msgFile=[],this.msgText=""},taskPasteDrag(t,a){this.dialogDrag=!1;const e=a==="drag"?t.dataTransfer.files:t.clipboardData.files;this.msgFile=Array.prototype.slice.call(e),this.msgFile.length>0&&(t.preventDefault(),this.msgDialog())},taskDragOver(t,a){let e=this.__dialogDrag=$A.randomString(8);if(!t)setTimeout(()=>{e===this.__dialogDrag&&(this.dialogDrag=t)},150);else{if(a.dataTransfer.effectAllowed==="move")return;this.dialogDrag=!0}},onSelectFile(t){this.msgFile=$A.isArray(t)?t:[t],this.msgDialog()},onRecord(t){this.msgRecord=t,this.msgDialog()},onSend(t){this.$refs.chatInput&&this.$refs.chatInput.hidePopover(),t==="open"?this.msgDialog(null,!0):this.msgDialog(t)},deleteFile(t){this.$set(t,"_show_menu",!1),this.$store.dispatch("forgetTaskFile",t.id),this.$store.dispatch("call",{url:"project/task/filedelete",data:{file_id:t.id}}).catch(({msg:a})=>{$A.modalError(a),this.$store.dispatch("getTaskFiles",this.taskDetail.id)})},openMenu(t,a){const e=this.$refs[`taskMenu_${a.id}`];e&&e.handleClick(t)},openNewWin(){let t={title:this.taskDetail.name,titleFixed:!0,parent:null,width:Math.min(window.screen.availWidth,this.$el.clientWidth+72),height:Math.min(window.screen.availHeight,this.$el.clientHeight+72),minWidth:600,minHeight:450};this.hasOpenDialog&&(t.minWidth=800,t.minHeight=600),this.$Electron.sendMessage("windowRouter",{name:`task-${this.taskDetail.id}`,path:`/single/task/${this.taskDetail.id}?navActive=${this.navActive}`,force:!1,config:t}),this.$store.dispatch("openTask",0)},resizeDialog(){return new Promise(t=>{this.$Electron.sendMessage("windowSize",{width:Math.max(1100,this.windowWidth),height:Math.max(720,this.windowHeight),minWidth:800,minHeight:600,autoZoom:!0});let a=0,e=setInterval(()=>{a++,(this.$refs.dialog||a>20)&&(clearInterval(e),this.$refs.dialog&&t())},100)})},viewFile(t){if(["jpg","jpeg","webp","gif","png"].includes(t.ext)){const e=this.fileList.filter(i=>["jpg","jpeg","webp","gif","png"].includes(i.ext)),s=e.findIndex(i=>i.id===t.id);s>-1?this.$store.dispatch("previewImage",{index:s,list:e.map(i=>({src:i.path,width:i.width,height:i.height}))}):this.$store.dispatch("previewImage",{index:0,list:[{src:t.path,width:t.width,height:t.height}]});return}const a=`/single/file/task/${t.id}`;this.$Electron?this.$Electron.sendMessage("windowRouter",{name:`file-task-${t.id}`,path:a,userAgent:"/hideenOfficeTitle/",force:!1,config:{title:`${t.name} (${$A.bytesToSize(t.size)})`,titleFixed:!0,parent:null,width:Math.min(window.screen.availWidth,1440),height:Math.min(window.screen.availHeight,900)},webPreferences:{nodeIntegrationInSubFrames:t.ext==="drawio"}}):this.$isEEUiApp?$A.eeuiAppOpenPage({pageType:"app",pageTitle:`${t.name} (${$A.bytesToSize(t.size)})`,url:"web.js",params:{titleFixed:!0,allowAccess:!0,url:$A.rightDelete(window.location.href,window.location.hash)+`#${a}`}}):window.open($A.apiUrl(`..${a}`))},downFile(t){$A.modalConfirm({title:"\u4E0B\u8F7D\u6587\u4EF6",content:`${t.name} (${$A.bytesToSize(t.size)})`,okText:"\u7ACB\u5373\u4E0B\u8F7D",onOk:()=>{this.$store.dispatch("downUrl",$A.apiUrl(`project/task/filedown?file_id=${t.id}`))}})}}},l={};var T=r(x,A,L,!1,I,null,null,null);function I(t){for(let a in l)this[a]=l[a]}var z=function(){return T.exports}();export{z as T}; diff --git a/public/js/build/TaskMenu.1bac226b.js b/public/js/build/TaskMenu.718b8e6d.js similarity index 96% rename from public/js/build/TaskMenu.1bac226b.js rename to public/js/build/TaskMenu.718b8e6d.js index 1567096e4..5b556521a 100644 --- a/public/js/build/TaskMenu.1bac226b.js +++ b/public/js/build/TaskMenu.718b8e6d.js @@ -1 +1 @@ -import{m as i,c as n,n as l}from"./app.7a29bd84.js";var r=function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",{staticClass:"task-menu-icon",on:{click:t.handleClick}},[t.loadIng?e("div",{staticClass:"loading"},[e("Loading")],1):[t.task.complete_at?e("Icon",{staticClass:"completed",attrs:{type:t.completedIcon}}):e("Icon",{staticClass:"uncomplete",attrs:{type:t.icon}})]],2)},c=[];const d={name:"TaskMenu",props:{task:{type:Object,default:()=>({})},loadStatus:{type:Boolean,default:!1},colorShow:{type:Boolean,default:!0},updateBefore:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},size:{type:String,default:"small"},icon:{type:String,default:"md-radio-button-off"},completedIcon:{type:String,default:"md-checkmark-circle"}},computed:{...i(["loads","taskFlows"]),...n(["isLoad"]),loadIng(){return this.loadStatus?!0:this.isLoad(`task-${this.task.id}`)}},methods:{handleClick(t){this.$store.state.taskOperation={event:t,task:this.task,loadStatus:this.loadStatus,colorShow:this.colorShow,updateBefore:this.updateBefore,disabled:this.disabled,size:this.size,onUpdate:s=>{this.$emit("on-update",s)}}},updateTask(t){if(this.loadIng)return;Object.keys(t).forEach(e=>this.$set(this.task,e,t[e]));const s=Object.assign(t,{task_id:this.task.id});this.$store.dispatch("taskUpdate",s).then(({data:e,msg:o})=>{$A.messageSuccess(o),this.$store.dispatch("saveTaskBrowse",s.task_id),this.$emit("on-update",e)}).catch(({msg:e})=>{$A.modalError(e),this.$store.dispatch("getTaskOne",s.task_id).catch(()=>{})})}}},a={};var u=l(d,r,c,!1,p,null,null,null);function p(t){for(let s in a)this[s]=a[s]}var m=function(){return u.exports}();export{m as T}; +import{m as i,c as n,n as l}from"./app.aaf5ae6f.js";var r=function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",{staticClass:"task-menu-icon",on:{click:t.handleClick}},[t.loadIng?e("div",{staticClass:"loading"},[e("Loading")],1):[t.task.complete_at?e("Icon",{staticClass:"completed",attrs:{type:t.completedIcon}}):e("Icon",{staticClass:"uncomplete",attrs:{type:t.icon}})]],2)},c=[];const d={name:"TaskMenu",props:{task:{type:Object,default:()=>({})},loadStatus:{type:Boolean,default:!1},colorShow:{type:Boolean,default:!0},updateBefore:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},size:{type:String,default:"small"},icon:{type:String,default:"md-radio-button-off"},completedIcon:{type:String,default:"md-checkmark-circle"}},computed:{...i(["loads","taskFlows"]),...n(["isLoad"]),loadIng(){return this.loadStatus?!0:this.isLoad(`task-${this.task.id}`)}},methods:{handleClick(t){this.$store.state.taskOperation={event:t,task:this.task,loadStatus:this.loadStatus,colorShow:this.colorShow,updateBefore:this.updateBefore,disabled:this.disabled,size:this.size,onUpdate:s=>{this.$emit("on-update",s)}}},updateTask(t){if(this.loadIng)return;Object.keys(t).forEach(e=>this.$set(this.task,e,t[e]));const s=Object.assign(t,{task_id:this.task.id});this.$store.dispatch("taskUpdate",s).then(({data:e,msg:o})=>{$A.messageSuccess(o),this.$store.dispatch("saveTaskBrowse",s.task_id),this.$emit("on-update",e)}).catch(({msg:e})=>{$A.modalError(e),this.$store.dispatch("getTaskOne",s.task_id).catch(()=>{})})}}},a={};var u=l(d,r,c,!1,p,null,null,null);function p(t){for(let s in a)this[s]=a[s]}var m=function(){return u.exports}();export{m as T}; diff --git a/public/js/build/UpdateLog.0c7fc61f.js b/public/js/build/UpdateLog.1ec0a901.js similarity index 94% rename from public/js/build/UpdateLog.0c7fc61f.js rename to public/js/build/UpdateLog.1ec0a901.js index 00f6d7280..54f0c5d88 100644 --- a/public/js/build/UpdateLog.0c7fc61f.js +++ b/public/js/build/UpdateLog.1ec0a901.js @@ -1 +1 @@ -import{n as s,p as r}from"./app.7a29bd84.js";var u=function(){var t=this,o=t.$createElement,e=t._self._c||o;return e("Modal",{attrs:{fullscreen:t.uplogFull,"class-name":"update-log"},model:{value:t.uplogShow,callback:function(l){t.uplogShow=l},expression:"uplogShow"}},[e("div",{attrs:{slot:"header"},slot:"header"},[e("div",{staticClass:"uplog-head"},[e("div",{staticClass:"uplog-title"},[t._v(t._s(t.$L("\u66F4\u65B0\u65E5\u5FD7")))]),t.updateVer?e("Tag",{attrs:{color:"volcano"}},[t._v(t._s(t.updateVer))]):t._e()],1)]),e("MarkdownPreview",{staticClass:"uplog-body scrollbar-overlay",attrs:{initialValue:t.updateLog}}),e("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[e("Button",{attrs:{type:"default"},on:{click:function(l){t.uplogFull=!t.uplogFull}}},[t._v(t._s(t.$L(t.uplogFull?"\u7F29\u5C0F\u67E5\u770B":"\u5168\u5C4F\u67E5\u770B")))])],1)],1)},n=[];const p={name:"UpdateLog",components:{MarkdownPreview:r},props:{value:{type:Boolean,default:!1},updateVer:{},updateLog:{}},data(){return{uplogShow:!1,uplogFull:!1}},watch:{value:{handler(t){this.uplogShow=t},immediate:!0},uplogShow(t){this.$emit("input",t)}}},a={};var i=s(p,u,n,!1,c,null,null,null);function c(t){for(let o in a)this[o]=a[o]}var v=function(){return i.exports}();export{v as U}; +import{n as s,p as r}from"./app.aaf5ae6f.js";var u=function(){var t=this,o=t.$createElement,e=t._self._c||o;return e("Modal",{attrs:{fullscreen:t.uplogFull,"class-name":"update-log"},model:{value:t.uplogShow,callback:function(l){t.uplogShow=l},expression:"uplogShow"}},[e("div",{attrs:{slot:"header"},slot:"header"},[e("div",{staticClass:"uplog-head"},[e("div",{staticClass:"uplog-title"},[t._v(t._s(t.$L("\u66F4\u65B0\u65E5\u5FD7")))]),t.updateVer?e("Tag",{attrs:{color:"volcano"}},[t._v(t._s(t.updateVer))]):t._e()],1)]),e("MarkdownPreview",{staticClass:"uplog-body scrollbar-overlay",attrs:{initialValue:t.updateLog}}),e("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[e("Button",{attrs:{type:"default"},on:{click:function(l){t.uplogFull=!t.uplogFull}}},[t._v(t._s(t.$L(t.uplogFull?"\u7F29\u5C0F\u67E5\u770B":"\u5168\u5C4F\u67E5\u770B")))])],1)],1)},n=[];const p={name:"UpdateLog",components:{MarkdownPreview:r},props:{value:{type:Boolean,default:!1},updateVer:{},updateLog:{}},data(){return{uplogShow:!1,uplogFull:!1}},watch:{value:{handler(t){this.uplogShow=t},immediate:!0},uplogShow(t){this.$emit("input",t)}}},a={};var i=s(p,u,n,!1,c,null,null,null);function c(t){for(let o in a)this[o]=a[o]}var v=function(){return i.exports}();export{v as U}; diff --git a/public/js/build/UserInput.1a8a4094.js b/public/js/build/UserInput.d31ec6c9.js similarity index 98% rename from public/js/build/UserInput.1a8a4094.js rename to public/js/build/UserInput.d31ec6c9.js index da2fc6980..19ea6c1df 100644 --- a/public/js/build/UserInput.1a8a4094.js +++ b/public/js/build/UserInput.d31ec6c9.js @@ -1 +1 @@ -import{n as r,d as c}from"./app.7a29bd84.js";var u=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",{class:["common-user",e.maxHiddenClass]},[t("Select",{ref:"select",attrs:{transfer:e.transfer,placeholder:e.placeholder,size:e.size,loading:e.loadIng>0,"loading-text":e.$L("\u52A0\u8F7D\u4E2D..."),"default-label":e.value,"default-event-object":!0,"multiple-max":e.multipleMax,"multiple-uncancelable":e.uncancelable,"remote-method":e.remoteMethod,multiple:"",filterable:"","transfer-class-name":"common-user-transfer"},on:{"on-query-change":e.searchUser,"on-open-change":e.openChange},model:{value:e.selects,callback:function(i){e.selects=i},expression:"selects"}},[e.multipleMax?t("div",{staticClass:"user-drop-prepend",attrs:{slot:"drop-prepend"},slot:"drop-prepend"},[t("div",{staticClass:"user-drop-text"},[e._v(" "+e._s(e.$L("\u6700\u591A\u53EA\u80FD\u9009\u62E9"+e.multipleMax+"\u4E2A"))+" "),e.selects.length?t("em",[e._v("("+e._s(e.$L(`\u5DF2\u9009${e.selects.length}\u4E2A`))+")")]):e._e()]),t("Checkbox",{staticClass:"user-drop-check",on:{"on-change":e.onMultipleChange},model:{value:e.multipleCheck,callback:function(i){e.multipleCheck=i},expression:"multipleCheck"}})],1):e._e(),e._t("option-prepend"),e._l(e.list,function(i,l){return t("Option",{key:l,attrs:{value:i.userid,"key-value":`${i.email}|${i.pinyin}`,label:i.nickname,avatar:i.userimg,disabled:e.isDisabled(i.userid)}},[t("div",{staticClass:"user-input-option"},[t("div",{staticClass:"user-input-avatar"},[t("EAvatar",{staticClass:"avatar",attrs:{src:i.userimg}})],1),i.bot?t("div",{staticClass:"taskfont user-input-bot"},[e._v("\uE68C")]):e._e(),t("div",{staticClass:"user-input-nickname"},[e._v(e._s(i.nickname))]),t("div",{staticClass:"user-input-userid"},[e._v("ID: "+e._s(i.userid))])])])})],2),e.loadIng>0?t("div",{staticClass:"common-user-loading"},[t("Loading")],1):e._e()],1)},h=[];const o={name:"UserInput",props:{value:{type:[String,Number,Array],default:""},uncancelable:{type:Array,default:()=>[]},disabledChoice:{type:Array,default:()=>[]},placeholder:{default:""},size:{default:"default"},transfer:{type:Boolean,default:!0},multipleMax:{type:Number},maxHiddenInput:{type:Boolean,default:!0},maxHiddenSelect:{type:Boolean,default:!1},projectId:{type:Number,default:0},noProjectId:{type:Number,default:0},dialogId:{type:Number,default:0},showBot:{type:Boolean,default:!1}},data(){return{loadIng:0,selects:[],list:[],multipleCheck:!1,searchKey:null,searchHistory:[],subscribe:null}},mounted(){this.subscribe=c.Store.subscribe("cacheUserActive",e=>{let s=this.list.findIndex(({userid:t})=>t==e.userid);s>-1&&(this.$set(this.list,s,Object.assign({},this.list[s],e)),this.handleSelectData())})},beforeDestroy(){this.subscribe&&(this.subscribe.unsubscribe(),this.subscribe=null)},computed:{maxHiddenClass(){const{multipleMax:e,maxHiddenInput:s,selects:t}=this;return e&&s&&t.length>=e?"hidden-input":""}},watch:{value:{handler(){const e=this._tmpId=$A.randomString(6);setTimeout(()=>{e===this._tmpId&&this.valueChange()},10)},immediate:!0},selects(e){this.$emit("input",e),this.maxHiddenSelect&&e.length>=this.maxHiddenSelect&&this.$refs.select&&this.$refs.select.hideMenu(),this.calcMultipleSelect()}},methods:{searchUser(e){typeof e!="string"&&(e=""),this.searchKey=e;const s=this.searchHistory.find(t=>t.key==e);s&&(this.list=s.data,this.calcMultipleSelect()),s||this.loadIng++,setTimeout(()=>{if(this.searchKey!=e){s||this.loadIng--;return}this.$store.dispatch("call",{url:"users/search",data:{keys:{key:e,project_id:this.projectId,no_project_id:this.noProjectId,dialog_id:this.dialogId,bot:this.showBot?2:0},take:50}}).then(({data:t})=>{this.list=t,this.calcMultipleSelect();const i=this.searchHistory.findIndex(n=>n.key==e),l={key:e,data:t,time:$A.Time()};i>-1?this.searchHistory.splice(i,1,l):this.searchHistory.push(l)}).catch(({msg:t})=>{this.list=[],this.calcMultipleSelect(),$A.messageWarning(t)}).finally(t=>{s||this.loadIng--})},this.searchHistory.length>0?300:0)},isDisabled(e){return this.disabledChoice.length===0?!1:this.disabledChoice.includes(e)},openChange(e){e&&this.$nextTick(this.searchUser),this.calcMultipleSelect()},remoteMethod(){},valueChange(){this.selects!=this.value&&($A.isArray(this.value)?this.selects=$A.cloneJSON(this.value):this.value?this.selects=[this.value]:this.selects=[],this.selects.some(e=>{this.list.find(s=>s.userid==e)||(this.list.push({userid:e,nickname:e}),this.calcMultipleSelect(),this.$store.dispatch("getUserBasic",{userid:e}))}))},handleSelectData(){this.__handleSelectTimeout&&clearTimeout(this.__handleSelectTimeout),this.__handleSelectTimeout=setTimeout(()=>{if(!this.$refs.select)return;const e=this.$refs.select.getValue();e&&e.some(s=>{const t=this.list.find(({userid:i})=>i==s.value);t&&(this.$set(s,"label",t.nickname),this.$set(s,"avatar",t.userimg))})},100)},calcMultipleSelect(){this.multipleMax&&this.list.length>0?(this.calcMultipleTime&&clearTimeout(this.calcMultipleTime),this.calcMultipleTime=setTimeout(e=>{let s=!0;this.$refs.select.selectOptions.some(({componentInstance:t})=>{this.selects.includes(t.value)||(s=!1)}),this.multipleCheck=s},10)):this.multipleCheck=!1},onMultipleChange(e){if(e){let s=this.multipleMax-this.selects.length;this.$refs.select.selectOptions.some(({componentInstance:t})=>{if(this.multipleMax&&s<=0)return this.$nextTick(i=>{$A.messageWarning("\u5DF2\u8D85\u8FC7\u6700\u5927\u9009\u62E9\u6570\u91CF"),this.multipleCheck=!1}),!0;this.selects.includes(t.value)||(t.select(),s--)})}else this.selects=[]}}},a={};var d=r(o,u,h,!1,p,null,null,null);function p(e){for(let s in a)this[s]=a[s]}var f=function(){return d.exports}();export{f as U}; +import{n as r,d as c}from"./app.aaf5ae6f.js";var u=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",{class:["common-user",e.maxHiddenClass]},[t("Select",{ref:"select",attrs:{transfer:e.transfer,placeholder:e.placeholder,size:e.size,loading:e.loadIng>0,"loading-text":e.$L("\u52A0\u8F7D\u4E2D..."),"default-label":e.value,"default-event-object":!0,"multiple-max":e.multipleMax,"multiple-uncancelable":e.uncancelable,"remote-method":e.remoteMethod,multiple:"",filterable:"","transfer-class-name":"common-user-transfer"},on:{"on-query-change":e.searchUser,"on-open-change":e.openChange},model:{value:e.selects,callback:function(i){e.selects=i},expression:"selects"}},[e.multipleMax?t("div",{staticClass:"user-drop-prepend",attrs:{slot:"drop-prepend"},slot:"drop-prepend"},[t("div",{staticClass:"user-drop-text"},[e._v(" "+e._s(e.$L("\u6700\u591A\u53EA\u80FD\u9009\u62E9"+e.multipleMax+"\u4E2A"))+" "),e.selects.length?t("em",[e._v("("+e._s(e.$L(`\u5DF2\u9009${e.selects.length}\u4E2A`))+")")]):e._e()]),t("Checkbox",{staticClass:"user-drop-check",on:{"on-change":e.onMultipleChange},model:{value:e.multipleCheck,callback:function(i){e.multipleCheck=i},expression:"multipleCheck"}})],1):e._e(),e._t("option-prepend"),e._l(e.list,function(i,l){return t("Option",{key:l,attrs:{value:i.userid,"key-value":`${i.email}|${i.pinyin}`,label:i.nickname,avatar:i.userimg,disabled:e.isDisabled(i.userid)}},[t("div",{staticClass:"user-input-option"},[t("div",{staticClass:"user-input-avatar"},[t("EAvatar",{staticClass:"avatar",attrs:{src:i.userimg}})],1),i.bot?t("div",{staticClass:"taskfont user-input-bot"},[e._v("\uE68C")]):e._e(),t("div",{staticClass:"user-input-nickname"},[e._v(e._s(i.nickname))]),t("div",{staticClass:"user-input-userid"},[e._v("ID: "+e._s(i.userid))])])])})],2),e.loadIng>0?t("div",{staticClass:"common-user-loading"},[t("Loading")],1):e._e()],1)},h=[];const o={name:"UserInput",props:{value:{type:[String,Number,Array],default:""},uncancelable:{type:Array,default:()=>[]},disabledChoice:{type:Array,default:()=>[]},placeholder:{default:""},size:{default:"default"},transfer:{type:Boolean,default:!0},multipleMax:{type:Number},maxHiddenInput:{type:Boolean,default:!0},maxHiddenSelect:{type:Boolean,default:!1},projectId:{type:Number,default:0},noProjectId:{type:Number,default:0},dialogId:{type:Number,default:0},showBot:{type:Boolean,default:!1}},data(){return{loadIng:0,selects:[],list:[],multipleCheck:!1,searchKey:null,searchHistory:[],subscribe:null}},mounted(){this.subscribe=c.Store.subscribe("cacheUserActive",e=>{let s=this.list.findIndex(({userid:t})=>t==e.userid);s>-1&&(this.$set(this.list,s,Object.assign({},this.list[s],e)),this.handleSelectData())})},beforeDestroy(){this.subscribe&&(this.subscribe.unsubscribe(),this.subscribe=null)},computed:{maxHiddenClass(){const{multipleMax:e,maxHiddenInput:s,selects:t}=this;return e&&s&&t.length>=e?"hidden-input":""}},watch:{value:{handler(){const e=this._tmpId=$A.randomString(6);setTimeout(()=>{e===this._tmpId&&this.valueChange()},10)},immediate:!0},selects(e){this.$emit("input",e),this.maxHiddenSelect&&e.length>=this.maxHiddenSelect&&this.$refs.select&&this.$refs.select.hideMenu(),this.calcMultipleSelect()}},methods:{searchUser(e){typeof e!="string"&&(e=""),this.searchKey=e;const s=this.searchHistory.find(t=>t.key==e);s&&(this.list=s.data,this.calcMultipleSelect()),s||this.loadIng++,setTimeout(()=>{if(this.searchKey!=e){s||this.loadIng--;return}this.$store.dispatch("call",{url:"users/search",data:{keys:{key:e,project_id:this.projectId,no_project_id:this.noProjectId,dialog_id:this.dialogId,bot:this.showBot?2:0},take:50}}).then(({data:t})=>{this.list=t,this.calcMultipleSelect();const i=this.searchHistory.findIndex(n=>n.key==e),l={key:e,data:t,time:$A.Time()};i>-1?this.searchHistory.splice(i,1,l):this.searchHistory.push(l)}).catch(({msg:t})=>{this.list=[],this.calcMultipleSelect(),$A.messageWarning(t)}).finally(t=>{s||this.loadIng--})},this.searchHistory.length>0?300:0)},isDisabled(e){return this.disabledChoice.length===0?!1:this.disabledChoice.includes(e)},openChange(e){e&&this.$nextTick(this.searchUser),this.calcMultipleSelect()},remoteMethod(){},valueChange(){this.selects!=this.value&&($A.isArray(this.value)?this.selects=$A.cloneJSON(this.value):this.value?this.selects=[this.value]:this.selects=[],this.selects.some(e=>{this.list.find(s=>s.userid==e)||(this.list.push({userid:e,nickname:e}),this.calcMultipleSelect(),this.$store.dispatch("getUserBasic",{userid:e}))}))},handleSelectData(){this.__handleSelectTimeout&&clearTimeout(this.__handleSelectTimeout),this.__handleSelectTimeout=setTimeout(()=>{if(!this.$refs.select)return;const e=this.$refs.select.getValue();e&&e.some(s=>{const t=this.list.find(({userid:i})=>i==s.value);t&&(this.$set(s,"label",t.nickname),this.$set(s,"avatar",t.userimg))})},100)},calcMultipleSelect(){this.multipleMax&&this.list.length>0?(this.calcMultipleTime&&clearTimeout(this.calcMultipleTime),this.calcMultipleTime=setTimeout(e=>{let s=!0;this.$refs.select.selectOptions.some(({componentInstance:t})=>{this.selects.includes(t.value)||(s=!1)}),this.multipleCheck=s},10)):this.multipleCheck=!1},onMultipleChange(e){if(e){let s=this.multipleMax-this.selects.length;this.$refs.select.selectOptions.some(({componentInstance:t})=>{if(this.multipleMax&&s<=0)return this.$nextTick(i=>{$A.messageWarning("\u5DF2\u8D85\u8FC7\u6700\u5927\u9009\u62E9\u6570\u91CF"),this.multipleCheck=!1}),!0;this.selects.includes(t.value)||(t.select(),s--)})}else this.selects=[]}}},a={};var d=r(o,u,h,!1,p,null,null,null);function p(e){for(let s in a)this[s]=a[s]}var f=function(){return d.exports}();export{f as U}; diff --git a/public/js/build/app.7a29bd84.js b/public/js/build/app.7a29bd84.js deleted file mode 100644 index 210d6954f..000000000 --- a/public/js/build/app.7a29bd84.js +++ /dev/null @@ -1,376 +0,0 @@ -var t$={languageTypes:{zh:"\u7B80\u4F53\u4E2D\u6587","zh-CHT":"\u7E41\u9AD4\u4E2D\u6587",en:"English",ko:"\uD55C\uAD6D\uC5B4",ja:"\u65E5\u672C\u8A9E",de:"Deutsch",fr:"Fran\xE7ais",id:"Indonesia"},replaceArgumentsLanguage(e,t){let r=1;for(;e.indexOf("(*)")!==-1;)typeof t[r]=="object"?e=e.replace("(*)",""):e=e.replace("(*)",t[r]),r++;return e},replaceEscape(e){return!e||e==""?"":e.replace(/\(\*\)/g,"~%~").replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&").replace(/~%~/g,"(.*?)")},getLanguage(){let e=window.localStorage.getItem("__language:type__");if(typeof e=="string"&&typeof this.languageTypes[e]!="undefined")return e;e="en";let t=((window.navigator.language||navigator.userLanguage)+"").toLowerCase();switch(t){case"zh":case"cn":case"zh-cn":e="zh";break;case"zh-tw":case"zh-tr":case"zh-hk":case"zh-cnt":case"zh-cht":e="zh-CHT";break;default:typeof this.languageTypes[t]!="undefined"&&(e=t);break}return window.localStorage.setItem("__language:type__",e),e}};const Rp=t$,n$=Rp.languageTypes,Qo=Rp.getLanguage(),jl={};function QJ(e){if(!$A.isArray(e))return;const t=Object.assign(Object.keys(n$));e.some(r=>{let i=-1;r.key&&t.some(a=>{const s=r[a]||r.general||null;s&&typeof window.LANGUAGE_DATA[a]!="undefined"&&(i=window.LANGUAGE_DATA[a].push(s)-1)}),i>-1&&(window.LANGUAGE_DATA.key[r.key]=i)})}function qJ(e){e!==void 0&&$A.modalConfirm({content:"\u5207\u6362\u8BED\u8A00\u9700\u8981\u5237\u65B0\u540E\u751F\u6548\uFF0C\u662F\u5426\u786E\u5B9A\u5237\u65B0\uFF1F",cancelText:"\u53D6\u6D88",okText:"\u786E\u5B9A",onOk:()=>{window.localStorage.setItem("__language:type__",e),$A.reloadUrl()}})}function Vy(e){var r;if(typeof arguments[1]!="undefined")return Vy(Rp.replaceArgumentsLanguage(e,arguments));if(typeof e!="string"||!e||typeof window.LANGUAGE_DATA=="undefined"||typeof window.LANGUAGE_DATA.key=="undefined"||typeof window.LANGUAGE_DATA[Qo]=="undefined")return e;const t=window.LANGUAGE_DATA.key[e]||-1;if(t>-1)return window.LANGUAGE_DATA[Qo][t]||e;if(typeof jl[e]=="undefined"){jl[e]=!1;for(let i in window.LANGUAGE_DATA.key)if(i.indexOf("(*)")>-1){const a=new RegExp("^"+Rp.replaceEscape(i)+"$","g");if(a.test(e)){let s=0;const u=window.LANGUAGE_DATA.key[i],c=(r=window.LANGUAGE_DATA[Qo][u]||i)==null?void 0:r.replace(/\(\*\)/g,function(){return"$"+ ++s});jl[e]={rege:a,value:c};break}}}return jl[e]?e.replace(jl[e].rege,jl[e].value):(window.systemInfo.debug==="yes"&&setTimeout(i=>{try{let a="__language:Undefined__",s=JSON.parse(window.localStorage.getItem(a)||"[]");$A.isArray(s)||(s=[]);let u=null;s.find(h=>(u=new RegExp("^"+h.replace(/\(\*\)/g,"(.*?)")+"$","g"),!!e.match(u)))||(s.push(e),window.localStorage.setItem(a,JSON.stringify(s)))}catch{}},10),e)}var xs=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function r$(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Wy(e){if(e.__esModule)return e;var t=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(e).forEach(function(r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}),t}function kh(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Sk={exports:{}};/*! - * jQuery JavaScript Library v3.6.4 - * https://jquery.com/ - * - * Includes Sizzle.js - * https://sizzlejs.com/ - * - * Copyright OpenJS Foundation and other contributors - * Released under the MIT license - * https://jquery.org/license - * - * Date: 2023-03-08T15:28Z - */(function(e){(function(t,r){e.exports=t.document?r(t,!0):function(i){if(!i.document)throw new Error("jQuery requires a window with a document");return r(i)}})(typeof window!="undefined"?window:xs,function(t,r){var i=[],a=Object.getPrototypeOf,s=i.slice,u=i.flat?function(D){return i.flat.call(D)}:function(D){return i.concat.apply([],D)},c=i.push,h=i.indexOf,n={},p=n.toString,d=n.hasOwnProperty,v=d.toString,m=v.call(Object),g={},y=function(R){return typeof R=="function"&&typeof R.nodeType!="number"&&typeof R.item!="function"},b=function(R){return R!=null&&R===R.window},k=t.document,O={type:!0,src:!0,nonce:!0,noModule:!0};function S(D,R,K){K=K||k;var Q,ge,we=K.createElement("script");if(we.text=D,R)for(Q in O)ge=R[Q]||R.getAttribute&&R.getAttribute(Q),ge&&we.setAttribute(Q,ge);K.head.appendChild(we).parentNode.removeChild(we)}function x(D){return D==null?D+"":typeof D=="object"||typeof D=="function"?n[p.call(D)]||"object":typeof D}var E="3.6.4",w=function(D,R){return new w.fn.init(D,R)};w.fn=w.prototype={jquery:E,constructor:w,length:0,toArray:function(){return s.call(this)},get:function(D){return D==null?s.call(this):D<0?this[D+this.length]:this[D]},pushStack:function(D){var R=w.merge(this.constructor(),D);return R.prevObject=this,R},each:function(D){return w.each(this,D)},map:function(D){return this.pushStack(w.map(this,function(R,K){return D.call(R,K,R)}))},slice:function(){return this.pushStack(s.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(w.grep(this,function(D,R){return(R+1)%2}))},odd:function(){return this.pushStack(w.grep(this,function(D,R){return R%2}))},eq:function(D){var R=this.length,K=+D+(D<0?R:0);return this.pushStack(K>=0&&K0&&R-1 in D}var M=function(D){var R,K,Q,ge,we,Ae,Ke,Fe,qe,at,gt,rt,lt,en,pn,Xt,fr,ur,si,Ln="sizzle"+1*new Date,vn=D.document,Lr=0,On=0,Yn=Al(),zs=Al(),Pl=Al(),oi=Al(),cs=function($e,je){return $e===je&&(gt=!0),0},Ea={}.hasOwnProperty,kr=[],sa=kr.pop,li=kr.push,Da=kr.push,Ju=kr.slice,ds=function($e,je){for(var Ge=0,ct=$e.length;Ge+~]|"+In+")"+In+"*"),ef=new RegExp(In+"|>"),So=new RegExp(Tl),Nm=new RegExp("^"+Oa+"$"),ko={ID:new RegExp("^#("+Oa+")"),CLASS:new RegExp("^\\.("+Oa+")"),TAG:new RegExp("^("+Oa+"|[*])"),ATTR:new RegExp("^"+Qd),PSEUDO:new RegExp("^"+Tl),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+In+"*(even|odd|(([+-]|)(\\d*)n|)"+In+"*(?:([+-]|)"+In+"*(\\d+)|))"+In+"*\\)|)","i"),bool:new RegExp("^(?:"+Zu+")$","i"),needsContext:new RegExp("^"+In+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+In+"*((?:-\\d)?\\d*)"+In+"*\\)|)(?=[^-]|$)","i")},wi=/HTML$/i,Bm=/^(?:input|select|textarea|button)$/i,Qu=/^h\d$/i,Eo=/^[^{]+\{\s*\[native \w/,Fm=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,qu=/[+~]/,Zi=new RegExp("\\\\[\\da-fA-F]{1,6}"+In+"?|\\\\([^\\r\\n\\f])","g"),Ci=function($e,je){var Ge="0x"+$e.slice(1)-65536;return je||(Ge<0?String.fromCharCode(Ge+65536):String.fromCharCode(Ge>>10|55296,Ge&1023|56320))},ec=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,tc=function($e,je){return je?$e==="\0"?"\uFFFD":$e.slice(0,-1)+"\\"+$e.charCodeAt($e.length-1).toString(16)+" ":"\\"+$e},nc=function(){rt()},zm=Il(function($e){return $e.disabled===!0&&$e.nodeName.toLowerCase()==="fieldset"},{dir:"parentNode",next:"legend"});try{Da.apply(kr=Ju.call(vn.childNodes),vn.childNodes),kr[vn.childNodes.length].nodeType}catch{Da={apply:kr.length?function(je,Ge){li.apply(je,Ju.call(Ge))}:function(je,Ge){for(var ct=je.length,et=0;je[ct++]=Ge[et++];);je.length=ct-1}}}function Bn($e,je,Ge,ct){var et,vt,wt,$t,zt,an,Ft,un=je&&je.ownerDocument,xn=je?je.nodeType:9;if(Ge=Ge||[],typeof $e!="string"||!$e||xn!==1&&xn!==9&&xn!==11)return Ge;if(!ct&&(rt(je),je=je||lt,pn)){if(xn!==11&&(zt=Fm.exec($e)))if(et=zt[1]){if(xn===9)if(wt=je.getElementById(et)){if(wt.id===et)return Ge.push(wt),Ge}else return Ge;else if(un&&(wt=un.getElementById(et))&&si(je,wt)&&wt.id===et)return Ge.push(wt),Ge}else{if(zt[2])return Da.apply(Ge,je.getElementsByTagName($e)),Ge;if((et=zt[3])&&K.getElementsByClassName&&je.getElementsByClassName)return Da.apply(Ge,je.getElementsByClassName(et)),Ge}if(K.qsa&&!oi[$e+" "]&&(!Xt||!Xt.test($e))&&(xn!==1||je.nodeName.toLowerCase()!=="object")){if(Ft=$e,un=je,xn===1&&(ef.test($e)||qd.test($e))){for(un=qu.test($e)&&js(je.parentNode)||je,(un!==je||!K.scope)&&(($t=je.getAttribute("id"))?$t=$t.replace(ec,tc):je.setAttribute("id",$t=Ln)),an=Ae($e),vt=an.length;vt--;)an[vt]=($t?"#"+$t:":scope")+" "+Do(an[vt]);Ft=an.join(",")}try{return Da.apply(Ge,un.querySelectorAll(Ft)),Ge}catch{oi($e,!0)}finally{$t===Ln&&je.removeAttribute("id")}}}return Fe($e.replace(xo,"$1"),je,Ge,ct)}function Al(){var $e=[];function je(Ge,ct){return $e.push(Ge+" ")>Q.cacheLength&&delete je[$e.shift()],je[Ge+" "]=ct}return je}function xi($e){return $e[Ln]=!0,$e}function Nr($e){var je=lt.createElement("fieldset");try{return!!$e(je)}catch{return!1}finally{je.parentNode&&je.parentNode.removeChild(je),je=null}}function Ml($e,je){for(var Ge=$e.split("|"),ct=Ge.length;ct--;)Q.attrHandle[Ge[ct]]=je}function rc($e,je){var Ge=je&&$e,ct=Ge&&$e.nodeType===1&&je.nodeType===1&&$e.sourceIndex-je.sourceIndex;if(ct)return ct;if(Ge){for(;Ge=Ge.nextSibling;)if(Ge===je)return-1}return $e?1:-1}function jm($e){return function(je){var Ge=je.nodeName.toLowerCase();return Ge==="input"&&je.type===$e}}function Um($e){return function(je){var Ge=je.nodeName.toLowerCase();return(Ge==="input"||Ge==="button")&&je.type===$e}}function tf($e){return function(je){return"form"in je?je.parentNode&&je.disabled===!1?"label"in je?"label"in je.parentNode?je.parentNode.disabled===$e:je.disabled===$e:je.isDisabled===$e||je.isDisabled!==!$e&&zm(je)===$e:je.disabled===$e:"label"in je?je.disabled===$e:!1}}function Pa($e){return xi(function(je){return je=+je,xi(function(Ge,ct){for(var et,vt=$e([],Ge.length,je),wt=vt.length;wt--;)Ge[et=vt[wt]]&&(Ge[et]=!(ct[et]=Ge[et]))})})}function js($e){return $e&&typeof $e.getElementsByTagName!="undefined"&&$e}K=Bn.support={},we=Bn.isXML=function($e){var je=$e&&$e.namespaceURI,Ge=$e&&($e.ownerDocument||$e).documentElement;return!wi.test(je||Ge&&Ge.nodeName||"HTML")},rt=Bn.setDocument=function($e){var je,Ge,ct=$e?$e.ownerDocument||$e:vn;return ct==lt||ct.nodeType!==9||!ct.documentElement||(lt=ct,en=lt.documentElement,pn=!we(lt),vn!=lt&&(Ge=lt.defaultView)&&Ge.top!==Ge&&(Ge.addEventListener?Ge.addEventListener("unload",nc,!1):Ge.attachEvent&&Ge.attachEvent("onunload",nc)),K.scope=Nr(function(et){return en.appendChild(et).appendChild(lt.createElement("div")),typeof et.querySelectorAll!="undefined"&&!et.querySelectorAll(":scope fieldset div").length}),K.cssHas=Nr(function(){try{return lt.querySelector(":has(*,:jqfake)"),!1}catch{return!0}}),K.attributes=Nr(function(et){return et.className="i",!et.getAttribute("className")}),K.getElementsByTagName=Nr(function(et){return et.appendChild(lt.createComment("")),!et.getElementsByTagName("*").length}),K.getElementsByClassName=Eo.test(lt.getElementsByClassName),K.getById=Nr(function(et){return en.appendChild(et).id=Ln,!lt.getElementsByName||!lt.getElementsByName(Ln).length}),K.getById?(Q.filter.ID=function(et){var vt=et.replace(Zi,Ci);return function(wt){return wt.getAttribute("id")===vt}},Q.find.ID=function(et,vt){if(typeof vt.getElementById!="undefined"&&pn){var wt=vt.getElementById(et);return wt?[wt]:[]}}):(Q.filter.ID=function(et){var vt=et.replace(Zi,Ci);return function(wt){var $t=typeof wt.getAttributeNode!="undefined"&&wt.getAttributeNode("id");return $t&&$t.value===vt}},Q.find.ID=function(et,vt){if(typeof vt.getElementById!="undefined"&&pn){var wt,$t,zt,an=vt.getElementById(et);if(an){if(wt=an.getAttributeNode("id"),wt&&wt.value===et)return[an];for(zt=vt.getElementsByName(et),$t=0;an=zt[$t++];)if(wt=an.getAttributeNode("id"),wt&&wt.value===et)return[an]}return[]}}),Q.find.TAG=K.getElementsByTagName?function(et,vt){if(typeof vt.getElementsByTagName!="undefined")return vt.getElementsByTagName(et);if(K.qsa)return vt.querySelectorAll(et)}:function(et,vt){var wt,$t=[],zt=0,an=vt.getElementsByTagName(et);if(et==="*"){for(;wt=an[zt++];)wt.nodeType===1&&$t.push(wt);return $t}return an},Q.find.CLASS=K.getElementsByClassName&&function(et,vt){if(typeof vt.getElementsByClassName!="undefined"&&pn)return vt.getElementsByClassName(et)},fr=[],Xt=[],(K.qsa=Eo.test(lt.querySelectorAll))&&(Nr(function(et){var vt;en.appendChild(et).innerHTML="
",et.querySelectorAll("[msallowcapture^='']").length&&Xt.push("[*^$]="+In+`*(?:''|"")`),et.querySelectorAll("[selected]").length||Xt.push("\\["+In+"*(?:value|"+Zu+")"),et.querySelectorAll("[id~="+Ln+"-]").length||Xt.push("~="),vt=lt.createElement("input"),vt.setAttribute("name",""),et.appendChild(vt),et.querySelectorAll("[name='']").length||Xt.push("\\["+In+"*name"+In+"*="+In+`*(?:''|"")`),et.querySelectorAll(":checked").length||Xt.push(":checked"),et.querySelectorAll("a#"+Ln+"+*").length||Xt.push(".#.+[+~]"),et.querySelectorAll("\\\f"),Xt.push("[\\r\\n\\f]")}),Nr(function(et){et.innerHTML="";var vt=lt.createElement("input");vt.setAttribute("type","hidden"),et.appendChild(vt).setAttribute("name","D"),et.querySelectorAll("[name=d]").length&&Xt.push("name"+In+"*[*^$|!~]?="),et.querySelectorAll(":enabled").length!==2&&Xt.push(":enabled",":disabled"),en.appendChild(et).disabled=!0,et.querySelectorAll(":disabled").length!==2&&Xt.push(":enabled",":disabled"),et.querySelectorAll("*,:x"),Xt.push(",.*:")})),(K.matchesSelector=Eo.test(ur=en.matches||en.webkitMatchesSelector||en.mozMatchesSelector||en.oMatchesSelector||en.msMatchesSelector))&&Nr(function(et){K.disconnectedMatch=ur.call(et,"*"),ur.call(et,"[s!='']:x"),fr.push("!=",Tl)}),K.cssHas||Xt.push(":has"),Xt=Xt.length&&new RegExp(Xt.join("|")),fr=fr.length&&new RegExp(fr.join("|")),je=Eo.test(en.compareDocumentPosition),si=je||Eo.test(en.contains)?function(et,vt){var wt=et.nodeType===9&&et.documentElement||et,$t=vt&&vt.parentNode;return et===$t||!!($t&&$t.nodeType===1&&(wt.contains?wt.contains($t):et.compareDocumentPosition&&et.compareDocumentPosition($t)&16))}:function(et,vt){if(vt){for(;vt=vt.parentNode;)if(vt===et)return!0}return!1},cs=je?function(et,vt){if(et===vt)return gt=!0,0;var wt=!et.compareDocumentPosition-!vt.compareDocumentPosition;return wt||(wt=(et.ownerDocument||et)==(vt.ownerDocument||vt)?et.compareDocumentPosition(vt):1,wt&1||!K.sortDetached&&vt.compareDocumentPosition(et)===wt?et==lt||et.ownerDocument==vn&&si(vn,et)?-1:vt==lt||vt.ownerDocument==vn&&si(vn,vt)?1:at?ds(at,et)-ds(at,vt):0:wt&4?-1:1)}:function(et,vt){if(et===vt)return gt=!0,0;var wt,$t=0,zt=et.parentNode,an=vt.parentNode,Ft=[et],un=[vt];if(!zt||!an)return et==lt?-1:vt==lt?1:zt?-1:an?1:at?ds(at,et)-ds(at,vt):0;if(zt===an)return rc(et,vt);for(wt=et;wt=wt.parentNode;)Ft.unshift(wt);for(wt=vt;wt=wt.parentNode;)un.unshift(wt);for(;Ft[$t]===un[$t];)$t++;return $t?rc(Ft[$t],un[$t]):Ft[$t]==vn?-1:un[$t]==vn?1:0}),lt},Bn.matches=function($e,je){return Bn($e,null,null,je)},Bn.matchesSelector=function($e,je){if(rt($e),K.matchesSelector&&pn&&!oi[je+" "]&&(!fr||!fr.test(je))&&(!Xt||!Xt.test(je)))try{var Ge=ur.call($e,je);if(Ge||K.disconnectedMatch||$e.document&&$e.document.nodeType!==11)return Ge}catch{oi(je,!0)}return Bn(je,lt,null,[$e]).length>0},Bn.contains=function($e,je){return($e.ownerDocument||$e)!=lt&&rt($e),si($e,je)},Bn.attr=function($e,je){($e.ownerDocument||$e)!=lt&&rt($e);var Ge=Q.attrHandle[je.toLowerCase()],ct=Ge&&Ea.call(Q.attrHandle,je.toLowerCase())?Ge($e,je,!pn):void 0;return ct!==void 0?ct:K.attributes||!pn?$e.getAttribute(je):(ct=$e.getAttributeNode(je))&&ct.specified?ct.value:null},Bn.escape=function($e){return($e+"").replace(ec,tc)},Bn.error=function($e){throw new Error("Syntax error, unrecognized expression: "+$e)},Bn.uniqueSort=function($e){var je,Ge=[],ct=0,et=0;if(gt=!K.detectDuplicates,at=!K.sortStable&&$e.slice(0),$e.sort(cs),gt){for(;je=$e[et++];)je===$e[et]&&(ct=Ge.push(et));for(;ct--;)$e.splice(Ge[ct],1)}return at=null,$e},ge=Bn.getText=function($e){var je,Ge="",ct=0,et=$e.nodeType;if(et){if(et===1||et===9||et===11){if(typeof $e.textContent=="string")return $e.textContent;for($e=$e.firstChild;$e;$e=$e.nextSibling)Ge+=ge($e)}else if(et===3||et===4)return $e.nodeValue}else for(;je=$e[ct++];)Ge+=ge(je);return Ge},Q=Bn.selectors={cacheLength:50,createPseudo:xi,match:ko,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function($e){return $e[1]=$e[1].replace(Zi,Ci),$e[3]=($e[3]||$e[4]||$e[5]||"").replace(Zi,Ci),$e[2]==="~="&&($e[3]=" "+$e[3]+" "),$e.slice(0,4)},CHILD:function($e){return $e[1]=$e[1].toLowerCase(),$e[1].slice(0,3)==="nth"?($e[3]||Bn.error($e[0]),$e[4]=+($e[4]?$e[5]+($e[6]||1):2*($e[3]==="even"||$e[3]==="odd")),$e[5]=+($e[7]+$e[8]||$e[3]==="odd")):$e[3]&&Bn.error($e[0]),$e},PSEUDO:function($e){var je,Ge=!$e[6]&&$e[2];return ko.CHILD.test($e[0])?null:($e[3]?$e[2]=$e[4]||$e[5]||"":Ge&&So.test(Ge)&&(je=Ae(Ge,!0))&&(je=Ge.indexOf(")",Ge.length-je)-Ge.length)&&($e[0]=$e[0].slice(0,je),$e[2]=Ge.slice(0,je)),$e.slice(0,3))}},filter:{TAG:function($e){var je=$e.replace(Zi,Ci).toLowerCase();return $e==="*"?function(){return!0}:function(Ge){return Ge.nodeName&&Ge.nodeName.toLowerCase()===je}},CLASS:function($e){var je=Yn[$e+" "];return je||(je=new RegExp("(^|"+In+")"+$e+"("+In+"|$)"))&&Yn($e,function(Ge){return je.test(typeof Ge.className=="string"&&Ge.className||typeof Ge.getAttribute!="undefined"&&Ge.getAttribute("class")||"")})},ATTR:function($e,je,Ge){return function(ct){var et=Bn.attr(ct,$e);return et==null?je==="!=":je?(et+="",je==="="?et===Ge:je==="!="?et!==Ge:je==="^="?Ge&&et.indexOf(Ge)===0:je==="*="?Ge&&et.indexOf(Ge)>-1:je==="$="?Ge&&et.slice(-Ge.length)===Ge:je==="~="?(" "+et.replace(Rm," ")+" ").indexOf(Ge)>-1:je==="|="?et===Ge||et.slice(0,Ge.length+1)===Ge+"-":!1):!0}},CHILD:function($e,je,Ge,ct,et){var vt=$e.slice(0,3)!=="nth",wt=$e.slice(-4)!=="last",$t=je==="of-type";return ct===1&&et===0?function(zt){return!!zt.parentNode}:function(zt,an,Ft){var un,xn,Nn,sn,hr,Pr,Yr=vt!==wt?"nextSibling":"previousSibling",En=zt.parentNode,Li=$t&&zt.nodeName.toLowerCase(),Po=!Ft&&!$t,ui=!1;if(En){if(vt){for(;Yr;){for(sn=zt;sn=sn[Yr];)if($t?sn.nodeName.toLowerCase()===Li:sn.nodeType===1)return!1;Pr=Yr=$e==="only"&&!Pr&&"nextSibling"}return!0}if(Pr=[wt?En.firstChild:En.lastChild],wt&&Po){for(sn=En,Nn=sn[Ln]||(sn[Ln]={}),xn=Nn[sn.uniqueID]||(Nn[sn.uniqueID]={}),un=xn[$e]||[],hr=un[0]===Lr&&un[1],ui=hr&&un[2],sn=hr&&En.childNodes[hr];sn=++hr&&sn&&sn[Yr]||(ui=hr=0)||Pr.pop();)if(sn.nodeType===1&&++ui&&sn===zt){xn[$e]=[Lr,hr,ui];break}}else if(Po&&(sn=zt,Nn=sn[Ln]||(sn[Ln]={}),xn=Nn[sn.uniqueID]||(Nn[sn.uniqueID]={}),un=xn[$e]||[],hr=un[0]===Lr&&un[1],ui=hr),ui===!1)for(;(sn=++hr&&sn&&sn[Yr]||(ui=hr=0)||Pr.pop())&&!(($t?sn.nodeName.toLowerCase()===Li:sn.nodeType===1)&&++ui&&(Po&&(Nn=sn[Ln]||(sn[Ln]={}),xn=Nn[sn.uniqueID]||(Nn[sn.uniqueID]={}),xn[$e]=[Lr,ui]),sn===zt)););return ui-=et,ui===ct||ui%ct===0&&ui/ct>=0}}},PSEUDO:function($e,je){var Ge,ct=Q.pseudos[$e]||Q.setFilters[$e.toLowerCase()]||Bn.error("unsupported pseudo: "+$e);return ct[Ln]?ct(je):ct.length>1?(Ge=[$e,$e,"",je],Q.setFilters.hasOwnProperty($e.toLowerCase())?xi(function(et,vt){for(var wt,$t=ct(et,je),zt=$t.length;zt--;)wt=ds(et,$t[zt]),et[wt]=!(vt[wt]=$t[zt])}):function(et){return ct(et,0,Ge)}):ct}},pseudos:{not:xi(function($e){var je=[],Ge=[],ct=Ke($e.replace(xo,"$1"));return ct[Ln]?xi(function(et,vt,wt,$t){for(var zt,an=ct(et,null,$t,[]),Ft=et.length;Ft--;)(zt=an[Ft])&&(et[Ft]=!(vt[Ft]=zt))}):function(et,vt,wt){return je[0]=et,ct(je,null,wt,Ge),je[0]=null,!Ge.pop()}}),has:xi(function($e){return function(je){return Bn($e,je).length>0}}),contains:xi(function($e){return $e=$e.replace(Zi,Ci),function(je){return(je.textContent||ge(je)).indexOf($e)>-1}}),lang:xi(function($e){return Nm.test($e||"")||Bn.error("unsupported lang: "+$e),$e=$e.replace(Zi,Ci).toLowerCase(),function(je){var Ge;do if(Ge=pn?je.lang:je.getAttribute("xml:lang")||je.getAttribute("lang"))return Ge=Ge.toLowerCase(),Ge===$e||Ge.indexOf($e+"-")===0;while((je=je.parentNode)&&je.nodeType===1);return!1}}),target:function($e){var je=D.location&&D.location.hash;return je&&je.slice(1)===$e.id},root:function($e){return $e===en},focus:function($e){return $e===lt.activeElement&&(!lt.hasFocus||lt.hasFocus())&&!!($e.type||$e.href||~$e.tabIndex)},enabled:tf(!1),disabled:tf(!0),checked:function($e){var je=$e.nodeName.toLowerCase();return je==="input"&&!!$e.checked||je==="option"&&!!$e.selected},selected:function($e){return $e.parentNode&&$e.parentNode.selectedIndex,$e.selected===!0},empty:function($e){for($e=$e.firstChild;$e;$e=$e.nextSibling)if($e.nodeType<6)return!1;return!0},parent:function($e){return!Q.pseudos.empty($e)},header:function($e){return Qu.test($e.nodeName)},input:function($e){return Bm.test($e.nodeName)},button:function($e){var je=$e.nodeName.toLowerCase();return je==="input"&&$e.type==="button"||je==="button"},text:function($e){var je;return $e.nodeName.toLowerCase()==="input"&&$e.type==="text"&&((je=$e.getAttribute("type"))==null||je.toLowerCase()==="text")},first:Pa(function(){return[0]}),last:Pa(function($e,je){return[je-1]}),eq:Pa(function($e,je,Ge){return[Ge<0?Ge+je:Ge]}),even:Pa(function($e,je){for(var Ge=0;Geje?je:Ge;--ct>=0;)$e.push(ct);return $e}),gt:Pa(function($e,je,Ge){for(var ct=Ge<0?Ge+je:Ge;++ct1?function(je,Ge,ct){for(var et=$e.length;et--;)if(!$e[et](je,Ge,ct))return!1;return!0}:$e[0]}function Vm($e,je,Ge){for(var ct=0,et=je.length;ct-1&&(wt[Ft]=!($t[Ft]=xn))}}else En=Oo(En===$t?En.splice(hr,En.length):En),et?et(null,$t,En,an):Da.apply($t,En)})}function $l($e){for(var je,Ge,ct,et=$e.length,vt=Q.relative[$e[0].type],wt=vt||Q.relative[" "],$t=vt?1:0,zt=Il(function(un){return un===je},wt,!0),an=Il(function(un){return ds(je,un)>-1},wt,!0),Ft=[function(un,xn,Nn){var sn=!vt&&(Nn||xn!==qe)||((je=xn).nodeType?zt(un,xn,Nn):an(un,xn,Nn));return je=null,sn}];$t1&&ac(Ft),$t>1&&Do($e.slice(0,$t-1).concat({value:$e[$t-2].type===" "?"*":""})).replace(xo,"$1"),Ge,$t0,ct=$e.length>0,et=function(vt,wt,$t,zt,an){var Ft,un,xn,Nn=0,sn="0",hr=vt&&[],Pr=[],Yr=qe,En=vt||ct&&Q.find.TAG("*",an),Li=Lr+=Yr==null?1:Math.random()||.1,Po=En.length;for(an&&(qe=wt==lt||wt||an);sn!==Po&&(Ft=En[sn])!=null;sn++){if(ct&&Ft){for(un=0,!wt&&Ft.ownerDocument!=lt&&(rt(Ft),$t=!pn);xn=$e[un++];)if(xn(Ft,wt||lt,$t)){zt.push(Ft);break}an&&(Lr=Li)}Ge&&((Ft=!xn&&Ft)&&Nn--,vt&&hr.push(Ft))}if(Nn+=sn,Ge&&sn!==Nn){for(un=0;xn=je[un++];)xn(hr,Pr,wt,$t);if(vt){if(Nn>0)for(;sn--;)hr[sn]||Pr[sn]||(Pr[sn]=sa.call(zt));Pr=Oo(Pr)}Da.apply(zt,Pr),an&&!vt&&Pr.length>0&&Nn+je.length>1&&Bn.uniqueSort(zt)}return an&&(Lr=Li,qe=Yr),hr};return Ge?xi(et):et}return Ke=Bn.compile=function($e,je){var Ge,ct=[],et=[],vt=Pl[$e+" "];if(!vt){for(je||(je=Ae($e)),Ge=je.length;Ge--;)vt=$l(je[Ge]),vt[Ln]?ct.push(vt):et.push(vt);vt=Pl($e,nf(et,ct)),vt.selector=$e}return vt},Fe=Bn.select=function($e,je,Ge,ct){var et,vt,wt,$t,zt,an=typeof $e=="function"&&$e,Ft=!ct&&Ae($e=an.selector||$e);if(Ge=Ge||[],Ft.length===1){if(vt=Ft[0]=Ft[0].slice(0),vt.length>2&&(wt=vt[0]).type==="ID"&&je.nodeType===9&&pn&&Q.relative[vt[1].type]){if(je=(Q.find.ID(wt.matches[0].replace(Zi,Ci),je)||[])[0],je)an&&(je=je.parentNode);else return Ge;$e=$e.slice(vt.shift().value.length)}for(et=ko.needsContext.test($e)?0:vt.length;et--&&(wt=vt[et],!Q.relative[$t=wt.type]);)if((zt=Q.find[$t])&&(ct=zt(wt.matches[0].replace(Zi,Ci),qu.test(vt[0].type)&&js(je.parentNode)||je))){if(vt.splice(et,1),$e=ct.length&&Do(vt),!$e)return Da.apply(Ge,ct),Ge;break}}return(an||Ke($e,Ft))(ct,je,!pn,Ge,!je||qu.test($e)&&js(je.parentNode)||je),Ge},K.sortStable=Ln.split("").sort(cs).join("")===Ln,K.detectDuplicates=!!gt,rt(),K.sortDetached=Nr(function($e){return $e.compareDocumentPosition(lt.createElement("fieldset"))&1}),Nr(function($e){return $e.innerHTML="",$e.firstChild.getAttribute("href")==="#"})||Ml("type|href|height|width",function($e,je,Ge){if(!Ge)return $e.getAttribute(je,je.toLowerCase()==="type"?1:2)}),(!K.attributes||!Nr(function($e){return $e.innerHTML="",$e.firstChild.setAttribute("value",""),$e.firstChild.getAttribute("value")===""}))&&Ml("value",function($e,je,Ge){if(!Ge&&$e.nodeName.toLowerCase()==="input")return $e.defaultValue}),Nr(function($e){return $e.getAttribute("disabled")==null})||Ml(Zu,function($e,je,Ge){var ct;if(!Ge)return $e[je]===!0?je.toLowerCase():(ct=$e.getAttributeNode(je))&&ct.specified?ct.value:null}),Bn}(t);w.find=M,w.expr=M.selectors,w.expr[":"]=w.expr.pseudos,w.uniqueSort=w.unique=M.uniqueSort,w.text=M.getText,w.isXMLDoc=M.isXML,w.contains=M.contains,w.escapeSelector=M.escape;var A=function(D,R,K){for(var Q=[],ge=K!==void 0;(D=D[R])&&D.nodeType!==9;)if(D.nodeType===1){if(ge&&w(D).is(K))break;Q.push(D)}return Q},L=function(D,R){for(var K=[];D;D=D.nextSibling)D.nodeType===1&&D!==R&&K.push(D);return K},Y=w.expr.match.needsContext;function N(D,R){return D.nodeName&&D.nodeName.toLowerCase()===R.toLowerCase()}var W=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function j(D,R,K){return y(R)?w.grep(D,function(Q,ge){return!!R.call(Q,ge,Q)!==K}):R.nodeType?w.grep(D,function(Q){return Q===R!==K}):typeof R!="string"?w.grep(D,function(Q){return h.call(R,Q)>-1!==K}):w.filter(R,D,K)}w.filter=function(D,R,K){var Q=R[0];return K&&(D=":not("+D+")"),R.length===1&&Q.nodeType===1?w.find.matchesSelector(Q,D)?[Q]:[]:w.find.matches(D,w.grep(R,function(ge){return ge.nodeType===1}))},w.fn.extend({find:function(D){var R,K,Q=this.length,ge=this;if(typeof D!="string")return this.pushStack(w(D).filter(function(){for(R=0;R1?w.uniqueSort(K):K},filter:function(D){return this.pushStack(j(this,D||[],!1))},not:function(D){return this.pushStack(j(this,D||[],!0))},is:function(D){return!!j(this,typeof D=="string"&&Y.test(D)?w(D):D||[],!1).length}});var ue,Te=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,pe=w.fn.init=function(D,R,K){var Q,ge;if(!D)return this;if(K=K||ue,typeof D=="string")if(D[0]==="<"&&D[D.length-1]===">"&&D.length>=3?Q=[null,D,null]:Q=Te.exec(D),Q&&(Q[1]||!R))if(Q[1]){if(R=R instanceof w?R[0]:R,w.merge(this,w.parseHTML(Q[1],R&&R.nodeType?R.ownerDocument||R:k,!0)),W.test(Q[1])&&w.isPlainObject(R))for(Q in R)y(this[Q])?this[Q](R[Q]):this.attr(Q,R[Q]);return this}else return ge=k.getElementById(Q[2]),ge&&(this[0]=ge,this.length=1),this;else return!R||R.jquery?(R||K).find(D):this.constructor(R).find(D);else{if(D.nodeType)return this[0]=D,this.length=1,this;if(y(D))return K.ready!==void 0?K.ready(D):D(w)}return w.makeArray(D,this)};pe.prototype=w.fn,ue=w(k);var ye=/^(?:parents|prev(?:Until|All))/,de={children:!0,contents:!0,next:!0,prev:!0};w.fn.extend({has:function(D){var R=w(D,this),K=R.length;return this.filter(function(){for(var Q=0;Q-1:K.nodeType===1&&w.find.matchesSelector(K,D))){we.push(K);break}}return this.pushStack(we.length>1?w.uniqueSort(we):we)},index:function(D){return D?typeof D=="string"?h.call(w(D),this[0]):h.call(this,D.jquery?D[0]:D):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(D,R){return this.pushStack(w.uniqueSort(w.merge(this.get(),w(D,R))))},addBack:function(D){return this.add(D==null?this.prevObject:this.prevObject.filter(D))}});function Ee(D,R){for(;(D=D[R])&&D.nodeType!==1;);return D}w.each({parent:function(D){var R=D.parentNode;return R&&R.nodeType!==11?R:null},parents:function(D){return A(D,"parentNode")},parentsUntil:function(D,R,K){return A(D,"parentNode",K)},next:function(D){return Ee(D,"nextSibling")},prev:function(D){return Ee(D,"previousSibling")},nextAll:function(D){return A(D,"nextSibling")},prevAll:function(D){return A(D,"previousSibling")},nextUntil:function(D,R,K){return A(D,"nextSibling",K)},prevUntil:function(D,R,K){return A(D,"previousSibling",K)},siblings:function(D){return L((D.parentNode||{}).firstChild,D)},children:function(D){return L(D.firstChild)},contents:function(D){return D.contentDocument!=null&&a(D.contentDocument)?D.contentDocument:(N(D,"template")&&(D=D.content||D),w.merge([],D.childNodes))}},function(D,R){w.fn[D]=function(K,Q){var ge=w.map(this,R,K);return D.slice(-5)!=="Until"&&(Q=K),Q&&typeof Q=="string"&&(ge=w.filter(Q,ge)),this.length>1&&(de[D]||w.uniqueSort(ge),ye.test(D)&&ge.reverse()),this.pushStack(ge)}});var ie=/[^\x20\t\r\n\f]+/g;function be(D){var R={};return w.each(D.match(ie)||[],function(K,Q){R[Q]=!0}),R}w.Callbacks=function(D){D=typeof D=="string"?be(D):w.extend({},D);var R,K,Q,ge,we=[],Ae=[],Ke=-1,Fe=function(){for(ge=ge||D.once,Q=R=!0;Ae.length;Ke=-1)for(K=Ae.shift();++Ke-1;)we.splice(rt,1),rt<=Ke&&Ke--}),this},has:function(at){return at?w.inArray(at,we)>-1:we.length>0},empty:function(){return we&&(we=[]),this},disable:function(){return ge=Ae=[],we=K="",this},disabled:function(){return!we},lock:function(){return ge=Ae=[],!K&&!R&&(we=K=""),this},locked:function(){return!!ge},fireWith:function(at,gt){return ge||(gt=gt||[],gt=[at,gt.slice?gt.slice():gt],Ae.push(gt),R||Fe()),this},fire:function(){return qe.fireWith(this,arguments),this},fired:function(){return!!Q}};return qe};function Ie(D){return D}function De(D){throw D}function se(D,R,K,Q){var ge;try{D&&y(ge=D.promise)?ge.call(D).done(R).fail(K):D&&y(ge=D.then)?ge.call(D,R,K):R.apply(void 0,[D].slice(Q))}catch(we){K.apply(void 0,[we])}}w.extend({Deferred:function(D){var R=[["notify","progress",w.Callbacks("memory"),w.Callbacks("memory"),2],["resolve","done",w.Callbacks("once memory"),w.Callbacks("once memory"),0,"resolved"],["reject","fail",w.Callbacks("once memory"),w.Callbacks("once memory"),1,"rejected"]],K="pending",Q={state:function(){return K},always:function(){return ge.done(arguments).fail(arguments),this},catch:function(we){return Q.then(null,we)},pipe:function(){var we=arguments;return w.Deferred(function(Ae){w.each(R,function(Ke,Fe){var qe=y(we[Fe[4]])&&we[Fe[4]];ge[Fe[1]](function(){var at=qe&&qe.apply(this,arguments);at&&y(at.promise)?at.promise().progress(Ae.notify).done(Ae.resolve).fail(Ae.reject):Ae[Fe[0]+"With"](this,qe?[at]:arguments)})}),we=null}).promise()},then:function(we,Ae,Ke){var Fe=0;function qe(at,gt,rt,lt){return function(){var en=this,pn=arguments,Xt=function(){var ur,si;if(!(at=Fe&&(rt!==De&&(en=void 0,pn=[ur]),gt.rejectWith(en,pn))}};at?fr():(w.Deferred.getStackHook&&(fr.stackTrace=w.Deferred.getStackHook()),t.setTimeout(fr))}}return w.Deferred(function(at){R[0][3].add(qe(0,at,y(Ke)?Ke:Ie,at.notifyWith)),R[1][3].add(qe(0,at,y(we)?we:Ie)),R[2][3].add(qe(0,at,y(Ae)?Ae:De))}).promise()},promise:function(we){return we!=null?w.extend(we,Q):Q}},ge={};return w.each(R,function(we,Ae){var Ke=Ae[2],Fe=Ae[5];Q[Ae[1]]=Ke.add,Fe&&Ke.add(function(){K=Fe},R[3-we][2].disable,R[3-we][3].disable,R[0][2].lock,R[0][3].lock),Ke.add(Ae[3].fire),ge[Ae[0]]=function(){return ge[Ae[0]+"With"](this===ge?void 0:this,arguments),this},ge[Ae[0]+"With"]=Ke.fireWith}),Q.promise(ge),D&&D.call(ge,ge),ge},when:function(D){var R=arguments.length,K=R,Q=Array(K),ge=s.call(arguments),we=w.Deferred(),Ae=function(Ke){return function(Fe){Q[Ke]=this,ge[Ke]=arguments.length>1?s.call(arguments):Fe,--R||we.resolveWith(Q,ge)}};if(R<=1&&(se(D,we.done(Ae(K)).resolve,we.reject,!R),we.state()==="pending"||y(ge[K]&&ge[K].then)))return we.then();for(;K--;)se(ge[K],Ae(K),we.reject);return we.promise()}});var q=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;w.Deferred.exceptionHook=function(D,R){t.console&&t.console.warn&&D&&q.test(D.name)&&t.console.warn("jQuery.Deferred exception: "+D.message,D.stack,R)},w.readyException=function(D){t.setTimeout(function(){throw D})};var F=w.Deferred();w.fn.ready=function(D){return F.then(D).catch(function(R){w.readyException(R)}),this},w.extend({isReady:!1,readyWait:1,ready:function(D){(D===!0?--w.readyWait:w.isReady)||(w.isReady=!0,!(D!==!0&&--w.readyWait>0)&&F.resolveWith(k,[w]))}}),w.ready.then=F.then;function I(){k.removeEventListener("DOMContentLoaded",I),t.removeEventListener("load",I),w.ready()}k.readyState==="complete"||k.readyState!=="loading"&&!k.documentElement.doScroll?t.setTimeout(w.ready):(k.addEventListener("DOMContentLoaded",I),t.addEventListener("load",I));var J=function(D,R,K,Q,ge,we,Ae){var Ke=0,Fe=D.length,qe=K==null;if(x(K)==="object"){ge=!0;for(Ke in K)J(D,R,Ke,K[Ke],!0,we,Ae)}else if(Q!==void 0&&(ge=!0,y(Q)||(Ae=!0),qe&&(Ae?(R.call(D,Q),R=null):(qe=R,R=function(at,gt,rt){return qe.call(w(at),rt)})),R))for(;Ke1,null,!0)},removeData:function(D){return this.each(function(){Pe.remove(this,D)})}}),w.extend({queue:function(D,R,K){var Q;if(D)return R=(R||"fx")+"queue",Q=Z.get(D,R),K&&(!Q||Array.isArray(K)?Q=Z.access(D,R,w.makeArray(K)):Q.push(K)),Q||[]},dequeue:function(D,R){R=R||"fx";var K=w.queue(D,R),Q=K.length,ge=K.shift(),we=w._queueHooks(D,R),Ae=function(){w.dequeue(D,R)};ge==="inprogress"&&(ge=K.shift(),Q--),ge&&(R==="fx"&&K.unshift("inprogress"),delete we.stop,ge.call(D,Ae,we)),!Q&&we&&we.empty.fire()},_queueHooks:function(D,R){var K=R+"queueHooks";return Z.get(D,K)||Z.access(D,K,{empty:w.Callbacks("once memory").add(function(){Z.remove(D,[R+"queue",K])})})}}),w.fn.extend({queue:function(D,R){var K=2;return typeof D!="string"&&(R=D,D="fx",K--),arguments.length\x20\t\r\n\f]*)/i,St=/^$|^module$|\/(?:java|ecma)script/i;(function(){var D=k.createDocumentFragment(),R=D.appendChild(k.createElement("div")),K=k.createElement("input");K.setAttribute("type","radio"),K.setAttribute("checked","checked"),K.setAttribute("name","t"),R.appendChild(K),g.checkClone=R.cloneNode(!0).cloneNode(!0).lastChild.checked,R.innerHTML="",g.noCloneChecked=!!R.cloneNode(!0).lastChild.defaultValue,R.innerHTML="",g.option=!!R.lastChild})();var At={thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};At.tbody=At.tfoot=At.colgroup=At.caption=At.thead,At.th=At.td,g.option||(At.optgroup=At.option=[1,""]);function ht(D,R){var K;return typeof D.getElementsByTagName!="undefined"?K=D.getElementsByTagName(R||"*"):typeof D.querySelectorAll!="undefined"?K=D.querySelectorAll(R||"*"):K=[],R===void 0||R&&N(D,R)?w.merge([D],K):K}function Rt(D,R){for(var K=0,Q=D.length;K-1){ge&&ge.push(we);continue}if(qe=te(we),Ae=ht(gt.appendChild(we),"script"),qe&&Rt(Ae),K)for(at=0;we=Ae[at++];)St.test(we.type||"")&&K.push(we)}return gt}var tn=/^([^.]*)(?:\.(.+)|)/;function Yt(){return!0}function Ht(){return!1}function Jt(D,R){return D===Gt()==(R==="focus")}function Gt(){try{return k.activeElement}catch{}}function ln(D,R,K,Q,ge,we){var Ae,Ke;if(typeof R=="object"){typeof K!="string"&&(Q=Q||K,K=void 0);for(Ke in R)ln(D,Ke,K,Q,R[Ke],we);return D}if(Q==null&&ge==null?(ge=K,Q=K=void 0):ge==null&&(typeof K=="string"?(ge=Q,Q=void 0):(ge=Q,Q=K,K=void 0)),ge===!1)ge=Ht;else if(!ge)return D;return we===1&&(Ae=ge,ge=function(Fe){return w().off(Fe),Ae.apply(this,arguments)},ge.guid=Ae.guid||(Ae.guid=w.guid++)),D.each(function(){w.event.add(this,R,ge,Q,K)})}w.event={global:{},add:function(D,R,K,Q,ge){var we,Ae,Ke,Fe,qe,at,gt,rt,lt,en,pn,Xt=Z.get(D);if(!!H(D))for(K.handler&&(we=K,K=we.handler,ge=we.selector),ge&&w.find.matchesSelector(G,ge),K.guid||(K.guid=w.guid++),(Fe=Xt.events)||(Fe=Xt.events=Object.create(null)),(Ae=Xt.handle)||(Ae=Xt.handle=function(fr){return typeof w!="undefined"&&w.event.triggered!==fr.type?w.event.dispatch.apply(D,arguments):void 0}),R=(R||"").match(ie)||[""],qe=R.length;qe--;)Ke=tn.exec(R[qe])||[],lt=pn=Ke[1],en=(Ke[2]||"").split(".").sort(),lt&&(gt=w.event.special[lt]||{},lt=(ge?gt.delegateType:gt.bindType)||lt,gt=w.event.special[lt]||{},at=w.extend({type:lt,origType:pn,data:Q,handler:K,guid:K.guid,selector:ge,needsContext:ge&&w.expr.match.needsContext.test(ge),namespace:en.join(".")},we),(rt=Fe[lt])||(rt=Fe[lt]=[],rt.delegateCount=0,(!gt.setup||gt.setup.call(D,Q,en,Ae)===!1)&&D.addEventListener&&D.addEventListener(lt,Ae)),gt.add&&(gt.add.call(D,at),at.handler.guid||(at.handler.guid=K.guid)),ge?rt.splice(rt.delegateCount++,0,at):rt.push(at),w.event.global[lt]=!0)},remove:function(D,R,K,Q,ge){var we,Ae,Ke,Fe,qe,at,gt,rt,lt,en,pn,Xt=Z.hasData(D)&&Z.get(D);if(!(!Xt||!(Fe=Xt.events))){for(R=(R||"").match(ie)||[""],qe=R.length;qe--;){if(Ke=tn.exec(R[qe])||[],lt=pn=Ke[1],en=(Ke[2]||"").split(".").sort(),!lt){for(lt in Fe)w.event.remove(D,lt+R[qe],K,Q,!0);continue}for(gt=w.event.special[lt]||{},lt=(Q?gt.delegateType:gt.bindType)||lt,rt=Fe[lt]||[],Ke=Ke[2]&&new RegExp("(^|\\.)"+en.join("\\.(?:.*\\.|)")+"(\\.|$)"),Ae=we=rt.length;we--;)at=rt[we],(ge||pn===at.origType)&&(!K||K.guid===at.guid)&&(!Ke||Ke.test(at.namespace))&&(!Q||Q===at.selector||Q==="**"&&at.selector)&&(rt.splice(we,1),at.selector&&rt.delegateCount--,gt.remove&>.remove.call(D,at));Ae&&!rt.length&&((!gt.teardown||gt.teardown.call(D,en,Xt.handle)===!1)&&w.removeEvent(D,lt,Xt.handle),delete Fe[lt])}w.isEmptyObject(Fe)&&Z.remove(D,"handle events")}},dispatch:function(D){var R,K,Q,ge,we,Ae,Ke=new Array(arguments.length),Fe=w.event.fix(D),qe=(Z.get(this,"events")||Object.create(null))[Fe.type]||[],at=w.event.special[Fe.type]||{};for(Ke[0]=Fe,R=1;R=1)){for(;qe!==this;qe=qe.parentNode||this)if(qe.nodeType===1&&!(D.type==="click"&&qe.disabled===!0)){for(we=[],Ae={},K=0;K-1:w.find(ge,this,null,[qe]).length),Ae[ge]&&we.push(Q);we.length&&Ke.push({elem:qe,handlers:we})}}return qe=this,Fe\s*$/g;function Ce(D,R){return N(D,"table")&&N(R.nodeType!==11?R:R.firstChild,"tr")&&w(D).children("tbody")[0]||D}function Le(D){return D.type=(D.getAttribute("type")!==null)+"/"+D.type,D}function ze(D){return(D.type||"").slice(0,5)==="true/"?D.type=D.type.slice(5):D.removeAttribute("type"),D}function He(D,R){var K,Q,ge,we,Ae,Ke,Fe;if(R.nodeType===1){if(Z.hasData(D)&&(we=Z.get(D),Fe=we.events,Fe)){Z.remove(R,"handle events");for(ge in Fe)for(K=0,Q=Fe[ge].length;K1&&typeof lt=="string"&&!g.checkClone&&st.test(lt))return D.each(function(pn){var Xt=D.eq(pn);en&&(R[0]=lt.call(this,pn,Xt.html())),nt(Xt,R,K,Q)});if(gt&&(ge=cn(R,D[0].ownerDocument,!1,D,Q),we=ge.firstChild,ge.childNodes.length===1&&(ge=we),we||Q)){for(Ae=w.map(ht(ge,"script"),Le),Ke=Ae.length;at0&&Rt(Ae,!Fe&&ht(D,"script")),Ke},cleanData:function(D){for(var R,K,Q,ge=w.event.special,we=0;(K=D[we])!==void 0;we++)if(H(K)){if(R=K[Z.expando]){if(R.events)for(Q in R.events)ge[Q]?w.event.remove(K,Q):w.removeEvent(K,Q,R.handle);K[Z.expando]=void 0}K[Pe.expando]&&(K[Pe.expando]=void 0)}}}),w.fn.extend({detach:function(D){return pt(this,D,!0)},remove:function(D){return pt(this,D)},text:function(D){return J(this,function(R){return R===void 0?w.text(this):this.empty().each(function(){(this.nodeType===1||this.nodeType===11||this.nodeType===9)&&(this.textContent=R)})},null,D,arguments.length)},append:function(){return nt(this,arguments,function(D){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var R=Ce(this,D);R.appendChild(D)}})},prepend:function(){return nt(this,arguments,function(D){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var R=Ce(this,D);R.insertBefore(D,R.firstChild)}})},before:function(){return nt(this,arguments,function(D){this.parentNode&&this.parentNode.insertBefore(D,this)})},after:function(){return nt(this,arguments,function(D){this.parentNode&&this.parentNode.insertBefore(D,this.nextSibling)})},empty:function(){for(var D,R=0;(D=this[R])!=null;R++)D.nodeType===1&&(w.cleanData(ht(D,!1)),D.textContent="");return this},clone:function(D,R){return D=D==null?!1:D,R=R==null?D:R,this.map(function(){return w.clone(this,D,R)})},html:function(D){return J(this,function(R){var K=this[0]||{},Q=0,ge=this.length;if(R===void 0&&K.nodeType===1)return K.innerHTML;if(typeof R=="string"&&!it.test(R)&&!At[(Tt.exec(R)||["",""])[1].toLowerCase()]){R=w.htmlPrefilter(R);try{for(;Q=0&&(Fe+=Math.max(0,Math.ceil(D["offset"+R[0].toUpperCase()+R.slice(1)]-we-Fe-Ke-.5))||0),Fe}function yi(D,R,K){var Q=Bt(D),ge=!g.boxSizingReliable()||K,we=ge&&w.css(D,"boxSizing",!1,Q)==="border-box",Ae=we,Ke=qt(D,R,Q),Fe="offset"+R[0].toUpperCase()+R.slice(1);if(bt.test(Ke)){if(!K)return Ke;Ke="auto"}return(!g.boxSizingReliable()&&we||!g.reliableTrDimensions()&&N(D,"tr")||Ke==="auto"||!parseFloat(Ke)&&w.css(D,"display",!1,Q)==="inline")&&D.getClientRects().length&&(we=w.css(D,"boxSizing",!1,Q)==="border-box",Ae=Fe in D,Ae&&(Ke=D[Fe])),Ke=parseFloat(Ke)||0,Ke+ii(D,R,K||(we?"border":"content"),Ae,Q,Ke)+"px"}w.extend({cssHooks:{opacity:{get:function(D,R){if(R){var K=qt(D,"opacity");return K===""?"1":K}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(D,R,K,Q){if(!(!D||D.nodeType===3||D.nodeType===8||!D.style)){var ge,we,Ae,Ke=X(R),Fe=Ot.test(R),qe=D.style;if(Fe||(R=dr(Ke)),Ae=w.cssHooks[R]||w.cssHooks[Ke],K!==void 0){if(we=typeof K,we==="string"&&(ge=B.exec(K))&&ge[1]&&(K=ce(D,R,ge),we="number"),K==null||K!==K)return;we==="number"&&!Fe&&(K+=ge&&ge[3]||(w.cssNumber[Ke]?"":"px")),!g.clearCloneStyle&&K===""&&R.indexOf("background")===0&&(qe[R]="inherit"),(!Ae||!("set"in Ae)||(K=Ae.set(D,K,Q))!==void 0)&&(Fe?qe.setProperty(R,K):qe[R]=K)}else return Ae&&"get"in Ae&&(ge=Ae.get(D,!1,Q))!==void 0?ge:qe[R]}},css:function(D,R,K,Q){var ge,we,Ae,Ke=X(R),Fe=Ot.test(R);return Fe||(R=dr(Ke)),Ae=w.cssHooks[R]||w.cssHooks[Ke],Ae&&"get"in Ae&&(ge=Ae.get(D,!0,K)),ge===void 0&&(ge=qt(D,R,Q)),ge==="normal"&&R in gi&&(ge=gi[R]),K===""||K?(we=parseFloat(ge),K===!0||isFinite(we)?we||0:ge):ge}}),w.each(["height","width"],function(D,R){w.cssHooks[R]={get:function(K,Q,ge){if(Q)return wr.test(w.css(K,"display"))&&(!K.getClientRects().length||!K.getBoundingClientRect().width)?Ut(K,Cr,function(){return yi(K,R,ge)}):yi(K,R,ge)},set:function(K,Q,ge){var we,Ae=Bt(K),Ke=!g.scrollboxSize()&&Ae.position==="absolute",Fe=Ke||ge,qe=Fe&&w.css(K,"boxSizing",!1,Ae)==="border-box",at=ge?ii(K,R,ge,qe,Ae):0;return qe&&Ke&&(at-=Math.ceil(K["offset"+R[0].toUpperCase()+R.slice(1)]-parseFloat(Ae[R])-ii(K,R,"border",!1,Ae)-.5)),at&&(we=B.exec(Q))&&(we[3]||"px")!=="px"&&(K.style[R]=Q,Q=w.css(K,R)),Rr(K,Q,at)}}}),w.cssHooks.marginLeft=Dn(g.reliableMarginLeft,function(D,R){if(R)return(parseFloat(qt(D,"marginLeft"))||D.getBoundingClientRect().left-Ut(D,{marginLeft:0},function(){return D.getBoundingClientRect().left}))+"px"}),w.each({margin:"",padding:"",border:"Width"},function(D,R){w.cssHooks[D+R]={expand:function(K){for(var Q=0,ge={},we=typeof K=="string"?K.split(" "):[K];Q<4;Q++)ge[D+V[Q]+R]=we[Q]||we[Q-2]||we[0];return ge}},D!=="margin"&&(w.cssHooks[D+R].set=Rr)}),w.fn.extend({css:function(D,R){return J(this,function(K,Q,ge){var we,Ae,Ke={},Fe=0;if(Array.isArray(Q)){for(we=Bt(K),Ae=Q.length;Fe1)}});function rr(D,R,K,Q,ge){return new rr.prototype.init(D,R,K,Q,ge)}w.Tween=rr,rr.prototype={constructor:rr,init:function(D,R,K,Q,ge,we){this.elem=D,this.prop=K,this.easing=ge||w.easing._default,this.options=R,this.start=this.now=this.cur(),this.end=Q,this.unit=we||(w.cssNumber[K]?"":"px")},cur:function(){var D=rr.propHooks[this.prop];return D&&D.get?D.get(this):rr.propHooks._default.get(this)},run:function(D){var R,K=rr.propHooks[this.prop];return this.options.duration?this.pos=R=w.easing[this.easing](D,this.options.duration*D,0,1,this.options.duration):this.pos=R=D,this.now=(this.end-this.start)*R+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),K&&K.set?K.set(this):rr.propHooks._default.set(this),this}},rr.prototype.init.prototype=rr.prototype,rr.propHooks={_default:{get:function(D){var R;return D.elem.nodeType!==1||D.elem[D.prop]!=null&&D.elem.style[D.prop]==null?D.elem[D.prop]:(R=w.css(D.elem,D.prop,""),!R||R==="auto"?0:R)},set:function(D){w.fx.step[D.prop]?w.fx.step[D.prop](D):D.elem.nodeType===1&&(w.cssHooks[D.prop]||D.elem.style[dr(D.prop)]!=null)?w.style(D.elem,D.prop,D.now+D.unit):D.elem[D.prop]=D.now}}},rr.propHooks.scrollTop=rr.propHooks.scrollLeft={set:function(D){D.elem.nodeType&&D.elem.parentNode&&(D.elem[D.prop]=D.now)}},w.easing={linear:function(D){return D},swing:function(D){return .5-Math.cos(D*Math.PI)/2},_default:"swing"},w.fx=rr.prototype.init,w.fx.step={};var xr,ai,bi=/^(?:toggle|show|hide)$/,Me=/queueHooks$/;function We(){ai&&(k.hidden===!1&&t.requestAnimationFrame?t.requestAnimationFrame(We):t.setTimeout(We,w.fx.interval),w.fx.tick())}function Ne(){return t.setTimeout(function(){xr=void 0}),xr=Date.now()}function Xe(D,R){var K,Q=0,ge={height:D};for(R=R?1:0;Q<4;Q+=2-R)K=V[Q],ge["margin"+K]=ge["padding"+K]=D;return R&&(ge.opacity=ge.width=D),ge}function Qe(D,R,K){for(var Q,ge=(mt.tweeners[R]||[]).concat(mt.tweeners["*"]),we=0,Ae=ge.length;we1)},removeAttr:function(D){return this.each(function(){w.removeAttr(this,D)})}}),w.extend({attr:function(D,R,K){var Q,ge,we=D.nodeType;if(!(we===3||we===8||we===2)){if(typeof D.getAttribute=="undefined")return w.prop(D,R,K);if((we!==1||!w.isXMLDoc(D))&&(ge=w.attrHooks[R.toLowerCase()]||(w.expr.match.bool.test(R)?Dt:void 0)),K!==void 0){if(K===null){w.removeAttr(D,R);return}return ge&&"set"in ge&&(Q=ge.set(D,K,R))!==void 0?Q:(D.setAttribute(R,K+""),K)}return ge&&"get"in ge&&(Q=ge.get(D,R))!==null?Q:(Q=w.find.attr(D,R),Q==null?void 0:Q)}},attrHooks:{type:{set:function(D,R){if(!g.radioValue&&R==="radio"&&N(D,"input")){var K=D.value;return D.setAttribute("type",R),K&&(D.value=K),R}}}},removeAttr:function(D,R){var K,Q=0,ge=R&&R.match(ie);if(ge&&D.nodeType===1)for(;K=ge[Q++];)D.removeAttribute(K)}}),Dt={set:function(D,R,K){return R===!1?w.removeAttr(D,K):D.setAttribute(K,K),K}},w.each(w.expr.match.bool.source.match(/\w+/g),function(D,R){var K=kt[R]||w.find.attr;kt[R]=function(Q,ge,we){var Ae,Ke,Fe=ge.toLowerCase();return we||(Ke=kt[Fe],kt[Fe]=Ae,Ae=K(Q,ge,we)!=null?Fe:null,kt[Fe]=Ke),Ae}});var xt=/^(?:input|select|textarea|button)$/i,Vt=/^(?:a|area)$/i;w.fn.extend({prop:function(D,R){return J(this,w.prop,D,R,arguments.length>1)},removeProp:function(D){return this.each(function(){delete this[w.propFix[D]||D]})}}),w.extend({prop:function(D,R,K){var Q,ge,we=D.nodeType;if(!(we===3||we===8||we===2))return(we!==1||!w.isXMLDoc(D))&&(R=w.propFix[R]||R,ge=w.propHooks[R]),K!==void 0?ge&&"set"in ge&&(Q=ge.set(D,K,R))!==void 0?Q:D[R]=K:ge&&"get"in ge&&(Q=ge.get(D,R))!==null?Q:D[R]},propHooks:{tabIndex:{get:function(D){var R=w.find.attr(D,"tabindex");return R?parseInt(R,10):xt.test(D.nodeName)||Vt.test(D.nodeName)&&D.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),g.optSelected||(w.propHooks.selected={get:function(D){var R=D.parentNode;return R&&R.parentNode&&R.parentNode.selectedIndex,null},set:function(D){var R=D.parentNode;R&&(R.selectedIndex,R.parentNode&&R.parentNode.selectedIndex)}}),w.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){w.propFix[this.toLowerCase()]=this});function dn(D){var R=D.match(ie)||[];return R.join(" ")}function _n(D){return D.getAttribute&&D.getAttribute("class")||""}function Et(D){return Array.isArray(D)?D:typeof D=="string"?D.match(ie)||[]:[]}w.fn.extend({addClass:function(D){var R,K,Q,ge,we,Ae;return y(D)?this.each(function(Ke){w(this).addClass(D.call(this,Ke,_n(this)))}):(R=Et(D),R.length?this.each(function(){if(Q=_n(this),K=this.nodeType===1&&" "+dn(Q)+" ",K){for(we=0;we-1;)K=K.replace(" "+ge+" "," ");Ae=dn(K),Q!==Ae&&this.setAttribute("class",Ae)}}):this):this.attr("class","")},toggleClass:function(D,R){var K,Q,ge,we,Ae=typeof D,Ke=Ae==="string"||Array.isArray(D);return y(D)?this.each(function(Fe){w(this).toggleClass(D.call(this,Fe,_n(this),R),R)}):typeof R=="boolean"&&Ke?R?this.addClass(D):this.removeClass(D):(K=Et(D),this.each(function(){if(Ke)for(we=w(this),ge=0;ge-1)return!0;return!1}});var Wn=/\r/g;w.fn.extend({val:function(D){var R,K,Q,ge=this[0];return arguments.length?(Q=y(D),this.each(function(we){var Ae;this.nodeType===1&&(Q?Ae=D.call(this,we,w(this).val()):Ae=D,Ae==null?Ae="":typeof Ae=="number"?Ae+="":Array.isArray(Ae)&&(Ae=w.map(Ae,function(Ke){return Ke==null?"":Ke+""})),R=w.valHooks[this.type]||w.valHooks[this.nodeName.toLowerCase()],(!R||!("set"in R)||R.set(this,Ae,"value")===void 0)&&(this.value=Ae))})):ge?(R=w.valHooks[ge.type]||w.valHooks[ge.nodeName.toLowerCase()],R&&"get"in R&&(K=R.get(ge,"value"))!==void 0?K:(K=ge.value,typeof K=="string"?K.replace(Wn,""):K==null?"":K)):void 0}}),w.extend({valHooks:{option:{get:function(D){var R=w.find.attr(D,"value");return R!=null?R:dn(w.text(D))}},select:{get:function(D){var R,K,Q,ge=D.options,we=D.selectedIndex,Ae=D.type==="select-one",Ke=Ae?null:[],Fe=Ae?we+1:ge.length;for(we<0?Q=Fe:Q=Ae?we:0;Q-1)&&(K=!0);return K||(D.selectedIndex=-1),we}}}}),w.each(["radio","checkbox"],function(){w.valHooks[this]={set:function(D,R){if(Array.isArray(R))return D.checked=w.inArray(w(D).val(),R)>-1}},g.checkOn||(w.valHooks[this].get=function(D){return D.getAttribute("value")===null?"on":D.value})}),g.focusin="onfocusin"in t;var yn=/^(?:focusinfocus|focusoutblur)$/,Qn=function(D){D.stopPropagation()};w.extend(w.event,{trigger:function(D,R,K,Q){var ge,we,Ae,Ke,Fe,qe,at,gt,rt=[K||k],lt=d.call(D,"type")?D.type:D,en=d.call(D,"namespace")?D.namespace.split("."):[];if(we=gt=Ae=K=K||k,!(K.nodeType===3||K.nodeType===8)&&!yn.test(lt+w.event.triggered)&&(lt.indexOf(".")>-1&&(en=lt.split("."),lt=en.shift(),en.sort()),Fe=lt.indexOf(":")<0&&"on"+lt,D=D[w.expando]?D:new w.Event(lt,typeof D=="object"&&D),D.isTrigger=Q?2:3,D.namespace=en.join("."),D.rnamespace=D.namespace?new RegExp("(^|\\.)"+en.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,D.result=void 0,D.target||(D.target=K),R=R==null?[D]:w.makeArray(R,[D]),at=w.event.special[lt]||{},!(!Q&&at.trigger&&at.trigger.apply(K,R)===!1))){if(!Q&&!at.noBubble&&!b(K)){for(Ke=at.delegateType||lt,yn.test(Ke+lt)||(we=we.parentNode);we;we=we.parentNode)rt.push(we),Ae=we;Ae===(K.ownerDocument||k)&&rt.push(Ae.defaultView||Ae.parentWindow||t)}for(ge=0;(we=rt[ge++])&&!D.isPropagationStopped();)gt=we,D.type=ge>1?Ke:at.bindType||lt,qe=(Z.get(we,"events")||Object.create(null))[D.type]&&Z.get(we,"handle"),qe&&qe.apply(we,R),qe=Fe&&we[Fe],qe&&qe.apply&&H(we)&&(D.result=qe.apply(we,R),D.result===!1&&D.preventDefault());return D.type=lt,!Q&&!D.isDefaultPrevented()&&(!at._default||at._default.apply(rt.pop(),R)===!1)&&H(K)&&Fe&&y(K[lt])&&!b(K)&&(Ae=K[Fe],Ae&&(K[Fe]=null),w.event.triggered=lt,D.isPropagationStopped()&>.addEventListener(lt,Qn),K[lt](),D.isPropagationStopped()&>.removeEventListener(lt,Qn),w.event.triggered=void 0,Ae&&(K[Fe]=Ae)),D.result}},simulate:function(D,R,K){var Q=w.extend(new w.Event,K,{type:D,isSimulated:!0});w.event.trigger(Q,null,R)}}),w.fn.extend({trigger:function(D,R){return this.each(function(){w.event.trigger(D,R,this)})},triggerHandler:function(D,R){var K=this[0];if(K)return w.event.trigger(D,R,K,!0)}}),g.focusin||w.each({focus:"focusin",blur:"focusout"},function(D,R){var K=function(Q){w.event.simulate(R,Q.target,w.event.fix(Q))};w.event.special[R]={setup:function(){var Q=this.ownerDocument||this.document||this,ge=Z.access(Q,R);ge||Q.addEventListener(D,K,!0),Z.access(Q,R,(ge||0)+1)},teardown:function(){var Q=this.ownerDocument||this.document||this,ge=Z.access(Q,R)-1;ge?Z.access(Q,R,ge):(Q.removeEventListener(D,K,!0),Z.remove(Q,R))}}});var Gr=t.location,Or={guid:Date.now()},Sr=/\?/;w.parseXML=function(D){var R,K;if(!D||typeof D!="string")return null;try{R=new t.DOMParser().parseFromString(D,"text/xml")}catch{}return K=R&&R.getElementsByTagName("parsererror")[0],(!R||K)&&w.error("Invalid XML: "+(K?w.map(K.childNodes,function(Q){return Q.textContent}).join(` -`):D)),R};var Ji=/\[\]$/,_t=/\r?\n/g,ls=/^(?:submit|button|image|reset|file)$/i,Wu=/^(?:input|select|textarea|keygen)/i;function us(D,R,K,Q){var ge;if(Array.isArray(R))w.each(R,function(we,Ae){K||Ji.test(D)?Q(D,Ae):us(D+"["+(typeof Ae=="object"&&Ae!=null?we:"")+"]",Ae,K,Q)});else if(!K&&x(R)==="object")for(ge in R)us(D+"["+ge+"]",R[ge],K,Q);else Q(D,R)}w.param=function(D,R){var K,Q=[],ge=function(we,Ae){var Ke=y(Ae)?Ae():Ae;Q[Q.length]=encodeURIComponent(we)+"="+encodeURIComponent(Ke==null?"":Ke)};if(D==null)return"";if(Array.isArray(D)||D.jquery&&!w.isPlainObject(D))w.each(D,function(){ge(this.name,this.value)});else for(K in D)us(K,D[K],R,ge);return Q.join("&")},w.fn.extend({serialize:function(){return w.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var D=w.prop(this,"elements");return D?w.makeArray(D):this}).filter(function(){var D=this.type;return this.name&&!w(this).is(":disabled")&&Wu.test(this.nodeName)&&!ls.test(D)&&(this.checked||!yt.test(D))}).map(function(D,R){var K=w(this).val();return K==null?null:Array.isArray(K)?w.map(K,function(Q){return{name:R.name,value:Q.replace(_t,`\r -`)}}):{name:R.name,value:K.replace(_t,`\r -`)}}).get()}});var Om=/%20/g,Pm=/#.*$/,Gd=/([?&])_=[^&]*/,El=/^(.*?):[ \t]*([^\r\n]*)$/mg,Yd=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Xd=/^(?:GET|HEAD)$/,Tm=/^\/\//,Jd={},Ku={},Hu="*/".concat("*"),Bs=k.createElement("a");Bs.href=Gr.href;function Gu(D){return function(R,K){typeof R!="string"&&(K=R,R="*");var Q,ge=0,we=R.toLowerCase().match(ie)||[];if(y(K))for(;Q=we[ge++];)Q[0]==="+"?(Q=Q.slice(1)||"*",(D[Q]=D[Q]||[]).unshift(K)):(D[Q]=D[Q]||[]).push(K)}}function Yu(D,R,K,Q){var ge={},we=D===Ku;function Ae(Ke){var Fe;return ge[Ke]=!0,w.each(D[Ke]||[],function(qe,at){var gt=at(R,K,Q);if(typeof gt=="string"&&!we&&!ge[gt])return R.dataTypes.unshift(gt),Ae(gt),!1;if(we)return!(Fe=gt)}),Fe}return Ae(R.dataTypes[0])||!ge["*"]&&Ae("*")}function Xu(D,R){var K,Q,ge=w.ajaxSettings.flatOptions||{};for(K in R)R[K]!==void 0&&((ge[K]?D:Q||(Q={}))[K]=R[K]);return Q&&w.extend(!0,D,Q),D}function Dl(D,R,K){for(var Q,ge,we,Ae,Ke=D.contents,Fe=D.dataTypes;Fe[0]==="*";)Fe.shift(),Q===void 0&&(Q=D.mimeType||R.getResponseHeader("Content-Type"));if(Q){for(ge in Ke)if(Ke[ge]&&Ke[ge].test(Q)){Fe.unshift(ge);break}}if(Fe[0]in K)we=Fe[0];else{for(ge in K){if(!Fe[0]||D.converters[ge+" "+Fe[0]]){we=ge;break}Ae||(Ae=ge)}we=we||Ae}if(we)return we!==Fe[0]&&Fe.unshift(we),K[we]}function Am(D,R,K,Q){var ge,we,Ae,Ke,Fe,qe={},at=D.dataTypes.slice();if(at[1])for(Ae in D.converters)qe[Ae.toLowerCase()]=D.converters[Ae];for(we=at.shift();we;)if(D.responseFields[we]&&(K[D.responseFields[we]]=R),!Fe&&Q&&D.dataFilter&&(R=D.dataFilter(R,D.dataType)),Fe=we,we=at.shift(),we){if(we==="*")we=Fe;else if(Fe!=="*"&&Fe!==we){if(Ae=qe[Fe+" "+we]||qe["* "+we],!Ae){for(ge in qe)if(Ke=ge.split(" "),Ke[1]===we&&(Ae=qe[Fe+" "+Ke[0]]||qe["* "+Ke[0]],Ae)){Ae===!0?Ae=qe[ge]:qe[ge]!==!0&&(we=Ke[0],at.unshift(Ke[1]));break}}if(Ae!==!0)if(Ae&&D.throws)R=Ae(R);else try{R=Ae(R)}catch(gt){return{state:"parsererror",error:Ae?gt:"No conversion from "+Fe+" to "+we}}}}return{state:"success",data:R}}w.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Gr.href,type:"GET",isLocal:Yd.test(Gr.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Hu,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":w.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(D,R){return R?Xu(Xu(D,w.ajaxSettings),R):Xu(w.ajaxSettings,D)},ajaxPrefilter:Gu(Jd),ajaxTransport:Gu(Ku),ajax:function(D,R){typeof D=="object"&&(R=D,D=void 0),R=R||{};var K,Q,ge,we,Ae,Ke,Fe,qe,at,gt,rt=w.ajaxSetup({},R),lt=rt.context||rt,en=rt.context&&(lt.nodeType||lt.jquery)?w(lt):w.event,pn=w.Deferred(),Xt=w.Callbacks("once memory"),fr=rt.statusCode||{},ur={},si={},Ln="canceled",vn={readyState:0,getResponseHeader:function(On){var Yn;if(Fe){if(!we)for(we={};Yn=El.exec(ge);)we[Yn[1].toLowerCase()+" "]=(we[Yn[1].toLowerCase()+" "]||[]).concat(Yn[2]);Yn=we[On.toLowerCase()+" "]}return Yn==null?null:Yn.join(", ")},getAllResponseHeaders:function(){return Fe?ge:null},setRequestHeader:function(On,Yn){return Fe==null&&(On=si[On.toLowerCase()]=si[On.toLowerCase()]||On,ur[On]=Yn),this},overrideMimeType:function(On){return Fe==null&&(rt.mimeType=On),this},statusCode:function(On){var Yn;if(On)if(Fe)vn.always(On[vn.status]);else for(Yn in On)fr[Yn]=[fr[Yn],On[Yn]];return this},abort:function(On){var Yn=On||Ln;return K&&K.abort(Yn),Lr(0,Yn),this}};if(pn.promise(vn),rt.url=((D||rt.url||Gr.href)+"").replace(Tm,Gr.protocol+"//"),rt.type=R.method||R.type||rt.method||rt.type,rt.dataTypes=(rt.dataType||"*").toLowerCase().match(ie)||[""],rt.crossDomain==null){Ke=k.createElement("a");try{Ke.href=rt.url,Ke.href=Ke.href,rt.crossDomain=Bs.protocol+"//"+Bs.host!=Ke.protocol+"//"+Ke.host}catch{rt.crossDomain=!0}}if(rt.data&&rt.processData&&typeof rt.data!="string"&&(rt.data=w.param(rt.data,rt.traditional)),Yu(Jd,rt,R,vn),Fe)return vn;qe=w.event&&rt.global,qe&&w.active++===0&&w.event.trigger("ajaxStart"),rt.type=rt.type.toUpperCase(),rt.hasContent=!Xd.test(rt.type),Q=rt.url.replace(Pm,""),rt.hasContent?rt.data&&rt.processData&&(rt.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&(rt.data=rt.data.replace(Om,"+")):(gt=rt.url.slice(Q.length),rt.data&&(rt.processData||typeof rt.data=="string")&&(Q+=(Sr.test(Q)?"&":"?")+rt.data,delete rt.data),rt.cache===!1&&(Q=Q.replace(Gd,"$1"),gt=(Sr.test(Q)?"&":"?")+"_="+Or.guid+++gt),rt.url=Q+gt),rt.ifModified&&(w.lastModified[Q]&&vn.setRequestHeader("If-Modified-Since",w.lastModified[Q]),w.etag[Q]&&vn.setRequestHeader("If-None-Match",w.etag[Q])),(rt.data&&rt.hasContent&&rt.contentType!==!1||R.contentType)&&vn.setRequestHeader("Content-Type",rt.contentType),vn.setRequestHeader("Accept",rt.dataTypes[0]&&rt.accepts[rt.dataTypes[0]]?rt.accepts[rt.dataTypes[0]]+(rt.dataTypes[0]!=="*"?", "+Hu+"; q=0.01":""):rt.accepts["*"]);for(at in rt.headers)vn.setRequestHeader(at,rt.headers[at]);if(rt.beforeSend&&(rt.beforeSend.call(lt,vn,rt)===!1||Fe))return vn.abort();if(Ln="abort",Xt.add(rt.complete),vn.done(rt.success),vn.fail(rt.error),K=Yu(Ku,rt,R,vn),!K)Lr(-1,"No Transport");else{if(vn.readyState=1,qe&&en.trigger("ajaxSend",[vn,rt]),Fe)return vn;rt.async&&rt.timeout>0&&(Ae=t.setTimeout(function(){vn.abort("timeout")},rt.timeout));try{Fe=!1,K.send(ur,Lr)}catch(On){if(Fe)throw On;Lr(-1,On)}}function Lr(On,Yn,zs,Pl){var oi,cs,Ea,kr,sa,li=Yn;Fe||(Fe=!0,Ae&&t.clearTimeout(Ae),K=void 0,ge=Pl||"",vn.readyState=On>0?4:0,oi=On>=200&&On<300||On===304,zs&&(kr=Dl(rt,vn,zs)),!oi&&w.inArray("script",rt.dataTypes)>-1&&w.inArray("json",rt.dataTypes)<0&&(rt.converters["text script"]=function(){}),kr=Am(rt,kr,vn,oi),oi?(rt.ifModified&&(sa=vn.getResponseHeader("Last-Modified"),sa&&(w.lastModified[Q]=sa),sa=vn.getResponseHeader("etag"),sa&&(w.etag[Q]=sa)),On===204||rt.type==="HEAD"?li="nocontent":On===304?li="notmodified":(li=kr.state,cs=kr.data,Ea=kr.error,oi=!Ea)):(Ea=li,(On||!li)&&(li="error",On<0&&(On=0))),vn.status=On,vn.statusText=(Yn||li)+"",oi?pn.resolveWith(lt,[cs,li,vn]):pn.rejectWith(lt,[vn,li,Ea]),vn.statusCode(fr),fr=void 0,qe&&en.trigger(oi?"ajaxSuccess":"ajaxError",[vn,rt,oi?cs:Ea]),Xt.fireWith(lt,[vn,li]),qe&&(en.trigger("ajaxComplete",[vn,rt]),--w.active||w.event.trigger("ajaxStop")))}return vn},getJSON:function(D,R,K){return w.get(D,R,K,"json")},getScript:function(D,R){return w.get(D,void 0,R,"script")}}),w.each(["get","post"],function(D,R){w[R]=function(K,Q,ge,we){return y(Q)&&(we=we||ge,ge=Q,Q=void 0),w.ajax(w.extend({url:K,type:R,dataType:we,data:Q,success:ge},w.isPlainObject(K)&&K))}}),w.ajaxPrefilter(function(D){var R;for(R in D.headers)R.toLowerCase()==="content-type"&&(D.contentType=D.headers[R]||"")}),w._evalUrl=function(D,R,K){return w.ajax({url:D,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(Q){w.globalEval(Q,R,K)}})},w.fn.extend({wrapAll:function(D){var R;return this[0]&&(y(D)&&(D=D.call(this[0])),R=w(D,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&R.insertBefore(this[0]),R.map(function(){for(var K=this;K.firstElementChild;)K=K.firstElementChild;return K}).append(this)),this},wrapInner:function(D){return y(D)?this.each(function(R){w(this).wrapInner(D.call(this,R))}):this.each(function(){var R=w(this),K=R.contents();K.length?K.wrapAll(D):R.append(D)})},wrap:function(D){var R=y(D);return this.each(function(K){w(this).wrapAll(R?D.call(this,K):D)})},unwrap:function(D){return this.parent(D).not("body").each(function(){w(this).replaceWith(this.childNodes)}),this}}),w.expr.pseudos.hidden=function(D){return!w.expr.pseudos.visible(D)},w.expr.pseudos.visible=function(D){return!!(D.offsetWidth||D.offsetHeight||D.getClientRects().length)},w.ajaxSettings.xhr=function(){try{return new t.XMLHttpRequest}catch{}};var Mm={0:200,1223:204},Fs=w.ajaxSettings.xhr();g.cors=!!Fs&&"withCredentials"in Fs,g.ajax=Fs=!!Fs,w.ajaxTransport(function(D){var R,K;if(g.cors||Fs&&!D.crossDomain)return{send:function(Q,ge){var we,Ae=D.xhr();if(Ae.open(D.type,D.url,D.async,D.username,D.password),D.xhrFields)for(we in D.xhrFields)Ae[we]=D.xhrFields[we];D.mimeType&&Ae.overrideMimeType&&Ae.overrideMimeType(D.mimeType),!D.crossDomain&&!Q["X-Requested-With"]&&(Q["X-Requested-With"]="XMLHttpRequest");for(we in Q)Ae.setRequestHeader(we,Q[we]);R=function(Ke){return function(){R&&(R=K=Ae.onload=Ae.onerror=Ae.onabort=Ae.ontimeout=Ae.onreadystatechange=null,Ke==="abort"?Ae.abort():Ke==="error"?typeof Ae.status!="number"?ge(0,"error"):ge(Ae.status,Ae.statusText):ge(Mm[Ae.status]||Ae.status,Ae.statusText,(Ae.responseType||"text")!=="text"||typeof Ae.responseText!="string"?{binary:Ae.response}:{text:Ae.responseText},Ae.getAllResponseHeaders()))}},Ae.onload=R(),K=Ae.onerror=Ae.ontimeout=R("error"),Ae.onabort!==void 0?Ae.onabort=K:Ae.onreadystatechange=function(){Ae.readyState===4&&t.setTimeout(function(){R&&K()})},R=R("abort");try{Ae.send(D.hasContent&&D.data||null)}catch(Ke){if(R)throw Ke}},abort:function(){R&&R()}}}),w.ajaxPrefilter(function(D){D.crossDomain&&(D.contents.script=!1)}),w.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(D){return w.globalEval(D),D}}}),w.ajaxPrefilter("script",function(D){D.cache===void 0&&(D.cache=!1),D.crossDomain&&(D.type="GET")}),w.ajaxTransport("script",function(D){if(D.crossDomain||D.scriptAttrs){var R,K;return{send:function(Q,ge){R=w("