mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-12 03:01:12 +00:00
143 lines
559 KiB
JavaScript
Vendored
143 lines
559 KiB
JavaScript
Vendored
import{v as ms}from"./jquery.bb849206.js";import{v as gs,a as _s,b as vs}from"./dayjs.f27b22c9.js";import{v as $s}from"./localforage.f2f8f716.js";import{M as ns}from"./markdown-it.bda97caf.js";import{H as $e}from"./highlight.js.ab8aeea4.js";import{m as ys}from"./markdown-it-link-attributes.e1d5d151.js";import{m as ws}from"./@traptitech.897ae552.js";import{V as k}from"./vue.fd9b772e.js";import{m as x,a as ge,V as Ae}from"./vuex.cc7cb26e.js";import{_ as w,c as ks,V as bs,d as As,n as Cs,l as Ss,W as Ts,p as Ds,r as Ls}from"./openpgp_hi.15f91b1d.js";import{a as me}from"./axios.79c8b3d5.js";import{m as Is}from"./mitt.1ea0a2a3.js";import{Q as oe}from"./quill-hi.b7430b13.js";import"./quill-mention-hi.26cde5e9.js";import{i as xs,V as B}from"./view-design-hi.18b9f7fe.js";import{V as _e}from"./vue-router.2d566cd7.js";import{V as Es}from"./vue-clipboard2.50be9c5e.js";import{D as Ms}from"./vuedraggable.9fd6afed.js";import{V as js}from"./vue-resize-observer.c3c9ca4e.js";import{e as re}from"./element-sea.1d49e96e.js";import"./@babel.f9bcab46.js";import"./mdurl.ce6c1dd8.js";import"./uc.micro.8d343c98.js";import"./entities.48a44fec.js";import"./linkify-it.c5e8196e.js";import"./punycode.js.4b3f125a.js";import"./parchment.d5c5924e.js";import"./quill-delta.f1b7ce48.js";import"./fast-diff.f17881f3.js";import"./lodash.clonedeep.e8ef3f14.js";import"./lodash.isequal.d6a986d0.js";import"./eventemitter3.78b735ad.js";import"./lodash-es.df04b444.js";import"./clipboard.058ef547.js";import"./sortablejs.d74243d9.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.0bdc1850.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.49abba38.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";var Ps={languageList:{zh:"\u7B80\u4F53\u4E2D\u6587","zh-CHT":"\u7E41\u9AD4\u4E2D\u6587",en:"English",ko:"\uD55C\uAD6D\uC5B4",ja:"\u65E5\u672C\u8A9E",de:"Deutsch",fr:"Fran\xE7ais",id:"Indonesia",ru:"\u0420\u0443\u0441\u0441\u043A\u0438\u0439 \u044F\u0437\u044B\u043A"},replaceArgumentsLanguage(e,i){let t=1;for(;e.indexOf("(*)")!==-1;)typeof i[t]=="object"?e=e.replace("(*)",""):e=e.replace("(*)",i[t]),t++;return e},replaceEscape(e){return!e||e==""?"":e.replace(/\(%[TM]\d+\)/g,"~:%%:~").replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&").replace(/~:%%:~/g,"(.*?)")},getLanguage(){let e=window.localStorage.getItem("__system:languageName__");if(typeof e=="string"&&typeof this.languageList[e]!="undefined")return e;e="en";let i=((window.navigator.language||navigator.userLanguage)+"").toLowerCase();switch(i){case"zh":case"cn":case"zh-cn":e="zh";break;case"zh-tw":case"zh-tr":case"zh-hk":case"zh-cnt":case"zh-cht":e="zh-CHT";break;default:typeof this.languageList[i]!="undefined"&&(e=i);break}return this.saveLanguage(e),e},saveLanguage(e){window.localStorage.setItem("__system:languageName__",e)}};const ue=Ps,J=ue.languageList,I=ue.getLanguage(),K=new Map,as=[];typeof window.LANGUAGE_DATA=="undefined"&&(window.LANGUAGE_DATA={});function Rs(){if(typeof window.LANGUAGE_DATA=="undefined"||typeof window.LANGUAGE_DATA.key=="undefined")return;const e=window.LANGUAGE_DATA.key||[];delete window.LANGUAGE_DATA.key,e.forEach((i,t)=>{var s;if(/\(%[TM]\d+\)/.test(i)){const n={},a={key:new RegExp("^"+ue.replaceEscape(i)+"$")};for(let r in window.LANGUAGE_DATA)typeof J[r]!="undefined"&&(a[r]=(s=window.LANGUAGE_DATA[r][t])==null?void 0:s.replace(/\(%([TM])(\d+)\)/g,function(o,l,c){return l==="M"&&(n[c]=c),"$"+c}));a._m=Object.keys(n),as.push(a)}else for(let n in window.LANGUAGE_DATA){if(typeof J[n]=="undefined")continue;const a=window.LANGUAGE_DATA[n][t]||i;K.set(`${i}-${n}`,a)}})}function nh(e){!$A.isArray(e)||e.forEach(i=>{const{key:t,general:s}=i;if(!!t){if(s)for(let n in window.LANGUAGE_DATA)typeof J[n]!="undefined"&&K.set(`${t}-${n}`,s);for(let n in i)n==="key"||n==="general"||K.set(`${t}-${n}`,i[n])}})}function Us(e,i=!1){e!==void 0&&(i?(ue.saveLanguage(e),(async()=>{var t;await $A.IDBDel("callAt"),(t=$A.Electron)==null||t.sendMessage("reloadPreloadWindow"),$A.reloadUrl()})()):$A.modalConfirm({content:"\u5207\u6362\u8BED\u8A00\u9700\u8981\u5237\u65B0\u540E\u751F\u6548\uFF0C\u662F\u5426\u786E\u5B9A\u5237\u65B0\uFF1F",cancelText:"\u53D6\u6D88",okText:"\u786E\u5B9A",onOk:()=>Us(e,!0)}))}function Ce(e){if(typeof arguments[1]!="undefined"&&(e=ue.replaceArgumentsLanguage(e,arguments)),typeof e!="string"||!e)return e;const i=`${e}-${I}`;if(K.has(i))return K.get(i);for(const t of as){const{key:s,_m:n}=t,a=s.exec(e);if(a){if(t[I]){const r=t[I].replace(/\$(\d+)/g,(o,l)=>n.includes(l)?Ce(a[l]):a[l]||"");return K.set(i,r),r}return K.set(i,e),e}}return window.systemInfo.debug==="yes"&&setTimeout(t=>{try{let s="__language:Undefined__",n=JSON.parse(window.localStorage.getItem(s)||"[]");$A.isArray(n)||(n=[]),n.findIndex(a=>a==e)===-1&&(n.push(e),window.localStorage.setItem(s,JSON.stringify(n)))}catch{}},10),K.set(i,e),e}const rs=(()=>{let e=!1,i=null,t=null,s=null;const n=r=>r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),a=()=>{if(e||(($A.isEEUIApp||$A.isElectron)&&(i=window.location.origin+"/"),!i))return;t=$A.mainUrl();const r=n(t),l=["images/"].map(c=>n(c));s=new RegExp(`${r}(${l.join("|")})`),e=!0};return r=>(a(),!i||!/\.(jpe?g|webp|png|gif|icns|ico|svg)$/i.test(r)?r:s.test(r)?r.replace(t,i):r)})(),le=e=>{if(!e)return!1;try{return new URL(e).hostname=="localhost"}catch{return!1}},Y=$s,Q=gs,Os=_s,Bs=vs;(function(e,i,t){e.systemInfo=e.systemInfo||{},e.modalTransferIndex=1e3,Y.config({name:"DooTask",storeName:"common"}),i.extend({isArray(s){return typeof s=="object"&&Object.prototype.toString.call(s).toLowerCase()=="[object array]"&&typeof s.length=="number"},isJson(s){return typeof s=="object"&&Object.prototype.toString.call(s).toLowerCase()=="[object object]"&&typeof s.length=="undefined"},inArray(s,n,a=!1){return this.isArray(n)?a?!!n.find(r=>r&&r.indexOf("*")&&new RegExp("^"+r.replace(/[-\/\\^$+?.()|[\]{}]/g,"\\$&").replace(/\*/g,".*")+"$","g").test(s)?!0:r==s):n.includes(s):!1},randNum(s,n){let a=n-s,r=Math.random();return s+Math.round(r*a)},last(s){let n=!1;return typeof s=="object"&&s.length>0&&(n=s[s.length-1]),n},strExists(s,n,a=!1){return s+="",n+="",a!==!0&&(s=s.toLowerCase(),n=n.toLowerCase()),s.indexOf(n)!==-1},leftExists(s,n,a=!1){return s+="",n+="",a!==!0&&(s=s.toLowerCase(),n=n.toLowerCase()),s.substring(0,n.length)===n},leftDelete(s,n,a=!1){return s+="",n+="",this.leftExists(s,n,a)&&(s=s.substring(n.length)),s||""},rightExists(s,n,a=!1){return s+="",n+="",a!==!0&&(s=s.toLowerCase(),n=n.toLowerCase()),s.substring(s.length-n.length)===n},rightDelete(s,n,a=!1){return s+="",n+="",this.rightExists(s,n,a)&&(s=s.substring(0,s.length-n.length)),s||""},getMiddle(s,n=null,a=null){return s=s.toString(),this.isHave(n)&&this.strExists(s,n)&&(s=s.substring(s.indexOf(n)+n.length)),this.isHave(a)&&this.strExists(s,a)&&(s=s.substring(0,s.indexOf(a))),s},subString(s,n,a){return s+="",this.isHave(a)||(a=s.length),s.substring(n,a)},randomString(s){s=s||32;let n="ABCDEFGHJKMNPQRSTWXYZabcdefhijkmnprstwxyz2345678oOLl9gqVvUuI1",a=n.length,r="";for(let o=0;o<s;o++)r+=n.charAt(Math.floor(Math.random()*a));return r},isHave(s){return!!(s!==null&&s!=="null"&&s!==t&&s!=="undefined"&&s)},runNum(s,n=null){let a=Number(s);if(a+""=="NaN"&&(a=0),n&&/^[0-9]*[1-9][0-9]*$/.test(n)&&(a=a.toFixed(n),a.indexOf(".")<0)){a+=".";for(let o=0;o<n;o++)a+="0"}return a},zeroFill(s,n,a=!1){return a?`${s}`.padEnd(n,"0"):`${s}`.padStart(n,"0")},isMobile(s){return/^1([3456789])\d{9}$/.test(s)},isEmail(s){return/^([0-9a-zA-Z]([-.\w]*[0-9a-zA-Z])*@([0-9a-zA-Z][-\w]*\.)+[a-zA-Z]*)$/i.test(s)},getDistance(s,n,a,r){let o=3.14159265359,l=6.28318530712,c=.01745329252,u=63706935e-1,h,d,p,f,g,b,v,M;return h=s*c,d=n*c,p=a*c,f=r*c,v=h-p,v>o?v=l-v:v<-o&&(v=l+v),g=u*Math.cos(d)*v,b=u*(d-f),M=Math.sqrt(g*g+b*b).toFixed(0),M},setTile(s){document.title=s;let n=navigator.userAgent.toLowerCase();if(/iphone|ipad|ipod/.test(n)){let a=document.createElement("iframe");a.style.display="none",a.setAttribute("src","/favicon.ico");let r=function(){setTimeout(function(){a.removeEventListener("load",r),document.body.removeChild(a)},0)};a.addEventListener("load",r),document.body.appendChild(a)}},cloneJSON(s,n=!1){if(n===!0)return $A.jsonParse($A.jsonStringify(s));try{return structuredClone(s)}catch{return typeof s!="object"||s===null?s:$A.jsonParse($A.jsonStringify(s))}},jsonParse(s,n=t){if(s===null)return n||{};if(typeof s=="object")return s;try{return JSON.parse(s.replace(/\n/g,"\\n").replace(/\r/g,"\\r"))}catch{return n||{}}},jsonStringify(s,n=t){if(typeof s!="object")return s;try{return JSON.stringify(s)}catch{return n||""}},resize(s,n){let a=$A(s);if(a.length===0)return;let r=parseInt(a.outerHeight()),o=parseInt(a.outerWidth()),l=setInterval(()=>{a.length===0&&clearInterval(l);let c=parseInt(a.outerHeight()),u=parseInt(a.outerWidth());(r!==c||o!==u)&&(r=c,o=u,$A.openLog&&console.log(o,r),typeof n=="function"&&n())},250)},screenOrientation(){return $A(e).width()-$A(e).height()>50?"landscape":"portrait"},isIos(){let s=typeof e!="undefined"&&e.navigator.userAgent.toLowerCase();return s&&/iphone|ipad|ipod|ios/.test(s)},isAndroid(){let s=typeof e!="undefined"&&e.navigator.userAgent.toLowerCase();return s&&s.indexOf("android")>0},isWeixin(){return(typeof e!="undefined"&&e.navigator.userAgent.toLowerCase()).match(/MicroMessenger/i)+""=="micromessenger"},isChrome(){return(typeof e!="undefined"&&e.navigator.userAgent.toLowerCase()).match(/Chrome/i)+""=="chrome"},isDesktop(){return!(typeof e!="undefined"&&e.navigator.userAgent).match(/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i)},getObject(s,n){let a=s;return this.count(s)===0||this.count(n)===0?"":(n.replace(/,/g,"|").replace(/\./g,"|").split("|").some(o=>{a=typeof a[o]=="undefined"?"":a[o]}),a)},count(s){try{if(typeof s=="undefined")return 0;if(typeof s=="number"&&(s+=""),typeof s.length=="number")return s.length;{let n=0,a;for(a in s)n++;return n}}catch{return 0}},stringLength(s){return typeof s=="number"||typeof s=="string"?(s+"").length:0},arrayLength(s){if(s)try{return s.length}catch{return 0}return 0},objImplode(s){if(s===null)return"";let n="";return $A.each(s,(a,r)=>{r!==null&&(typeof r=="object"&&this.count(r)>0?n+=this.objImplode(r):n+=String(r))}),n.replace(/\s/g,"").replace(/undefined/g,"")},urlParameter(s){const n=this.urlParameterAll();return typeof s=="undefined"?n:n[s]},urlParameterAll(){const s=e.location.search||e.location.hash||"",n=s.indexOf("?"),a=n!==-1?s.substring(n+1).split("&"):[],r={};for(let o=0;o<a.length;o++){const l=a[o].split("=");l.length===2&&(r[l[0]]=l[1])}return r},removeURLParameter(s,n){if(n instanceof Array)return n.forEach(a=>{s=$A.removeURLParameter(s,a)}),s;try{const a=new URL(s);return a.searchParams.delete(n),a.toString()}catch{const r=s.split("?");if(r.length>=2){const o=encodeURIComponent(n)+"=",l=r[1].split(/[&;]/g);for(let c=l.length;c-- >0;)l[c].lastIndexOf(o,0)!==-1&&l.splice(c,1);return r[0]+(l.length>0?"?"+l.join("&"):"")}return s}},urlAddParams(s,n){if(!$A.isJson(n))return s;try{const a=new URL(s);for(let r in n)!n.hasOwnProperty(r)||a.searchParams.set(r,n[r]);return a.toString()}catch{s&&(s=this.removeURLParameter(s,Object.keys(n))),s+="",s+=s.indexOf("?")===-1?"?":"";for(let r in n)!n.hasOwnProperty(r)||(s+="&"+r+"="+encodeURIComponent(n[r]));return this.rightDelete(s.replace("?&","?"),"?")}},urlReplaceHash(s,n=t){n===t&&(n=s,s=e.location.href),s=s||e.location.href;try{const a=new URL(s);return n=String(n||""),n&&n.startsWith("#")&&(n=n.substring(1)),a.hash=n,a.toString()}catch{if(!n)return s.replace(/#.*$/,"");const r=n.startsWith("#")?n:"#"+n;return s.includes("#")?s.replace(/#.*$/,r):s+r}},reloadUrl(){if($A.isEEUIApp&&$A.isAndroid()){let s=e.location.href,n="_=",a=new RegExp(n+"\\d+"),r=$A.dayjs().valueOf();if(s.indexOf(n)>-1)s=s.replace(a,n+r);else if(s.indexOf("?")>-1){let o=s.split("?");o[1]?s=o[0]+"?"+n+r+"&"+o[1]:s=o[0]+"?"+n+r}else s.indexOf("#")>-1?s=s.split("#")[0]+"?"+n+r+location.hash:s=s+"?"+n+r;$A.eeuiAppSetUrl(s)}else e.location.reload()},stringConnect(...s){let n=null,a="";return s.forEach(r=>{n===null?n=r:r&&(r&&a&&(a+=n),a+=r)}),a},objEquals(s,n){let a=s instanceof Object,r=n instanceof Object;if(!a||!r)return s===n;if(Object.keys(s).length!==Object.keys(n).length)return!1;for(let o in s)if(s.hasOwnProperty(o)){let l=s[o]instanceof Object,c=n[o]instanceof Object;if(l&&c){if(!this.objEquals(s[o],n[o]))return!1}else if(s[o]!=n[o])return!1}return!0},insert2Input(s,n){if(s===null||typeof s!="object")return;typeof s.length=="number"&&s.length>0&&(s=s[0]);let a=typeof s.$el=="object"?$A(s.$el):$A(s);if(a.length===0)return;let r=a[0];if(r.tagName!="INPUT"&&r.tagName!="TEXTAREA"&&(a.find("input").length===0?a=a.find("textarea"):a=a.find("input")),a.length===0||(r=a[0],r.tagName!="INPUT"&&r.tagName!="TEXTAREA"))return;let o=a.val(),{selectionStart:l,selectionEnd:c}=r;a.val(`${o.substring(0,l)}${n}${o.substring(c,o.length)}`),r.dispatchEvent(new Event("input")),setTimeout(()=>{if(r.setSelectionRange){let u=o.substring(0,l).length+n.length;r.focus(),r.setSelectionRange(u,u)}},10)},iOSKeyboardFixer(){!this.isIos()||(document.body.scrollTop=document.body.scrollTop+1,document.body.scrollTop=document.body.scrollTop-1)},loadScript(s){return new Promise(async(n,a)=>{if(s=$A.originUrl(s),this.rightExists(s,".css"))return n(this.loadCss(s));let r=0;for(;this.__loadScript[s]==="loading";)if(await new Promise(l=>setTimeout(l,1e3)),r++,r>30)return a("\u52A0\u8F7D\u8D85\u65F6");if(this.__loadScript[s]==="loaded")return n(!1);this.__loadScript[s]="loading";const o=document.createElement("script");o.type="text/javascript",o.readyState?o.onreadystatechange=()=>{(o.readyState==="loaded"||o.readyState==="complete")&&(o.onreadystatechange=null,this.__loadScript[s]="loaded",n(!0))}:(o.onload=()=>{this.__loadScript[s]="loaded",n(!0)},o.onerror=l=>{this.__loadScript[s]="error",a(l)}),this.rightExists(s,".js")?o.src=s+"?hash="+e.systemInfo.version:o.src=s,document.head?document.head.appendChild(o):document.body.appendChild(o)})},loadScriptS(s){return new Promise(n=>{let a=0;const r=()=>{++a<s.length?this.loadScript(s[a]).finally(r):n()};this.loadScript(s[0]).finally(r)})},__loadScript:{},loadCss(s){return new Promise(async(n,a)=>{if(s=$A.originUrl(s),this.rightExists(s,".js"))return n(this.loadScript(s));let r=0;for(;this.__loadCss[s]==="loading";)if(await new Promise(l=>setTimeout(l,1e3)),r++,r>30)return a("\u52A0\u8F7D\u8D85\u65F6");if(this.__loadCss[s]==="loaded")return n(!1);this.__loadCss[s]="loading";const o=document.createElement("link");o.readyState?o.onreadystatechange=()=>{(o.readyState=="loaded"||o.readyState=="complete")&&(o.onreadystatechange=null,this.__loadCss[s]="loaded",n(!0))}:(o.onload=()=>{this.__loadCss[s]="loaded",n(!0)},o.onerror=l=>{this.__loadCss[s]="error",a(l)}),o.rel="stylesheet",this.rightExists(s,".css")?o.href=s+"?hash="+e.systemInfo.version:o.href=s,document.getElementsByTagName("head").item(0).appendChild(o)})},loadCssS(s){return new Promise(n=>{let a=0;const r=()=>{++a<s.length?this.loadCss(s[a]).finally(r):n()};this.loadCss(s[0]).finally(r)})},__loadCss:{},loadIframe(s,n=0){return new Promise(async(a,r)=>{s=$A.originUrl(s);let o=0;for(;this.__loadIframe[s]==="loading";)if(await new Promise(c=>setTimeout(c,1e3)),o++,o>30)return r("\u52A0\u8F7D\u8D85\u65F6");if(this.__loadIframe[s]==="loaded")return a(!1);this.__loadIframe[s]="loading";const l=document.createElement("iframe");l.style.display="none",l.src=s,l.onload=()=>{this.__loadIframe[s]="loaded",a(!0),n>0&&setTimeout(()=>{document.body.removeChild(l),delete this.__loadIframe[s]},n)},l.onerror=c=>{this.__loadIframe[s]="error",r(c)},document.body.appendChild(l)})},loadIframes(s){return new Promise(n=>{let a=0;const r=()=>{++a<s.length?this.loadIframe(s[a]).finally(r):n()};this.loadIframe(s[0]).finally(r)})},__loadIframe:{},bytesToSize(s){if(s===0)return"0 B";let n=1024,a=["B","KB","MB","GB","TB","PB","EB","ZB","YB"],r=Math.floor(Math.log(s)/Math.log(n));return typeof a[r]=="undefined"?"0 B":$A.runNum(s/Math.pow(n,r),2)+" "+a[r]},html2Escape(s){return!s||s==""?"":s.replace(/[<>&"]/g,function(n){return{"<":"<",">":">","&":"&",'"':"""}[n]})},getDomain(s){const n=/http(s)?:\/\/([^\/]+)/i,a=`${s}`.match(n);return a!=null&&a.length>0?a[2]:""},getProtocol(s){try{return new URL(s).protocol}catch{return""}},scrollToView(s,n){if(!!s){if(typeof n=="undefined"||n===!0?n={block:"start",inline:"nearest"}:n===!1&&(n={block:"end",inline:"nearest"}),typeof n.scrollMode!="undefined"&&typeof e.scrollIntoView=="function"){e.scrollIntoView(s,n);return}try{s.scrollIntoView(n)}catch{typeof e.scrollIntoView=="function"&&e.scrollIntoView(s,n)}}},scrollIntoViewIfNeeded(s=null,n=!1){if(!!s)if(!n&&typeof s.scrollIntoViewIfNeeded=="function")s.scrollIntoViewIfNeeded();else{const a={block:"nearest",inline:"nearest"};n&&(a.behavior="smooth"),$A.scrollToView(s,a)}},addClassWithTimeout(s,n,a){!s||!n||!a||(s.classList.add(n),setTimeout(()=>{!s||s.classList.remove(n)},a))},scrollIntoAndShake(s,n=!0){if(!s)return;(Array.isArray(s)?s:[s]).forEach(r=>{r&&(n&&$A.scrollIntoViewIfNeeded(r),$A.addClassWithTimeout(r,"common-shake",800))})},scaleToScale(s,n,a,r=t){const o=a,l=typeof r=="undefined"?a:r;let c,u;return s>0&&n>0?(s/n>=o/l?s>o?(c=o,u=n*o/s):(c=s,u=n):n>l?(u=l,c=s*l/n):(c=s,u=n),{width:parseInt(c),height:parseInt(u)}):{width:s,height:n}},scrollPreventThrough(s){if(!s||s.getAttribute("data-prevent-through")==="yes")return;s.setAttribute("data-prevent-through","yes");let n=null;s.addEventListener("touchstart",function(a){n=Math.floor(a.targetTouches[0].clientY)}),s.addEventListener("touchmove",function(a){let r=Math.floor(a.targetTouches[0].clientY),o=s.scrollTop,l=s.scrollHeight,c=s.clientHeight;(o<=0&&r-n>0||o>=l-c&&r-n<0)&&a.preventDefault()},!1)},getAttr(s,n,a=""){return s?s.getAttribute(n):a},sortObject(s,n=[]){return Object.keys(s).sort().reduce(function(a,r){return n.includes(r)||(a[r]=s[r]),a},{})},extractImageParameter(s){const n=s.match(/\s+src=(["'])([^'"]*)\1/i),a=s.match(/\s+width=(["'])([^'"]*)\1/i),r=s.match(/\s+height=(["'])([^'"]*)\1/i);return{src:n?n[2]:null,width:$A.runNum(a?a[2]:0),height:$A.runNum(r?r[2]:0),original:s}},extractImageParameterAll(s){return(s.match(/<img\s+[^>]*?>/g)||[]).map(a=>this.extractImageParameter(a))},cutString(s,n,a=0,r="..."){const o=[...s];if(n<0&&(n=Math.max(o.length+n,0)),a<0&&(a=Math.max(o.length+a,0)),n===0||a>=o.length)return"";const l=o.slice(a,a+n);return a+n<o.length?l.join("")+r:l.join("")},getLastSameElements(s,n){return s.slice(-s.filter((a,r)=>a===n[n.length-s.length+r]).length)},async findElementWithRetry(s,n=3,a=500){for(let r=1;r<=n;r++){const o=s();if(o)return o;r<n&&await new Promise(l=>setTimeout(l,a))}throw new Error(`Element not found after ${n} attempts`)},async waitForCondition(s,n=300,a=3e3){const r=Date.now();for(;Date.now()-r<a;){if(s())return!0;await new Promise(o=>setTimeout(o,n))}throw new Error("\u7B49\u5F85\u6761\u4EF6\u8D85\u65F6")},repeatWithCount(s,n,a=0,r=0){if(typeof s!="function")return()=>{};let o=0,l=null;const c=()=>{l&&(clearTimeout(l),l=null)},u=()=>{if(o>=r){c();return}try{if(s(o)===!0){c();return}}catch(h){c(),console.error("Error in callback function:",h);return}o++,l=setTimeout(u,a)};return l=setTimeout(u,n),c},generateBase64Image(s,n=1,a=0,r=0){return new Promise(o=>{let l=document.createElement("canvas"),c=l.getContext("2d"),u=new Image;u.crossOrigin="Anonymous",u.onload=()=>{let h=u.width,d=u.height;if((a>0||r>0)&&h>0&&d>0){const f=h/d;if(a>0&&r>0){if(h>a||d>r){const g=a/h,b=r/d,v=Math.min(g,b);h=Math.round(h*v),d=Math.round(d*v)}}else a>0&&h>a?(h=a,d=Math.round(h/f)):r>0&&d>r&&(d=r,h=Math.round(d*f))}l.width=h,l.height=d,c.drawImage(u,0,0,h,d);let p="png";$A.rightExists(s,"jpg")||$A.rightExists(s,"jpeg")?p="jpeg":$A.rightExists(s,"webp")?p="webp":$A.rightExists(s,"git")&&(p="git"),o(l.toDataURL(`image/${p}`,n)),l=null,u=null,c=null},u.src=s})},isFullScreen(){const s=$A(e).width(),n=$A(e).height(),a=e.screen.width,r=e.screen.height,o=s>n?s:n,l=s>n?n:s,c=a>r?a:r,u=a>r?r:a,h=Math.abs(o-c),d=Math.abs(l-u);return h<=1&&d<=1}}),i.extend({__IDBTimer:{},async IDBTest(){try{$A.isIos()&&await Y.setItem("__test__",$A.dayjs().valueOf()),$A.openLog&&console.log("IDBTest OK")}catch(s){$A.openLog?(console.error("IDBTest Error: ",s),$A.modalWarning({content:s.message,onOk:()=>{$A.reloadUrl()}})):$A.reloadUrl()}},IDBSave(s,n,a=100){typeof this.__IDBTimer[s]!="undefined"&&(clearTimeout(this.__IDBTimer[s]),delete this.__IDBTimer[s]),this.__IDBTimer[s]=setTimeout(async r=>{await Y.setItem(s,n),delete this.__IDBTimer[s]},a)},IDBDel(s){Y.removeItem(s).then(n=>{})},IDBSet(s,n){return Y.setItem(s,n)},IDBRemove(s){return Y.removeItem(s)},IDBClear(){return Y.clear()},IDBValue(s){return Y.getItem(s)},async IDBString(s,n=""){const a=await this.IDBValue(s);return typeof a=="string"||typeof a=="number"?a:n},async IDBInt(s,n=0){const a=await this.IDBValue(s);return typeof a=="number"?a:n},async IDBBoolean(s,n=!1){const a=await this.IDBValue(s);return typeof a=="boolean"?a:n},async IDBArray(s,n=[]){const a=await this.IDBValue(s);return this.isArray(a)?a:n},async IDBJson(s,n={}){const a=await this.IDBValue(s);return this.isJson(a)?a:n}}),i.extend({setStorage(s,n){return this.__operationStorage(s,n)},getStorageValue(s){return this.__operationStorage(s)},getStorageString(s,n=""){let a=this.__operationStorage(s);return typeof a=="string"||typeof a=="number"?a:n},getStorageInt(s,n=0){let a=this.__operationStorage(s);return typeof a=="number"?a:n},getStorageBoolean(s,n=!1){let a=this.__operationStorage(s);return typeof a=="boolean"?a:n},getStorageArray(s,n=[]){let a=this.__operationStorage(s);return this.isArray(a)?a:n},getStorageJson(s,n={}){let a=this.__operationStorage(s);return this.isJson(a)?a:n},existsStorage(s){return this.__operationStorage(s)!==null},__operationStorage(s,n){if(!s)return;let a="__state__";const r=s.split(".");if(r.length>1){const o=r.shift();a="__state:"+o+"__",s=r.join(".")}if(typeof n=="undefined")return this.__loadFromlLocal(s,null,a);this.__savaToLocal(s,n,a)},__savaToLocal(s,n,a){try{typeof a=="undefined"&&(a="__seller__");let r=e.localStorage[a];r?r=JSON.parse(r):r={},r[s]=n,e.localStorage[a]=JSON.stringify(r)}catch{}},__loadFromlLocal(s,n,a){try{typeof a=="undefined"&&(a="__seller__");let r=e.localStorage[a];return!r||(r=JSON.parse(r),!r||typeof r[s]=="undefined")?n:r[s]}catch{return n}}}),i.extend({setSessionStorage(s,n){return this.__operationSessionStorage(s,n)},getSessionStorageValue(s){return this.__operationSessionStorage(s)},getSessionStorageString(s,n=""){let a=this.__operationSessionStorage(s);return typeof a=="string"||typeof a=="number"?a:n},getSessionStorageInt(s,n=0){let a=this.__operationSessionStorage(s);return typeof a=="number"?a:n},__operationSessionStorage(s,n){if(!s)return;let a="__state__";if(s.substring(0,5)==="cache"&&(a="__state:"+s+"__"),typeof n=="undefined")return this.__loadFromSession(s,"",a);this.__savaToSession(s,n,a)},__savaToSession(s,n,a){try{typeof a=="undefined"&&(a="__seller__");let r=e.sessionStorage.getItem(a);r?r=JSON.parse(r):r={},r[s]=n,e.sessionStorage.setItem(a,JSON.stringify(r))}catch{}},__loadFromSession(s,n,a){try{typeof a=="undefined"&&(a="__seller__");let r=e.sessionStorage.getItem(a);return!r||(r=JSON.parse(r),!r||typeof r[s]=="undefined")?n:r[s]}catch{return n}}}),i.extend({serializeObject(s,n){if(typeof s=="string")return s;let a=[],r="&";n=n||[];let o;function l(u){if(n.length>0){let h="";for(let d=0;d<n.length;d++)d===0?h+=n[d]:h+="["+encodeURIComponent(n[d])+"]";return h+"["+encodeURIComponent(u)+"]"}else return encodeURIComponent(u)}function c(u){return encodeURIComponent(u)}for(let u in s)if(s.hasOwnProperty(u)){let h;if(Array.isArray(s[u])){h=[];for(let d=0;d<s[u].length;d++)!Array.isArray(s[u][d])&&typeof s[u][d]=="object"?(o=n.slice(),o.push(u),o.push(d+""),h.push(i.serializeObject(s[u][d],o))):h.push(l(u)+"[]="+c(s[u][d]));h.length>0&&a.push(h.join(r))}else s[u]===null?a.push(l(u)+"="):typeof s[u]=="object"?(o=n.slice(),o.push(u),h=i.serializeObject(s[u],o),h!==""&&a.push(h)):typeof s[u]!="undefined"&&s[u]!==""?a.push(l(u)+"="+c(s[u])):s[u]===""&&a.push(l(u))}return a.join(r)},globalAjaxOptions:{},ajaxSetup(s){s.type&&(s.method=s.type),i.each(s,function(n,a){i.globalAjaxOptions[n]=a})},_jsonpRequests:0,ihttp(s){let n={method:"GET",data:!1,async:!0,cache:!0,user:"",password:"",headers:{},xhrFields:{},statusCode:{},processData:!0,dataType:"text",contentType:"application/x-www-form-urlencoded",timeout:0};const a=["beforeSend","error","complete","success","statusCode"];s.type&&(s.method=s.type),i.each(i.globalAjaxOptions,function(p,f){a.indexOf(p)<0&&(n[p]=f)});function r(p,f,g){let b=arguments;p&&i(document).trigger(p,f),g&&(g in i.globalAjaxOptions&&i.globalAjaxOptions[g](b[3],b[4],b[5],b[6]),s[g]&&s[g](b[3],b[4],b[5],b[6]))}i.each(n,function(p,f){p in s||(s[p]=f)}),s.url||(s.url=e.location.toString());let o=s.url.indexOf("?")>=0?"&":"?",l=s.method.toUpperCase();if((l==="GET"||l==="HEAD"||l==="OPTIONS"||l==="DELETE")&&s.data){let p;typeof s.data=="string"?s.data.indexOf("?")>=0?p=s.data.split("?")[1]:p=s.data:p=i.serializeObject(s.data),p.length&&(s.url+=o+p,o==="?"&&(o="&"))}if(s.dataType==="json"&&s.url.indexOf("callback=")>=0){let p="__jsonp_"+Date.now()+i._jsonpRequests++,f,g=s.url.split("callback="),b=g[0]+"callback="+p;if(g[1].indexOf("&")>=0){let M=g[1].split("&").filter(function(A){return A.indexOf("=")>0}).join("&");M.length>0&&(b+="&"+M)}let v=document.createElement("script");v.type="text/javascript",v.onerror=function(){clearTimeout(f),r(t,t,"error",null,"scripterror"),r("ajaxComplete ajax:complete",{scripterror:!0},"complete",null,"scripterror")},v.src=b,e[p]=function(M){clearTimeout(f),r(t,t,"success",M),v.parentNode.removeChild(v),v=null,delete e[p]},document.querySelector("head").appendChild(v),s.timeout>0&&(f=setTimeout(function(){v.parentNode.removeChild(v),v=null,r(t,t,"error",null,"timeout")},s.timeout));return}(l==="GET"||l==="HEAD"||l==="OPTIONS"||l==="DELETE")&&s.cache===!1&&(s.url+=o+"_nocache="+Date.now());const c=new XMLHttpRequest,u=Date.now();c.requestUrl=s.url,c.requestParameters=s,c.open(l,s.url,s.async,s.user,s.password);let h=null;if((l==="POST"||l==="PUT"||l==="PATCH")&&s.data)if(s.processData)if([ArrayBuffer,Blob,Document,FormData].indexOf(s.data.constructor)>=0)h=s.data;else{let f="---------------------------"+Date.now().toString(16);s.contentType==="multipart/form-data"?c.setRequestHeader("Content-Type","multipart/form-data; boundary="+f):c.setRequestHeader("Content-Type",s.contentType),h="";let g=i.serializeObject(s.data);if(s.contentType==="multipart/form-data"){f="---------------------------"+Date.now().toString(16),g=g.split("&");let b=[];for(let v=0;v<g.length;v++)b.push('Content-Disposition: form-data; name="'+g[v].split("=")[0]+`"\r
|
|
\r
|
|
`+g[v].split("=")[1]+`\r
|
|
`);h="--"+f+`\r
|
|
`+b.join("--"+f+`\r
|
|
`)+"--"+f+`--\r
|
|
`}else h=g}else h=s.data;s.headers&&i.each(s.headers,function(p,f){c.setRequestHeader(p,f)}),typeof s.crossDomain=="undefined"&&(s.crossDomain=/^([\w-]+:)?\/\/([^\/]+)/.test(s.url)&&RegExp.$2!==e.location.host),s.crossDomain||c.setRequestHeader("X-Requested-With","XMLHttpRequest"),s.xhrFields&&i.each(s.xhrFields,function(p,f){c[p]=f});let d;return c.onload=function(p){if(d&&clearTimeout(d),c.status>=200&&c.status<300||c.status===0){const f=Date.now()-u,g=j=>{try{return c.getResponseHeader(j)}catch{return null}},b=g("Date"),v=g("Last-Modified"),M=g("Age");c.timeData={serverDate:b,lastModified:v,age:M,duration:f};let A;if(s.dataType==="json")try{A=JSON.parse(c.responseText),r("ajaxSuccess ajax:success",{xhr:c},"success",A,c.status,c)}catch(j){console.error(j),r("ajaxError ajax:error",{xhr:c,parseerror:!0},"error",c,"parseerror")}else A=c.responseType==="text"||c.responseType===""?c.responseText:c.response,r("ajaxSuccess ajax:success",{xhr:c},"success",A,c.status,c)}else r("ajaxError ajax:error",{xhr:c},"error",c,c.status);s.statusCode&&(i.globalAjaxOptions.statusCode&&i.globalAjaxOptions.statusCode[c.status]&&i.globalAjaxOptions.statusCode[c.status](c),s.statusCode[c.status]&&s.statusCode[c.status](c)),r("ajaxComplete ajax:complete",{xhr:c},"complete",c,c.status)},c.onerror=function(p){d&&clearTimeout(d),r("ajaxError ajax:error",{xhr:c},"error",c,c.status),r("ajaxComplete ajax:complete",{xhr:c,error:!0},"complete",c,"error")},r("ajaxStart ajax:start",{xhr:c},"start",c),r(t,t,"beforeSend",c),s.timeout>0&&(c.onabort=function(){d&&clearTimeout(d)},d=setTimeout(function(){c.abort(),r("ajaxError ajax:error",{xhr:c,timeout:!0},"error",c,"timeout"),r("ajaxComplete ajax:complete",{xhr:c,timeout:!0},"complete",c,"timeout")},s.timeout)),c.send(h),c}}),i.extend({ajaxc(s){if(!s||typeof s.url=="undefined")return!1;typeof s.data=="undefined"&&(s.data={}),typeof s.cache=="undefined"&&(s.cache=!1),typeof s.method=="undefined"&&(s.method="GET"),typeof s.timeout=="undefined"&&(s.timeout=3e4),typeof s.dataType=="undefined"&&(s.dataType="json"),typeof s.before=="undefined"&&(s.before=()=>{}),typeof s.complete=="undefined"&&(s.complete=()=>{}),typeof s.after=="undefined"&&(s.after=()=>{}),typeof s.success=="undefined"&&(s.success=()=>{}),typeof s.error=="undefined"&&(s.error=()=>{}),typeof s.header=="undefined"&&(s.header={});const n=$A.randomString(16);s.before(),$A.__ajaxList.push({key:n,id:s.requestId||null,url:s.url,request:$A.ihttp({url:s.url,data:s.data,cache:s.cache,headers:s.header,method:s.method.toUpperCase(),contentType:"OPTIONS",crossDomain:!0,dataType:s.dataType,timeout:s.timeout,success:function(a,r,o){$A.__ajaxList=$A.__ajaxList.filter(l=>l.key!==n),s.complete(),s.success(a,r,o),s.after(!0)},error:function(a,r){$A.__ajaxList=$A.__ajaxList.filter(o=>o.key!==n),s.complete(),s.error(a,r),s.after(!1)}})})},ajaxcCancel(s){if(!s)return 0;let n=0;return $A.__ajaxList.forEach((a,r)=>{a.id===s&&(n++,a.request&&a.request.abort())}),n>0&&($A.__ajaxList=$A.__ajaxList.filter(a=>a.id!==s)),n},__ajaxList:[]}),Q.extend(Os),Q.extend(Bs),i.extend({dayjs(s=t){return/^\d{13,}$/.test(s)?Q(Number(s)):/^\d{10,}$/.test(s)?Q(Number(s)*1e3):(s===null&&(s=0),Q(s))},daytz(s=t){const n=$A.dayjs(s);return $A.timezoneDifference?n.subtract($A.timezoneDifference,"hour"):n},updateTimezone(s=t){if(typeof s!="undefined"&&($A.timezoneName=s),!$A.timezoneName)return $A.timezoneDifference=0;const n=$A.daytz().startOf("hour"),a=n.tz($A.timezoneName);return $A.timezoneDifference=n.startOf("hour").diff(a.format("YYYY-MM-DD HH:mm:ss"),"hour")},timezoneName:null,timezoneDifference:0,newDateString(s,n="YYYY-MM-DD HH:mm:ss"){if(s===null)return s;if(s instanceof Q||s instanceof Date||$A.isDateString(s))s=$A.dayjs(s).format(n);else if($A.isJson(s)){s=Object.assign({},s);for(let a in s)!s.hasOwnProperty(a)||(s[a]=$A.newDateString(s[a],n))}else $A.isArray(s)&&(s=Object.assign([],s),s.forEach((a,r)=>{s[r]=$A.newDateString(a,n)}));return s},newTimestamp(s){if(s===null)return s;if(s instanceof Q||s instanceof Date||$A.isDateString(s))s=$A.dayjs(s).unix();else if($A.isJson(s)){s=Object.assign({},s);for(let n in s)!s.hasOwnProperty(n)||(s[n]=$A.newTimestamp(s[n]))}else $A.isArray(s)&&(s=Object.assign([],s),s.forEach((n,a)=>{s[a]=$A.newTimestamp(n)}));return s},isDateString(s){return typeof s=="string"&&/^\d{4}[/-]\d{2}[/-]\d{2}(\s+\d{2}(:\d{2}(:\d{2})?)?)?$/i.test(s)},secondsToTime(s){let n="";s<0&&(n="-",s=-s);let a;const r=Math.floor(s/86400),o=Math.floor(s%86400/3600),l=Math.floor(s%86400%3600/60),c=Math.floor(s%86400%3600%60);return r>0?o>0?a=r+"d,"+$A.zeroFill(o,2)+"h":l>0?a=r+"d,"+$A.zeroFill(l,2)+"min":c>0?a=r+"d,"+$A.zeroFill(c,2)+"s":a=r+"d":o>0?a=$A.zeroFill(o,2)+":"+$A.zeroFill(l,2)+":"+$A.zeroFill(c,2):l>0?a=$A.zeroFill(l,2)+":"+$A.zeroFill(c,2):c>0&&(a=$A.zeroFill(c,2)+"s"),n+a},timeFormat(s){const n=$A.daytz(),a=$A.dayjs(s);return n.format("YYYY-MM-DD")===a.format("YYYY-MM-DD")?a.format("HH:mm"):n.clone().subtract(1,"day").format("YYYY-MM-DD")===a.format("YYYY-MM-DD")?`${$A.L("\u6628\u5929")} ${a.format("HH:mm")}`:n.year()===a.year()?a.format("MM-DD"):a.format("YYYY-MM-DD")||""},countDownFormat(s,n){s=$A.daytz(s),n=$A.dayjs(n);const a=n.diff(s,"second");return a==0?"0s":Math.abs(a)<86400*7?$A.secondsToTime(a):$A.timeFormat(n)}}),i.extend({sortDay(s,n){return s===n?0:($A.dayjs(s).valueOf()||0)-($A.dayjs(n).valueOf()||0)},sortFloat(s,n){return s===n?0:(parseFloat(s)||0)-(parseFloat(n)||0)}}),e.$A=i})(window,window.$=window.jQuery=ms);(function(e){const i=e.$A;i.extend({eeuiModule(t="eeui"){return typeof requireModuleJs=="function"?requireModuleJs(t):null},eeuiModulePromise(t="eeui"){return new Promise((s,n)=>{try{const a=$A.eeuiModule(t);if(!a)return n({msg:"module not found"});s(a)}catch(a){n({msg:a.message})}})},eeuiAppVersion(){var t;return(t=$A.eeuiModule())==null?void 0:t.getVersion()},eeuiAppLocalVersion(){var t;return(t=$A.eeuiModule())==null?void 0:t.getLocalVersion()},eeuiAppAlert(t,s){var n;typeof s!="function"&&(s=a=>{}),(n=$A.eeuiModule())==null||n.alert(t,s)},eeuiAppToast(t){var s;(s=$A.eeuiModule())==null||s.toast(t)},eeuiAppRewriteUrl(t){var s;return(s=$A.eeuiModule())==null?void 0:s.rewriteUrl(t)},eeuiAppGetPageInfo(t){var s;return(s=$A.eeuiModule())==null?void 0:s.getPageInfo(t||"")},eeuiAppOpenPage(t,s){var n;typeof s!="function"&&(s=a=>{}),typeof t.callback=="function"&&(s=t.callback,delete t.callback),(n=$A.eeuiModule())==null||n.openPage(Object.assign({softInputMode:"resize"},t),s)},eeuiAppOpenWeb(t){var s;(s=$A.eeuiModule())==null||s.openWeb(t)},eeuiAppSetPageBackPressed(t,s){var n;typeof s!="function"&&(s=a=>{}),(n=$A.eeuiModule())==null||n.setPageBackPressed(t,s)},eeuiAppGoDesktop(){var t;(t=$A.eeuiModule())==null||t.goDesktop()},eeuiAppKeepScreenOn(){var t;(t=$A.eeuiModule())==null||t.keepScreenOn()},eeuiAppKeepScreenOff(){var t;(t=$A.eeuiModule())==null||t.keepScreenOff()},eeuiAppKeyboardHide(){var t;(t=$A.eeuiModule())==null||t.keyboardHide()},eeuiAppSendMessage(t){var s;(s=$A.eeuiModule("webview"))==null||s.sendMessage(t)},eeuiAppSetUrl(t){var s;(s=$A.eeuiModule("webview"))==null||s.setUrl(t)},eeuiAppGetWebviewSnapshot(t){var s;(s=$A.eeuiModule("webview"))==null||s.createSnapshot(t)},eeuiAppShowWebviewSnapshot(){var t;(t=$A.eeuiModule("webview"))==null||t.showSnapshot()},eeuiAppHideWebviewSnapshot(){var t;(t=$A.eeuiModule("webview"))==null||t.hideSnapshot()},eeuiAppScan(t){var s;(s=$A.eeuiModule())==null||s.openScaner({},n=>{switch(n.status){case"success":t(n.text);break}})},eeuiAppCheckUpdate(){var t;(t=$A.eeuiModule())==null||t.checkUpdate()},eeuiAppGetThemeName(){var t;return(t=$A.eeuiModule())==null?void 0:t.getThemeName()},eeuiAppKeyboardStatus(){var t;return(t=$A.eeuiModule())==null?void 0:t.keyboardStatus()},eeuiAppSetVariate(t,s){var n;(n=$A.eeuiModule())==null||n.setVariate(t,s)},eeuiAppGetVariate(t,s=""){var n;return(n=$A.eeuiModule())==null?void 0:n.getVariate(t,s)},eeuiAppSetCachesString(t,s,n=0){var a;(a=$A.eeuiModule())==null||a.setCachesString(t,s,n)},eeuiAppGetCachesString(t,s=""){var n;return(n=$A.eeuiModule())==null?void 0:n.getCachesString(t,s)},eeuiAppSetHapticBackEnabled(t){$A.eeuiModule("webview").setHapticBackEnabled(t)},eeuiAppSetDisabledUserLongClickSelect(t){const s=$A.eeuiModule("webview");if($A.__disabledUserLongClickSelectTimer&&clearTimeout($A.__disabledUserLongClickSelectTimer),!/^\d+$/.test(t)){s.setDisabledUserLongClickSelect(t);return}s.setDisabledUserLongClickSelect(!0),$A.__disabledUserLongClickSelectTimer=setTimeout(()=>{$A.__disabledUserLongClickSelectTimer=null,s.setDisabledUserLongClickSelect(!1)},t)},__disabledUserLongClickSelectTimer:null,eeuiAppCopyText(t){var s;(s=$A.eeuiModule())==null||s.copyText(t)},eeuiAppSetScrollDisabled(t){var s;t?$A.__setScrollDisabledNum++:$A.__setScrollDisabledNum--,(s=$A.eeuiModule("webview"))==null||s.setScrollEnabled($A.__setScrollDisabledNum<=0)},__setScrollDisabledNum:0,eeuiAppShakeToEditEnabled(t){var s,n;t?(s=$A.eeuiModule())==null||s.shakeToEditOn():(n=$A.eeuiModule())==null||n.shakeToEditOff()},eeuiAppGetLatestPhoto(t=60,s=10){return new Promise(async(n,a)=>{try{const r=await $A.eeuiModule(),o=s>0?setTimeout(()=>{a({msg:"timeout"})},s*1e3):null;r.getLatestPhoto(l=>{if(o&&clearTimeout(o),l.status!=="success"||l.thumbnail.width<10||!l.thumbnail.base64||l.original.width<10||!l.original.path)return a({msg:l.error||"no photo"});if(t>0&&l.created+t<$A.dayjs().unix())return a({msg:"photo expired"});if($A.__latestPhotoCreated&&$A.__latestPhotoCreated===l.created)return a({msg:"photo expired"});$A.__latestPhotoCreated=l.created,n(l)})}catch(r){a(r)}})},__latestPhotoCreated:null,eeuiAppUploadPhoto(t,s=30){return new Promise(async(n,a)=>{try{const r=await $A.eeuiModulePromise(),o=s>0?setTimeout(()=>{a({msg:"timeout"})},s*1e3):null;if(!$A.isJson(t))return a({msg:"params error"});let l=null;typeof t.onReady!="undefined"&&(l=t.onReady,delete t.onReady),r.uploadPhoto(t,c=>{if(c.status==="ready"){typeof l=="function"&&l(c.id);return}if(o&&clearTimeout(o),c.status!=="success")return a({msg:c.error||"upload failed"});if(c.data.ret!==1)return a({msg:c.data.msg||"upload failed"});n(c.data.data)})}catch(r){a(r)}})},eeuiAppCancelUploadPhoto(t){return new Promise(async(s,n)=>{try{(await $A.eeuiModulePromise()).cancelUploadPhoto(t,r=>{if(r.status!=="success")return n({msg:r.error||"cancel failed"});s(r)})}catch(a){n(a)}})},eeuiAppGetSafeAreaInsets(){return new Promise(async(t,s)=>{try{(await $A.eeuiModulePromise()).getSafeAreaInsets(a=>{if(a.status!=="success")return s({msg:a.error||"get failed"});t(a)})}catch(n){s(n)}})},eeuiAppConvertLanguage(){return{zh:"zh-Hans","zh-CHT":"zh-Hant"}[I]||I},eeuiAppGetDeviceInfo(){return new Promise(async(t,s)=>{try{(await $A.eeuiModulePromise()).getDeviceInfo(a=>{if(a.status!=="success")return s({msg:a.error||"get failed"});t(a)})}catch(n){s(n)}})}}),e.$A=i})(window);const R={mdi:null,mds:null,formatMsg:e=>{const i=e.match(/<body[^>]*>([\s\S]*?)<\/body>/i);i&&(e=i[1]),e=e.replace(/<(link|script|style)[^>]*>[\s\S]*?<\/\1>|<(link|script|style)[^>]*\/?>/gi,"");const t=/<img\s+[^>]*?>/g,s=e.match(t);if(s){const n={};s.forEach(a=>{n[a]=`<div class="no-size-image-box">${a}</div>`});for(const[a,r]of Object.entries(n))e=e.replace(a,r)}return e=e.replace(/<a\s+([^>]*)>/gi,(n,a)=>a.includes("target=")?n.replace(/target=(['"])[^'"]*\1/i,'target="_blank"'):`<a ${a} target="_blank" rel="noopener noreferrer">`),e},highlightBlock:(e,i="")=>`<pre class="code-block-wrapper"><div class="code-block-header"><span class="code-block-header__lang">${i}</span><span class="code-block-header__copy">${$A.L("\u590D\u5236")}</span></div><code class="hljs code-block-body ${i}">${e}</code></pre>`},ne={config:{maxItems:200,maxTitleLength:200,maxDescLength:1e3,buttonLabels:{task:"\u521B\u5EFA\u4EFB\u52A1",subtask:"\u521B\u5EFA\u5B50\u4EFB\u52A1"}},escapeHtml(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")},validateInput(e,i){return!e||typeof e!="string"?"":e.length>i?e.substring(0,i)+"...":e},clearEmptyReasoning(e){return e.replace(/:::\s*reasoning\s*[\r\n]*\s*:::/g,"")},initReasoningPlugin(e){e.block.ruler.before("fence","reasoning",(i,t,s,n)=>{const a=i.bMarks[t]+i.tShift[t],r=i.eMarks[t];if(!i.src.slice(a,r).trim().match(/^:::\s*reasoning(?:\s+(\S+))?$/))return!1;if(n)return!0;let c=t+1,u=[];for(;c<s;){const d=i.bMarks[c]+i.tShift[c],p=i.eMarks[c];if(i.src.slice(d,p).trim()===":::")break;u.push(i.getLines(c,c+1,i.tShift[c],!0)),c++}let h=i.push("reasoning_open","div",1);return h.attrs=[["class","apply-reasoning"]],h=i.push("reasoning_label_open","div",1),h.attrs=[["class","reasoning-label"]],h=i.push("text","",0),h.content=$A.L("\u601D\u8003\u8FC7\u7A0B"),i.push("reasoning_label_close","div",-1),h=i.push("reasoning_content_open","div",1),h.attrs=[["class","reasoning-content"]],u.length>0&&i.md.block.parse(u.join(`
|
|
`),i.md,i.env,i.tokens),i.push("reasoning_content_close","div",-1),i.push("reasoning_close","div",-1),i.line=c+1,!0})},initCreateTaskPlugin(e){e.block.ruler.before("fence","create-task",(i,t,s,n)=>{const a=i.bMarks[t]+i.tShift[t],r=i.eMarks[t],l=i.src.slice(a,r).trim().match(/^:::\s*(create-task-list|create-subtask-list)(?:\s+(\S+))?$/);if(!l)return!1;if(n)return!0;const c=l[1]==="create-task-list"?"task":"subtask",u=this.config.buttonLabels[c]||"",h=l[2]||"";let d=t+1,p=[];for(;d<s;){const F=i.bMarks[d]+i.tShift[d],ee=i.eMarks[d],te=i.src.slice(F,ee);if(te.trim()===":::")break;p.push(te),d++}const f=[];let g=null,b=!1,v=[];p.forEach(F=>{const ee=F.trim().match(/^title:\s*(.+)$/),te=F.trim().match(/^desc:\s*(.*)$/);ee?(g&&(v.length>0&&(g.desc=v.join(`
|
|
`)),f.push(g)),g={title:ee[1]},b=!1,v=[]):te?(b=!0,te[1]&&v.push(te[1])):b&&F.trim()&&!F.trim().startsWith("title:")&&v.push(F.trim())}),g&&(v.length>0&&(g.desc=v.join(`
|
|
`)),f.push(g));const M=f.length>1,A=f.slice(0,this.config.maxItems).map((F,ee)=>["<li>",M?`<div class="task-index">${ee+1}.</div>`:"",'<div class="task-item">',`<div class="title">${this.escapeHtml(this.validateInput(F.title,this.config.maxTitleLength))}</div>`,F.desc&&l[1]==="create-task-list"?`<div class="desc">${this.escapeHtml(this.validateInput(F.desc,this.config.maxDescLength))}</div>`:"","</div>","</li>"].join("")),j=['<div class="apply-create-task">',"<ul>",A.join(""),"</ul>",'<div class="apply-button">',`<div class="apply-create-${c}-button${h?" "+h:""}">${$A.L(u)}</div>`,"</div>","</div>"],q=i.push("html_block","",0);return q.content=j.join(""),q.map=[t,d],i.line=d+1,!0})}};function Fs(e){return e==="..."?'<div class="input-blink"></div>':(R.mdi===null&&(R.mdi=new ns({html:!0,breaks:!0,linkify:!1,typographer:!0,highlight(i,t){if(!!(t&&$e.getLanguage(t))){const n=t!=null?t:"";return R.highlightBlock($e.highlight(i,{language:n}).value,n)}return R.highlightBlock($e.highlightAuto(i).value,"")}}),R.mdi.use(ys,{attrs:{target:"_blank",rel:"noopener noreferrer"}}),R.mdi.use(ws,{blockClass:"katexmath-block rounded-md p-[10px]",errorColor:" #cc0000"}),ne.initReasoningPlugin(R.mdi),ne.initCreateTaskPlugin(R.mdi)),e=ne.clearEmptyReasoning(e),e=R.mdi.render(e),R.formatMsg(e))}function zs(e){return R.mds===null&&(R.mds=ns(),ne.initReasoningPlugin(R.mds),ne.initCreateTaskPlugin(R.mds)),e=ne.clearEmptyReasoning(e),R.mds.render(e)}function Ns(e){if(e==="")return!1;const i=e.replace(/<p>/g,`
|
|
`).replace(/(^|\s+)```([\s\S]*)```/gm,"");if(/<\/(strong|s|em|u|ol|ul|li|blockquote|pre|img|a)>/i.test(i)||/<span[^>]+?class="mention"[^>]*?>/i.test(i))return!1;const t=document.createElement("div");t.style.position="fixed",t.style.top="0",t.style.left="0",t.style.width="10px",t.style.height="10px",t.style.overflow="hidden",t.style.zIndex="-9999",t.style.opacity="0",t.innerHTML=e,document.body.appendChild(t);const s=t.innerText;return document.body.removeChild(t),!!(/(^|\s+)#+\s(.*)$/m.test(s)||/(^|\s+)\*\*(.*)\*\*/m.test(s)||/(^|\s+)__(.*)__/m.test(s)||/(^|\s+)\*(.*)\*/m.test(s)||/(^|\s+)_(.*)_/m.test(s)||/(^|\s+)~~(.*)~~/m.test(s)||/(^|\s+)\[(.*?)\]\((.*?)\)/m.test(s)||/(^|\s+)!\[(.*?)\]\((.*?)\)/m.test(s)||/(^|\s+)`(.*?)`/m.test(s)||/(^|\s+)```([\s\S]*?)```/m.test(s))}(function(e){const i=e.$A;i.extend({apiUrl(t){if(t=="privacy"){const s=$A.getDomain(e.systemInfo.apiUrl);if(s==""||s=="public")return"https://www.dootask.com/privacy.html";t="../privacy.html"}if(t.substring(0,2)==="//"||t.substring(0,7)==="http://"||t.substring(0,8)==="https://"||t.substring(0,6)==="ftp://"||t.substring(0,1)==="/")return t;for(typeof e.systemInfo.apiUrl=="string"?t=e.systemInfo.apiUrl+t:t=e.location.origin+"/api/"+t;t.indexOf("/../")!==-1;)t=t.replace(/\/(((?!\/).)*)\/\.\.\//,"/");return t},mainUrl(t=null){return t||(t=""),t.substring(0,2)==="//"||t.substring(0,7)==="http://"||t.substring(0,8)==="https://"||t.substring(0,6)==="ftp://"||t.substring(0,1)==="/"?t:$A.apiUrl(`../${t}`)},originUrl(t){if(t.substring(0,2)==="//"||t.substring(0,7)==="http://"||t.substring(0,8)==="https://"||t.substring(0,6)==="ftp://"||t.substring(0,1)==="/")return t;for(typeof e.systemInfo.origin=="string"?t=e.systemInfo.origin+t:t=e.location.origin+"/"+t;t.indexOf("/../")!==-1;)t=t.replace(/\/(((?!\/).)*)\/\.\.\//,"/");return t},onlinePreviewUrl(t,s){return $A.mainUrl(`online/preview/${t}?key=${s}&version=${e.systemInfo.version}&__=${$A.dayjs().valueOf()}`)},projectParameterTemplate(t){return{project_id:t,menuInit:!1,menuType:"column",chat:!1,showMy:!0,showHelp:!0,showUndone:!0,showCompleted:!1,completedTask:!1}},timeOptionShortcuts(){const t=$A.daytz().startOf("day").toDate();return[{text:$A.L("\u4ECA\u5929"),value(){return[t,$A.daytz().endOf("day").toDate()]}},{text:$A.L("\u660E\u5929"),value(){return[t,$A.daytz().add(1,"day").endOf("day").toDate()]}},{text:$A.L("\u672C\u5468"),value(){return[t,$A.daytz().endOf("week").toDate()]}},{text:$A.L("\u672C\u6708"),value(){return[t,$A.daytz().endOf("month").toDate()]}},{text:$A.L("3\u5929"),value(){return[t,$A.daytz().add(2,"day").endOf("day").toDate()]}},{text:$A.L("5\u5929"),value(){return[t,$A.daytz().add(4,"day").endOf("day").toDate()]}},{text:$A.L("7\u5929"),value(){return[t,$A.daytz().add(6,"day").endOf("day").toDate()]}}]},dialogTags(t){let s=[];return t.type=="group"&&["project","task"].includes(t.group_type)&&$A.isJson(t.group_info)&&(t.group_type=="task"&&t.group_info.complete_at&&s.push({color:"success",text:"\u5DF2\u5B8C\u6210"}),t.group_info.deleted_at?s.push({color:"red",text:"\u5DF2\u5220\u9664"}):t.group_info.archived_at&&s.push({color:"default",text:"\u5DF2\u5F52\u6863"})),s},dialogCompleted(t){return this.dialogTags(t).find(({color:s})=>s=="success")},getDialogNum(t){return t&&((t.silence?0:t.unread)||t.mention||t.mark_unread)||0},getDialogUnread(t,s){return t&&((s||!t.silence?t.unread:0)||t.mark_unread)||0},getDialogMention(t){return(t==null?void 0:t.mention)||0},getMsgTextPreview({type:t,text:s},n=null){if(!s)return"";if(t==="md"){if(s=s.replace(/:::\s*reasoning[\s\S]*?:::/g,""),/:::\s*reasoning\s+/.test(s))return $A.L("\u601D\u8003\u4E2D...");let a="";const r=s.match(/^#{1,2}\s+(.+)/m);r&&(a=r[1].trim()),a?s=a:s=zs(s)}return s=s.replace(/<img\s+class="emoticon"[^>]*?alt="(\S+)"[^>]*?>/g,"[$1]"),s=s.replace(/<img\s+class="emoticon"[^>]*?>/g,`[${$A.L("\u52A8\u753B\u8868\u60C5")}]`),n?s=s.replace(/<img\s+class="browse"[^>]*?src="(\S+)"[^>]*?>/g,function(a,r){const o=$A.extractImageParameter(a);if(o.width&&o.height){const l=$A.imageRatioHandle({src:o.src,width:o.width,height:o.height,crops:{ratio:2,percentage:"80x0"},scaleSize:40});r=l.src,n=`${n}" style="width:${l.width}px;height:${l.height}px`}return`[image:${r}]`}):s=s.replace(/<img\s+class="browse"[^>]*?>/g,`[${$A.L("\u56FE\u7247")}]`),s=s.replace(/<\/p><p>/g,"</p> <p>").replace(/<[^>]+>/g,"").replace(/ /g," ").replace(/"/g,'"').replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/\s+/g," "),n?(s=s.replace(/\[image:(.*?)\]/g,`<img class="${n}" src="$1">`),s=s.replace(/\{\{RemoteURL\}\}/g,this.apiUrl("../"))):s=$A.cutString(s,50),s},formatMsgBasic(t){if(!t)return t;if($A.isJson(t))for(let s in t)!t.hasOwnProperty(s)||(t[s]=$A.formatMsgBasic(t[s]));else $A.isArray(t)?t.forEach((s,n)=>{t[n]=$A.formatMsgBasic(s)}):typeof t=="string"&&(t=t.replace(/\{\{RemoteURL\}\}/g,this.apiUrl("../")));return t},formatTextMsg(t,s){if(!t)return"";const n=new RegExp(`<span class="mention user" data-id="${s}">`,"g");return t=t.trim().replace(/(\n\x20*){3,}/g,`
|
|
|
|
`),t=t.replace(/ /g," "),t=t.replace(/<p><\/p>/g,"<p><br/></p>"),t=t.replace(/\{\{RemoteURL\}\}/g,$A.mainUrl()),t=t.replace(n,`<span class="mention me" data-id="${s}">`),/https?:\/\//.test(t)&&(t=t.split(/(<[^>]*>)/g).map(r=>(r&&!/<[^>]*>/.test(r)&&(r=r.replace(/(^|[^'"])((https?:\/\/)((\w|=|\?|\.|\/|&|-|:|\+|%|;|#|@|,|!)+))/g,'$1<a href="$2" target="_blank">$2</a>')),r)).join("")),$A.extractImageParameterAll(t).some(r=>{if(r.src&&r.width&&r.height){const o=$A.imageRatioHandle({src:r.src,width:r.width,height:r.height,crops:{ratio:5,percentage:"320x0"},scaleSize:r.original.indexOf("emoticon")>-1?150:220}),l=r.original.replace(/\s+width=/," original-width=").replace(/\s+height=/," original-height=").replace(/\s+src=(["'])([^'"]*)\1/i,` style="width:${o.width}px;height:${o.height}px" src="${rs(o.src)}"`);t=t.replace(r.original,l)}else t=t.replace(r.original,`<div class="no-size-image-box">${r.original}</div>`)}),t},getTextImagesInfo(t){const s=$A.mainUrl(),n=t.match(new RegExp("<img[^>]*?>","g")),a=[];if(n){const r=new RegExp(`src=(["'])([^'"]*)\\1`),o=new RegExp('(original-)?width="(\\d+)"'),l=new RegExp('(original-)?height="(\\d+)"');n.some(c=>{const u=c.match(r),h=c.match(o),d=c.match(l);u&&a.push({src:u[2].replace(/\{\{RemoteURL\}\}/g,s),width:h?h[2]:-1,height:d?d[2]:-1})})}return a},getMsgSimpleDesc(t,s=null){if(!$A.isJson(t))return"";switch(t.type){case"text":return $A.getMsgTextPreview(t.msg,s);case"longtext":return t.msg.desc?$A.cutString(t.msg.desc,50):"["+$A.L("\u957F\u6587\u672C")+"]";case"vote":return`[${$A.L("\u6295\u7968")}]`+$A.getMsgTextPreview(t.msg,s);case"word-chain":return`[${$A.L("\u63A5\u9F99")}]`+$A.getMsgTextPreview(t.msg,s);case"record":return`[${$A.L("\u8BED\u97F3")}]`;case"location":return`[${$A.L("\u4F4D\u7F6E")}] ${$A.cutString(t.msg.title,50)}`;case"meeting":return`[${$A.L("\u4F1A\u8BAE")}] ${$A.cutString(t.msg.name,50)}`;case"file":return $A.fileMsgSimpleDesc(t.msg,s);case"tag":return`[${$A.L(t.msg.action==="remove"?"\u53D6\u6D88\u6807\u6CE8":"\u6807\u6CE8")}] ${$A.getMsgSimpleDesc(t.msg.data)}`;case"top":return`[${$A.L(t.msg.action==="remove"?"\u53D6\u6D88\u7F6E\u9876":"\u7F6E\u9876")}] ${$A.getMsgSimpleDesc(t.msg.data)}`;case"todo":return`[${$A.L(t.msg.action==="remove"?"\u53D6\u6D88\u5F85\u529E":t.msg.action==="done"?"\u5B8C\u6210":"\u8BBE\u5F85\u529E")}] ${$A.getMsgSimpleDesc(t.msg.data)}`;case"notice":const n=t.msg.source==="api"?t.msg.notice:$A.L(t.msg.notice);return $A.cutString(n,50);case"template":return $A.templateMsgSimpleDesc(t.msg);case"preview":return t.msg.preview;default:return`[${$A.L("\u672A\u77E5\u7684\u6D88\u606F")}]`}},fileMsgSimpleDesc(t,s=null){if(t.type=="img"){if(s){const n=$A.imageRatioHandle({src:t.thumb,width:parseInt(t.width),height:parseInt(t.height),crops:{ratio:2,percentage:"80x0"},scaleSize:40});return`<img class="${s}" style="width:${n.width}px;height:${n.height}px" src="${n.src}">`}return`[${$A.L("\u56FE\u7247")}]`}else if(t.ext=="mp4")return`[${$A.L("\u89C6\u9891")}]`;return`[${$A.L("\u6587\u4EF6")}] ${$A.cutString(t.name,50)}`},templateMsgSimpleDesc(t){if(t.title_raw)return t.title_raw;if(t.type==="task_list"&&$A.arrayLength(t.list)===1)return(t.source==="api"?t.title:$A.L(t.title))+": "+$A.cutString(t.list[0].name,50);if(t.title)return t.source==="api"?t.title:$A.L(t.title);if(t.type==="content"&&typeof t.content=="string"&&t.content!==""){const s=t.source==="api"?t.content:$A.L(t.content);return $A.cutString(s,50)}return $A.L("\u672A\u77E5\u7684\u6D88\u606F")},getFileName(t){let s=t.name||"",n=t.ext||"";return n!=""&&(s+="."+n),s},isDooServer(){const t=$A.getDomain($A.mainUrl());return/dootask\.com$/.test(t)||/hitosea\.com$/.test(t)||/^127\.0\.0\.1/.test(t)||/^(10)\./.test(t)||/^(172)\.(1[6-9]|2[0-9]|3[0-1])\./.test(t)||/^(192)\.(168)\./.test(t)},thumbRestore(t){return`${t}`.replace(/_thumb\.(png|jpg|jpeg)$/,"").replace(/\/crop\/([^\/]+)$/,"")},dataHasFolder(t){const{items:s}=t;if(s){for(const n of s)if(n.kind==="directory"||n.kind==="file"&&n.webkitGetAsEntry().isDirectory)return!0}return!1},imageRatioHandle(t){if(!$A.isJson(t.crops))return t;if($A.imageRatioJudge(t.src)){t.src=$A.thumbRestore(t.src)+"/crop/"+Object.keys(t.crops).map(n=>`${n}:${t.crops[n]}`).join(",");const s=$A.imageRatioExceed(t.width,t.height,t.crops.ratio);s>0&&(t.width>t.height?t.width=t.height*s:t.height=t.width*s)}if(t.scaleSize){const s=$A.scaleToScale(t.width,t.height,t.scaleSize);t.width=s.width,t.height=s.height}return t},imageRatioJudge(t){return/\.(png|jpg|jpeg)$/.test(t)?$A.getDomain(t)==$A.getDomain($A.mainUrl()):!1},imageRatioExceed(t,s,n,a=.5){return t&&s&&n&&(t/s>n+a||s/t>n+a)?n:0},filterInvalidLine(t){return t?`${t}`.replace(/^(<p>\s*<\/p>)+|(<p>\s*<\/p>)+$/gi,"").replace(/^(<p><br\/*><\/p>)+|(<p><br\/*><\/p>)+$/gi,""):""},loadVConsole(t=void 0){if(typeof t=="string"){switch(t){case"log.o":return $A.IDBSet("logOpen","open").then(s=>{$A.loadVConsole()}),!0;case"log.c":return $A.IDBSet("logOpen","close").then(s=>{$A.loadVConsole()}),!0}return!1}$A.IDBString("logOpen").then(s=>{typeof e.vConsole!="undefined"&&(e.vConsole.destroy(),e.vConsole=null),$A.openLog=s==="open",$A.openLog&&$A.loadScript("js/vconsole.min.js").then(n=>{e.vConsole=new e.VConsole({onReady:()=>{console.log("VConsole: onReady")},onClearLog:()=>{console.log("VConsole: onClearLog")}})}).catch(n=>{$A.modalError("VConsole \u7EC4\u4EF6\u52A0\u8F7D\u5931\u8D25\uFF01")})})},reportExtractTime(t){const s=/(?:.*?)(?:\[([^\[\]]*)\]\s*)?(?:\[([^\[\]]*)\]\s*)?$/,n=t.match(s);if(!n)return"";const a=`${n[1]||""}`.replace(/^\s*\((.*)\)\s*$/,"$1"),r=`${n[2]||""}`.replace(/^\s*\((.*)\)\s*$/,"$1");return r&&a?`${r} (${a})`:r||a||""},generateColorVarStyle(t,s=[],n="custom-color",a=null){if(typeof t!="string"||!/^#([0-9a-fA-F]{6})$/.test(t))return a;const r=parseInt(t.substring(1,3),16),o=parseInt(t.substring(3,5),16),l=parseInt(t.substring(5,7),16);return $A.isJson(a)||(a={}),s.forEach(c=>{if(typeof c=="number"&&c>=0&&c<=100){const u=Math.round(c/100*100)/100;a[`--${n}-${c}`]=`rgba(${r}, ${o}, ${l}, ${u})`}}),a[`--${n}-100`]=t,a},convertWorkflow(t){let s=null,n=t,a=null;if($A.isJson(t)&&(n=t.flow_item_name,n.indexOf("|")===-1&&(n.complete_at?n=$A.L("\u5DF2\u5B8C\u6210"):n=$A.L("\u672A\u5B8C\u6210"))),n&&n.indexOf("|")!==-1){const r=`${n}||`.split("|");s=r[0],n=r[1],a=r[2]}return{status:s,name:n,color:a}}}),i.extend({modalConfig(t){return typeof t=="undefined"?t={content:"Undefined"}:typeof t=="string"&&(t={content:t}),t.title=t.title||(typeof t.render=="undefined"?$A.modalTranslation("\u6E29\u99A8\u63D0\u793A",t.language):""),t.content=t.content||"",t.okText=t.okText||$A.modalTranslation("\u786E\u5B9A",t.language),t.cancelText=t.cancelText||$A.modalTranslation("\u53D6\u6D88",t.language),t.language!==!1&&(delete t.language,t.title=$A.L(t.title),t.content=$A.L(t.content),t.okText=$A.L(t.okText),t.cancelText=$A.L(t.cancelText)),t},modalTranslation(t,s){return s!==!1?t:$A.L(t)},modalInput(t,s=0){if(s>0){setTimeout(()=>{$A.modalInput(t)},s);return}typeof t=="string"&&(t={title:t});let n="modalInput_"+$A.randomString(6),a={type:t.type||"text",value:t.value,placeholder:$A.L(t.placeholder),elementId:n};$A.isJson(t.inputProps)&&(a=Object.assign(a,t.inputProps));const r=()=>new Promise((l,c)=>{if(!t.onOk){c();return}const u=t.onOk(t.value);if(!u){l();return}u.then?u.then(h=>{h&&$A.messageSuccess(h),l()}).catch(h=>{h&&$A.messageError(h),c()}):(typeof u=="string"&&$A.messageError(u),c())}),o=()=>{typeof t.onCancel=="function"&&t.onCancel()};$A.eeuiAppKeyboardHide(),$A.Modal.confirm({render:l=>l("div",[l("div",{style:{fontSize:"16px",fontWeight:"500",marginBottom:"20px"}},$A.L(t.title)),l("Input",{props:a,on:{input:c=>{t.value=c},"on-enter":c=>{$A(c.target).parents(".ivu-modal-body").find(".ivu-btn-primary").click()}}})]),onOk:r,onCancel:o,loading:!0,okText:$A.L(t.okText||"\u786E\u5B9A"),cancelText:$A.L(t.cancelText||"\u53D6\u6D88"),okType:t.okType||"primary",cancelType:t.cancelType||"text"}),setTimeout(()=>{document.getElementById(n)&&document.getElementById(n).focus()})},modalConfirm(t,s=0){if(t!==!1){if(s>0){setTimeout(()=>{$A.modalConfirm(t)},s);return}if(t=$A.modalConfig(t),t.loading){const{onOk:n}=t;t.onOk=()=>new Promise((a,r)=>{if(!n){r();return}const o=n();if(!o){a();return}o.then?o.then(l=>{l&&$A.messageSuccess(l),a()}).catch(l=>{l&&$A.messageError(l),r()}):(typeof o=="string"&&$A.messageError(o),r())})}$A.eeuiAppKeyboardHide(),$A.Modal.confirm($A.modalConfig(t))}},modalSuccess(t,s=0){if(t!==!1){if(s>0){setTimeout(()=>{$A.modalSuccess(t)},s);return}$A.eeuiAppKeyboardHide(),$A.Modal.success($A.modalConfig(t))}},modalInfo(t,s=0){if(t!==!1){if(s>0){setTimeout(()=>{$A.modalInfo(t)},s);return}$A.eeuiAppKeyboardHide(),$A.Modal.info($A.modalConfig(t))}},modalWarning(t,s=0){if(t!==!1&&!($A.isJson(t)&&t.content===!1)){if(s>0){setTimeout(()=>{$A.modalWarning(t)},s);return}$A.eeuiAppKeyboardHide(),$A.Modal.warning($A.modalConfig(t))}},modalError(t,s=0){if(t!==!1&&!($A.isJson(t)&&t.content===!1)){if(s>0){setTimeout(()=>{$A.modalError(t)},s);return}$A.eeuiAppKeyboardHide(),$A.Modal.error($A.modalConfig(t))}},modalAlert(t){t!==!1&&($A.eeuiAppKeyboardHide(),alert($A.L(t)))},messageSuccess(t){$A.Message.success($A.L(t))},messageInfo(t){$A.Message.info($A.L(t))},messageWarning(t){t!==!1&&$A.Message.warning($A.L(t))},messageError(t){t!==!1&&$A.Message.error($A.L(t))},noticeConfig(t){return typeof t=="undefined"?t={desc:"Undefined"}:typeof t=="string"&&(t={desc:t}),t.title=$A.L(t.title||(typeof t.render=="undefined"?"\u6E29\u99A8\u63D0\u793A":"")),t.desc=$A.L(t.desc||""),t},noticeSuccess(t){t!==!1&&$A.Notice.success($A.noticeConfig(t))},noticeWarning(t){t!==!1&&$A.Notice.warning($A.noticeConfig(t))},noticeError(t){t!==!1&&(typeof t=="string"&&(t={desc:t,duration:6}),$A.Notice.error($A.noticeConfig(t)))}}),i.extend({dark:{utils:{supportMode(){let t=typeof e!="undefined"&&e.navigator.userAgent.toLowerCase();return`${t.match(/Chrome/i)}`=="chrome"?"chrome":`${t.match(/Webkit/i)}`=="webkit"?"webkit":null},defaultFilter(){return"-webkit-filter: invert(100%) hue-rotate(180deg) contrast(90%) !important; filter: invert(100%) hue-rotate(180deg) contrast(90%) !important;"},reverseFilter(){return"-webkit-filter: invert(100%) hue-rotate(180deg) contrast(100%) !important; filter: invert(100%) hue-rotate(180deg) contrast(100%) !important;"},noneFilter(){return"-webkit-filter: none !important; filter: none !important;"},addExtraStyle(){try{return""}catch{return""}},addStyle(t,s,n){s=s||"style";let a=document;if(a.getElementById(t))return;let o=a.createElement(s);o.rel="stylesheet",o.id=t,s==="style"?o.innerHTML=n:o.href=n,document.head.appendChild(o)},getClassList(t){return t.classList||[]},addClass(t,s){return this.getClassList(t).add(s),this},removeClass(t,s){return this.getClassList(t).remove(s),this},hasClass(t,s){return this.getClassList(t).contains(s)},hasElementById(t){return document.getElementById(t)},removeElementById(t){let s=document.getElementById(t);s&&s.parentNode.removeChild(s)}},createDarkStyle(){this.utils.addStyle("dark-mode-style","style",`
|
|
@media screen {
|
|
html {
|
|
${this.utils.defaultFilter()}
|
|
will-change: transform;
|
|
}
|
|
|
|
/* Default Reverse rule */
|
|
img,
|
|
video,
|
|
iframe,
|
|
canvas,
|
|
[style*="background:url"],
|
|
[style*="background: url"],
|
|
[style*="background-image:url"],
|
|
[style*="background-image: url"],
|
|
[background],
|
|
.emoji-original,
|
|
.no-dark-content,
|
|
.no-dark-before:before {
|
|
${this.utils.reverseFilter()}
|
|
will-change: transform;
|
|
}
|
|
|
|
.no-dark-content img,
|
|
.no-dark-content video,
|
|
.no-dark-content iframe,
|
|
.no-dark-content canvas,
|
|
.no-dark-content [style*="background:url"],
|
|
.no-dark-content [style*="background: url"],
|
|
.no-dark-content [style*="background-image:url"],
|
|
.no-dark-content [style*="background-image: url"],
|
|
.no-dark-content [background] {
|
|
${this.utils.noneFilter()}
|
|
}
|
|
|
|
.fullscreen-mode img,
|
|
.fullscreen-mode video,
|
|
.fullscreen-mode iframe,
|
|
.fullscreen-mode canvas {
|
|
${this.utils.noneFilter()}
|
|
}
|
|
|
|
/* Text contrast */
|
|
html {
|
|
text-shadow: 0 0 0 !important;
|
|
}
|
|
|
|
/* Full screen */
|
|
.no-filter,
|
|
:-webkit-full-screen,
|
|
:-webkit-full-screen *,
|
|
:-moz-full-screen,
|
|
:-moz-full-screen *,
|
|
:fullscreen,
|
|
:fullscreen * {
|
|
${this.utils.noneFilter()}
|
|
}
|
|
|
|
/* Page background */
|
|
html {
|
|
min-width: 100%;
|
|
min-height: 100%;
|
|
}
|
|
html[data-platform="desktop"] {
|
|
background-color: #0D0D0D;
|
|
}
|
|
.child-view {
|
|
background-color: #fff;
|
|
}
|
|
.page-login {
|
|
background-color: #f8f8f8;
|
|
}
|
|
${this.utils.addExtraStyle()}
|
|
}
|
|
|
|
@media print {
|
|
.no-print {
|
|
display: none !important;
|
|
}
|
|
}`)},enableDarkMode(){!this.utils.supportMode()||this.isDarkEnabled()||(this.createDarkStyle(),this.utils.addClass(document.body,"dark-mode-reverse"))},disableDarkMode(){!this.isDarkEnabled()||(this.utils.removeElementById("dark-mode-style"),this.utils.removeClass(document.body,"dark-mode-reverse"))},autoDarkMode(){let t=e.matchMedia&&e.matchMedia("(prefers-color-scheme: dark)").matches;$A.isEEUIApp&&(t=$A.eeuiAppGetThemeName()==="dark"),t?this.enableDarkMode():this.disableDarkMode()},isDarkEnabled(){return this.utils.hasClass(document.body,"dark-mode-reverse")}}}),e.$A=i})(window);var Hs=function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("transition",{attrs:{name:"fade"}},[e.floatSpinnerLoad>0?t("div",{staticClass:"common-float-spinner"},[t("Loading",{staticClass:"common-float-circular"})],1):e._e()])},Ws=[];function m(e,i,t,s,n,a,r,o){var l=typeof e=="function"?e.options:e;i&&(l.render=i,l.staticRenderFns=t,l._compiled=!0),s&&(l.functional=!0),a&&(l._scopeId="data-v-"+a);var c;if(r?(c=function(d){d=d||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,!d&&typeof __VUE_SSR_CONTEXT__!="undefined"&&(d=__VUE_SSR_CONTEXT__),n&&n.call(this,d),d&&d._registeredComponents&&d._registeredComponents.add(r)},l._ssrRegister=c):n&&(c=o?function(){n.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:n),c)if(l.functional){l._injectStyles=c;var u=l.render;l.render=function(p,f){return c.call(f),u(p,f)}}else{var h=l.beforeCreate;l.beforeCreate=h?[].concat(h,c):[c]}return{exports:e,options:l}}const Vs={name:"FloatSpinner",computed:{...x(["floatSpinnerLoad"])}},xe={};var qs=m(Vs,Hs,Ws,!1,Ys,null,null,null);function Ys(e){for(let i in xe)this[i]=xe[i]}var Ks=function(){return qs.exports}();const C=Is();var Js=function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("div",{staticClass:"common-right-bottom"},[e.showSSO?t("div",{staticClass:"common-right-bottom-link",on:{click:e.useSSOLogin}},[e._v(" "+e._s(e.$L("\u4F7F\u7528 SSO \u767B\u5F55"))+" ")]):e._e(),e.showDown?[e.downloadUrl?t("a",{staticClass:"common-right-bottom-link",attrs:{href:e.downloadUrl,target:"_blank"}},[t("Icon",{attrs:{type:"md-download"}}),e._v(" "+e._s(e.$L("\u5BA2\u6237\u7AEF\u4E0B\u8F7D"))+" ")],1):e.updateVersion&&e.updateBottomShow&&e.$Electron?t("div",{staticClass:"common-right-bottom-link",on:{click:function(s){e.updateShow=!0}}},[t("Icon",{attrs:{type:"md-download"}}),e._v(" "+e._s(e.$L("\u66F4\u65B0\u5BA2\u6237\u7AEF"))+" ")],1):e._e()]:e._e(),e.showPrivacy?t("a",{staticClass:"common-right-bottom-link",attrs:{target:"_blank",href:e.$A.apiUrl("privacy")}},[e._v(" \u300A"+e._s(e.$L("\u9690\u79C1\u653F\u7B56"))+"\u300B ")]):e._e(),t("Modal",{attrs:{closable:!1,"mask-closable":!1,"class-name":"common-right-bottom-notification"},model:{value:e.updateShow,callback:function(s){e.updateShow=s},expression:"updateShow"}},[t("div",{attrs:{slot:"header"},slot:"header"},[t("div",{staticClass:"notification-head"},[t("div",{staticClass:"notification-title"},[e._v(e._s(e.$L("\u53D1\u73B0\u65B0\u7248\u672C")))]),t("Tag",{attrs:{color:"volcano"}},[e._v("v"+e._s(e.systemVersion)+" -> v"+e._s(e.updateVersion))])],1),e.$Platform==="mac"?t("div",{staticClass:"notification-tip"},[e._v(e._s(e.$L("\u79BB\u6700\u65B0\u7248\u672C\u53EA\u6709\u4E00\u6B65\u4E4B\u9065\u4E86\uFF01\u91CD\u65B0\u542F\u52A8\u5E94\u7528\u5373\u53EF\u5B8C\u6210\u66F4\u65B0\u3002")))]):e._e()]),t("Scrollbar",{attrs:{"class-name":"notification-body"}},[t("VMPreview",{attrs:{value:e.updateNote}})],1),t("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[t("Button",{attrs:{type:"default"},on:{click:function(s){e.updateShow=!1}}},[e._v(e._s(e.$L("\u7A0D\u540E")))]),t("Button",{attrs:{type:"primary",loading:e.updateIng},on:{click:e.updateQuitAndInstall}},[e._v(e._s(e.$L(e.$Platform==="mac"?"\u91CD\u65B0\u542F\u52A8":"\u7ACB\u5373\u5347\u7EA7")))])],1)],1)],2)},Gs=[];const Qs=()=>w(()=>import("./preview.6dd8164f.js"),["js/build/preview.6dd8164f.js","js/build/openpgp_hi.15f91b1d.js","js/build/index.40a8e116.js","js/build/jquery.bb849206.js","js/build/@babel.f9bcab46.js","js/build/dayjs.f27b22c9.js","js/build/localforage.f2f8f716.js","js/build/markdown-it.bda97caf.js","js/build/mdurl.ce6c1dd8.js","js/build/uc.micro.8d343c98.js","js/build/entities.48a44fec.js","js/build/linkify-it.c5e8196e.js","js/build/punycode.js.4b3f125a.js","js/build/highlight.js.ab8aeea4.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.897ae552.js","js/build/vue.fd9b772e.js","js/build/vuex.cc7cb26e.js","js/build/axios.79c8b3d5.js","js/build/mitt.1ea0a2a3.js","js/build/quill-hi.b7430b13.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.f1b7ce48.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.e8ef3f14.js","js/build/lodash.isequal.d6a986d0.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.df04b444.js","js/build/quill-mention-hi.26cde5e9.js","js/build/view-design-hi.18b9f7fe.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.50be9c5e.js","js/build/clipboard.058ef547.js","js/build/vuedraggable.9fd6afed.js","js/build/sortablejs.d74243d9.js","js/build/vue-resize-observer.c3c9ca4e.js","js/build/element-sea.1d49e96e.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.0bdc1850.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.49abba38.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"]),Xs={name:"RightBottom",components:{VMPreview:Qs},data(){return{loadIng:0,apiVersion:"",systemVersion:window.systemInfo.version,updateVersion:"",updateNote:"",updateShow:!1,updateBottomShow:!1,updateIng:!1,downloadUrl:""}},mounted(){this.prefetchResources(),this.checkVersion(),this.$Electron&&(C.on("updateNotification",this.onUpdateShow),this.$Electron.listener("updateDownloaded",e=>{this.$store.state.clientNewVersion=e.version,this.updateVersion=e.version,this.updateNote=e.releaseNotes||this.$L("\u6CA1\u6709\u66F4\u65B0\u63CF\u8FF0\u3002"),this.updateShow=!$A.strExists(this.updateNote,`[${this.updateVersion}-Silence]`)}))},beforeDestroy(){C.off("updateNotification",this.onUpdateShow)},watch:{updateShow(e){e&&(this.updateBottomShow=!0)}},computed:{showSSO(){return this.$isSoftware&&["login"].includes(this.routeName)},showDown(){return this.$isEEUIApp||this.windowTouch||this.routeName=="manage-dashboard"&&this.windowPortrait?!1:["login","index","manage-dashboard"].includes(this.routeName)},showPrivacy(){return $A.isDooServer()&&this.$isEEUIApp&&["login"].includes(this.routeName)}},methods:{onUpdateShow(){this.updateShow=!0},isNotServer(){let e=$A.getDomain(window.systemInfo.apiUrl);return this.$isSoftware&&(e==""||e=="public")},prefetchResources(){this.isNotServer()||this.$Electron&&$A.$isSubElectron||me.get($A.apiUrl("system/prefetch")).then(({status:e,data:i})=>{e===200&&i.forEach(t=>{const s=document.createElement("link");s.rel="prefetch",s.href=t,s.onload=()=>{document.head.removeChild(s)},s.onerror=()=>{document.head.removeChild(s)},document.head.appendChild(s)})}).catch(e=>{})},checkVersion(){this.isNotServer()||(me.get($A.apiUrl("system/version")).then(({status:e,data:i})=>{e===200&&(this.apiVersion=i.version||"",this.compareVersion(this.apiVersion,"0.19.0")===-1&&$A.modalWarning({title:"\u6E29\u99A8\u63D0\u793A",message:`\u670D\u52A1\u5668\uFF08${$A.getDomain($A.mainUrl())}\uFF09\u63A5\u53E3\u7248\u672C\u8FC7\u4F4E\uFF0C\u90E8\u5206\u529F\u80FD\u53EF\u80FD\u65E0\u6CD5\u6B63\u5E38\u4F7F\u7528\u3002`}),this.$Electron?this.$Electron.sendMessage("updateCheckAndDownload",{apiVersion:this.apiVersion}):this.getDownloadUrl(i.publish))}).catch(e=>{}),this.__checkVersion&&clearTimeout(this.__checkVersion),this.__checkVersion=setTimeout(this.checkVersion,600*1e3))},getDownloadUrl(e){if(!!$A.isJson(e))switch(e.provider){case"generic":this.downloadUrl=`${e.url}/latest`;break;case"github":(async i=>{let t="cacheAppdown::"+this.apiVersion,s=await $A.IDBJson(t),n=600;if(s.time&&s.time+n>$A.dayjs().unix()){this.downloadUrl=s.data.html_url;return}this.loadIng>0||(this.loadIng++,me.get(`https://api.github.com/repos/${e.owner}/${e.repo}/releases`).then(({status:a,data:r})=>{this.loadIng--,a===200&&$A.isArray(r)&&(s.time=$A.dayjs().unix(),s.data=r.find(({tag_name:o})=>this.compareVersion(this.tagVersion(o),this.apiVersion)===0)||{},$A.IDBSave(t,s),this.downloadUrl=s.data.html_url)}).catch(()=>{this.loadIng--}))})();break}},updateQuitAndInstall(){this.updateIng=!0,setTimeout(()=>{this.$Electron.sendMessage("updateQuitAndInstall",{updateTitle:this.$L("\u6B63\u5728\u5B89\u88C5\u66F4\u65B0\uFF0C\u8BF7\u7A0D\u5019...")})},301)},useSSOLogin(){C.emit("useSSOLogin",!0)},tagVersion(e){return e?$A.leftDelete(e.toLowerCase(),"v"):""},compareVersion(e,i){let t=0,s=0;if(e===i)return 0;const n=(a,r)=>{let o=r;for(;a[o]!=="."&&o<a.length;)o++;return o};for(;t<e.length&&s<i.length;){const a=n(e,t),r=n(i,s),o=+e.substr(t,a-t),l=+i.substr(s,r-s);if(o!==l)return o>l?1:-1;t=a+1,s=r+1}for(;t<e.length;){const a=n(e,t);if(+e.substr(t,a-t)>0)return 1;t=a+1}for(;s<i.length;){const a=n(i,s);if(+i.substr(s,a-s)>0)return-1;s=a+1}return 0}}},Ee={};var Zs=m(Xs,Js,Gs,!1,ei,null,null,null);function ei(e){for(let i in Ee)this[i]=Ee[i]}var ti=function(){return Zs.exports}(),si=function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("Modal",{attrs:{mask:!1,"mask-closable":!1,"footer-hide":!0,"transition-names":["",""],"class-name":e.viewMode==="desktop"?"common-preview-image-view":"common-preview-image-swipe",fullscreen:""},model:{value:e.show,callback:function(s){e.show=s},expression:"show"}},[e.list.length>0?[e.viewVideo?t("PreviewVideoView",{attrs:{item:e.viewVideo}}):e.viewMode==="desktop"?t("PreviewImageView",{attrs:{"initial-index":e.index,"url-list":e.list,infinite:""}}):e.viewMode==="mobile"?t("PreviewImageSwipe",{attrs:{"initial-index":e.index,"url-list":e.list},on:{"on-destroy":function(s){e.show=!1}}}):e._e()]:e._e()],2)},ii=[];const ni=()=>w(()=>import("./video.d4ab4c08.js"),["js/build/video.d4ab4c08.js","js/build/video.85f66e68.css","js/build/jquery.bb849206.js","js/build/@babel.f9bcab46.js","js/build/dayjs.f27b22c9.js","js/build/localforage.f2f8f716.js","js/build/markdown-it.bda97caf.js","js/build/mdurl.ce6c1dd8.js","js/build/uc.micro.8d343c98.js","js/build/entities.48a44fec.js","js/build/linkify-it.c5e8196e.js","js/build/punycode.js.4b3f125a.js","js/build/highlight.js.ab8aeea4.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.897ae552.js","js/build/vue.fd9b772e.js","js/build/vuex.cc7cb26e.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.79c8b3d5.js","js/build/mitt.1ea0a2a3.js","js/build/quill-hi.b7430b13.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.f1b7ce48.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.e8ef3f14.js","js/build/lodash.isequal.d6a986d0.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.df04b444.js","js/build/quill-mention-hi.26cde5e9.js","js/build/view-design-hi.18b9f7fe.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.50be9c5e.js","js/build/clipboard.058ef547.js","js/build/vuedraggable.9fd6afed.js","js/build/sortablejs.d74243d9.js","js/build/vue-resize-observer.c3c9ca4e.js","js/build/element-sea.1d49e96e.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.0bdc1850.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.49abba38.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"]),ai=()=>w(()=>import("./view.11bedc61.js"),["js/build/view.11bedc61.js","js/build/view.b607e257.css","js/build/element-sea.1d49e96e.js","js/build/vue.fd9b772e.js","js/build/@babel.f9bcab46.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.0bdc1850.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.49abba38.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js","js/build/jquery.bb849206.js","js/build/dayjs.f27b22c9.js","js/build/localforage.f2f8f716.js","js/build/markdown-it.bda97caf.js","js/build/mdurl.ce6c1dd8.js","js/build/uc.micro.8d343c98.js","js/build/entities.48a44fec.js","js/build/linkify-it.c5e8196e.js","js/build/punycode.js.4b3f125a.js","js/build/highlight.js.ab8aeea4.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.897ae552.js","js/build/vuex.cc7cb26e.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.79c8b3d5.js","js/build/mitt.1ea0a2a3.js","js/build/quill-hi.b7430b13.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.f1b7ce48.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.e8ef3f14.js","js/build/lodash.isequal.d6a986d0.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.df04b444.js","js/build/quill-mention-hi.26cde5e9.js","js/build/view-design-hi.18b9f7fe.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.50be9c5e.js","js/build/clipboard.058ef547.js","js/build/vuedraggable.9fd6afed.js","js/build/sortablejs.d74243d9.js","js/build/vue-resize-observer.c3c9ca4e.js"]),ri=()=>w(()=>import("./swipe.d2f0e829.js"),["js/build/swipe.d2f0e829.js","js/build/swipe.7b577070.css","js/build/openpgp_hi.15f91b1d.js","js/build/photoswipe.a7142509.js","js/build/photoswipe.0fb72215.css","js/build/jquery.bb849206.js","js/build/@babel.f9bcab46.js","js/build/dayjs.f27b22c9.js","js/build/localforage.f2f8f716.js","js/build/markdown-it.bda97caf.js","js/build/mdurl.ce6c1dd8.js","js/build/uc.micro.8d343c98.js","js/build/entities.48a44fec.js","js/build/linkify-it.c5e8196e.js","js/build/punycode.js.4b3f125a.js","js/build/highlight.js.ab8aeea4.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.897ae552.js","js/build/vue.fd9b772e.js","js/build/vuex.cc7cb26e.js","js/build/axios.79c8b3d5.js","js/build/mitt.1ea0a2a3.js","js/build/quill-hi.b7430b13.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.f1b7ce48.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.e8ef3f14.js","js/build/lodash.isequal.d6a986d0.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.df04b444.js","js/build/quill-mention-hi.26cde5e9.js","js/build/view-design-hi.18b9f7fe.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.50be9c5e.js","js/build/clipboard.058ef547.js","js/build/vuedraggable.9fd6afed.js","js/build/sortablejs.d74243d9.js","js/build/vue-resize-observer.c3c9ca4e.js","js/build/element-sea.1d49e96e.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.0bdc1850.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.49abba38.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"]),oi={name:"PreviewImage",components:{PreviewVideoView:ni,PreviewImageSwipe:ri,PreviewImageView:ai},props:{value:{type:Boolean,default:!1},index:{type:Number,default:0},list:{type:Array,default:()=>[]},mode:{type:String,default:null}},data(){return{show:this.value}},watch:{value(e){this.show=e},show(e){this.value!==e&&this.$emit("input",e)}},computed:{viewVideo(){return this.list.length===0?!1:this.list.find(({src:i})=>/\.mp4$/i.test(i))||!1},viewMode(){return this.mode?this.mode:this.windowTouch?"mobile":"desktop"}}},Me={};var li=m(oi,si,ii,!1,ci,null,null,null);function ci(e){for(let i in Me)this[i]=Me[i]}var ui=function(){return li.exports}(),di=function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("PreviewImage",{attrs:{index:e.previewImageIndex,list:e.previewImageList},model:{value:e.show,callback:function(s){e.show=s},expression:"show"}})},hi=[];const pi={name:"PreviewImageState",components:{PreviewImage:ui},computed:{...x(["previewImageIndex","previewImageList"])},data(){return{show:!1}},watch:{show(e){e?this.$store.state.previewImageIndex=Math.min(Math.max(this.$store.state.previewImageIndex,0),this.$store.state.previewImageList.length-1):(this.$store.state.previewImageIndex=0,this.$store.state.previewImageList=[])},previewImageList(e){if(e.length>0)if($A.isEEUIApp||$A.isElectron){let i=Math.min(Math.max(this.$store.state.previewImageIndex,0),this.$store.state.previewImageList.length-1),t=e.map(a=>$A.isJson(a)?a.src:a),s=50;if(t.length>s){const a=[];let r=0;for(;a.length<s&&r<s;){let o=i-r,l=i+r+1;o>=0&&a.unshift(t[o]),l<t.length&&a.push(t[l]),r++}i=a.findIndex(o=>o===t[i]),t=a}const n=t.find(a=>/\.mp4$/i.test(a));n?this.videoPreview(n):this.imagePreview(i,t)}else this.show=!0}},methods:{videoPreview(e){$A.isEEUIApp?$A.eeuiAppSendMessage({language:$A.eeuiAppConvertLanguage(),action:"videoPreview",path:e}):$A.isElectron&&this.$Electron.sendMessage("openMediaViewer",{type:"video",lang:I,video:e})},imagePreview(e,i){$A.isEEUIApp?$A.eeuiAppSendMessage({language:$A.eeuiAppConvertLanguage(),action:"picturePreview",position:e,paths:i}):$A.isElectron&&this.$Electron.sendMessage("openMediaViewer",{type:"image",lang:I,currentIndex:e,images:i})}}},je={};var fi=m(pi,di,hi,!1,mi,null,null,null);function mi(e){for(let i in je)this[i]=je[i]}var gi=function(){return fi.exports}(),_i=function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("Modal",{attrs:{value:e.show,width:416,closable:!1,"mask-closable":!1,"footer-hide":!0}},[t("div",{staticClass:"ivu-modal-confirm"},[t("div",{staticClass:"ivu-modal-confirm-head"},[t("div",{staticClass:"ivu-modal-confirm-head-icon ivu-modal-confirm-head-icon-error"},[t("Icon",{attrs:{type:"ios-close-circle"}})],1),t("div",{staticClass:"ivu-modal-confirm-head-title"},[e._v(e._s(e.$L("\u6E29\u99A8\u63D0\u793A")))])]),t("div",{staticClass:"ivu-modal-confirm-body"},[t("div",[e._v(e._s(e.ajaxAuthException))])]),e.$isSubElectron?t("div",{staticClass:"ivu-modal-confirm-footer"},[t("Button",{attrs:{type:"text"},on:{click:e.onClose}},[e._v(e._s(e.$L("\u5173\u95ED\u7A97\u53E3")))]),t("Button",{attrs:{type:"primary"},on:{click:e.onRefresh}},[e._v(e._s(e.$L("\u5237\u65B0")))])],1):t("div",{staticClass:"ivu-modal-confirm-footer"},[t("Button",{attrs:{type:"primary"},on:{click:e.onConfirm}},[e._v(e._s(e.$L("\u786E\u5B9A")))])],1)])])},vi=[];const $i={name:"AuthException",computed:{...x(["ajaxAuthException"]),show(){return this.routePath!=="/login"&&!!this.ajaxAuthException}},methods:{onClose(){window.close()},onRefresh(){$A.reloadUrl()},onConfirm(){this.$store.state.ajaxAuthException=null,this.$store.dispatch("logout")}}},Pe={};var yi=m($i,_i,vi,!1,wi,null,null,null);function wi(e){for(let i in Pe)this[i]=Pe[i]}var ki=function(){return yi.exports}(),bi=function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("div",{staticClass:"common-network-exception"},[e.type==="alert"?[e.show?t("Alert",{attrs:{type:"error","show-icon":"",closable:""},on:{"on-close":e.onClose}},[e._v(e._s(e.$L("\u7F51\u7EDC\u8FDE\u63A5\u5931\u8D25\uFF0C\u8BF7\u68C0\u67E5\u7F51\u7EDC\u8BBE\u7F6E\u3002")))]):e._e()]:e.type==="modal"?[t("Modal",{attrs:{value:e.show,width:416,closable:!1,"mask-closable":!1,"footer-hide":!0}},[t("div",{staticClass:"ivu-modal-confirm"},[t("div",{staticClass:"ivu-modal-confirm-head"},[t("div",{staticClass:"ivu-modal-confirm-head-icon ivu-modal-confirm-head-icon-error"},[t("Icon",{attrs:{type:"ios-close-circle"}})],1),t("div",{staticClass:"ivu-modal-confirm-head-title"},[e._v(e._s(e.$L("\u6E29\u99A8\u63D0\u793A")))])]),t("div",{staticClass:"ivu-modal-confirm-body"},[t("div",[e._v(e._s(e.ajaxNetworkException))])]),t("div",{staticClass:"ivu-modal-confirm-footer"},[t("Button",{attrs:{type:"text"},on:{click:e.onClose}},[e._v(e._s(e.$L("\u5FFD\u7565")))]),t("Button",{attrs:{type:"primary",loading:e.loadIng},on:{click:e.onCheck}},[e._v(e._s(e.$L("\u68C0\u67E5")))])],1)])])]:e._e()],2)},Ai=[];const Ci={name:"NetworkException",props:{type:{type:String,default:"modal"}},data(){return{timer:null,checkIng:!1,loadIng:!1}},beforeDestroy(){this.onClose()},computed:{...x(["ajaxNetworkException"]),show(){return!!this.ajaxNetworkException}},watch:{show(e){this.timer&&clearInterval(this.timer),e&&(this.timer=setInterval(this.checkNetwork,3e3))}},methods:{isNotServer(){let e=$A.getDomain(window.systemInfo.apiUrl);return this.$isSoftware&&(e==""||e=="public")},async callNetwork(){if(this.isNotServer()){this.onClose();return}await this.$store.dispatch("call",{url:"system/setting"}),this.onClose()},async checkNetwork(){if(!this.checkIng){this.checkIng=!0;try{await this.callNetwork()}catch{}this.checkIng=!1}},async onCheck(){if(!this.loadIng){this.loadIng=!0;try{await this.callNetwork()}catch{$A.messageError("\u7F51\u7EDC\u8FDE\u63A5\u5931\u8D25")}this.loadIng=!1}},onClose(){this.$store.state.ajaxNetworkException=null}}},Re={};var Si=m(Ci,bi,Ai,!1,Ti,null,null,null);function Ti(e){for(let i in Re)this[i]=Re[i]}var Di=function(){return Si.exports}(),Li=function(){var e=this,i=e.$createElement,t=e._self._c||i;return e.show?t("div",{staticClass:"common-guide"},[t("img",{attrs:{src:e.src,width:"100%"}}),t("div",[t("Button",{attrs:{type:"default",size:"large"},on:{click:function(s){e.show=!1}}},[e._v(e._s(e.$L("\u5FCD\u5FC3\u62D2\u7EDD")))])],1)]):e._e()},Ii=[];const xi={name:"GuidePage",data(){return{show:!1,src:""}},mounted(){this.src=$.apiUrl("../images/other/guide.png")},watch:{$route:{handler(e){this.show=!1,navigator.userAgent.indexOf("MicroMessenger")!==-1&&e.name=="manage-project-invite"&&(this.show=!0)},immediate:!0}}},Ue={};var Ei=m(xi,Li,Ii,!1,Mi,null,null,null);function Mi(e){for(let i in Ue)this[i]=Ue[i]}var ji=function(){return Ei.exports}(),Pi=function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("div",{staticClass:"task-menu-icon",on:{click:e.handleClick}},[e.loadIng&&e.showLoad?t("div",{staticClass:"loading"},[t("Loading")],1):[e.task.complete_at?t("Icon",{staticClass:"completed",attrs:{type:e.completedIcon}}):t("Icon",{staticClass:"uncomplete",attrs:{type:e.icon}})]],2)},Ri=[];const Ui={name:"TaskMenu",props:{task:{type:Object,default:()=>({})},loadStatus:{type:Boolean,default:!1},colorShow:{type:Boolean,default:!0},operationShow:{type:Boolean,default:!0},updateBefore:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},size:{type:String,default:"small"},placement:{type:String,default:"bottom"},icon:{type:String,default:"md-radio-button-off"},completedIcon:{type:String,default:"md-checkmark-circle"},projectId:{type:Number,default:0},showLoad:{type:Boolean,default:!0}},computed:{...x(["loads","taskFlows"]),...ge(["isLoad"]),loadIng(){return this.loadStatus?!0:this.isLoad(`task-${this.task.id}`)}},methods:{handleClick(e){this.$store.state.taskOperation={event:e,task:this.task,loadStatus:this.loadStatus,colorShow:this.colorShow,operationShow:this.operationShow,updateBefore:this.updateBefore,disabled:this.disabled,size:this.size,placement:this.placement,projectId:this.projectId,onUpdate:i=>{this.$emit("on-update",i)}}},updateTask(e){if(this.loadIng)return;Object.keys(e).forEach(t=>this.$set(this.task,t,e[t]));const i=Object.assign(e,{task_id:this.task.id});this.$store.dispatch("taskUpdate",i).then(({data:t,msg:s})=>{$A.messageSuccess(s),this.$store.dispatch("saveTaskBrowse",i.task_id),this.$emit("on-update",t)}).catch(({msg:t})=>{$A.modalError(t),this.$store.dispatch("getTaskOne",i.task_id).catch(()=>{})})}}},Oe={};var Oi=m(Ui,Pi,Ri,!1,Bi,null,null,null);function Bi(e){for(let i in Oe)this[i]=Oe[i]}var Fi=function(){return Oi.exports}(),zi=function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("div",{staticClass:"common-user-select",class:e.warpClass},[e.module?e._e():t("ul",[e._l(e.values,function(s){return[s?t("li",{key:s,on:{click:e.onSelection}},[t("UserAvatar",{attrs:{userid:s,size:e.avatarSize,"show-icon":e.avatarIcon,"show-name":e.avatarName}})],1):e._e()]}),e.addIcon||e.values.length===0?t("li",{staticClass:"add-icon",style:e.addStyle,on:{click:e.onSelection}}):e._e()],2),t("Modal",{attrs:{"class-name":"common-user-select-modal","mask-closable":!1,closable:!e.isFullscreen,fullscreen:e.isFullscreen,"footer-hide":e.isFullscreen,width:"640"},scopedSlots:e._u([{key:"header",fn:function(){return[e.isFullscreen?t("div",{staticClass:"user-modal-header"},[t("div",{staticClass:"user-modal-close",on:{click:function(s){e.showModal=!1}}},[e._v(e._s(e.$L("\u5173\u95ED")))]),t("div",{staticClass:"user-modal-title"},[t("span",{ref:"headerTitle",on:{click:e.onClickTitle}},[e._v(e._s(e.localTitle))])]),t("div",{ref:"headerSubmit",staticClass:"user-modal-submit",on:{click:e.onSubmit}},[e.submittIng>0?t("div",{staticClass:"submit-loading"},[t("Loading")],1):e._e(),e._v(" "+e._s(e.$L("\u786E\u5B9A"))+" "),e.selects.length>0?[e._v(" ("+e._s(e.selects.length)),e.multipleMax?t("span",[e._v("/"+e._s(e.multipleMax))]):e._e(),e._v(") ")]:e._e()],2)]):t("div",{staticClass:"ivu-modal-header-inner"},[e._v(e._s(e.localTitle))])]},proxy:!0},{key:"close",fn:function(){return[t("i",{staticClass:"ivu-icon ivu-icon-ios-close"})]},proxy:!0},{key:"footer",fn:function(){return[t("Button",{attrs:{type:"primary",loading:e.submittIng>0},on:{click:e.onSubmit}},[e._v(" "+e._s(e.$L("\u786E\u5B9A"))+" "),e.selects.length>0?[e._v(" ("+e._s(e.selects.length)),e.multipleMax?t("span",[e._v("/"+e._s(e.multipleMax))]):e._e(),e._v(") ")]:e._e()],2)]},proxy:!0}]),model:{value:e.showModal,callback:function(s){e.showModal=s},expression:"showModal"}},[t("div",{staticClass:"user-modal-search"},[e.selects.length>0?t("Scrollbar",{ref:"selected",staticClass:"search-selected",attrs:{"enable-x":"","enable-y":!1}},[t("ul",e._l(e.formatSelect(e.selects),function(s){return t("li",{key:s.userid,attrs:{"data-id":s.userid},on:{click:function(n){return n.stopPropagation(),e.onRemoveItem(s.userid)}}},[s.type=="group"?[s.avatar?t("EAvatar",{staticClass:"img-avatar",attrs:{src:s.avatar,size:32}}):s.group_type=="department"?t("i",{staticClass:"taskfont icon-avatar department"},[e._v("\uE75C")]):s.group_type=="project"?t("i",{staticClass:"taskfont icon-avatar project"},[e._v("\uE6F9")]):s.group_type=="task"?t("i",{staticClass:"taskfont icon-avatar task"},[e._v("\uE6F4")]):s.group_type=="okr"?t("i",{staticClass:"taskfont icon-avatar task"},[e._v("\uE6F4")]):t("Icon",{staticClass:"icon-avatar",attrs:{type:"ios-people"}})]:t("UserAvatar",{attrs:{userid:s.userid}})],2)}),0)]):e._e(),t("div",{staticClass:"search-input"},[t("div",{staticClass:"search-pre"},[e.loadIng>0?t("Loading"):t("Icon",{attrs:{type:"ios-search"}})],1),t("Form",{staticClass:"search-form",attrs:{action:"javascript:void(0)"},nativeOn:{submit:function(s){return s.preventDefault(),e.$A.eeuiAppKeyboardHide.apply(null,arguments)}}},[t("Input",{attrs:{type:"search",placeholder:e.localPlaceholder,clearable:""},on:{"on-keydown":e.onKeydown,"on-keyup":e.onKeyup},model:{value:e.searchKey,callback:function(s){e.searchKey=s},expression:"searchKey"}})],1)],1)],1),e.isWhole?t("ul",{staticClass:"user-modal-switch"},e._l(e.switchItems,function(s){return t("li",{key:s.key,class:{active:e.switchActive===s.key},on:{click:function(n){e.switchActive=s.key}}},[e._v(e._s(e.$L(s.label))+" ")])}),0):e._e(),e.lists.length>0?t("Scrollbar",{staticClass:"user-modal-list"},[e.switchActive=="project"?t("ul",{staticClass:"user-modal-project"},e._l(e.lists,function(s){return t("li",{key:s.id,class:e.selectClass(s.userid_list),on:{click:function(n){return e.onSelectMultiple(s.userid_list)}}},[t("Icon",{staticClass:"user-modal-icon",attrs:{type:e.selectIcon(s.userid_list)}}),t("div",{staticClass:"user-modal-avatar"},[t("i",{staticClass:"taskfont icon-avatar"},[e._v("\uE6F9")]),t("div",{staticClass:"project-name"},[t("div",{staticClass:"label"},[e._v(e._s(s.name))]),t("div",{staticClass:"subtitle"},[e._v(" "+e._s(s.userid_list.length)+" "+e._s(e.$L("\u9879\u76EE\u6210\u5458"))+" "),t("em",{staticClass:"all"},[e._v(e._s(e.$L("\u5DF2\u5168\u9009")))]),t("em",{staticClass:"some"},[e._v(e._s(e.$L("\u5DF2\u9009\u90E8\u5206")))])])])])],1)}),0):[e.showSelectAll||e.switchActive=="contact"?t("ul",{staticClass:"sticky-top"},[t("li",{class:e.selectClass("all")},[e.showSelectAll?t("div",{staticClass:"user-modal-label",on:{click:e.onSelectAll}},[t("Icon",{staticClass:"user-modal-icon",attrs:{type:e.selectIcon("all")}}),t("span",[e._v(e._s(e.$L("\u5168\u9009")))])],1):e._e(),e.switchActive=="contact"?t("div",{staticClass:"user-modal-view"},[t("RadioGroup",{attrs:{type:"button","button-style":"solid"},model:{value:e.contactViewMode,callback:function(s){e.contactViewMode=s},expression:"contactViewMode"}},[t("Radio",{attrs:{label:"list"}},[e._v(e._s(e.$L("\u5217\u8868\u89C6\u56FE")))]),t("Radio",{attrs:{label:"department"}},[e._v(e._s(e.$L("\u90E8\u95E8\u89C6\u56FE")))])],1)],1):e._e()])]):e._e(),e._l(e.convertTwoList(e.lists),function(s){return[s.name!==null?t("ul",{key:`${s.id}-sticky`,staticClass:"sticky-top"},[t("li",{class:e.selectClass(s.userid_list)},[t("div",{staticClass:"user-modal-label",on:{click:function(n){return e.onSelectMultiple(s.userid_list)}}},[t("Icon",{staticClass:"user-modal-icon",attrs:{type:e.selectIcon(s.userid_list)}}),t("span",[e._v(e._s(s.name))])],1),t("div",{staticClass:"user-modal-view"},[e._v(e._s(s.list.length)+" "+e._s(e.$L("\u90E8\u95E8\u6210\u5458")))])])]):e._e(),t("ul",{key:`${s.id}-list`},e._l(s.list,function(n){return t("li",{key:n.userid,class:{selected:e.selects.includes(n.userid),disabled:e.isNoChoice(n.userid)},on:{click:function(a){return e.onSelectItem(n)}}},[e.selects.includes(n.userid)?t("Icon",{staticClass:"user-modal-icon",attrs:{type:"ios-checkmark-circle"}}):e.isNoChoice(n.userid)?t("Icon",{staticClass:"user-modal-icon",attrs:{type:"ios-remove-circle-outline"}}):t("Icon",{staticClass:"user-modal-icon",attrs:{type:"ios-radio-button-off"}}),n.type=="group"?t("div",{staticClass:"user-modal-avatar"},[n.avatar?t("EAvatar",{staticClass:"img-avatar",attrs:{src:n.avatar,size:40}}):n.group_type=="department"?t("i",{staticClass:"taskfont icon-avatar department"},[e._v("\uE75C")]):n.group_type=="project"?t("i",{staticClass:"taskfont icon-avatar project"},[e._v("\uE6F9")]):n.group_type=="task"?t("i",{staticClass:"taskfont icon-avatar task"},[e._v("\uE6F4")]):n.group_type=="okr"?t("i",{staticClass:"taskfont icon-avatar task"},[e._v("\uE6F4")]):t("Icon",{staticClass:"icon-avatar",attrs:{type:"ios-people"}}),t("div",{staticClass:"avatar-name"},[t("span",[e._v(e._s(n.name))])])],1):t("UserAvatar",{staticClass:"user-modal-avatar",attrs:{userid:n.userid,size:40,"show-name":""}})],1)}),0)]})]],2):t("div",{staticClass:"user-modal-empty"},[e.waitIng>0?t("Loading"):[t("div",{staticClass:"empty-icon"},[t("Icon",{attrs:{type:"ios-cafe-outline"}})],1),t("div",{staticClass:"empty-text"},[e._v(e._s(e.$L("\u6682\u65E0\u7ED3\u679C")))])]],2)],1)],1)},Ni=[];const Hi={name:"UserSelect",props:{value:{type:[String,Number,Array],default:()=>[]},uncancelable:{type:Array,default:()=>[]},disabledChoice:{type:Array,default:()=>[]},projectId:{type:Number,default:0},noProjectId:{type:Number,default:0},dialogId:{type:Number,default:0},showBot:{type:Boolean,default:!1},showDisable:{type:Boolean,default:!1},multipleMax:{type:Number},avatarSize:{type:Number,default:28},avatarIcon:{type:Boolean,default:!0},avatarName:{type:Boolean,default:!1},addIcon:{type:Boolean,default:!0},border:{type:Boolean,default:!1},title:{type:String},placeholder:{type:String},showSelectAll:{type:Boolean,default:!0},showDialog:{type:Boolean,default:!1},module:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},onlyGroup:{type:Boolean,default:!1},beforeSubmit:Function},data(){return{switchItems:[{key:"recent",label:"\u6700\u8FD1"},{key:"contact",label:"\u901A\u8BAF\u5F55"},{key:"project",label:"\u9879\u76EE\u6210\u5458"}],switchActive:"recent",contactViewMode:"list",loadIng:0,waitIng:0,submittIng:0,backspaceDelete:!1,values:[],selects:[],callback:null,closeCallback:null,recents:[],contacts:[],projects:[],showModal:!1,searchKey:null,searchCache:[]}},async mounted(){this.contactViewMode=await $A.IDBString("userSelectContactViewMode",this.contactViewMode)},watch:{value:{handler(e){typeof e=="number"?this.$emit("input",e>0?[e]:[]):typeof e=="string"&&(e=e.indexOf(",")>-1?e.split(","):[e],this.$emit("input",e.map(i=>$A.runNum(i)).filter(i=>i>0))),this.values=e},immediate:!0},isWhole:{handler(e){e||this.onlyGroup?this.switchActive="recent":this.switchActive="contact"},immediate:!0},showModal(e){e?(this.searchBefore(),this.upTitleWidth()):(this.searchKey="",this.closeCallback&&this.closeCallback()),this.$emit("on-show-change",e),$A.eeuiAppSetScrollDisabled(e&&this.windowPortrait)},searchKey(){this.searchBefore()},switchActive(){this.searchBefore()},contactViewMode(e){$A.IDBSet("userSelectContactViewMode",e)},isFullscreen(e){e&&this.upTitleWidth()},"selects.length"(){this.upTitleWidth()}},computed:{...x(["cacheDialogs"]),isFullscreen({windowWidth:e}){return e<576},isWhole({projectId:e,noProjectId:i,dialogId:t,onlyGroup:s}){return e===0&&i===0&&t===0&&!s},lists({switchActive:e,searchKey:i,recents:t,contacts:s,projects:n}){switch(e){case"recent":return i?t.filter(a=>$A.strExists(`${a.name} ${a.email} ${a.pinyin}`,i)):t;case"contact":return s;case"project":return n}return[]},isSelectAll({lists:e,selects:i}){return e.length>0&&e.filter(t=>i.includes(t.userid)).length===e.length},warpClass(){return{"select-module":this.module,"select-border":this.border,"select-whole":this.isWhole}},addStyle({avatarSize:e}){return{width:e+"px",height:e+"px"}},localTitle({title:e}){return e===void 0?this.$L("\u9009\u62E9\u4F1A\u5458"):e},localPlaceholder({placeholder:e}){return e===void 0?this.$L("\u641C\u7D22"):e}},methods:{upTitleWidth(){!this.isFullscreen||this.$nextTick(()=>{const e=this.$refs.headerTitle,i=this.$refs.headerSubmit;e&&i&&(e.style.width=this.windowWidth-i.clientWidth*2+"px")})},isUncancelable(e){return this.uncancelable.length===0?!1:this.uncancelable.includes(e)},isDisabled(e){return this.disabledChoice.length===0?!1:this.disabledChoice.includes(e)},isNoChoice(e){return this.isUncancelable(e)||this.isDisabled(e)},formatSelect(e){return e.map(i=>$A.leftExists(i,"d:")?this.recents.find(t=>t.userid===i):{type:"user",userid:i})},convertTwoList(e){if(this.switchActive==="contact"&&this.contactViewMode==="department"){const i=new Map,t=[];return e.forEach(s=>{s.department_info&&s.department_info.length>0?s.department_info.forEach(n=>{i.has(n.id)||i.set(n.id,{id:n.id,name:n.name,list:[]}),i.get(n.id).list.push(s)}):t.push(s)}),t.length>0&&i.set(0,{id:0,name:this.$L("\u9ED8\u8BA4\u90E8\u95E8"),list:t}),Array.from(i.values()).map(s=>({...s,userid_list:s.list.map(n=>n.userid)}))}return[{id:0,name:null,list:e}]},selectIcon(e){if(e==="all")return this.isSelectAll?"ios-checkmark-circle":"ios-radio-button-off";if($A.isArray(e)&&e.length>0){const i=e.filter(t=>this.selects.includes(t)).length;if(i===e.length)return"ios-checkmark-circle";if(i>0)return"ios-remove-circle"}return"ios-radio-button-off"},selectClass(e){switch(this.selectIcon(e)){case"ios-checkmark-circle":return"selected";case"ios-remove-circle":return"somed"}return""},searchBefore(){!this.showModal||(this.switchActive==="recent"?this.searchRecent():this.switchActive==="contact"?this.searchContact():this.switchActive==="project"&&this.searchProject())},searchRecent(){this.recents=this.cacheDialogs.filter(e=>this.onlyGroup&&e.type!="group"||e.name===void 0||e.dialog_delete===1||!this.showBot&&e.bot?!1:this.showDialog||e.type==="user").sort((e,i)=>e.top_at||i.top_at?$A.sortDay(i.top_at,e.top_at):e.todo_num>0||i.todo_num>0?$A.sortFloat(i.todo_num,e.todo_num):$A.sortDay(i.last_at,e.last_at)).map(({id:e,name:i,pinyin:t,email:s,type:n,group_type:a,avatar:r,dialog_user:o})=>({name:i,pinyin:t,email:s,type:n,group_type:a,avatar:r,userid:n==="user"?o.userid:`d:${e}`}))},searchContact(){const e=this.searchKey,i=this.searchCache.find(t=>t.type==="contact"&&t.key==e);i&&(this.contacts=i.data,!i.more)||(this.waitIng++,setTimeout(()=>{if(this.searchKey!=e){this.waitIng--;return}setTimeout(()=>{this.loadIng++},300),this.searchRequest(e,1,()=>{this.loadIng--,this.waitIng--})},this.searchCache.length>0?300:0))},searchRequest(e,i,t){this.$store.dispatch("call",{url:"users/search",data:{keys:{key:e,project_id:this.projectId,no_project_id:this.noProjectId,dialog_id:this.dialogId,bot:this.showBot&&e?2:0,disable:this.showDisable&&e?2:0},page:i,pagesize:100,with_department:1}}).then(({data:s})=>{if(this.searchKey!=e){t();return}const n=s.data.map(o=>Object.assign(o,{type:"user"}));s.current_page>1&&n.unshift(...this.contacts),this.contacts=n;const a=this.searchCache.findIndex(o=>o.type==="contact"&&o.key==e),r={type:"contact",key:e,data:n,time:$A.dayjs().unix(),more:s.current_page<s.last_page};if(a>-1?this.searchCache.splice(a,1,r):this.searchCache.push(r),!r.more){t();return}s.current_page%5===0?$A.modalConfirm({content:"\u6570\u636E\u5DF2\u8D85\u8FC7"+s.to+"\u6761\uFF0C\u662F\u5426\u7EE7\u7EED\u52A0\u8F7D\uFF1F",onOk:()=>{this.searchRequest(e,s.current_page+1,t)},onCancel:t}):this.searchRequest(e,s.current_page+1,t)}).catch(({msg:s})=>{i===1&&(this.contacts=[]),$A.messageWarning(s),t()})},searchProject(){const e=this.searchKey,i=this.searchCache.find(t=>t.type==="project"&&t.key==e);i&&(this.projects=i.data,!i.more)||(this.waitIng++,setTimeout(()=>{if(this.searchKey!=e){this.waitIng--;return}setTimeout(()=>{this.loadIng++},300),this.$store.dispatch("call",{url:"project/lists",data:{type:"team",keys:{name:e},getuserid:"yes",getstatistics:"no"}}).then(({data:t})=>{if(this.searchKey!=e)return;const s=t.data.map(r=>Object.assign(r,{type:"project"}));this.projects=s;const n=this.searchCache.findIndex(r=>r.type==="project"&&r.key==e),a={type:"project",key:e,data:s,time:$A.dayjs().unix(),more:!1};n>-1?this.searchCache.splice(n,1,a):this.searchCache.push(a)}).catch(({msg:t})=>{this.projects=[],$A.messageWarning(t)}).finally(t=>{this.loadIng--,this.waitIng--})},this.searchCache.length>0?300:0))},onSelection(e=null,i=null){this.disabled||this.$nextTick(t=>{this.selects=$A.cloneJSON(this.values),this.callback=typeof e=="function"?e:null,this.closeCallback=typeof i=="function"?i:null,this.showModal=!0})},onSelectItem({userid:e}){if(this.selects.includes(e)){if(this.isUncancelable(e))return;this.selects=this.selects.filter(i=>i!=e)}else{if(this.isDisabled(e))return;if(this.multipleMax&&this.selects.length>=this.multipleMax){if(this.multipleMax>1){$A.messageWarning("\u5DF2\u8D85\u8FC7\u6700\u5927\u9009\u62E9\u6570\u91CF");return}this.selects=[]}this.selects.push(e),this.$nextTick(()=>{$A.scrollIntoViewIfNeeded(this.$refs.selected.querySelector(`li[data-id="${e}"]`),!0)})}},onSelectMultiple(e){switch(this.selectIcon(e)){case"ios-checkmark-circle":const i=e.filter(s=>!this.isUncancelable(s));i.length!=e.length&&$A.messageWarning("\u90E8\u5206\u6210\u5458\u7981\u6B62\u53D6\u6D88"),this.selects=this.selects.filter(s=>!i.includes(s));break;default:const t=e.filter(s=>!this.isDisabled(s));t.length!=e.length&&$A.messageWarning("\u90E8\u5206\u6210\u5458\u7981\u6B62\u9009\u62E9"),this.selects=this.selects.concat(t.filter(s=>!this.selects.includes(s))),this.multipleMax&&this.selects.length>this.multipleMax&&($A.messageWarning("\u5DF2\u8D85\u8FC7\u6700\u5927\u9009\u62E9\u6570\u91CF"),this.selects=this.selects.slice(0,this.multipleMax));break}},onSelectAll(){if(this.isSelectAll){this.selects=$A.cloneJSON(this.uncancelable);return}this.lists.some(e=>{if(this.isDisabled(e.userid))return!1;if(this.multipleMax&&this.selects.length>=this.multipleMax)return $A.messageWarning("\u5DF2\u8D85\u8FC7\u6700\u5927\u9009\u62E9\u6570\u91CF"),!0;this.selects.includes(e.userid)||this.selects.push(e.userid)})},onRemoveItem(e){this.isUncancelable(e)||(this.selects=this.selects.filter(i=>i!=e))},onClickTitle(){const e=this.$refs.headerTitle,i=document.createRange();i.setStart(e,0),i.setEnd(e,e.childNodes.length||0);const t=i.getBoundingClientRect().width;Math.floor(t)>Math.floor(e.offsetWidth)&&$A.modalInfo({title:this.$L("\u5168\u6807\u9898"),content:this.localTitle,language:!1})},onSubmit(){if(this.submittIng>0)return;const e=$A.cloneJSON(this.values);this.values=$A.cloneJSON(this.selects),this.$emit("input",this.values),this.$emit("on-submit",this.values);const i=this.callback||this.beforeSubmit;if(!i){this.hide();return}const t=i(this.values);t&&t.then?(this.submittIng++,t.then(()=>{this.hide()}).catch(()=>{this.values=e,this.$emit("input",this.values)}).finally(()=>{this.submittIng--})):this.hide()},onKeydown(e){this.backspaceDelete=e.key==="Backspace"&&!this.searchKey&&this.selects.length>0},onKeyup(e){if(e.key==="Backspace"&&this.backspaceDelete)for(let i=this.selects.length-1;i>=0;i--){const t=this.selects[i];if(!this.isUncancelable(t)){this.onRemoveItem(t);break}}},show(){this.onSelection()},hide(){this.showModal=!1}}},Be={};var Wi=m(Hi,zi,Ni,!1,Vi,null,null,null);function Vi(e){for(let i in Be)this[i]=Be[i]}var Se=function(){return Wi.exports}(),qi=function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("div",{staticClass:"task-move",style:e.$A.generateColorVarStyle(e.task.flow_item_color,[10],"flow-item-custom-color")},[t("Cascader",{attrs:{data:e.cascaderData,clearable:!1,placeholder:e.$L("\u8BF7\u9009\u62E9\u9879\u76EE"),"load-data":e.cascaderLoadData,filterable:""},on:{"on-visible-change":function(s){e.cascaderShow=!e.cascaderShow}},model:{value:e.cascader,callback:function(s){e.cascader=s},expression:"cascader"}}),t("div",{staticClass:"task-move-content"},[t("div",{staticClass:"task-move-content-old"},[t("div",{staticClass:"task-move-title"},[e._v(e._s(e.$L("\u79FB\u52A8\u524D")))]),t("div",{staticClass:"task-move-row"},[t("span",{staticClass:"label"},[e._v(e._s(e.$L("\u72B6\u6001"))+":")]),t("div",{staticClass:"flow"},[e.task.flow_item_name?t("span",{class:e.task.flow_item_status},[e._v(e._s(e.task.flow_item_name))]):e.task.complete_at?t("span",{staticClass:"end"},[e._v(e._s(e.$L("\u5DF2\u5B8C\u6210")))]):t("span",{staticClass:"start"},[e._v(e._s(e.$L("\u672A\u5B8C\u6210")))])])]),t("div",{staticClass:"task-move-row",class:{"not-flex":e.windowPortrait}},[t("span",{staticClass:"label"},[e._v(e._s(e.$L("\u8D1F\u8D23\u4EBA"))+":")]),t("UserSelect",{staticClass:"item-content user",attrs:{"avatar-size":28,"project-id":e.task.project_id,"add-icon":!1,disabled:""},model:{value:e.ownerUserids,callback:function(s){e.ownerUserids=s},expression:"ownerUserids"}})],1),t("div",{staticClass:"task-move-row",class:{"not-flex":e.windowPortrait}},[t("span",{staticClass:"label"},[e._v(e._s(e.$L("\u534F\u52A9\u4EBA"))+":")]),t("UserSelect",{staticClass:"item-content user",attrs:{"avatar-size":28,"project-id":e.task.project_id,"add-icon":!1,disabled:""},model:{value:e.assistUserids,callback:function(s){e.assistUserids=s},expression:"assistUserids"}})],1)]),t("div",{staticClass:"task-move-content-new"},[t("div",{staticClass:"task-move-title"},[e._v(e._s(e.$L("\u79FB\u52A8\u540E")))]),t("div",{staticClass:"task-move-row"},[t("span",{staticClass:"label"},[e._v(e._s(e.$L("\u72B6\u6001"))+":")]),t("TaskMenu",{ref:`taskMenu_${e.task.id}`,attrs:{task:e.tasks,"project-id":e.cascader[0],"color-show":!1,"operation-show":!1,"load-status":e.task.loading===!0,placement:"bottom-start"},on:{"on-update":e.onStatusUpdate}}),e.updateData.flow.flow_item_name?t("div",{staticClass:"flow"},[t("span",{class:e.updateData.flow.flow_item_status,on:{click:function(s){return s.stopPropagation(),e.openMenu(s,e.tasks)}}},[e._v(e._s(e.updateData.flow.flow_item_name))])]):e._e()],1),t("div",{staticClass:"task-move-row",class:{"not-flex":e.windowPortrait}},[t("span",{staticClass:"label"},[e._v(e._s(e.$L("\u8D1F\u8D23\u4EBA"))+":")]),t("div",[t("UserSelect",{staticClass:"item-content user",attrs:{"multiple-max":10,"avatar-size":28,"project-id":e.cascader[0],"disabled-choice":e.updateData.assist_userids,"add-icon":!1},model:{value:e.updateData.owner_userids,callback:function(s){e.$set(e.updateData,"owner_userids",s)},expression:"updateData.owner_userids"}})],1)]),t("div",{staticClass:"task-move-row",class:{"not-flex":e.windowPortrait}},[t("span",{staticClass:"label"},[e._v(e._s(e.$L("\u534F\u52A9\u4EBA"))+":")]),t("div",[t("UserSelect",{staticClass:"item-content user",attrs:{"multiple-max":10,"avatar-size":28,"project-id":e.cascader[0],"disabled-choice":e.updateData.owner_userids,"add-icon":!1},model:{value:e.updateData.assist_userids,callback:function(s){e.$set(e.updateData,"assist_userids",s)},expression:"updateData.assist_userids"}})],1)])])]),t("div",{staticClass:"ivu-modal-footer"},[t("div",{staticClass:"adaption"},[t("Button",{attrs:{type:"default"},on:{click:e.close}},[e._v(e._s(e.$L("\u53D6\u6D88")))]),t("Button",{attrs:{type:"primary",loading:e.loadIng>0},on:{click:e.onConfirm}},[e._v(e._s(e.$L("\u786E\u5B9A")))])],1)])],1)},Yi=[];const Ki={name:"TaskMove",components:{TaskMenu:Fi,UserSelect:Se},props:{value:{type:Boolean,default:!1},task:{type:Object,default:!1}},data(){return{tasks:{},cascader:[],cascaderShow:!1,cascaderData:[],cascaderValue:"",cascaderLoading:0,cascaderAlready:[],loadIng:0,flowItemId:0,ownerUserids:[],assistUserids:[],updateData:{flow:{},owner_userids:[],assist_userids:[]}}},async mounted(){this.initData()},computed:{...x(["cacheProjects","cacheColumns"])},watch:{cascader(e){var t,s;this.tasks.flow_item_id=this.flowItemId,e[0]!=this.task.project_id?(this.updateData.flow.flow_item_id=0,this.updateData.flow.flow_item_name="",this.updateData.flow.flow_item_status=""):(this.updateData.flow.flow_item_id=this.flowItemId,this.updateData.flow.flow_item_name=this.task.flow_item_name,this.updateData.flow.flow_item_status=this.task.flow_item_status);const i=((s=(t=this.cacheProjects.find(n=>n.id==e[0]))==null?void 0:t.project_user)==null?void 0:s.map(n=>n.userid))||[];this.updateData.owner_userids=(this.task.task_user||[]).filter(n=>n.owner&&i.indexOf(n.userid)!==-1).sort((n,a)=>n.id-a.id).map(n=>n.userid),this.updateData.assist_userids=(this.task.task_user||[]).filter(n=>!n.owner&&i.indexOf(n.userid)!==-1).sort((n,a)=>n.id-a.id).map(n=>n.userid)}},methods:{initData(){this.flowItemId=this.task.flow_item_id,this.cascader=[this.task.project_id,this.task.column_id],this.ownerUserids=(this.task.task_user||[]).filter(i=>i.owner).sort((i,t)=>i.id-t.id).map(i=>i.userid),this.assistUserids=(this.task.task_user||[]).filter(i=>!i.owner).sort((i,t)=>i.id-t.id).map(i=>i.userid),this.tasks=JSON.parse(JSON.stringify(this.task));const e=$A.cloneJSON(this.cacheProjects).sort((i,t)=>i.top_at||t.top_at?$A.sortDay(t.top_at,i.top_at):t.id-i.id);this.cascaderData=e.map(i=>{const t=this.cacheColumns.filter(({project_id:n})=>n==i.id).map(n=>({value:n.id,label:n.name})),s={value:i.id,label:i.name,children:t};return t.length==0&&(s.loading=!1),s})},cascaderLoadData(e,i){e.loading=!0,this.$store.dispatch("getColumns",e.value).then(t=>{e.children=t.map(s=>({value:s.id,label:s.name})),e.loading=!1,i()}).catch(()=>{e.loading=!1,i()})},async onConfirm(){if(this.task.project_id==this.cascader[0]&&this.task.column_id==this.cascader[1]){$A.messageError("\u672A\u53D8\u66F4\u79FB\u52A8\u9879");return}this.loadIng++;const e={task_id:this.task.id,project_id:this.cascader[0],column_id:this.cascader[1],flow_item_id:this.updateData.flow.flow_item_id||0,owner:this.updateData.owner_userids,assist:this.updateData.assist_userids};!this.updateData.flow.flow_item_id&&this.updateData.flow.flow_item_status&&(e.completed=this.updateData.flow.complete_at?1:0),this.$store.dispatch("call",{url:"project/task/move",data:e}).then(({data:i,msg:t})=>{this.loadIng--,this.$store.dispatch("saveTask",i),$A.messageSuccess(t),this.close()}).catch(({msg:i,ret:t})=>{this.loadIng--,t==102?$A.messageError("\u8BF7\u9009\u62E9\u79FB\u52A8\u540E\u72B6\u6001"):$A.modalError(i)})},close(){this.$emit("input",!this.value)},openMenu(e,i){const t=this.$refs[`taskMenu_${i.id}`];t&&t.handleClick(e)},onStatusUpdate(e){e.flow_item_id||(this.updateData.flow.flow_item_name?(e.flow_item_status="",e.flow_item_name=""):(e.flow_item_status=e.complete_at?"end":"start",e.flow_item_name=this.$L(e.complete_at?"\u8F6C\u4E3A\u5DF2\u5B8C\u6210":"\u8F6C\u4E3A\u672A\u5B8C\u6210"))),this.tasks.flow_item_id=e.flow_item_id,this.updateData.flow=e}}},Fe={};var Ji=m(Ki,qi,Yi,!1,Gi,null,null,null);function Gi(e){for(let i in Fe)this[i]=Fe[i]}var Qi=function(){return Ji.exports}(),Xi=function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("div",{staticClass:"common-circle",style:e.style,attrs:{"data-id":e.percent}},[t("svg",{attrs:{viewBox:"0 0 28 28"}},[t("g",{attrs:{fill:"none","fill-rule":"evenodd"}},[t("path",{staticClass:"common-circle-path",attrs:{d:"M-500-100h997V48h-997z"}}),t("g",{attrs:{"fill-rule":"nonzero"}},[t("path",{staticClass:"common-circle-g-path-ring",attrs:{"stroke-width":"3",d:"M14 25.5c6.351 0 11.5-5.149 11.5-11.5S20.351 2.5 14 2.5 2.5 7.649 2.5 14 7.649 25.5 14 25.5z"}}),t("path",{staticClass:"common-circle-g-path-core",attrs:{d:e.arc(e.args)}})])])])])},Zi=[];const en={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 i=Math.min(360,360/100*e);return i==360?i=0:i==0&&(i=360),{x:14,y:14,r:14,start:360,end:i}}},methods:{isNumeric(e){return e!==""&&!isNaN(parseFloat(e))&&isFinite(e)},point(e,i,t,s){return[(e+Math.sin(s)*t).toFixed(2),(i-Math.cos(s)*t).toFixed(2)]},full(e,i,t,s){return s<=0?`M ${e-t} ${i} A ${t} ${t} 0 1 1 ${e+t} ${i} A ${t} ${t} 1 1 1 ${e-t} ${i} Z`:`M ${e-t} ${i} A ${t} ${t} 0 1 1 ${e+t} ${i} A ${t} ${t} 1 1 1 ${e-t} ${i} M ${e-s} ${i} A ${s} ${s} 0 1 1 ${e+s} ${i} A ${s} ${s} 1 1 1 ${e-s} ${i} Z`},part(e,i,t,s,n,a){const[r,o]=[n/360*2*Math.PI,a/360*2*Math.PI],l=[this.point(e,i,s,r),this.point(e,i,t,r),this.point(e,i,t,o),this.point(e,i,s,o)],c=o-r>Math.PI?"1":"0";return`M ${l[0][0]} ${l[0][1]} L ${l[1][0]} ${l[1][1]} A ${t} ${t} 0 ${c} 1 ${l[2][0]} ${l[2][1]} L ${l[3][0]} ${l[3][1]} A ${s} ${s} 0 ${c} 0 ${l[0][0]} ${l[0][1]} Z`},arc(e){const{x:i=0,y:t=0}=e;let{R:s=0,r:n=0,start:a,end:r}=e;return[s,n]=[Math.max(s,n),Math.min(s,n)],s<=0?"":a!==+a||r!==+r?this.full(i,t,s,n):Math.abs(a-r)<1e-6?"":Math.abs(a-r)%360<1e-6?this.full(i,t,s,n):([a,r]=[a%360,r%360],a>r&&(r+=360),this.part(i,t,s,n,a,r))}}},ze={};var tn=m(en,Xi,Zi,!1,sn,null,null,null);function sn(e){for(let i in ze)this[i]=ze[i]}var nn=function(){return tn.exports}();var an=function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("div",{staticClass:"markdown-body",domProps:{innerHTML:e._s(e.html)},on:{click:e.onCLick}})},rn=[];const on={name:"DialogMarkdown",props:{text:{type:String,default:""}},data(){return{mdi:null}},mounted(){this.copyCodeBlock()},updated(){this.copyCodeBlock()},computed:{html({text:e}){return Fs(e)}},methods:{copyCodeBlock(){this.$el.querySelectorAll(".code-block-wrapper").forEach(i=>{const t=i.querySelector(".code-block-header__copy"),s=i.querySelector(".code-block-body");t&&s&&t.getAttribute("data-copy")!=="click"&&(t.setAttribute("data-copy","click"),t.addEventListener("click",()=>{var n,a,r;(n=navigator.clipboard)!=null&&n.writeText?navigator.clipboard.writeText((a=s.textContent)!=null?a:""):this.copyContent({text:(r=s.textContent)!=null?r:"",origin:!0})}))})},copyContent(e){const i={origin:!0,...e};let t;i.origin?t=document.createElement("textarea"):t=document.createElement("input"),t.setAttribute("readonly","readonly"),t.value=i.text,document.body.appendChild(t),t.select(),document.execCommand("copy")&&document.execCommand("copy"),document.body.removeChild(t)},onCLick(e){this.$emit("click",e)}}},Ne={};var ln=m(on,an,rn,!1,cn,null,null,null);function cn(e){for(let i in Ne)this[i]=Ne[i]}var O=function(){return ln.exports}(),un=function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("div",{staticClass:"content-text no-dark-content"},[e.isOverdueMsg?t("div",{staticClass:"content-overdue"},[e._v(e._s(e.$L("\u6B64\u6D88\u606F\u5DF2\u7ECF\u8FC7\u671F")))]):e.msg.type==="md"?t("DialogMarkdown",{attrs:{text:e.msg.text},on:{click:e.viewText}}):t("pre",{domProps:{innerHTML:e._s(e.$A.formatTextMsg(e.msg.text,e.userId))},on:{click:e.viewText}}),e.translation?[t("div",{staticClass:"content-divider"},[t("span"),t("div",{staticClass:"divider-label translation-label",on:{click:e.viewText}},[e._v(e._s(e.translation.label))]),t("span")]),e.msg.type==="md"?t("DialogMarkdown",{staticClass:"content-translation",attrs:{text:e.translation.content}}):t("pre",{domProps:{innerHTML:e._s(e.$A.formatTextMsg(e.translation.content,e.userId))}})]:e._e()],2)},dn=[];const hn={components:{DialogMarkdown:O},props:{msgId:Number,msg:Object,createdAt:String},computed:{...x(["cacheTranslations","cacheTranslationLanguage"]),translation({cacheTranslations:e,msgId:i,cacheTranslationLanguage:t}){const s=e.find(n=>n.key===`msg-${i}`&&n.language===t);return s||null},isOverdueMsg({msg:e,createdAt:i}){return e.text==="..."&&$A.dayjs(i).isBefore($A.daytz().subtract(10,"minute"))}},methods:{viewText(e){this.$emit("viewText",e)}}},He={};var pn=m(hn,un,dn,!1,fn,null,null,null);function fn(e){for(let i in He)this[i]=He[i]}var mn=function(){return pn.exports}(),gn=function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("div",{staticClass:"content-text no-dark-content"},[e.msg.type==="md"?t("DialogMarkdown",{attrs:{text:e.msg.text},on:{click:e.viewText}}):t("pre",{domProps:{innerHTML:e._s(e.$A.formatTextMsg(e.msg.text,e.userId))},on:{click:e.viewText}}),t("div",{staticClass:"content-longtext-footer"},[t("span",{on:{click:e.downFile}},[e._v(e._s(e.$L("\u67E5\u770B\u8BE6\u60C5")))])])],1)},_n=[];const vn={components:{DialogMarkdown:O},props:{msgId:Number,msg:Object},methods:{viewText(e){this.$emit("viewText",e)},downFile(){this.$emit("downFile")}}},We={};var $n=m(vn,gn,_n,!1,yn,null,null,null);function yn(e){for(let i in We)this[i]=We[i]}var wn=function(){return $n.exports}(),kn=function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("div",{class:`content-file ${e.msg.type}`},[t("div",{staticClass:"dialog-file"},[e.msg.type==="img"?t("img",{staticClass:"file-img",style:e.imageStyle(e.msg),attrs:{src:e.imageSrc(e.msg)},on:{click:e.viewFile}}):e.isVideoFile(e.msg)?t("div",{staticClass:"file-video",style:e.imageStyle(e.msg),on:{click:e.viewFile}},[e.msg.thumb?t("img",{attrs:{src:e.msg.thumb}}):t("video",{attrs:{width:e.imageStyle(e.msg,"width"),height:e.imageStyle(e.msg,"height")}},[t("source",{attrs:{src:e.msg.path,type:"video/mp4"}})]),e._m(0)]):t("div",{staticClass:"file-box",on:{click:e.downFile}},[t("img",{staticClass:"file-thumb",attrs:{src:e.msg.thumb}}),t("div",{staticClass:"file-info"},[t("div",{staticClass:"file-name"},[e._v(e._s(e.msg.name))]),t("div",{staticClass:"file-size"},[e._v(e._s(e.$A.bytesToSize(e.msg.size)))])])]),e.msg.percentage?t("div",{staticClass:"file-percentage"},[t("span",{style:e.fileStyle(e.msg.percentage)})]):e._e()])])},bn=[function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("div",{staticClass:"file-play"},[t("div",{staticClass:"play-icon no-dark-content"},[t("i",{staticClass:"taskfont"},[e._v("\uE745")])])])}];const An={props:{msg:Object},methods:{viewFile(){this.$emit("viewFile")},downFile(){this.$emit("downFile")},fileStyle(e){return e?{width:`${e}%`}:{}},imageStyle({width:e,height:i,thumb:t},s="style"){if(e&&i){const n=$A.imageRatioExceed(e,i,3);$A.imageRatioJudge(t)&&n>0&&(e>i?e=i*n:i=e*n);let a=220,r=220,o=e,l=i;return(e>a||i>r)&&(e>i?(o=a,l=i*(a/e)):(o=e*(r/i),l=r)),s==="width"?o:s==="height"?l:{width:o+"px",height:l+"px"}}return s==="width"||s==="height"?0:{}},imageSrc({width:e,height:i,thumb:t}){const s=$A.imageRatioExceed(e,i,3);return $A.imageRatioJudge(t)&&s>0&&(t=$A.thumbRestore(t)+`/crop/ratio:${s},percentage:320x0`),t},isVideoFile(e){return e.type==="file"&&e.ext==="mp4"&&e.width>0&&e.height>0}}},Ve={};var Cn=m(An,kn,bn,!1,Sn,null,null,null);function Sn(e){for(let i in Ve)this[i]=Ve[i]}var Tn=function(){return Cn.exports}(),Dn=function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("div",{staticClass:"content-record no-dark-content"},[t("div",{staticClass:"dialog-record",class:{playing:e.audioPlaying===e.msg.path},style:e.recordStyle(e.msg),on:{click:e.playRecord}},[t("div",{staticClass:"record-time"},[e._v(e._s(e.recordDuration(e.msg.duration)))]),t("div",{staticClass:"record-icon taskfont"})]),e.msg.text?[e._m(0),t("div",{staticClass:"content-additional"},[e._v(e._s(e.msg.text))])]:e._e(),e.translation?[t("div",{staticClass:"content-divider"},[t("span"),t("div",{staticClass:"divider-label translation-label",on:{click:e.viewText}},[e._v(e._s(e.translation.label))]),t("span")]),t("div",{staticClass:"content-additional"},[e._v(e._s(e.translation.content))])]:e._e()],2)},Ln=[function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("div",{staticClass:"content-divider"},[t("span",{staticClass:"divider-full"})])}];const In={props:{msgId:Number,msg:Object},computed:{...x(["audioPlaying","cacheTranslations","cacheTranslationLanguage"]),translation({cacheTranslations:e,msgId:i,cacheTranslationLanguage:t}){const s=e.find(n=>n.key===`msg-${i}`&&n.language===t);return s||null}},methods:{playRecord(){this.$emit("playRecord")},recordStyle(e){const{duration:i}=e;return{width:50+Math.min(180,Math.floor(i/200))+"px"}},recordDuration(e){const i=Math.floor(e/6e4),t=Math.floor(e/1e3)%60;return i>0?`${i}:${t}\u2033`:`${Math.max(1,t)}\u2033`},viewText(e){this.$emit("viewText",e)}}},qe={};var xn=m(In,Dn,Ln,!1,En,null,null,null);function En(e){for(let i in qe)this[i]=qe[i]}var Mn=function(){return xn.exports}(),jn=function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("div",{staticClass:"content-location no-dark-content"},[t("div",{staticClass:"location-title"},[e._v(e._s(e.msg.title))]),e.msg.address?t("div",{staticClass:"location-address"},[e._v(e._s(e.msg.address))]):e._e(),t("div",{staticClass:"location-preview",style:e.imageStyle(e.msg)})])},Pn=[];const Rn={props:{msg:Object},methods:{imageStyle({width:e,height:i,thumb:t}){if(!t)return{};const s={backgroundImage:`url(${t})`};if(e&&i){const n=$A.scaleToScale(e,i,600);s.backgroundSize=`${n.width}px ${n.height}px`}return s}}},Ye={};var Un=m(Rn,jn,Pn,!1,On,null,null,null);function On(e){for(let i in Ye)this[i]=Ye[i]}var Bn=function(){return Un.exports}(),Fn=function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("div",{staticClass:"content-meeting no-dark-content"},[t("ul",{staticClass:"dialog-meeting",class:{"meeting-end":!!e.msg.end_at}},[t("li",[t("em",[e._v(e._s(e.$L("\u4F1A\u8BAE\u4E3B\u9898")))]),e._v(" "+e._s(e.msg.name)+" ")]),t("li",[t("em",[e._v(e._s(e.$L("\u4F1A\u8BAE\u521B\u5EFA\u4EBA")))]),t("UserAvatar",{attrs:{userid:e.msg.userid,"show-icon":!1,"show-name":!0}})],1),t("li",[t("em",[e._v(e._s(e.$L("\u9891\u9053ID")))]),e._v(" "+e._s(e.channelID(e.msg.meetingid))+" ")]),e.msg.end_at?t("li",{staticClass:"meeting-operation"},[e._v(" "+e._s(e.$L("\u4F1A\u8BAE\u5DF2\u7ED3\u675F"))+" ")]):t("li",{staticClass:"meeting-operation",on:{click:e.openMeeting}},[e._v(" "+e._s(e.$L("\u70B9\u51FB\u52A0\u5165\u4F1A\u8BAE"))+" "),t("i",{staticClass:"taskfont"},[e._v("\uE68B")])])])])},zn=[];const Nn={props:{msg:Object},methods:{openMeeting(){this.$emit("openMeeting")},channelID(e){return e.replace(/^(.{3})(.{3})(.*)$/,"$1 $2 $3")}}},Ke={};var Hn=m(Nn,Fn,zn,!1,Wn,null,null,null);function Wn(e){for(let i in Ke)this[i]=Ke[i]}var Vn=function(){return Hn.exports}(),qn=function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("div",{staticClass:"content-text content-word-chain no-dark-content"},[t("pre",{domProps:{innerHTML:e._s(e.$A.formatTextMsg(e.msg.text,e.userId))}}),t("ul",{class:{expand:e.unfoldWordChainData.indexOf(e.msgId)!==-1}},[e._l((e.msg.list||[]).filter(function(s){return s.type=="case"}),function(s){return t("li",[e._v(" "+e._s(e.$L("\u4F8B"))+" "+e._s(s.text)+" ")])}),e._l((e.msg.list||[]).filter(function(s){return s.type!="case"&&s.text}),function(s,n){return t("li",[n==2&&e.msg.list.length>4?t("span",{staticClass:"expand",on:{click:e.unfoldWordChain}},[e._v(" ..."+e._s(e.$L("\u5C55\u5F00"))+"... ")]):e._e(),t("span",{class:{shrink:n>=2&&e.msg.list.length>4}},[e._v(" "+e._s(n+1)+". "+e._s(s.text)+" ")])])}),t("li",{staticClass:"participate",on:{click:e.onWordChain}},[e._v(" "+e._s(e.$L("\u53C2\u4E0E\u63A5\u9F99"))+" "),t("i",{staticClass:"taskfont"},[e._v("\uE703")])])],2)])},Yn=[];const Kn={props:{msg:Object,msgId:Number,unfoldWordChainData:Array},methods:{unfoldWordChain(){this.$emit("unfoldWordChain")},onWordChain(){this.$emit("onWordChain")}}},Je={};var Jn=m(Kn,qn,Yn,!1,Gn,null,null,null);function Gn(e){for(let i in Je)this[i]=Je[i]}var Qn=function(){return Jn.exports}(),Xn=function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("div",{staticClass:"content-text content-word-vote no-dark-content"},[t("div",{staticClass:"vote-msg-head"},[t("i",{staticClass:"taskfont"},[e._v("\uE7FD")]),t("em",[e._v(e._s(e.$L("\u6295\u7968")))]),t("span",[e._v(e._s(e.msg.multiple==1?e.$L("\u591A\u9009"):e.$L("\u5355\u9009")))]),t("span",[e._v(e._s(e.msg.anonymous==1?e.$L("\u533F\u540D"):e.$L("\u5B9E\u540D")))])]),t("pre",{domProps:{innerHTML:e._s(e.$A.formatTextMsg(e.msg.text,e.userId))}}),(e.msg.votes||[]).filter(function(s){return s.userid==e.userId}).length==0?[e.msg.multiple==0?t("RadioGroup",{attrs:{vertical:""},model:{value:e.voteData[e.msg.uuid],callback:function(s){e.$set(e.voteData,e.msg.uuid,s)},expression:"voteData[msg.uuid]"}},e._l(e.msg.list||[],function(s,n){return t("Radio",{key:n,attrs:{label:s.id}},[e._v(" "+e._s(s.text)+" ")])}),1):t("CheckboxGroup",{model:{value:e.voteData[e.msg.uuid],callback:function(s){e.$set(e.voteData,e.msg.uuid,s)},expression:"voteData[msg.uuid]"}},e._l(e.msg.list||[],function(s,n){return t("Checkbox",{key:n,attrs:{label:s.id}},[e._v(" "+e._s(s.text)+" ")])}),1),t("div",{staticClass:"btn-row"},[(e.voteData[e.msg.uuid]||[]).length==0?t("Button",{staticClass:"ivu-btn-grey",attrs:{disabled:""}},[e._v(e._s(e.$L("\u8BF7\u9009\u62E9\u540E\u6295\u7968")))]):t("Button",{staticClass:"no-dark-content",attrs:{type:"warning",loading:e.msg._loadIng>0},on:{click:function(s){return e.onVote("vote")}}},[e._v(e._s(e.$L("\u7ACB\u5373\u6295\u7968")))])],1)]:[t("div",{staticClass:"vote-result-body"},[t("ul",e._l(e.msg.list||[],function(s){return t("li",[t("div",{staticClass:"vote-option-title"},[e._v(e._s(s.text))]),t("div",{staticClass:"ticket-num"},[t("span",[e._v(e._s(e.getVoteProgress(e.msg,s.id).num)+e._s(e.$L("\u7968")))]),t("span",[e._v(e._s(e.getVoteProgress(e.msg,s.id).progress+"%"))])]),t("Progress",{attrs:{percent:Number(e.getVoteProgress(e.msg,s.id).progress),"stroke-width":5,"hide-info":""}}),e.msg.anonymous==0?t("div",{staticClass:"avatar-row"},[e._l((e.msg.votes||[]).filter(function(n){return n.votes.indexOf(s.id)!=-1}),function(n){return[t("UserAvatar",{attrs:{userid:n.userid,size:18}})]})],2):e._e()],1)}),0)]),e.msg.state==1&&e.msg.userid==e.userId?t("div",{staticClass:"btn-row"},[t("Button",{attrs:{type:"warning",loading:e.msg._loadIng>0},on:{click:function(s){return e.onVote("again")}}},[e._v(e._s(e.$L("\u518D\u6B21\u53D1\u9001")))]),t("Button",{attrs:{type:"warning",loading:e.msg._loadIng>0},on:{click:function(s){return e.onVote("finish")}}},[e._v(e._s(e.$L("\u7ED3\u675F\u6295\u7968")))])],1):e._e()]],2)},Zn=[];const ea={props:{msg:Object,voteData:Object},methods:{getVoteProgress(e,i){const t=e.votes.filter(n=>(n.votes||"").indexOf(i)!=-1).length,s=t?(t/e.votes.length*100).toFixed(2):"0.00";return{num:t,progress:s}},onVote(e){this.$emit("onVote",e)}}},Ge={};var ta=m(ea,Xn,Zn,!1,sa,null,null,null);function sa(e){for(let i in Ge)this[i]=Ge[i]}var ia=function(){return ta.exports}(),na=function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("div",[e._v(" "+e._s(e.$L("\u60A8\u597D\uFF0C\u6211\u662F\u673A\u5668\u4EBA"))+"\uFF1A"+e._s(e.msg.data.nickname)+"\uFF0C"+e._s(e.$L("\u6211\u7684\u673A\u5668\u4EBAID\u662F"))+"\uFF1A"+e._s(e.msg.data.userid)+"\uFF0C"+e._s(e.$L("\u4F60\u53EF\u4EE5\u53D1\u9001"))+" "),t("span",{staticClass:"mark-color mark-set"},[e._v("/help")]),e._v(" "+e._s(e.$L("\u67E5\u770B\u6211\u652F\u6301\u4EC0\u4E48\u547D\u4EE4"))+"\u3002 ")])},aa=[];const ra={props:{msg:Object},data(){return{}},computed:{},methods:{}},Qe={};var oa=m(ra,na,aa,!1,la,null,null,null);function la(e){for(let i in Qe)this[i]=Qe[i]}var ca=function(){return oa.exports}(),ua=function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("DialogMarkdown",{attrs:{text:e.content}})},da=[];const ha={components:{DialogMarkdown:O},props:{msg:Object},data(){return{}},computed:{IDLabel(){return this.msg.manager?this.$L("\u673A\u5668\u4EBAID"):""},content(){return["### {{\u60A8\u53EF\u4EE5\u901A\u8FC7\u53D1\u9001\u4EE5\u4E0B\u547D\u4EE4\u6765\u63A7\u5236\u6211}}","","| {{\u547D\u4EE4}} | {{\u8BF4\u660E}} |","| ------ | ------ |",this.msg.manager?"| ~/list~ | {{\u673A\u5668\u4EBA\u5217\u8868}} |":null,this.msg.manager?"| ~/newbot ({{\u673A\u5668\u4EBA\u540D\u79F0}})~ | {{\u521B\u5EFA\u673A\u5668\u4EBA}} |":null,this.msg.manager?null:"| ~/info~ | {{\u67E5\u770B\u673A\u5668\u4EBA\u8BE6\u60C5}} |","","### {{\u4FEE\u6539\u673A\u5668\u4EBA}}","","| {{\u547D\u4EE4}} | {{\u8BF4\u660E}} |","| ------ | ------ |","| ~/setname:IDLabel: ({{\u673A\u5668\u4EBA\u540D\u79F0}})~ | {{\u4FEE\u6539\u673A\u5668\u4EBA\u540D\u79F0}} |","| ~/deletebot:IDLabel:~ | {{\u5220\u9664\u673A\u5668\u4EBA}} |","| ~/clearday:IDLabel: ({{\u5929\u6570}})~ | {{\u8BBE\u7F6E\u4FDD\u7559\u6D88\u606F\u65F6\u95F4\uFF08\u9ED8\u8BA430\u5929\uFF09}} |","| ~/webhook:IDLabel: [url]~ | {{\u8BBE\u7F6E\u6D88\u606FWebhook\uFF08\u8BE6\u60C5\u8BF7\u770B API\u63A5\u53E3\u6587\u6863\uFF09}} |","","### {{\u673A\u5668\u4EBA\u8BBE\u7F6E}}","","| {{\u547D\u4EE4}} | {{\u8BF4\u660E}} |","| ------ | ------ |","| ~/token:IDLabel:~ | {{\u751F\u6210Token\u4EE4\u724C}} |","| ~/revoke:IDLabel:~ | {{\u64A4\u9500\u673A\u5668\u4EBAToken\u4EE4\u724C}} |","","### {{\u4F1A\u8BDD\u7BA1\u7406}}","","| {{\u547D\u4EE4}} | {{\u8BF4\u660E}} |","| ------ | ------ |","| ~/dialog:IDLabel: [{{\u641C\u7D22\u5173\u952E\u8BCD}}]~ | {{\u67E5\u770B\u4F1A\u8BDDID}} |","","### {{API\u63A5\u53E3\u6587\u6863}}","","| {{\u547D\u4EE4}} | {{\u8BF4\u660E}} |","| ------ | ------ |","| ~/api~ | {{\u67E5\u770B\u63A5\u53E3\u5217\u8868}} |"].filter(Boolean).map(e=>e.replace(/~([^~]+)~/g,(i,t)=>'<span class="mark-color mark-set">'+t+"</span>").replace(/\{\{([^}]+)\}\}/g,(i,t)=>this.$L(t)).replace(/:IDLabel:/g," {"+this.IDLabel+"}")).join(`
|
|
`)}}},Xe={};var pa=m(ha,ua,da,!1,fa,null,null,null);function fa(e){for(let i in Xe)this[i]=Xe[i]}var ma=function(){return pa.exports}(),ga=function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("DialogMarkdown",{attrs:{text:e.content}})},_a=[];const va={components:{DialogMarkdown:O},props:{msg:Object},data(){return{}},computed:{content(){return["### {{\u6211\u7684\u673A\u5668\u4EBA}}","","| ID | {{\u540D\u79F0}} | {{\u6E05\u7406\u65F6\u95F4}} | Webhook |","| ------ | ------ | ------ | ------ |",...this.msg.data.map(e=>"| "+e.userid+" | "+e.nickname+" | "+e.clear_day+" | "+(e.webhook_url?"\u221A":"")+" |")].map(e=>e.replace(/\{\{([^}]+)\}\}/g,(i,t)=>this.$L(t))).join(`
|
|
`)}},methods:{}},Ze={};var $a=m(va,ga,_a,!1,ya,null,null,null);function ya(e){for(let i in Ze)this[i]=Ze[i]}var wa=function(){return $a.exports}(),ka=function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("DialogMarkdown",{attrs:{text:e.content}})},ba=[];const Aa={components:{DialogMarkdown:O},props:{msg:Object},data(){return{}},computed:{content(){return["### {{\u673A\u5668\u4EBA\u8BE6\u60C5}}","","| {{\u5C5E\u6027}} | {{\u7ED3\u679C}} |","| ------ | ------ |","| {{\u673A\u5668\u4EBAID}} | "+this.msg.data.userid+" |","| {{\u673A\u5668\u4EBA\u540D\u79F0}} | "+this.msg.data.nickname+" |","| {{\u4FDD\u7559\u6D88\u606F\u65F6\u95F4}} | "+this.msg.data.clear_day+" |","| {{\u6700\u540E\u4E00\u6B21\u6E05\u7406\u65F6\u95F4}} | "+this.msg.data.clear_at+" |"].map(e=>e.replace(/\{\{([^}]+)\}\}/g,(i,t)=>this.$L(t))).join(`
|
|
`)}},methods:{}},et={};var Ca=m(Aa,ka,ba,!1,Sa,null,null,null);function Sa(e){for(let i in et)this[i]=et[i]}var Ta=function(){return Ca.exports}(),Da=function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("DialogMarkdown",{attrs:{text:e.content}})},La=[];const Ia={components:{DialogMarkdown:O},props:{msg:Object},data(){return{}},computed:{content(){return["### {{\u521B\u5EFA\u6210\u529F}}","","| {{\u5C5E\u6027}} | {{\u7ED3\u679C}} |","| ------ | ------ |","| {{\u673A\u5668\u4EBAID}} | "+this.msg.data.userid+" |","| {{\u673A\u5668\u4EBA\u540D\u79F0}} | "+this.msg.data.nickname+" |"].map(e=>e.replace(/\{\{([^}]+)\}\}/g,(i,t)=>this.$L(t))).join(`
|
|
`)}},methods:{}},tt={};var xa=m(Ia,Da,La,!1,Ea,null,null,null);function Ea(e){for(let i in tt)this[i]=tt[i]}var Ma=function(){return xa.exports}(),ja=function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("DialogMarkdown",{attrs:{text:e.content}})},Pa=[];const Ra={components:{DialogMarkdown:O},props:{msg:Object},data(){return{}},computed:{content(){return["### {{\u8BBE\u7F6E\u540D\u79F0\u6210\u529F}}","","| {{\u5C5E\u6027}} | {{\u7ED3\u679C}} |","| ------ | ------ |","| {{\u673A\u5668\u4EBAID}} | "+this.msg.data.userid+" |","| {{\u673A\u5668\u4EBA\u540D\u79F0}} | "+this.msg.data.nickname+" |"].map(e=>e.replace(/\{\{([^}]+)\}\}/g,(i,t)=>this.$L(t))).join(`
|
|
`)}},methods:{}},st={};var Ua=m(Ra,ja,Pa,!1,Oa,null,null,null);function Oa(e){for(let i in st)this[i]=st[i]}var Ba=function(){return Ua.exports}(),Fa=function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("DialogMarkdown",{attrs:{text:e.content}})},za=[];const Na={components:{DialogMarkdown:O},props:{msg:Object},data(){return{}},computed:{content(){return["### {{\u5220\u9664\u6210\u529F}}","","| {{\u5C5E\u6027}} | {{\u7ED3\u679C}} |","| ------ | ------ |","| {{\u673A\u5668\u4EBAID}} | "+this.msg.data.userid+" |","| {{\u673A\u5668\u4EBA\u540D\u79F0}} | "+this.msg.data.nickname+" |"].map(e=>e.replace(/\{\{([^}]+)\}\}/g,(i,t)=>this.$L(t))).join(`
|
|
`)}},methods:{}},it={};var Ha=m(Na,Fa,za,!1,Wa,null,null,null);function Wa(e){for(let i in it)this[i]=it[i]}var Va=function(){return Ha.exports}(),qa=function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("DialogMarkdown",{attrs:{text:e.content}})},Ya=[];const Ka={components:{DialogMarkdown:O},props:{msg:Object},data(){return{}},computed:{content(){return["### {{\u751F\u6210Token\u4EE4\u724C}}","","| {{\u5C5E\u6027}} | {{\u7ED3\u679C}} |","| ------ | ------ |","| <span style='white-space:nowrap;'>{{\u673A\u5668\u4EBAID}}</span> | "+this.msg.data.userid+" |","| <span style='white-space:nowrap;'>{{\u673A\u5668\u4EBA\u540D\u79F0}}</span> | "+this.msg.data.nickname+" |","| Token | "+this.msg.data.token+" |"].map(e=>e.replace(/\{\{([^}]+)\}\}/g,(i,t)=>this.$L(t))).join(`
|
|
`)}},methods:{}},nt={};var Ja=m(Ka,qa,Ya,!1,Ga,null,null,null);function Ga(e){for(let i in nt)this[i]=nt[i]}var Qa=function(){return Ja.exports}(),Xa=function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("DialogMarkdown",{attrs:{text:e.content}})},Za=[];const er={components:{DialogMarkdown:O},props:{msg:Object},data(){return{}},computed:{content(){return["### {{\u64A4\u9500\u673A\u5668\u4EBAToken\u4EE4\u724C}}","","| {{\u5C5E\u6027}} | {{\u7ED3\u679C}} |","| ------ | ------ |","| {{\u673A\u5668\u4EBAID}} | "+this.msg.data.userid+" |","| {{\u673A\u5668\u4EBA\u540D\u79F0}} | "+this.msg.data.nickname+" |"].map(e=>e.replace(/\{\{([^}]+)\}\}/g,(i,t)=>this.$L(t))).join(`
|
|
`)}},methods:{}},at={};var tr=m(er,Xa,Za,!1,sr,null,null,null);function sr(e){for(let i in at)this[i]=at[i]}var ir=function(){return tr.exports}(),nr=function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("DialogMarkdown",{attrs:{text:e.content}})},ar=[];const rr={components:{DialogMarkdown:O},props:{msg:Object},data(){return{}},computed:{content(){return["### {{\u8BBE\u7F6EWebhook\u5730\u5740}}","","| {{\u5C5E\u6027}} | {{\u7ED3\u679C}} |","| ------ | ------ |","| {{\u673A\u5668\u4EBAID}} | "+this.msg.data.userid+" |","| {{\u673A\u5668\u4EBA\u540D\u79F0}} | "+this.msg.data.nickname+" |","| {{Webhook\u5730\u5740}} | "+this.msg.data.webhook_url+" |"].map(e=>e.replace(/\{\{([^}]+)\}\}/g,(i,t)=>this.$L(t))).join(`
|
|
`)}},methods:{}},rt={};var or=m(rr,nr,ar,!1,lr,null,null,null);function lr(e){for(let i in rt)this[i]=rt[i]}var cr=function(){return or.exports}(),ur=function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("DialogMarkdown",{attrs:{text:e.content}})},dr=[];const hr={components:{DialogMarkdown:O},props:{msg:Object},data(){return{}},computed:{content(){return["### {{\u8BBE\u7F6E\u4FDD\u7559\u6D88\u606F\u65F6\u95F4}}","","| {{\u5C5E\u6027}} | {{\u7ED3\u679C}} |","| ------ | ------ |","| {{\u673A\u5668\u4EBAID}} | "+this.msg.data.userid+" |","| {{\u673A\u5668\u4EBA\u540D\u79F0}} | "+this.msg.data.nickname+" |","| {{\u6E05\u7406\u5468\u671F}} | "+this.msg.data.clear_day+" {{\u5929}} |","| {{\u4E0B\u6B21\u6E05\u7406}} | "+this.msg.data.clear_at+" |"].map(e=>e.replace(/\{\{([^}]+)\}\}/g,(i,t)=>this.$L(t))).join(`
|
|
`)}},methods:{}},ot={};var pr=m(hr,ur,dr,!1,fr,null,null,null);function fr(e){for(let i in ot)this[i]=ot[i]}var mr=function(){return pr.exports}(),gr=function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("DialogMarkdown",{attrs:{text:e.content}})},_r=[];const vr={components:{DialogMarkdown:O},props:{msg:Object},data(){return{}},computed:{content(){return["### {{\u673A\u5668\u4EBA}} "+this.msg.data.nickname+" (ID:"+this.msg.data.userid+") {{\u5DF2\u52A0\u5165\u7684\u4F1A\u8BDD}}\uFF1A","","| {{\u4F1A\u8BDDID}} | {{\u4F1A\u8BDD\u540D\u79F0}} |","| ------ | ------ |",...this.msg.data.list.map(e=>"| "+e.id+" | "+e.name+(e.type==="user"?"{{ (\u4E2A\u4EBA)}}":"")+" |")].map(e=>e.replace(/\{\{([^}]+)\}\}/g,(i,t)=>this.$L(t))).join(`
|
|
`)}},methods:{}},lt={};var $r=m(vr,gr,_r,!1,yr,null,null,null);function yr(e){for(let i in lt)this[i]=lt[i]}var wr=function(){return $r.exports}(),kr=function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("DialogMarkdown",{attrs:{text:e.content}})},br=[];const Ar={components:{DialogMarkdown:O},props:{msg:Object},data(){return{}},computed:{content(){const e=/^(ai-|user-session-)/.test(this.msg.email)?"":" <span style='color:#999;padding-left:4px;'>({{\u8BE5\u673A\u5668\u4EBA\u4E0D\u652F\u6301}})</span>";return["## {{API \u4F7F\u7528\u8BF4\u660E}}","","### 1. {{\u53D1\u9001\u6587\u672C\u6D88\u606F}}","","{{\u5F00\u53D1\u8005\u53EF\u4EE5\u901A\u8FC7\u6B64\u63A5\u53E3\u8C03\u7528\u673A\u5668\u4EBA\u5411\u6307\u5B9A\u5BF9\u8BDD\u53D1\u9001\u6587\u672C\u6D88\u606F\u3002}}","","#### {{\u63A5\u53E3\u4FE1\u606F}}","","| {{\u5C5E\u6027}} | {{\u7ED3\u679C}} |","|------|------|","| **{{\u8BF7\u6C42\u65B9\u5F0F}}** | POST |","| **{{\u63A5\u53E3\u5730\u5740}}** | `"+$A.apiUrl("dialog/msg/sendtext")+"` |","| **{{\u8BF4\u660E}}** | {{\u901A\u8FC7\u673A\u5668\u4EBA\u5411\u6307\u5B9A\u5BF9\u8BDD\u53D1\u9001\u6587\u672C\u6D88\u606F}} |","","#### {{\u8BF7\u6C42\u5934}}","","| {{\u53C2\u6570\u540D}} | {{\u503C}} | {{\u5FC5\u586B}} |","|--------|-----|------|","| `version` | `"+this.msg.version+"` | \u221A |","| `token` | {{\u673A\u5668\u4EBAToken}} | \u221A |","","#### {{\u8BF7\u6C42\u53C2\u6570}}","","| {{\u53C2\u6570\u540D}} | {{\u8BF4\u660E}} | {{\u7C7B\u578B}} | {{\u5FC5\u586B}} | {{\u793A\u4F8B\u503C}} |","|--------|------|------|------|--------|","| `dialog_id` | {{\u5BF9\u8BDDID}} | string | \u221A | |","| `text` | {{\u6D88\u606F\u5185\u5BB9}} | string | \u221A | |","| `text_type` | {{\u6587\u672C\u7C7B\u578B}} | string | | {{html \u6216 md}} |","| `key` | {{\u641C\u7D22\u8BCD}} | string | | {{\u7559\u7A7A\u81EA\u52A8\u751F\u6210}} |","| `silence` | {{\u9759\u9ED8\u6A21\u5F0F}} | string | | {{yes \u6216 no}} |","| `reply_id` | {{\u56DE\u590D\u6307\u5B9A\u6D88\u606FID}} | string | | |","","### 2. {{Webhook \u6D88\u606F\u63A8\u9001}}","","{{\u673A\u5668\u4EBA\u6536\u5230\u6D88\u606F\u540E\u4F1A\u81EA\u52A8POST\u63A8\u9001\u5230\u914D\u7F6E\u7684Webhook\u5730\u5740\uFF0C\u8BF7\u6C42\u8D85\u65F6\u4E3A10\u79D2\u3002}}","","#### {{\u63A8\u9001\u53C2\u6570}}","","| {{\u53C2\u6570\u540D}} | {{\u8BF4\u660E}} | {{\u7C7B\u578B}} |","|--------|------|------|","| `text` | {{\u6D88\u606F\u6587\u672C\u5185\u5BB9}} | string |","| `reply_text` | {{\u56DE\u590D/\u5F15\u7528\u7684\u6D88\u606F\u6587\u672C}} | string |","| `token` | {{\u673A\u5668\u4EBAToken}} | string |","| `session_id` | {{\u4F1A\u8BDDID}}"+e+" | string |","| `dialog_id` | {{\u5BF9\u8BDDID}} | string |","| `dialog_type` | {{\u5BF9\u8BDD\u7C7B\u578B}} | string |","| `msg_id` | {{\u6D88\u606FID}} | string |","| `msg_uid` | {{\u6D88\u606F\u53D1\u9001\u4EBAID}} | string |","| `msg_user` | {{\u6D88\u606F\u53D1\u9001\u4EBA\u4FE1\u606F}} | object |","| `mention` | {{\u662F\u5426\u88AB@\u5230}} | boolean |","| `bot_uid` | {{\u673A\u5668\u4EBAID}} | string |","| `version` | {{\u7CFB\u7EDF\u7248\u672C}} | string |"].map(i=>i.replace(/\{\{([^}]+)\}\}/g,(t,s)=>this.$L(s))).join(`
|
|
`)}},methods:{}},ct={};var Cr=m(Ar,kr,br,!1,Sr,null,null,null);function Sr(e){for(let i in ct)this[i]=ct[i]}var Tr=function(){return Cr.exports}(),Dr=function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("div",{staticClass:"open-approve-details",attrs:{"data-id":e.msg.data.id}},[t("b",[e._v(e._s(e.$L(`${e.msg.data.nickname} \u63D0\u4EA4\u7684\u300C${e.msg.data.proc_def_name}\u300D\u5F85\u4F60\u5BA1\u6279`)))]),t("div",{staticClass:"cause"},[t("p",[e._v(e._s(e.$L("\u7533\u8BF7\u4EBA"))+"\uFF1A"),t("span",{staticClass:"mark-color"},[e._v("@"+e._s(e.msg.data.nickname))]),e._v(" "+e._s(e.msg.data.department))]),t("b",[e._v(e._s(e.$L("\u8BE6\u60C5")))]),e.$A.strExists(e.msg.data.proc_def_name,"\u8BF7\u5047")&&e.msg.data.type?t("p",[e._v(e._s(e.$L("\u5047\u671F\u7C7B\u578B"))+"\uFF1A"+e._s(e.$L(e.msg.data.type)))]):e._e(),t("p",[e._v(e._s(e.$L("\u5F00\u59CB\u65F6\u95F4"))+"\uFF1A"+e._s(e.msg.data.start_time)+" ("+e._s(e.$L(e.msg.data.start_day_of_week))+")")]),t("p",[e._v(e._s(e.$L("\u7ED3\u675F\u65F6\u95F4"))+"\uFF1A"+e._s(e.msg.data.end_time)+" ("+e._s(e.$L(e.msg.data.end_day_of_week))+")")]),t("p",[e._v(e._s(e.$L("\u4E8B\u7531"))+"\uFF1A"+e._s(e.msg.data.description))]),e.msg.data.thumb?t("p",{domProps:{innerHTML:e._s(e.imageHtml(e.msg.data.thumb))}}):e._e()]),t("div",{staticClass:"btn-raw no-dark-content"},[e.msg.action==="pass"?t("button",{staticClass:"ivu-btn ivu-btn-grey"},[e._v(e._s(e.$L("\u5DF2\u540C\u610F")))]):e.msg.action==="refuse"?t("button",{staticClass:"ivu-btn ivu-btn-grey rejected"},[e._v(e._s(e.$L("\u5DF2\u62D2\u7EDD")))]):e.msg.action==="withdraw"?t("button",{staticClass:"ivu-btn ivu-btn-grey revoked"},[e._v(e._s(e.$L("\u5DF2\u64A4\u9500")))]):[t("button",{staticClass:"ivu-btn ivu-btn-primary"},[e._v(e._s(e.$L("\u540C\u610F")))]),t("button",{staticClass:"ivu-btn ivu-btn-error"},[e._v(e._s(e.$L("\u62D2\u7EDD")))])]],2)])},Lr=[];const Ir={props:{msg:Object},data(){return{}},methods:{imageHtml(e){const i=$A.imageRatioHandle({src:e.url,width:e.width,height:e.height,crops:{ratio:5,percentage:"320x0"},scaleSize:220});return`<img src="${i.src}" width="${i.width}" height="${i.height}" />`}}},ut={};var xr=m(Ir,Dr,Lr,!1,Er,null,null,null);function Er(e){for(let i in ut)this[i]=ut[i]}var Mr=function(){return xr.exports}(),jr=function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("div",{staticClass:"open-approve-details",attrs:{"data-id":e.msg.data.id}},[t("b",[e._v(e._s(e.$L(`\u6284\u9001 ${e.msg.data.nickname} \u63D0\u4EA4\u7684\u300C${e.msg.data.proc_def_name}\u300D\u8BB0\u5F55`)))]),t("div",{staticClass:"cause"},[t("p",[e._v(e._s(e.$L("\u7533\u8BF7\u4EBA"))+"\uFF1A"),t("span",{staticClass:"mark-color"},[e._v("@"+e._s(e.msg.data.nickname))]),e._v(" "+e._s(e.msg.data.department))]),t("b",[e._v(e._s(e.$L("\u8BE6\u60C5")))]),e.$A.strExists(e.msg.data.proc_def_name,"\u8BF7\u5047")&&e.msg.data.type?t("p",[e._v(e._s(e.$L("\u5047\u671F\u7C7B\u578B"))+"\uFF1A"+e._s(e.$L(e.msg.data.type)))]):e._e(),t("p",[e._v(e._s(e.$L("\u5F00\u59CB\u65F6\u95F4"))+"\uFF1A"+e._s(e.msg.data.start_time)+" ("+e._s(e.$L(e.msg.data.start_day_of_week))+")")]),t("p",[e._v(e._s(e.$L("\u7ED3\u675F\u65F6\u95F4"))+"\uFF1A"+e._s(e.msg.data.end_time)+" ("+e._s(e.$L(e.msg.data.end_day_of_week))+")")]),t("p",[e._v(e._s(e.$L("\u4E8B\u7531"))+"\uFF1A"+e._s(e.msg.data.description))])]),t("div",{staticClass:"btn-raw no-dark-content"},[e.msg.is_finished?t("button",{staticClass:"ivu-btn ivu-btn-grey"},[e._v(e._s(e.$L("\u5DF2\u540C\u610F")))]):t("button",{staticClass:"ivu-btn ivu-btn-grey"},[e._v(e._s(e.$L("\u67E5\u770B\u8BE6\u60C5")))])])])},Pr=[];const Rr={props:{msg:Object},data(){return{}},computed:{},methods:{}},dt={};var Ur=m(Rr,jr,Pr,!1,Or,null,null,null);function Or(e){for(let i in dt)this[i]=dt[i]}var Br=function(){return Ur.exports}(),Fr=function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("div",{staticClass:"open-approve-details",attrs:{"data-id":e.msg.data.id}},[t("b",[e._v(e._s(e.$L(`${e.msg.data.comment_nickname} \u8BC4\u8BBA\u4E86 ${e.msg.data.nickname} \u7684\u300C${e.msg.data.proc_def_name}\u300D\u5BA1\u6279`)))]),t("div",{staticClass:"cause"},[t("p",[e._v(e._s(e.$L("\u7533\u8BF7\u4EBA"))+"\uFF1A"),t("span",{staticClass:"mark-color"},[e._v("@"+e._s(e.msg.data.nickname))]),e._v(" "+e._s(e.msg.data.department))]),t("b",[e._v(e._s(e.$L("\u8BC4\u8BBA\u5185\u5BB9")))]),t("p",[e._v(e._s(e.msg.data.comment_content))]),e.msg.data.thumb?t("p",{domProps:{innerHTML:e._s(e.imageHtml(e.msg.data.thumb))}}):e._e()]),t("div",{staticClass:"btn-raw no-dark-content"},[t("button",{staticClass:"ivu-btn ivu-btn-grey"},[e._v(e._s(e.$L("\u67E5\u770B\u8BE6\u60C5")))])])])},zr=[];const Nr={props:{msg:Object},data(){return{}},methods:{imageHtml(e){const i=$A.imageRatioHandle({src:e.url,width:e.width,height:e.height,crops:{ratio:5,percentage:"320x0"},scaleSize:220});return`<img src="${i.src}" width="${i.width}" height="${i.height}" />`}}},ht={};var Hr=m(Nr,Fr,zr,!1,Wr,null,null,null);function Wr(e){for(let i in ht)this[i]=ht[i]}var Vr=function(){return Hr.exports}(),qr=function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("div",{staticClass:"open-approve-details",attrs:{"data-id":e.msg.data.id}},[t("b",[e._v(e._s(e.$L(e.title)))]),t("div",{staticClass:"cause"},[t("p",[e._v(e._s(e.$L("\u7533\u8BF7\u4EBA"))+"\uFF1A"),t("span",{staticClass:"mark-color"},[e._v("@"+e._s(e.msg.data.start_nickname))]),e._v(" "+e._s(e.msg.data.department))]),t("b",[e._v(e._s(e.$L("\u8BE6\u60C5")))]),e.$A.strExists(e.msg.data.proc_def_name,"\u8BF7\u5047")&&e.msg.data.type?t("p",[e._v(e._s(e.$L("\u5047\u671F\u7C7B\u578B"))+"\uFF1A"+e._s(e.$L(e.msg.data.type)))]):e._e(),t("p",[e._v(e._s(e.$L("\u5F00\u59CB\u65F6\u95F4"))+"\uFF1A"+e._s(e.msg.data.start_time)+" ("+e._s(e.$L(e.msg.data.start_day_of_week))+")")]),t("p",[e._v(e._s(e.$L("\u7ED3\u675F\u65F6\u95F4"))+"\uFF1A"+e._s(e.msg.data.end_time)+" ("+e._s(e.$L(e.msg.data.end_day_of_week))+")")]),t("p",[e._v(e._s(e.$L("\u4E8B\u7531"))+"\uFF1A"+e._s(e.msg.data.description))])]),t("div",{staticClass:"btn-raw no-dark-content"},[e.msg.action==="pass"?t("button",{staticClass:"ivu-btn ivu-btn-grey"},[e._v(e._s(e.$L("\u5DF2\u540C\u610F")))]):e.msg.action==="refuse"?t("button",{staticClass:"ivu-btn ivu-btn-grey rejected"},[e._v(e._s(e.$L("\u5DF2\u62D2\u7EDD")))]):e.msg.action==="withdraw"?t("button",{staticClass:"ivu-btn ivu-btn-grey revoked"},[e._v(e._s(e.$L("\u5DF2\u64A4\u9500")))]):e._e()])])},Yr=[];const Kr={props:{msg:Object},data(){return{}},computed:{title({msg:e}){return e.action==="pass"?`\u60A8\u53D1\u8D77\u7684\u300C${e.data.proc_def_name}\u300D\u5DF2\u901A\u8FC7`:`\u60A8\u53D1\u8D77\u7684\u300C${e.data.proc_def_name}\u300D\u88AB ${e.data.nickname} \u62D2\u7EDD`}},methods:{}},pt={};var Jr=m(Kr,qr,Yr,!1,Gr,null,null,null);function Gr(e){for(let i in pt)this[i]=pt[i]}var Qr=function(){return Jr.exports}(),Xr=function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("div",[t("p",[e._v(e._s(e.$L(e.msg.title)))]),t("p",[e._v("\xA0")]),e._l(e.msg.list,function(s){return t("p",[t("span",{staticClass:"mention task",attrs:{"data-id":s.id}},[e._v("#"+e._s(s.name))])])})],2)},Zr=[];const eo={props:{msg:Object},data(){return{}},computed:{},methods:{}},ft={};var to=m(eo,Xr,Zr,!1,so,null,null,null);function so(e){for(let i in ft)this[i]=ft[i]}var io=function(){return to.exports}(),no=function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("div",[t("p",[t("b",[e._v(e._s(e.$L(e.msg.title)))])]),t("p",[e._v("\xA0")]),t("p",[e._v(e._s(e.$L("\u6587\u4EF6\u540D"))+": "+e._s(e.msg.name))]),t("p",[e._v(e._s(e.$L("\u6587\u4EF6\u5927\u5C0F"))+": "+e._s(e.$A.bytesToSize(e.msg.size)))]),t("p",{staticStyle:{"margin-top":"10px"}},[t("Button",{staticClass:"no-dark-content",attrs:{to:e.msg.url,target:"_blank",type:"warning"}},[e._v(e._s(e.$L("\u7ACB\u5373\u4E0B\u8F7D")))])],1)])},ao=[];const ro={props:{msg:Object},data(){return{}},computed:{},methods:{}},mt={};var oo=m(ro,no,ao,!1,lo,null,null,null);function lo(e){for(let i in mt)this[i]=mt[i]}var co=function(){return oo.exports}(),uo=function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("div",e._l(e.items,function(s,n){return t("p",{key:n,style:s.style},[e._v(e._s(s.content))])}),0)},ho=[];const po={props:{msg:Object},data(){return{}},computed:{items({msg:e}){const{content:i}=e;return $A.isArray(i)?i.map(t=>this.formatContent(t)):[this.formatContent(i)]}},methods:{formatContent(e){return $A.isJson(e)?{content:e.language===!1||this.msg.source==="api"?e.content:this.$L(e.content),style:e.style||{}}:{content:this.$L(e),style:{}}}}},gt={};var fo=m(po,uo,ho,!1,mo,null,null,null);function mo(e){for(let i in gt)this[i]=gt[i]}var go=function(){return fo.exports}(),_o=function(){var e=this,i=e.$createElement,t=e._self._c||i;return e.isBot?t("div",[e._v(" "+e._s(e.$L("\u4E0D\u652F\u6301\u7684\u6307\u4EE4"))+" "),t("span",{staticClass:"warning-color"},[e._v(e._s(e.msg.type))]),e._v("\uFF0C"+e._s(e.$L("\u4F60\u53EF\u4EE5\u53D1\u9001"))+" "),t("span",{staticClass:"mark-color mark-set"},[e._v("/help")]),e._v(" "+e._s(e.$L("\u67E5\u770B\u5E2E\u52A9\u83DC\u5355"))+"\u3002 ")]):t("div",[e._v(" "+e._s(e.$L("\u672A\u77E5\u7684\u6D88\u606F"))+" ")])},vo=[];const $o={props:{msg:Object},data(){return{}},computed:{isBot(){return/^\//.test(this.msg.type)}},methods:{}},_t={};var yo=m($o,_o,vo,!1,wo,null,null,null);function wo(e){for(let i in _t)this[i]=_t[i]}var ko=function(){return yo.exports}(),bo=function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("div",{class:`content-template no-dark-content ${e.msg.type}`,on:{click:e.viewText}},[t(e.currentTemplate,{tag:"component",attrs:{msg:e.msg}})],1)},Ao=[];const Co={props:{msg:Object},data(){return{}},computed:{currentTemplate(){switch(this.msg.type){case"/hello":return ca;case"/help":return ma;case"/list":return wa;case"/info":return Ta;case"/newbot":return Ma;case"/setname":return Ba;case"/deletebot":return Va;case"/token":return Qa;case"/revoke":return ir;case"/webhook":return cr;case"/clearday":return mr;case"/dialog":return wr;case"/api":return Tr;case"approve_reviewer":return Mr;case"approve_notifier":return Br;case"approve_comment_notifier":return Vr;case"approve_submitter":return Qr;case"task_list":return io;case"file_download":return co;case"content":return go;default:return ko}}},methods:{viewText(e){this.$emit("viewText",e)}}},vt={};var So=m(Co,bo,Ao,!1,To,null,null,null);function To(e){for(let i in vt)this[i]=vt[i]}var Do=function(){return So.exports}(),Lo=function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("div",{staticClass:"content-loading"},[e.error===!0?t("Icon",{attrs:{type:"ios-alert-outline"}}):t("Loading")],1)},Io=[];const xo={props:{error:Boolean}},$t={};var Eo=m(xo,Lo,Io,!1,Mo,null,null,null);function Mo(e){for(let i in $t)this[i]=$t[i]}var jo=function(){return Eo.exports}(),Po=function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("div",{staticClass:"content-unknown"},[e._v(e._s(e.$L("\u672A\u77E5\u7684\u6D88\u606F")))])},Ro=[];const Uo={},yt={};var Oo=m(Uo,Po,Ro,!1,Bo,null,null,null);function Bo(e){for(let i in yt)this[i]=yt[i]}var Fo=function(){return Oo.exports}(),zo=function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("div",{staticClass:"dialog-view",class:e.viewClass,attrs:{"data-id":e.msgData.id}},[e.dialogType==="group"?t("div",{staticClass:"dialog-username",on:{pointerdown:function(s){return e.handleOperation(s,"mention")}}},[t("UserAvatar",{attrs:{userid:e.msgData.userid,"show-icon":!1,"show-name":!0,"click-open-detail":""}})],1):e._e(),t("div",{staticClass:"dialog-head",class:e.headClass,on:{click:e.handleClick,pointerdown:function(s){return e.handleOperation(s,"operateMsg")}}},[!e.hideReply&&e.msgData.reply_id&&e.showReplyData(e.msgData.msg.reply_data)?t("div",{staticClass:"dialog-reply no-dark-content",class:e.replyClass,on:{click:e.viewReply}},[t("div",{staticClass:"reply-avatar"},[t("UserAvatar",{attrs:{userid:e.msgData.msg.reply_data.userid,"show-icon":!1,"show-name":!0}})],1),t("div",{staticClass:"reply-desc",domProps:{innerHTML:e._s(e.$A.getMsgSimpleDesc(e.msgData.msg.reply_data,"image-preview"))}})]):e._e(),!e.hideForward&&e.msgData.forward_id&&e.showForwardData(e.msgData.msg.forward_data)?t("div",{staticClass:"dialog-reply no-dark-content",on:{click:function(s){return e.openDialog(e.msgData.msg.forward_data.userid)}}},[t("div",{staticClass:"reply-avatar"},[t("UserAvatar",{attrs:{userid:e.msgData.msg.forward_data.userid,"show-icon":!1,"show-name":!0}})],1)]):e._e(),t("div",{ref:"content",staticClass:"dialog-content",class:e.contentClass},[e.msgData.type==="text"?t("TextMsg",{attrs:{msgId:e.msgData.id,msg:e.msgData.msg,createdAt:e.msgData.created_at},on:{viewText:e.viewText}}):e.msgData.type==="longtext"?t("LongTextMsg",{attrs:{msgId:e.msgData.id,msg:e.msgData.msg},on:{viewText:e.viewText,downFile:e.downFile}}):e.msgData.type==="file"?t("FileMsg",{attrs:{msg:e.msgData.msg},on:{viewFile:e.viewFile,downFile:e.downFile}}):e.msgData.type==="record"?t("RecordMsg",{attrs:{msgId:e.msgData.id,msg:e.msgData.msg},on:{viewText:e.viewText,playRecord:e.playRecord}}):e.msgData.type==="location"?t("LocationMsg",{attrs:{msg:e.msgData.msg}}):e.msgData.type==="meeting"?t("MeetingMsg",{attrs:{msg:e.msgData.msg},on:{openMeeting:e.openMeeting}}):e.msgData.type==="word-chain"?t("WordChainMsg",{attrs:{msg:e.msgData.msg,msgId:e.msgData.id,unfoldWordChainData:e.unfoldWordChainData},on:{unfoldWordChain:function(s){return e.unfoldWordChain(e.msgData)},onWordChain:e.onWordChain}}):e.msgData.type==="vote"?t("VoteMsg",{attrs:{msg:e.msgData.msg,voteData:e.voteData},on:{onVote:function(s){return e.onVote(s,e.msgData)}}}):e.msgData.type==="template"?t("TemplateMsg",{attrs:{msg:e.msgData.msg},on:{viewText:e.viewText}}):e.isLoading?t("LoadMsg",{attrs:{error:e.msgData.error}}):t("UnknownMsg")],1),e.$A.arrayLength(e.msgData.emoji)>0?t("ul",{staticClass:"dialog-emoji"},e._l(e.msgData.emoji,function(s,n){return t("li",{key:n,class:{hasme:s.userids.includes(e.userId)}},[t("div",{staticClass:"emoji-symbol no-dark-content",on:{click:function(a){return e.onEmoji(s.symbol)}}},[e._v(e._s(s.symbol))]),t("div",{staticClass:"emoji-users",on:{click:function(a){return e.onShowEmojiUser(s)}}},[t("ul",[e._l(e.sortEmojiUser(s.userids),function(a,r){return[r<e.emojiUsersNum?t("li",{key:`emoji-user-li-${r}-${a}`},[t("UserAvatar",{attrs:{userid:a,"show-name":"","show-icon":!1}})],1):r==e.emojiUsersNum?t("li",{key:`emoji-user-more-${r}`},[e._v("+"+e._s(s.userids.length-e.emojiUsersNum)+"\u4F4D")]):e._e()]})],2)])])}),0):e._e()]),t("div",{staticClass:"dialog-foot"},[!e.hideReply&&e.msgData.reply_num>0?t("div",{staticClass:"reply",on:{click:e.replyList}},[t("i",{staticClass:"taskfont"},[e._v("\uE6EB")]),e._v(" "+e._s(e.msgData.reply_num)+"\u6761\u56DE\u590D ")]):e._e(),e.msgData.tag?t("div",{staticClass:"tag",on:{click:e.openTag}},[t("i",{staticClass:"taskfont"},[e._v("\uE61E")])]):e._e(),e.msgData.todo?t("div",{staticClass:"todo",class:{todo_done:e.msgData.todo_done},on:{click:e.openTodo}},[t("EPopover",{ref:"todo",attrs:{"popper-class":"dialog-wrapper-read-poptip",placement:e.isRightMsg?"bottom-end":"bottom-start"},model:{value:e.todoShow,callback:function(s){e.todoShow=s},expression:"todoShow"}},[t("div",{staticClass:"read-poptip-content"},[t("Scrollbar",{attrs:{"class-name":"read"}},[t("div",{staticClass:"read-title"},[t("em",[e._v(e._s(e.todoDoneList.length))]),e._v(" "+e._s(e.$L("\u5B8C\u6210"))+" ")]),t("ul",e._l(e.todoDoneList,function(s){return t("li",{key:`todo-done-${s.userid}`},[t("UserAvatar",{attrs:{userid:s.userid,size:26,showName:""}})],1)}),0)]),t("Scrollbar",{attrs:{"class-name":"unread"}},[t("div",{staticClass:"read-title"},[t("em",[e._v(e._s(e.todoUndoneList.length))]),e._v(" "+e._s(e.$L("\u5F85\u529E"))+" "),t("span",{staticClass:"space"}),t("Button",{attrs:{type:"primary",size:"small"},on:{click:e.handleTodoAdd}},[e._v(e._s(e.$L("\u6DFB\u52A0")))])],1),t("ul",e._l(e.todoUndoneList,function(s){return t("li",{key:`todo-undone-${s.userid}`},[t("UserAvatar",{attrs:{userid:s.userid,size:26,showName:""}})],1)}),0)])],1),t("div",{staticClass:"popover-reference",attrs:{slot:"reference"},slot:"reference"})]),e.todoLoad>0?t("Loading"):t("i",{staticClass:"taskfont"},[e._v("\uE7B7")])],1):e._e(),e.msgData.modify?t("div",{staticClass:"modify"},[t("i",{staticClass:"taskfont"},[e._v("\uE779")])]):e._e(),e.msgData.error===!0?t("div",{staticClass:"error",on:{click:e.onError}},[t("Icon",{attrs:{type:"ios-alert"}})],1):e.isLoading?t("Loading",{attrs:{delay:300}}):[e.timeShow?t("div",{staticClass:"time",on:{click:function(s){e.timeShow=!1}}},[e._v(e._s(e.msgData.created_at))]):t("div",{staticClass:"time",attrs:{title:e.msgData.created_at},on:{click:function(s){e.timeShow=!0}}},[e._v(e._s(e.$A.timeFormat(e.msgData.created_at)))]),e.hidePercentage?e._e():[e.dialogType==="group"?t("div",{staticClass:"percent",on:{click:e.openReadPercentage}},[t("EPopover",{ref:"percent",attrs:{"popper-class":"dialog-wrapper-read-poptip",placement:e.isRightMsg?"bottom-end":"bottom-start"},model:{value:e.percentageShow,callback:function(s){e.percentageShow=s},expression:"percentageShow"}},[t("div",{staticClass:"read-poptip-content"},[t("Scrollbar",{attrs:{"class-name":"read"}},[t("div",{staticClass:"read-title"},[t("em",[e._v(e._s(e.readList.length))]),e._v(" "+e._s(e.$L("\u5DF2\u8BFB"))+" ")]),t("ul",e._l(e.readList,function(s){return t("li",{key:`read-${s.userid}`},[t("UserAvatar",{attrs:{userid:s.userid,size:26,showName:""}})],1)}),0)]),t("Scrollbar",{attrs:{"class-name":"unread"}},[t("div",{staticClass:"read-title"},[t("em",[e._v(e._s(e.unreadList.length))]),e._v(" "+e._s(e.$L("\u672A\u8BFB"))+" ")]),t("ul",e._l(e.unreadList,function(s){return t("li",{key:`unread-${s.userid}`},[t("UserAvatar",{attrs:{userid:s.userid,size:26,showName:""}})],1)}),0)])],1),t("div",{staticClass:"popover-reference",attrs:{slot:"reference"},slot:"reference"})]),e.percentageLoad>0?t("Loading"):t("WCircle",{attrs:{percent:e.msgData.percentage,size:14}})],1):e.msgData.percentage===100?t("Icon",{staticClass:"done",attrs:{type:"md-done-all"}}):t("Icon",{staticClass:"done",attrs:{type:"md-checkmark"}})]]],2)])},No=[];const se=Object.freeze({emoticon:/^<img\s+class="emoticon"[^>]*?>$/,threeEmoji:/^\s*<p>\s*([\uD800-\uDBFF][\uDC00-\uDFFF]){3}\s*<\/p>\s*$/,twoEmoji:/^\s*<p>\s*([\uD800-\uDBFF][\uDC00-\uDFFF]){2}\s*<\/p>\s*$/,oneEmoji:/^\s*<p>\s*[\uD800-\uDBFF][\uDC00-\uDFFF]\s*<\/p>\s*$/,emojiRange:/^\s*<p>\s*([\uD800-\uDBFF][\uDC00-\uDFFF]){1,3}\s*<\/p>\s*$/}),Ho={name:"DialogView",components:{UnknownMsg:Fo,LoadMsg:jo,TemplateMsg:Do,VoteMsg:ia,WordChainMsg:Qn,MeetingMsg:Vn,LocationMsg:Bn,RecordMsg:Mn,LongTextMsg:wn,TextMsg:mn,FileMsg:Tn,WCircle:nn},props:{msgData:{type:Object,default:()=>({})},dialogType:{type:String,default:""},hidePercentage:{type:Boolean,default:!1},hideReply:{type:Boolean,default:!1},hideForward:{type:Boolean,default:!1},operateVisible:{type:Boolean,default:!1},operateAction:{type:Boolean,default:!1},pointerMouse:{type:Boolean,default:!1},isRightMsg:{type:Boolean,default:!1}},data(){return{timeShow:!1,operateEnter:!1,percentageLoad:0,percentageShow:!1,percentageList:[],todoLoad:0,todoShow:!1,todoList:[],emojiUsersNum:5,voteData:{},dotClicks:[],unfoldWordChainData:[]}},mounted(){this.emojiUsersNum=Math.min(6,Math.max(2,Math.floor((this.windowWidth-180)/52))),Object.keys(this.voteData).length===0&&(this.voteData=JSON.parse(window.localStorage.getItem("__cache:vote__"))||{}),this.unfoldWordChainData.length===0&&(this.unfoldWordChainData=JSON.parse(window.localStorage.getItem("__cache:unfoldWordChain__"))||[])},beforeDestroy(){var e;this.$store.dispatch("audioStop",(e=this.msgData.msg)==null?void 0:e.path)},computed:{...x(["loads"]),...ge(["isLoad"]),isLoading(){return this.msgData.created_at?this.isLoad(`msg-${this.msgData.id}`):!0},readList({userId:e}){return this.percentageList.filter(({userid:i,read_at:t})=>i!=e&&t)},unreadList({userId:e}){return this.percentageList.filter(({userid:i,read_at:t})=>i!=e&&!t)},todoDoneList(){return this.todoList.filter(({done_at:e})=>e)},todoUndoneList(){return this.todoList.filter(({done_at:e})=>!e)},viewClass(){const{msgData:e}=this,i=[];return e.type&&i.push(e.type),i},headClass(){const{msgData:e,operateAction:i}=this,{id:t,reply_id:s,type:n,msg:a,emoji:r,dot:o}=e,l=[];return i&&l.push("operating"),o&&!this.dotClicks.includes(t)&&l.push("dot"),s===0&&$A.arrayLength(r)===0&&n==="text"&&(se.emoticon.test(a.text)||se.emojiRange.test(a.text))&&l.push("transparent"),l},replyClass(){const e=[];return(this.operateEnter||this.pointerMouse)&&e.push("user-select-auto"),e},contentClass(){const{type:e,msg:i}=this.msgData,t=[];if((this.operateEnter||this.pointerMouse)&&t.push("user-select-auto"),e==="text"&&(i==null?void 0:i.text)){const s=i.text;se.emoticon.test(s)?t.push("an-emoticon"):se.threeEmoji.test(s)?t.push("three-emoji"):se.twoEmoji.test(s)?t.push("two-emoji"):se.oneEmoji.test(s)&&t.push("an-emoji")}return t}},watch:{operateAction(e){this.operateEnter=!1,e&&setTimeout(i=>this.operateEnter=!0,500)},voteData:{handler(e){const i=JSON.parse(window.localStorage.getItem("__cache:vote__"))||{};for(const t in e)i[t]=e[t];Object.keys(i).length>0&&window.localStorage.setItem("__cache:vote__",JSON.stringify(i))},deep:!0}},methods:{handleOperation({currentTarget:e},i){this.$store.commit("longpress/set",{type:i,data:this.msgData,element:e})},handleClick(){this.msgData.dot&&(this.dotClicks.push(this.msgData.id),this.$store.dispatch("dialogMsgDot",this.msgData))},openTag(){!this.msgData.tag||(this.$store.dispatch("showSpinner",600),this.$store.dispatch("getUserData",this.msgData.tag).then(e=>{$A.messageInfo(`\u6807\u6CE8\u4EBA\u5458\uFF1A${e.nickname} (ID: ${e.userid})`)}).catch(e=>{$A.messageError("\u6807\u6CE8\u4EBA\u5458\u4E0D\u5B58\u5728")}).finally(e=>{this.$store.dispatch("hiddenSpinner")}))},openTodo(){if(!(this.todoLoad>0)){if(this.todoShow){this.todoShow=!1;return}this.todoLoad++,this.$store.dispatch("call",{url:"dialog/msg/todolist",data:{msg_id:this.msgData.id}}).then(({data:e})=>{this.todoList=e}).catch(()=>{this.todoList=[]}).finally(e=>{setTimeout(()=>{this.todoLoad--,this.todoShow=!0},100)})}},handleTodoAdd(){this.$refs.todo.doClose(),this.$emit("on-other",{event:"todoAdd",data:{msg_id:this.msgData.id,userids:this.todoList.map(({userid:e})=>e)}})},openReadPercentage(){if(!(this.percentageLoad>0)){if(this.percentageShow){this.percentageShow=!1;return}this.percentageLoad++,this.$store.dispatch("call",{url:"dialog/msg/readlist",data:{msg_id:this.msgData.id}}).then(({data:e})=>{this.percentageList=e}).catch(()=>{this.percentageList=[]}).finally(e=>{setTimeout(()=>{this.percentageLoad--,this.percentageShow=!0},100)})}},playRecord(){this.operateVisible||!this.msgData.created_at||this.$store.dispatch("audioPlay",this.msgData.msg.path)},openMeeting(){this.operateVisible||C.emit("addMeeting",{type:"join",name:this.msgData.msg.name,meetingid:this.msgData.msg.meetingid,meetingdisabled:!0})},openDialog(e){this.$store.dispatch("openDialogUserid",e).catch(({msg:i})=>{$A.modalError(i)})},showReplyData(e){return $A.isJson(e)?e.userid:!1},showForwardData(e){return $A.isJson(e)?e.show&&e.userid:!1},viewReply(){this.$emit("on-view-reply",{msg_id:this.msgData.id,reply_id:this.msgData.reply_id})},viewText(e){this.$emit("on-view-text",e,this.$refs.content)},viewFile(){!this.msgData.created_at||this.$emit("on-view-file",this.msgData)},downFile(){!this.msgData.created_at||this.$emit("on-down-file",this.msgData)},replyList(){this.$emit("on-reply-list",{msg_id:this.msgData.id})},onError(){this.$emit("on-error",this.msgData)},onEmoji(e){this.$emit("on-emoji",{msg_id:this.msgData.id,symbol:e})},onShowEmojiUser(e){this.$emit("on-show-emoji-user",e)},sortEmojiUser(e){const i=e.filter(s=>s==this.userId),t=e.filter(s=>s!=this.userId);return i.concat(t)},unfoldWordChain(e){if(this.unfoldWordChainData.indexOf(e.id)==-1){const i=JSON.parse(window.localStorage.getItem("__cache:unfoldWordChain__"))||[];i.push(e.id),window.localStorage.setItem("__cache:unfoldWordChain__",JSON.stringify(i)),this.unfoldWordChainData.push(e.id)}},onWordChain(){this.$store.state.dialogDroupWordChain={type:"participate",dialog_id:this.msgData.dialog_id,msgData:this.msgData}},onVote(e,i){if(e!="vote"){$A.modalConfirm({content:e=="finish"?"\u786E\u5B9A\u7ED3\u675F\u6295\u7968\uFF1F":"\u518D\u6B21\u53D1\u9001\u6295\u7968\uFF1F",cancelText:"\u53D6\u6D88",okText:"\u786E\u5B9A",onOk:()=>{this.submitVote(e,i)}});return}this.submitVote(e,i)},submitVote(e,i){this.$set(i.msg,"_loadIng",1),this.$store.dispatch("call",{url:"dialog/msg/vote",method:"post",data:{dialog_id:i.dialog_id,uuid:i.msg.uuid,vote:this.voteData[i.msg.uuid]||[],type:e}}).then(({data:t})=>{e=="again"&&$A.messageSuccess("\u5DF2\u53D1\u9001"),t.forEach(s=>{this.$store.dispatch("saveDialogMsg",s)})}).catch(({msg:t})=>{$A.modalError(t)}).finally(t=>{this.$set(i.msg,"_loadIng",0)})}}},wt={};var Wo=m(Ho,zo,No,!1,Vo,null,null,null);function Vo(e){for(let i in wt)this[i]=wt[i]}var qo=function(){return Wo.exports}(),Yo=function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("div",{class:e.classArray},[e.isUnreadStart?t("div",{staticClass:"dialog-unread-label"},[t("em"),t("span",[e._v(e._s(e.$L("\u4EE5\u4E0B\u4E3A\u65B0\u6D88\u606F")))]),t("em")]):e._e(),e.source.type==="tag"?t("div",{staticClass:"dialog-tag",on:{click:e.onViewTag}},[t("div",{staticClass:"tag-user"},[t("UserAvatar",{attrs:{userid:e.source.userid,"show-name":!0,"show-icon":!1}})],1),e._v(" "+e._s(e.$L(e.source.msg.action==="remove"?"\u53D6\u6D88\u6807\u6CE8":"\u6807\u6CE8\u4E86"))+' "'+e._s(e.$A.getMsgSimpleDesc(e.source.msg.data))+'" ')]):e.source.type==="top"?t("div",{staticClass:"dialog-top",on:{click:e.onViewTag}},[t("div",{staticClass:"tag-user"},[t("UserAvatar",{attrs:{userid:e.source.userid,"show-name":!0,"show-icon":!1}})],1),e._v(" "+e._s(e.$L(e.source.msg.action==="remove"?"\u53D6\u6D88\u7F6E\u9876":"\u7F6E\u9876\u4E86"))+' "'+e._s(e.$A.getMsgSimpleDesc(e.source.msg.data))+'" ')]):e.source.type==="todo"?t("div",{staticClass:"dialog-todo",on:{click:e.onViewTodo}},[t("div",{staticClass:"no-dark-content"},[t("div",{staticClass:"todo-user"},[t("UserAvatar",{attrs:{userid:e.source.userid,"show-name":!0,"show-icon":!1}})],1),e._v(" "+e._s(e.$L(e.source.msg.action==="remove"?"\u53D6\u6D88\u5F85\u529E":e.source.msg.action==="done"?"\u5B8C\u6210":"\u8BBE\u5F85\u529E"))+' "'+e._s(e.$A.getMsgSimpleDesc(e.source.msg.data))+'" '),e.formatTodoUser(e.source.msg.data).length>0?t("div",{staticClass:"todo-users"},[t("span",[e._v(e._s(e.$L("\u7ED9")))]),e._l(e.formatTodoUser(e.source.msg.data),function(s,n){return[n<3?t("div",{staticClass:"todo-user"},[t("UserAvatar",{attrs:{userid:s,"show-name":!0,"show-icon":!1}})],1):n==3?t("div",{staticClass:"todo-user"},[e._v("+"+e._s(e.formatTodoUser(e.source.msg.data).length-3))]):e._e()]})],2):e._e()])]):e.source.type==="notice"?t("div",{staticClass:"dialog-notice"},[e._v(" "+e._s(e.source.msg.source==="api"?e.source.msg.notice:e.$L(e.source.msg.notice))+" ")]):[t("div",{staticClass:"dialog-avatar",on:{pointerdown:e.handleOperation}},[t("UserAvatar",{attrs:{userid:e.source.userid,size:30,"click-open-detail":""}})],1),t("DialogView",{attrs:{"msg-data":e.source,"dialog-type":e.dialogData.type,"hide-percentage":e.hidePercentage,"hide-reply":e.hideReply,"hide-forward":e.hideForward,"operate-visible":e.operateVisible,"operate-action":e.operateVisible&&e.source.id===e.operateItem.id,"pointer-mouse":e.pointerMouse,"is-right-msg":e.isRightMsg},on:{"on-view-reply":e.onViewReply,"on-view-text":e.onViewText,"on-view-file":e.onViewFile,"on-down-file":e.onDownFile,"on-reply-list":e.onReplyList,"on-error":e.onError,"on-emoji":e.onEmoji,"on-other":e.onOther,"on-show-emoji-user":e.onShowEmojiUser}})]],2)},Ko=[];const Jo={name:"DialogItem",components:{DialogView:qo},props:{source:{type:Object,default(){return{}}},dialogData:{type:Object,default(){return{}}},operateVisible:{type:Boolean,default:!1},operateItem:{type:Object,default(){return{}}},pointerMouse:{type:Boolean,default:!1},simpleView:{type:Boolean,default:!1},isMyDialog:{type:Boolean,default:!1},msgId:{type:Number,default:0},unreadOne:{type:Number,default:0},scrollIng:{type:Number,default:0},readEnabled:{type:Boolean,default:!1}},computed:{...x(["userId"]),isRightMsg(){return this.source.userid==this.$store.state.userId},isReply(){return this.simpleView||this.msgId===this.source.id},isNoRead(){return this.isRightMsg||this.source.read_at},isUnreadStart(){return this.unreadOne===this.source.id&&this.source.id>0},hidePercentage(){return this.simpleView||this.isMyDialog||this.isReply},hideReply(){return this.simpleView||this.msgId>0},hideForward(){return this.simpleView||this.msgId>0},classArray(){return{"dialog-item":!0,"reply-item":this.isReply,"unread-start":this.isUnreadStart,self:this.isRightMsg}}},watch:{readEnabled(){this.msgRead()},windowActive(){this.msgRead()},scrollIng(){this.msgRead()}},methods:{msgRead(){var e;this.isNoRead||!this.readEnabled||!this.windowActive||!((e=this.$el)!=null&&e.parentNode.classList.contains("item-enter"))||this.$store.dispatch("dialogMsgRead",this.source)},formatTodoUser(e){if($A.isJson(e)){const{userids:i}=e;if(i)return i.split(",")}return[]},onViewTag(){this.onViewReply({msg_id:this.source.id,reply_id:this.source.msg.data.id})},onViewTodo(){this.onViewReply({msg_id:this.source.id,reply_id:this.source.msg.data.id})},handleOperation({currentTarget:e}){this.$store.commit("longpress/set",{type:"mention",data:this.source,element:e})},onViewReply(e){this.dispatch("on-view-reply",e)},onViewText(e,i){this.dispatch("on-view-text",e,i)},onViewFile(e){this.dispatch("on-view-file",e)},onDownFile(e){this.dispatch("on-down-file",e)},onReplyList(e){this.dispatch("on-reply-list",e)},onError(e){this.dispatch("on-error",e)},onEmoji(e){this.dispatch("on-emoji",e)},onOther(e){this.dispatch("on-other",e)},onShowEmojiUser(e){this.dispatch("on-show-emoji-user",e)},dispatch(e,...i){if(this.isReply){this.$emit(e,...i);return}let t=this.$parent,s=t.$options.name;for(;t&&(!s||s!=="virtual-list");)t=t.$parent,t&&(s=t.$options.name);t&&t.$emit(e,...i)}}},kt={};var Go=m(Jo,Yo,Ko,!1,Qo,null,null,null);function Qo(e){for(let i in kt)this[i]=kt[i]}var Xo=function(){return Go.exports}(),Zo=function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("div",{staticClass:"chat-emoji-wrapper",on:{click:function(s){s.stopPropagation()}}},[t("div",{staticClass:"chat-emoji-box"},[e.type==="emosearch"?t("div",{staticClass:"chat-emoji-emosearch"},[t("Input",{attrs:{clearable:"",placeholder:e.$L("\u641C\u7D22\u8868\u60C5")},model:{value:e.emosearchKey,callback:function(s){e.emosearchKey=s},expression:"emosearchKey"}},[t("Icon",{class:{"icon-loading":e.emosearchLoad},attrs:{slot:"prefix",type:e.emosearchLoad?"ios-loading":"ios-search"},slot:"prefix"})],1)],1):e.type==="emoji"?t("div",{staticClass:"chat-emoji-nav"},e._l(e.emojiNavList,function(s){var n;return t("div",{key:s.type,class:(n={},n[`i-${s.name}`]=!0,n.active=s.type===e.emojiNavActive,n),domProps:{innerHTML:e._s(s.content)},on:{click:function(a){e.emojiNavActive=s.type}}})}),0):e._e(),t("Scrollbar",[t("ul",{class:[e.type,"no-dark-content"]},e._l(e.list,function(s){return t("li",{on:{click:function(n){return e.onSelect(n,s)}}},[s.type==="emoticon"?t("Imgs",{attrs:{src:s.src,title:s.name,alt:s.name}}):t("span",{attrs:{title:s.name},domProps:{innerHTML:e._s(s.html)}})],1)}),0)])],1),e.onlyEmoji?e._e():t("div",{staticClass:"chat-emoji-menu-wrap"},[t("span",{directives:[{name:"show",rawName:"v-show",value:e.showEmojiMenuScrollLeftBtn,expression:"showEmojiMenuScrollLeftBtn"}],staticClass:"left-btn",on:{click:function(s){return e.onEmojiMenuScroll("left")}}},[t("i",{staticClass:"taskfont"},[e._v("\uE72D")])]),t("ul",{ref:"chatEmojiMenuRef",staticClass:"chat-emoji-menu",on:{scroll:e.onHandleScroll}},[t("li",{class:{active:e.type==="emosearch"},on:{click:function(s){e.type="emosearch"}}},[t("i",{staticClass:"taskfont"},[e._v("\uE6F8")])]),t("li",{class:{active:e.type==="emoji"},on:{click:function(s){e.type="emoji"}}},[t("span",{staticClass:"no-dark-content"},[e._v("\u{1F600}")])]),e._l(e.emoticonData,function(s){return t("li",{class:{active:e.type==="emoticon"&&e.emoticonPath==s.path},on:{click:function(n){return e.onEmoticon(s.path)}}},[t("Imgs",{attrs:{title:s.name,alt:s.name,src:s.src}})],1)})],2),t("span",{directives:[{name:"show",rawName:"v-show",value:e.showEmojiMenuScrollRightBtn,expression:"showEmojiMenuScrollRightBtn"}],staticClass:"right-btn",on:{click:function(s){return e.onEmojiMenuScroll("right")}}},[t("i",{staticClass:"taskfont"},[e._v("\uE733")])])])])},el=[];const tl={name:"ChatEmoji",props:{searchKey:{type:String,default:""},onlyEmoji:{type:Boolean,default:!1}},data(){return{type:"emoji",emojiNavActive:"p",emojiNavList:[{type:"p",name:"people",content:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M0 256C0 114.6 114.6 0 256 0C397.4 0 512 114.6 512 256C512 397.4 397.4 512 256 512C114.6 512 0 397.4 0 256zM256 432C332.1 432 396.2 382 415.2 314.1C419.1 300.4 407.8 288 393.6 288H118.4C104.2 288 92.92 300.4 96.76 314.1C115.8 382 179.9 432 256 432V432zM176.4 160C158.7 160 144.4 174.3 144.4 192C144.4 209.7 158.7 224 176.4 224C194 224 208.4 209.7 208.4 192C208.4 174.3 194 160 176.4 160zM336.4 224C354 224 368.4 209.7 368.4 192C368.4 174.3 354 160 336.4 160C318.7 160 304.4 174.3 304.4 192C304.4 209.7 318.7 224 336.4 224z" /></svg>'},{type:"n",name:"nature",content:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512"><path d="M332.7 19.85C334.6 8.395 344.5 0 356.1 0C363.6 0 370.6 3.52 375.1 9.502L392 32H444.1C456.8 32 469.1 37.06 478.1 46.06L496 64H552C565.3 64 576 74.75 576 88V112C576 156.2 540.2 192 496 192H426.7L421.6 222.5L309.6 158.5L332.7 19.85zM448 64C439.2 64 432 71.16 432 80C432 88.84 439.2 96 448 96C456.8 96 464 88.84 464 80C464 71.16 456.8 64 448 64zM416 256.1V480C416 497.7 401.7 512 384 512H352C334.3 512 320 497.7 320 480V364.8C295.1 377.1 268.8 384 240 384C211.2 384 184 377.1 160 364.8V480C160 497.7 145.7 512 128 512H96C78.33 512 64 497.7 64 480V249.8C35.23 238.9 12.64 214.5 4.836 183.3L.9558 167.8C-3.331 150.6 7.094 133.2 24.24 128.1C41.38 124.7 58.76 135.1 63.05 152.2L66.93 167.8C70.49 182 83.29 191.1 97.97 191.1H303.8L416 256.1z" /></svg>
|
|
`},{type:"d",name:"food",content:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M481.9 270.1C490.9 279.1 496 291.3 496 304C496 316.7 490.9 328.9 481.9 337.9C472.9 346.9 460.7 352 448 352H64C51.27 352 39.06 346.9 30.06 337.9C21.06 328.9 16 316.7 16 304C16 291.3 21.06 279.1 30.06 270.1C39.06 261.1 51.27 256 64 256H448C460.7 256 472.9 261.1 481.9 270.1zM475.3 388.7C478.3 391.7 480 395.8 480 400V416C480 432.1 473.3 449.3 461.3 461.3C449.3 473.3 432.1 480 416 480H96C79.03 480 62.75 473.3 50.75 461.3C38.74 449.3 32 432.1 32 416V400C32 395.8 33.69 391.7 36.69 388.7C39.69 385.7 43.76 384 48 384H464C468.2 384 472.3 385.7 475.3 388.7zM50.39 220.8C45.93 218.6 42.03 215.5 38.97 211.6C35.91 207.7 33.79 203.2 32.75 198.4C31.71 193.5 31.8 188.5 32.99 183.7C54.98 97.02 146.5 32 256 32C365.5 32 457 97.02 479 183.7C480.2 188.5 480.3 193.5 479.2 198.4C478.2 203.2 476.1 207.7 473 211.6C469.1 215.5 466.1 218.6 461.6 220.8C457.2 222.9 452.3 224 447.3 224H64.67C59.73 224 54.84 222.9 50.39 220.8zM372.7 116.7C369.7 119.7 368 123.8 368 128C368 131.2 368.9 134.3 370.7 136.9C372.5 139.5 374.1 141.6 377.9 142.8C380.8 143.1 384 144.3 387.1 143.7C390.2 143.1 393.1 141.6 395.3 139.3C397.6 137.1 399.1 134.2 399.7 131.1C400.3 128 399.1 124.8 398.8 121.9C397.6 118.1 395.5 116.5 392.9 114.7C390.3 112.9 387.2 111.1 384 111.1C379.8 111.1 375.7 113.7 372.7 116.7V116.7zM244.7 84.69C241.7 87.69 240 91.76 240 96C240 99.16 240.9 102.3 242.7 104.9C244.5 107.5 246.1 109.6 249.9 110.8C252.8 111.1 256 112.3 259.1 111.7C262.2 111.1 265.1 109.6 267.3 107.3C269.6 105.1 271.1 102.2 271.7 99.12C272.3 96.02 271.1 92.8 270.8 89.88C269.6 86.95 267.5 84.45 264.9 82.7C262.3 80.94 259.2 79.1 256 79.1C251.8 79.1 247.7 81.69 244.7 84.69V84.69zM116.7 116.7C113.7 119.7 112 123.8 112 128C112 131.2 112.9 134.3 114.7 136.9C116.5 139.5 118.1 141.6 121.9 142.8C124.8 143.1 128 144.3 131.1 143.7C134.2 143.1 137.1 141.6 139.3 139.3C141.6 137.1 143.1 134.2 143.7 131.1C144.3 128 143.1 124.8 142.8 121.9C141.6 118.1 139.5 116.5 136.9 114.7C134.3 112.9 131.2 111.1 128 111.1C123.8 111.1 119.7 113.7 116.7 116.7L116.7 116.7z" /></svg>'},{type:"s",name:"symbols",content:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M500.3 7.251C507.7 13.33 512 22.41 512 31.1V175.1C512 202.5 483.3 223.1 447.1 223.1C412.7 223.1 383.1 202.5 383.1 175.1C383.1 149.5 412.7 127.1 447.1 127.1V71.03L351.1 90.23V207.1C351.1 234.5 323.3 255.1 287.1 255.1C252.7 255.1 223.1 234.5 223.1 207.1C223.1 181.5 252.7 159.1 287.1 159.1V63.1C287.1 48.74 298.8 35.61 313.7 32.62L473.7 .6198C483.1-1.261 492.9 1.173 500.3 7.251H500.3zM74.66 303.1L86.5 286.2C92.43 277.3 102.4 271.1 113.1 271.1H174.9C185.6 271.1 195.6 277.3 201.5 286.2L213.3 303.1H239.1C266.5 303.1 287.1 325.5 287.1 351.1V463.1C287.1 490.5 266.5 511.1 239.1 511.1H47.1C21.49 511.1-.0019 490.5-.0019 463.1V351.1C-.0019 325.5 21.49 303.1 47.1 303.1H74.66zM143.1 359.1C117.5 359.1 95.1 381.5 95.1 407.1C95.1 434.5 117.5 455.1 143.1 455.1C170.5 455.1 191.1 434.5 191.1 407.1C191.1 381.5 170.5 359.1 143.1 359.1zM440.3 367.1H496C502.7 367.1 508.6 372.1 510.1 378.4C513.3 384.6 511.6 391.7 506.5 396L378.5 508C372.9 512.1 364.6 513.3 358.6 508.9C352.6 504.6 350.3 496.6 353.3 489.7L391.7 399.1H336C329.3 399.1 323.4 395.9 321 389.6C318.7 383.4 320.4 376.3 325.5 371.1L453.5 259.1C459.1 255 467.4 254.7 473.4 259.1C479.4 263.4 481.6 271.4 478.7 278.3L440.3 367.1zM116.7 219.1L19.85 119.2C-8.112 90.26-6.614 42.31 24.85 15.34C51.82-8.137 93.26-3.642 118.2 21.83L128.2 32.32L137.7 21.83C162.7-3.642 203.6-8.137 231.6 15.34C262.6 42.31 264.1 90.26 236.1 119.2L139.7 219.1C133.2 225.6 122.7 225.6 116.7 219.1H116.7z" /></svg>'},{type:"a",name:"activity",content:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M16.17 337.5c0 44.98 7.565 83.54 13.98 107.9C35.22 464.3 50.46 496 174.9 496c9.566 0 19.59-.4707 29.84-1.271L17.33 307.3C16.53 317.6 16.17 327.7 16.17 337.5zM495.8 174.5c0-44.98-7.565-83.53-13.98-107.9c-4.688-17.54-18.34-31.23-36.04-35.95C435.5 27.91 392.9 16 337 16c-9.564 0-19.59 .4707-29.84 1.271l187.5 187.5C495.5 194.4 495.8 184.3 495.8 174.5zM26.77 248.8l236.3 236.3c142-36.1 203.9-150.4 222.2-221.1L248.9 26.87C106.9 62.96 45.07 177.2 26.77 248.8zM256 335.1c0 9.141-7.474 16-16 16c-4.094 0-8.188-1.564-11.31-4.689L164.7 283.3C161.6 280.2 160 276.1 160 271.1c0-8.529 6.865-16 16-16c4.095 0 8.189 1.562 11.31 4.688l64.01 64C254.4 327.8 256 331.9 256 335.1zM304 287.1c0 9.141-7.474 16-16 16c-4.094 0-8.188-1.564-11.31-4.689L212.7 235.3C209.6 232.2 208 228.1 208 223.1c0-9.141 7.473-16 16-16c4.094 0 8.188 1.562 11.31 4.688l64.01 64.01C302.5 279.8 304 283.9 304 287.1zM256 175.1c0-9.141 7.473-16 16-16c4.094 0 8.188 1.562 11.31 4.688l64.01 64.01c3.125 3.125 4.688 7.219 4.688 11.31c0 9.133-7.468 16-16 16c-4.094 0-8.189-1.562-11.31-4.688l-64.01-64.01C257.6 184.2 256 180.1 256 175.1z" /></svg>'},{type:"t",name:"travel",content:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M39.61 196.8L74.8 96.29C88.27 57.78 124.6 32 165.4 32H346.6C387.4 32 423.7 57.78 437.2 96.29L472.4 196.8C495.6 206.4 512 229.3 512 256V448C512 465.7 497.7 480 480 480H448C430.3 480 416 465.7 416 448V400H96V448C96 465.7 81.67 480 64 480H32C14.33 480 0 465.7 0 448V256C0 229.3 16.36 206.4 39.61 196.8V196.8zM109.1 192H402.9L376.8 117.4C372.3 104.6 360.2 96 346.6 96H165.4C151.8 96 139.7 104.6 135.2 117.4L109.1 192zM96 256C78.33 256 64 270.3 64 288C64 305.7 78.33 320 96 320C113.7 320 128 305.7 128 288C128 270.3 113.7 256 96 256zM416 320C433.7 320 448 305.7 448 288C448 270.3 433.7 256 416 256C398.3 256 384 270.3 384 288C384 305.7 398.3 320 416 320z" /></svg>'},{type:"o",name:"objects",content:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 384 512"><path d="M112.1 454.3c0 6.297 1.816 12.44 5.284 17.69l17.14 25.69c5.25 7.875 17.17 14.28 26.64 14.28h61.67c9.438 0 21.36-6.401 26.61-14.28l17.08-25.68c2.938-4.438 5.348-12.37 5.348-17.7L272 415.1h-160L112.1 454.3zM191.4 .0132C89.44 .3257 16 82.97 16 175.1c0 44.38 16.44 84.84 43.56 115.8c16.53 18.84 42.34 58.23 52.22 91.45c.0313 .25 .0938 .5166 .125 .7823h160.2c.0313-.2656 .0938-.5166 .125-.7823c9.875-33.22 35.69-72.61 52.22-91.45C351.6 260.8 368 220.4 368 175.1C368 78.61 288.9-.2837 191.4 .0132zM192 96.01c-44.13 0-80 35.89-80 79.1C112 184.8 104.8 192 96 192S80 184.8 80 176c0-61.76 50.25-111.1 112-111.1c8.844 0 16 7.159 16 16S200.8 96.01 192 96.01z" /></svg>'},{type:"f",name:"flags",content:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M64 496C64 504.8 56.75 512 48 512h-32C7.25 512 0 504.8 0 496V32c0-17.75 14.25-32 32-32s32 14.25 32 32V496zM476.3 0c-6.365 0-13.01 1.35-19.34 4.233c-45.69 20.86-79.56 27.94-107.8 27.94c-59.96 0-94.81-31.86-163.9-31.87C160.9 .3055 131.6 4.867 96 15.75v350.5c32-9.984 59.87-14.1 84.85-14.1c73.63 0 124.9 31.78 198.6 31.78c31.91 0 68.02-5.971 111.1-23.09C504.1 355.9 512 344.4 512 332.1V30.73C512 11.1 495.3 0 476.3 0z" /></svg>'}],emoticonPath:"",emosearchKey:"",emosearchCache:null,emosearchLoad:!1,emosearchTimer:null,emosearchList:[],emojiData:[],emoticonData:[],emojiMenuScrollLeft:0}},mounted(){var e;this.initData(),(e=this.$store)!=null&&e.state.windowPortrait||this.onMonitorWheel()},watch:{type(){this.onEmosearch()},emosearchKey(){this.onEmosearch()},searchKey:{handler(e){this.emosearchKey=e},immediate:!0}},computed:{list(){if(this.type==="emoji")return this.emojiData.filter(e=>e.category===this.emojiNavActive);if(this.type==="emosearch")return this.emosearchList;if(this.type==="emoticon"){const e=this.emoticonData.find(({path:i})=>i===this.emoticonPath);if(e)return e.list}return[]},showEmojiMenuScrollLeftBtn(){return this.emojiMenuScrollLeft>34},showEmojiMenuScrollRightBtn(){var i;const e=this.$refs.chatEmojiMenuRef;if(e){const t=((i=e==null?void 0:e.querySelector("li"))==null?void 0:i.offsetWidth)||48;return this.emojiMenuScrollLeft<e.scrollWidth-e.clientWidth-t}return this.emojiMenuScrollLeft<=100}},methods:{initData(){$A.loadScriptS(["js/emoji.all.js","js/emoticon.all.js"]).then(e=>{const i=$A.mainUrl("images/emoticon");$A.isArray(window.emojiData)&&(this.emojiData=window.emojiData.sort(function(t,s){return $A.sortFloat(t.emoji_order,s.emoji_order)}).map(t=>({type:"emoji",name:t.name,category:t.category,html:t.code_decimal}))),$A.isArray(window.emoticonData)&&(this.emoticonData=window.emoticonData.map(t=>Object.assign(t,{src:`${i}/${t.path}/${t.icon}`,list:t.list.map(s=>Object.assign(s,{type:"emoticon",asset:`images/emoticon/${t.path}/${s.path}`,src:`${i}/${t.path}/${s.path}`}))})))})},onEmosearch(){this.type!=="emosearch"||this.emosearchCache===this.emosearchKey||(this.emosearchCache=this.emosearchKey,this.emosearchLoad=!0,this.emosearchTimer&&clearTimeout(this.emosearchTimer),this.emosearchTimer=setTimeout(e=>{this.$store.dispatch("call",{url:"dialog/sticker/search",data:{key:this.emosearchKey}}).then(({data:i})=>{this.emosearchList=[];const t=i.list;t.length>0&&(this.emosearchList=t.map(s=>({type:"emoticon",asset:"emosearch",name:s.name,src:s.src,height:s.height,width:s.width}))),this.emosearchList.length===0&&$A.messageWarning("\u6CA1\u6709\u641C\u7D22\u5230\u4EFB\u4F55\u8868\u60C5")}).catch(i=>{this.emosearchList=[],$A.messageWarning("\u641C\u7D22\u7ED3\u679C\u4E3A\u7A7A")}).finally(i=>{this.emosearchLoad=!1})},300))},onEmoticon(e){this.type="emoticon",this.emoticonPath=e},onSelect(e,i){i.type==="emoji"?this.$emit("on-select",{type:"emoji",text:e.target.innerText}):this.$emit("on-select",i)},onMonitorWheel(){const e=this.$refs.chatEmojiMenuRef;e==null||e.addEventListener("wheel",i=>{Math.abs(i.deltaY)<10&&i.deltaMode===0||(i.preventDefault(),e.scrollLeft=e.scrollLeft+i.deltaY)})},onEmojiMenuScroll(e){const i=this.$refs.chatEmojiMenuRef,t=i.offsetWidth-68,s=e=="right"?i.scrollLeft+t:i.scrollLeft-t;i.scrollTo({left:s,behavior:"smooth"})},onHandleScroll(e){this.emojiMenuScrollLeft=e.target.scrollLeft}}},bt={};var sl=m(tl,Zo,el,!1,il,null,null,null);function il(e){for(let i in bt)this[i]=bt[i]}var os=function(){return sl.exports}();const At="ontouchend"in document;var nl={bind(e,i){let t=!1;e.__touchEvent__={start:s=>{s.preventDefault(),t=!0,i.value("down",s)},move:s=>{t&&i.value("move",s)},end:s=>{t&&(t=!1,i.value("up"))},click:s=>{i.value("click",s)}},At?(e.addEventListener("touchstart",e.__touchEvent__.start),e.addEventListener("touchmove",e.__touchEvent__.move),e.addEventListener("touchend",e.__touchEvent__.end)):(e.addEventListener("mousedown",e.__touchEvent__.start,{passive:!1}),document.addEventListener("mousemove",e.__touchEvent__.move),document.addEventListener("mouseup",e.__touchEvent__.end)),e.addEventListener("click",e.__touchEvent__.click)},update(){},unbind(e){At?(e.removeEventListener("touchstart",e.__touchEvent__.start),e.removeEventListener("touchmove",e.__touchEvent__.move),e.removeEventListener("touchend",e.__touchEvent__.end)):(e.removeEventListener("mousedown",e.__touchEvent__.start),document.removeEventListener("mousemove",e.__touchEvent__.move),document.removeEventListener("mouseup",e.__touchEvent__.end)),e.removeEventListener("click",e.__touchEvent__.click),delete e.__touchEvent__}};const Ct="ontouchend"in document;var al={bind(e,i){if(Ct){const t={move:!1,time:0,x:0,y:0};e.__touchEvent__={start:s=>{s.preventDefault(),t.move=!1,t.time=$A.dayjs().valueOf(),t.x=s.touches?s.touches[0].clientX:s.clientX,t.y=s.touches?s.touches[0].clientY:s.clientY},move:s=>{if(t.time>0){const n=s.touches?s.touches[0].clientX:s.clientX,a=s.touches?s.touches[0].clientY:s.clientY;(Math.abs(n-t.x)>5||Math.abs(a-t.y)>5)&&(t.move=!0)}},end:s=>{t.time>0&&(!t.move&&$A.dayjs().valueOf()-t.time<300&&i.value(s,e),t.time=0)}},e.addEventListener("touchstart",e.__touchEvent__.start),e.addEventListener("touchmove",e.__touchEvent__.move),e.addEventListener("touchend",e.__touchEvent__.end)}else e.__clickEvent__=t=>{t.preventDefault(),i.value(t,e)},e.addEventListener("click",e.__clickEvent__)},update(){},unbind(e){Ct?(e.removeEventListener("touchstart",e.__touchEvent__.start),e.removeEventListener("touchmove",e.__touchEvent__.move),e.removeEventListener("touchend",e.__touchEvent__.end),delete e.__touchEvent__):(e.removeEventListener("click",e.__clickEvent__),delete e.__clickEvent__)}};function ie(e){return e===void 0&&(e=document.body),e===!0?document.body:e instanceof window.Node?e:document.querySelector(e)}const rl={inserted(e,{value:i},t){if(e.dataset&&e.dataset.transfer!=="true")return!1;e.className=e.className?e.className+" v-transfer-dom":"v-transfer-dom";const s=e.parentNode;if(!s)return;const n=document.createComment("");let a=!1;i!==!1&&(s.replaceChild(n,e),ie(i).appendChild(e),a=!0),e.__transferDomData||(e.__transferDomData={parentNode:s,home:n,target:ie(i),hasMovedOut:a})},componentUpdated(e,{value:i}){if(e.dataset&&e.dataset.transfer!=="true")return!1;const t=e.__transferDomData;if(!t)return;const s=t.parentNode,n=t.home,a=t.hasMovedOut;!a&&i?(s.replaceChild(n,e),ie(i).appendChild(e),e.__transferDomData=Object.assign({},e.__transferDomData,{hasMovedOut:!0,target:ie(i)})):a&&i===!1?(s.replaceChild(e,n),e.__transferDomData=Object.assign({},e.__transferDomData,{hasMovedOut:!1,target:ie(i)})):i&&ie(i).appendChild(e)},unbind(e){if(e.dataset&&e.dataset.transfer!=="true")return!1;e.className=e.className.replace("v-transfer-dom",""),e.__transferDomData&&(e.__transferDomData.hasMovedOut===!0&&e.__transferDomData.parentNode&&e.__transferDomData.parentNode.appendChild(e),e.__transferDomData=null)}};var ls={bind(e,i,t){function s(n){if(e.contains(n.target))return!1;i.expression&&i.value(n)}e.__vueClickOutside__=s,document.addEventListener("click",s)},update(){},unbind(e,i){document.removeEventListener("click",e.__vueClickOutside__),delete e.__vueClickOutside__}};const St="ontouchend"in document,ol={bind:function(e,i){let t="default",s=!1,n=null,a=500,r=null,o=i.value,l=!1;if($A.isJson(i.value)&&(a=i.value.delay||500,r=typeof i.value.touchend=="function"?i.value.touchend:r,o=typeof i.value.callback=="function"?i.value.callback:o,l=i.value.preventEndEvent||!1),typeof o!="function")throw"callback must be a function";e.__longpressContextmenu__=c=>{c.preventDefault(),c.stopPropagation(),t==="default"&&o(c,e)},e.addEventListener("contextmenu",e.__longpressContextmenu__),St&&(e.__longpressStart__=c=>{c.type==="click"&&c.button!==0||(t="touch",s=!1,n===null&&(n=setTimeout(()=>{t==="touch"&&(s=!0,o(c.touches[0],e))},a)))},e.__longpressCancel__=c=>{n!==null&&(clearTimeout(n),n=null),t="default"},e.__longpressEnd__=c=>{typeof r=="function"&&r(c,s),s&&l&&(c.preventDefault(),c.stopPropagation()),e.__longpressCancel__(c)},e.__longpressClick__=c=>{s&&(c.preventDefault(),c.stopPropagation()),e.__longpressCancel__(c)},e.addEventListener("touchstart",e.__longpressStart__),e.addEventListener("click",e.__longpressClick__),e.addEventListener("touchmove",e.__longpressCancel__),e.addEventListener("touchcancel",e.__longpressCancel__),e.addEventListener("touchend",e.__longpressEnd__))},unbind(e){e.removeEventListener("contextmenu",e.__longpressContextmenu__),delete e.__longpressContextmenu__,St&&(e.removeEventListener("touchstart",e.__longpressStart__),e.removeEventListener("click",e.__longpressClick__),e.removeEventListener("touchmove",e.__longpressCancel__),e.removeEventListener("touchcancel",e.__longpressCancel__),e.removeEventListener("touchend",e.__longpressEnd__),delete e.__longpressStart__,delete e.__longpressClick__,delete e.__longpressCancel__,delete e.__longpressEnd__)}},ae=[];function ll(e){if(ae.length===0)return!0;const i=ae.indexOf(e);return i===-1?!1:i===ae.length-1}const cs=e=>{const i=ae.indexOf(e);i!==-1&&ae.splice(i,1)},Tt=e=>{cs(e),ae.push(e)};function ah(){return new Promise(e=>{const i=new k({render(n){return n(xs.exports.Modal,{class:"chat-emoji-one-modal",props:{fullscreen:!0,footerHide:!0},on:{"on-visible-change":a=>{a||setTimeout(r=>{document.body.removeChild(this.$el)},500)}}},[n(os,{attrs:{onlyEmoji:!0},on:{"on-select":a=>{this.$children[0].visible=!1,a.type==="emoji"&&e(a.text)}}})])}}),t=i.$mount();document.body.appendChild(t.$el);const s=i.$children[0];s.visible=!0,s.$el.lastChild.addEventListener("click",({target:n})=>{n.classList.contains("ivu-modal-body")&&(s.visible=!1)})})}var cl=function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("div",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:e.hidePopover,expression:"hidePopover"}],staticClass:"chat-input-box",class:e.boxClass},[t("div",{staticClass:"chat-input-quick-emoji"},[t("EPopover",{ref:"emojiQuickRef",attrs:{visibleArrow:!1,transition:"",placement:"top-end",popperClass:"chat-quick-emoji-popover"},model:{value:e.emojiQuickShow,callback:function(s){e.emojiQuickShow=s},expression:"emojiQuickShow"}},[t("div",{attrs:{slot:"reference"},slot:"reference"}),t("Scrollbar",{ref:"emojiWrapper",attrs:{tag:"ul","enable-x":!0,"enable-y":!1,"touch-content-blur":!1,"class-name":"chat-quick-emoji-wrapper scrollbar-hidden"}},e._l(e.emojiQuickItems,function(s){return t("li",{on:{click:function(n){return e.onEmojiQuick(s)}}},[t("Imgs",{attrs:{title:s.name,alt:s.name,src:s.src}})],1)}),0)],1)],1),t("div",{ref:"inputWrapper",staticClass:"chat-input-wrapper"},[e.quoteData?t("div",{staticClass:"chat-quote"},[e.quoteUpdate?t("div",{staticClass:"quote-label"},[e._v(e._s(e.$L("\u7F16\u8F91\u6D88\u606F")))]):t("UserAvatar",{attrs:{userid:e.quoteData.userid,userResult:e.onQuoteUserResult,"show-icon":!1,"show-name":!0}}),t("div",{staticClass:"quote-desc no-dark-content"},[e._v(e._s(e.$A.getMsgSimpleDesc(e.quoteData)))]),t("i",{directives:[{name:"touchclick",rawName:"v-touchclick",value:e.onTouchClick,expression:"onTouchClick"}],staticClass:"taskfont",attrs:{"data-action":"cancel-quote"}},[e._v("\uE6E5")])],1):e._e(),t("div",{ref:"editor",staticClass:"no-dark-content user-select-auto",on:{click:function(s){return s.stopPropagation(),e.onClickEditor.apply(null,arguments)},paste:e.handlePaste}}),t("div",{staticClass:"chat-space"},[t("input",{staticClass:"space-input",on:{focus:e.onSpaceInputFocus}})]),t("ul",{staticClass:"chat-toolbar",on:{click:function(s){s.stopPropagation()}}},[t("li",[e.emojiBottom?t("ETooltip",{ref:"emojiTip",attrs:{disabled:e.$isEEUIApp||e.windowTouch||e.showEmoji,placement:"top",enterable:!1,content:e.$L("\u8868\u60C5")}},[t("i",{staticClass:"taskfont",on:{click:function(s){e.showEmoji=!e.showEmoji}}},[e._v("\uE7AD")])]):t("EPopover",{ref:"emoji",attrs:{visibleArrow:!1,placement:"top",popperClass:"chat-input-emoji-popover"},model:{value:e.showEmoji,callback:function(s){e.showEmoji=s},expression:"showEmoji"}},[t("ETooltip",{ref:"emojiTip",attrs:{slot:"reference",disabled:e.$isEEUIApp||e.windowTouch||e.showEmoji,placement:"top",enterable:!1,content:e.$L("\u8868\u60C5")},slot:"reference"},[t("i",{staticClass:"taskfont"},[e._v("\uE7AD")])]),e.showEmoji?t("ChatEmoji",{attrs:{searchKey:e.emojiQuickKey},on:{"on-select":e.onSelectEmoji}}):e._e()],1)],1),t("li",[t("ETooltip",{attrs:{placement:"top",disabled:e.$isEEUIApp||e.windowTouch,enterable:!1,content:e.$L("\u9009\u62E9\u6210\u5458")}},[t("i",{staticClass:"taskfont",on:{click:function(s){return e.onToolbar("user")}}},[e._v("\uE78F")])])],1),t("li",[t("ETooltip",{attrs:{placement:"top",disabled:e.$isEEUIApp||e.windowTouch,enterable:!1,content:e.$L("\u9009\u62E9\u4EFB\u52A1")}},[t("i",{staticClass:"taskfont",on:{click:function(s){return e.onToolbar("task")}}},[e._v("\uE7D6")])])],1),t("li",[t("EPopover",{ref:"more",attrs:{visibleArrow:!1,placement:"top",popperClass:"chat-input-more-popover"},model:{value:e.showMore,callback:function(s){e.showMore=s},expression:"showMore"}},[t("ETooltip",{ref:"moreTip",attrs:{slot:"reference",disabled:e.$isEEUIApp||e.windowTouch||e.showMore,placement:"top",enterable:!1,content:e.$L("\u5C55\u5F00")},slot:"reference"},[t("i",{staticClass:"taskfont"},[e._v("\uE790")])]),e.isAiBot?[t("div",{staticClass:"chat-input-popover-item",on:{click:function(s){return e.onToolbar("file")}}},[t("i",{staticClass:"taskfont"},[e._v("\uE7C0")]),t("em",[e._v(e._s(e.$L("\u4E0A\u4F20\u6587\u4EF6")))])])]:[e.maybePhotoShow?t("div",{staticClass:"chat-input-popover-item maybe-photo",on:{click:function(s){return e.onToolbar("maybe-photo")}}},[t("span",[e._v(e._s(e.$L("\u4F60\u53EF\u80FD\u8981\u53D1\u9001\u7684\u7167\u7247"))+":")]),t("div",{staticClass:"photo-preview",style:e.maybePhotoStyle})]):e._e(),e.recordReady?t("div",{staticClass:"chat-input-popover-item",on:{click:function(s){return e.onToolbar("meeting")}}},[t("i",{staticClass:"taskfont"},[e._v("\uE7C1")]),t("em",[e._v(e._s(e.$L("\u65B0\u4F1A\u8BAE")))])]):e._e(),e.canCall?t("div",{staticClass:"chat-input-popover-item",on:{click:function(s){return e.onToolbar("call")}}},[t("i",{staticClass:"taskfont"},[e._v("\uE7BA")]),t("em",[e._v(e._s(e.$L("\u62E8\u6253\u7535\u8BDD")))])]):e._e(),t("div",{staticClass:"chat-input-popover-item",on:{click:function(s){return e.onToolbar("image")}}},[t("i",{staticClass:"taskfont"},[e._v("\uE7BC")]),t("em",[e._v(e._s(e.$L("\u53D1\u9001\u56FE\u7247")))])]),t("div",{staticClass:"chat-input-popover-item",on:{click:function(s){return e.onToolbar("file")}}},[t("i",{staticClass:"taskfont"},[e._v("\uE7C0")]),t("em",[e._v(e._s(e.$L("\u4E0A\u4F20\u6587\u4EF6")))])]),e.canAnon?t("div",{staticClass:"chat-input-popover-item",on:{click:function(s){return e.onToolbar("anon")}}},[t("i",{staticClass:"taskfont"},[e._v("\uE690")]),t("em",[e._v(e._s(e.$L("\u533F\u540D\u6D88\u606F")))])]):e._e(),e.dialogData.type=="group"?t("div",{staticClass:"chat-input-popover-item",on:{click:function(s){return e.onToolbar("word-chain")}}},[t("i",{staticClass:"taskfont"},[e._v("\uE80A")]),t("em",[e._v(e._s(e.$L("\u53D1\u8D77\u63A5\u9F99")))])]):e._e(),e.dialogData.type=="group"?t("div",{staticClass:"chat-input-popover-item",on:{click:function(s){return e.onToolbar("vote")}}},[t("i",{staticClass:"taskfont"},[e._v("\uE7FD")]),t("em",[e._v(e._s(e.$L("\u53D1\u8D77\u6295\u7968")))])]):e._e()],t("div",{staticClass:"chat-input-popover-item",on:{click:function(s){return e.onToolbar("full")}}},[t("i",{staticClass:"taskfont"},[e._v("\uE6A7")]),t("em",[e._v(e._s(e.$L("\u5168\u5C4F\u8F93\u5165")))])])],2)],1),t("li",{directives:[{name:"touchmouse",rawName:"v-touchmouse",value:e.clickSend,expression:"clickSend"},{name:"longpress",rawName:"v-longpress",value:{callback:e.onShowMenu,delay:300},expression:"{callback: onShowMenu, delay: 300}"}],ref:"chatSend",staticClass:"chat-send",class:e.sendClass},[t("EPopover",{ref:"menu",attrs:{visibleArrow:!1,trigger:"manual",placement:"top",popperClass:"chat-input-more-popover"},model:{value:e.showMenu,callback:function(s){e.showMenu=s},expression:"showMenu"}},[t("ETooltip",{ref:"sendTip",attrs:{slot:"reference",placement:"top",disabled:e.$isEEUIApp||e.windowTouch||e.showMenu,enterable:!1,content:e.$L(e.sendContent)},slot:"reference"},[e.loading?t("div",[t("div",{staticClass:"chat-load"},[t("Loading")],1)]):t("div",[t("transition",{attrs:{name:"mobile-send"}},[e.sendClass==="recorder"?t("i",{staticClass:"taskfont"},[e._v("\uE609")]):e._e()]),t("transition",{attrs:{name:"mobile-send"}},[e.sendClass!=="recorder"?t("i",{staticClass:"taskfont"},[e._v("\uE606")]):e._e()])],1)]),t("div",{staticClass:"chat-input-popover-item",on:{click:function(s){return e.onSend("silence")}}},[t("i",{staticClass:"taskfont"},[e._v("\uE7D7")]),t("em",[e._v(e._s(e.$L("\u65E0\u58F0\u53D1\u9001")))])]),t("div",{staticClass:"chat-input-popover-item",on:{click:function(s){return e.onSend("md")}}},[t("i",{staticClass:"taskfont"},[e._v("\uE647")]),t("em",[e._v(e._s(e.$L("MD \u683C\u5F0F\u53D1\u9001")))])]),t("div",{staticClass:"chat-input-popover-item",on:{click:function(s){return e.onSend("normal")}}},[t("i",{staticClass:"taskfont"},[e._v("\uE71B")]),t("em",[e._v(e._s(e.$L("\u666E\u901A\u683C\u5F0F\u53D1\u9001")))])])],1)],1)]),t("div",{staticClass:"chat-record",class:e.recordClassName},[t("div",{staticClass:"record-convert",on:{click:function(s){return e.stopRecord(!1,!0)}}},[t("i",{staticClass:"taskfont"},[e._v("\uE628")])]),t("div",{staticClass:"record-recwave"},[t("div",{ref:"recwave"})]),t("div",{staticClass:"record-remove",on:{click:function(s){return e.stopRecord(!0)}}},[t("i",{staticClass:"taskfont"},[e._v("\uE787")]),t("i",{staticClass:"taskfont"},[e._v("\uE702")])])]),t("div",{staticClass:"chat-cover",on:{click:function(s){return s.stopPropagation(),e.onClickCover.apply(null,arguments)}}})]),e.emojiBottom&&e.showEmoji?t("ChatEmoji",{attrs:{searchKey:e.emojiQuickKey},on:{"on-select":e.onSelectEmoji}}):e._e(),t("transition",{attrs:{name:"fade"}},[e.recordShow?t("div",{directives:[{name:"transfer-dom",rawName:"v-transfer-dom"}],staticClass:"chat-input-record-transfer",class:e.recordClassName,style:e.recordStyle,attrs:{"data-transfer":!0},on:{click:e.stopRecord}},[e.recordDuration>0?t("div",{staticClass:"record-duration"},[e._v(e._s(e.recordFormatDuration))]):t("div",{staticClass:"record-loading"},[t("Loading",{attrs:{type:"pure"}})],1),t("div",{staticClass:"record-cancel",on:{click:function(s){return s.stopPropagation(),e.stopRecord(!0)}}},[e._v(e._s(e.$L(e.recordFormatTip)))])]):e._e()]),t("transition",{attrs:{name:"fade"}},[e.recordConvertIng?t("div",{directives:[{name:"transfer-dom",rawName:"v-transfer-dom"}],staticClass:"chat-input-convert-transfer",style:e.recordConvertStyle,attrs:{"data-transfer":!0}},[t("div",{staticClass:"convert-box"},[t("div",{staticClass:"convert-body"},[t("div",{staticClass:"convert-content"},[e.recordConvertSetting?t("div",{staticClass:"convert-setting"},[t("i",{staticClass:"taskfont",class:{active:!!e.cacheTranscriptionLanguage},on:{click:function(s){return e.convertSetting("transcription",s)}}},[e._v("\uE628")]),t("i",{staticClass:"taskfont",class:{active:!!e.recordConvertTranslate},on:{click:function(s){return e.convertSetting("translate",s)}}},[e._v("\uE795")])]):e._e(),t("div",{staticClass:"convert-input"},[t("Input",{staticClass:"convert-result no-dark-content",attrs:{type:"textarea",rows:1,autosize:{minRows:1,maxRows:5},placeholder:e.recordConvertStatus===0?"...":"",disabled:e.recordConvertStatus!==1},on:{"on-focus":function(s){e.recordConvertFocus=!0},"on-blur":function(s){e.recordConvertFocus=!1}},model:{value:e.recordConvertResult,callback:function(s){e.recordConvertResult=s},expression:"recordConvertResult"}})],1)])]),t("ul",{staticClass:"convert-footer",style:e.recordConvertFooterStyle},[t("li",{directives:[{name:"touchclick",rawName:"v-touchclick",value:e.onTouchClick,expression:"onTouchClick"}],attrs:{"data-action":"record-convert-cancel"}},[t("i",{staticClass:"taskfont"},[e._v("\uE637")]),t("span",[e._v(e._s(e.$L("\u53D6\u6D88")))])]),t("li",{directives:[{name:"touchclick",rawName:"v-touchclick",value:e.onTouchClick,expression:"onTouchClick"}],attrs:{"data-action":"record-convert-voice"}},[t("i",{staticClass:"taskfont voice"},[e._v("\uE793")]),t("span",[e._v(e._s(e.$L("\u53D1\u9001\u539F\u8BED\u97F3")))])]),t("li",{directives:[{name:"touchclick",rawName:"v-touchclick",value:e.onTouchClick,expression:"onTouchClick"}],attrs:{"data-action":"record-convert-result"}},[e.recordConvertStatus===0?t("i",{staticClass:"send"},[t("Loading")],1):e.recordConvertStatus===2?t("i",{staticClass:"taskfont error"},[e._v("\uE665")]):t("i",{staticClass:"taskfont send"},[e._v("\uE684")])])])])]):e._e()]),t("Modal",{attrs:{"mask-closable":!1,beforeClose:e.onFullBeforeClose,"class-name":"chat-input-full-input","footer-hide":"",fullscreen:""},model:{value:e.fullInput,callback:function(s){e.fullInput=s},expression:"fullInput"}},[t("div",{staticClass:"chat-input-box",style:e.chatInputBoxStyle},[t("div",{staticClass:"chat-input-wrapper"},[t("div",{ref:"editorFull",staticClass:"no-dark-content"})]),t("ul",{staticClass:"chat-input-menu",class:{activation:e.fullSelection.length>0}},e._l(e.fullTools,function(s,n){return t("li",{key:n,on:{touchstart:function(a){a.preventDefault()},touchend:function(a){return a.preventDefault(),e.onFullMenu(s.label,s.type)},click:function(a){return e.onFullMenu(s.label,s.type)}}},[t("i",{staticClass:"taskfont",domProps:{innerHTML:e._s(s.icon)}})])}),0)]),t("i",{staticClass:"taskfont",attrs:{slot:"close"},slot:"close"},[e._v("\uE6AB")])])],1)},ul=[];const Dt={},dl={name:"ChatInput",components:{ChatEmoji:os},directives:{touchmouse:nl,touchclick:al,TransferDom:rl,clickoutside:ls,longpress:ol},props:{value:{type:[String,Number],default:""},dialogId:{type:Number,default:0},taskId:{type:Number,default:0},placeholder:{type:String,default:""},disabled:{type:Boolean,default:!1},disabledRecord:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},emojiBottom:{type:Boolean,default:!1},sendMenu:{type:Boolean,default:!0},simpleMode:{type:Boolean,default:!1},options:{type:Object,default:()=>({})},toolbar:{type:Array,default:()=>["bold","strike","italic","underline","blockquote","link",{list:"ordered"},{list:"bullet"},{list:"check"}]},maxlength:{type:Number},defaultMenuOrientation:{type:String,default:"top"},replyMsgAutoMention:{type:Boolean,default:!0}},data(){return{quill:null,isFocus:!1,rangeIndex:0,_content:"",_options:{},mentionMode:"",maybePhotoShow:!1,maybePhotoData:{},maybePhotoStyle:{},userList:null,userCache:null,taskList:null,fileList:{},reportList:{},showMenu:!1,showMore:!1,showEmoji:!1,emojiQuickShow:!1,emojiQuickKey:"",emojiQuickItems:[],recordReady:!1,recordRec:null,recordBlob:null,recordWave:null,recordInter:null,recordState:"stop",recordDuration:0,recordIndex:window.modalTransferIndex,recordConvertIng:!1,recordConvertFocus:!1,recordConvertSetting:!1,recordConvertStatus:0,recordConvertResult:"",recordConvertTranslate:"",touchStart:{},touchFocus:!1,touchLimitX:!1,touchLimitY:!1,pasteClean:!0,changeLoad:0,isSpecVersion:this.checkIOSVersion(),emojiTimer:null,scrollTimer:null,textTimer:null,fileTimer:null,reportTimer:null,moreTimer:null,selectTimer:null,selectRange:null,fullInput:!1,fullQuill:null,fullSelection:{index:0,length:0},fullTools:[{label:"bold",type:"",icon:""},{label:"strike",type:"",icon:""},{label:"italic",type:"",icon:""},{label:"underline",type:"",icon:""},{label:"blockquote",type:"",icon:""},{label:"link",type:"",icon:""},{label:"list",type:"ordered",icon:""},{label:"list",type:"bullet",icon:""},{label:"list",type:"unchecked",icon:""}],iOSDevices:$A.isIos()}},created(){Tt(this._uid)},mounted(){this.init(),this.recordInter=setInterval(e=>{this.recordState==="ing"&&(this.__recordDuration&&this.__recordDuration===this.recordDuration?(this.__recordDuration=null,this.stopRecord(!0),$A.messageWarning("\u5F55\u97F3\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5")):this.__recordDuration=this.recordDuration)},1e3),this.$isEEUIApp&&(window.__onPermissionRequest=(e,i)=>{e==="recordAudio"&&i===!1&&this.stopRecord(!0)}),$A.loadScript("js/emoticon.all.js")},beforeDestroy(){var e;cs(this._uid),this.quill&&((e=this.quill.getModule("mention"))==null||e.hideMentionList(),this.quill=null),this.recordRec&&(this.recordRec=null),this.recordConvertIng&&(this.recordConvertIng=!1),this.recordInter&&clearInterval(this.recordInter)},computed:{...x(["cacheProjects","cacheTasks","cacheUserBasic","cacheDialogs","dialogMsgs","cacheTranscriptionLanguage","cacheKeyboard","keyboardShow","keyboardHeight","isModKey","safeAreaSize","viewportHeight"]),...ge(["getDialogDraft","getDialogQuote"]),isEnterSend({cacheKeyboard:e}){return this.$isEEUIApp?e.send_button_app==="enter":e.send_button_desktop==="enter"},isAiBot({dialogData:e}){return!e.bot||e.type!=="user"?!1:/^ai-(.*?)@bot\.system/.test(e.email)},canCall(){return this.dialogData.type==="user"&&!this.dialogData.bot&&this.$isEEUIApp},canAnon(){return this.dialogData.type==="user"&&!this.dialogData.bot},recordShow(){const{recordState:e}=this;return["ready","ing"].includes(e)},recordStyle(){const{windowScrollY:e,recordIndex:i}=this,t={zIndex:i};return e>0&&(t.marginTop=e/2+"px"),t},recordConvertStyle(){const{recordIndex:e}=this;return{zIndex:e}},recordConvertFooterStyle(){const{recordConvertFocus:e,keyboardShow:i,keyboardHeight:t}=this;return e&&i&&t>120&&$A.isIos()?{alignItems:"flex-start",transform:"translateY(12px)"}:{}},boxClass(){const e=[];return this.recordShow&&(this.recordState==="ing"&&this.recordDuration>0?e.push("record-progress"):e.push("record-ready")),this.simpleMode&&e.push("simple-mode"),this.showMenu&&e.push("show-menu"),this.showMore&&e.push("show-more"),this.showEmoji&&e.push("show-emoji"),this.mentionMode&&e.push(this.mentionMode),e},sendClass(){return $A.filterInvalidLine(this.value)?"sender":this.recordReady?"recorder":""},sendContent(){return this.tempHiddenSendTip(),this.sendClass==="recorder"?"\u957F\u6309\u5F55\u97F3":"\u53D1\u9001"},recordFormatDuration(){const{recordDuration:e}=this;let i=Math.floor(e/6e4),t=Math.floor(e/1e3)%60,s=("00"+e%1e3).substr(-2);return i<10&&(i=`0${i}`),t<10&&(t=`0${t}`),`${i}:${t}\u2033${s}`},recordClassName({touchLimitX:e,touchLimitY:i}){return i?"cancel":e?"convert":""},recordFormatTip({touchLimitX:e,touchLimitY:i}){return i?"\u677E\u5F00\u53D6\u6D88":e?"\u8F6C\u6587\u5B57":"\u5411\u4E0A\u6ED1\u52A8\u53D6\u6D88"},dialogData(){return this.dialogId>0?this.cacheDialogs.find(({id:e})=>e==this.dialogId)||{}:{}},draftId(){return this.dialogId||`t_${this.taskId}`},draftData(){var e;return((e=this.getDialogDraft(this.draftId))==null?void 0:e.content)||""},quoteData(){var e;return((e=this.getDialogQuote(this.dialogId))==null?void 0:e.content)||null},quoteUpdate(){var e;return((e=this.getDialogQuote(this.dialogId))==null?void 0:e.type)==="update"},chatInputBoxStyle({iOSDevices:e,fullInput:i,keyboardShow:t,viewportHeight:s,safeAreaSize:n}){const a={};return e&&i&&t&&s>0&&$A.isIos()?a.height=Math.max(100,s-70-n.top)+"px":a.paddingBottom=`${n.bottom}px`,a}},watch:{value(e){this.quill&&(e&&e!==this._content?(this._content=e,this.setContent(e)):e||this.quill.setText("")),this.simpleMode||this.$store.dispatch("saveDialogDraft",{id:this.draftId,content:e})},disabled(e){var i;(i=this.quill)==null||i.enable(!e)},dialogId(){this.selectRange=null,this.userList=null,this.userCache=null,this.taskList=null,this.fileList={},this.reportList={},this.loadInputDraft()},taskId(){this.selectRange=null,this.userList=null,this.userCache=null,this.taskList=null,this.fileList={},this.reportList={},this.loadInputDraft()},draftData(){this.isFocus||this.loadInputDraft()},quoteData(){this.quoteChanged=!0},showMenu(e){e&&(this.showMore=!1,this.showEmoji=!1,this.emojiQuickShow=!1)},showMore(e){if(this.maybePhotoShow=!1,e){if(this.showMenu=!1,this.showEmoji=!1,this.emojiQuickShow=!1,this.isAiBot)return;$A.eeuiAppGetLatestPhoto().then(({thumbnail:i,original:t})=>{const n=Math.min(150,i.height/(i.width/120));this.maybePhotoStyle={width:120+"px",height:n+"px",backgroundImage:`url(${i.base64})`},this.maybePhotoData={thumbnail:i,original:t},this.maybePhotoShow=!0,this.$nextTick(()=>{var a;(a=this.$refs.more)==null||a.updatePopper()})}).catch(i=>{})}},showEmoji(e){if(this.emojiBottom&&(e?this.quill.enable(!1):this.disabled||this.quill.enable(!0)),e){let i=this.value.replace(/ /g," ").replace(/<[^>]+>/g,"");if(i&&i.indexOf(" ")===-1&&i.length>=1&&i.length<=8?this.emojiQuickKey=i:this.emojiQuickKey="",this.showMenu=!1,this.showMore=!1,this.emojiQuickShow=!1,this.quill){const t=this.quill.selection.savedRange;this.rangeIndex=t?t.index:0}}else this.rangeIndex>0&&this.quill.setSelection(this.rangeIndex)},emojiQuickShow(e){e&&(this.showMenu=!1,this.showMore=!1,this.showEmoji=!1)},isFocus(e){this.scrollTimer&&clearInterval(this.scrollTimer),e?(this.$emit("on-focus"),this.hidePopover(),this.isSpecVersion||this.windowPortrait&&(this.scrollTimer=setInterval(()=>{var i;(i=this.quill)!=null&&i.hasFocus()?this.windowScrollY>0&&$A.scrollIntoViewIfNeeded(this.$refs.editor):clearInterval(this.scrollTimer)},200))):this.$emit("on-blur")},recordState(e){e==="ing"?this.recordWave=window.Recorder.FrequencyHistogramView({elem:this.$refs.recwave,lineCount:90,position:0,minHeight:1,stripeEnable:!1}):(this.recordWave=null,this.$refs.recwave.innerHTML=""),this.$emit("on-record-state",e)},recordShow(e){e&&(this.recordIndex=++window.modalTransferIndex)},recordConvertIng(e){e?this.recordIndex=++window.modalTransferIndex:this.recordConvertSetting=!1},fullInput(e){var i;(i=this.quill)==null||i.enable(!e)},windowScrollY(e){this.fullInput&&e>0&&window.scrollTo(0,0)},keyboardShow(e){var i;!e&&this.isFocus&&(this.isFocus=!1,(i=this.quill)==null||i.blur())},selectRange(e){e!=null&&e.index&&(Dt[this.draftId]=e.index)}},methods:{init(){var i;this._options=Object.assign({theme:"bubble",bubbleTooltipTop:!0,formats:["bold","strike","italic","underline","blockquote","list","link","image","mention"],readOnly:!1,placeholder:this.placeholder,modules:{toolbar:this.$isEEUIApp||this.windowTouch?!1:this.toolbar,keyboard:this.simpleMode?{}:{bindings:{"short enter":{key:"Enter",shortKey:!0,handler:t=>this.isEnterSend?!0:(this.onSend(),!1)},enter:{key:"Enter",shiftKey:!1,handler:t=>this.isEnterSend?(this.onSend(),!1):!0},esc:{key:"Escape",shiftKey:!1,handler:t=>this.emojiQuickShow?(this.emojiQuickShow=!1,!1):!0}}},mention:this.quillMention()}},this.options),this.quill=new oe(this.$refs.editor,this._options),this.quill.enable(!this.disabled),this.value?this.setContent(this.value):this.loadInputDraft(),this.quill.on("selection-change",t=>{if(!!this.inputActivated()){if(t)this.selectRange=t;else if(this.selectRange&&document.activeElement&&/(ql-editor|ql-clipboard)/.test(document.activeElement.className)){this.selectTimer&&clearTimeout(this.selectTimer),this.selectTimer=setTimeout(s=>{this.quill.setSelection(this.selectRange.index,this.selectRange.length)},100);return}this.isFocus=!!t}}),this.quill.on("text-change",t=>{if(this.isFocus){const{index:s}=this.quill.getSelection();if(this.quill.getText(s-1,1)==="\r"){this.quill.insertText(s,`
|
|
`),this.quill.deleteText(s-1,1);return}}this.textTimer?clearTimeout(this.textTimer):this.changeLoad++,this.textTimer=setTimeout(s=>{this.textTimer=null,this.changeLoad--,this.maxlength>0&&this.quill.getLength()>this.maxlength&&this.quill.deleteText(this.maxlength,this.quill.getLength());const n=this.$refs.editor.firstChild.innerHTML;this.updateEmojiQuick(n),this._content=n,this.$emit("input",this._content)},100)}),this.quill.clipboard.addMatcher(Node.ELEMENT_NODE,(t,s)=>(this.pasteClean&&(s.ops=s.ops.map(n=>{const a={insert:n.insert};try{typeof a.insert.mention=="object"&&t.innerHTML&&(a.insert=t.innerHTML.replace(/<[^>]+>/g,""))}catch{}return n.attributes&&["bold","strike","italic","underline","list","blockquote","link"].some(r=>{n.attributes[r]&&(typeof a.attributes=="undefined"&&(a.attributes={}),a.attributes[r]=n.attributes[r])}),a})),s));const e=this.quill.getModule("toolbar");if((i=e==null?void 0:e.handlers)!=null&&i.link&&e.addHandler("link",t=>{t?$A.modalInput({title:"\u63D2\u5165\u94FE\u63A5",placeholder:"\u8BF7\u8F93\u5165\u5B8C\u6574\u7684\u94FE\u63A5\u5730\u5740",onOk:s=>{if(!s)return!1;this.quill.format("link",s)}}):this.quill.format("link",!1)}),this.$nextTick(t=>{this.$isEEUIApp&&this.cacheKeyboard.send_button_app==="enter"&&this.quill.root.setAttribute("enterkeyhint","send")}),this.$emit("on-ready",this.quill),!this.disabledRecord){const t=I==="zh"||I==="zh-CHT"?"zh-CN":"en-US";$A.loadScriptS(["js/recorder/recorder.mp3.min.js","js/recorder/lib.fft.js","js/recorder/frequency.histogram.view.js",`js/recorder/i18n/${t}.js`]).then(s=>{typeof window.Recorder=="function"&&(window.Recorder.i18n.lang=t,this.recordRec=window.Recorder({type:"mp3",bitRate:64,sampleRate:32e3,audioTrackSet:{noiseSuppression:!0,echoCancellation:!0},disableEnvInFix:!1,onProcess:(n,a,r,o,l,c)=>{var u;(u=this.recordWave)==null||u.input(n[n.length-1],a,o),this.recordDuration=r,r>=3*60*1e3&&this.stopRecord(!1)}}),window.Recorder.Support()&&(this.recordReady=!0),window.systemInfo.debug!=="yes"&&(window.Recorder.CLog=function(){}))})}},quillMention(){return{allowedChars:/^\S*$/,mentionDenotationChars:["@","#","~","%"],defaultMenuOrientation:this.defaultMenuOrientation,isolateCharacter:!0,positioningStrategy:"fixed",renderItem:e=>{if(e.disabled===!0)return`<div class="mention-item-disabled">${e.value}</div>`;const i=`<div class="mention-item-name" title="${e.value}">${e.value}</div>`,t=e.tip?`<div class="mention-item-tip" title="${e.tip}">${e.tip}</div>`:"";if(e.id===0)return`<div class="mention-item-at">@</div>${i}${t}`;if(e.avatar){const s=e.bot?'<div class="taskfont mention-item-bot"></div>':"";return`<div class="mention-item-img${e.online?" online":""}"><img src="${e.avatar}"/><em></em></div>${s}${i}${t}`}return`${i}${t}`},renderLoading:()=>"Loading...",source:(e,i,t)=>{const s=t=="@"?"user-mention":t=="#"?"task-mention":"file-mention",n=document.getElementsByClassName("ql-mention-list-container");for(let r=0;r<n.length;r++)n[r].classList.remove("user-mention"),n[r].classList.remove("task-mention"),n[r].classList.remove("file-mention"),n[r].classList.add(s),$A.scrollPreventThrough(n[r]);let a=null;this.getMentionSource(t,e,r=>{const o=[];r.some(l=>{let c=l.list;e&&(c=c.filter(({id:u,value:h,key:d})=>/^\d+$/.test(e)&&u&&u==e?!0:$A.strExists(d||h,e))),c.length>0&&(l.label&&o.push(...l.label),o.push(...c))}),$A.jsonStringify(o.map(({id:l})=>l))!==a&&(a=$A.jsonStringify(o.map(({id:l})=>l)),i(o,e))})}}},updateEmojiQuick(e){if(!this.isFocus||!e){this.emojiQuickShow=!1;return}this.emojiTimer&&clearTimeout(this.emojiTimer),this.emojiTimer=setTimeout(i=>{if(this.emojiTimer=null,/<img/i.test(e)){this.emojiQuickShow=!1;return}if(e=e.replace(/ /g," ").replace(/<[^>]+>/g,""),e&&e.indexOf(" ")===-1&&e.length>=1&&e.length<=8&&$A.isArray(window.emoticonData)){this.emojiQuickItems=[];const t=$A.mainUrl("images/emoticon");if(window.emoticonData.some(s=>{let n=0;if(s.list.some(a=>{const r=[a.name];if(a.key&&r.push(...`${a.key}`.split(" ")),r.includes(e)&&(this.emojiQuickItems.push(Object.assign(a,{type:"emoticon",asset:`images/emoticon/${s.path}/${a.path}`,name:a.name,src:`${t}/${s.path}/${a.path}`})),++n>=2))return!0}),this.emojiQuickItems.length>=20)return!0}),this.emojiQuickItems.length>0){this.$refs.emojiWrapper.$el.style.maxWidth=`${Math.min(500,this.$refs.inputWrapper.clientWidth)}px`,this.$nextTick(s=>{this.emojiQuickShow=!0,this.$refs.emojiQuickRef.updatePopper()});return}}this.emojiQuickShow=!1},100)},inputActivated(){return!this.fullInput&&ll(this._uid)},getEditor(){return this.fullInput?this.fullQuill:this.quill},getText(){return this.quill?`${this.quill.getText()}`.replace(/^\s+|\s+$/g,""):""},insertText(e){if(this.quill){const{index:i}=this.quill.getSelection(!0);this.quill.insertText(i,e)}},setText(e){this.quill&&this.quill.setText(e)},setContent(e){this.quill&&this.quill.setContents(this.quill.clipboard.convert({html:e}))},setPasteMode(e){this.pasteClean=e},loadInputDraft(){if(this.simpleMode||!this.draftData){this.$emit("input","");return}this.pasteClean=!1,this.$emit("input",this.draftData),this.$nextTick(e=>this.pasteClean=!0)},onClickEditor(){this.clearSearchKey(),this.updateEmojiQuick(this.value),!this.isFocus&&this.focus(),Tt(this._uid)},clearSearchKey(){this.$parent.$options.name==="DialogWrapper"&&(this.$store.state.messengerSearchKey.dialog!=""||this.$store.state.messengerSearchKey.contacts!="")&&setTimeout(e=>{this.$parent.onActive()},10),this.$store.state.messengerSearchKey={dialog:"",contacts:""}},focus(){this.$nextTick(()=>{var i;const e=this.getEditor();if(e){if(!((i=this.selectRange)!=null&&i.index)){const t=e.getLength();e.setSelection(Math.min(Dt[this.draftId]||t,t))}e.focus()}})},blur(){this.$nextTick(()=>{var e;(e=this.getEditor())==null||e.blur()})},clickSend(e,i){var t;if(!this.loading)switch(e){case"down":if(this.touchFocus=(t=this.quill)==null?void 0:t.hasFocus(),this.touchLimitX=!1,this.touchLimitY=!1,this.touchStart=i.type==="touchstart"?i.touches[0]:i,(i.button===void 0||i.button===0)&&this.startRecord())return;i.button===2&&this.onShowMenu();break;case"move":const s=i.type==="touchmove"?i.touches[0]:i;this.touchLimitX=(this.touchStart.clientX-s.clientX)/window.innerWidth>.1,this.touchLimitY=(this.touchStart.clientY-s.clientY)/window.innerHeight>.1;break;case"up":if(this.showMenu||this.stopRecord(this.touchLimitY,this.touchLimitX)||this.touchLimitY||this.touchLimitX)return;this.onSend();break;case"click":this.showMenu&&(this.tempHiddenSendTip(),this.showMenu=!1),this.touchFocus&&(this.quill.blur(),this.quill.focus());break}},onShowMenu(){this.sendClass==="recorder"||!this.sendMenu||(this.showMenu=!0)},onSend(e="auto"){this.emojiTimer&&clearTimeout(this.emojiTimer),this.emojiQuickShow=!1,setTimeout(i=>{$A.filterInvalidLine(this.value)!==""&&(this.hidePopover("send"),this.rangeIndex=0,this.clearSearchKey(),e==="auto"&&(e=Ns(this.value)?"md":""),e==="normal"&&(e=""),e?this.$emit("on-send",null,e):this.$emit("on-send"))},this.changeLoad>0?100:0)},startRecord(){return this.sendClass==="recorder"?(this.$store.dispatch("audioStop",!0),this.recordDuration=0,this.recordState="ready",this.$nextTick(e=>{this.recordRec.open(i=>{this.recordState==="ready"?(this.recordState="ing",this.recordBlob=null,setTimeout(t=>{this.recordState=="stop"?this.recordRec.close():this.recordRec.start()},300)):this.recordRec.close()},i=>{this.recordState="stop",$A.messageError(i||"\u6253\u5F00\u5F55\u97F3\u5931\u8D25")})}),!0):!1},stopRecord(e,i=!1){switch(this.recordState){case"ing":return this.recordState="stop",this.recordRec.stop((t,s)=>{this.recordRec.close(),e!==!0&&(s<600?$A.messageWarning("\u8BF4\u8BDD\u65F6\u95F4\u592A\u77ED"):(this.recordBlob=t,this.recordDuration=s,i===!0?(this.blur(),this.convertRecord()):this.uploadRecord()))},t=>{this.recordRec.close(),$A.messageError(t||"\u5F55\u97F3\u5931\u8D25")}),!0;case"ready":return this.recordState="stop",!0;default:return this.recordState="stop",!1}},hidePopover(e){this.showMenu=!1,this.showMore=!1,e!=="send"&&(this.showEmoji=!1,this.emojiQuickShow=!1)},onClickCover(){this.hidePopover(),this.$nextTick(e=>{var i;(i=this.quill)==null||i.focus()})},onTouchClick(e,i){var s;let t=i.getAttribute("data-action");switch(t==="children"&&(t=(s=e.target)==null?void 0:s.getAttribute("data-action")),t){case"cancel-quote":this.cancelQuote();break;case"record-convert-cancel":this.recordConvertIng=!1;break;case"record-convert-voice":this.convertSend("voice");break;case"record-convert-result":this.convertSend("result");break}},convertRecord(){if(this.recordBlob===null){this.recordConvertIng=!1;return}this.recordConvertResult="",this.recordConvertStatus=0,this.recordConvertIng=!0;const e=new FileReader;e.onloadend=()=>{this.$store.dispatch("call",{url:"dialog/msg/convertrecord",data:{dialog_id:this.dialogId,base64:e.result,duration:this.recordDuration,language:this.cacheTranscriptionLanguage,translate:this.recordConvertTranslate},method:"post"}).then(({data:i})=>{i?(this.recordConvertStatus=1,this.recordConvertResult=i,this.recordConvertSetting=!0):(this.recordConvertStatus=2,this.recordConvertResult=this.$L("\u8F6C\u6587\u5B57\u5931\u8D25"))}).catch(({msg:i})=>{this.recordConvertStatus=2,this.recordConvertResult=i})},e.readAsDataURL(this.recordBlob)},async convertSetting(e,i){if(this.recordConvertStatus!==1){$A.messageWarning("\u8BF7\u7A0D\u540E\u518D\u8BD5...");return}await this.$nextTick();const t=Object.keys(J).map(n=>({label:J[n],value:n}));let s;e==="transcription"?(t.unshift({label:this.$L("\u9009\u62E9\u8BC6\u522B\u8BED\u8A00"),value:"",disabled:!0},{label:this.$L("\u81EA\u52A8\u8BC6\u522B"),value:"",divided:!0}),s=this.cacheTranscriptionLanguage):(t.unshift({label:this.$L("\u9009\u62E9\u7FFB\u8BD1\u7ED3\u679C"),value:"",disabled:!0},{label:this.$L("\u4E0D\u7FFB\u8BD1\u7ED3\u679C"),value:"",divided:!0}),s=this.recordConvertTranslate),this.$store.commit("menu/operation",{event:i,list:t,active:s,language:!1,onUpdate:async n=>{e==="transcription"?await this.$store.dispatch("setTranscriptionLanguage",n):this.recordConvertTranslate=n,this.convertRecord()}})},convertSend(e){!this.recordConvertIng||(e==="voice"?(this.uploadRecord(),this.recordConvertIng=!1):this.recordConvertStatus===1?(this.$emit("on-send",this.recordConvertResult),this.recordConvertIng=!1):this.recordConvertStatus===2&&this.convertRecord())},uploadRecord(){if(this.recordBlob===null)return;const e=new FileReader;e.onloadend=()=>{this.$emit("on-record",{type:this.recordBlob.type,base64:e.result,duration:this.recordDuration})},e.readAsDataURL(this.recordBlob)},onEmojiQuick(e){e.type==="online"?this.$emit("on-send",`<img src="${e.src}"/>`):this.$emit("on-send",`<img class="emoticon" data-asset="${e.asset}" data-name="${e.name}" src="${e.src}"/>`),this.$emit("input",""),this.emojiQuickShow=!1,this.focus()},onSelectEmoji(e){!this.quill||(e.type==="emoji"?(this.quill.insertText(this.rangeIndex,e.text),this.rangeIndex+=e.text.length,this.windowLandscape&&!this.isModKey&&(this.showEmoji=!1)):e.type==="emoticon"&&(this.$emit("on-send",`<img class="emoticon" data-asset="${e.asset}" data-name="${e.name}" src="${e.src}"/>`),e.asset==="emosearch"&&this.$emit("input",""),this.windowLandscape&&!this.isModKey&&(this.showEmoji=!1)))},onToolbar(e){switch(this.hidePopover(),e){case"user":this.openMenu("@");break;case"task":this.openMenu("#");break;case"maybe-photo":this.$emit("on-file",{type:"photo",msg:{type:"img",filename:this.maybePhotoData.original.name,path:this.maybePhotoData.original.path,width:this.maybePhotoData.original.width,height:this.maybePhotoData.original.height,thumb:this.maybePhotoData.thumbnail.base64}});break;case"meeting":C.emit("addMeeting",{type:"create",dialog_id:this.dialogId,userids:[this.userId]});break;case"full":this.onFullInput();break;case"image":case"file":case"call":case"anon":this.$emit("on-more",e);break;case"word-chain":this.$store.state.dialogDroupWordChain={type:"create",dialog_id:this.dialogId};break;case"vote":this.$store.state.dialogGroupVote={type:"create",dialog_id:this.dialogId};break}},onFullInput(){this.disabled||(this.fullInput=!this.fullInput,this.fullInput&&this.$nextTick(e=>{this.fullQuill=new oe(this.$refs.editorFull,Object.assign({theme:"bubble",readOnly:!1,placeholder:this.placeholder,modules:{toolbar:!1,mention:this.quillMention()}},this.options)),this.fullQuill.on("selection-change",i=>{i?this.fullSelection=i:this.fullSelection&&document.activeElement&&/(ql-editor|ql-clipboard)/.test(document.activeElement.className)&&(this.selectTimer&&clearTimeout(this.selectTimer),this.selectTimer=setTimeout(t=>{this.fullQuill.setSelection(this.fullSelection.index,this.fullSelection.length)},100))}),this.fullQuill.on("text-change",i=>{this.fullSelection=this.fullQuill.getSelection()}),this.fullQuill.enable(!0),this.$refs.editorFull.firstChild.innerHTML=this.$refs.editor.firstChild.innerHTML,this.$nextTick(i=>{this.fullQuill.setSelection(this.fullQuill.getLength()),this.fullQuill.focus()})}))},onFullBeforeClose(){return new Promise(e=>{var i;(i=this.$refs.editorFull)!=null&&i.firstChild&&(this.$refs.editor.firstChild.innerHTML=this.$refs.editorFull.firstChild.innerHTML),e()})},onFullMenu(e,i){const{length:t}=this.fullQuill.getSelection(!0);if(t===0){$A.messageWarning("\u8BF7\u9009\u62E9\u6587\u5B57\u540E\u518D\u64CD\u4F5C");return}switch(e){case"bold":this.fullQuill.format("bold",!this.fullQuill.getFormat().bold);break;case"strike":this.fullQuill.format("strike",!this.fullQuill.getFormat().strike);break;case"italic":this.fullQuill.format("italic",!this.fullQuill.getFormat().italic);break;case"underline":this.fullQuill.format("underline",!this.fullQuill.getFormat().underline);break;case"blockquote":this.fullQuill.format("blockquote",!this.fullQuill.getFormat().blockquote);break;case"link":if(this.fullQuill.getFormat().link){this.fullQuill.format("link",!1);return}$A.modalInput({title:"\u63D2\u5165\u94FE\u63A5",placeholder:"\u8BF7\u8F93\u5165\u5B8C\u6574\u7684\u94FE\u63A5\u5730\u5740",onOk:s=>{if(!s)return!1;this.fullQuill.format("link",s)}});break;case"list":this.fullQuill.format("list",this.fullQuill.getFormat().list===i?!1:i);break}},setQuote(e,i="reply"){if(this.dialogId<=0)return;const t=this.dialogMsgs.find(s=>s.id==e&&s.dialog_id==this.dialogId);if(!t){this.$store.dispatch("removeDialogQuote",this.dialogId);return}this.$store.dispatch("saveDialogQuote",{id:this.dialogId,type:i==="update"?"update":"reply",content:t})},cancelQuote(){if(this.quoteUpdate)this.$emit("input","");else if(this.quoteData){const{firstChild:e}=this.$refs.editor;if(e&&e.querySelectorAll("img").length===0){const i=e.querySelectorAll("span.mention");if(i.length===1){const t=i[0];if(t.getAttribute("data-id")==this.quoteData.userid){const s=t.parentNode;s.normalize(),Array.from(s.childNodes).filter(a=>a.nodeType!==Node.TEXT_NODE||!/^\s*$/.test(a.textContent)).length===1&&t.remove()}}e.innerText.replace(/\s/g,"")||this.$emit("input","")}}this.setQuote(0)},onQuoteUserResult(e){var i;!this.quoteChanged||(this.quoteChanged=!1,!(this.dialogData.type!=="group"||this.quoteUpdate||!this.quoteData||!this.replyMsgAutoMention||this.userId===e.userid||this.quoteData.userid!==e.userid)&&(new RegExp(`<span[^>]+?class="mention"[^>]+?data-id="${e.userid}"[^>]*?>`).test((i=this.$refs.editor.firstChild)==null?void 0:i.innerHTML)||this.addMention({denotationChar:"@",id:e.userid,value:e.nickname})))},onSpaceInputFocus(){var e;this.selectRange&&((e=this.quill)==null||e.setSelection(this.selectRange.index,this.selectRange.length))},openMenu(e){if(!!this.quill)if(this.value.length===0||this.value.endsWith("<p><br></p>"))this.quill.getModule("mention").openMenu(e);else{let i=this.value.replace(/<[^>]+>/g,"");i.length===0||i.endsWith(" ")?this.quill.getModule("mention").openMenu(e):this.quill.getModule("mention").openMenu(` ${e}`)}},addMention(e){if(!this.quill||!this.inputActivated())return;const{index:i}=this.quill.getSelection(!0);this.quill.insertEmbed(i,"mention",e,oe.sources.USER),this.quill.insertText(i+1," ",oe.sources.USER),this.quill.setSelection(i+2,oe.sources.USER)},getProjectId(){let e=null;if(this.dialogId>0){if(e=this.cacheProjects.find(({dialog_id:i})=>i==this.dialogId),e)return e.id;if(e=this.cacheTasks.find(({dialog_id:i})=>i==this.dialogId),e)return e.project_id}else if(this.taskId>0&&(e=this.cacheTasks.find(({id:i})=>i==this.taskId),e))return e.project_id;return 0},getMentionSource(e,i,t){switch(e){case"@":this.mentionMode="user-mention";const s=o=>{this.getMoreUser(i,o.map(l=>l.id)).then(l=>{let c=this.cacheDialogs.filter((u,h)=>u.type=="user"&&u.bot==0&&u.last_at);c.sort((u,h)=>u.last_at>h.last_at?-1:u.last_at<h.last_at?1:0),c=c.filter((u,h)=>h<5),l.forEach(u=>{u.last_at="1990-01-01 00:00:00",c.forEach(h=>{var d;((d=h.dialog_user)==null?void 0:d.userid)==u.id&&(u.last_at=h.last_at)})}),l.sort((u,h)=>u.last_at>h.last_at?-1:u.last_at<h.last_at?1:0),this.userList=o,this.userCache=[],l.length>0?(o.length>2&&this.userCache.push({label:null,list:[{id:0,value:this.$L("\u6240\u6709\u4EBA.All"),tip:""}]}),this.userCache.push({label:[{id:0,value:this.$L("\u7FA4\u5185\u6210\u5458"),className:"sticky-top",disabled:!0}],list:o},{label:[{id:0,value:this.$L("\u7FA4\u5916\u6210\u5458"),className:"sticky-top",disabled:!0}],list:l})):o.length>2?this.userCache.push({label:null,list:[{id:0,value:this.$L("\u6240\u6709\u4EBA.All"),tip:""}]},{label:[{id:0,value:this.$L("\u7FA4\u6210\u5458"),className:"sticky-top",disabled:!0}],list:o}):this.userCache.push({label:null,list:o}),t(this.userCache)})};if(this.dialogData.people&&$A.arrayLength(this.userList)!==this.dialogData.people&&(this.userList=null,this.userCache=null),this.userCache!==null&&t(this.userCache),this.userList!==null){s(this.userList);return}const n=[];if(this.dialogId>0)this.$store.dispatch("call",{url:"dialog/user",data:{dialog_id:this.dialogId,getuser:1}}).then(({data:o})=>{this.cacheDialogs.find(({id:l})=>l==this.dialogId)&&this.$store.dispatch("saveDialog",{id:this.dialogId,people:o.length,people_user:o.filter(l=>!l.bot).length,people_bot:o.filter(l=>l.bot).length}),o.length>0&&n.push(...o.map(l=>({id:l.userid,value:l.nickname,avatar:l.userimg,online:l.online,bot:l.bot,key:`${l.nickname} ${l.email} ${l.pinyin}`}))),s(n)}).catch(o=>{s(n)});else if(this.taskId>0){const o=this.cacheTasks.find(({id:l})=>l==this.taskId);o&&$A.isArray(o.task_user)&&o.task_user.some(l=>{const c=this.cacheUserBasic.find(({userid:u})=>u==l.userid);c&&n.push({id:c.userid,value:c.nickname,avatar:c.userimg,online:c.online,bot:c.bot,key:`${c.nickname} ${c.email} ${c.pinyin}`})}),s(n)}break;case"#":if(this.mentionMode="task-mention",this.taskList!==null){t(this.taskList);return}const a=o=>{this.taskList=[],o.length>0&&(o=o.map(f=>({id:f.id,value:f.name,tip:f.complete_at?this.$L("\u5DF2\u5B8C\u6210"):null})).splice(0,100),this.taskList.push({label:[{id:0,value:this.$L("\u9879\u76EE\u4EFB\u52A1"),disabled:!0}],list:o}));const{overdue:l,today:c,todo:u}=this.$store.getters.dashboardTask,h=[...l,...c,...u];let d=this.$store.getters.transforTasks(h);d.length>0&&(d=d.sort((f,g)=>$A.sortDay(f.end_at||"2099-12-31 23:59:59",g.end_at||"2099-12-31 23:59:59")).splice(0,100),this.taskList.push({label:[{id:0,value:this.$L("\u6211\u7684\u5F85\u5B8C\u6210\u4EFB\u52A1"),disabled:!0}],list:d.map(f=>({id:f.id,value:f.name}))}));let p=this.$store.getters.assistTask;p.length>0&&(p=p.sort((f,g)=>$A.sortDay(f.end_at||"2099-12-31 23:59:59",g.end_at||"2099-12-31 23:59:59")).splice(0,100),this.taskList.push({label:[{id:0,value:this.$L("\u6211\u534F\u52A9\u7684\u4EFB\u52A1"),disabled:!0}],list:p.map(f=>({id:f.id,value:f.name}))})),t(this.taskList)},r=this.getProjectId();if(r>0){this.$store.dispatch("getTaskForProject",r).then(o=>{const l=this.cacheTasks.filter(c=>c.archived_at?!1:c.project_id==r&&c.parent_id===0&&!c.archived_at).sort((c,u)=>$A.sortDay(u.complete_at||"2099-12-31 23:59:59",c.complete_at||"2099-12-31 23:59:59"));l.length>0?a(l):a([])}).catch(o=>{a([])});return}a([]);break;case"~":if(this.mentionMode="file-mention",$A.isArray(this.fileList[i])){t(this.fileList[i]);return}this.fileTimer&&clearTimeout(this.fileTimer),this.fileTimer=setTimeout(async o=>{var u;const l=[],c=(u=await this.$store.dispatch("searchFiles",i).catch(h=>{}))==null?void 0:u.data;c&&(l.push({label:[{id:0,value:this.$L("\u6587\u4EF6\u5206\u4EAB\u67E5\u770B"),disabled:!0}],list:c.filter(h=>h.type!=="folder").map(h=>({id:h.id,value:h.ext?`${h.name}.${h.ext}`:h.name}))}),this.fileList[i]=l),t(l)},300);break;case"%":if(this.mentionMode="report-mention",$A.isArray(this.reportList[i])){t(this.reportList[i]);return}this.reportTimer&&clearTimeout(this.reportTimer),this.reportTimer=setTimeout(async o=>{var d,p;const l=[];let c=2;const u=(d=await this.$store.dispatch("call",{url:"report/my",data:{keys:{key:i}}}).catch(f=>{}))==null?void 0:d.data;u&&(l.push({label:[{id:0,value:this.$L("\u6211\u7684\u62A5\u544A"),disabled:!0}],list:u.data.map(f=>({id:f.id,value:f.title}))}),c--);const h=(p=await this.$store.dispatch("call",{url:"report/receive",data:{keys:{key:i}}}).catch(f=>{}))==null?void 0:p.data;h&&(l.push({label:[{id:0,value:this.$L("\u6536\u5230\u7684\u62A5\u544A"),disabled:!0}],list:h.data.map(f=>({id:f.id,value:f.title}))}),c--),c===0&&(this.reportList[i]=l),t(l)},300);break;default:t([]);break}},getMoreUser(e,i){return new Promise(t=>{const{owner_id:s,type:n}=this.dialogData,a=n==="group"&&[0,this.userId].includes(s);this.taskId>0||a?(this.moreTimer&&clearTimeout(this.moreTimer),this.moreTimer=setTimeout(r=>{this.$store.dispatch("call",{url:"users/search",data:{keys:{key:e,bot:2},state:1,take:30}}).then(({data:o})=>{const l=o.filter(c=>!i.includes(c.userid));t(l.map(c=>({id:c.userid,value:c.nickname,avatar:c.userimg,online:!!c.online,bot:!!c.bot,key:`${c.nickname} ${c.email} ${c.pinyin}`})))}).catch(o=>{t([])})},this.userCache===null?0:600)):t([])})},checkIOSVersion(){let i=(window&&window.navigator&&window.navigator.userAgent).match(/OS ((\d+_?){2,3})\s/i);const s=(i?i[1].replace(/_/g,"."):"unknown").split(".");return+s[0]==11&&+s[1]>=0&&+s[1]<3},handlePaste(e){const i=Array.prototype.slice.call(e.clipboardData.files);i.filter(s=>!$A.leftExists(s.type,"image/")).length>0&&(e.preventDefault(),this.$emit("on-file",i))},updateTools(){var i,t,s,n;this.showEmoji&&((i=this.$refs.emoji)==null||i.updatePopper()),this.showMore&&((t=this.$refs.more)==null||t.updatePopper()),this.showMenu&&((s=this.$refs.menu)==null||s.updatePopper());const e=(n=this.quill)==null?void 0:n.getModule("mention");e.isOpen&&e.setMentionContainerPosition()},tempHiddenSendTip(){const{sendTip:e}=this.$refs;e&&e.$refs.popper&&(e.$refs.popper.style.visibility="hidden",e.showPopper=!1,setTimeout(i=>{e.$refs.popper&&(e.$refs.popper.style.visibility="visible")},300))}}},Lt={};var hl=m(dl,cl,ul,!1,pl,null,null,null);function pl(e){for(let i in Lt)this[i]=Lt[i]}var fl=function(){return hl.exports}(),ml=function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("Modal",{attrs:{title:e.title,"class-name":"common-user-select-modal forwarder-message-modal","mask-closable":!1,width:"420"},scopedSlots:e._u([{key:"footer",fn:function(){return[t("Button",{attrs:{type:"primary",loading:e.loading},on:{click:e.onSubmit}},[e._v(" "+e._s(e.$L("\u786E\u5B9A"))+" "),e.forwardTo.length>0?[e._v("("+e._s(e.forwardTo.length)+")")]:e._e()],2)]},proxy:!0}]),model:{value:e.show,callback:function(s){e.show=s},expression:"show"}},[t("div",{staticClass:"user-modal-search"},[t("Scrollbar",{staticClass:"search-selected",attrs:{"enable-x":"","enable-y":!1}},[t("ul",e._l(e.forwardTo,function(s){return t("li",{attrs:{"data-id":s.userid}},[s.type=="group"?t("div",{staticClass:"user-modal-avatar",attrs:{title:s.name}},[s.avatar?t("EAvatar",{staticClass:"img-avatar",attrs:{src:s.avatar,size:32}}):s.group_type=="department"?t("i",{staticClass:"taskfont icon-avatar department"},[e._v("\uE75C")]):s.group_type=="project"?t("i",{staticClass:"taskfont icon-avatar project"},[e._v("\uE6F9")]):s.group_type=="task"?t("i",{staticClass:"taskfont icon-avatar task"},[e._v("\uE6F4")]):s.group_type=="okr"?t("i",{staticClass:"taskfont icon-avatar task"},[e._v("\uE6F4")]):t("Icon",{staticClass:"icon-avatar",attrs:{type:"ios-people"}}),e.forwardTo.length==1?t("div",{staticClass:"avatar-name"},[t("span",[e._v(e._s(s.name))])]):e._e()],1):t("UserAvatar",{attrs:{userid:s.userid,size:32,"show-name":e.forwardTo.length==1}})],1)}),0)])],1),t("div",{staticClass:"twice-affirm-body-extend"},[t("div",{staticClass:"forwarder-wrapper-body"},[e.msgDetail?t("div",{staticClass:"dialog-wrapper inde-list"},[t("Scrollbar",{attrs:{"class-name":"dialog-scroller"}},[t("DialogItem",{attrs:{source:e.msgDetail,simpleView:""},on:{"on-view-text":e.onViewText,"on-view-file":e.onViewFile,"on-down-file":e.onDownFile,"on-emoji":e.onEmoji,"on-other":e.onOther}})],1)],1):e._e(),t("div",{staticClass:"leave-message"},[e.dialogId>0?t("ChatInput",{attrs:{"dialog-id":e.dialogId,"emoji-bottom":e.windowPortrait,maxlength:2e5,placeholder:e.placeholder||e.$L("\u7559\u8A00"),disabled:e.loading,"disabled-record":"","simple-mode":""},model:{value:e.message,callback:function(s){e.message=s},expression:"message"}}):t("Input",{attrs:{type:"textarea",autosize:{minRows:1,maxRows:3},maxlength:2e5,placeholder:e.placeholder||e.$L("\u7559\u8A00"),disabled:e.loading,clearable:""},model:{value:e.message,callback:function(s){e.message=s},expression:"message"}})],1),t("ul",{staticClass:"radio-group"},[e.aiUser.length>0?t("li",{class:{selected:e.ainew}},[t("Icon",{staticClass:"radio-icon",attrs:{type:e.ainew?"ios-checkmark-circle":"ios-radio-button-off"},on:{click:e.onAinew}}),t("span",{staticClass:"radio-label",on:{click:e.onAinew}},[e._v(e._s(e.$L("AI\u5F00\u542F\u65B0\u4F1A\u8BDD")))])],1):e._e(),e.senderHidden?e._e():t("li",{class:{selected:!e.sender}},[t("Icon",{staticClass:"radio-icon",attrs:{type:e.sender?"ios-radio-button-off":"ios-checkmark-circle"},on:{click:e.onSender}}),t("span",{staticClass:"radio-label",on:{click:e.onSender}},[e._v(e._s(e.$L("\u4E0D\u663E\u793A\u539F\u53D1\u9001\u8005\u4FE1\u606F")))])],1)])])])])},gl=[];const _l={components:{ChatInput:fl,DialogItem:Xo},props:{value:{type:Boolean,default:!1},title:{type:String,default:""},placeholder:{type:String,default:null},senderHidden:{type:Boolean,default:!1},beforeSubmit:Function,dialogId:{type:Number,default:0},forwardTo:{type:Array,default:()=>[]},msgDetail:{type:Object,default:null}},data(){return{show:!1,loading:!1,message:"",ainew:$A.getStorageBoolean("forwarder.ainew",!0),sender:$A.getStorageBoolean("forwarder.sender",!0)}},computed:{...x(["cacheUserBasic"]),aiUser({forwardTo:e,cacheUserBasic:i}){return e.filter(s=>s.type!=="group").filter(s=>{const n=i.find(a=>a.userid===s.userid);return n&&n.bot&&/^ai-(.*?)@bot\.system/.test(n.email)})}},watch:{value(e){this.show=e},ainew(e){$A.setStorage("forwarder.ainew",e)},sender(e){$A.setStorage("forwarder.sender",e)},show(e){this.$emit("input",e),e||(this.loading=!1,this.message="")}},methods:{onViewText(...e){this.$emit("on-view-text",...e)},onViewFile(...e){this.$emit("on-view-file",...e)},onDownFile(...e){this.$emit("on-down-file",...e)},onEmoji(...e){this.$emit("on-emoji",...e)},onOther(...e){this.$emit("on-other",...e)},onAinew(){this.loading||(this.ainew=!this.ainew)},onSender(){this.loading||(this.sender=!this.sender)},async onSubmit(){if(this.loading)return;if(!this.beforeSubmit){this.hide();return}const e={message:this.message};this.senderHidden||(e.sender=this.sender),this.loading=!0;try{await this.onAiNew()}catch{this.loading=!1;return}const i=this.beforeSubmit(e);i&&i.then?i.then(()=>{this.hide()}).catch(t=>{}).finally(()=>{this.loading=!1}):(this.loading=!1,this.hide())},onAiNew(){return new Promise((e,i)=>{if(this.aiUser.length===0||!this.ainew)return e();(async()=>{try{for(const s of this.aiUser)await this.$store.dispatch("call",{url:"dialog/session/create",data:{userid:s.userid}}),await this.$store.dispatch("clearDialogMsgs",{id:this.dialogId});e()}catch(s){$A.modalError({language:!1,content:this.$L("AI\u5F00\u542F\u65B0\u4F1A\u8BDD\u5931\u8D25")+`: ${s.msg||s}`}),i(s)}})()})},hide(){this.show=!1}}},It={};var vl=m(_l,ml,gl,!1,$l,null,null,null);function $l(e){for(let i in It)this[i]=It[i]}var yl=function(){return vl.exports}(),wl=function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("div",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}]},[t("UserSelect",{ref:"forwardSelect",attrs:{title:e.title,"show-bot":e.showBot,"multiple-max":e.userMaxSelect,"before-submit":e.onSelectBefore,"show-select-all":!1,"show-dialog":"",module:""}}),t("ForwardConfirm",{ref:"forwardConfirm",attrs:{title:e.confirmTitle,placeholder:e.confirmPlaceholder,"sender-hidden":e.senderHidden,"before-submit":e.onConfirmBefore,"dialog-id":e.forwardDialogId,"forward-to":e.forwardTo,"msg-detail":e.msgDetail},model:{value:e.confirmShow,callback:function(s){e.confirmShow=s},expression:"confirmShow"}})],1)},kl=[];const bl={name:"Forwarder",components:{UserSelect:Se,ForwardConfirm:yl},props:{title:{type:String,default:"Forward"},confirmTitle:{type:String,default:"Forward Confirm"},confirmPlaceholder:{type:String,default:null},senderHidden:{type:Boolean,default:!1},showBot:{type:Boolean,default:!0},userMaxSelect:{type:Number,default:50},beforeSubmit:Function,msgDetail:{type:Object,default:null}},data(){return{confirmShow:!1,forwardDialogId:0,forwardTo:[]}},methods:{onSelection(){this.$refs.forwardSelect.onSelection()},onSelectBefore(){return new Promise((e,i)=>{if(this.forwardTo=this.$refs.forwardSelect.formatSelect(this.$refs.forwardSelect.selects),this.forwardTo.length===0)$A.messageError("\u8BF7\u9009\u62E9\u5BF9\u8BDD\u6216\u6210\u5458");else{if(this.forwardDialogId=0,this.forwardTo.length===1){const{type:t,userid:s}=this.forwardTo[0];t==="group"&&/^d:/.test(s)&&(this.forwardDialogId=parseInt(s.replace(/^d:/,"")))}this.confirmShow=!0}i()})},onConfirmBefore(e){return new Promise((i,t)=>{const s=this.$refs.forwardSelect.selects;if(s.length===0){$A.messageError("\u8BF7\u9009\u62E9\u5BF9\u8BDD\u6216\u6210\u5458"),t();return}e.dialogids=s.filter(r=>$A.leftExists(r,"d:")).map(r=>r.replace("d:","")),e.userids=s.filter(r=>!$A.leftExists(r,"d:")),this.msgDetail&&(e.msg_id=this.msgDetail.id);const n=()=>{this.$refs.forwardSelect.hide(),i()};if(!this.beforeSubmit){n();return}const a=this.beforeSubmit(e);a&&a.then?a.then(n).catch(t):n()})}}},xt={};var Al=m(bl,wl,kl,!1,Cl,null,null,null);function Cl(e){for(let i in xt)this[i]=xt[i]}var Sl=function(){return Al.exports}(),Tl=function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("div",[t("EDropdown",{ref:"dropdown",staticClass:"general-operation-dropdown",style:e.styles,attrs:{trigger:"click",disabled:e.disabled,size:e.size,placement:e.placement},on:{command:e.dropTask,"visible-change":e.visibleChange}},[t("div",{ref:"icon",staticClass:"general-operation-icon"}),t("EDropdownMenu",{ref:"dropdownMenu",staticClass:"general-operation-more-dropdown",attrs:{slot:"dropdown"},slot:"dropdown"},[t("li",{staticClass:"general-operation-more-warp",class:e.size},[t("ul",[e.flow?e.turns.length>0?e._l(e.turns,function(s){return t("EDropdownItem",{key:s.id,style:e.$A.generateColorVarStyle(s.color,[10],"flow-item-custom-color"),attrs:{command:`turn::${s.id}`}},[t("div",{staticClass:"item flow"},[s.id==e.task.flow_item_id&&e.flow.auto_assign!==!0?t("Icon",{staticClass:"check",attrs:{type:"md-checkmark-circle-outline"}}):t("Icon",{attrs:{type:"md-radio-button-off"}}),t("div",{staticClass:"flow-name",class:s.status},[e._v(e._s(s.name))])],1)])}):[e.task.complete_at?t("EDropdownItem",{attrs:{command:"uncomplete"}},[t("div",{staticClass:"item red"},[t("Icon",{attrs:{type:"md-checkmark-circle-outline"}}),e._v(e._s(e.$L("\u6807\u8BB0\u672A\u5B8C\u6210"))+" ")],1)]):t("EDropdownItem",{attrs:{command:"complete"}},[t("div",{staticClass:"item"},[t("Icon",{attrs:{type:"md-radio-button-off"}}),e._v(e._s(e.$L("\u5B8C\u6210"))+" ")],1)])]:t("EDropdownItem",{staticClass:"load-flow",attrs:{disabled:""}},[t("div",{staticClass:"load-flow-warp"},[t("Loading")],1)]),e.task.parent_id===0?[e.operationShow?[t("EDropdownItem",{attrs:{command:"send",divided:e.turns.length>0}},[t("div",{staticClass:"item"},[t("i",{staticClass:"taskfont movefont"},[e._v("\uE629")]),e._v(e._s(e.$L("\u53D1\u9001"))+" ")])]),t("EDropdownItem",{attrs:{command:"archived"}},[t("div",{staticClass:"item"},[t("Icon",{attrs:{type:"ios-filing"}}),e._v(e._s(e.$L(e.task.archived_at?"\u8FD8\u539F\u5F52\u6863":"\u5F52\u6863"))+" ")],1)]),t("EDropdownItem",{attrs:{command:"move"}},[t("div",{staticClass:"item"},[t("i",{staticClass:"taskfont movefont"},[e._v("\uE7FC")]),e._v(e._s(e.$L("\u79FB\u52A8"))+" ")])]),t("EDropdownItem",{attrs:{command:"remove"}},[t("div",{staticClass:"item hover-del"},[t("Icon",{attrs:{type:"md-trash"}}),e._v(e._s(e.$L("\u5220\u9664"))+" ")],1)])]:e._e(),e.colorShow?e._l(e.taskColorList,function(s,n){return t("EDropdownItem",{key:"c_"+n,attrs:{divided:n==0,command:s}},[t("div",{staticClass:"item"},[t("i",{staticClass:"taskfont",style:{color:s.primary||"#ddd"},domProps:{innerHTML:e._s(s.color==(e.task.color||"")?"":"")}}),e._v(e._s(e.$L(s.name))+" ")])])}):e._e()]:e.operationShow?t("EDropdownItem",{attrs:{command:"remove",divided:e.turns.length>0}},[t("div",{staticClass:"item"},[t("Icon",{attrs:{type:"md-trash"}}),e._v(e._s(e.$L("\u5220\u9664"))+" ")],1)]):e._e()],2)])])],1),t("Modal",{attrs:{title:e.$L("\u79FB\u52A8\u4EFB\u52A1"),"mask-closable":!1,styles:{width:"90%",maxWidth:"540px"},"footer-hide":""},model:{value:e.moveTaskShow,callback:function(s){e.moveTaskShow=s},expression:"moveTaskShow"}},[t("TaskMove",{ref:"addTask",attrs:{task:e.task},model:{value:e.moveTaskShow,callback:function(s){e.moveTaskShow=s},expression:"moveTaskShow"}})],1),t("Forwarder",{ref:"forwarder",attrs:{title:e.$L("\u53D1\u9001\u4EFB\u52A1"),"confirm-title":e.$L("\u786E\u8BA4\u53D1\u9001"),"confirm-placeholder":e.$L("\u9644\u8A00"),"multiple-max":50,"before-submit":e.onSendTask,"sender-hidden":""}})],1)},Dl=[];const Ll={name:"TaskOperation",components:{Forwarder:Sl,TaskMove:Qi},data(){return{task:{},loadStatus:!1,colorShow:!0,operationShow:!0,updateBefore:!1,disabled:!1,size:"small",placement:"bottom",projectId:0,onUpdate:null,element:null,target:null,styles:{},moveTaskShow:!1}},beforeDestroy(){this.target&&this.target.removeEventListener("scroll",this.handlerEventListeners)},computed:{...x(["loads","taskOperation","taskColorList","taskFlows","taskFlowItems"]),...ge(["isLoad"]),loadIng(){return this.loadStatus?!0:this.isLoad(`task-${this.task.id}`)},flow(){const e=this.taskFlows.find(({task_id:i})=>i==this.task.id);return e||this.taskFlows.find(({flow_item_id:i})=>i==this.task.flow_item_id)},turns(){if(!this.flow)return[];let e=this.taskFlowItems.find(({id:i})=>i==this.flow.flow_item_id);return e?this.taskFlowItems.filter(({id:i})=>e.turns.includes(i)):[]}},watch:{taskOperation(e){if(e.event&&e.task){if(this.$refs.dropdown.visible&&this.element===e.event.target){this.hide();return}const i=e.event.target.getBoundingClientRect();this.styles={left:`${i.left}px`,top:`${i.top}px`,width:`${i.width}px`,height:`${i.height}px`},this.task=e.task,this.loadStatus=typeof e.loadStatus=="undefined"?!1:e.loadStatus,this.colorShow=typeof e.colorShow=="undefined"?!0:e.colorShow,this.operationShow=typeof e.operationShow=="undefined"?!0:e.operationShow,this.updateBefore=typeof e.updateBefore=="undefined"?!1:e.updateBefore,this.disabled=typeof e.disabled=="undefined"?!1:e.disabled,this.size=typeof e.size=="undefined"?"small":e.size,this.placement=typeof e.placement=="undefined"?"bottom":e.placement,this.projectId=typeof e.projectId=="undefined"?0:e.projectId,this.onUpdate=typeof e.onUpdate=="function"?e.onUpdate:null,this.$refs.icon.focus(),this.updatePopper(),this.show(),this.$store.dispatch("getTaskFlow",{task_id:this.task.id,project_id:this.projectId}).finally(this.updatePopper),this.setupEventListeners(e.event)}else this.hide()}},methods:{show(){this.$refs.dropdown.show()},hide(){this.$refs.dropdown.hide()},dropTask(e){const i=this.task,t=s=>{s?this.$store.dispatch("saveTaskCompleteTemp",i.id):this.$store.dispatch("forgetTaskCompleteTemp",i.id)};if($A.isJson(e)){e.name&&this.updateTask({color:e.color}).catch(()=>{});return}if($A.leftExists(e,"turn::")){let s=$A.leftDelete(e,"turn::");if(s==this.task.flow_item_id)return;let n=this.taskFlowItems.find(({id:l})=>l==this.flow.flow_item_id)||{},a=this.taskFlowItems.find(({id:l})=>l==s)||{},r=n.status!=="end"&&a.status==="end",o=n.status==="end"&&a.status!=="end";this.updateBefore&&(r?t(!0):o&&t(!1)),this.updateTask({flow_item_id:s,flow_item_status:a.status,flow_item_name:a.name}).then(()=>{r?t(!0):o&&t(!1)}).catch(()=>{r?t(!1):o&&t(!0)});return}switch(e){case"complete":if(this.task.complete_at)return;this.updateBefore&&t(!0),this.updateTask({complete_at:$A.daytz().format("YYYY-MM-DD HH:mm:ss")}).then(()=>{t(!0)}).catch(()=>{t(!1)});break;case"uncomplete":if(!this.task.complete_at)return;this.updateBefore&&t(!1),this.updateTask({complete_at:!1}).then(()=>{t(!1)}).catch(()=>{t(!0)});break;case"send":this.$refs.forwarder.onSelection();break;case"archived":case"remove":this.archivedOrRemoveTask(e);break;case"move":this.moveTaskShow=!0;break}},updateTask(e){return new Promise((i,t)=>{if(this.loadIng){t();return}const s=Object.assign(e,{task_id:this.task.id});if(!this.operationShow){typeof this.onUpdate=="function"&&this.onUpdate(s),t();return}Object.keys(e).forEach(n=>this.$set(this.task,n,e[n])),this.$store.dispatch("taskUpdate",s).then(({data:n,msg:a})=>{$A.messageSuccess(a),i(),this.$store.dispatch("saveTaskBrowse",s.task_id),typeof this.onUpdate=="function"&&this.onUpdate(n)}).catch(({msg:n})=>{$A.modalError(n),this.$store.dispatch("getTaskOne",s.task_id).catch(()=>{}),t()})})},archivedOrRemoveTask(e){let i="removeTask",t="\u5220\u9664",s={task_id:this.task.id},n=this.task.parent_id>0?"\u5B50\u4EFB\u52A1":"\u4EFB\u52A1";e=="archived"&&(i="archivedTask",t="\u5F52\u6863",this.task.archived_at&&(t="\u8FD8\u539F\u5F52\u6863",s={task_id:this.task.id,type:"recovery"})),$A.modalConfirm({title:t+n,content:"\u4F60\u786E\u5B9A\u8981"+t+n+"\u3010"+this.task.name+"\u3011\u5417\uFF1F",loading:!0,onOk:()=>{if(!this.loadIng)return new Promise((a,r)=>{this.$store.dispatch(i,s).then(({msg:o})=>{a(o),this.$store.dispatch("saveTaskBrowse",s.task_id)}).catch(({msg:o})=>{r(o)})})}})},visibleChange(e){this.visible=e},updatePopper(){this.$nextTick(this.$refs.dropdownMenu.updatePopper)},setupEventListeners(e){this.element=e.target;let i=this.getScrollParent(this.element);if((i===window.document.body||i===window.document.documentElement)&&(i=window),this.target){if(this.target===i)return;this.target.removeEventListener("scroll",this.handlerEventListeners)}this.target=i,this.target.addEventListener("scroll",this.handlerEventListeners)},handlerEventListeners(e){if(!this.visible||!this.element)return;const i=e.target.getBoundingClientRect(),t=this.element.getBoundingClientRect();if(t.top<i.top||t.top>i.top+i.height){this.hide();return}this.styles={left:`${t.left}px`,top:`${t.top}px`,width:`${t.width}px`,height:`${t.height}px`},this.updatePopper()},getScrollParent(e){const i=e.parentNode;return i?i===window.document?window.document.body.scrollTop||window.document.body.scrollLeft?window.document.body:window.document.documentElement:["scroll","auto"].indexOf(this.getStyleComputedProperty(i,"overflow"))!==-1||["scroll","auto"].indexOf(this.getStyleComputedProperty(i,"overflow-x"))!==-1||["scroll","auto"].indexOf(this.getStyleComputedProperty(i,"overflow-y"))!==-1?i:this.getScrollParent(e.parentNode):e},getStyleComputedProperty(e,i){return window.getComputedStyle(e,null)[i]},onSendTask({dialogids:e,userids:i,message:t}){return new Promise((s,n)=>{this.$store.dispatch("call",{url:"dialog/msg/sendtaskid",data:{dialogids:e,userids:i,leave_message:t,task_id:this.task.id}}).then(({data:a,msg:r})=>{this.$store.dispatch("saveDialogMsg",a.msgs),this.$store.dispatch("updateDialogLastMsg",a.msgs),$A.messageSuccess(r),s()}).catch(({msg:a})=>{$A.modalError(a),n()})})}}},Et={};var Il=m(Ll,Tl,Dl,!1,xl,null,null,null);function xl(e){for(let i in Et)this[i]=Et[i]}var El=function(){return Il.exports}(),Ml=function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("div",{staticClass:"meeting-player"},[t("div",{staticClass:"player",attrs:{id:e.id}},[t("div",{staticClass:"player-bg",style:e.playerStyle})]),t("ETooltip",{attrs:{disabled:e.$isEEUIApp||e.windowTouch||!e.username}},[t("div",{attrs:{slot:"content"},slot:"content"},[e._v(" "+e._s(e.username)+" ")]),t("div",{staticClass:"meeting-avatar"},[e.userid?t("UserAvatar",{attrs:{userid:e.userid,size:36,borderWidth:2}}):e.tourist.userimg?t("div",{staticClass:"common-avatar avatar-wrapper"},[t("div",{staticClass:"avatar-box online"},[t("em"),t("EAvatar",{attrs:{size:36,src:e.tourist.userimg}})],1)]):e._e()],1)]),t("div",{staticClass:"player-state"},[e.audio?e._e():t("i",{staticClass:"taskfont"},[e._v("\uE7C7")]),e.video?e._e():t("i",{staticClass:"taskfont"},[e._v("\uE7C8")])])],1)},jl=[];const Pl={name:"MeetingPlayer",props:{id:{type:String,default:()=>"meeting-player-"+Math.round(Math.random()*1e4)},player:{type:Object,default:()=>({})},isLocal:{type:Boolean,default:!1}},data(){return{timer:null,tourist:{uid:"",nickname:"",userimg:""}}},mounted(){this.timer=setInterval(e=>{this.audio&&!this.player.audioTrack.isPlaying&&this.play("audio"),this.video&&!this.player.videoTrack.isPlaying&&this.play("video")},3e3)},beforeDestroy(){clearInterval(this.timer)},computed:{...x(["cacheUserBasic"]),userid(){return this.player.uid?(this.player.uid+"").indexOf("88888")!==-1?(this.getTouristInfo(),0):parseInt((this.player.uid+"").substring(6))||0:0},username(){if(this.userid){const e=this.cacheUserBasic.find(({userid:i})=>i==this.userid);return e?e.nickname:""}return this.tourist.nickname||""},playerStyle(){const e=this.cacheUserBasic.find(({userid:i})=>i==this.userid);return e&&e.userimg?{backgroundImage:`url("${e.userimg}")`}:this.tourist.userimg?{backgroundImage:`url("${this.tourist.userimg}")`}:null},audio(){return!!this.player.audioTrack},video(){return!!this.player.videoTrack}},watch:{audio:{handler(e){e&&this.play("audio")},immediate:!0},video:{handler(e){e&&this.play("video")},immediate:!0}},methods:{play(e){this.$nextTick(i=>{try{e==="audio"?!this.isLocal&&this.player.audioTrack.play():e==="video"&&this.player.videoTrack.play(this.id)}catch(t){console.log("Meeting Player Error",t)}})},getTouristInfo(){this.$store.dispatch("call",{url:"users/meeting/tourist",data:{tourist_id:this.player.uid}}).then(({data:e})=>{this.tourist=e}).catch(({msg:e})=>{$A.modalError(e)})}}},Mt={};var Rl=m(Pl,Ml,jl,!1,Ul,null,null,null);function Ul(e){for(let i in Mt)this[i]=Mt[i]}var Ol=function(){return Rl.exports}(),Bl=function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("div",{ref:"floatDrag",style:e.dragStyle,on:{mousedown:function(s){return s.stopPropagation(),s.preventDefault(),e.mouseDown.apply(null,arguments)}}},[e._t("default")],2)},Fl=[];const zl={name:"DragBallComponent",props:{id:{type:String,default:""},distanceRight:{type:Number,default:0},distanceBottom:{type:Number,default:100},isScrollHidden:{type:Boolean,default:!1},isCanDraggable:{type:Boolean,default:!0},zIndex:{type:Number,default:50}},data(){return{clientWidth:null,clientHeight:null,top:0,left:0,timer:null,currentTop:0,isMoving:!1,record:{}}},created(){this.clientWidth=document.documentElement.clientWidth,this.clientHeight=document.documentElement.clientHeight},mounted(){this.id&&($A.isJson(window._DragBallComponent)||(window._DragBallComponent={})),this.isCanDraggable&&this.$nextTick(()=>{this.id&&$A.isJson(window._DragBallComponent[this.id])?(this.left=window._DragBallComponent[this.id].left,this.top=window._DragBallComponent[this.id].top):(this.left=this.clientWidth-this.floatDrag.offsetWidth-this.distanceRight,this.top=this.clientHeight-this.floatDrag.offsetHeight-this.distanceBottom),this.initDraggable()}),this.isScrollHidden&&window.addEventListener("scroll",this.handleScroll),window.addEventListener("resize",this.handleResize)},beforeDestroy(){this.id&&(window._DragBallComponent[this.id]={left:this.left,top:this.top}),window.removeEventListener("scroll",this.handleScroll),window.removeEventListener("resize",this.handleResize)},computed:{dragStyle(){return{left:this.left+"px",top:this.top+"px",zIndex:this.zIndex,position:"fixed"}},floatDrag(){return this.$refs.floatDrag}},methods:{handleScroll(){this.timer&&clearTimeout(this.timer),this.timer=setTimeout(()=>{this.handleScrollEnd()},200),this.currentTop=document.documentElement.scrollTop||document.body.scrollTop,this.left>this.clientWidth/2?this.left=this.clientWidth+this.floatDrag.offsetWidth:this.left=-this.floatDrag.offsetWidth},handleScrollEnd(){(document.documentElement.scrollTop||document.body.scrollTop)===this.currentTop&&(this.left>this.clientWidth/2?this.left=this.clientWidth-this.floatDrag.offsetWidth:this.left=0,clearTimeout(this.timer))},handleResize(){this.clientWidth=document.documentElement.clientWidth,this.clientHeight=document.documentElement.clientHeight,this.$nextTick(this.checkDraggablePosition)},initDraggable(){this.floatDrag.addEventListener("touchstart",this.toucheStart),this.floatDrag.addEventListener("touchmove",this.touchMove),this.floatDrag.addEventListener("touchend",this.touchEnd)},mouseDown(e){this.record={time:$A.dayjs().valueOf(),top:this.floatDrag.offsetTop,left:this.floatDrag.offsetLeft,x:e.clientX-this.floatDrag.offsetLeft,y:e.clientY-this.floatDrag.offsetTop},this.floatDrag.style.transition="none",this.canClick=!1,document.onmousemove=i=>{let t=i.clientX-this.record.x,s=i.clientY-this.record.y;t<0?t=0:t>window.innerWidth-this.floatDrag.offsetWidth&&(t=window.innerWidth-this.floatDrag.offsetWidth),s<0?s=0:s>window.innerHeight-this.floatDrag.offsetHeight&&(s=window.innerHeight-this.floatDrag.offsetHeight),this.left=t,this.top=s},document.onmouseup=()=>{document.onmousemove=null,document.onmouseup=null,this.checkDraggablePosition(),this.floatDrag.style.transition="all 0.3s",(Math.abs(this.record.top-this.floatDrag.offsetTop)<5&&Math.abs(this.record.left-this.floatDrag.offsetLeft)<5||$A.dayjs().valueOf()-this.record.time<200)&&this.$emit("on-click")}},toucheStart(){this.canClick=!1,this.floatDrag.style.transition="none"},touchMove(e){if(this.canClick=!0,e.targetTouches.length===1){let i=event.targetTouches[0],t=i.clientX-this.floatDrag.offsetWidth/2,s=i.clientY-this.floatDrag.offsetHeight/2;t<0?t=0:t>window.innerWidth-this.floatDrag.offsetWidth&&(t=window.innerWidth-this.floatDrag.offsetWidth),s<0?s=0:s>window.innerHeight-this.floatDrag.offsetHeight&&(s=window.innerHeight-this.floatDrag.offsetHeight),this.left=t,this.top=s}},touchEnd(){!this.canClick||(this.floatDrag.style.transition="all 0.3s",this.checkDraggablePosition())},checkDraggablePosition(){this.left+this.floatDrag.offsetWidth/2>=this.clientWidth/2?this.left=this.clientWidth-this.floatDrag.offsetWidth:this.left=0,this.top<0&&(this.top=0),this.top+this.floatDrag.offsetHeight>=this.clientHeight&&(this.top=this.clientHeight-this.floatDrag.offsetHeight)}}},jt={};var Nl=m(zl,Bl,Fl,!1,Hl,null,null,null);function Hl(e){for(let i in jt)this[i]=jt[i]}var Wl=function(){return Nl.exports}();const Vl={UNEXPECTED_ERROR:{zh:"\u65E0\u6CD5\u5904\u7406\u7684\u3001\u975E\u9884\u671F\u7684\u9519\u8BEF\uFF0C\u901A\u5E38\u8FD9\u4E2A\u9519\u8BEF\u4F1A\u6709\u5177\u4F53\u7684\u9519\u8BEF\u63D0\u793A\u3002","zh-CHT":"\u7121\u6CD5\u8655\u7406\u7684\u3001\u975E\u9810\u671F\u7684\u932F\u8AA4\uFF0C\u901A\u5E38\u9019\u500B\u932F\u8AA4\u6703\u6709\u5177\u9AD4\u7684\u932F\u8AA4\u63D0\u793A\u3002",en:"An unhandled, unexpected error. This error usually comes with a specific error message.",ko:"\uCC98\uB9AC\uB418\uC9C0 \uC54A\uC740 \uC608\uAE30\uCE58 \uC54A\uC740 \uC624\uB958\uC785\uB2C8\uB2E4. \uC77C\uBC18\uC801\uC73C\uB85C \uC774 \uC624\uB958\uC5D0\uB294 \uAD6C\uCCB4\uC801\uC778 \uC624\uB958 \uBA54\uC2DC\uC9C0\uAC00 \uD3EC\uD568\uB429\uB2C8\uB2E4.",ja:"\u51E6\u7406\u3067\u304D\u306A\u3044\u4E88\u671F\u3057\u306A\u3044\u30A8\u30E9\u30FC\u3067\u3059\u3002\u901A\u5E38\u3001\u3053\u306E\u30A8\u30E9\u30FC\u306B\u306F\u5177\u4F53\u7684\u306A\u30A8\u30E9\u30FC\u30E1\u30C3\u30BB\u30FC\u30B8\u304C\u542B\u307E\u308C\u3066\u3044\u307E\u3059\u3002",de:"Ein unbehandelter, unerwarteter Fehler. Dieser Fehler enth\xE4lt normalerweise eine spezifische Fehlermeldung.",fr:"Une erreur inattendue et non g\xE9r\xE9e. Cette erreur est g\xE9n\xE9ralement accompagn\xE9e d'un message d'erreur sp\xE9cifique.",id:"Kesalahan tak terduga dan tidak tertangani. Kesalahan ini biasanya disertai dengan pesan kesalahan spesifik.",ru:"\u041D\u0435\u043E\u0431\u0440\u0430\u0431\u043E\u0442\u0430\u043D\u043D\u0430\u044F, \u043D\u0435\u043E\u0436\u0438\u0434\u0430\u043D\u043D\u0430\u044F \u043E\u0448\u0438\u0431\u043A\u0430. \u041E\u0431\u044B\u0447\u043D\u043E \u044D\u0442\u0430 \u043E\u0448\u0438\u0431\u043A\u0430 \u0441\u043E\u043F\u0440\u043E\u0432\u043E\u0436\u0434\u0430\u0435\u0442\u0441\u044F \u043A\u043E\u043D\u043A\u0440\u0435\u0442\u043D\u044B\u043C \u0441\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u0435\u043C \u043E\u0431 \u043E\u0448\u0438\u0431\u043A\u0435."},UNEXPECTED_RESPONSE:{zh:"\u670D\u52A1\u7AEF\u8FD4\u56DE\u4E86\u975E\u9884\u671F\u7684\u54CD\u5E94\u3002\u8FD9\u4E2A\u9519\u8BEF\u901A\u5E38\u662F\u5728\u7F51\u7EDC\u95EE\u9898\u5BFC\u81F4\u5BA2\u6237\u7AEF\u4E0E\u670D\u52A1\u7AEF\u72B6\u6001\u4E0D\u4E00\u81F4\u65F6\u629B\u51FA\u3002","zh-CHT":"\u670D\u52D9\u7AEF\u8FD4\u56DE\u4E86\u975E\u9810\u671F\u7684\u97FF\u61C9\u3002\u9019\u500B\u932F\u8AA4\u901A\u5E38\u662F\u5728\u7DB2\u7D61\u554F\u984C\u5C0E\u81F4\u5BA2\u6236\u7AEF\u8207\u670D\u52D9\u7AEF\u72C0\u614B\u4E0D\u4E00\u81F4\u6642\u62CB\u51FA\u3002",en:"The server returned an unexpected response. This error usually occurs when network issues cause inconsistency between client and server states.",ko:"\uC11C\uBC84\uAC00 \uC608\uAE30\uCE58 \uC54A\uC740 \uC751\uB2F5\uC744 \uBC18\uD658\uD588\uC2B5\uB2C8\uB2E4. \uC774 \uC624\uB958\uB294 \uC77C\uBC18\uC801\uC73C\uB85C \uB124\uD2B8\uC6CC\uD06C \uBB38\uC81C\uB85C \uC778\uD574 \uD074\uB77C\uC774\uC5B8\uD2B8\uC640 \uC11C\uBC84 \uC0C1\uD0DC\uAC00 \uBD88\uC77C\uCE58\uD560 \uB54C \uBC1C\uC0DD\uD569\uB2C8\uB2E4.",ja:"\u30B5\u30FC\u30D0\u30FC\u304B\u3089\u4E88\u671F\u3057\u306A\u3044\u5FDC\u7B54\u304C\u8FD4\u3055\u308C\u307E\u3057\u305F\u3002\u3053\u306E\u30A8\u30E9\u30FC\u306F\u901A\u5E38\u3001\u30CD\u30C3\u30C8\u30EF\u30FC\u30AF\u306E\u554F\u984C\u306B\u3088\u3063\u3066\u30AF\u30E9\u30A4\u30A2\u30F3\u30C8\u3068\u30B5\u30FC\u30D0\u30FC\u306E\u72B6\u614B\u304C\u4E00\u81F4\u3057\u306A\u3044\u5834\u5408\u306B\u767A\u751F\u3057\u307E\u3059\u3002",de:"Der Server hat eine unerwartete Antwort zur\xFCckgegeben. Dieser Fehler tritt normalerweise auf, wenn Netzwerkprobleme zu Inkonsistenzen zwischen Client- und Serverzust\xE4nden f\xFChren.",fr:"Le serveur a renvoy\xE9 une r\xE9ponse inattendue. Cette erreur survient g\xE9n\xE9ralement lorsque des probl\xE8mes de r\xE9seau causent une incoh\xE9rence entre les \xE9tats du client et du serveur.",id:"Server mengembalikan respons yang tidak terduga. Kesalahan ini biasanya terjadi ketika masalah jaringan menyebabkan ketidaksesuaian antara status klien dan server.",ru:"\u0421\u0435\u0440\u0432\u0435\u0440 \u0432\u0435\u0440\u043D\u0443\u043B \u043D\u0435\u043E\u0436\u0438\u0434\u0430\u043D\u043D\u044B\u0439 \u043E\u0442\u0432\u0435\u0442. \u042D\u0442\u0430 \u043E\u0448\u0438\u0431\u043A\u0430 \u043E\u0431\u044B\u0447\u043D\u043E \u0432\u043E\u0437\u043D\u0438\u043A\u0430\u0435\u0442, \u043A\u043E\u0433\u0434\u0430 \u043F\u0440\u043E\u0431\u043B\u0435\u043C\u044B \u0441 \u0441\u0435\u0442\u044C\u044E \u0432\u044B\u0437\u044B\u0432\u0430\u044E\u0442 \u043D\u0435\u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0435 \u043C\u0435\u0436\u0434\u0443 \u0441\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u044F\u043C\u0438 \u043A\u043B\u0438\u0435\u043D\u0442\u0430 \u0438 \u0441\u0435\u0440\u0432\u0435\u0440\u0430."},INVALID_PARAMS:{zh:"\u975E\u6CD5\u53C2\u6570\u3002","zh-CHT":"\u975E\u6CD5\u53C3\u6578\u3002",en:"Invalid parameters.",ko:"\uC798\uBABB\uB41C \uB9E4\uAC1C\uBCC0\uC218\uC785\uB2C8\uB2E4.",ja:"\u7121\u52B9\u306A\u30D1\u30E9\u30E1\u30FC\u30BF\u3067\u3059\u3002",de:"Ung\xFCltige Parameter.",fr:"Param\xE8tres invalides.",id:"Parameter tidak valid.",ru:"\u041D\u0435\u0434\u043E\u043F\u0443\u0441\u0442\u0438\u043C\u044B\u0435 \u043F\u0430\u0440\u0430\u043C\u0435\u0442\u0440\u044B."},NOT_SUPPORTED:{zh:"\u6D4F\u89C8\u5668\u4E0D\u652F\u6301\u3002","zh-CHT":"\u700F\u89BD\u5668\u4E0D\u652F\u6301\u3002",en:"Browser not supported.",ko:"\uBE0C\uB77C\uC6B0\uC800\uAC00 \uC9C0\uC6D0\uB418\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.",ja:"\u30D6\u30E9\u30A6\u30B6\u306F\u30B5\u30DD\u30FC\u30C8\u3055\u308C\u3066\u3044\u307E\u305B\u3093\u3002",de:"Der Browser wird nicht unterst\xFCtzt.",fr:"Le navigateur n'est pas pris en charge.",id:"Browser tidak didukung.",ru:"\u0411\u0440\u0430\u0443\u0437\u0435\u0440 \u043D\u0435 \u043F\u043E\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442\u0441\u044F."},INVALID_OPERATION:{zh:"\u975E\u6CD5\u64CD\u4F5C\uFF0C\u901A\u5E38\u662F\u56E0\u4E3A\u5728\u5F53\u524D\u72B6\u6001\u4E0D\u80FD\u8FDB\u884C\u8BE5\u64CD\u4F5C\u3002","zh-CHT":"\u975E\u6CD5\u64CD\u4F5C\uFF0C\u901A\u5E38\u662F\u56E0\u70BA\u5728\u7576\u524D\u72C0\u614B\u4E0D\u80FD\u9032\u884C\u8A72\u64CD\u4F5C\u3002",en:"Invalid operation, usually because the operation cannot be performed in the current state.",ko:"\uC798\uBABB\uB41C \uC791\uC5C5\uC785\uB2C8\uB2E4. \uC77C\uBC18\uC801\uC73C\uB85C \uD604\uC7AC \uC0C1\uD0DC\uC5D0\uC11C \uD574\uB2F9 \uC791\uC5C5\uC744 \uC218\uD589\uD560 \uC218 \uC5C6\uAE30 \uB54C\uBB38\uC785\uB2C8\uB2E4.",ja:"\u7121\u52B9\u306A\u64CD\u4F5C\u3067\u3059\u3002\u901A\u5E38\u306F\u3001\u73FE\u5728\u306E\u72B6\u614B\u3067\u64CD\u4F5C\u3092\u5B9F\u884C\u3067\u304D\u306A\u3044\u305F\u3081\u3067\u3059\u3002",de:"Ung\xFCltiger Vorgang, normalerweise weil der Vorgang im aktuellen Zustand nicht durchgef\xFChrt werden kann.",fr:"Op\xE9ration invalide, g\xE9n\xE9ralement parce que l'op\xE9ration ne peut pas \xEAtre effectu\xE9e dans l'\xE9tat actuel.",id:"Operasi tidak valid. Biasanya karena operasi tidak dapat dilakukan dalam status saat ini.",ru:"\u041D\u0435\u0434\u043E\u043F\u0443\u0441\u0442\u0438\u043C\u0430\u044F \u043E\u043F\u0435\u0440\u0430\u0446\u0438\u044F, \u043E\u0431\u044B\u0447\u043D\u043E \u043F\u043E\u0442\u043E\u043C\u0443, \u0447\u0442\u043E \u043E\u043F\u0435\u0440\u0430\u0446\u0438\u044F \u043D\u0435 \u043C\u043E\u0436\u0435\u0442 \u0431\u044B\u0442\u044C \u0432\u044B\u043F\u043E\u043B\u043D\u0435\u043D\u0430 \u0432 \u0442\u0435\u043A\u0443\u0449\u0435\u043C \u0441\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0438."},OPERATION_ABORTED:{zh:"\u64CD\u4F5C\u4E2D\u6B62\uFF0C\u901A\u5E38\u662F\u56E0\u4E3A\u7F51\u7EDC\u8D28\u91CF\u5DEE\u6216\u8FDE\u63A5\u65AD\u5F00\u5BFC\u81F4\u4E0E\u8BED\u97F3\u670D\u52A1\u5668\u901A\u4FE1\u5931\u8D25\u3002","zh-CHT":"\u64CD\u4F5C\u4E2D\u6B62\uFF0C\u901A\u5E38\u662F\u56E0\u70BA\u7DB2\u7D61\u8CEA\u91CF\u5DEE\u6216\u9023\u63A5\u65B7\u958B\u5C0E\u81F4\u8207\u8A9E\u97F3\u670D\u52D9\u5668\u901A\u4FE1\u5931\u6557\u3002",en:"Operation aborted, usually due to communication failure with the voice server caused by poor network quality or disconnection.",ko:"\uC791\uC5C5\uC774 \uC911\uB2E8\uB418\uC5C8\uC2B5\uB2C8\uB2E4. \uC77C\uBC18\uC801\uC73C\uB85C \uB124\uD2B8\uC6CC\uD06C \uD488\uC9C8\uC774 \uB098\uC058\uAC70\uB098 \uC5F0\uACB0\uC774 \uB04A\uC5B4\uC838 \uC74C\uC131 \uC11C\uBC84\uC640 \uD1B5\uC2E0\uC5D0 \uC2E4\uD328\uD588\uAE30 \uB54C\uBB38\uC785\uB2C8\uB2E4.",ja:"\u64CD\u4F5C\u304C\u4E2D\u6B62\u3055\u308C\u307E\u3057\u305F\u3002\u901A\u5E38\u306F\u3001\u30CD\u30C3\u30C8\u30EF\u30FC\u30AF\u54C1\u8CEA\u304C\u60AA\u3044\u304B\u3001\u63A5\u7D9A\u304C\u5207\u65AD\u3055\u308C\u305F\u305F\u3081\u3001\u97F3\u58F0\u30B5\u30FC\u30D0\u30FC\u3068\u306E\u901A\u4FE1\u306B\u5931\u6557\u3057\u305F\u305F\u3081\u3067\u3059\u3002",de:"Vorgang abgebrochen, normalerweise aufgrund von Kommunikationsfehlern mit dem Sprachserver aufgrund von schlechter Netzwerkqualit\xE4t oder Verbindungsunterbrechung.",fr:"Op\xE9ration annul\xE9e, g\xE9n\xE9ralement en raison d'une d\xE9faillance de communication avec le serveur vocal due \xE0 une mauvaise qualit\xE9 du r\xE9seau ou \xE0 une d\xE9connexion.",id:"Operasi dibatalkan. Biasanya karena komunikasi dengan server suara gagal karena kualitas jaringan yang buruk atau koneksi yang terputus.",ru:"\u041E\u043F\u0435\u0440\u0430\u0446\u0438\u044F \u043E\u0442\u043C\u0435\u043D\u0435\u043D\u0430, \u043E\u0431\u044B\u0447\u043D\u043E \u0438\u0437-\u0437\u0430 \u0441\u0431\u043E\u044F \u0441\u0432\u044F\u0437\u0438 \u0441 \u0441\u0435\u0440\u0432\u0435\u0440\u043E\u043C \u0433\u043E\u043B\u043E\u0441\u0430 \u0438\u0437-\u0437\u0430 \u043F\u043B\u043E\u0445\u043E\u0433\u043E \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u0430 \u0441\u0435\u0442\u0438 \u0438\u043B\u0438 \u0440\u0430\u0437\u0440\u044B\u0432\u0430 \u0441\u043E\u0435\u0434\u0438\u043D\u0435\u043D\u0438\u044F."},WEB_SECURITY_RESTRICT:{zh:"\u6D4F\u89C8\u5668\u5B89\u5168\u7B56\u7565\u9650\u5236\u3002","zh-CHT":"\u700F\u89BD\u5668\u5B89\u5168\u7B56\u7565\u9650\u5236\u3002",en:"Browser security policy restriction.",ko:"\uBE0C\uB77C\uC6B0\uC800 \uBCF4\uC548 \uC815\uCC45 \uC81C\uD55C\uC785\uB2C8\uB2E4.",ja:"\u30D6\u30E9\u30A6\u30B6\u306E\u30BB\u30AD\u30E5\u30EA\u30C6\u30A3\u30DD\u30EA\u30B7\u30FC\u5236\u9650\u3067\u3059\u3002",de:"Einschr\xE4nkung der Browser-Sicherheitsrichtlinie.",fr:"Restriction de la politique de s\xE9curit\xE9 du navigateur.",id:"Pembatasan kebijakan keamanan browser.",ru:"\u041E\u0433\u0440\u0430\u043D\u0438\u0447\u0435\u043D\u0438\u0435 \u043F\u043E\u043B\u0438\u0442\u0438\u043A\u0438 \u0431\u0435\u0437\u043E\u043F\u0430\u0441\u043D\u043E\u0441\u0442\u0438 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0430."},NO_ACTIVE_STATUS:{zh:"\u8BED\u97F3\u9879\u76EE\u672A\u6FC0\u6D3B\u6216\u88AB\u7981\u7528\u3002","zh-CHT":"\u8A9E\u97F3\u9805\u76EE\u672A\u6FC0\u6D3B\u6216\u88AB\u7981\u7528\u3002",en:"Voice project is not activated or has been disabled.",ko:"\uC74C\uC131 \uD504\uB85C\uC81D\uD2B8\uAC00 \uD65C\uC131\uD654\uB418\uC9C0 \uC54A\uC558\uAC70\uB098 \uBE44\uD65C\uC131\uD654\uB418\uC5C8\uC2B5\uB2C8\uB2E4.",ja:"\u97F3\u58F0\u30D7\u30ED\u30B8\u30A7\u30AF\u30C8\u304C\u30A2\u30AF\u30C6\u30A3\u30D6\u5316\u3055\u308C\u3066\u3044\u306A\u3044\u304B\u3001\u7121\u52B9\u306B\u306A\u3063\u3066\u3044\u307E\u3059\u3002",de:"Sprachprojekt ist nicht aktiviert oder wurde deaktiviert.",fr:"Le projet vocal n'est pas activ\xE9 ou a \xE9t\xE9 d\xE9sactiv\xE9.",id:"Proyek suara tidak diaktifkan atau dinonaktifkan.",ru:"\u041F\u0440\u043E\u0435\u043A\u0442 \u0433\u043E\u043B\u043E\u0441\u0430 \u043D\u0435 \u0430\u043A\u0442\u0438\u0432\u0438\u0440\u043E\u0432\u0430\u043D \u0438\u043B\u0438 \u043E\u0442\u043A\u043B\u044E\u0447\u0435\u043D."},NETWORK_TIMEOUT:{zh:"\u8BF7\u6C42\u8D85\u65F6\uFF0C\u901A\u5E38\u662F\u56E0\u4E3A\u7F51\u7EDC\u8D28\u91CF\u5DEE\u6216\u8FDE\u63A5\u65AD\u5F00\u5BFC\u81F4\u4E0E\u8BED\u97F3\u670D\u52A1\u5668\u901A\u4FE1\u5931\u8D25\u3002","zh-CHT":"\u8ACB\u6C42\u8D85\u6642\uFF0C\u901A\u5E38\u662F\u56E0\u70BA\u7DB2\u7D61\u8CEA\u91CF\u5DEE\u6216\u9023\u63A5\u65B7\u958B\u5C0E\u81F4\u8207\u8A9E\u97F3\u670D\u52D9\u5668\u901A\u4FE1\u5931\u6557\u3002",en:"Request timeout, usually due to communication failure with the voice server caused by poor network quality or disconnection.",ko:"\uC694\uCCAD\uC774 \uC2DC\uAC04 \uCD08\uACFC\uB418\uC5C8\uC2B5\uB2C8\uB2E4. \uC77C\uBC18\uC801\uC73C\uB85C \uB124\uD2B8\uC6CC\uD06C \uD488\uC9C8\uC774 \uB098\uC058\uAC70\uB098 \uC5F0\uACB0\uC774 \uB04A\uC5B4\uC838 \uC74C\uC131 \uC11C\uBC84\uC640 \uD1B5\uC2E0\uC5D0 \uC2E4\uD328\uD588\uAE30 \uB54C\uBB38\uC785\uB2C8\uB2E4.",ja:"\u30EA\u30AF\u30A8\u30B9\u30C8\u304C\u30BF\u30A4\u30E0\u30A2\u30A6\u30C8\u3057\u307E\u3057\u305F\u3002\u901A\u5E38\u306F\u3001\u30CD\u30C3\u30C8\u30EF\u30FC\u30AF\u54C1\u8CEA\u304C\u60AA\u3044\u304B\u3001\u63A5\u7D9A\u304C\u5207\u65AD\u3055\u308C\u305F\u305F\u3081\u3001\u97F3\u58F0\u30B5\u30FC\u30D0\u30FC\u3068\u306E\u901A\u4FE1\u306B\u5931\u6557\u3057\u305F\u305F\u3081\u3067\u3059\u3002",de:"Anforderungstimeout, normalerweise aufgrund von Kommunikationsfehlern mit dem Sprachserver aufgrund von schlechter Netzwerkqualit\xE4t oder Verbindungsunterbrechung.",fr:"D\xE9lai d'attente de la requ\xEAte d\xE9pass\xE9, g\xE9n\xE9ralement en raison d'une d\xE9faillance de communication avec le serveur vocal due \xE0 une mauvaise qualit\xE9 du r\xE9seau ou \xE0 une d\xE9connexion.",id:"Waktu permintaan habis. Biasanya karena komunikasi dengan server suara gagal karena kualitas jaringan yang buruk atau koneksi yang terputus.",ru:"\u0412\u0440\u0435\u043C\u044F \u0437\u0430\u043F\u0440\u043E\u0441\u0430 \u0438\u0441\u0442\u0435\u043A\u043B\u043E. \u041E\u0431\u044B\u0447\u043D\u043E \u0438\u0437-\u0437\u0430 \u0441\u0431\u043E\u044F \u0441\u0432\u044F\u0437\u0438 \u0441 \u0441\u0435\u0440\u0432\u0435\u0440\u043E\u043C \u0433\u043E\u043B\u043E\u0441\u0430 \u0438\u0437-\u0437\u0430 \u043F\u043B\u043E\u0445\u043E\u0433\u043E \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u0430 \u0441\u0435\u0442\u0438 \u0438\u043B\u0438 \u0440\u0430\u0437\u0440\u044B\u0432\u0430 \u0441\u043E\u0435\u0434\u0438\u043D\u0435\u043D\u0438\u044F."},NETWORK_RESPONSE_ERROR:{zh:"\u54CD\u5E94\u9519\u8BEF\uFF0C\u4E00\u822C\u662F\u72B6\u6001\u7801\u975E\u6CD5\u3002","zh-CHT":"\u97FF\u61C9\u932F\u8AA4\uFF0C\u4E00\u822C\u662F\u72C0\u614B\u78BC\u975E\u6CD5\u3002",en:"Response error, usually due to invalid status code.",ko:"\uC751\uB2F5 \uC624\uB958\uC785\uB2C8\uB2E4. \uC77C\uBC18\uC801\uC73C\uB85C \uC0C1\uD0DC \uCF54\uB4DC\uAC00 \uC798\uBABB\uB418\uAE30 \uB54C\uBB38\uC785\uB2C8\uB2E4.",ja:"\u30EC\u30B9\u30DD\u30F3\u30B9\u30A8\u30E9\u30FC\u3067\u3059\u3002\u901A\u5E38\u306F\u3001\u30B9\u30C6\u30FC\u30BF\u30B9\u30B3\u30FC\u30C9\u304C\u7121\u52B9\u3067\u3042\u308B\u305F\u3081\u3067\u3059\u3002",de:"Antwortfehler, normalerweise aufgrund eines ung\xFCltigen Statuscodes.",fr:"Erreur de r\xE9ponse, g\xE9n\xE9ralement en raison d'un code de statut invalide.",id:"Kesalahan respons. Biasanya karena kode status tidak valid.",ru:"\u041E\u0448\u0438\u0431\u043A\u0430 \u043E\u0442\u0432\u0435\u0442\u0430, \u043E\u0431\u044B\u0447\u043D\u043E \u0438\u0437-\u0437\u0430 \u043D\u0435\u0434\u043E\u043F\u0443\u0441\u0442\u0438\u043C\u043E\u0433\u043E \u043A\u043E\u0434\u0430 \u0441\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u044F."},NETWORK_ERROR:{zh:"\u65E0\u6CD5\u5B9A\u4F4D\u7684\u7F51\u7EDC\u9519\u8BEF\u3002","zh-CHT":"\u7121\u6CD5\u5B9A\u4F4D\u7684\u7DB2\u7D61\u932F\u8AA4\u3002",en:"Unlocatable network error.",ko:"\uC704\uCE58\uD560 \uC218 \uC5C6\uB294 \uB124\uD2B8\uC6CC\uD06C \uC624\uB958\uC785\uB2C8\uB2E4.",ja:"\u7279\u5B9A\u3067\u304D\u306A\u3044\u30CD\u30C3\u30C8\u30EF\u30FC\u30AF\u30A8\u30E9\u30FC\u3067\u3059\u3002",de:"Nicht lokalisierbarer Netzwerkfehler.",fr:"Erreur r\xE9seau non localisable.",id:"Kesalahan jaringan yang tidak dapat ditemukan.",ru:"\u041D\u0435\u043B\u043E\u043A\u0430\u043B\u0438\u0437\u0443\u0435\u043C\u0430\u044F \u043E\u0448\u0438\u0431\u043A\u0430 \u0441\u0435\u0442\u0438."},WS_ABORT:{zh:"\u8BF7\u6C42\u8BED\u97F3\u670D\u52A1\u5668\u8FC7\u7A0B\u4E2D WebSocket \u65AD\u5F00\u3002","zh-CHT":"\u8ACB\u6C42\u8A9E\u97F3\u670D\u52D9\u5668\u904E\u7A0B\u4E2D WebSocket \u65B7\u958B\u3002",en:"WebSocket disconnected during voice server request.",ko:"\uC74C\uC131 \uC11C\uBC84 \uC694\uCCAD \uC911 WebSocket \uC5F0\uACB0\uC774 \uB04A\uC5B4\uC84C\uC2B5\uB2C8\uB2E4.",ja:"\u97F3\u58F0\u30B5\u30FC\u30D0\u30FC\u306E\u30EA\u30AF\u30A8\u30B9\u30C8\u4E2D\u306BWebSocket\u304C\u5207\u65AD\u3055\u308C\u307E\u3057\u305F\u3002",de:"WebSocket wurde w\xE4hrend der Anfrage an den Sprachserver getrennt.",fr:"La connexion WebSocket a \xE9t\xE9 interrompue pendant la requ\xEAte au serveur vocal.",id:"Koneksi WebSocket terputus selama permintaan server suara.",ru:"\u0421\u043E\u0435\u0434\u0438\u043D\u0435\u043D\u0438\u0435 WebSocket \u0431\u044B\u043B\u043E \u043F\u0440\u0435\u0440\u0432\u0430\u043D\u043E \u0432\u043E \u0432\u0440\u0435\u043C\u044F \u0437\u0430\u043F\u0440\u043E\u0441\u0430 \u043A \u0441\u0435\u0440\u0432\u0435\u0440\u0443 \u0433\u043E\u043B\u043E\u0441\u0430."},WS_DISCONNECT:{zh:"\u8BF7\u6C42\u8BED\u97F3\u670D\u52A1\u5668\u524D\uFF0CWebSocket \u5C31\u5DF2\u7ECF\u65AD\u5F00\u3002","zh-CHT":"\u8ACB\u6C42\u8A9E\u97F3\u670D\u52D9\u5668\u524D\uFF0CWebSocket \u5C31\u5DF2\u7D93\u65B7\u958B\u3002",en:"WebSocket was already disconnected before requesting the voice server.",ko:"\uC74C\uC131 \uC11C\uBC84\uB97C \uC694\uCCAD\uD558\uAE30 \uC804\uC5D0 WebSocket \uC5F0\uACB0\uC774 \uC774\uBBF8 \uB04A\uC5B4\uC84C\uC2B5\uB2C8\uB2E4.",ja:"\u97F3\u58F0\u30B5\u30FC\u30D0\u30FC\u3092\u30EA\u30AF\u30A8\u30B9\u30C8\u3059\u308B\u524D\u306B\u3001WebSocket\u304C\u3059\u3067\u306B\u5207\u65AD\u3055\u308C\u3066\u3044\u307E\u3057\u305F\u3002",de:"WebSocket wurde bereits vor der Anfrage an den Sprachserver getrennt.",fr:"La connexion WebSocket \xE9tait d\xE9j\xE0 interrompue avant de demander le serveur vocal.",id:"Koneksi WebSocket sudah terputus sebelum meminta server suara.",ru:"\u0421\u043E\u0435\u0434\u0438\u043D\u0435\u043D\u0438\u0435 WebSocket \u0443\u0436\u0435 \u0431\u044B\u043B\u043E \u0440\u0430\u0437\u043E\u0440\u0432\u0430\u043D\u043E \u0434\u043E \u0437\u0430\u043F\u0440\u043E\u0441\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u0433\u043E\u043B\u043E\u0441\u0430."},WS_ERR:{zh:"WebSocket \u8FDE\u63A5\u53D1\u751F\u9519\u8BEF\u3002","zh-CHT":"WebSocket \u9023\u63A5\u767C\u751F\u932F\u8AA4\u3002",en:"WebSocket connection error occurred.",ko:"WebSocket \uC5F0\uACB0 \uC624\uB958\uAC00 \uBC1C\uC0DD\uD588\uC2B5\uB2C8\uB2E4.",ja:"WebSocket\u63A5\u7D9A\u30A8\u30E9\u30FC\u304C\u767A\u751F\u3057\u307E\u3057\u305F\u3002",de:"WebSocket-Verbindungsfehler ist aufgetreten.",fr:"Une erreur de connexion WebSocket s'est produite.",id:"Kesalahan koneksi WebSocket terjadi.",ru:"\u041F\u0440\u043E\u0438\u0437\u043E\u0448\u043B\u0430 \u043E\u0448\u0438\u0431\u043A\u0430 \u0441\u043E\u0435\u0434\u0438\u043D\u0435\u043D\u0438\u044F WebSocket."},ENUMERATE_DEVICES_FAILED:{zh:"\u679A\u4E3E\u672C\u5730\u8BBE\u5907\u5931\u8D25\uFF0C\u4E00\u822C\u662F\u7531\u4E8E\u6D4F\u89C8\u5668\u9650\u5236\u3002","zh-CHT":"\u679A\u8209\u672C\u5730\u8A2D\u5099\u5931\u6557\uFF0C\u4E00\u822C\u662F\u7531\u65BC\u700F\u89BD\u5668\u9650\u5236\u3002",en:"Failed to enumerate local devices, usually due to browser restrictions.",ko:"\uB85C\uCEEC \uC7A5\uCE58\uB97C \uC5F4\uAC70\uD558\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4. \uC77C\uBC18\uC801\uC73C\uB85C \uBE0C\uB77C\uC6B0\uC800 \uC81C\uD55C\uC73C\uB85C \uC778\uD574 \uBC1C\uC0DD\uD569\uB2C8\uB2E4.",ja:"\u30ED\u30FC\u30AB\u30EB\u30C7\u30D0\u30A4\u30B9\u306E\u5217\u6319\u306B\u5931\u6557\u3057\u307E\u3057\u305F\u3002\u901A\u5E38\u306F\u3001\u30D6\u30E9\u30A6\u30B6\u306E\u5236\u9650\u306B\u3088\u308B\u3082\u306E\u3067\u3059\u3002",de:"Auflistung lokaler Ger\xE4te fehlgeschlagen, normalerweise aufgrund von Browser-Einschr\xE4nkungen.",fr:"\xC9chec de l'\xE9num\xE9ration des p\xE9riph\xE9riques locaux, g\xE9n\xE9ralement en raison de restrictions de navigateur.",id:"Gagal menghitung perangkat lokal. Biasanya karena pembatasan browser.",ru:"\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u043F\u0435\u0440\u0435\u0447\u0438\u0441\u043B\u0438\u0442\u044C \u043B\u043E\u043A\u0430\u043B\u044C\u043D\u044B\u0435 \u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u0430, \u043E\u0431\u044B\u0447\u043D\u043E \u0438\u0437-\u0437\u0430 \u043E\u0433\u0440\u0430\u043D\u0438\u0447\u0435\u043D\u0438\u0439 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0430."},DEVICE_NOT_FOUND:{zh:"\u65E0\u6CD5\u627E\u5230\u6307\u5B9A\u8BBE\u5907\u3002","zh-CHT":"\u7121\u6CD5\u627E\u5230\u6307\u5B9A\u8A2D\u5099\u3002",en:"Specified device not found.",ko:"\uC9C0\uC815\uB41C \uC7A5\uCE58\uB97C \uCC3E\uC744 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.",ja:"\u6307\u5B9A\u3055\u308C\u305F\u30C7\u30D0\u30A4\u30B9\u304C\u898B\u3064\u304B\u308A\u307E\u305B\u3093\u3067\u3057\u305F\u3002",de:"Das angegebene Ger\xE4t wurde nicht gefunden.",fr:"Le p\xE9riph\xE9rique sp\xE9cifi\xE9 n'a pas \xE9t\xE9 trouv\xE9.",id:"Perangkat yang ditentukan tidak ditemukan.",ru:"\u0423\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u043E \u043D\u0435 \u043D\u0430\u0439\u0434\u0435\u043D\u043E."},TRACK_IS_DISABLED:{zh:"\u8F68\u9053\u88AB\u7981\u7528\uFF0C\u901A\u5E38\u56E0\u4E3A\u8F68\u9053\u8BBE\u7F6E\u4E86 Track.setEnabled(false)\u3002","zh-CHT":"\u8ECC\u9053\u88AB\u7981\u7528\uFF0C\u901A\u5E38\u662F\u56E0\u70BA\u8ECC\u9053\u8A2D\u5B9A\u4E86 Track.setEnabled(false)\u3002",en:"Track is disabled, usually because Track.setEnabled(false) was set.",ko:"\uD2B8\uB799\uC774 \uBE44\uD65C\uC131\uD654\uB418\uC5C8\uC2B5\uB2C8\uB2E4. \uC77C\uBC18\uC801\uC73C\uB85C \uD2B8\uB799\uC5D0 Track.setEnabled(false)\uAC00 \uC124\uC815\uB418\uC5C8\uAE30 \uB54C\uBB38\uC785\uB2C8\uB2E4.",ja:"\u30C8\u30E9\u30C3\u30AF\u304C\u7121\u52B9\u306B\u306A\u3063\u3066\u3044\u307E\u3059\u3002\u901A\u5E38\u306F\u3001\u30C8\u30E9\u30C3\u30AF\u306BTrack.setEnabled(false)\u304C\u8A2D\u5B9A\u3055\u308C\u3066\u3044\u308B\u305F\u3081\u3067\u3059\u3002",de:"Die Spur ist deaktiviert, normalerweise weil Track.setEnabled(false) gesetzt wurde.",fr:"La piste est d\xE9sactiv\xE9e, g\xE9n\xE9ralement parce que Track.setEnabled(false) a \xE9t\xE9 d\xE9fini.",id:"Trek dinonaktifkan. Biasanya karena trek memiliki Track.setEnabled(false).",ru:"\u0422\u0440\u0435\u043A \u043E\u0442\u043A\u043B\u044E\u0447\u0435\u043D, \u043E\u0431\u044B\u0447\u043D\u043E \u043F\u043E\u0442\u043E\u043C\u0443, \u0447\u0442\u043E Track.setEnabled(false) \u0431\u044B\u043B \u0443\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D."},SHARE_AUDIO_NOT_ALLOWED:{zh:"\u5C4F\u5E55\u5171\u4EAB\u97F3\u9891\u65F6\u7EC8\u7AEF\u7528\u6237\u6CA1\u6709\u70B9\u51FB\u5206\u4EAB\u97F3\u9891\u3002","zh-CHT":"\u87A2\u5E55\u5171\u4EAB\u97F3\u983B\u6642\u7D42\u7AEF\u7528\u6236\u6C92\u6709\u9EDE\u64CA\u5206\u4EAB\u97F3\u983B\u3002",en:"End user did not click to share audio during screen sharing.",ko:"\uD654\uBA74 \uACF5\uC720 \uC911\uC5D0 \uC0AC\uC6A9\uC790\uAC00 \uC624\uB514\uC624 \uACF5\uC720\uB97C \uD074\uB9AD\uD558\uC9C0 \uC54A\uC558\uC2B5\uB2C8\uB2E4.",ja:"\u30B9\u30AF\u30EA\u30FC\u30F3\u30B7\u30A7\u30A2\u30EA\u30F3\u30B0\u4E2D\u306B\u3001\u30A8\u30F3\u30C9\u30E6\u30FC\u30B6\u30FC\u304C\u30AA\u30FC\u30C7\u30A3\u30AA\u3092\u5171\u6709\u3059\u308B\u3053\u3068\u3092\u30AF\u30EA\u30C3\u30AF\u3057\u306A\u304B\u3063\u305F\u305F\u3081\u3067\u3059\u3002",de:"Der Endbenutzer hat w\xE4hrend der Bildschirmfreigabe nicht auf Audio-Freigabe geklickt.",fr:"L'utilisateur final n'a pas cliqu\xE9 sur le partage audio pendant le partage d'\xE9cran.",id:"Pengguna akhir tidak mengklik bagikan audio selama berbagi layar.",ru:"\u041A\u043E\u043D\u0435\u0447\u043D\u044B\u0439 \u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u044C \u043D\u0435 \u043D\u0430\u0436\u0430\u043B \u043D\u0430 \u043A\u043D\u043E\u043F\u043A\u0443 \xAB\u041F\u043E\u0434\u0435\u043B\u0438\u0442\u044C\u0441\u044F \u0430\u0443\u0434\u0438\u043E\xBB \u0432\u043E \u0432\u0440\u0435\u043C\u044F \u043E\u0431\u043C\u0435\u043D\u0430 \u044D\u043A\u0440\u0430\u043D\u043E\u043C."},CHROME_PLUGIN_NO_RESPONSE:{zh:"Chrome \u5C4F\u5E55\u5171\u4EAB\u63D2\u4EF6\u65E0\u54CD\u5E94\u3002","zh-CHT":"Chrome \u87A2\u5E55\u5171\u4EAB\u63D2\u4EF6\u7121\u97FF\u61C9\u3002",en:"Chrome screen sharing plugin not responding.",ko:"\uD06C\uB86C \uD654\uBA74 \uACF5\uC720 \uD50C\uB7EC\uADF8\uC778\uC774 \uC751\uB2F5\uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.",ja:"Chrome\u306E\u30B9\u30AF\u30EA\u30FC\u30F3\u30B7\u30A7\u30A2\u30EA\u30F3\u30B0\u30D7\u30E9\u30B0\u30A4\u30F3\u304C\u5FDC\u7B54\u3057\u3066\u3044\u307E\u305B\u3093\u3002",de:"Chrome-Bildschirmfreigabe-Plug-in reagiert nicht.",fr:"Le plug-in de partage d'\xE9cran Chrome ne r\xE9pond pas.",id:"Plugin berbagi layar Chrome tidak merespons.",ru:"\u041F\u043B\u0430\u0433\u0438\u043D \u0434\u043B\u044F \u043E\u0431\u043C\u0435\u043D\u0430 \u044D\u043A\u0440\u0430\u043D\u043E\u043C Chrome \u043D\u0435 \u043E\u0442\u0432\u0435\u0447\u0430\u0435\u0442."},CHROME_PLUGIN_NOT_INSTALL:{zh:"Chrome \u5C4F\u5E55\u5171\u4EAB\u63D2\u4EF6\u6CA1\u6709\u5B89\u88C5\u3002","zh-CHT":"Chrome \u87A2\u5E55\u5171\u4EAB\u63D2\u4EF6\u6C92\u6709\u5B89\u88DD\u3002",en:"Chrome screen sharing plugin not installed.",ko:"\uD06C\uB86C \uD654\uBA74 \uACF5\uC720 \uD50C\uB7EC\uADF8\uC778\uC774 \uC124\uCE58\uB418\uC9C0 \uC54A\uC558\uC2B5\uB2C8\uB2E4.",ja:"Chrome\u306E\u30B9\u30AF\u30EA\u30FC\u30F3\u30B7\u30A7\u30A2\u30EA\u30F3\u30B0\u30D7\u30E9\u30B0\u30A4\u30F3\u304C\u30A4\u30F3\u30B9\u30C8\u30FC\u30EB\u3055\u308C\u3066\u3044\u307E\u305B\u3093\u3002",de:"Chrome-Bildschirmfreigabe-Plug-in nicht installiert.",fr:"Le plug-in de partage d'\xE9cran Chrome n'est pas install\xE9.",id:"Plugin berbagi layar Chrome tidak terinstal.",ru:"\u041F\u043B\u0430\u0433\u0438\u043D \u0434\u043B\u044F \u043E\u0431\u043C\u0435\u043D\u0430 \u044D\u043A\u0440\u0430\u043D\u043E\u043C Chrome \u043D\u0435 \u0443\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D."},MEDIA_OPTION_INVALID:{zh:"\u4E0D\u652F\u6301\u7684\u5A92\u4F53\u91C7\u96C6\u7684\u53C2\u6570\u3002","zh-CHT":"\u4E0D\u652F\u6301\u7684\u5A92\u9AD4\u63A1\u96C6\u7684\u53C3\u6578\u3002",en:"Unsupported media capture parameters.",ko:"\uC9C0\uC6D0\uB418\uC9C0 \uC54A\uB294 \uBBF8\uB514\uC5B4 \uCEA1\uCC98 \uB9E4\uAC1C\uBCC0\uC218\uC785\uB2C8\uB2E4.",ja:"\u30B5\u30DD\u30FC\u30C8\u3055\u308C\u3066\u3044\u306A\u3044\u30E1\u30C7\u30A3\u30A2\u30AD\u30E3\u30D7\u30C1\u30E3\u30D1\u30E9\u30E1\u30FC\u30BF\u3067\u3059\u3002",de:"Nicht unterst\xFCtzte Medienaufnahmeparameter.",fr:"Param\xE8tres de capture de m\xE9dias non pris en charge.",id:"Parameter pengambilan media tidak didukung.",ru:"\u041D\u0435\u043F\u043E\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u043C\u044B\u0435 \u043F\u0430\u0440\u0430\u043C\u0435\u0442\u0440\u044B \u0437\u0430\u0445\u0432\u0430\u0442\u0430 \u043C\u0435\u0434\u0438\u0430."},CONSTRAINT_NOT_SATISFIED:{zh:"\u4E0D\u652F\u6301\u7684\u5A92\u4F53\u91C7\u96C6\u7684\u53C2\u6570\u3002","zh-CHT":"\u4E0D\u652F\u6301\u7684\u5A92\u9AD4\u63A1\u96C6\u7684\u53C3\u6578\u3002",en:"Unsupported media capture parameters.",ko:"\uC9C0\uC6D0\uB418\uC9C0 \uC54A\uB294 \uBBF8\uB514\uC5B4 \uCEA1\uCC98 \uB9E4\uAC1C\uBCC0\uC218\uC785\uB2C8\uB2E4.",ja:"\u30B5\u30DD\u30FC\u30C8\u3055\u308C\u3066\u3044\u306A\u3044\u30E1\u30C7\u30A3\u30A2\u30AD\u30E3\u30D7\u30C1\u30E3\u30D1\u30E9\u30E1\u30FC\u30BF\u3067\u3059\u3002",de:"Nicht unterst\xFCtzte Medienaufnahmeparameter.",fr:"Param\xE8tres de capture de m\xE9dias non pris en charge.",id:"Parameter pengambilan media tidak didukung.",ru:"\u041D\u0435\u043F\u043E\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u043C\u044B\u0435 \u043F\u0430\u0440\u0430\u043C\u0435\u0442\u0440\u044B \u0437\u0430\u0445\u0432\u0430\u0442\u0430 \u043C\u0435\u0434\u0438\u0430."},PERMISSION_DENIED:{zh:"\u83B7\u53D6\u5A92\u4F53\u8BBE\u5907\u6743\u9650\u88AB\u62D2\u7EDD\u3002","zh-CHT":"\u83B7\u53D6\u5A92\u9AD4\u8A2D\u5099\u6B0A\u9650\u88AB\u62D2\u7D55\u3002",en:"Permission to access media devices was denied.",ko:"\uBBF8\uB514\uC5B4 \uC7A5\uCE58\uC5D0 \uB300\uD55C \uAD8C\uD55C\uC774 \uAC70\uBD80\uB418\uC5C8\uC2B5\uB2C8\uB2E4.",ja:"\u30E1\u30C7\u30A3\u30A2\u30C7\u30D0\u30A4\u30B9\u3078\u306E\u30A2\u30AF\u30BB\u30B9\u6A29\u9650\u304C\u62D2\u5426\u3055\u308C\u307E\u3057\u305F\u3002",de:"Die Erlaubnis zum Zugriff auf Medien-Ger\xE4te wurde verweigert.",fr:"L'autorisation d'acc\xE9der aux p\xE9riph\xE9riques multim\xE9dias a \xE9t\xE9 refus\xE9e.",id:"Izin mengakses perangkat media ditolak.",ru:"\u0414\u043E\u0441\u0442\u0443\u043F \u043A \u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u0430\u043C \u043C\u0443\u043B\u044C\u0442\u0438\u043C\u0435\u0434\u0438\u0430 \u0431\u044B\u043B \u0437\u0430\u043F\u0440\u0435\u0449\u0435\u043D."},NOT_READABLE:{zh:"\u7528\u6237\u5DF2\u7ECF\u6388\u6743\uFF0C\u4F46\u5A92\u4F53\u8BBE\u5907\u65E0\u6CD5\u8BBF\u95EE\u3002","zh-CHT":"\u7528\u6236\u5DF2\u7D93\u6388\u6B0A\uFF0C\u4F46\u5A92\u9AD4\u8A2D\u5099\u7121\u6CD5\u5B58\u53D6\u3002",en:"User has authorized, but media device cannot be accessed.",ko:"\uC0AC\uC6A9\uC790\uAC00 \uC774\uBBF8 \uAD8C\uD55C\uC744 \uBD80\uC5EC\uD588\uC9C0\uB9CC \uBBF8\uB514\uC5B4 \uC7A5\uCE58\uC5D0 \uC561\uC138\uC2A4\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.",ja:"\u30E6\u30FC\u30B6\u30FC\u306F\u3059\u3067\u306B\u6A29\u9650\u3092\u4ED8\u4E0E\u3057\u3066\u3044\u307E\u3059\u304C\u3001\u30E1\u30C7\u30A3\u30A2\u30C7\u30D0\u30A4\u30B9\u306B\u30A2\u30AF\u30BB\u30B9\u3067\u304D\u307E\u305B\u3093\u3002",de:"Der Benutzer hat bereits die Erlaubnis erteilt, aber das Medien-Ger\xE4t kann nicht zug\xE4nglich gemacht werden.",fr:"L'utilisateur a d\xE9j\xE0 autoris\xE9 l'acc\xE8s, mais le p\xE9riph\xE9rique multim\xE9dia ne peut pas \xEAtre acc\xE9d\xE9.",id:"Pengguna telah memberikan izin, tetapi perangkat media tidak dapat diakses.",ru:"\u041F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u044C \u0443\u0436\u0435 \u043F\u0440\u0435\u0434\u043E\u0441\u0442\u0430\u0432\u0438\u043B \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043D\u0438\u0435, \u043D\u043E \u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u043E \u043C\u0443\u043B\u044C\u0442\u0438\u043C\u0435\u0434\u0438\u0430 \u043D\u0435 \u043C\u043E\u0436\u0435\u0442 \u0431\u044B\u0442\u044C \u0434\u043E\u0441\u0442\u0443\u043F\u043D\u043E."},FETCH_AUDIO_FILE_FAILED:{zh:"\u4E0B\u8F7D\u5728\u7EBF\u97F3\u9891\u6587\u4EF6\u5931\u8D25\u3002","zh-CHT":"\u4E0B\u8F09\u5728\u7DDA\u97F3\u983B\u6587\u4EF6\u5931\u6557\u3002",en:"Failed to download online audio file.",ko:"\uC628\uB77C\uC778 \uC624\uB514\uC624 \uD30C\uC77C \uB2E4\uC6B4\uB85C\uB4DC\uC5D0 \uC2E4\uD328\uD588\uC2B5\uB2C8\uB2E4.",ja:"\u30AA\u30F3\u30E9\u30A4\u30F3\u30AA\u30FC\u30C7\u30A3\u30AA\u30D5\u30A1\u30A4\u30EB\u306E\u30C0\u30A6\u30F3\u30ED\u30FC\u30C9\u306B\u5931\u6557\u3057\u307E\u3057\u305F\u3002",de:"Herunterladen der Online-Audio-Datei fehlgeschlagen.",fr:"\xC9chec du t\xE9l\xE9chargement du fichier audio en ligne.",id:"Gagal mengunduh file audio online.",ru:"\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u0441\u043A\u0430\u0447\u0430\u0442\u044C \u0444\u0430\u0439\u043B \u0430\u0443\u0434\u0438\u043E \u043E\u043D\u043B\u0430\u0439\u043D."},READ_LOCAL_AUDIO_FILE_ERROR:{zh:"\u8BFB\u53D6\u672C\u5730\u97F3\u9891\u6587\u4EF6\u5931\u8D25\u3002","zh-CHT":"\u8B80\u53D6\u672C\u5730\u97F3\u983B\u6587\u4EF6\u5931\u6557\u3002",en:"Failed to read local audio file.",ko:"\uB85C\uCEEC \uC624\uB514\uC624 \uD30C\uC77C \uC77D\uAE30\uC5D0 \uC2E4\uD328\uD588\uC2B5\uB2C8\uB2E4.",ja:"\u30ED\u30FC\u30AB\u30EB\u30AA\u30FC\u30C7\u30A3\u30AA\u30D5\u30A1\u30A4\u30EB\u306E\u8AAD\u307F\u53D6\u308A\u306B\u5931\u6557\u3057\u307E\u3057\u305F\u3002",de:"Lokale Audio-Datei konnte nicht gelesen werden.",fr:"\xC9chec de la lecture du fichier audio local.",id:"Gagal membaca file audio lokal.",ru:"\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u043F\u0440\u043E\u0447\u0438\u0442\u0430\u0442\u044C \u043B\u043E\u043A\u0430\u043B\u044C\u043D\u044B\u0439 \u0444\u0430\u0439\u043B \u0430\u0443\u0434\u0438\u043E."},DECODE_AUDIO_FILE_FAILED:{zh:"\u97F3\u9891\u6587\u4EF6\u89E3\u7801\u5931\u8D25\uFF0C\u53EF\u80FD\u662F\u56E0\u4E3A\u97F3\u9891\u6587\u4EF6\u7684\u7F16\u7801\u683C\u5F0F\u662F\u6D4F\u89C8\u5668 WebAudio \u4E0D\u652F\u6301\u7684\u7F16\u7801\u683C\u5F0F\u3002","zh-CHT":"\u97F3\u983B\u6587\u4EF6\u89E3\u78BC\u5931\u6557\uFF0C\u53EF\u80FD\u662F\u56E0\u70BA\u97F3\u983B\u6587\u4EF6\u7684\u7DE8\u78BC\u683C\u5F0F\u662F\u700F\u89BD\u5668 WebAudio \u4E0D\u652F\u6301\u7684\u7DE8\u78BC\u683C\u5F0F\u3002",en:"Failed to decode audio file, possibly because the audio file encoding format is not supported by browser WebAudio.",ko:"\uC624\uB514\uC624 \uD30C\uC77C \uB514\uCF54\uB529\uC5D0 \uC2E4\uD328\uD588\uC2B5\uB2C8\uB2E4. \uBE0C\uB77C\uC6B0\uC800 WebAudio\uC5D0\uC11C \uC9C0\uC6D0\uD558\uC9C0 \uC54A\uB294 \uC624\uB514\uC624 \uD30C\uC77C \uC778\uCF54\uB529 \uD615\uC2DD \uB54C\uBB38\uC77C \uC218 \uC788\uC2B5\uB2C8\uB2E4.",ja:"\u30AA\u30FC\u30C7\u30A3\u30AA\u30D5\u30A1\u30A4\u30EB\u306E\u30C7\u30B3\u30FC\u30C9\u306B\u5931\u6557\u3057\u307E\u3057\u305F\u3002\u30D6\u30E9\u30A6\u30B6\u306EWebAudio\u304C\u30B5\u30DD\u30FC\u30C8\u3057\u3066\u3044\u306A\u3044\u30AA\u30FC\u30C7\u30A3\u30AA\u30D5\u30A1\u30A4\u30EB\u306E\u30A8\u30F3\u30B3\u30FC\u30C9\u5F62\u5F0F\u3067\u3042\u308B\u53EF\u80FD\u6027\u304C\u3042\u308A\u307E\u3059\u3002",de:"Audio-Datei konnte nicht decodiert werden, m\xF6glicherweise weil das Audio-Datei-Codec-Format vom Browser-WebAudio nicht unterst\xFCtzt wird.",fr:"\xC9chec de la d\xE9codage du fichier audio, probablement parce que le format de codage du fichier audio n'est pas pris en charge par le navigateur WebAudio.",id:"Gagal mendekode file audio. Mungkin karena format enkode file audio tidak didukung oleh WebAudio browser.",ru:"\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u0434\u0435\u043A\u043E\u0434\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0444\u0430\u0439\u043B \u0430\u0443\u0434\u0438\u043E, \u0432\u043E\u0437\u043C\u043E\u0436\u043D\u043E, \u043F\u043E\u0442\u043E\u043C\u0443 \u0447\u0442\u043E \u0444\u043E\u0440\u043C\u0430\u0442 \u043A\u043E\u0434\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u044F \u0444\u0430\u0439\u043B\u0430 \u0430\u0443\u0434\u0438\u043E \u043D\u0435 \u043F\u043E\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442\u0441\u044F \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u043E\u043C WebAudio."},UID_CONFLICT:{zh:"\u540C\u4E00\u4E2A\u9891\u9053\u5185 UID \u91CD\u590D\u3002","zh-CHT":"\u540C\u4E00\u500B\u983B\u9053\u5167 UID \u91CD\u8907\u3002",en:"Duplicate UID within the same channel.",ko:"\uAC19\uC740 \uCC44\uB110 \uB0B4\uC5D0\uC11C UID\uAC00 \uC911\uBCF5\uB429\uB2C8\uB2E4.",ja:"\u540C\u3058\u30C1\u30E3\u30F3\u30CD\u30EB\u5185\u3067UID\u304C\u91CD\u8907\u3057\u3066\u3044\u307E\u3059\u3002",de:"Doppelte UID innerhalb des gleichen Kanals.",fr:"UID en double dans le m\xEAme canal.",id:"UID ganda dalam saluran yang sama.",ru:"\u0414\u0443\u0431\u043B\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u0435 UID \u0432 \u043E\u0434\u043D\u043E\u043C \u0438 \u0442\u043E\u043C \u0436\u0435 \u043A\u0430\u043D\u0430\u043B\u0435."},INVALID_UINT_UID_FROM_STRING_UID:{zh:"String UID \u5206\u914D\u670D\u52A1\u8FD4\u56DE\u4E86\u975E\u6CD5\u7684 int UID\u3002","zh-CHT":"String UID \u5206\u914D\u670D\u52D9\u8FD4\u56DE\u4E86\u975E\u6CD5\u7684 int UID\u3002",en:"String UID allocation service returned an invalid int UID.",ko:"\uBB38\uC790\uC5F4 UID \uD560\uB2F9 \uC11C\uBE44\uC2A4\uAC00 \uC798\uBABB\uB41C \uC815\uC218 UID\uB97C \uBC18\uD658\uD588\uC2B5\uB2C8\uB2E4.",ja:"String UID\u5272\u308A\u5F53\u3066\u30B5\u30FC\u30D3\u30B9\u304C\u7121\u52B9\u306Aint UID\u3092\u8FD4\u3057\u307E\u3057\u305F\u3002",de:"String-UID-Zuweisungsdienst hat eine ung\xFCltige int-UID zur\xFCckgegeben.",fr:"Le service d'allocation d'UID de cha\xEEne a retourn\xE9 un UID entier non valide.",id:"Layanan alokasi UID string mengembalikan UID int yang tidak valid.",ru:"\u0421\u043B\u0443\u0436\u0431\u0430 \u0440\u0430\u0441\u043F\u0440\u0435\u0434\u0435\u043B\u0435\u043D\u0438\u044F UID \u0441\u0442\u0440\u043E\u043A\u0438 \u0432\u0435\u0440\u043D\u0443\u043B\u0430 \u043D\u0435\u0434\u043E\u043F\u0443\u0441\u0442\u0438\u043C\u044B\u0439 \u0446\u0435\u043B\u043E\u0447\u0438\u0441\u043B\u0435\u043D\u043D\u044B\u0439 UID."},CAN_NOT_GET_PROXY_SERVER:{zh:"\u65E0\u6CD5\u83B7\u53D6\u4E91\u4EE3\u7406\u670D\u52A1\u5730\u5740\u3002","zh-CHT":"\u7121\u6CD5\u83B7\u53D6\u96F2\u4EE3\u7406\u670D\u52D9\u5730\u5740\u3002",en:"Unable to get cloud proxy server address.",ko:"\uD074\uB77C\uC6B0\uB4DC \uD504\uB85D\uC2DC \uC11C\uBC84 \uC8FC\uC18C\uB97C \uAC00\uC838\uC62C \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.",ja:"\u30AF\u30E9\u30A6\u30C9\u30D7\u30ED\u30AD\u30B7\u30B5\u30FC\u30D0\u30FC\u306E\u30A2\u30C9\u30EC\u30B9\u3092\u53D6\u5F97\u3067\u304D\u307E\u305B\u3093\u3002",de:"Cloud-Proxy-Server-Adresse kann nicht abgerufen werden.",fr:"Impossible d'obtenir l'adresse du serveur proxy cloud.",id:"Tidak dapat mendapatkan alamat server proxy cloud.",ru:"\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u043F\u043E\u043B\u0443\u0447\u0438\u0442\u044C \u0430\u0434\u0440\u0435\u0441 \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u043F\u0440\u043E\u043A\u0441\u0438 \u043E\u0431\u043B\u0430\u0447\u043D\u044B\u0445 \u0443\u0441\u043B\u0443\u0433."},CAN_NOT_GET_GATEWAY_SERVER:{zh:"\u65E0\u6CD5\u83B7\u53D6\u8BED\u97F3\u670D\u52A1\u5668\u5730\u5740\u3002","zh-CHT":"\u7121\u6CD5\u83B7\u53D6\u8A9E\u97F3\u670D\u52D9\u5668\u5730\u5740\u3002",en:"Unable to get voice server address.",ko:"\uC74C\uC131 \uC11C\uBC84 \uC8FC\uC18C\uB97C \uAC00\uC838\uC62C \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.",ja:"\u97F3\u58F0\u30B5\u30FC\u30D0\u30FC\u306E\u30A2\u30C9\u30EC\u30B9\u3092\u53D6\u5F97\u3067\u304D\u307E\u305B\u3093\u3002",de:"Sprachserver-Adresse kann nicht abgerufen werden.",fr:"Impossible d'obtenir l'adresse du serveur vocal.",id:"Tidak dapat mendapatkan alamat server suara.",ru:"\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u043F\u043E\u043B\u0443\u0447\u0438\u0442\u044C \u0430\u0434\u0440\u0435\u0441 \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u0433\u043E\u043B\u043E\u0441\u0430."},INVALID_LOCAL_TRACK:{zh:"\u4F20\u5165\u4E86\u975E\u6CD5\u7684 LocalTrack\u3002","zh-CHT":"\u50B3\u5165\u4E86\u975E\u6CD5\u7684 LocalTrack\u3002",en:"Invalid LocalTrack passed.",ko:"\uC798\uBABB\uB41C \uB85C\uCEEC \uD2B8\uB799\uC774 \uC804\uB2EC\uB418\uC5C8\uC2B5\uB2C8\uB2E4.",ja:"\u7121\u52B9\u306ALocalTrack\u304C\u6E21\u3055\u308C\u307E\u3057\u305F\u3002",de:"Ung\xFCltiger LocalTrack \xFCbergeben.",fr:"Piste locale invalide transmise.",id:"Trek lokal tidak valid dilewatkan.",ru:"\u041F\u0435\u0440\u0435\u0434\u0430\u043D \u043D\u0435\u0434\u043E\u043F\u0443\u0441\u0442\u0438\u043C\u044B\u0439 LocalTrack."},CAN_NOT_PUBLISH_MULTIPLE_VIDEO_TRACKS:{zh:"\u4E00\u4E2A Client \u53D1\u5E03\u591A\u4E2A\u89C6\u9891\u8F68\u9053\u3002","zh-CHT":"\u4E00\u500B Client \u767C\u5E03\u591A\u500B\u8996\u983B\u8ECC\u9053\u3002",en:"A Client publishing multiple video tracks.",ko:"\uD074\uB77C\uC774\uC5B8\uD2B8\uAC00 \uC5EC\uB7EC \uBE44\uB514\uC624 \uD2B8\uB799\uC744 \uBC1C\uD589\uD569\uB2C8\uB2E4.",ja:"\u30AF\u30E9\u30A4\u30A2\u30F3\u30C8\u304C\u8907\u6570\u306E\u30D3\u30C7\u30AA\u30C8\u30E9\u30C3\u30AF\u3092\u516C\u958B\u3057\u3066\u3044\u307E\u3059\u3002",de:"Ein Client ver\xF6ffentlicht mehrere Videospuren.",fr:"Un client publie plusieurs pistes vid\xE9o.",id:"Klien menerbitkan beberapa trek video.",ru:"\u041A\u043B\u0438\u0435\u043D\u0442 \u043F\u0443\u0431\u043B\u0438\u043A\u0443\u0435\u0442 \u043D\u0435\u0441\u043A\u043E\u043B\u044C\u043A\u043E \u0432\u0438\u0434\u0435\u043E\u0434\u043E\u0440\u043E\u0436\u0435\u043A."},INVALID_REMOTE_USER:{zh:"\u975E\u6CD5\u7684\u8FDC\u7AEF\u7528\u6237\uFF0C\u53EF\u80FD\u662F\u8FDC\u7AEF\u7528\u6237\u4E0D\u5728\u9891\u9053\u5185\u6216\u8FD8\u672A\u53D1\u5E03\u4EFB\u4F55\u5A92\u4F53\u8F68\u9053\u3002","zh-CHT":"\u975E\u6CD5\u7684\u9060\u7AEF\u7528\u6236\uFF0C\u53EF\u80FD\u662F\u9060\u7AEF\u7528\u6236\u4E0D\u5728\u983B\u9053\u5167\u6216\u9084\u672A\u767C\u5E03\u4EFB\u4F55\u5A92\u9AD4\u8ECC\u9053\u3002",en:"Invalid remote user, possibly because the remote user is not in the channel or has not published any media tracks.",ko:"\uC798\uBABB\uB41C \uC6D0\uACA9 \uC0AC\uC6A9\uC790\uC785\uB2C8\uB2E4. \uC6D0\uACA9 \uC0AC\uC6A9\uC790\uAC00 \uCC44\uB110\uC5D0 \uC788\uC9C0 \uC54A\uAC70\uB098 \uBBF8\uB514\uC5B4 \uD2B8\uB799\uC744 \uBC1C\uD589\uD558\uC9C0 \uC54A\uC558\uC744 \uC218 \uC788\uC2B5\uB2C8\uB2E4.",ja:"\u7121\u52B9\u306A\u30EA\u30E2\u30FC\u30C8\u30E6\u30FC\u30B6\u30FC\u3067\u3059\u3002\u30EA\u30E2\u30FC\u30C8\u30E6\u30FC\u30B6\u30FC\u304C\u30C1\u30E3\u30F3\u30CD\u30EB\u306B\u3044\u306A\u3044\u304B\u3001\u30E1\u30C7\u30A3\u30A2\u30C8\u30E9\u30C3\u30AF\u3092\u516C\u958B\u3057\u3066\u3044\u306A\u3044\u53EF\u80FD\u6027\u304C\u3042\u308A\u307E\u3059\u3002",de:"Ung\xFCltiger Remote-Benutzer, m\xF6glicherweise weil der Remote-Benutzer sich nicht im Kanal befindet oder noch keine Medien-Spuren ver\xF6ffentlicht hat.",fr:"Utilisateur distant invalide, probablement parce que l'utilisateur distant n'est pas dans le canal ou n'a pas publi\xE9 de pistes multim\xE9dias.",id:"Pengguna jarak jauh tidak valid. Mungkin karena pengguna jarak jauh tidak berada di saluran atau belum menerbitkan trek media apa pun.",ru:"\u041D\u0435\u0434\u043E\u043F\u0443\u0441\u0442\u0438\u043C\u044B\u0439 \u0443\u0434\u0430\u043B\u0435\u043D\u043D\u044B\u0439 \u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u044C, \u0432\u043E\u0437\u043C\u043E\u0436\u043D\u043E, \u043F\u043E\u0442\u043E\u043C\u0443 \u0447\u0442\u043E \u0443\u0434\u0430\u043B\u0435\u043D\u043D\u044B\u0439 \u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u044C \u043D\u0435 \u043D\u0430\u0445\u043E\u0434\u0438\u0442\u0441\u044F \u0432 \u043A\u0430\u043D\u0430\u043B\u0435 \u0438\u043B\u0438 \u0435\u0449\u0435 \u043D\u0435 \u043E\u043F\u0443\u0431\u043B\u0438\u043A\u043E\u0432\u0430\u043B \u043D\u0438 \u043E\u0434\u043D\u043E\u0439 \u0434\u043E\u0440\u043E\u0436\u043A\u0438 \u043C\u0443\u043B\u044C\u0442\u0438\u043C\u0435\u0434\u0438\u0430."},REMOTE_USER_IS_NOT_PUBLISHED:{zh:"\u8FDC\u7AEF\u7528\u6237\u5DF2\u53D1\u5E03\u4E86\u97F3\u9891\u6216\u89C6\u9891\u8F68\u9053\uFF0C\u4F46\u4E0D\u662F\u4E0E\u4F60\u7684\u8BA2\u9605\u64CD\u4F5C\u6240\u6307\u5B9A\u7684\u7C7B\u578B\u4E0D\u7B26\u3002","zh-CHT":"\u9060\u7AEF\u7528\u6236\u5DF2\u767C\u5E03\u4E86\u97F3\u983B\u6216\u8996\u983B\u8ECC\u9053\uFF0C\u4F46\u4E0D\u662F\u8207\u4F60\u7684\u8A02\u95B1\u64CD\u4F5C\u6240\u6307\u5B9A\u7684\u985E\u578B\u4E0D\u7B26\u3002",en:"Remote user has published audio or video tracks, but not of the type specified by your subscription operation.",ko:"\uC6D0\uACA9 \uC0AC\uC6A9\uC790\uAC00 \uC624\uB514\uC624 \uB610\uB294 \uBE44\uB514\uC624 \uD2B8\uB799\uC744 \uBC1C\uD589\uD588\uC9C0\uB9CC \uAD6C\uB3C5 \uC791\uC5C5\uC5D0\uC11C \uC9C0\uC815\uD55C \uC720\uD615\uACFC \uC77C\uCE58\uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.",ja:"\u30EA\u30E2\u30FC\u30C8\u30E6\u30FC\u30B6\u30FC\u306F\u30AA\u30FC\u30C7\u30A3\u30AA\u307E\u305F\u306F\u30D3\u30C7\u30AA\u30C8\u30E9\u30C3\u30AF\u3092\u516C\u958B\u3057\u3066\u3044\u307E\u3059\u304C\u3001\u30B5\u30D6\u30B9\u30AF\u30EA\u30D7\u30B7\u30E7\u30F3\u64CD\u4F5C\u3067\u6307\u5B9A\u3055\u308C\u305F\u30BF\u30A4\u30D7\u3068\u4E00\u81F4\u3057\u307E\u305B\u3093\u3002",de:"Der Remote-Benutzer hat Audio- oder Videospuren ver\xF6ffentlicht, aber nicht vom Typ, der durch Ihren Abonnementvorgang angegeben wurde.",fr:"L'utilisateur distant a publi\xE9 des pistes audio ou vid\xE9o, mais pas du type sp\xE9cifi\xE9 par votre op\xE9ration d'abonnement.",id:"Pengguna jarak jauh telah menerbitkan trek audio atau video, tetapi tidak sesuai dengan jenis yang ditentukan oleh operasi berlangganan Anda.",ru:"\u0423\u0434\u0430\u043B\u0435\u043D\u043D\u044B\u0439 \u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u044C \u043E\u043F\u0443\u0431\u043B\u0438\u043A\u043E\u0432\u0430\u043B \u0430\u0443\u0434\u0438\u043E- \u0438\u043B\u0438 \u0432\u0438\u0434\u0435\u043E\u0434\u043E\u0440\u043E\u0436\u043A\u0438, \u043D\u043E \u043D\u0435 \u0442\u043E\u0433\u043E \u0442\u0438\u043F\u0430, \u043A\u043E\u0442\u043E\u0440\u044B\u0439 \u0443\u043A\u0430\u0437\u0430\u043D \u0432 \u0432\u0430\u0448\u0435\u0439 \u043E\u043F\u0435\u0440\u0430\u0446\u0438\u0438 \u043F\u043E\u0434\u043F\u0438\u0441\u043A\u0438."},ERR_TOO_MANY_BROADCASTERS:{zh:"\u9891\u9053\u5185\u4E3B\u64AD\u4EBA\u6570\u8D85\u8FC7\u4E0A\u9650\u3002","zh-CHT":"\u983B\u9053\u5167\u4E3B\u64AD\u4EBA\u6578\u8D85\u904E\u4E0A\u9650\u3002",en:"Number of broadcasters in the channel exceeds the limit.",ko:"\uCC44\uB110 \uB0B4 \uBC29\uC1A1\uC790 \uC218\uB294 \uC81C\uD55C\uC744 \uCD08\uACFC\uD588\uC2B5\uB2C8\uB2E4.",ja:"\u30C1\u30E3\u30F3\u30CD\u30EB\u5185\u306E\u30D6\u30ED\u30FC\u30C9\u30AD\u30E3\u30B9\u30BF\u30FC\u306E\u6570\u304C\u4E0A\u9650\u3092\u8D85\u3048\u3066\u3044\u307E\u3059\u3002",de:"Die Anzahl der Broadcaster im Kanal \xFCberschreitet das Limit.",fr:"Le nombre de diffuseurs dans le canal d\xE9passe la limite.",id:"Jumlah penyiar di saluran melebihi batas.",ru:"\u041A\u043E\u043B\u0438\u0447\u0435\u0441\u0442\u0432\u043E \u0432\u0435\u0449\u0430\u0442\u0435\u043B\u0435\u0439 \u0432 \u043A\u0430\u043D\u0430\u043B\u0435 \u043F\u0440\u0435\u0432\u044B\u0448\u0430\u0435\u0442 \u043F\u0440\u0435\u0434\u0435\u043B."},ERR_TOO_MANY_SUBSCRIBERS:{zh:"\u5F53\u524D\u7528\u6237\u8BA2\u9605\u7684\u4E3B\u64AD\u4EBA\u6570\u8D85\u8FC7\u4E0A\u9650\u3002","zh-CHT":"\u7576\u524D\u7528\u6236\u8A02\u95B1\u7684\u4E3B\u64AD\u4EBA\u6578\u8D85\u904E\u4E0A\u9650\u3002",en:"Number of subscribers to the current user's channel exceeds the limit.",ko:"\uD604\uC7AC \uC0AC\uC6A9\uC790\uC758 \uCC44\uB110 \uAD6C\uB3C5\uC790 \uC218\uB294 \uC81C\uD55C\uC744 \uCD08\uACFC\uD588\uC2B5\uB2C8\uB2E4.",ja:"\u73FE\u5728\u306E\u30E6\u30FC\u30B6\u30FC\u306E\u30C1\u30E3\u30F3\u30CD\u30EB\u306E\u30B5\u30D6\u30B9\u30AF\u30E9\u30A4\u30D0\u30FC\u6570\u304C\u4E0A\u9650\u3092\u8D85\u3048\u3066\u3044\u307E\u3059\u3002",de:"Die Anzahl der Abonnenten des aktuellen Benutzers \xFCberschreitet das Limit.",fr:"Le nombre d'abonn\xE9s du canal de l'utilisateur actuel d\xE9passe la limite.",id:"Jumlah pelanggan saluran pengguna saat ini melebihi batas.",ru:"\u041A\u043E\u043B\u0438\u0447\u0435\u0441\u0442\u0432\u043E \u043F\u043E\u0434\u043F\u0438\u0441\u0447\u0438\u043A\u043E\u0432 \u043A\u0430\u043D\u0430\u043B\u0430 \u0442\u0435\u043A\u0443\u0449\u0435\u0433\u043E \u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u044F \u043F\u0440\u0435\u0432\u044B\u0448\u0430\u0435\u0442 \u043F\u0440\u0435\u0434\u0435\u043B."},LIVE_STREAMING_TASK_CONFLICT:{zh:"\u63A8\u6D41\u4EFB\u52A1\u5DF2\u7ECF\u5B58\u5728\u3002","zh-CHT":"\u63A8\u6D41\u4EFB\u52D9\u5DF2\u7D93\u5B58\u5728\u3002",en:"Live streaming task already exists.",ko:"\uB77C\uC774\uBE0C \uC2A4\uD2B8\uB9AC\uBC0D \uC791\uC5C5\uC774 \uC774\uBBF8 \uC874\uC7AC\uD569\uB2C8\uB2E4.",ja:"\u30E9\u30A4\u30D6\u30B9\u30C8\u30EA\u30FC\u30DF\u30F3\u30B0\u30BF\u30B9\u30AF\u304C\u3059\u3067\u306B\u5B58\u5728\u3057\u307E\u3059\u3002",de:"Live-Streaming-Aufgabe existiert bereits.",fr:"La t\xE2che de diffusion en direct existe d\xE9j\xE0.",id:"Tugas streaming langsung sudah ada.",ru:"\u0417\u0430\u0434\u0430\u0447\u0430 \u043F\u0440\u044F\u043C\u043E\u0439 \u0442\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u0438 \u0443\u0436\u0435 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442."},LIVE_STREAMING_INVALID_ARGUMENT:{zh:"\u63A8\u6D41\u53C2\u6570\u9519\u8BEF\u3002","zh-CHT":"\u63A8\u6D41\u53C3\u6578\u932F\u8AA4\u3002",en:"Invalid live streaming argument.",ko:"\uB77C\uC774\uBE0C \uC2A4\uD2B8\uB9AC\uBC0D \uC778\uC218\uAC00 \uC798\uBABB\uB418\uC5C8\uC2B5\uB2C8\uB2E4.",ja:"\u30E9\u30A4\u30D6\u30B9\u30C8\u30EA\u30FC\u30DF\u30F3\u30B0\u5F15\u6570\u304C\u7121\u52B9\u3067\u3059\u3002",de:"Ung\xFCltiger Live-Streaming-Parameter.",fr:"Argument de diffusion en direct invalide.",id:"Argumen streaming langsung tidak valid.",ru:"\u041D\u0435\u0434\u043E\u043F\u0443\u0441\u0442\u0438\u043C\u044B\u0439 \u0430\u0440\u0433\u0443\u043C\u0435\u043D\u0442 \u043F\u0440\u044F\u043C\u043E\u0439 \u0442\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u0438."},LIVE_STREAMING_INTERNAL_SERVER_ERROR:{zh:"\u63A8\u6D41\u670D\u52A1\u5668\u5185\u90E8\u9519\u8BEF\u3002","zh-CHT":"\u63A8\u6D41\u670D\u52D9\u5668\u5185\u90E8\u932F\u8AA4\u3002",en:"Live streaming server internal error.",ko:"\uB77C\uC774\uBE0C \uC2A4\uD2B8\uB9AC\uBC0D \uC11C\uBC84 \uB0B4\uBD80 \uC624\uB958\uC785\uB2C8\uB2E4.",ja:"\u30E9\u30A4\u30D6\u30B9\u30C8\u30EA\u30FC\u30DF\u30F3\u30B0\u30B5\u30FC\u30D0\u30FC\u306E\u5185\u90E8\u30A8\u30E9\u30FC\u3067\u3059\u3002",de:"Interner Fehler des Live-Streaming-Servers.",fr:"Erreur interne du serveur de diffusion en direct.",id:"Kesalahan internal server streaming langsung.",ru:"\u0412\u043D\u0443\u0442\u0440\u0435\u043D\u043D\u044F\u044F \u043E\u0448\u0438\u0431\u043A\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u043F\u0440\u044F\u043C\u043E\u0439 \u0442\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u0438."},LIVE_STREAMING_PUBLISH_STREAM_NOT_AUTHORIZED:{zh:"\u63A8\u6D41 URL \u88AB\u5360\u7528\u3002","zh-CHT":"\u63A8\u6D41 URL \u88AB\u4F54\u7528\u3002",en:"Live streaming URL is occupied.",ko:"\uB77C\uC774\uBE0C \uC2A4\uD2B8\uB9AC\uBC0D URL\uC774 \uC774\uBBF8 \uC0AC\uC6A9 \uC911\uC785\uB2C8\uB2E4.",ja:"\u30E9\u30A4\u30D6\u30B9\u30C8\u30EA\u30FC\u30DF\u30F3\u30B0URL\u306F\u3059\u3067\u306B\u5360\u6709\u3055\u308C\u3066\u3044\u307E\u3059\u3002",de:"Live-Streaming-URL ist besetzt.",fr:"L'URL de diffusion en direct est occup\xE9e.",id:"URL streaming langsung sudah digunakan.",ru:"URL \u043F\u0440\u044F\u043C\u043E\u0439 \u0442\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u0438 \u0443\u0436\u0435 \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u0435\u0442\u0441\u044F."},LIVE_STREAMING_CDN_ERROR:{zh:"\u63A8\u6D41\u7684\u76EE\u6807 CDN \u51FA\u73B0\u9519\u8BEF\u5BFC\u81F4\u63A8\u6D41\u5931\u8D25\u3002","zh-CHT":"\u63A8\u6D41\u7684\u76EE\u6A19 CDN \u51FA\u73FE\u932F\u8AA4\u5C0E\u81F4\u63A8\u6D41\u5931\u6557\u3002",en:"Live streaming failed due to error in target CDN.",ko:"\uB300\uC0C1 CDN\uC5D0\uC11C \uC624\uB958\uAC00 \uBC1C\uC0DD\uD558\uC5EC \uB77C\uC774\uBE0C \uC2A4\uD2B8\uB9AC\uBC0D\uC5D0 \uC2E4\uD328\uD588\uC2B5\uB2C8\uB2E4.",ja:"\u30BF\u30FC\u30B2\u30C3\u30C8CDN\u306E\u30A8\u30E9\u30FC\u306B\u3088\u308A\u3001\u30E9\u30A4\u30D6\u30B9\u30C8\u30EA\u30FC\u30DF\u30F3\u30B0\u306B\u5931\u6557\u3057\u307E\u3057\u305F\u3002",de:"Live-Streaming fehlgeschlagen aufgrund eines Fehlers im Ziel-CDN.",fr:"La diffusion en direct a \xE9chou\xE9 en raison d'une erreur dans le CDN cible.",id:"Streaming langsung gagal karena kesalahan di CDN target.",ru:"\u041F\u0440\u044F\u043C\u0430\u044F \u0442\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F \u043D\u0435 \u0443\u0434\u0430\u043B\u0430\u0441\u044C \u0438\u0437-\u0437\u0430 \u043E\u0448\u0438\u0431\u043A\u0438 \u0432 \u0446\u0435\u043B\u0435\u0432\u043E\u043C CDN."},LIVE_STREAMING_INVALID_RAW_STREAM:{zh:"\u63A8\u6D41\u8D85\u65F6\u3002","zh-CHT":"\u63A8\u6D41\u8D85\u6642\u3002",en:"Live streaming timed out.",ko:"\uB77C\uC774\uBE0C \uC2A4\uD2B8\uB9AC\uBC0D\uC774 \uC2DC\uAC04 \uCD08\uACFC\uB418\uC5C8\uC2B5\uB2C8\uB2E4.",ja:"\u30E9\u30A4\u30D6\u30B9\u30C8\u30EA\u30FC\u30DF\u30F3\u30B0\u304C\u30BF\u30A4\u30E0\u30A2\u30A6\u30C8\u3057\u307E\u3057\u305F\u3002",de:"Live-Streaming hat einen Timeout erreicht.",fr:"La diffusion en direct a expir\xE9.",id:"Streaming langsung telah kedaluwarsa.",ru:"\u041F\u0440\u044F\u043C\u0430\u044F \u0442\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F timed out."},CROSS_CHANNEL_WAIT_STATUS_ERROR:{zh:"\u7B49\u5F85 RTCClient.on(channel-media-relay-state) \u56DE\u8C03\u51FA\u9519\u3002","zh-CHT":"\u7B49\u5F85 RTCClient.on(channel-media-relay-state) \u56DE\u8ABF\u51FA\u932F\u3002",en:"Error waiting for RTCClient.on(channel-media-relay-state) callback.",ko:"RTCClient.on(channel-media-relay-state) \uCF5C\uBC31\uC744 \uAE30\uB2E4\uB9AC\uB294 \uB3D9\uC548 \uC624\uB958\uAC00 \uBC1C\uC0DD\uD588\uC2B5\uB2C8\uB2E4.",ja:"RTCClient.on(channel-media-relay-state)\u30B3\u30FC\u30EB\u30D0\u30C3\u30AF\u3092\u5F85\u6A5F\u4E2D\u306B\u30A8\u30E9\u30FC\u304C\u767A\u751F\u3057\u307E\u3057\u305F\u3002",de:"Fehler beim Warten auf den RTCClient.on(channel-media-relay-state)-R\xFCckruf.",fr:"Erreur lors de l'attente du rappel RTCClient.on(channel-media-relay-state).",id:"Kesalahan saat menunggu panggilan balik RTCClient.on(channel-media-relay-state).",ru:"\u041E\u0448\u0438\u0431\u043A\u0430 \u043F\u0440\u0438 \u043E\u0436\u0438\u0434\u0430\u043D\u0438\u0438 \u043E\u0431\u0440\u0430\u0442\u043D\u043E\u0433\u043E \u0432\u044B\u0437\u043E\u0432\u0430 RTCClient.on(channel-media-relay-state)."},CROSS_CHANNEL_FAILED_JOIN_SRC:{zh:"\u53D1\u8D77\u8DE8\u9891\u9053\u8F6C\u53D1\u5A92\u4F53\u6D41\u8BF7\u6C42\u5931\u8D25\u3002","zh-CHT":"\u767C\u8D77\u8DE8\u983B\u9053\u8F49\u767C\u5A92\u9AD4\u6D41\u8ACB\u6C42\u5931\u6557\u3002",en:"Failed to initiate cross-channel media stream forwarding request.",ko:"\uCC44\uB110 \uAC04 \uBBF8\uB514\uC5B4 \uC2A4\uD2B8\uB9BC \uC804\uB2EC \uC694\uCCAD\uC744 \uC2DC\uC791\uD558\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4.",ja:"\u30C1\u30E3\u30F3\u30CD\u30EB\u9593\u30E1\u30C7\u30A3\u30A2\u30B9\u30C8\u30EA\u30FC\u30E0\u8EE2\u9001\u30EA\u30AF\u30A8\u30B9\u30C8\u306E\u958B\u59CB\u306B\u5931\u6557\u3057\u307E\u3057\u305F\u3002",de:"Fehler beim Initiieren einer Anfrage zur Weiterleitung von Medienstr\xF6men zwischen Kan\xE4len.",fr:"\xC9chec de l'initialisation de la demande de transfert de flux multim\xE9dia entre canaux.",id:"Gagal memulai permintaan pengalihan aliran media antar saluran.",ru:"\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u0438\u043D\u0438\u0446\u0438\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0437\u0430\u043F\u0440\u043E\u0441 \u043D\u0430 \u043F\u0435\u0440\u0435\u0441\u044B\u043B\u043A\u0443 \u043F\u043E\u0442\u043E\u043A\u0430 \u043C\u0443\u043B\u044C\u0442\u0438\u043C\u0435\u0434\u0438\u0430 \u043C\u0435\u0436\u0434\u0443 \u043A\u0430\u043D\u0430\u043B\u0430\u043C\u0438."},CROSS_CHANNEL_FAILED_JOIN_DEST:{zh:"\u63A5\u53D7\u8DE8\u9891\u9053\u8F6C\u53D1\u5A92\u4F53\u6D41\u8BF7\u6C42\u5931\u8D25\u3002","zh-CHT":"\u63A5\u53D7\u8DE8\u983B\u9053\u8F49\u767C\u5A92\u9AD4\u6D41\u8ACB\u6C42\u5931\u6557\u3002",en:"Failed to accept cross-channel media stream forwarding request.",ko:"\uCC44\uB110 \uAC04 \uBBF8\uB514\uC5B4 \uC2A4\uD2B8\uB9BC \uC804\uB2EC \uC694\uCCAD\uC744 \uC218\uB77D\uD558\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4.",ja:"\u30C1\u30E3\u30F3\u30CD\u30EB\u9593\u30E1\u30C7\u30A3\u30A2\u30B9\u30C8\u30EA\u30FC\u30E0\u8EE2\u9001\u30EA\u30AF\u30A8\u30B9\u30C8\u306E\u53D7\u3051\u5165\u308C\u306B\u5931\u6557\u3057\u307E\u3057\u305F\u3002",de:"Fehler beim Akzeptieren einer Anfrage zur Weiterleitung von Medienstr\xF6men zwischen Kan\xE4len.",fr:"\xC9chec de l'acceptation de la demande de transfert de flux multim\xE9dia entre canaux.",id:"Gagal menerima permintaan pengalihan aliran media antar saluran.",ru:"\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u043F\u0440\u0438\u043D\u044F\u0442\u044C \u0437\u0430\u043F\u0440\u043E\u0441 \u043D\u0430 \u043F\u0435\u0440\u0435\u0441\u044B\u043B\u043A\u0443 \u043F\u043E\u0442\u043E\u043A\u0430 \u043C\u0443\u043B\u044C\u0442\u0438\u043C\u0435\u0434\u0438\u0430 \u043C\u0435\u0436\u0434\u0443 \u043A\u0430\u043D\u0430\u043B\u0430\u043C\u0438."},CROSS_CHANNEL_FAILED_PACKET_SENT_TO_DEST:{zh:"\u670D\u52A1\u5668\u63A5\u6536\u8DE8\u9891\u9053\u8F6C\u53D1\u5A92\u4F53\u6D41\u5931\u8D25\u3002","zh-CHT":"\u670D\u52D9\u5668\u63A5\u6536\u8DE8\u983B\u9053\u8F49\u767C\u5A92\u9AD4\u6D41\u5931\u6557\u3002",en:"Server failed to receive cross-channel forwarded media stream.",ko:"\uC11C\uBC84\uAC00 \uCC44\uB110 \uAC04 \uC804\uB2EC\uB41C \uBBF8\uB514\uC5B4 \uC2A4\uD2B8\uB9BC\uC744 \uC218\uC2E0\uD558\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4.",ja:"\u30B5\u30FC\u30D0\u30FC\u304C\u30C1\u30E3\u30F3\u30CD\u30EB\u9593\u8EE2\u9001\u3055\u308C\u305F\u30E1\u30C7\u30A3\u30A2\u30B9\u30C8\u30EA\u30FC\u30E0\u306E\u53D7\u4FE1\u306B\u5931\u6557\u3057\u307E\u3057\u305F\u3002",de:"Server konnte den zwischen Kan\xE4len weitergeleiteten Medienstrom nicht empfangen.",fr:"Le serveur n'a pas pu recevoir le flux multim\xE9dia transf\xE9r\xE9 entre canaux.",id:"Server gagal menerima aliran media yang dikirimkan antar saluran.",ru:"\u0421\u0435\u0440\u0432\u0435\u0440 \u043D\u0435 \u0441\u043C\u043E\u0433 \u043F\u0440\u0438\u043D\u044F\u0442\u044C \u043F\u043E\u0442\u043E\u043A \u043C\u0443\u043B\u044C\u0442\u0438\u043C\u0435\u0434\u0438\u0430, \u043F\u0435\u0440\u0435\u0441\u043B\u0430\u043D\u043D\u044B\u0439 \u043C\u0435\u0436\u0434\u0443 \u043A\u0430\u043D\u0430\u043B\u0430\u043C\u0438."},CROSS_CHANNEL_SERVER_ERROR_RESPONSE:{zh:"\u670D\u52A1\u5668\u54CD\u5E94\u51FA\u9519\u3002","zh-CHT":"\u670D\u52D9\u5668\u97FF\u61C9\u51FA\u932F\u3002",en:"Server response error.",ko:"\uC11C\uBC84 \uC751\uB2F5 \uC624\uB958\uC785\uB2C8\uB2E4.",ja:"\u30B5\u30FC\u30D0\u30FC\u306E\u30EC\u30B9\u30DD\u30F3\u30B9\u30A8\u30E9\u30FC\u3067\u3059\u3002",de:"Server-Antwortfehler.",fr:"Erreur de r\xE9ponse du serveur.",id:"Kesalahan respons server.",ru:"\u041E\u0448\u0438\u0431\u043A\u0430 \u043E\u0442\u0432\u0435\u0442\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0430."}},ye=(e,i)=>{const t=Vl[e];return t?t[i]||t.en:null};var ql=function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("div",{staticClass:"meeting-warp"},[t("Modal",{attrs:{title:e.$L(e.addData.type==="join"?"\u52A0\u5165\u4F1A\u8BAE":"\u65B0\u4F1A\u8BAE"),"mask-closable":!1,closable:!e.addData.sharekey},model:{value:e.addShow,callback:function(s){e.addShow=s},expression:"addShow"}},[t("Form",e._b({ref:"addForm",attrs:{model:e.addData,rules:e.addRule},nativeOn:{submit:function(s){s.preventDefault()}}},"Form",e.formOptions,!1),[e.addData.type==="join"?[e.addData.name?t("FormItem",{attrs:{prop:"userids",label:e.$L("\u4F1A\u8BAE\u4E3B\u9898")}},[t("Input",{attrs:{disabled:""},model:{value:e.addData.name,callback:function(s){e.$set(e.addData,"name",s)},expression:"addData.name"}})],1):e._e(),e.addData.sharekey?t("FormItem",{attrs:{prop:"username",label:e.$L("\u4F60\u7684\u59D3\u540D")}},[t("Input",{attrs:{placeholder:e.$L("\u8BF7\u8F93\u5165\u4F60\u7684\u59D3\u540D")},model:{value:e.addData.username,callback:function(s){e.$set(e.addData,"username",s)},expression:"addData.username"}})],1):e._e(),t("FormItem",{attrs:{prop:"meetingid",label:e.$L("\u4F1A\u8BAE\u9891\u9053ID")}},[t("Input",{attrs:{disabled:e.addData.meetingdisabled===!0,placeholder:e.$L("\u8BF7\u8F93\u5165\u4F1A\u8BAE\u9891\u9053ID")},model:{value:e.addData.meetingid,callback:function(s){e.$set(e.addData,"meetingid",s)},expression:"addData.meetingid"}})],1)]:[t("FormItem",{attrs:{prop:"name",label:e.$L("\u4F1A\u8BAE\u4E3B\u9898")}},[t("Input",{attrs:{maxlength:50,placeholder:e.$L("\u9009\u586B")},model:{value:e.addData.name,callback:function(s){e.$set(e.addData,"name",s)},expression:"addData.name"}})],1),t("FormItem",{attrs:{prop:"userids",label:e.$L("\u9080\u8BF7\u6210\u5458")}},[t("UserSelect",{attrs:{uncancelable:[e.userId],"multiple-max":20,title:e.$L("\u9009\u62E9\u9080\u8BF7\u6210\u5458")},model:{value:e.addData.userids,callback:function(s){e.$set(e.addData,"userids",s)},expression:"addData.userids"}})],1)],t("FormItem",{attrs:{prop:"tracks"}},[t("CheckboxGroup",{model:{value:e.addData.tracks,callback:function(s){e.$set(e.addData,"tracks",s)},expression:"addData.tracks"}},[t("Checkbox",{attrs:{label:"audio"}},[t("span",[e._v(e._s(e.$L("\u9EA6\u514B\u98CE")))])]),t("Checkbox",{attrs:{label:"video"}},[t("span",[e._v(e._s(e.$L("\u6444\u50CF\u5934")))])])],1)],1)],2),t("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[e.addData.sharekey?e._e():t("Button",{attrs:{type:"default"},on:{click:function(s){e.addShow=!1}}},[e._v(e._s(e.$L("\u53D6\u6D88")))]),t("Button",{attrs:{type:"primary",loading:e.loadIng>0},on:{click:e.onSubmit}},[e._v(e._s(e.$L(e.addData.type==="join"?"\u52A0\u5165\u4F1A\u8BAE":"\u5F00\u59CB\u4F1A\u8BAE")))])],1)],1),t("Modal",{ref:"meetingModal",attrs:{title:e.addData.name,mask:!1,"mask-closable":!1,closable:!1,"transition-names":["",""],beforeClose:e.onClose,"class-name":`meeting-manager${e.meetingMini?" meeting-hidden":""}`,"ignore-remove-last":e.meetingMini,fullscreen:""},model:{value:e.meetingShow,callback:function(s){e.meetingShow=s},expression:"meetingShow"}},[t("ul",[e.localUser.uid?t("li",[t("Player",{attrs:{player:e.localUser,isLocal:""}})],1):e._e(),e._l(e.remoteUsers,function(s){return t("li",[t("Player",{attrs:{player:s}})],1)})],2),t("div",{staticClass:"adaption meeting-button-group",attrs:{slot:"footer"},slot:"footer"},[t("Button",{attrs:{type:"primary",loading:e.audioLoad},on:{click:e.onAudio}},[t("i",{staticClass:"taskfont",domProps:{innerHTML:e._s(e.localUser.audioTrack?"":"")}})]),t("Button",{attrs:{type:"primary",loading:e.videoLoad},on:{click:e.onVideo}},[t("i",{staticClass:"taskfont",domProps:{innerHTML:e._s(e.localUser.videoTrack?"":"")}})]),e.windowPortrait?[t("Button",{attrs:{type:"primary",loading:e.linkCopyLoad},on:{click:function(s){return e.onInvitation("open")}}},[t("i",{staticClass:"taskfont"},[e._v("\uE646")])]),e.addData.sharekey?e._e():t("Button",{attrs:{type:"primary"},on:{click:function(s){e.meetingMini=!0}}},[t("i",{staticClass:"taskfont"},[e._v("\uE656")])]),t("Button",{attrs:{type:"warning",loading:e.loadIng>0},on:{click:e.onClose}},[t("i",{staticClass:"taskfont"},[e._v("\uE612")])])]:[t("Button",{attrs:{type:"primary"},on:{click:function(s){return e.onInvitation("open")}}},[e._v(e._s(e.$L("\u9080\u8BF7")))]),e.addData.sharekey?e._e():t("Button",{attrs:{type:"primary"},on:{click:function(s){e.meetingMini=!0}}},[e._v(e._s(e.$L("\u6700\u5C0F\u5316")))]),t("Button",{attrs:{type:"warning",loading:e.loadIng>0},on:{click:e.onClose}},[e._v(e._s(e.$L("\u79BB\u5F00\u4F1A\u8BAE")))])]],2)]),e.meetingMini?t("DragBallComponent",{attrs:{id:"meetingDragBall","z-index":3e3},on:{"on-click":function(s){e.meetingMini=!1}}},[t("div",{staticClass:"meeting-drag-ball"},[t("i",{staticClass:"taskfont",domProps:{innerHTML:e._s(e.localUser.audioTrack?"":"")}}),t("i",{staticClass:"taskfont",domProps:{innerHTML:e._s(e.localUser.videoTrack?"":"")}}),t("em",[e._v(e._s(e.$L("\u4F1A\u8BAE\u4E2D")))])])]):e._e(),t("Modal",{attrs:{title:e.$L("\u9080\u8BF7\u52A0\u5165"),"mask-closable":!1},model:{value:e.invitationShow,callback:function(s){e.invitationShow=s},expression:"invitationShow"}},[t("Form",e._b({ref:"invitationForm",attrs:{model:e.invitationData},nativeOn:{submit:function(s){s.preventDefault()}}},"Form",e.formOptions,!1),[t("FormItem",{attrs:{prop:"userids",label:e.$L("\u9080\u8BF7\u6210\u5458")}},[t("UserSelect",{attrs:{"multiple-max":20,title:e.$L("\u9009\u62E9\u9080\u8BF7\u6210\u5458")},model:{value:e.invitationData.userids,callback:function(s){e.$set(e.invitationData,"userids",s)},expression:"invitationData.userids"}})],1)],1),t("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[t("Button",{attrs:{type:"default",loading:e.linkCopyLoad},on:{click:e.linkCopy}},[e._v(e._s(e.$L("\u590D\u5236\u94FE\u63A5")))]),t("Button",{attrs:{type:"primary",loading:e.invitationLoad},on:{click:function(s){return e.onInvitation("submit")}}},[e._v(e._s(e.$L("\u53D1\u9001\u9080\u8BF7")))])],1)],1)],1)},Yl=[];const Kl={name:"MeetingManager",components:{UserSelect:Se,DragBallComponent:Wl,Player:Ol},props:{id:{type:String,default:()=>"meeting-player-"+Math.round(Math.random()*1e4)}},data(){return{loadIng:0,addShow:!1,addData:{userids:[],tracks:["audio"]},addRule:{username:[{required:!0,message:this.$L("\u8BF7\u8F93\u5165\u4F60\u7684\u59D3\u540D\uFF01"),trigger:"change"}]},invitationShow:!1,invitationLoad:!1,invitationData:{userids:[]},meetingShow:!1,meetingMini:!1,audioLoad:!1,videoLoad:!1,agoraClient:null,remoteUsers:[],localUser:{uid:null,audioTrack:null,videoTrack:null},linkCopyLoad:!1}},computed:{...x(["meetingWindow","appMeetingShow","formOptions","userToken"])},mounted(){C.on("addMeeting",this.onAdd)},beforeDestroy(){C.off("addMeeting",this.onAdd)},watch:{meetingMini(e){e||(this.$refs.meetingModal.modalIndex=this.$refs.meetingModal.handleGetModalIndex())},meetingWindow:{handler(e){switch(e.type){case"add":this.addShow=e.show;break;case"join":case"direct":this.addShow=e.show,this.addData.type="join",e.meetingNickname&&(this.addData.username=e.meetingNickname),e.meetingAvatar&&(this.addData.userimg=e.meetingAvatar),$A.runNum(e.meetingAudio)&&!this.addData.tracks.includes("audio")&&this.addData.tracks.push("audio"),$A.runNum(e.meetingVideo)&&!this.addData.tracks.includes("video")&&this.addData.tracks.push("video"),e.meetingSharekey&&(this.addData.sharekey=e.meetingSharekey,this.addData.meetingid=e.meetingid||"",this.addData.meetingdisabled=!!e.meetingSharekey),e.type==="direct"&&this.onOpen(!0);break;case"invitation":this.invitationShow=e.show,this.invitationLoad=!1,this.invitationData.meetingid=e.meetingid;break;case"error":this.addShow=e.show,this.invitationShow=e.show,this.invitationLoad=!1,$A.modalError("\u52A0\u5165\u4F1A\u8BAE\u5931\u8D25");break}},immediate:!0}},methods:{onAdd(e){e=$A.isJson(e)?e:{},/^\d+$/.test(e.dialog_id)&&(this.loadIng++,this.$store.dispatch("call",{url:"dialog/user",data:{dialog_id:e.dialog_id}}).then(({data:i})=>{this.$set(this.addData,"userids",i.filter(t=>!t.bot).map(t=>t.userid))}).finally(i=>{this.loadIng--}),delete e.dialog_id),$A.isArray(e.userids)||(e.userids=[]),this.userId&&!e.userids.includes(this.userId)&&e.userids.push(this.userId),$A.isArray(e.tracks)?e.tracks.includes("audio")||e.tracks.push("audio"):e.tracks=["audio"],this.addData=e,this.addShow=!0},onSubmit(){this.$refs.addForm.validate(e=>{e&&this.onOpen()})},async onOpen(e=!1){let i=!1;if($A.isEEUIApp)i=this.appMeetingShow;else if($A.Electron){const s=await $A.Electron.sendAsync("getChildWindow","meeting-window");if(s){const n=await $A.Electron.sendAsync("getChildWindow",null);i=(n==null?void 0:n.id)!==s.id}}else i=this.meetingShow;if(i){$A.modalWarning({content:"\u6B63\u5728\u4F1A\u8BAE\u4E2D\uFF0C\u65E0\u6CD5\u8FDB\u5165\u5176\u4ED6\u4F1A\u8BAE\u5BA4",onOk:this.onBeforeClose});return}const t=s=>{e?s?this.$store.dispatch("showSpinner"):this.$store.dispatch("hiddenSpinner",600):s?this.loadIng++:this.loadIng--};t(!0),this.$store.dispatch("call",{url:"users/meeting/open",data:this.addData}).then(({data:s})=>{if(this.$set(this.addData,"name",s.name),this.$set(this.addData,"meetingid",s.meetingid),this.$set(this.localUser,"nickname",s.nickname),this.$set(this.localUser,"userimg",s.userimg),this.$store.dispatch("saveDialogMsg",s.msgs),this.$store.dispatch("updateDialogLastMsg",s.msgs),delete s.name,delete s.msgs,$A.isEEUIApp){t(!0),this.loadNum=0,this.loadTimer&&clearInterval(this.loadTimer),this.loadTimer=setInterval(()=>{this.addShow&&++this.loadNum<10||(clearInterval(this.loadTimer),t(!1))},1e3),$A.eeuiAppSendMessage({action:"startMeeting",meetingParams:{name:this.addData.name,token:s.token,channel:s.channel,uuid:s.uid,appid:s.appid,avatar:s.userimg,username:s.nickname,video:this.addData.tracks.includes("video"),audio:this.addData.tracks.includes("audio"),meetingid:s.meetingid,sharelink:s.sharelink,alert:{title:this.$L("\u6E29\u99A8\u63D0\u793A"),message:this.$L("\u786E\u5B9A\u8981\u79BB\u5F00\u4F1A\u8BAE\u5417\uFF1F"),cancel:this.$L("\u7EE7\u7EED"),confirm:this.$L("\u9000\u51FA")}}});return}if($A.Electron&&!this.addData.sharekey){t(!0),this.$store.dispatch("call",{url:"users/meeting/link",data:{meetingid:s.meetingid}}).then(n=>{const a={title:this.addData.name,titleFixed:!0,parent:null,width:Math.min(window.screen.availWidth,1440),height:Math.min(window.screen.availHeight,900)},r=$A.leftDelete(n.data,$A.mainUrl()).replace(/^\//,""),o=$A.urlAddParams("/"+r,{type:"direct",nickname:s.nickname,avatar:s.userimg,audio:this.addData.tracks.includes("audio")?1:0,video:this.addData.tracks.includes("video")?1:0,token:this.userToken});this.$store.dispatch("openChildWindow",{name:"meeting-window",path:o,force:!1,config:a}),this.addShow=!1}).catch(({msg:n})=>{$A.modalError({content:n,onOk:this.onBeforeClose})}).finally(n=>{t(!1)});return}t(!0),$A.loadScript("js/AgoraRTC_N-4.17.0.js").then(n=>{this.join(s)}).catch(n=>{$A.modalError({content:"\u4F1A\u8BAE\u7EC4\u4EF6\u52A0\u8F7D\u5931\u8D25\uFF01",onOk:this.onBeforeClose})}).finally(n=>{t(!1)})}).catch(({msg:s})=>{$A.modalError({content:s,onOk:this.onBeforeClose})}).finally(s=>{t(!1)})},onAudio(){this.localUser.audioTrack?this.closeAudio():this.openAudio()},onVideo(){this.localUser.videoTrack?this.closeVideo():this.openVideo()},onInvitation(e){if(e==="open"){if(this.addData.sharekey&&!this.userId){this.linkCopy();return}this.invitationData={userids:[],meetingid:this.addData.meetingid},this.invitationShow=!0}else if(e==="submit"){if(this.invitationData.userids.length===0){$A.modalWarning("\u8BF7\u9009\u62E9\u9080\u8BF7\u6210\u5458");return}this.invitationLoad=!0,this.$store.dispatch("call",{url:"users/meeting/invitation",data:this.invitationData}).then(({data:i,msg:t})=>{this.invitationShow=!1,this.$store.dispatch("saveDialogMsg",i.msgs),this.$store.dispatch("updateDialogLastMsg",i.msgs),$A.messageSuccess(t)}).catch(({msg:i})=>{$A.modalError(i)}).finally(i=>{this.invitationLoad=!1})}},onClose(){return new Promise(e=>{$A.modalConfirm({content:"\u786E\u5B9A\u8981\u79BB\u5F00\u4F1A\u8BAE\u5417\uFF1F",cancelText:"\u7EE7\u7EED",okText:"\u9000\u51FA",onOk:async()=>{await this.onBeforeClose(),e()}})})},async onBeforeClose(){try{await this.leave()}catch(e){console.error(e)}$A.isSubElectron?this.$Electron.sendMessage("windowDestroy"):this.addData.sharekey&&(this.addShow=!0)},linkCopy(){this.linkCopyLoad=!0,this.$store.dispatch("call",{url:"users/meeting/link",data:{meetingid:this.addData.meetingid||this.invitationData.meetingid,sharekey:this.addData.sharekey}}).then(({data:e})=>{this.copyText({text:e,success:"\u5DF2\u590D\u5236\u4F1A\u8BAE\u9080\u8BF7\u94FE\u63A5",error:"\u590D\u5236\u5931\u8D25"}),this.invitationShow=!1}).catch(({msg:e})=>{$A.modalError(e)}).finally(e=>{this.linkCopyLoad=!1})},async join(e){this.loadIng++;try{AgoraRTC.onMicrophoneChanged=async t=>{var s,n,a;if(t.state==="ACTIVE")(s=this.localUser.audioTrack)==null||s.setDevice(t.device.deviceId);else if(t.device.label===((n=this.localUser.audioTrack)==null?void 0:n.getTrackLabel())){const r=await AgoraRTC.getMicrophones();r[0]&&((a=this.localUser.audioTrack)==null||a.setDevice(r[0].deviceId))}},AgoraRTC.onCameraChanged=async t=>{var s,n,a;if(t.state==="ACTIVE")(s=this.localUser.videoTrack)==null||s.setDevice(t.device.deviceId);else if(t.device.label===((n=this.localUser.videoTrack)==null?void 0:n.getTrackLabel())){const r=await AgoraRTC.getCameras();r[0]&&((a=this.localUser.videoTrack)==null||a.setDevice(r[0].deviceId))}},AgoraRTC.onAutoplayFailed=()=>{$A.messageWarning("\u70B9\u51FB\u5C4F\u5E55\u5F00\u59CB\u4F1A\u8BAE")},AgoraRTC.setLogLevel(window.systemInfo.debug==="yes"?0:3),this.agoraClient=AgoraRTC.createClient({mode:"rtc",codec:"vp8"}),this.agoraClient.on("user-joined",this.handleUserJoined),this.agoraClient.on("user-left",this.handleUserLeft),this.agoraClient.on("user-published",this.handleUserPublished),this.agoraClient.on("user-unpublished",this.handleUserUnpublished);const i=[];try{this.localUser.uid=await this.agoraClient.join(e.appid,e.channel,e.token,e.uid),await Promise.all(["audio","video"].map(async t=>{if(!this.addData.tracks.includes(t))return;const s=t==="audio"?AgoraRTC.createMicrophoneAudioTrack:AgoraRTC.createCameraVideoTrack,n=`${t}Track`;try{this.localUser[n]=await s(),i.push(this.localUser[n])}catch(a){if(a.code==="DEVICE_NOT_FOUND")console.warn(`${t} device not found:`,a);else throw a}})),i.length>0&&await this.agoraClient.publish(i),this.meetingShow=!0}catch(t){console.error(t),$A.modalError({language:!1,content:ye(t.code,I)||this.$L("\u4F1A\u8BAE\u7EC4\u4EF6\u52A0\u8F7D\u5931\u8D25\uFF01"),onOk:this.onBeforeClose})}}catch{}this.addShow=!1,this.loadIng--},async leave(){this.loadIng++;try{["audioTrack","videoTrack"].some(e=>{var i,t;(i=this.localUser[e])==null||i.stop(),(t=this.localUser[e])==null||t.close()}),this.localUser={uid:null,audioTrack:null,videoTrack:null},this.remoteUsers=[],await this.agoraClient.leave()}catch{}this.meetingShow=!1,this.loadIng--},async openAudio(){if(!(this.audioLoad||this.localUser.audioTrack)){this.audioLoad=!0;try{this.localUser.audioTrack=await AgoraRTC.createMicrophoneAudioTrack(),await this.agoraClient.publish([this.localUser.audioTrack])}catch(e){$A.modalError({language:!1,content:ye(e.code,I)||this.$L("\u5F00\u542F\u9EA6\u514B\u98CE\u5931\u8D25\uFF01")})}finally{this.audioLoad=!1}}},async closeAudio(){this.audioLoad||!this.localUser.audioTrack||(this.audioLoad=!0,await this.agoraClient.unpublish([this.localUser.audioTrack]),this.localUser.audioTrack.stop(),this.localUser.audioTrack.close(),this.localUser.audioTrack=null,this.audioLoad=!1)},async openVideo(){if(!(this.videoLoad||this.localUser.videoTrack)){this.videoLoad=!0;try{this.localUser.videoTrack=await AgoraRTC.createCameraVideoTrack(),await this.agoraClient.publish([this.localUser.videoTrack])}catch(e){$A.modalError({language:!1,content:ye(e.code,I)||this.$L("\u5F00\u542F\u6444\u50CF\u5934\u5931\u8D25\uFF01")})}finally{this.videoLoad=!1}}},async closeVideo(){this.videoLoad||!this.localUser.videoTrack||(this.videoLoad=!0,await this.agoraClient.unpublish([this.localUser.videoTrack]),this.localUser.videoTrack.stop(),this.localUser.videoTrack.close(),this.localUser.videoTrack=null,this.videoLoad=!1)},async handleUserJoined(e){if(e.uid==this.localUser.uid)return;const i=this.remoteUsers.findIndex(t=>t.uid==e.uid);i>-1?this.remoteUsers.splice(i,1,e):this.remoteUsers.push(e)},async handleUserLeft(e){const i=this.remoteUsers.findIndex(t=>t.uid==e.uid);i>-1&&this.remoteUsers.splice(i,1)},async handleUserPublished(e,i){this.remoteUsers.find(s=>s.uid==e.uid)&&await this.agoraClient.subscribe(e,i)},async handleUserUnpublished(e,i){this.remoteUsers.find(s=>s.uid==e.uid)&&await this.agoraClient.unsubscribe(e,i)}}},Pt={};var Jl=m(Kl,ql,Yl,!1,Gl,null,null,null);function Gl(e){for(let i in Pt)this[i]=Pt[i]}var Ql=function(){return Jl.exports}();const ce=/(?:[\u2700-\u27bf]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff]|[\u0023-\u0039]\ufe0f?\u20e3|\u3299|\u3297|\u303d|\u3030|\u24c2|\ud83c[\udd70-\udd71]|\ud83c[\udd7e-\udd7f]|\ud83c\udd8e|\ud83c[\udd91-\udd9a]|\ud83c[\udde6-\uddff]|\ud83c[\ude01-\ude02]|\ud83c\ude1a|\ud83c\ude2f|\ud83c[\ude32-\ude3a]|\ud83c[\ude50-\ude51]|\u203c|\u2049|[\u25aa-\u25ab]|\u25b6|\u25c0|[\u25fb-\u25fe]|\u00a9|\u00ae|\u2122|\u2139|\ud83c\udc04|[\u2600-\u26FF]|\u2b05|\u2b06|\u2b07|\u2b1b|\u2b1c|\u2b50|\u2b55|\u231a|\u231b|\u2328|\u23cf|[\u23e9-\u23f3]|[\u23f8-\u23fa]|\ud83c\udccf|\u2934|\u2935|[\u2190-\u21ff])/g,Xl=e=>(ce.lastIndex=0,ce.test(e));function us(e,i="emoji-original",t="span"){if(typeof e!="string")return"";if((!i||typeof i!="string")&&(i="emoji-original"),(!t||typeof t!="string")&&(t="span"),!Xl(e))return e;ce.lastIndex=0;let s="",n=0,a;for(;(a=ce.exec(e))!==null;)a.index>n&&(s+=e.substring(n,a.index)),s+=`<${t} class="${i}">${a[0]}</${t}>`,n=ce.lastIndex;return n<e.length&&(s+=e.substring(n)),s}var y={newline:/^\n+/,code:/^( {4}[^\n]+\n*)+/,fences:/^ {0,3}(`{3,}|~{3,})([^`~\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?:\n+|$)|$)/,hr:/^ {0,3}((?:- *){3,}|(?:_ *){3,}|(?:\* *){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6}) +([^\n]*?)(?: +#+)? *(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3})(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?!\1bull )\n*|\s*$)/,html:"^ {0,3}(?:<(script|pre|style)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?\\?>\\n*|<![A-Z][\\s\\S]*?>\\n*|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>\\n*|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:\\n{2,}|$)|<(?!script|pre|style)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$)|</(?!script|pre|style)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$))",def:/^ {0,3}\[(label)\]: *\n? *<?([^\s>]+)>?(?:(?: +\n? *| *\n *)(title))? *(?:\n+|$)/,nptable:Z,table:Z,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html)[^\n]+)*)/,text:/^[^\n]+/};y._label=/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/;y._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/;y.def=E(y.def).replace("label",y._label).replace("title",y._title).getRegex();y.bullet=/(?:[*+-]|\d{1,9}\.)/;y.item=/^( *)(bull) ?[^\n]*(?:\n(?!\1bull ?)[^\n]*)*/;y.item=E(y.item,"gm").replace(/bull/g,y.bullet).getRegex();y.list=E(y.list).replace(/bull/g,y.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+y.def.source+")").getRegex();y._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul";y._comment=/<!--(?!-?>)[\s\S]*?-->/;y.html=E(y.html,"i").replace("comment",y._comment).replace("tag",y._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex();y.paragraph=E(y._paragraph).replace("hr",y.hr).replace("heading"," {0,3}#{1,6} +").replace("|lheading","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}|~{3,})[^`\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|!--)").replace("tag",y._tag).getRegex();y.blockquote=E(y.blockquote).replace("paragraph",y.paragraph).getRegex();y.normal=N({},y);y.gfm=N({},y.normal,{nptable:/^ *([^|\n ].*\|.*)\n *([-:]+ *\|[-| :]*)(?:\n((?:.*[^>\n ].*(?:\n|$))*)\n*|$)/,table:/^ *\|(.+)\n *\|?( *[-:]+[-| :]*)(?:\n((?: *[^>\n ].*(?:\n|$))*)\n*|$)/});y.pedantic=N({},y.normal,{html:E(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",y._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/,fences:Z,paragraph:E(y.normal._paragraph).replace("hr",y.hr).replace("heading",` *#{1,6} *[^
|
|
]`).replace("lheading",y.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});function V(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||T.defaults,this.rules=y.normal,this.options.pedantic?this.rules=y.pedantic:this.options.gfm&&(this.rules=y.gfm)}V.rules=y;V.lex=function(e,i){var t=new V(i);return t.lex(e)};V.prototype.lex=function(e){return e=e.replace(/\r\n|\r/g,`
|
|
`).replace(/\t/g," ").replace(/\u00a0/g," ").replace(/\u2424/g,`
|
|
`),this.token(e,!0)};V.prototype.token=function(e,i){e=e.replace(/^ +$/gm,"");for(var t,s,n,a,r,o,l,c,u,h,d,p,f,g,b,v;e;){if((n=this.rules.newline.exec(e))&&(e=e.substring(n[0].length),n[0].length>1&&this.tokens.push({type:"space"})),n=this.rules.code.exec(e)){var M=this.tokens[this.tokens.length-1];e=e.substring(n[0].length),M&&M.type==="paragraph"?M.text+=`
|
|
`+n[0].trimRight():(n=n[0].replace(/^ {4}/gm,""),this.tokens.push({type:"code",codeBlockStyle:"indented",text:this.options.pedantic?n:ps(n,`
|
|
`)}));continue}if(n=this.rules.fences.exec(e)){e=e.substring(n[0].length),this.tokens.push({type:"code",lang:n[2]?n[2].trim():n[2],text:n[3]||""});continue}if(n=this.rules.heading.exec(e)){e=e.substring(n[0].length),this.tokens.push({type:"heading",depth:n[1].length,text:n[2]});continue}if((n=this.rules.nptable.exec(e))&&(o={type:"table",header:he(n[1].replace(/^ *| *\| *$/g,"")),align:n[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:n[3]?n[3].replace(/\n$/,"").split(`
|
|
`):[]},o.header.length===o.align.length)){for(e=e.substring(n[0].length),d=0;d<o.align.length;d++)/^ *-+: *$/.test(o.align[d])?o.align[d]="right":/^ *:-+: *$/.test(o.align[d])?o.align[d]="center":/^ *:-+ *$/.test(o.align[d])?o.align[d]="left":o.align[d]=null;for(d=0;d<o.cells.length;d++)o.cells[d]=he(o.cells[d],o.header.length);this.tokens.push(o);continue}if(n=this.rules.hr.exec(e)){e=e.substring(n[0].length),this.tokens.push({type:"hr"});continue}if(n=this.rules.blockquote.exec(e)){e=e.substring(n[0].length),this.tokens.push({type:"blockquote_start"}),n=n[0].replace(/^ *> ?/gm,""),this.token(n,i),this.tokens.push({type:"blockquote_end"});continue}if(n=this.rules.list.exec(e)){for(e=e.substring(n[0].length),a=n[2],g=a.length>1,l={type:"list_start",ordered:g,start:g?+a:"",loose:!1},this.tokens.push(l),n=n[0].match(this.rules.item),c=[],t=!1,f=n.length,d=0;d<f;d++)o=n[d],h=o.length,o=o.replace(/^ *([*+-]|\d+\.) */,""),~o.indexOf(`
|
|
`)&&(h-=o.length,o=this.options.pedantic?o.replace(/^ {1,4}/gm,""):o.replace(new RegExp("^ {1,"+h+"}","gm"),"")),d!==f-1&&(r=y.bullet.exec(n[d+1])[0],(a.length>1?r.length===1:r.length>1||this.options.smartLists&&r!==a)&&(e=n.slice(d+1).join(`
|
|
`)+e,d=f-1)),s=t||/\n\n(?!\s*$)/.test(o),d!==f-1&&(t=o.charAt(o.length-1)===`
|
|
`,s||(s=t)),s&&(l.loose=!0),b=/^\[[ xX]\] /.test(o),v=void 0,b&&(v=o[1]!==" ",o=o.replace(/^\[[ xX]\] +/,"")),u={type:"list_item_start",task:b,checked:v,loose:s},c.push(u),this.tokens.push(u),this.token(o,!1),this.tokens.push({type:"list_item_end"});if(l.loose)for(f=c.length,d=0;d<f;d++)c[d].loose=!0;this.tokens.push({type:"list_end"});continue}if(n=this.rules.html.exec(e)){e=e.substring(n[0].length),this.tokens.push({type:this.options.sanitize?"paragraph":"html",pre:!this.options.sanitizer&&(n[1]==="pre"||n[1]==="script"||n[1]==="style"),text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(n[0]):S(n[0]):n[0]});continue}if(i&&(n=this.rules.def.exec(e))){e=e.substring(n[0].length),n[3]&&(n[3]=n[3].substring(1,n[3].length-1)),p=n[1].toLowerCase().replace(/\s+/g," "),this.tokens.links[p]||(this.tokens.links[p]={href:n[2],title:n[3]});continue}if((n=this.rules.table.exec(e))&&(o={type:"table",header:he(n[1].replace(/^ *| *\| *$/g,"")),align:n[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:n[3]?n[3].replace(/\n$/,"").split(`
|
|
`):[]},o.header.length===o.align.length)){for(e=e.substring(n[0].length),d=0;d<o.align.length;d++)/^ *-+: *$/.test(o.align[d])?o.align[d]="right":/^ *:-+: *$/.test(o.align[d])?o.align[d]="center":/^ *:-+ *$/.test(o.align[d])?o.align[d]="left":o.align[d]=null;for(d=0;d<o.cells.length;d++)o.cells[d]=he(o.cells[d].replace(/^ *\| *| *\| *$/g,""),o.header.length);this.tokens.push(o);continue}if(n=this.rules.lheading.exec(e)){e=e.substring(n[0].length),this.tokens.push({type:"heading",depth:n[2].charAt(0)==="="?1:2,text:n[1]});continue}if(i&&(n=this.rules.paragraph.exec(e))){e=e.substring(n[0].length),this.tokens.push({type:"paragraph",text:n[1].charAt(n[1].length-1)===`
|
|
`?n[1].slice(0,-1):n[1]});continue}if(n=this.rules.text.exec(e)){e=e.substring(n[0].length),this.tokens.push({type:"text",text:n[0]});continue}if(e)throw new Error("Infinite loop on byte: "+e.charCodeAt(0))}return this.tokens};var _={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:Z,tag:"^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(?!\s*\])((?:\\[\[\]]?|[^\[\]\\])+)\]/,nolink:/^!?\[(?!\s*\])((?:\[[^\[\]]*\]|\\[\[\]]|[^\[\]])*)\](?:\[\])?/,strong:/^__([^\s_])__(?!_)|^\*\*([^\s*])\*\*(?!\*)|^__([^\s][\s\S]*?[^\s])__(?!_)|^\*\*([^\s][\s\S]*?[^\s])\*\*(?!\*)/,em:/^_([^\s_])_(?!_)|^\*([^\s*<\[])\*(?!\*)|^_([^\s<][\s\S]*?[^\s_])_(?!_|[^\spunctuation])|^_([^\s_<][\s\S]*?[^\s])_(?!_|[^\spunctuation])|^\*([^\s<"][\s\S]*?[^\s\*])\*(?!\*|[^\spunctuation])|^\*([^\s*"<\[][\s\S]*?[^\s])\*(?!\*)/,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:Z,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\<!\[`*]|\b_|$)|[^ ](?= {2,}\n))|(?= {2,}\n))/};_._punctuation=`!"#$%&'()*+,\\-./:;<=>?@\\[^_{|}~`;_.em=E(_.em).replace(/punctuation/g,_._punctuation).getRegex();_._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g;_._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/;_._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/;_.autolink=E(_.autolink).replace("scheme",_._scheme).replace("email",_._email).getRegex();_._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/;_.tag=E(_.tag).replace("comment",y._comment).replace("attribute",_._attribute).getRegex();_._label=/(?:\[[^\[\]]*\]|\\.|`[^`]*`|[^\[\]\\`])*?/;_._href=/<(?:\\[<>]?|[^\s<>\\])*>|[^\s\x00-\x1f]*/;_._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/;_.link=E(_.link).replace("label",_._label).replace("href",_._href).replace("title",_._title).getRegex();_.reflink=E(_.reflink).replace("label",_._label).getRegex();_.normal=N({},_);_.pedantic=N({},_.normal,{strong:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,em:/^_(?=\S)([\s\S]*?\S)_(?!_)|^\*(?=\S)([\s\S]*?\S)\*(?!\*)/,link:E(/^!?\[(label)\]\((.*?)\)/).replace("label",_._label).getRegex(),reflink:E(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",_._label).getRegex()});_.gfm=N({},_.normal,{escape:E(_.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^~+(?=\S)([\s\S]*?\S)~+/,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\<!\[`*~]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@))|(?= {2,}\n|[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@))/});_.gfm.url=E(_.gfm.url,"i").replace("email",_.gfm._extended_email).getRegex();_.breaks=N({},_.gfm,{br:E(_.br).replace("{2,}","*").getRegex(),text:E(_.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()});function U(e,i){if(this.options=i||T.defaults,this.links=e,this.rules=_.normal,this.renderer=this.options.renderer||new L,this.renderer.options=this.options,!this.links)throw new Error("Tokens array requires a `links` property.");this.options.pedantic?this.rules=_.pedantic:this.options.gfm&&(this.options.breaks?this.rules=_.breaks:this.rules=_.gfm)}U.rules=_;U.output=function(e,i,t){var s=new U(i,t);return s.output(e)};U.prototype.output=function(e){for(var i="",t,s,n,a,r,o;e;){if(r=this.rules.escape.exec(e)){e=e.substring(r[0].length),i+=S(r[1]);continue}if(r=this.rules.tag.exec(e)){!this.inLink&&/^<a /i.test(r[0])?this.inLink=!0:this.inLink&&/^<\/a>/i.test(r[0])&&(this.inLink=!1),!this.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(r[0])?this.inRawBlock=!0:this.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(r[0])&&(this.inRawBlock=!1),e=e.substring(r[0].length),i+=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(r[0]):S(r[0]):r[0];continue}if(r=this.rules.link.exec(e)){var l=tc(r[2],"()");if(l>-1){var c=4+r[1].length+l;r[2]=r[2].substring(0,l),r[0]=r[0].substring(0,c).trim(),r[3]=""}e=e.substring(r[0].length),this.inLink=!0,n=r[2],this.options.pedantic?(t=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(n),t?(n=t[1],a=t[3]):a=""):a=r[3]?r[3].slice(1,-1):"",n=n.trim().replace(/^<([\s\S]*)>$/,"$1"),i+=this.outputLink(r,{href:U.escapes(n),title:U.escapes(a)}),this.inLink=!1;continue}if((r=this.rules.reflink.exec(e))||(r=this.rules.nolink.exec(e))){if(e=e.substring(r[0].length),t=(r[2]||r[1]).replace(/\s+/g," "),t=this.links[t.toLowerCase()],!t||!t.href){i+=r[0].charAt(0),e=r[0].substring(1)+e;continue}this.inLink=!0,i+=this.outputLink(r,t),this.inLink=!1;continue}if(r=this.rules.strong.exec(e)){e=e.substring(r[0].length),i+=this.renderer.strong(this.output(r[4]||r[3]||r[2]||r[1]));continue}if(r=this.rules.em.exec(e)){e=e.substring(r[0].length),i+=this.renderer.em(this.output(r[6]||r[5]||r[4]||r[3]||r[2]||r[1]));continue}if(r=this.rules.code.exec(e)){e=e.substring(r[0].length),i+=this.renderer.codespan(S(r[2].trim(),!0));continue}if(r=this.rules.br.exec(e)){e=e.substring(r[0].length),i+=this.renderer.br();continue}if(r=this.rules.del.exec(e)){e=e.substring(r[0].length),i+=this.renderer.del(this.output(r[1]));continue}if(r=this.rules.autolink.exec(e)){e=e.substring(r[0].length),r[2]==="@"?(s=S(this.mangle(r[1])),n="mailto:"+s):(s=S(r[1]),n=s),i+=this.renderer.link(n,null,s);continue}if(!this.inLink&&(r=this.rules.url.exec(e))){if(r[2]==="@")s=S(r[0]),n="mailto:"+s;else{do o=r[0],r[0]=this.rules._backpedal.exec(r[0])[0];while(o!==r[0]);s=S(r[0]),r[1]==="www."?n="http://"+s:n=s}e=e.substring(r[0].length),i+=this.renderer.link(n,null,s);continue}if(r=this.rules.text.exec(e)){e=e.substring(r[0].length),this.inRawBlock?i+=this.renderer.text(this.options.sanitize?this.options.sanitizer?this.options.sanitizer(r[0]):S(r[0]):r[0]):i+=this.renderer.text(S(this.smartypants(r[0]))),i=i.replace(/\n+/g,"<br/>");continue}if(e)throw new Error("Infinite loop on byte: "+e.charCodeAt(0))}return i};U.escapes=function(e){return e&&e.replace(U.rules._escapes,"$1")};U.prototype.outputLink=function(e,i){var t=i.href,s=i.title?S(i.title):null;return e[0].charAt(0)!=="!"?this.renderer.link(t,s,this.output(e[1])):this.renderer.image(t,s,S(e[1]))};U.prototype.smartypants=function(e){return this.options.smartypants?e.replace(/---/g,"\u2014").replace(/--/g,"\u2013").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1\u2018").replace(/'/g,"\u2019").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1\u201C").replace(/"/g,"\u201D").replace(/\.{3}/g,"\u2026"):e};U.prototype.mangle=function(e){if(!this.options.mangle)return e;for(var i="",t=e.length,s=0,n;s<t;s++)n=e.charCodeAt(s),Math.random()>.5&&(n="x"+n.toString(16)),i+="&#"+n+";";return i};function L(e){this.options=e||T.defaults}L.prototype.code=function(e,i,t){var s=(i||"").match(/\S*/)[0];if(this.options.highlight){var n=this.options.highlight(e,s);n!=null&&n!==e&&(t=!0,e=n)}return s?'<pre><code class="'+this.options.langPrefix+S(s,!0)+'">'+(t?e:S(e,!0))+`</code></pre>
|
|
`:"<pre><code>"+(t?e:S(e,!0))+"</code></pre>"};L.prototype.blockquote=function(e){return`<blockquote>
|
|
`+e+`</blockquote>
|
|
`};L.prototype.html=function(e){return e};L.prototype.heading=function(e,i,t,s){return this.options.headerIds?"<h"+i+' id="'+this.options.headerPrefix+s.slug(t)+'">'+e+"</h"+i+`>
|
|
`:"<h"+i+">"+e+"</h"+i+`>
|
|
`};L.prototype.hr=function(){return this.options.xhtml?`<hr/>
|
|
`:`<hr>
|
|
`};L.prototype.list=function(e,i,t){var s=i?"ol":"ul",n=i&&t!==1?' start="'+t+'"':"";return"<"+s+n+`>
|
|
`+e+"</"+s+`>
|
|
`};L.prototype.listitem=function(e){const i=/\<input.+\>/;let t="";return i.test(e)&&(t="list-item-checkbox",/checked/.test(e)&&(t+=" list-item-checkbox-checked")),`<li class="${t} ">${e}</li>
|
|
`};L.prototype.checkbox=function(e){return"<input "+(e?"checked ":"")+'disabled type="checkbox"'+(this.options.xhtml?" /":"")+"> "};L.prototype.paragraph=function(e){return"<p>"+e+`</p>
|
|
`};L.prototype.table=function(e,i){return i&&(i="<tbody>"+i+"</tbody>"),`<table>
|
|
<thead>
|
|
`+e+`</thead>
|
|
`+i+`</table>
|
|
`};L.prototype.tablerow=function(e){return`<tr>
|
|
`+e+`</tr>
|
|
`};L.prototype.tablecell=function(e,i){var t=i.header?"th":"td",s=i.align?"<"+t+' align="'+i.align+'">':"<"+t+">";return s+e+"</"+t+`>
|
|
`};L.prototype.strong=function(e){return"<strong>"+e+"</strong>"};L.prototype.em=function(e){return"<em>"+e+"</em>"};L.prototype.codespan=function(e){return"<code>"+e+"</code>"};L.prototype.br=function(){return this.options.xhtml?"<br/>":"<br>"};L.prototype.del=function(e){return"<del>"+e+"</del>"};L.prototype.link=function(e,i,t){if(e=hs(this.options.sanitize,this.options.baseUrl,e),e===null)return t;var s='<a href="'+S(e)+'"';return i&&(s+=' title="'+i+'"'),s+=">"+t+"</a>",s};L.prototype.image=function(e,i,t){if(e=hs(this.options.sanitize,this.options.baseUrl,e),e===null)return t;var s='<img src="'+e+'" alt="'+t+'"';return i&&(s+=' title="'+i+'"'),s+=this.options.xhtml?"/>":">",s};L.prototype.text=function(e){return e};function H(){}H.prototype.strong=H.prototype.em=H.prototype.codespan=H.prototype.del=H.prototype.text=function(e){return e};H.prototype.link=H.prototype.image=function(e,i,t){return""+t};H.prototype.br=function(){return""};function z(e){this.tokens=[],this.token=null,this.options=e||T.defaults,this.options.renderer=this.options.renderer||new L,this.renderer=this.options.renderer,this.renderer.options=this.options,this.slugger=new Te}z.parse=function(e,i){var t=new z(i);return t.parse(e)};z.prototype.parse=function(e){this.inline=new U(e.links,this.options),this.inlineText=new U(e.links,N({},this.options,{renderer:new H})),this.tokens=e.reverse();for(var i="";this.next();)i+=this.tok();return i};z.prototype.next=function(){return this.token=this.tokens.pop(),this.token};z.prototype.peek=function(){return this.tokens[this.tokens.length-1]||0};z.prototype.parseText=function(){for(var e=this.token.text;this.peek().type==="text";)e+=`
|
|
`+this.next().text;return this.inline.output(e)};z.prototype.tok=function(){switch(this.token.type){case"space":return"";case"hr":return this.renderer.hr();case"heading":return this.renderer.heading(this.inline.output(this.token.text),this.token.depth,ds(this.inlineText.output(this.token.text)),this.slugger);case"code":return this.renderer.code(this.token.text,this.token.lang,this.token.escaped);case"table":{var e="",i="",t,s,n,a;for(n="",t=0;t<this.token.header.length;t++)n+=this.renderer.tablecell(this.inline.output(this.token.header[t]),{header:!0,align:this.token.align[t]});for(e+=this.renderer.tablerow(n),t=0;t<this.token.cells.length;t++){for(s=this.token.cells[t],n="",a=0;a<s.length;a++)n+=this.renderer.tablecell(this.inline.output(s[a]),{header:!1,align:this.token.align[a]});i+=this.renderer.tablerow(n)}return this.renderer.table(e,i)}case"blockquote_start":{for(i="";this.next().type!=="blockquote_end";)i+=this.tok();return this.renderer.blockquote(i)}case"list_start":{i="";for(var r=this.token.ordered,o=this.token.start;this.next().type!=="list_end";)i+=this.tok();return this.renderer.list(i,r,o)}case"list_item_start":{i="";var l=this.token.loose,c=this.token.checked,u=this.token.task;for(this.token.task&&(i+=this.renderer.checkbox(c));this.next().type!=="list_item_end";)i+=!l&&this.token.type==="text"?this.parseText():this.tok();return this.renderer.listitem(i,u,c)}case"html":return this.renderer.html(this.token.text);case"paragraph":return this.renderer.paragraph(this.inline.output(this.token.text));case"text":return this.renderer.paragraph(this.parseText());default:{var h='Token with "'+this.token.type+'" type was not found.';if(this.options.silent)console.log(h);else throw new Error(h)}}};function Te(){this.seen={}}Te.prototype.slug=function(e){var i=e.toLowerCase().trim().replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-");if(this.seen.hasOwnProperty(i)){var t=i;do this.seen[t]++,i=t+"-"+this.seen[t];while(this.seen.hasOwnProperty(i))}return this.seen[i]=0,i};function S(e,i){if(i){if(S.escapeTest.test(e))return e.replace(S.escapeReplace,function(t){return S.replacements[t]})}else if(S.escapeTestNoEncode.test(e))return e.replace(S.escapeReplaceNoEncode,function(t){return S.replacements[t]});return e}S.escapeTest=/[&<>"']/;S.escapeReplace=/[&<>"']/g;S.replacements={"&":"&","<":"<",">":">",'"':""","'":"'"};S.escapeTestNoEncode=/[<>"']|&(?!#?\w+;)/;S.escapeReplaceNoEncode=/[<>"']|&(?!#?\w+;)/g;function ds(e){return e.replace(/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,function(i,t){return t=t.toLowerCase(),t==="colon"?":":t.charAt(0)==="#"?t.charAt(1)==="x"?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):""})}function E(e,i){return e=e.source||e,i=i||"",{replace:function(t,s){return s=s.source||s,s=s.replace(/(^|[^\[])\^/g,"$1"),e=e.replace(t,s),this},getRegex:function(){return new RegExp(e,i)}}}function hs(e,i,t){if(e){try{var s=decodeURIComponent(ds(t)).replace(/[^\w:]/g,"").toLowerCase()}catch{return null}if(s.indexOf("javascript:")===0||s.indexOf("vbscript:")===0||s.indexOf("data:")===0)return null}i&&!ec.test(t)&&(t=Zl(i,t));try{t=encodeURI(t).replace(/%25/g,"%")}catch{return null}return t}function Zl(e,i){return de[" "+e]||(/^[^:]+:\/*[^/]*$/.test(e)?de[" "+e]=e+"/":de[" "+e]=ps(e,"/",!0)),e=de[" "+e],i.slice(0,2)==="//"?e.replace(/:[\s\S]*/,":")+i:i.charAt(0)==="/"?e.replace(/(:\/*[^/]*)[\s\S]*/,"$1")+i:e+i}var de={},ec=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function Z(){}Z.exec=Z;function N(e){for(var i=1,t,s;i<arguments.length;i++){t=arguments[i];for(s in t)Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s])}return e}function he(e,i){var t=e.replace(/\|/g,function(a,r,o){for(var l=!1,c=r;--c>=0&&o[c]==="\\";)l=!l;return l?"|":" |"}),s=t.split(/ \|/),n=0;if(s.length>i)s.splice(i);else for(;s.length<i;)s.push("");for(;n<s.length;n++)s[n]=s[n].trim().replace(/\\\|/g,"|");return s}function ps(e,i,t){if(e.length===0)return"";for(var s=0;s<e.length;){var n=e.charAt(e.length-s-1);if(n===i&&!t)s++;else if(n!==i&&t)s++;else break}return e.substr(0,e.length-s)}function tc(e,i){if(e.indexOf(i[1])===-1)return-1;for(var t=0,s=0;s<e.length;s++)if(e[s]==="\\")s++;else if(e[s]===i[0])t++;else if(e[s]===i[1]&&(t--,t<0))return s;return-1}function Rt(e){e&&e.sanitize&&!e.silent&&console.warn("index(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}function T(e,i,t){if(typeof e=="undefined"||e===null)throw new Error("index(): input parameter is undefined or null");if(typeof e!="string")throw new Error("index(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected");if(t||typeof i=="function"){t||(t=i,i=null),i=N({},T.defaults,i||{}),Rt(i);var s=i.highlight,n,a,r=0;try{n=V.lex(e,i)}catch(l){return t(l)}a=n.length;var o=function(l){if(l)return i.highlight=s,t(l);var c;try{c=z.parse(n,i)}catch(u){l=u}return i.highlight=s,l?t(l):t(null,c)};if(!s||s.length<3||(delete i.highlight,!a))return o();for(;r<n.length;r++)(function(l){return l.type!=="code"?--a||o():s(l.text,l.lang,function(c,u){if(c)return o(c);if(u==null||u===l.text)return--a||o();l.text=u,l.escaped=!0,--a||o()})})(n[r]);return}try{return i&&(i=N({},T.defaults,i)),Rt(i),z.parse(V.lex(e,i),i)}catch(l){if(l.message+=`
|
|
Please report this to https://github.com/markedjs/marked.`,(i||T.defaults).silent)return"<p>An error occurred:</p><pre>"+S(l.message+"",!0)+"</pre>";throw l}}T.options=T.setOptions=function(e){return N(T.defaults,e),T};T.getDefaults=function(){return{baseUrl:null,breaks:!1,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:new L,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,xhtml:!1}};T.defaults=T.getDefaults();T.Parser=z;T.parser=z.parse;T.Renderer=L;T.TextRenderer=H;T.Lexer=V;T.lexer=V.lex;T.InlineLexer=U;T.inlineLexer=U.output;T.Slugger=Te;T.parse=T;const sc=new T.Renderer;var ic=T.setOptions({renderer:sc,gfm:!0,tables:!0,breaks:!1,pedantic:!1,sanitize:!1,smartLists:!0}),nc=function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("div",{staticClass:"vmpreview-nostyle",domProps:{innerHTML:e._s(e.html)}})},ac=[];const rc={name:"VMPreviewNostyle",props:{value:{default:""}},data(){return{html:""}},mounted(){this.translateMarkdown()},methods:{translateMarkdown(){this.html=ic(this.value,{sanitize:!1}).replace(/href="/gi,'target="_blank" href="')}},watch:{value(){this.translateMarkdown()}}},Ut={};var oc=m(rc,nc,ac,!1,lc,null,null,null);function lc(e){for(let i in Ut)this[i]=Ut[i]}var cc=function(){return oc.exports}(),uc=function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("div",{staticClass:"project-invite-warp"},[t("Modal",{attrs:{title:e.$L("\u52A0\u5165\u9879\u76EE"),"mask-closable":!1},model:{value:e.show,callback:function(s){e.show=s},expression:"show"}},[e.loadIng>0?t("div",{staticClass:"invite-load"},[t("Loading",{staticClass:"invite-load-icon"})],1):e.project.id>0?t("div",{staticClass:"invite-content"},[t("p",{staticClass:"invite-title",attrs:{slot:"title"},domProps:{innerHTML:e._s(e.transformEmojiToHtml(e.project.name))},slot:"title"}),e.project.desc?t("div",{staticClass:"invite-desc user-select-auto"},[t("VMPreviewNostyle",{attrs:{value:e.project.desc}})],1):t("div",[e._v(e._s(e.$L("\u6682\u65E0\u4ECB\u7ECD")))])]):t("div",[t("p",[e._v(e._s(e.$L("\u9080\u8BF7\u5730\u5740\u4E0D\u5B58\u5728\u6216\u5DF2\u88AB\u5220\u9664\uFF01")))])]),t("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[e.already?[e.project.id>0?t("Button",{attrs:{type:"default"},on:{click:function(s){e.show=!1}}},[e._v(e._s(e.$L("\u5173\u95ED")))]):e._e(),e.already?t("Button",{attrs:{type:"success",icon:"md-checkmark-circle-outline"},on:{click:e.goProject}},[e._v(e._s(e.$L("\u5DF2\u52A0\u5165")))]):e._e()]:e.project.id>0?[e.project.id>0?t("Button",{attrs:{disabled:e.joinLoad>0,type:"default"},on:{click:function(s){e.show=!1}}},[e._v(e._s(e.$L("\u53D6\u6D88")))]):e._e(),t("Button",{attrs:{type:"primary",loading:e.joinLoad>0},on:{click:e.joinProject}},[e._v(e._s(e.$L("\u52A0\u5165\u9879\u76EE")))])]:[t("Button",{attrs:{type:"default"},on:{click:function(s){e.show=!1}}},[e._v(e._s(e.$L("\u5173\u95ED")))])]],2)])],1)},dc=[];const hc={name:"ProjectInvite",components:{VMPreviewNostyle:cc},data(){return{show:!1,code:"",loadIng:0,joinLoad:0,already:!1,project:{}}},mounted(){C.on("openProjectInvite",this.open)},beforeDestroy(){C.off("openProjectInvite",this.open)},methods:{transformEmojiToHtml:us,open(e){this.code=e,this.show=!0,this.getData()},getData(){this.loadIng++,this.already=!1,this.project={},this.$store.dispatch("call",{url:"project/invite/info",data:{code:this.code}}).then(({data:e})=>{this.already=e.already,this.project=e.project}).catch(()=>{this.project={}}).finally(e=>{this.loadIng--})},joinProject(){this.joinLoad++,this.$store.dispatch("call",{url:"project/invite/join",data:{code:this.code}}).then(({data:e})=>{this.already=e.already,this.project=e.project,this.goProject()}).catch(({msg:e})=>{$A.modalError(e)}).finally(e=>{this.joinLoad--})},goProject(){this.show=!1,this.$nextTick(()=>{$A.goForward({name:"manage-project",params:{projectId:this.project.id}})})}}},Ot={};var pc=m(hc,uc,dc,!1,fc,"6b7b835e",null,null);function fc(e){for(let i in Ot)this[i]=Ot[i]}var mc=function(){return pc.exports}(),gc=function(){var e=this,i=e.$createElement,t=e._self._c||i;return e.show&&e.userid>0?t("transition",{attrs:{name:"mobile-notify"}},[t("div",{staticClass:"mobile-notification",class:{show:e.show},style:e.notifyStyle,on:{click:function(s){return s.stopPropagation(),e.onClick.apply(null,arguments)},touchstart:e.onTouchstart,touchmove:e.onTouchmove}},[t("UserAvatar",{attrs:{userid:e.userid,size:40,"show-name":"","name-text":e.title}}),t("div",{staticClass:"notification-desc no-dark-content"},[e._v(e._s(e.desc))])],1)]):e._e()},_c=[];const vc={name:"MobileNotification",data(){return{userid:0,title:"",desc:"",duration:6e3,callback:null,show:!1,timer:null,startY:0}},mounted(){C.on("openMobileNotification",this.open)},beforeDestroy(){C.off("openMobileNotification",this.open),this.timer&&clearTimeout(this.timer),this.show=!1},computed:{...x(["safeAreaSize"]),notifyStyle({windowScrollY:e,safeAreaSize:i}){return{marginTop:e+i.top+"px"}}},methods:{open(e){!$A.isJson(e)||(this.userid=e.userid||0,this.title=e.title||"",this.desc=e.desc||"",this.duration=typeof e.duration=="number"?e.duration:6e3,this.callback=typeof e.callback=="function"?e.callback:null,this.show=!0,this.timer&&clearTimeout(this.timer),this.duration>0&&(this.timer=setTimeout(this.close,this.duration)),$A.eeuiAppSendMessage({action:"setVibrate"}))},close(){this.show=!1},onClick(){this.close(),typeof this.callback=="function"&&this.callback()},onTouchstart(e){this.startY=e.touches[0].clientY},onTouchmove(e){this.startY>0&&this.startY-e.touches[0].clientY>10&&(this.startY=0,this.close())}}},Bt={};var $c=m(vc,gc,_c,!1,yc,null,null,null);function yc(e){for(let i in Bt)this[i]=Bt[i]}var wc=function(){return $c.exports}(),kc=function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("div",{staticClass:"mobile-back"},[e.isVisible&&e.x>20?t("div",{staticClass:"back-semicircle",style:e.style}):e._e()])},bc=[];const Ac={name:"MobileBack",data(){return{x:0,y:0,isVisible:!1,isTouched:!1,isScrolling:void 0,touchesStart:{}}},created(){this.appAndroidEvents()},mounted(){document.addEventListener("touchstart",this.touchstart),document.addEventListener("touchmove",this.touchmove,{passive:!1}),document.addEventListener("touchend",this.touchend)},beforeDestroy(){document.removeEventListener("touchstart",this.touchstart),document.removeEventListener("touchmove",this.touchmove),document.removeEventListener("touchend",this.touchend)},computed:{...x(["fileLists","messengerSearchKey","mobileTabbar"]),style(){const i=Math.max(135,this.y)+this.windowScrollY,t=this.windowHeight-135;return{top:Math.min(i,t)+"px"}},fileFolderId(){const{folderId:e}=this.$route.params;return parseInt(/^\d+$/.test(e)?e:0)}},watch:{isVisible(e){this.$store.state.touchBackInProgress=e}},methods:{getXY(e){const i=e.touches[0];this.x=i.clientX,this.y=i.clientY},touchstart(e){this.getXY(e),this.isTouched=this.canBack()&&this.x<20,this.isScrolling=void 0,this.touchesStart.x=e.type==="touchstart"?e.targetTouches[0].pageX:e.pageX,this.touchesStart.y=e.type==="touchstart"?e.targetTouches[0].pageY:e.pageY},touchmove(e){if(!this.isTouched)return;const i=e.type==="touchmove"?e.targetTouches[0].pageX:e.pageX,t=e.type==="touchmove"?e.targetTouches[0].pageY:e.pageY;if(typeof this.isScrolling=="undefined"){const s=Math.abs(t-this.touchesStart.y),n=Math.abs(i-this.touchesStart.x)*1.5;this.isScrolling=s>n}if(this.isScrolling){this.isTouched=!1;return}this.isVisible=!0,this.getXY(e),e.preventDefault()},touchend(){this.x>90&&this.isVisible&&this.onBack(),this.x=0,this.isVisible=!1},canBack(){if(!this.mobileTabbar||this.$Modal.visibleList().length>0||this.fileFolderId>0)return!0;if(this.routeName==="manage-messenger"){if(this.$route.params.dialogAction==="contacts"){if(this.messengerSearchKey.contacts)return!0}else if(this.messengerSearchKey.dialog)return!0}return!1},onBack(){if(this.$store.commit("menu/operation",{}),!this.$Modal.removeLast()){if(this.routeName==="manage-file"){if(this.fileFolderId>0){const e=this.fileLists.find(({id:i,permission:t})=>i==this.fileFolderId&&t>-1);if(e){const i=this.fileLists.find(({id:t,permission:s})=>t==e.pid&&s>-1);if(i){this.goForward({name:"manage-file",params:{folderId:i.id,fileId:null}});return}}this.goForward({name:"manage-file"});return}this.goForward({name:"manage-application"},!0);return}if(this.routeName==="manage-messenger"){if(this.$route.params.dialogAction==="contacts"){if(this.messengerSearchKey.contacts){this.$store.state.messengerSearchKey.contacts="";return}}else if(this.messengerSearchKey.dialog){this.$store.state.messengerSearchKey.dialog="";return}}this.goBack()}},appAndroidEvents(){this.$isEEUIApp&&$A.isAndroid()&&$A.eeuiAppSetPageBackPressed({pageName:"firstPage"},e=>{this.canBack()?this.onBack():$A.eeuiAppGoDesktop()})}}},Ft={};var Cc=m(Ac,kc,bc,!1,Sc,null,null,null);function Sc(e){for(let i in Ft)this[i]=Ft[i]}var Tc=function(){return Cc.exports}(),Dc=function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("EDropdown",{ref:"dropdown",staticClass:"general-operation-dropdown",style:e.styles,attrs:{trigger:"click",placement:"bottom",size:e.size},on:{command:e.onCommand,"visible-change":e.visibleChange}},[t("div",{ref:"icon",staticClass:"general-operation-icon"}),t("EDropdownMenu",{ref:"dropdownMenu",staticClass:"general-operation-more-dropdown menu-dropdown",attrs:{slot:"dropdown"},slot:"dropdown"},[t("li",{staticClass:"general-operation-more-warp",class:e.size},[t("ul",{style:e.ulStyle},e._l(e.list,function(s,n){return t("EDropdownItem",{key:n,attrs:{command:s.value,divided:!!s.divided,disabled:e.active===s.value&&!e.activeClick||!!s.disabled}},[t("div",{staticClass:"item-box",class:s.className,style:s.style},[t("div",{staticClass:"item"},[s.prefix?t("div",{staticClass:"item-prefix",domProps:{innerHTML:e._s(s.prefix)}}):e._e(),t("div",{staticClass:"item-label"},[e._v(e._s(e.language?e.$L(s.label):s.label))])]),e.tickShow?t("div",{staticClass:"tick"},[e.active===s.value&&!s.disabled?t("i",{staticClass:"taskfont"},[e._v("\uE684")]):e._e()]):e._e()])])}),1)])])],1)},Lc=[];const Ic={data(){return{visible:!1,list:[],size:"small",active:"",activeClick:!1,onUpdate:null,scrollHide:!0,tickShow:!0,maxHeight:0,language:!0,scrollTarget:null,menuTarget:null,styles:{}}},beforeDestroy(){this.removeEventListeners()},computed:{...x(["menuOperation"]),ulStyle({maxHeight:e}){return e>0?{maxHeight:`${e}px`}:{}}},watch:{menuOperation(e){if(e.event&&e.list){if(this.$refs.dropdown.visible&&this.menuTarget===e.event.target){this.hide();return}const i=e.event.target.getBoundingClientRect();this.styles={left:`${i.left}px`,top:`${i.top+this.windowScrollY}px`,width:`${i.width}px`,height:`${i.height}px`},this.list=e.list,this.size=["small","medium","large"].includes(e.size)?e.size:"small",this.active=e.active&&this.list.find(t=>t.value===e.active)?e.active:"",this.activeClick=typeof e.activeClick=="boolean"?e.activeClick:!1,this.onUpdate=typeof e.onUpdate=="function"?e.onUpdate:null,this.scrollHide=typeof e.scrollHide=="boolean"?e.scrollHide:!0,this.tickShow=typeof e.tickShow=="boolean"?e.tickShow:typeof e.active!="undefined",this.maxHeight=typeof e.maxHeight=="number"?e.maxHeight:0,this.language=typeof e.language=="boolean"?e.language:!0,this.$refs.icon.focus(),this.show(),this.updatePopper(),this.setupEventListeners(e.event)}else this.hide()},windowScrollY(){if(!this.visible||!this.menuTarget)return;const e=this.menuTarget.getBoundingClientRect();this.styles={left:`${e.left}px`,top:`${e.top+this.windowScrollY}px`,width:`${e.width}px`,height:`${e.height}px`},this.updatePopper()},visible(e){e||this.removeEventListeners()}},methods:{show(){this.$refs.dropdown.show()},hide(){this.$refs.dropdown.hide()},onCommand(e){this.hide(),typeof this.onUpdate=="function"&&this.onUpdate(e)},visibleChange(e){this.visible=e},updatePopper(){setTimeout(()=>{this.$refs.dropdownMenu.updatePopper()},0)},setupEventListeners(e){this.menuTarget=e.target;let i=this.getScrollParent(this.menuTarget);if((i===window.document.body||i===window.document.documentElement)&&(i=window),this.scrollTarget){if(this.scrollTarget===i)return;this.scrollTarget.removeEventListener("scroll",this.handlerEventListeners)}this.scrollTarget=i,this.scrollTarget.addEventListener("scroll",this.handlerEventListeners)},removeEventListeners(){this.scrollTarget&&(this.scrollTarget.removeEventListener("scroll",this.handlerEventListeners),this.scrollTarget=null)},handlerEventListeners(e){if(!this.visible||!this.menuTarget)return;if(this.scrollHide){this.hide();return}const i=e.target.getBoundingClientRect(),t=this.menuTarget.getBoundingClientRect();if(t.top<i.top||t.top>i.top+i.height){this.hide();return}this.styles={left:`${t.left}px`,top:`${t.top+this.windowScrollY}px`,width:`${t.width}px`,height:`${t.height}px`},this.updatePopper()},getScrollParent(e){const i=e.parentNode;return i?i===window.document?window.document.body.scrollTop||window.document.body.scrollLeft?window.document.body:window.document.documentElement:["scroll","auto"].indexOf(this.getStyleComputedProperty(i,"overflow"))!==-1||["scroll","auto"].indexOf(this.getStyleComputedProperty(i,"overflow-x"))!==-1||["scroll","auto"].indexOf(this.getStyleComputedProperty(i,"overflow-y"))!==-1?i:this.getScrollParent(e.parentNode):e},getStyleComputedProperty(e,i){return window.getComputedStyle(e,null)[i]}}},zt={};var xc=m(Ic,Dc,Lc,!1,Ec,null,null,null);function Ec(e){for(let i in zt)this[i]=zt[i]}var Mc=function(){return xc.exports}();const jc={data(){return{isCtrlCommandPressed:!1}},created(){this.handlePointerdown=this.handlePointerdown.bind(this),this.handlePointerup=this.handlePointerup.bind(this)},mounted(){document.addEventListener("pointerdown",this.handlePointerdown),document.addEventListener("pointerup",this.handlePointerup)},beforeDestroy(){document.removeEventListener("pointerdown",this.handlePointerdown),document.removeEventListener("pointerup",this.handlePointerup)},methods:{handlePointerdown(e){(e.ctrlKey||e.metaKey)&&(this.isCtrlCommandPressed=!0)},handlePointerup(e){!e.ctrlKey&&!e.metaKey&&(this.isCtrlCommandPressed=!1)}}};var Pc=function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("ModalAlive",{attrs:{"class-name":"common-search-box-modal",closable:!e.isFullscreen,fullscreen:e.isFullscreen,"mask-closable":!1,"footer-hide":!0,width:"768"},model:{value:e.showModal,callback:function(s){e.showModal=s},expression:"showModal"}},[t("div",{staticClass:"search-header"},[t("div",{staticClass:"search-input"},[t("div",{staticClass:"search-pre"},[e.loadIng>0?t("Loading"):t("Icon",{attrs:{type:"ios-search"}})],1),t("Form",{staticClass:"search-form",attrs:{action:"javascript:void(0)"},nativeOn:{submit:function(s){return s.preventDefault(),e.$A.eeuiAppKeyboardHide.apply(null,arguments)}}},[t("Input",{ref:"searchKey",attrs:{type:"search",placeholder:e.$L("\u8BF7\u8F93\u5165\u5173\u952E\u5B57")},model:{value:e.searchKey,callback:function(s){e.searchKey=s},expression:"searchKey"}})],1)],1),t("div",{staticClass:"search-close",on:{click:e.onHide}},[t("i",{staticClass:"taskfont"},[e._v("\uE6E5")])])]),t("div",{staticClass:"search-body",on:{touchstart:e.onTouchstart}},[t("div",{staticClass:"search-tags"},e._l(e.tags,function(s){return t("div",{key:s.type,staticClass:"tag-item",class:{action:s.type===e.action},on:{click:function(n){return e.onTag(s.type,n)}}},[t("i",{staticClass:"taskfont",domProps:{innerHTML:e._s(s.icon)}}),t("span",[e._v(e._s(e.$L(s.name)))]),s.type===e.action?t("i",{staticClass:"taskfont tag-close"},[e._v("\uE747")]):e._e()])}),0),e.total===0?[e.loadIng+e.loadPre>0||!e.searchKey.trim()?t("div",{staticClass:"search-empty"},[t("i",{staticClass:"taskfont"},[e._v("\uE60B")]),t("span",[e._v(e._s(e.$L(e.loadIng+e.loadPre>0?"\u6B63\u5728\u62FC\u547D\u641C\u7D22...":"\u8BF7\u8F93\u5165\u5173\u952E\u5B57\u641C\u7D22")))])]):t("div",{staticClass:"search-empty"},[t("i",{staticClass:"taskfont"},[e._v("\uE60B")]),t("span",{staticClass:"empty-label"},[e._v(e._s(e.$L("\u6682\u65E0\u76F8\u5173\u7ED3\u679C")))]),t("span",[e._v(e._s(e.$L("\u672A\u641C\u5230\u8DDF\u300C(*)\u300D\u76F8\u5173\u7684\u7ED3\u679C",e.searchKey)))])])]:t("div",{staticClass:"search-list"},e._l(e.list,function(s){return t("ul",{key:s.type},[e.action?e._e():t("li",{staticClass:"item-label"},[e._v(e._s(e.$L(s.name)))]),e._l(s.items,function(n){return t("li",{on:{click:function(a){return e.onClick(n)}}},[t("div",{staticClass:"item-icon"},[n.icons[0]==="file"?t("div",{class:`no-dark-content file-icon ${n.icons[1]}`}):n.icons[0]==="department"?t("i",{staticClass:"taskfont icon-avatar department"},[e._v("\uE75C")]):n.icons[0]==="project"?t("i",{staticClass:"taskfont icon-avatar project"},[e._v("\uE6F9")]):n.icons[0]==="task"?t("i",{staticClass:"taskfont icon-avatar task"},[e._v("\uE6F4")]):n.icons[0]==="user"?t("UserAvatar",{staticClass:"user-avatar",attrs:{userid:n.icons[1],size:38}}):n.icons[0]==="avatar"?t("EAvatar",{staticClass:"img-avatar",attrs:{src:n.icons[1],size:38}}):n.icons[0]==="people"?t("Icon",{staticClass:"icon-avatar",attrs:{type:"ios-people"}}):t("Icon",{staticClass:"icon-avatar",attrs:{type:"md-person"}})],1),t("div",{staticClass:"item-content"},[t("div",{staticClass:"item-title"},[t("div",{staticClass:"title-text",domProps:{innerHTML:e._s(e.transformEmojiToHtml(n.title))}}),n.activity?t("div",{staticClass:"title-activity",attrs:{title:n.activity}},[e._v(e._s(e.activityFormat(n.activity)))]):e._e()]),t("div",{staticClass:"item-desc"},[e._l(n.tags,function(a){return n.tags?t("span",{staticClass:"desc-tag",style:a.style},[e._v(e._s(a.name))]):e._e()}),t("span",{staticClass:"desc-text",domProps:{innerHTML:e._s(e.transformEmojiToHtml(n.desc))}})],2)])])})],2)}),0)],2)])},Rc=[];const Uc={name:"SearchBox",props:{},data(){return{loadPre:0,loadIng:0,searchKey:"",searchResults:[],searchTimer:null,showModal:!1,tags:[{type:"task",name:"\u4EFB\u52A1",icon:""},{type:"project",name:"\u9879\u76EE",icon:""},{type:"message",name:"\u6D88\u606F",icon:""},{type:"contact",name:"\u8054\u7CFB\u4EBA",icon:""},{type:"file",name:"\u6587\u4EF6",icon:""}],action:""}},mounted(){C.on("openSearch",this.onShow)},beforeDestroy(){C.off("openSearch",this.onShow)},watch:{searchKey(){this.preSearch()},action(){this.preSearch()},showModal(e){$A.eeuiAppSetScrollDisabled(e)}},computed:{...x(["themeName","keyboardShow"]),isFullscreen({windowWidth:e}){return e<576},items({searchKey:e,searchResults:i,action:t}){return i.filter(s=>s.key===e&&(!t||s.type===t))},total(){return this.items.length},list({action:e,tags:i}){const t=new Map,s=e?1/0:10;for(let n=0;n<this.items.length;n++){const a=this.items[n],r=a.type;t.has(r)||t.set(r,[]);const o=t.get(r);o.length<s&&o.push(a)}return i.reduce((n,a)=>(t.has(a.type)&&n.push({...a,items:t.get(a.type)}),n),[])}},methods:{transformEmojiToHtml:us,activityFormat(e){const i=$A.daytz(),t=$A.dayjs(e);return i.format("YYYY/MM/DD")===t.format("YYYY/MM/DD")?t.format("HH:mm"):i.year()===t.year()?t.format("MM/DD"):t.format("YYYY/MM/DD")||""},onClick(e){switch(e.type){case"task":this.$store.dispatch("openTask",e.rawData),this.onHide();break;case"project":if(e.rawData.archived_at){$A.modalWarning("\u9879\u76EE\u5DF2\u5F52\u6863\uFF0C\u65E0\u6CD5\u67E5\u770B");return}this.goForward({name:"manage-project",params:{projectId:e.id}}),this.onHide();break;case"message":this.$store.dispatch("openDialog",e.id).then(i=>{this.$store.state.dialogSearchMsgId=/^\d+$/.test(e.rawData.search_msg_id)?e.rawData.search_msg_id:0,this.routeName==="manage-messenger"&&this.onHide()}).catch(({msg:i})=>{$A.modalError(i||this.$L("\u6253\u5F00\u4F1A\u8BDD\u5931\u8D25"))});break;case"contact":this.$store.dispatch("openDialogUserid",e.id).then(i=>{this.routeName==="manage-messenger"&&this.onHide()}).catch(({msg:i})=>{$A.modalError(i||this.$L("\u6253\u5F00\u4F1A\u8BDD\u5931\u8D25"))});break;case"file":this.goForward({name:"manage-file",params:{folderId:e.rawData.pid,fileId:null,shakeId:e.id}}),this.$store.state.fileShakeId=e.id,setTimeout(()=>{this.$store.state.fileShakeId=0},600),this.onHide();break}},onTouchstart(){$A.eeuiAppKeyboardHide()},onTag(e,i){this.action=this.action!==e?e:"",$A.scrollToView(i.target,{block:"nearest",inline:"nearest",behavior:"smooth"})},onShow(){const e=this.total===0||this.showModal||!this.windowTouch;this.showModal=!0,e&&this.$nextTick(()=>{var t,s;const i=(s=(t=this.$refs.searchKey)==null?void 0:t.$refs)==null?void 0:s.input;i&&(i.style.caretColor="transparent",i.focus(),setTimeout(()=>{const n=i.value.length;i.setSelectionRange(n,n),i.style.caretColor=null},300))})},onHide(){this.showModal=!1},preSearch(){!this.searchKey.trim()||(this.searchTimer&&(clearTimeout(this.searchTimer),this.searchTimer=null,this.loadPre--),this.loadPre++,this.searchTimer=setTimeout(()=>{this.searchKey.trim()&&this.onSearch(),this.searchTimer=null,this.loadPre--},500))},onSearch(){if(this.action){this.distSearch(this.action);return}this.tags.forEach(({type:e})=>this.distSearch(e))},distSearch(e){const i=this[`search${e.charAt(0).toUpperCase()}${e.slice(1)}`];return typeof i=="function"?(i(this.searchKey),!0):!1},echoSearch(e,i="id"){e.forEach(t=>{const s=this.searchResults.findIndex(n=>n[i]===t[i]&&n.type===t.type);s>-1?this.searchResults.splice(s,1,t):this.searchResults.push(t)})},searchTask(e){this.loadIng++,this.$store.dispatch("call",{url:"project/task/lists",data:{keys:{name:e},archived:"all",pagesize:this.action?50:10}}).then(({data:i})=>{const t=$A.dayjs().unix(),s=i.data.map(n=>{const a=[];return n.complete_at?a.push({name:this.$L("\u5DF2\u5B8C\u6210"),style:"background-color:#0bc037"}):n.overdue?a.push({name:this.$L("\u8D85\u671F"),style:"background-color:#f00"}):n.end_at&&$A.dayjs(n.end_at).unix()-t<86400&&a.push({name:this.$L("\u5373\u5C06\u5230\u671F"),style:"background-color:#f80"}),n.archived_at&&a.push({name:this.$L("\u5DF2\u5F52\u6863"),style:"background-color:#ccc"}),{key:e,type:"task",icons:["task",null],tags:a,id:n.id,title:n.name,desc:n.desc,activity:n.end_at,rawData:n}});this.echoSearch(s)}).finally(i=>{this.loadIng--})},searchProject(e){this.loadIng++,this.$store.dispatch("call",{url:"project/lists",data:{keys:{name:e},archived:"all",pagesize:this.action?50:10}}).then(({data:i})=>{const t=i.data.map(s=>{const n=[];return s.owner&&n.push({name:this.$L("\u8D1F\u8D23\u4EBA"),style:"background-color:#0bc037"}),s.archived_at&&n.push({name:this.$L("\u5DF2\u5F52\u6863"),style:"background-color:#ccc"}),{key:e,type:"project",icons:["project",null],tags:n,id:s.id,title:s.name,desc:s.desc||"",activity:s.updated_at,rawData:s}});this.echoSearch(t)}).finally(i=>{this.loadIng--})},searchMessage(e){this.loadIng++,this.$store.dispatch("call",{url:"dialog/msg/search",data:{key:e,take:this.action?50:10}}).then(({data:i})=>{const t=i.data.map(s=>{let n="person",a=null;return s.type=="group"?s.avatar?(n="avatar",a=s.avatar):s.group_type=="department"?n="department":s.group_type=="project"?n="project":["task","okr"].includes(s.group_type)?n="task":n="people":s.dialog_user&&(n="user",a=s.dialog_user.userid),{key:e,type:"message",icons:[n,a],tags:[],id:s.id,title:s.name,desc:$A.getMsgSimpleDesc(s.last_msg),activity:s.last_at,searchMsgId:s.search_msg_id,rawData:s}});this.echoSearch(t,"searchMsgId")}).finally(i=>{this.loadIng--})},searchContact(e){this.loadIng++,this.$store.dispatch("call",{url:"users/search",data:{keys:{key:e},pagesize:this.action?50:10}}).then(({data:i})=>{const t=i.map(s=>({key:e,type:"contact",icons:["user",s.userid],tags:[],id:s.userid,title:s.nickname,desc:s.profession||"",activity:s.line_at,rawData:s}));this.echoSearch(t)}).finally(i=>{this.loadIng--})},searchFile(e){this.loadIng++,this.$store.dispatch("call",{url:"file/search",data:{key:e,take:this.action?50:10}}).then(({data:i})=>{const t=i.map(s=>{const n=[];return s.share&&n.push({name:this.$L(s.userid==this.userId?"\u5DF2\u5171\u4EAB":"\u5171\u4EAB"),style:"background-color:#0bc037"}),{key:e,type:"file",icons:["file",s.type],tags:n,id:s.id,title:s.name,desc:s.type==="folder"?"":$A.bytesToSize(s.size),activity:s.updated_at,rawData:s}});this.echoSearch(t)}).finally(i=>{this.loadIng--})}}},Nt={};var Oc=m(Uc,Pc,Rc,!1,Bc,null,null,null);function Bc(e){for(let i in Nt)this[i]=Nt[i]}var Fc=function(){return Oc.exports}(),zc=function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("ModalAlive",{attrs:{"class-name":"common-user-detail-modal",fullscreen:e.isFullscreen,"mask-closable":!1,"footer-hide":!0,width:"600"},model:{value:e.showModal,callback:function(s){e.showModal=s},expression:"showModal"}},[t("div",{staticClass:"user-detail-body"},[t("UserAvatar",{attrs:{userid:e.userData.userid,size:120,"show-state-dot":!1},on:{"on-click":e.onOpenAvatar}}),t("ul",{staticClass:"user-select-auto"},[t("li",{staticClass:"user-name"},[t("h1",[e._v(e._s(e.userData.nickname))]),e.userData.delete_at?t("em",{staticClass:"deleted no-dark-content"},[e._v(e._s(e.$L("\u5DF2\u5220\u9664")))]):e.userData.disable_at?t("em",{staticClass:"disabled no-dark-content"},[e._v(e._s(e.$L("\u5DF2\u79BB\u804C")))]):e._e()]),e.userData.bot?e._e():[t("li",[t("span",[e._v(e._s(e.$L("\u90E8\u95E8"))+": ")]),e._v(" "+e._s(e.userData.department_name||"-")+" ")]),t("li",[t("span",[e._v(e._s(e.$L("\u804C\u4F4D/\u804C\u79F0"))+": ")]),e._v(" "+e._s(e.userData.profession||"-")+" ")]),t("li",[t("span",[e._v(e._s(e.$L("\u6700\u540E\u5728\u7EBF"))+": ")]),e._v(" "+e._s(e.$A.newDateString(e.userData.line_at,"YYYY-MM-DD HH:mm")||"-")+" ")]),e.userData.delete_at?t("li",[t("strong",[t("span",[e._v(e._s(e.$L("\u5220\u9664\u65F6\u95F4"))+": ")]),e._v(e._s(e.$A.newDateString(e.userData.delete_at,"YYYY-MM-DD HH:mm")))])]):e.userData.disable_at?t("li",[t("strong",[t("span",[e._v(e._s(e.$L("\u79BB\u804C\u65F6\u95F4"))+": ")]),e._v(e._s(e.$A.newDateString(e.userData.disable_at,"YYYY-MM-DD HH:mm")))])]):e._e()]],2),t("Button",{attrs:{icon:"md-chatbubbles",disabled:!!e.userData.delete_at},on:{click:e.onOpenDialog}},[e._v(e._s(e.$L("\u5F00\u59CB\u804A\u5929")))])],1)])},Nc=[];const Hc={name:"UserDetail",data(){return{userData:{userid:0},showModal:!1}},mounted(){C.on("openUser",this.onShow)},beforeDestroy(){C.off("openUser",this.onShow)},watch:{...x(["cacheUserBasic"])},computed:{isFullscreen({windowWidth:e}){return e<576}},methods:{onShow(e){!/^\d+$/.test(e)||(this.$store.dispatch("showSpinner",600),this.$store.dispatch("getUserData",e).then(i=>{this.userData=i,this.showModal=!0}).finally(i=>{this.$store.dispatch("hiddenSpinner")}))},onHide(){this.showModal=!1},onOpenAvatar(){this.$store.dispatch("previewImage",this.userData.userimg)},onOpenDialog(){this.$store.dispatch("openDialogUserid",this.userData.userid).then(e=>{this.onHide()}).catch(({msg:e})=>{$A.modalError(e)})}}},Ht={};var Wc=m(Hc,zc,Nc,!1,Vc,null,null,null);function Vc(e){for(let i in Ht)this[i]=Ht[i]}var qc=function(){return Wc.exports}(),Yc=function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("div",{staticClass:"app-view",attrs:{id:"app"}},[t("div",{staticClass:"child-status-bar"}),t("keep-alive",[t("router-view",{staticClass:"child-view",on:{"~hook:mounted":function(s){return e.onRouterViewMounted.apply(null,arguments)}}})],1),t("div",{staticClass:"child-navigation-bar"}),t("TaskOperation"),t("MeetingManager"),t("ProjectInvite"),t("DropdownMenu"),t("FloatSpinner"),t("RightBottom"),t("PreviewImageState"),t("AuthException"),t("GuidePage"),t("UserDetail"),e.isFirstPage?t("MobileBack"):e._e(),e.isFirstPage?t("MobileNotification"):e._e(),e.windowLandscape?t("NetworkException"):e._e()],1)},Kc=[];const Jc={mixins:[jc],components:{SearchBox:Fc,UserDetail:qc,MobileBack:Tc,MobileNotification:wc,AuthException:ki,MeetingManager:Ql,ProjectInvite:mc,DropdownMenu:Mc,TaskOperation:El,NetworkException:Di,PreviewImageState:gi,RightBottom:ti,FloatSpinner:Ks,GuidePage:ji},data(){return{appInter:null,appActivated:!0,countDown:Math.min(30,60-$A.daytz().second()),lastCheckUpgradeYmd:$A.daytz().format("YYYY-MM-DD")}},created(){this.electronEvents(),this.eeuiEvents(),this.otherEvents()},mounted(){this.appInter=setInterval(this.appTimerHandler,1e3),$A.loadVConsole()},beforeDestroy(){this.appInter&&clearInterval(this.appInter)},computed:{...x(["ws","themeConf","windowOrientation","safeAreaSize","isFirstPage","mobileTabbar"]),statusColor({routeName:e,windowLandscape:i}){return e?i?"#f4f5f7":["login","manage-messenger","manage-project"].includes(e)||e.startsWith("manage-setting")?"#f8f8f8":null:null},navigationColor({routeName:e,windowLandscape:i,mobileTabbar:t}){return e?i?"#f4f5f7":["login","manage-messenger","manage-project","manage-setting"].includes(e)||t?"#f8f8f8":null:null},rootStyle(){return{"--window-scroll-y":`${this.windowScrollY}px`,"--status-bar-height":`${this.safeAreaSize.top}px`,"--status-bar-color":this.statusColor||"#ffffff","--navigation-bar-height":`${this.safeAreaSize.bottom}px`,"--navigation-bar-color":this.navigationColor||"#ffffff"}}},watch:{$route:{handler({name:e,path:i,params:t}){this.$store.state.routeName=e,this.$store.state.routePath=i,this.$store.state.mobileTabbar=e==="manage-project"&&!/^\d+$/.test(t.projectId)||["manage-dashboard","manage-messenger","manage-application"].includes(e)},immediate:!0},routePath:{handler(e){e&&this.userId>0&&(e=e.replace(/^\/manage\/file\/\d+\/(\d+)$/,"/single/file/$1"),this.$store.dispatch("websocketPath",e))},immediate:!0},userId:{handler(){this.$store.dispatch("websocketConnection"),this.$isEEUIApp&&(this.umengAliasTimer&&clearTimeout(this.umengAliasTimer),this.userId>0?($A.eeuiAppSendMessage({action:"initApp",apiUrl:$A.apiUrl(""),userid:this.userId,token:this.userToken,language:I,userAgent:window.navigator.userAgent}),$A.eeuiAppGetDeviceInfo().then(async e=>{let i=e.deviceName||e.modelName;e.systemName==="Android"&&($A.strExists(e.modelName,e.brand)?i=e.modelName:i=e.brand+" "+e.model),await this.$store.dispatch("call",{url:"users/device/edit",data:{device_name:i,app_brand:e.brand,app_model:e.model,app_os:e.systemName+" "+e.systemVersion}})}).catch(console.log),this.umengAliasTimer=setTimeout(e=>{this.umengAliasTimer=null,$A.eeuiAppSendMessage({action:"setUmengAlias",url:$A.apiUrl("users/umeng/alias")})},6e3)):$A.eeuiAppSendMessage({action:"delUmengAlias",url:$A.apiUrl("users/umeng/alias")}))},immediate:!0},rootStyle:{handler(e){for(const i in e)document.documentElement.style.setProperty(i,e[i])},immediate:!0},windowTouch:{handler(e){e?$A("body").addClass("window-touch"):$A("body").removeClass("window-touch")},immediate:!0},windowOrientation:{handler(e){$A("body").removeClass(["window-landscape","window-portrait"]),$A("body").addClass("window-"+e)},immediate:!0},isCtrlCommandPressed:{handler(e){this.$store.state.isModKey=e},immediate:!0},windowActive(e){if(!e){this.$store.dispatch("audioStop",!0);return}this.autoTheme(),$A.updateTimezone(),this.__windowTimer&&clearTimeout(this.__windowTimer),this.__timeoutTimer&&clearTimeout(this.__timeoutTimer),this.__windowTimer=setTimeout(async()=>{try{await this.$store.dispatch("call",{url:"users/socket/status"}),await new Promise((i,t)=>{this.$store.dispatch("websocketSend",{type:"handshake",callback:(s,n)=>{n?i():t(new Error("Handshake failed"))}}),this.__timeoutTimer=setTimeout(()=>t(new Error("Handshake timeout")),6e3)})}catch{await this.$store.dispatch("websocketConnection")}},600)}},methods:{appTimerHandler(){this.searchEnter(),this.countDown--,this.countDown<=0&&(this.countDown=Math.min(30,60-$A.daytz().second()),this.$store.dispatch("todayAndOverdue"))},searchEnter(){let e=$A(".search-container");if(e.length===0||e.attr("data-enter-init")==="init")return;e.attr("data-enter-init","init");let i=e.find("button[type='button']"),t=null;i.length!==0&&(i.each((s,n)=>{$A(n).text().indexOf("\u641C\u7D22")&&(t=$A(n))}),t!==null&&e.find("input.ivu-input").keydown(function(s){s.keyCode==13&&(t.hasClass("ivu-btn-loading")||t.click())}))},autoTheme(){this.themeConf==="auto"&&this.$store.dispatch("synchTheme")},onRouterViewMounted(){document.documentElement.setAttribute("data-platform",$A.isElectron?"desktop":$A.isEEUIApp?"app":"web")},getUrlMethodType(e){if(this.isCtrlCommandPressed||this.isApplicationProtocol(e)||this.isMeetingUrlStrict(e))return 1;if($A.getDomain(e)==$A.getDomain($A.mainUrl()))try{const{pathname:i,searchParams:t}=new URL(e);if(/^\/(uploads|api\/dialog\/msg\/download|api\/project\/task\/filedown)/.test(i)||/^\/api\/file\/content/.test(i)&&t.get("down")==="yes")return 1;if(/^\/meeting\/\d+\/\S+$/.test(i)){const s=i.split("/")[2];return C.emit("addMeeting",{type:"join",meetingid:s,meetingdisabled:!0}),2}if(/^\/manage\/project\/invite/.test(i)){const s=i.split("/"),n=s.length>4?s[4]:t.get("code");return C.emit("openProjectInvite",{code:n}),2}}catch{}return 0},isApplicationProtocol(e){const i=["thunder:","ed2k:","magnet:","weixin:","alipays:","mqq:","dingtalk:","baidumap:","iosamap:","androidamap:","tel:","sms:","mailto:","market:","intent:","taobao:","tmall:","jd:","pinduoduo:","vnd.youtube:","zhihu:","bilibili:","snssdk1128:","kwai:","fb:","twitter:","instagram:","linkedin:"],t=`${e}`.toLowerCase();return i.some(s=>t.startsWith(s))},isMeetingUrlStrict(e){const i=["zoom.us","meeting.tencent.com","teams.microsoft.com","meet.google.com","meeting.feishu.cn","meeting.dingtalk.com","webex.com","bluejeans.com","goto.com","gotomeeting.com","8x8.vc","meet.jit.si","jitsi.baidu.com","whereby.com","lifesize.com","starleaf.com","classroomscreen.com","bigbluebutton.org","matrix.to","meetings.vonage.com","voovmeeting.com","skype.com","maps.google.com","maps.apple.com","amap.com","map.baidu.com","map.qq.com","mapurl.cn","alipay.com","pay.weixin.qq.com","paypal.com/cgi-bin","checkout.stripe.com","pay.google.com","pay.qq.com","pay.baidu.com","apps.apple.com","play.google.com","itunes.apple.com","apps.samsung.com","microsoft.com/store","amazon.com/apps","apk.qq.com","app.mi.com","app.hicloud.com","pan.baidu.com","aliyundrive.com","drive.google.com","onedrive.live.com","xunlei.com","wx.qq.com","im.qq.com","web.whatsapp.com","web.telegram.org","discord.com/channels","messenger.com/call","workspace.dingtalk.com","douyin.com/live","live.kuaishou.com","live.bilibili.com","douyu.com/room","yy.com/x/","inke.cn/live","facebook.com/live","instagram.com/live","youtube.com/live","twitch.tv/live"],t=`${e}`.toLowerCase();return i.some(s=>t.indexOf(s)!==-1)},electronEvents(){!this.$Electron||(window.__onBeforeUnload=()=>{if(this.$store.dispatch("onBeforeUnload"),this.$Modal.removeLast())return!0},window.__onBeforeOpenWindow=({url:e})=>{const i=this.getUrlMethodType(e);return i===2?!0:i===1?!1:(this.$store.dispatch("openWebTabWindow",e),!0)},this.$Electron.listener("browserWindowBlur",e=>{this.$store.state.windowActive=!1}),this.$Electron.listener("browserWindowFocus",e=>{this.$store.state.windowActive=!0}),this.$Electron.listener("systemThemeChanged",e=>{this.autoTheme()}),$A.bindScreenshotKey(this.$store.state.cacheKeyboard),this.$Electron.sendMessage("setMenuLanguage",{copy:this.$L("\u590D\u5236"),back:this.$L("\u540E\u9000"),forward:this.$L("\u524D\u8FDB"),reload:this.$L("\u91CD\u65B0\u52A0\u8F7D"),print:this.$L("\u6253\u5370"),openInBrowser:this.$L("\u5728\u6D4F\u89C8\u5668\u4E2D\u6253\u5F00"),saveImageAs:this.$L("\u56FE\u7247\u5B58\u50A8\u4E3A..."),copyImage:this.$L("\u590D\u5236\u56FE\u7247"),copyEmailAddress:this.$L("\u590D\u5236\u7535\u5B50\u90AE\u4EF6\u5730\u5740"),copyLinkAddress:this.$L("\u590D\u5236\u94FE\u63A5\u5730\u5740"),copyImageAddress:this.$L("\u590D\u5236\u56FE\u7247\u5730\u5740"),failedToSaveImage:this.$L("\u56FE\u7247\u4FDD\u5B58\u5931\u8D25"),theImageFailedToSave:this.$L("\u56FE\u7247\u65E0\u6CD5\u4FDD\u5B58")}))},eeuiEvents(){!this.$isEEUIApp||($A.eeuiAppHideWebviewSnapshot(),window.__onAppActive=()=>{this.appActivated=!0,this.autoTheme(),$A.updateTimezone(),$A.IDBTest(),$A.eeuiAppHideWebviewSnapshot(),this.$store.dispatch("safeAreaInsets");const e=$A.daytz().format("YYYY-MM-DD");this.lastCheckUpgradeYmd!=e&&(this.lastCheckUpgradeYmd=e,$A.eeuiAppCheckUpdate())},window.__onAppDeactive=()=>{this.appActivated=!1,setTimeout(()=>{this.appActivated||$A.eeuiAppGetWebviewSnapshot(e=>{!e||this.appActivated||$A.eeuiAppShowWebviewSnapshot()})},500)},window.__onPagePause=()=>{this.$store.state.windowActive=!1,this.$store.dispatch("getBasicData",-1)},window.__onPageResume=e=>{this.$store.state.windowActive=!0,e>0?this.$store.dispatch("getBasicData",600):this.autoTheme()},window.__onCreateTarget=e=>{const i=this.getUrlMethodType(e);if(i!==2){if(i===1){$A.eeuiAppOpenWeb(e);return}this.$store.dispatch("openAppChildPage",{pageType:"app",pageTitle:" ",url:"web.js",params:{url:e}})}},window.__onMeetingEvent=e=>{if(!!$A.isJson(e))switch(e.act){case"getInfo":const i=(e.uuid+"").indexOf("88888")!==-1;this.$store.dispatch("call",{url:i?"users/meeting/tourist":"users/basic",data:{userid:i?e.uuid:(e.uuid+"").substring(6),tourist_id:e.uuid}}).then(({data:t})=>{var s,n;$A.eeuiAppSendMessage({action:"updateMeetingInfo",infos:{uuid:e.uuid,avatar:i?t==null?void 0:t.userimg:(s=t[0])==null?void 0:s.userimg,username:i?t==null?void 0:t.nickname:(n=t[0])==null?void 0:n.nickname}})}).catch(({msg:t})=>{$A.modalError(t)});break;case"success":this.$store.dispatch("closeMeetingWindow","add");break;case"invent":this.$store.dispatch("showMeetingWindow",{type:"invitation",meetingid:e.meetingid});break;case"endMeeting":break;case"error":this.$store.dispatch("closeMeetingWindow","error");break;case"status":this.$store.state.appMeetingShow=e.status;break}},window.__onKeyboardStatus=e=>{$A.isJson(e)||(e=$A.jsonParse(decodeURIComponent(e))),$A.isJson(e)&&(this.$store.state.keyboardShow=e.keyboardType==="show",this.$store.state.keyboardHeight=e.keyboardHeight,$A.eeuiAppShakeToEditEnabled(this.$store.state.keyboardShow))},window.__onNotificationPermissionStatus=e=>{this.$store.state.appNotificationPermission=$A.runNum(e)==1},window.__handleLink=e=>{this.goForward({path:(e||"").indexOf("/")!==0?"/"+e:e})},$A.eeuiAppSendMessage({action:"windowSize",width:this.windowWidth,height:this.windowHeight}),$A.eeuiAppSetHapticBackEnabled(!1),$A.eeuiAppSetCachesString("languageWebBack",this.$L("\u540E\u9000")),$A.eeuiAppSetCachesString("languageWebForward",this.$L("\u524D\u8FDB")),$A.eeuiAppSetCachesString("languageWebBrowser",this.$L("\u6D4F\u89C8\u5668\u6253\u5F00")),$A.eeuiAppSetCachesString("languageWebRefresh",this.$L("\u5237\u65B0")),$A.eeuiAppSetCachesString("updateDefaultTitle",this.$L("\u53D1\u73B0\u65B0\u7248\u672C")),$A.eeuiAppSetCachesString("updateDefaultContent",this.$L("\u6682\u65E0\u66F4\u65B0\u4ECB\u7ECD\uFF01")),$A.eeuiAppSetCachesString("updateDefaultCancelText",this.$L("\u4EE5\u540E\u518D\u8BF4")),$A.eeuiAppSetCachesString("updateDefaultUpdateText",this.$L("\u7ACB\u5373\u66F4\u65B0")))},otherEvents(){if(!this.$isSoftware){const e="hidden"in document?"hidden":"webkitHidden"in document?"webkitHidden":"mozHidden"in document?"mozHidden":null,i=e.replace(/hidden/i,"visibilitychange");document.addEventListener(i,()=>{this.$store.state.windowActive=!document[e]})}}}},Wt={};var Gc=m(Jc,Yc,Kc,!1,Qc,"4aa4e3a9",null,null);function Qc(e){for(let i in Wt)this[i]=Wt[i]}var Xc=function(){return Gc.exports}(),Zc=[{name:"index",path:"/",component:()=>w(()=>import("./index.838cbebc.js"),["js/build/index.838cbebc.js","js/build/jquery.bb849206.js","js/build/@babel.f9bcab46.js","js/build/dayjs.f27b22c9.js","js/build/localforage.f2f8f716.js","js/build/markdown-it.bda97caf.js","js/build/mdurl.ce6c1dd8.js","js/build/uc.micro.8d343c98.js","js/build/entities.48a44fec.js","js/build/linkify-it.c5e8196e.js","js/build/punycode.js.4b3f125a.js","js/build/highlight.js.ab8aeea4.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.897ae552.js","js/build/vue.fd9b772e.js","js/build/vuex.cc7cb26e.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.79c8b3d5.js","js/build/mitt.1ea0a2a3.js","js/build/quill-hi.b7430b13.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.f1b7ce48.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.e8ef3f14.js","js/build/lodash.isequal.d6a986d0.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.df04b444.js","js/build/quill-mention-hi.26cde5e9.js","js/build/view-design-hi.18b9f7fe.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.50be9c5e.js","js/build/clipboard.058ef547.js","js/build/vuedraggable.9fd6afed.js","js/build/sortablejs.d74243d9.js","js/build/vue-resize-observer.c3c9ca4e.js","js/build/element-sea.1d49e96e.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.0bdc1850.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.49abba38.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"pro",path:"/pro",component:()=>w(()=>import("./pro.7eb91795.js"),["js/build/pro.7eb91795.js","js/build/jquery.bb849206.js","js/build/@babel.f9bcab46.js","js/build/dayjs.f27b22c9.js","js/build/localforage.f2f8f716.js","js/build/markdown-it.bda97caf.js","js/build/mdurl.ce6c1dd8.js","js/build/uc.micro.8d343c98.js","js/build/entities.48a44fec.js","js/build/linkify-it.c5e8196e.js","js/build/punycode.js.4b3f125a.js","js/build/highlight.js.ab8aeea4.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.897ae552.js","js/build/vue.fd9b772e.js","js/build/vuex.cc7cb26e.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.79c8b3d5.js","js/build/mitt.1ea0a2a3.js","js/build/quill-hi.b7430b13.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.f1b7ce48.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.e8ef3f14.js","js/build/lodash.isequal.d6a986d0.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.df04b444.js","js/build/quill-mention-hi.26cde5e9.js","js/build/view-design-hi.18b9f7fe.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.50be9c5e.js","js/build/clipboard.058ef547.js","js/build/vuedraggable.9fd6afed.js","js/build/sortablejs.d74243d9.js","js/build/vue-resize-observer.c3c9ca4e.js","js/build/element-sea.1d49e96e.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.0bdc1850.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.49abba38.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"meeting",path:"/meeting/:meetingId?/:sharekey?",component:()=>w(()=>import("./meeting.bd627d24.js"),["js/build/meeting.bd627d24.js","js/build/jquery.bb849206.js","js/build/@babel.f9bcab46.js","js/build/dayjs.f27b22c9.js","js/build/localforage.f2f8f716.js","js/build/markdown-it.bda97caf.js","js/build/mdurl.ce6c1dd8.js","js/build/uc.micro.8d343c98.js","js/build/entities.48a44fec.js","js/build/linkify-it.c5e8196e.js","js/build/punycode.js.4b3f125a.js","js/build/highlight.js.ab8aeea4.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.897ae552.js","js/build/vue.fd9b772e.js","js/build/vuex.cc7cb26e.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.79c8b3d5.js","js/build/mitt.1ea0a2a3.js","js/build/quill-hi.b7430b13.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.f1b7ce48.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.e8ef3f14.js","js/build/lodash.isequal.d6a986d0.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.df04b444.js","js/build/quill-mention-hi.26cde5e9.js","js/build/view-design-hi.18b9f7fe.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.50be9c5e.js","js/build/clipboard.058ef547.js","js/build/vuedraggable.9fd6afed.js","js/build/sortablejs.d74243d9.js","js/build/vue-resize-observer.c3c9ca4e.js","js/build/element-sea.1d49e96e.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.0bdc1850.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.49abba38.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"manage",path:"/manage",component:()=>w(()=>import("./manage.b649abbb.js"),["js/build/manage.b649abbb.js","js/build/manage.c3f6ad03.css","js/build/vuex.cc7cb26e.js","js/build/SearchButton.7bcd6963.js","js/build/CheckinExport.bc5f3115.js","js/build/index.f35de87b.js","js/build/ImgUpload.f6826580.js","js/build/TaskDetail.da78ef40.js","js/build/TaskDetail.35a8b583.css","js/build/add.7559a2d9.js","js/build/add.90416dbc.css","js/build/DialogWrapper.06a675e8.js","js/build/vue-virtual-scroll-list-hi.a171e791.js","js/build/@babel.f9bcab46.js","js/build/vue.fd9b772e.js","js/build/lodash.18c5398d.js","js/build/TEditor.ac8cfdd8.js","js/build/tinymce.24840f82.js","js/build/jquery.bb849206.js","js/build/dayjs.f27b22c9.js","js/build/localforage.f2f8f716.js","js/build/markdown-it.bda97caf.js","js/build/mdurl.ce6c1dd8.js","js/build/uc.micro.8d343c98.js","js/build/entities.48a44fec.js","js/build/linkify-it.c5e8196e.js","js/build/punycode.js.4b3f125a.js","js/build/highlight.js.ab8aeea4.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.897ae552.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.79c8b3d5.js","js/build/mitt.1ea0a2a3.js","js/build/quill-hi.b7430b13.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.f1b7ce48.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.e8ef3f14.js","js/build/lodash.isequal.d6a986d0.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.df04b444.js","js/build/quill-mention-hi.26cde5e9.js","js/build/view-design-hi.18b9f7fe.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.50be9c5e.js","js/build/clipboard.058ef547.js","js/build/vuedraggable.9fd6afed.js","js/build/sortablejs.d74243d9.js","js/build/vue-resize-observer.c3c9ca4e.js","js/build/element-sea.1d49e96e.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.0bdc1850.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.49abba38.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js","js/build/ReportEdit.75a24283.js","js/build/ReportDetail.cfc195fb.js","js/build/index.c541cdf8.js","js/build/index.eaa6501a.css","js/build/@micro-zoe.f728a9f4.js","js/build/notification-koro1.99b93615.js"]),children:[{name:"manage-dashboard",path:"dashboard",component:()=>w(()=>import("./dashboard.3d9718f1.js"),["js/build/dashboard.3d9718f1.js","js/build/vuex.cc7cb26e.js","js/build/jquery.bb849206.js","js/build/@babel.f9bcab46.js","js/build/dayjs.f27b22c9.js","js/build/localforage.f2f8f716.js","js/build/markdown-it.bda97caf.js","js/build/mdurl.ce6c1dd8.js","js/build/uc.micro.8d343c98.js","js/build/entities.48a44fec.js","js/build/linkify-it.c5e8196e.js","js/build/punycode.js.4b3f125a.js","js/build/highlight.js.ab8aeea4.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.897ae552.js","js/build/vue.fd9b772e.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.79c8b3d5.js","js/build/mitt.1ea0a2a3.js","js/build/quill-hi.b7430b13.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.f1b7ce48.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.e8ef3f14.js","js/build/lodash.isequal.d6a986d0.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.df04b444.js","js/build/quill-mention-hi.26cde5e9.js","js/build/view-design-hi.18b9f7fe.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.50be9c5e.js","js/build/clipboard.058ef547.js","js/build/vuedraggable.9fd6afed.js","js/build/sortablejs.d74243d9.js","js/build/vue-resize-observer.c3c9ca4e.js","js/build/element-sea.1d49e96e.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.0bdc1850.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.49abba38.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"manage-calendar",path:"calendar",component:()=>w(()=>import("./calendar.ab969283.js"),["js/build/calendar.ab969283.js","js/build/tui-calendar-hi.3b6b4623.js","js/build/tui-calendar-hi.058e41e5.css","js/build/tui-date-picker.ca22ee8a.js","js/build/@babel.f9bcab46.js","js/build/tui-time-picker.c14df421.js","js/build/vuex.cc7cb26e.js","js/build/jquery.bb849206.js","js/build/dayjs.f27b22c9.js","js/build/localforage.f2f8f716.js","js/build/markdown-it.bda97caf.js","js/build/mdurl.ce6c1dd8.js","js/build/uc.micro.8d343c98.js","js/build/entities.48a44fec.js","js/build/linkify-it.c5e8196e.js","js/build/punycode.js.4b3f125a.js","js/build/highlight.js.ab8aeea4.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.897ae552.js","js/build/vue.fd9b772e.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.79c8b3d5.js","js/build/mitt.1ea0a2a3.js","js/build/quill-hi.b7430b13.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.f1b7ce48.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.e8ef3f14.js","js/build/lodash.isequal.d6a986d0.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.df04b444.js","js/build/quill-mention-hi.26cde5e9.js","js/build/view-design-hi.18b9f7fe.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.50be9c5e.js","js/build/clipboard.058ef547.js","js/build/vuedraggable.9fd6afed.js","js/build/sortablejs.d74243d9.js","js/build/vue-resize-observer.c3c9ca4e.js","js/build/element-sea.1d49e96e.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.0bdc1850.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.49abba38.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"manage-messenger",path:"messenger/:dialogAction?",component:()=>w(()=>import("./messenger.7fb2a678.js"),["js/build/messenger.7fb2a678.js","js/build/vuex.cc7cb26e.js","js/build/DialogWrapper.06a675e8.js","js/build/index.f35de87b.js","js/build/vue-virtual-scroll-list-hi.a171e791.js","js/build/@babel.f9bcab46.js","js/build/vue.fd9b772e.js","js/build/lodash.18c5398d.js","js/build/ImgUpload.f6826580.js","js/build/jquery.bb849206.js","js/build/dayjs.f27b22c9.js","js/build/localforage.f2f8f716.js","js/build/markdown-it.bda97caf.js","js/build/mdurl.ce6c1dd8.js","js/build/uc.micro.8d343c98.js","js/build/entities.48a44fec.js","js/build/linkify-it.c5e8196e.js","js/build/punycode.js.4b3f125a.js","js/build/highlight.js.ab8aeea4.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.897ae552.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.79c8b3d5.js","js/build/mitt.1ea0a2a3.js","js/build/quill-hi.b7430b13.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.f1b7ce48.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.e8ef3f14.js","js/build/lodash.isequal.d6a986d0.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.df04b444.js","js/build/quill-mention-hi.26cde5e9.js","js/build/view-design-hi.18b9f7fe.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.50be9c5e.js","js/build/clipboard.058ef547.js","js/build/vuedraggable.9fd6afed.js","js/build/sortablejs.d74243d9.js","js/build/vue-resize-observer.c3c9ca4e.js","js/build/element-sea.1d49e96e.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.0bdc1850.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.49abba38.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"manage-setting",path:"setting",component:()=>w(()=>import("./index.794e0d2c.js"),["js/build/index.794e0d2c.js","js/build/index.274f71f0.css","js/build/vuex.cc7cb26e.js","js/build/jquery.bb849206.js","js/build/@babel.f9bcab46.js","js/build/dayjs.f27b22c9.js","js/build/localforage.f2f8f716.js","js/build/markdown-it.bda97caf.js","js/build/mdurl.ce6c1dd8.js","js/build/uc.micro.8d343c98.js","js/build/entities.48a44fec.js","js/build/linkify-it.c5e8196e.js","js/build/punycode.js.4b3f125a.js","js/build/highlight.js.ab8aeea4.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.897ae552.js","js/build/vue.fd9b772e.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.79c8b3d5.js","js/build/mitt.1ea0a2a3.js","js/build/quill-hi.b7430b13.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.f1b7ce48.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.e8ef3f14.js","js/build/lodash.isequal.d6a986d0.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.df04b444.js","js/build/quill-mention-hi.26cde5e9.js","js/build/view-design-hi.18b9f7fe.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.50be9c5e.js","js/build/clipboard.058ef547.js","js/build/vuedraggable.9fd6afed.js","js/build/sortablejs.d74243d9.js","js/build/vue-resize-observer.c3c9ca4e.js","js/build/element-sea.1d49e96e.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.0bdc1850.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.49abba38.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"]),children:[{name:"manage-setting-personal",path:"personal",component:()=>w(()=>import("./personal.f3c23c35.js"),["js/build/personal.f3c23c35.js","js/build/ImgUpload.f6826580.js","js/build/vuex.cc7cb26e.js","js/build/jquery.bb849206.js","js/build/@babel.f9bcab46.js","js/build/dayjs.f27b22c9.js","js/build/localforage.f2f8f716.js","js/build/markdown-it.bda97caf.js","js/build/mdurl.ce6c1dd8.js","js/build/uc.micro.8d343c98.js","js/build/entities.48a44fec.js","js/build/linkify-it.c5e8196e.js","js/build/punycode.js.4b3f125a.js","js/build/highlight.js.ab8aeea4.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.897ae552.js","js/build/vue.fd9b772e.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.79c8b3d5.js","js/build/mitt.1ea0a2a3.js","js/build/quill-hi.b7430b13.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.f1b7ce48.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.e8ef3f14.js","js/build/lodash.isequal.d6a986d0.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.df04b444.js","js/build/quill-mention-hi.26cde5e9.js","js/build/view-design-hi.18b9f7fe.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.50be9c5e.js","js/build/clipboard.058ef547.js","js/build/vuedraggable.9fd6afed.js","js/build/sortablejs.d74243d9.js","js/build/vue-resize-observer.c3c9ca4e.js","js/build/element-sea.1d49e96e.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.0bdc1850.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.49abba38.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"manage-setting-checkin",path:"checkin",component:()=>w(()=>import("./checkin.c45cc089.js"),["js/build/checkin.c45cc089.js","js/build/checkin.2fa0bfae.css","js/build/ImgUpload.f6826580.js","js/build/jquery.bb849206.js","js/build/@babel.f9bcab46.js","js/build/dayjs.f27b22c9.js","js/build/localforage.f2f8f716.js","js/build/markdown-it.bda97caf.js","js/build/mdurl.ce6c1dd8.js","js/build/uc.micro.8d343c98.js","js/build/entities.48a44fec.js","js/build/linkify-it.c5e8196e.js","js/build/punycode.js.4b3f125a.js","js/build/highlight.js.ab8aeea4.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.897ae552.js","js/build/vue.fd9b772e.js","js/build/vuex.cc7cb26e.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.79c8b3d5.js","js/build/mitt.1ea0a2a3.js","js/build/quill-hi.b7430b13.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.f1b7ce48.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.e8ef3f14.js","js/build/lodash.isequal.d6a986d0.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.df04b444.js","js/build/quill-mention-hi.26cde5e9.js","js/build/view-design-hi.18b9f7fe.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.50be9c5e.js","js/build/clipboard.058ef547.js","js/build/vuedraggable.9fd6afed.js","js/build/sortablejs.d74243d9.js","js/build/vue-resize-observer.c3c9ca4e.js","js/build/element-sea.1d49e96e.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.0bdc1850.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.49abba38.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"manage-setting-language",path:"language",component:()=>w(()=>import("./language.b9f40565.js"),["js/build/language.b9f40565.js","js/build/vuex.cc7cb26e.js","js/build/jquery.bb849206.js","js/build/@babel.f9bcab46.js","js/build/dayjs.f27b22c9.js","js/build/localforage.f2f8f716.js","js/build/markdown-it.bda97caf.js","js/build/mdurl.ce6c1dd8.js","js/build/uc.micro.8d343c98.js","js/build/entities.48a44fec.js","js/build/linkify-it.c5e8196e.js","js/build/punycode.js.4b3f125a.js","js/build/highlight.js.ab8aeea4.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.897ae552.js","js/build/vue.fd9b772e.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.79c8b3d5.js","js/build/mitt.1ea0a2a3.js","js/build/quill-hi.b7430b13.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.f1b7ce48.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.e8ef3f14.js","js/build/lodash.isequal.d6a986d0.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.df04b444.js","js/build/quill-mention-hi.26cde5e9.js","js/build/view-design-hi.18b9f7fe.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.50be9c5e.js","js/build/clipboard.058ef547.js","js/build/vuedraggable.9fd6afed.js","js/build/sortablejs.d74243d9.js","js/build/vue-resize-observer.c3c9ca4e.js","js/build/element-sea.1d49e96e.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.0bdc1850.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.49abba38.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"manage-setting-theme",path:"theme",component:()=>w(()=>import("./theme.3ccfac20.js"),["js/build/theme.3ccfac20.js","js/build/vuex.cc7cb26e.js","js/build/jquery.bb849206.js","js/build/@babel.f9bcab46.js","js/build/dayjs.f27b22c9.js","js/build/localforage.f2f8f716.js","js/build/markdown-it.bda97caf.js","js/build/mdurl.ce6c1dd8.js","js/build/uc.micro.8d343c98.js","js/build/entities.48a44fec.js","js/build/linkify-it.c5e8196e.js","js/build/punycode.js.4b3f125a.js","js/build/highlight.js.ab8aeea4.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.897ae552.js","js/build/vue.fd9b772e.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.79c8b3d5.js","js/build/mitt.1ea0a2a3.js","js/build/quill-hi.b7430b13.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.f1b7ce48.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.e8ef3f14.js","js/build/lodash.isequal.d6a986d0.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.df04b444.js","js/build/quill-mention-hi.26cde5e9.js","js/build/view-design-hi.18b9f7fe.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.50be9c5e.js","js/build/clipboard.058ef547.js","js/build/vuedraggable.9fd6afed.js","js/build/sortablejs.d74243d9.js","js/build/vue-resize-observer.c3c9ca4e.js","js/build/element-sea.1d49e96e.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.0bdc1850.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.49abba38.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"manage-setting-keyboard",path:"keyboard",component:()=>w(()=>import("./keyboard.ceb23e58.js"),["js/build/keyboard.ceb23e58.js","js/build/keyboard.457cfeb9.css","js/build/jquery.bb849206.js","js/build/@babel.f9bcab46.js","js/build/dayjs.f27b22c9.js","js/build/localforage.f2f8f716.js","js/build/markdown-it.bda97caf.js","js/build/mdurl.ce6c1dd8.js","js/build/uc.micro.8d343c98.js","js/build/entities.48a44fec.js","js/build/linkify-it.c5e8196e.js","js/build/punycode.js.4b3f125a.js","js/build/highlight.js.ab8aeea4.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.897ae552.js","js/build/vue.fd9b772e.js","js/build/vuex.cc7cb26e.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.79c8b3d5.js","js/build/mitt.1ea0a2a3.js","js/build/quill-hi.b7430b13.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.f1b7ce48.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.e8ef3f14.js","js/build/lodash.isequal.d6a986d0.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.df04b444.js","js/build/quill-mention-hi.26cde5e9.js","js/build/view-design-hi.18b9f7fe.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.50be9c5e.js","js/build/clipboard.058ef547.js","js/build/vuedraggable.9fd6afed.js","js/build/sortablejs.d74243d9.js","js/build/vue-resize-observer.c3c9ca4e.js","js/build/element-sea.1d49e96e.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.0bdc1850.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.49abba38.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"manage-setting-license",path:"license",component:()=>w(()=>import("./license.b72c37c8.js"),["js/build/license.b72c37c8.js","js/build/license.921ed4b4.css","js/build/vuex.cc7cb26e.js","js/build/jquery.bb849206.js","js/build/@babel.f9bcab46.js","js/build/dayjs.f27b22c9.js","js/build/localforage.f2f8f716.js","js/build/markdown-it.bda97caf.js","js/build/mdurl.ce6c1dd8.js","js/build/uc.micro.8d343c98.js","js/build/entities.48a44fec.js","js/build/linkify-it.c5e8196e.js","js/build/punycode.js.4b3f125a.js","js/build/highlight.js.ab8aeea4.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.897ae552.js","js/build/vue.fd9b772e.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.79c8b3d5.js","js/build/mitt.1ea0a2a3.js","js/build/quill-hi.b7430b13.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.f1b7ce48.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.e8ef3f14.js","js/build/lodash.isequal.d6a986d0.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.df04b444.js","js/build/quill-mention-hi.26cde5e9.js","js/build/view-design-hi.18b9f7fe.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.50be9c5e.js","js/build/clipboard.058ef547.js","js/build/vuedraggable.9fd6afed.js","js/build/sortablejs.d74243d9.js","js/build/vue-resize-observer.c3c9ca4e.js","js/build/element-sea.1d49e96e.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.0bdc1850.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.49abba38.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"manage-setting-password",path:"password",component:()=>w(()=>import("./password.94b6ff57.js"),["js/build/password.94b6ff57.js","js/build/vuex.cc7cb26e.js","js/build/jquery.bb849206.js","js/build/@babel.f9bcab46.js","js/build/dayjs.f27b22c9.js","js/build/localforage.f2f8f716.js","js/build/markdown-it.bda97caf.js","js/build/mdurl.ce6c1dd8.js","js/build/uc.micro.8d343c98.js","js/build/entities.48a44fec.js","js/build/linkify-it.c5e8196e.js","js/build/punycode.js.4b3f125a.js","js/build/highlight.js.ab8aeea4.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.897ae552.js","js/build/vue.fd9b772e.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.79c8b3d5.js","js/build/mitt.1ea0a2a3.js","js/build/quill-hi.b7430b13.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.f1b7ce48.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.e8ef3f14.js","js/build/lodash.isequal.d6a986d0.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.df04b444.js","js/build/quill-mention-hi.26cde5e9.js","js/build/view-design-hi.18b9f7fe.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.50be9c5e.js","js/build/clipboard.058ef547.js","js/build/vuedraggable.9fd6afed.js","js/build/sortablejs.d74243d9.js","js/build/vue-resize-observer.c3c9ca4e.js","js/build/element-sea.1d49e96e.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.0bdc1850.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.49abba38.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"manage-setting-email",path:"email",component:()=>w(()=>import("./email.fdc938e2.js"),["js/build/email.fdc938e2.js","js/build/vuex.cc7cb26e.js","js/build/jquery.bb849206.js","js/build/@babel.f9bcab46.js","js/build/dayjs.f27b22c9.js","js/build/localforage.f2f8f716.js","js/build/markdown-it.bda97caf.js","js/build/mdurl.ce6c1dd8.js","js/build/uc.micro.8d343c98.js","js/build/entities.48a44fec.js","js/build/linkify-it.c5e8196e.js","js/build/punycode.js.4b3f125a.js","js/build/highlight.js.ab8aeea4.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.897ae552.js","js/build/vue.fd9b772e.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.79c8b3d5.js","js/build/mitt.1ea0a2a3.js","js/build/quill-hi.b7430b13.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.f1b7ce48.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.e8ef3f14.js","js/build/lodash.isequal.d6a986d0.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.df04b444.js","js/build/quill-mention-hi.26cde5e9.js","js/build/view-design-hi.18b9f7fe.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.50be9c5e.js","js/build/clipboard.058ef547.js","js/build/vuedraggable.9fd6afed.js","js/build/sortablejs.d74243d9.js","js/build/vue-resize-observer.c3c9ca4e.js","js/build/element-sea.1d49e96e.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.0bdc1850.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.49abba38.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"manage-setting-system",path:"system",component:()=>w(()=>import("./system.efafaf21.js"),["js/build/system.efafaf21.js","js/build/system.a12b821d.css","js/build/vuex.cc7cb26e.js","js/build/jquery.bb849206.js","js/build/@babel.f9bcab46.js","js/build/dayjs.f27b22c9.js","js/build/localforage.f2f8f716.js","js/build/markdown-it.bda97caf.js","js/build/mdurl.ce6c1dd8.js","js/build/uc.micro.8d343c98.js","js/build/entities.48a44fec.js","js/build/linkify-it.c5e8196e.js","js/build/punycode.js.4b3f125a.js","js/build/highlight.js.ab8aeea4.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.897ae552.js","js/build/vue.fd9b772e.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.79c8b3d5.js","js/build/mitt.1ea0a2a3.js","js/build/quill-hi.b7430b13.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.f1b7ce48.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.e8ef3f14.js","js/build/lodash.isequal.d6a986d0.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.df04b444.js","js/build/quill-mention-hi.26cde5e9.js","js/build/view-design-hi.18b9f7fe.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.50be9c5e.js","js/build/clipboard.058ef547.js","js/build/vuedraggable.9fd6afed.js","js/build/sortablejs.d74243d9.js","js/build/vue-resize-observer.c3c9ca4e.js","js/build/element-sea.1d49e96e.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.0bdc1850.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.49abba38.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"manage-setting-device",path:"device",component:()=>w(()=>import("./device.9aeef818.js"),["js/build/device.9aeef818.js","js/build/jquery.bb849206.js","js/build/@babel.f9bcab46.js","js/build/dayjs.f27b22c9.js","js/build/localforage.f2f8f716.js","js/build/markdown-it.bda97caf.js","js/build/mdurl.ce6c1dd8.js","js/build/uc.micro.8d343c98.js","js/build/entities.48a44fec.js","js/build/linkify-it.c5e8196e.js","js/build/punycode.js.4b3f125a.js","js/build/highlight.js.ab8aeea4.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.897ae552.js","js/build/vue.fd9b772e.js","js/build/vuex.cc7cb26e.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.79c8b3d5.js","js/build/mitt.1ea0a2a3.js","js/build/quill-hi.b7430b13.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.f1b7ce48.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.e8ef3f14.js","js/build/lodash.isequal.d6a986d0.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.df04b444.js","js/build/quill-mention-hi.26cde5e9.js","js/build/view-design-hi.18b9f7fe.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.50be9c5e.js","js/build/clipboard.058ef547.js","js/build/vuedraggable.9fd6afed.js","js/build/sortablejs.d74243d9.js","js/build/vue-resize-observer.c3c9ca4e.js","js/build/element-sea.1d49e96e.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.0bdc1850.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.49abba38.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"manage-setting-version",path:"version",component:()=>w(()=>import("./version.cc9447d6.js"),["js/build/version.cc9447d6.js","js/build/version.b2e280f3.css","js/build/preview.6dd8164f.js","js/build/openpgp_hi.15f91b1d.js","js/build/index.40a8e116.js","js/build/jquery.bb849206.js","js/build/@babel.f9bcab46.js","js/build/dayjs.f27b22c9.js","js/build/localforage.f2f8f716.js","js/build/markdown-it.bda97caf.js","js/build/mdurl.ce6c1dd8.js","js/build/uc.micro.8d343c98.js","js/build/entities.48a44fec.js","js/build/linkify-it.c5e8196e.js","js/build/punycode.js.4b3f125a.js","js/build/highlight.js.ab8aeea4.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.897ae552.js","js/build/vue.fd9b772e.js","js/build/vuex.cc7cb26e.js","js/build/axios.79c8b3d5.js","js/build/mitt.1ea0a2a3.js","js/build/quill-hi.b7430b13.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.f1b7ce48.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.e8ef3f14.js","js/build/lodash.isequal.d6a986d0.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.df04b444.js","js/build/quill-mention-hi.26cde5e9.js","js/build/view-design-hi.18b9f7fe.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.50be9c5e.js","js/build/clipboard.058ef547.js","js/build/vuedraggable.9fd6afed.js","js/build/sortablejs.d74243d9.js","js/build/vue-resize-observer.c3c9ca4e.js","js/build/element-sea.1d49e96e.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.0bdc1850.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.49abba38.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"manage-setting-delete",path:"delete",component:()=>w(()=>import("./delete.4ae55ece.js"),["js/build/delete.4ae55ece.js","js/build/vuex.cc7cb26e.js","js/build/jquery.bb849206.js","js/build/@babel.f9bcab46.js","js/build/dayjs.f27b22c9.js","js/build/localforage.f2f8f716.js","js/build/markdown-it.bda97caf.js","js/build/mdurl.ce6c1dd8.js","js/build/uc.micro.8d343c98.js","js/build/entities.48a44fec.js","js/build/linkify-it.c5e8196e.js","js/build/punycode.js.4b3f125a.js","js/build/highlight.js.ab8aeea4.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.897ae552.js","js/build/vue.fd9b772e.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.79c8b3d5.js","js/build/mitt.1ea0a2a3.js","js/build/quill-hi.b7430b13.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.f1b7ce48.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.e8ef3f14.js","js/build/lodash.isequal.d6a986d0.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.df04b444.js","js/build/quill-mention-hi.26cde5e9.js","js/build/view-design-hi.18b9f7fe.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.50be9c5e.js","js/build/clipboard.058ef547.js","js/build/vuedraggable.9fd6afed.js","js/build/sortablejs.d74243d9.js","js/build/vue-resize-observer.c3c9ca4e.js","js/build/element-sea.1d49e96e.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.0bdc1850.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.49abba38.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])}]},{name:"manage-project-invite",path:"project/invite/:inviteId?",component:()=>w(()=>import("./projectInvite.9156566c.js"),["js/build/projectInvite.9156566c.js","js/build/projectInvite.83f6f5bf.css","js/build/vuex.cc7cb26e.js","js/build/jquery.bb849206.js","js/build/@babel.f9bcab46.js","js/build/dayjs.f27b22c9.js","js/build/localforage.f2f8f716.js","js/build/markdown-it.bda97caf.js","js/build/mdurl.ce6c1dd8.js","js/build/uc.micro.8d343c98.js","js/build/entities.48a44fec.js","js/build/linkify-it.c5e8196e.js","js/build/punycode.js.4b3f125a.js","js/build/highlight.js.ab8aeea4.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.897ae552.js","js/build/vue.fd9b772e.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.79c8b3d5.js","js/build/mitt.1ea0a2a3.js","js/build/quill-hi.b7430b13.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.f1b7ce48.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.e8ef3f14.js","js/build/lodash.isequal.d6a986d0.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.df04b444.js","js/build/quill-mention-hi.26cde5e9.js","js/build/view-design-hi.18b9f7fe.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.50be9c5e.js","js/build/clipboard.058ef547.js","js/build/vuedraggable.9fd6afed.js","js/build/sortablejs.d74243d9.js","js/build/vue-resize-observer.c3c9ca4e.js","js/build/element-sea.1d49e96e.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.0bdc1850.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.49abba38.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"manage-project",path:"project/:projectId",component:()=>w(()=>import("./project.3c0c3609.js"),["js/build/project.3c0c3609.js","js/build/vuex.cc7cb26e.js","js/build/lodash.18c5398d.js","js/build/@babel.f9bcab46.js","js/build/vuedraggable.9fd6afed.js","js/build/sortablejs.d74243d9.js","js/build/add.7559a2d9.js","js/build/add.90416dbc.css","js/build/SearchButton.7bcd6963.js","js/build/index.f35de87b.js","js/build/jquery.bb849206.js","js/build/dayjs.f27b22c9.js","js/build/localforage.f2f8f716.js","js/build/markdown-it.bda97caf.js","js/build/mdurl.ce6c1dd8.js","js/build/uc.micro.8d343c98.js","js/build/entities.48a44fec.js","js/build/linkify-it.c5e8196e.js","js/build/punycode.js.4b3f125a.js","js/build/highlight.js.ab8aeea4.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.897ae552.js","js/build/vue.fd9b772e.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.79c8b3d5.js","js/build/mitt.1ea0a2a3.js","js/build/quill-hi.b7430b13.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.f1b7ce48.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.e8ef3f14.js","js/build/lodash.isequal.d6a986d0.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.df04b444.js","js/build/quill-mention-hi.26cde5e9.js","js/build/view-design-hi.18b9f7fe.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.50be9c5e.js","js/build/clipboard.058ef547.js","js/build/vue-resize-observer.c3c9ca4e.js","js/build/element-sea.1d49e96e.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.0bdc1850.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.49abba38.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"manage-file",path:"file/:folderId?/:fileId?",component:()=>w(()=>import("./file.3374125b.js"),["js/build/file.3374125b.js","js/build/openpgp_hi.15f91b1d.js","js/build/vuex.cc7cb26e.js","js/build/lodash.18c5398d.js","js/build/@babel.f9bcab46.js","js/build/index.f35de87b.js","js/build/jquery.bb849206.js","js/build/dayjs.f27b22c9.js","js/build/localforage.f2f8f716.js","js/build/markdown-it.bda97caf.js","js/build/mdurl.ce6c1dd8.js","js/build/uc.micro.8d343c98.js","js/build/entities.48a44fec.js","js/build/linkify-it.c5e8196e.js","js/build/punycode.js.4b3f125a.js","js/build/highlight.js.ab8aeea4.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.897ae552.js","js/build/vue.fd9b772e.js","js/build/axios.79c8b3d5.js","js/build/mitt.1ea0a2a3.js","js/build/quill-hi.b7430b13.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.f1b7ce48.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.e8ef3f14.js","js/build/lodash.isequal.d6a986d0.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.df04b444.js","js/build/quill-mention-hi.26cde5e9.js","js/build/view-design-hi.18b9f7fe.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.50be9c5e.js","js/build/clipboard.058ef547.js","js/build/vuedraggable.9fd6afed.js","js/build/sortablejs.d74243d9.js","js/build/vue-resize-observer.c3c9ca4e.js","js/build/element-sea.1d49e96e.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.0bdc1850.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.49abba38.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"manage-application",path:"application",component:()=>w(()=>import("./application.45c9ecc4.js"),["js/build/application.45c9ecc4.js","js/build/application.49546403.css","js/build/vuex.cc7cb26e.js","js/build/index.f35de87b.js","js/build/CheckinExport.bc5f3115.js","js/build/ImgUpload.f6826580.js","js/build/SearchButton.7bcd6963.js","js/build/IFrame.cb1b7275.js","js/build/checkin.c45cc089.js","js/build/checkin.2fa0bfae.css","js/build/jquery.bb849206.js","js/build/@babel.f9bcab46.js","js/build/dayjs.f27b22c9.js","js/build/localforage.f2f8f716.js","js/build/markdown-it.bda97caf.js","js/build/mdurl.ce6c1dd8.js","js/build/uc.micro.8d343c98.js","js/build/entities.48a44fec.js","js/build/linkify-it.c5e8196e.js","js/build/punycode.js.4b3f125a.js","js/build/highlight.js.ab8aeea4.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.897ae552.js","js/build/vue.fd9b772e.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.79c8b3d5.js","js/build/mitt.1ea0a2a3.js","js/build/quill-hi.b7430b13.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.f1b7ce48.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.e8ef3f14.js","js/build/lodash.isequal.d6a986d0.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.df04b444.js","js/build/quill-mention-hi.26cde5e9.js","js/build/view-design-hi.18b9f7fe.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.50be9c5e.js","js/build/clipboard.058ef547.js","js/build/vuedraggable.9fd6afed.js","js/build/sortablejs.d74243d9.js","js/build/vue-resize-observer.c3c9ca4e.js","js/build/element-sea.1d49e96e.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.0bdc1850.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.49abba38.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])}]},{name:"single-file-msg",path:"/single/file/msg/:msgId",component:()=>w(()=>import("./fileMsg.2681ae12.js"),["js/build/fileMsg.2681ae12.js","js/build/fileMsg.9d89f22e.css","js/build/openpgp_hi.15f91b1d.js","js/build/vuex.cc7cb26e.js","js/build/IFrame.cb1b7275.js","js/build/jquery.bb849206.js","js/build/@babel.f9bcab46.js","js/build/dayjs.f27b22c9.js","js/build/localforage.f2f8f716.js","js/build/markdown-it.bda97caf.js","js/build/mdurl.ce6c1dd8.js","js/build/uc.micro.8d343c98.js","js/build/entities.48a44fec.js","js/build/linkify-it.c5e8196e.js","js/build/punycode.js.4b3f125a.js","js/build/highlight.js.ab8aeea4.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.897ae552.js","js/build/vue.fd9b772e.js","js/build/axios.79c8b3d5.js","js/build/mitt.1ea0a2a3.js","js/build/quill-hi.b7430b13.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.f1b7ce48.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.e8ef3f14.js","js/build/lodash.isequal.d6a986d0.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.df04b444.js","js/build/quill-mention-hi.26cde5e9.js","js/build/view-design-hi.18b9f7fe.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.50be9c5e.js","js/build/clipboard.058ef547.js","js/build/vuedraggable.9fd6afed.js","js/build/sortablejs.d74243d9.js","js/build/vue-resize-observer.c3c9ca4e.js","js/build/element-sea.1d49e96e.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.0bdc1850.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.49abba38.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"single-file-task",path:"/single/file/task/:fileId",component:()=>w(()=>import("./fileTask.18c06fd0.js"),["js/build/fileTask.18c06fd0.js","js/build/fileTask.584e53db.css","js/build/openpgp_hi.15f91b1d.js","js/build/IFrame.cb1b7275.js","js/build/jquery.bb849206.js","js/build/@babel.f9bcab46.js","js/build/dayjs.f27b22c9.js","js/build/localforage.f2f8f716.js","js/build/markdown-it.bda97caf.js","js/build/mdurl.ce6c1dd8.js","js/build/uc.micro.8d343c98.js","js/build/entities.48a44fec.js","js/build/linkify-it.c5e8196e.js","js/build/punycode.js.4b3f125a.js","js/build/highlight.js.ab8aeea4.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.897ae552.js","js/build/vue.fd9b772e.js","js/build/vuex.cc7cb26e.js","js/build/axios.79c8b3d5.js","js/build/mitt.1ea0a2a3.js","js/build/quill-hi.b7430b13.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.f1b7ce48.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.e8ef3f14.js","js/build/lodash.isequal.d6a986d0.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.df04b444.js","js/build/quill-mention-hi.26cde5e9.js","js/build/view-design-hi.18b9f7fe.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.50be9c5e.js","js/build/clipboard.058ef547.js","js/build/vuedraggable.9fd6afed.js","js/build/sortablejs.d74243d9.js","js/build/vue-resize-observer.c3c9ca4e.js","js/build/element-sea.1d49e96e.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.0bdc1850.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.49abba38.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"single-file",path:"/single/file/:codeOrFileId",component:()=>w(()=>import("./file.d3e31783.js"),["js/build/file.d3e31783.js","js/build/file.faa69c59.css","js/build/FileContent.bafd0092.js","js/build/FileContent.82971c6a.css","js/build/openpgp_hi.15f91b1d.js","js/build/IFrame.cb1b7275.js","js/build/jquery.bb849206.js","js/build/@babel.f9bcab46.js","js/build/dayjs.f27b22c9.js","js/build/localforage.f2f8f716.js","js/build/markdown-it.bda97caf.js","js/build/mdurl.ce6c1dd8.js","js/build/uc.micro.8d343c98.js","js/build/entities.48a44fec.js","js/build/linkify-it.c5e8196e.js","js/build/punycode.js.4b3f125a.js","js/build/highlight.js.ab8aeea4.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.897ae552.js","js/build/vue.fd9b772e.js","js/build/vuex.cc7cb26e.js","js/build/axios.79c8b3d5.js","js/build/mitt.1ea0a2a3.js","js/build/quill-hi.b7430b13.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.f1b7ce48.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.e8ef3f14.js","js/build/lodash.isequal.d6a986d0.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.df04b444.js","js/build/quill-mention-hi.26cde5e9.js","js/build/view-design-hi.18b9f7fe.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.50be9c5e.js","js/build/clipboard.058ef547.js","js/build/vuedraggable.9fd6afed.js","js/build/sortablejs.d74243d9.js","js/build/vue-resize-observer.c3c9ca4e.js","js/build/element-sea.1d49e96e.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.0bdc1850.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.49abba38.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js","js/build/FilePreview.0610c2a0.js"])},{name:"single-task-content",path:"/single/task/content/:taskId",component:()=>w(()=>import("./taskContent.27e2fa97.js"),["js/build/taskContent.27e2fa97.js","js/build/taskContent.e7e754e7.css","js/build/TEditor.ac8cfdd8.js","js/build/tinymce.24840f82.js","js/build/@babel.f9bcab46.js","js/build/ImgUpload.f6826580.js","js/build/vuex.cc7cb26e.js","js/build/jquery.bb849206.js","js/build/dayjs.f27b22c9.js","js/build/localforage.f2f8f716.js","js/build/markdown-it.bda97caf.js","js/build/mdurl.ce6c1dd8.js","js/build/uc.micro.8d343c98.js","js/build/entities.48a44fec.js","js/build/linkify-it.c5e8196e.js","js/build/punycode.js.4b3f125a.js","js/build/highlight.js.ab8aeea4.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.897ae552.js","js/build/vue.fd9b772e.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.79c8b3d5.js","js/build/mitt.1ea0a2a3.js","js/build/quill-hi.b7430b13.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.f1b7ce48.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.e8ef3f14.js","js/build/lodash.isequal.d6a986d0.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.df04b444.js","js/build/quill-mention-hi.26cde5e9.js","js/build/view-design-hi.18b9f7fe.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.50be9c5e.js","js/build/clipboard.058ef547.js","js/build/vuedraggable.9fd6afed.js","js/build/sortablejs.d74243d9.js","js/build/vue-resize-observer.c3c9ca4e.js","js/build/element-sea.1d49e96e.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.0bdc1850.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.49abba38.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"single-task",path:"/single/task/:taskId",component:()=>w(()=>import("./task.86f491ec.js"),["js/build/task.86f491ec.js","js/build/task.a4c33b20.css","js/build/TaskDetail.da78ef40.js","js/build/TaskDetail.35a8b583.css","js/build/vuex.cc7cb26e.js","js/build/add.7559a2d9.js","js/build/add.90416dbc.css","js/build/DialogWrapper.06a675e8.js","js/build/index.f35de87b.js","js/build/vue-virtual-scroll-list-hi.a171e791.js","js/build/@babel.f9bcab46.js","js/build/vue.fd9b772e.js","js/build/lodash.18c5398d.js","js/build/ImgUpload.f6826580.js","js/build/TEditor.ac8cfdd8.js","js/build/tinymce.24840f82.js","js/build/jquery.bb849206.js","js/build/dayjs.f27b22c9.js","js/build/localforage.f2f8f716.js","js/build/markdown-it.bda97caf.js","js/build/mdurl.ce6c1dd8.js","js/build/uc.micro.8d343c98.js","js/build/entities.48a44fec.js","js/build/linkify-it.c5e8196e.js","js/build/punycode.js.4b3f125a.js","js/build/highlight.js.ab8aeea4.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.897ae552.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.79c8b3d5.js","js/build/mitt.1ea0a2a3.js","js/build/quill-hi.b7430b13.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.f1b7ce48.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.e8ef3f14.js","js/build/lodash.isequal.d6a986d0.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.df04b444.js","js/build/quill-mention-hi.26cde5e9.js","js/build/view-design-hi.18b9f7fe.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.50be9c5e.js","js/build/clipboard.058ef547.js","js/build/vuedraggable.9fd6afed.js","js/build/sortablejs.d74243d9.js","js/build/vue-resize-observer.c3c9ca4e.js","js/build/element-sea.1d49e96e.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.0bdc1850.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.49abba38.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"single-dialog",path:"/single/dialog/:dialogId",component:()=>w(()=>import("./dialog.9b79af14.js"),["js/build/dialog.9b79af14.js","js/build/dialog.f35a7a2e.css","js/build/DialogWrapper.06a675e8.js","js/build/vuex.cc7cb26e.js","js/build/index.f35de87b.js","js/build/vue-virtual-scroll-list-hi.a171e791.js","js/build/@babel.f9bcab46.js","js/build/vue.fd9b772e.js","js/build/lodash.18c5398d.js","js/build/ImgUpload.f6826580.js","js/build/jquery.bb849206.js","js/build/dayjs.f27b22c9.js","js/build/localforage.f2f8f716.js","js/build/markdown-it.bda97caf.js","js/build/mdurl.ce6c1dd8.js","js/build/uc.micro.8d343c98.js","js/build/entities.48a44fec.js","js/build/linkify-it.c5e8196e.js","js/build/punycode.js.4b3f125a.js","js/build/highlight.js.ab8aeea4.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.897ae552.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.79c8b3d5.js","js/build/mitt.1ea0a2a3.js","js/build/quill-hi.b7430b13.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.f1b7ce48.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.e8ef3f14.js","js/build/lodash.isequal.d6a986d0.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.df04b444.js","js/build/quill-mention-hi.26cde5e9.js","js/build/view-design-hi.18b9f7fe.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.50be9c5e.js","js/build/clipboard.058ef547.js","js/build/vuedraggable.9fd6afed.js","js/build/sortablejs.d74243d9.js","js/build/vue-resize-observer.c3c9ca4e.js","js/build/element-sea.1d49e96e.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.0bdc1850.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.49abba38.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"single-apps",path:"/single/apps/:name",component:()=>w(()=>import("./apps.5c57a308.js"),["js/build/apps.5c57a308.js","js/build/index.c541cdf8.js","js/build/index.eaa6501a.css","js/build/vue.fd9b772e.js","js/build/@babel.f9bcab46.js","js/build/vuex.cc7cb26e.js","js/build/view-design-hi.18b9f7fe.js","js/build/@micro-zoe.f728a9f4.js","js/build/DialogWrapper.06a675e8.js","js/build/index.f35de87b.js","js/build/vue-virtual-scroll-list-hi.a171e791.js","js/build/lodash.18c5398d.js","js/build/ImgUpload.f6826580.js","js/build/jquery.bb849206.js","js/build/dayjs.f27b22c9.js","js/build/localforage.f2f8f716.js","js/build/markdown-it.bda97caf.js","js/build/mdurl.ce6c1dd8.js","js/build/uc.micro.8d343c98.js","js/build/entities.48a44fec.js","js/build/linkify-it.c5e8196e.js","js/build/punycode.js.4b3f125a.js","js/build/highlight.js.ab8aeea4.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.897ae552.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.79c8b3d5.js","js/build/mitt.1ea0a2a3.js","js/build/quill-hi.b7430b13.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.f1b7ce48.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.e8ef3f14.js","js/build/lodash.isequal.d6a986d0.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.df04b444.js","js/build/quill-mention-hi.26cde5e9.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.50be9c5e.js","js/build/clipboard.058ef547.js","js/build/vuedraggable.9fd6afed.js","js/build/sortablejs.d74243d9.js","js/build/vue-resize-observer.c3c9ca4e.js","js/build/element-sea.1d49e96e.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.0bdc1850.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.49abba38.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"single-valid-email",path:"/single/valid/email",component:()=>w(()=>import("./validEmail.8fca9ffe.js"),["js/build/validEmail.8fca9ffe.js","js/build/validEmail.6e361ca9.css","js/build/jquery.bb849206.js","js/build/@babel.f9bcab46.js","js/build/dayjs.f27b22c9.js","js/build/localforage.f2f8f716.js","js/build/markdown-it.bda97caf.js","js/build/mdurl.ce6c1dd8.js","js/build/uc.micro.8d343c98.js","js/build/entities.48a44fec.js","js/build/linkify-it.c5e8196e.js","js/build/punycode.js.4b3f125a.js","js/build/highlight.js.ab8aeea4.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.897ae552.js","js/build/vue.fd9b772e.js","js/build/vuex.cc7cb26e.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.79c8b3d5.js","js/build/mitt.1ea0a2a3.js","js/build/quill-hi.b7430b13.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.f1b7ce48.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.e8ef3f14.js","js/build/lodash.isequal.d6a986d0.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.df04b444.js","js/build/quill-mention-hi.26cde5e9.js","js/build/view-design-hi.18b9f7fe.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.50be9c5e.js","js/build/clipboard.058ef547.js","js/build/vuedraggable.9fd6afed.js","js/build/sortablejs.d74243d9.js","js/build/vue-resize-observer.c3c9ca4e.js","js/build/element-sea.1d49e96e.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.0bdc1850.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.49abba38.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"single-report-edit",path:"/single/report/edit/:reportEditId",component:()=>w(()=>import("./reportEdit.27d50626.js"),["js/build/reportEdit.27d50626.js","js/build/reportEdit.6962c3d0.css","js/build/ReportEdit.75a24283.js","js/build/openpgp_hi.15f91b1d.js","js/build/vuex.cc7cb26e.js","js/build/jquery.bb849206.js","js/build/@babel.f9bcab46.js","js/build/dayjs.f27b22c9.js","js/build/localforage.f2f8f716.js","js/build/markdown-it.bda97caf.js","js/build/mdurl.ce6c1dd8.js","js/build/uc.micro.8d343c98.js","js/build/entities.48a44fec.js","js/build/linkify-it.c5e8196e.js","js/build/punycode.js.4b3f125a.js","js/build/highlight.js.ab8aeea4.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.897ae552.js","js/build/vue.fd9b772e.js","js/build/axios.79c8b3d5.js","js/build/mitt.1ea0a2a3.js","js/build/quill-hi.b7430b13.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.f1b7ce48.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.e8ef3f14.js","js/build/lodash.isequal.d6a986d0.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.df04b444.js","js/build/quill-mention-hi.26cde5e9.js","js/build/view-design-hi.18b9f7fe.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.50be9c5e.js","js/build/clipboard.058ef547.js","js/build/vuedraggable.9fd6afed.js","js/build/sortablejs.d74243d9.js","js/build/vue-resize-observer.c3c9ca4e.js","js/build/element-sea.1d49e96e.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.0bdc1850.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.49abba38.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"single-report-detail",path:"/single/report/detail/:reportDetailId",component:()=>w(()=>import("./reportDetail.cb1eb0b6.js"),["js/build/reportDetail.cb1eb0b6.js","js/build/reportDetail.1d7536d4.css","js/build/ReportDetail.cfc195fb.js","js/build/vuex.cc7cb26e.js","js/build/jquery.bb849206.js","js/build/@babel.f9bcab46.js","js/build/dayjs.f27b22c9.js","js/build/localforage.f2f8f716.js","js/build/markdown-it.bda97caf.js","js/build/mdurl.ce6c1dd8.js","js/build/uc.micro.8d343c98.js","js/build/entities.48a44fec.js","js/build/linkify-it.c5e8196e.js","js/build/punycode.js.4b3f125a.js","js/build/highlight.js.ab8aeea4.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.897ae552.js","js/build/vue.fd9b772e.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.79c8b3d5.js","js/build/mitt.1ea0a2a3.js","js/build/quill-hi.b7430b13.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.f1b7ce48.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.e8ef3f14.js","js/build/lodash.isequal.d6a986d0.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.df04b444.js","js/build/quill-mention-hi.26cde5e9.js","js/build/view-design-hi.18b9f7fe.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.50be9c5e.js","js/build/clipboard.058ef547.js","js/build/vuedraggable.9fd6afed.js","js/build/sortablejs.d74243d9.js","js/build/vue-resize-observer.c3c9ca4e.js","js/build/element-sea.1d49e96e.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.0bdc1850.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.49abba38.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"token",path:"/token",component:()=>w(()=>import("./token.98dac788.js"),["js/build/token.98dac788.js","js/build/token.85beaced.css","js/build/jquery.bb849206.js","js/build/@babel.f9bcab46.js","js/build/dayjs.f27b22c9.js","js/build/localforage.f2f8f716.js","js/build/markdown-it.bda97caf.js","js/build/mdurl.ce6c1dd8.js","js/build/uc.micro.8d343c98.js","js/build/entities.48a44fec.js","js/build/linkify-it.c5e8196e.js","js/build/punycode.js.4b3f125a.js","js/build/highlight.js.ab8aeea4.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.897ae552.js","js/build/vue.fd9b772e.js","js/build/vuex.cc7cb26e.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.79c8b3d5.js","js/build/mitt.1ea0a2a3.js","js/build/quill-hi.b7430b13.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.f1b7ce48.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.e8ef3f14.js","js/build/lodash.isequal.d6a986d0.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.df04b444.js","js/build/quill-mention-hi.26cde5e9.js","js/build/view-design-hi.18b9f7fe.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.50be9c5e.js","js/build/clipboard.058ef547.js","js/build/vuedraggable.9fd6afed.js","js/build/sortablejs.d74243d9.js","js/build/vue-resize-observer.c3c9ca4e.js","js/build/element-sea.1d49e96e.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.0bdc1850.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.49abba38.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"login",path:"/login",component:()=>w(()=>import("./login.062545f3.js"),["js/build/login.062545f3.js","js/build/vuex.cc7cb26e.js","js/build/@chenfengyuan.dfd1ecb7.js","js/build/jquery.bb849206.js","js/build/@babel.f9bcab46.js","js/build/dayjs.f27b22c9.js","js/build/localforage.f2f8f716.js","js/build/markdown-it.bda97caf.js","js/build/mdurl.ce6c1dd8.js","js/build/uc.micro.8d343c98.js","js/build/entities.48a44fec.js","js/build/linkify-it.c5e8196e.js","js/build/punycode.js.4b3f125a.js","js/build/highlight.js.ab8aeea4.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.897ae552.js","js/build/vue.fd9b772e.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.79c8b3d5.js","js/build/mitt.1ea0a2a3.js","js/build/quill-hi.b7430b13.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.f1b7ce48.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.e8ef3f14.js","js/build/lodash.isequal.d6a986d0.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.df04b444.js","js/build/quill-mention-hi.26cde5e9.js","js/build/view-design-hi.18b9f7fe.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.50be9c5e.js","js/build/clipboard.058ef547.js","js/build/vuedraggable.9fd6afed.js","js/build/sortablejs.d74243d9.js","js/build/vue-resize-observer.c3c9ca4e.js","js/build/element-sea.1d49e96e.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.0bdc1850.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.49abba38.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"preload",path:"/preload",component:()=>w(()=>import("./preload.0be9af27.js"),["js/build/preload.0be9af27.js","js/build/jquery.bb849206.js","js/build/@babel.f9bcab46.js","js/build/dayjs.f27b22c9.js","js/build/localforage.f2f8f716.js","js/build/markdown-it.bda97caf.js","js/build/mdurl.ce6c1dd8.js","js/build/uc.micro.8d343c98.js","js/build/entities.48a44fec.js","js/build/linkify-it.c5e8196e.js","js/build/punycode.js.4b3f125a.js","js/build/highlight.js.ab8aeea4.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.897ae552.js","js/build/vue.fd9b772e.js","js/build/vuex.cc7cb26e.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.79c8b3d5.js","js/build/mitt.1ea0a2a3.js","js/build/quill-hi.b7430b13.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.f1b7ce48.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.e8ef3f14.js","js/build/lodash.isequal.d6a986d0.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.df04b444.js","js/build/quill-mention-hi.26cde5e9.js","js/build/view-design-hi.18b9f7fe.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.50be9c5e.js","js/build/clipboard.058ef547.js","js/build/vuedraggable.9fd6afed.js","js/build/sortablejs.d74243d9.js","js/build/vue-resize-observer.c3c9ca4e.js","js/build/element-sea.1d49e96e.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.0bdc1850.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.49abba38.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"404",path:"*",component:()=>w(()=>import("./404.a3fb5c3e.js"),["js/build/404.a3fb5c3e.js","js/build/404.d686a01f.css","js/build/jquery.bb849206.js","js/build/@babel.f9bcab46.js","js/build/dayjs.f27b22c9.js","js/build/localforage.f2f8f716.js","js/build/markdown-it.bda97caf.js","js/build/mdurl.ce6c1dd8.js","js/build/uc.micro.8d343c98.js","js/build/entities.48a44fec.js","js/build/linkify-it.c5e8196e.js","js/build/punycode.js.4b3f125a.js","js/build/highlight.js.ab8aeea4.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.897ae552.js","js/build/vue.fd9b772e.js","js/build/vuex.cc7cb26e.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.79c8b3d5.js","js/build/mitt.1ea0a2a3.js","js/build/quill-hi.b7430b13.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.f1b7ce48.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.e8ef3f14.js","js/build/lodash.isequal.d6a986d0.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.df04b444.js","js/build/quill-mention-hi.26cde5e9.js","js/build/view-design-hi.18b9f7fe.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.50be9c5e.js","js/build/clipboard.058ef547.js","js/build/vuedraggable.9fd6afed.js","js/build/sortablejs.d74243d9.js","js/build/vue-resize-observer.c3c9ca4e.js","js/build/element-sea.1d49e96e.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.0bdc1850.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.49abba38.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])}];const pe=$A(window).width(),eu=$A(window).height(),we=$A.screenOrientation(),tu=$A.isFullScreen();var su={clientId:"",cacheVersion:"v17",windowActive:!0,windowScrollY:0,safeAreaSize:{top:0,bottom:0,data:null},viewportHeight:0,windowTouch:"ontouchend"in document,windowWidth:pe,windowHeight:eu,isFirstPage:!1,windowOrientation:we,windowLandscape:we==="landscape",windowPortrait:we==="portrait",windowIsFullScreen:tu,formOptions:{class:pe>576?"":"form-label-weight-bold",labelPosition:pe>576?"right":"top",labelWidth:pe>576?"auto":""},keyboardShow:!1,keyboardHeight:0,isModKey:!1,appNotificationPermission:!0,audioPlaying:null,routeName:null,routePath:null,routeHistorys:[],routeHistoryLast:{},routeLoading:0,mobileTabbar:!1,callAt:[],loads:[],loadDashboardTasks:!1,loadUserBasic:!1,loadProjects:0,loadDialogs:0,loadDialogAuto:!1,loadDialogLatestId:0,floatSpinnerTimer:[],floatSpinnerLoad:0,touchBackInProgress:!1,cacheUserWait:[],cacheUserBasic:[],cacheCalendarView:null,cacheDialogs:[],cacheProjects:[],cacheColumns:[],cacheTasks:[],cacheProjectParameter:[],cacheTaskBrowse:[],cacheEmojis:[],cacheServerUrl:"",cacheKeyboard:{},ajaxAuthException:null,ajaxNetworkException:null,ws:null,wsCall:{},wsTimeout:null,wsRandom:0,wsOpenNum:0,userInfo:{},userId:0,userToken:"",userIsAdmin:!1,userAvatar:{},dialogId:0,dialogMsgId:0,dialogMsgKeep:25,dialogSearchMsgId:0,dialogIns:[],dialogMsgs:[],dialogTodos:[],dialogMsgTops:[],dialogHistory:[],dialogDrafts:[],dialogQuotes:[],dialogMsgTransfer:{time:0},dialogSseList:[],dialogDroupWordChain:{},dialogGroupVote:{},dialogModalShow:!1,messengerSearchKey:{dialog:"",contacts:""},readLoadNum:0,readTimeout:null,readWaitData:{},fileLists:[],fileLinks:[],filePackLists:[],fileShakeId:0,projectId:0,projectTotal:0,projectLoad:0,taskId:0,taskCompleteTemps:[],taskContents:[],taskFiles:[],taskLogs:[],taskOperation:{},taskArchiveView:0,taskTemplates:[],taskLatestId:0,taskOneLoad:{},taskFlows:[],taskFlowItems:[],taskPriority:[],columnTemplate:[],columnColorList:[{name:"\u9ED8\u8BA4",color:""},{name:"\u84DD\u8272",color:"#51abea"},{name:"\u7EFF\u8272",color:"#73b45c"},{name:"\u9EC4\u8272",color:"#f2d86d"},{name:"\u6A59\u8272",color:"#faaa6c"},{name:"\u7EA2\u8272",color:"#ff7070"},{name:"\u7D2B\u8272",color:"#b583e3"},{name:"\u7C89\u8272",color:"#ff819c"},{name:"\u9752\u8272",color:"#3ad1c8"},{name:"\u68D5\u8272",color:"#947364"},{name:"\u7070\u8272",color:"#999999"},{name:"\u6DF1\u84DD",color:"#2b5caa"},{name:"\u6DF1\u7EFF",color:"#1a7f5a"},{name:"\u91D1\u8272",color:"#ffd700"},{name:"\u6E56\u84DD",color:"#00bcd4"}],taskColorList:[{name:"\u9ED8\u8BA4",color:"",primary:""},{name:"\u9EC4\u8272",color:"#fffae6",primary:"#f2d86d"},{name:"\u84DD\u8272",color:"#e5f5ff",primary:"#51abea"},{name:"\u7EFF\u8272",color:"#ecffe5",primary:"#73b45c"},{name:"\u7C89\u8272",color:"#ffeaee",primary:"#ff819c"},{name:"\u7D2B\u8272",color:"#f6ecff",primary:"#b583e3"},{name:"\u7070\u8272",color:"#f3f3f3",primary:"#999999"}],themeConf:window.localStorage.getItem("__system:themeConf__"),themeName:null,themeList:[{name:"\u8DDF\u968F\u7CFB\u7EDF",value:"auto"},{name:"\u660E\u4EAE",value:"light"},{name:"\u6697\u9ED1",value:"dark"}],clientNewVersion:null,previewImageIndex:0,previewImageList:[],reportUnreadNumber:0,apiKeyData:{},localKeyPair:{},localKeyLock:!1,systemConfig:{},approveUnreadNumber:0,meetingWindow:{show:!1,type:"",meetingid:0},appMeetingShow:!1,cacheTranslationLanguage:"",cacheTranslations:[],cacheTranscriptionLanguage:"",menuOperation:{},longpressData:{type:"",data:null,element:null},microApps:[],microAppsInstalled:[],microAppsIds:[],microAppsMenus:[]},iu={isLoad(e){return function(i){const t=e.loads.find(s=>s.key===i);return!!(t&&t.num>0)}},isMessengerPage(e){return e.routeName==="manage-messenger"},projectData(e){if(e.projectId>0){let i=e.cacheProjects.find(({id:t})=>t==e.projectId);if(i){let t=e.cacheProjectParameter.find(({project_id:s})=>s==e.projectId);return t||(t=$A.projectParameterTemplate(e.projectId),e.cacheProjectParameter.push(t)),t.menuType===void 0&&(t.menuType="column"),i.cacheParameter=t,i}}return{cacheParameter:{}}},taskData(e){let i=e.taskId;if(i==0&&(i=$A.runNum(window.__taskId)),i>0){window.__taskId=i;const t=e.cacheTasks.find(({id:s})=>s==i);if(t)return t}return{}},transforTasks(e){return function(i){return i.filter(({parent_id:t})=>!(t>0&&i.find(({id:s})=>s==t))).map(t=>{if(t.parent_id>0){const s=e.cacheTasks.find(({id:n})=>n==t.parent_id);return s?Object.assign({},s,{id:t.id,parent_id:t.parent_id,name:t.name,start_at:t.start_at,end_at:t.end_at,complete_at:t.complete_at,_time:t._time,flow_item_id:t.flow_item_id,flow_item_name:t.flow_item_name,flow_item_status:t.flow_item_status,sub_top:!0,sub_my:[]}):Object.assign({},t,{sub_top:!0,sub_my:[]})}else return Object.assign({},t,{sub_top:!1,sub_my:i.filter(({parent_id:s})=>s==t.id)})})}},dashboardTask(e){const i=$A.daytz().startOf("day"),t=$A.daytz().endOf("day"),s=$A.daytz(),n=(o,l=!0)=>o.archived_at||o.complete_at&&l===!0||o.start_at&&$A.dayjs(o.start_at)>s?!1:o.owner==1;let a=e.cacheTasks.filter(o=>n(o));if(e.taskCompleteTemps.length>0){let o=e.cacheTasks.filter(l=>e.taskCompleteTemps.includes(l.id)&&n(l,!1));o.length>0&&(o.length,a=$A.cloneJSON(a),a.push(...o))}const r={overdue:[],today:[],todo:[],overdue_count:0,today_count:0,todo_count:0};return a.forEach(o=>{const l=e.taskCompleteTemps.includes(o.id);if(o.end_at&&$A.dayjs(o.end_at)<=s)r.overdue.push(o),l||r.overdue_count++;else if(o.end_at){const c=$A.dayjs(o.end_at);i<=c&&c<=t?(r.today.push(o),l||r.today_count++):(r.todo.push(o),l||r.todo_count++)}else r.todo.push(o),l||r.todo_count++}),r},assistTask(e){const i=(s,n=!0)=>s.archived_at||s.complete_at&&n===!0?!1:s.assist&&s.owner===0;let t=e.cacheTasks.filter(s=>i(s));if(e.taskCompleteTemps.length>0){const s=e.cacheTasks.filter(n=>e.taskCompleteTemps.includes(n.id)&&i(n,!1));s.length>0&&(t=$A.cloneJSON(t),t.push(...s))}return t.sort((s,n)=>{const a=s.end_at?$A.dayjs(s.end_at):$A.dayjs("2099-12-31 23:59:59"),r=n.end_at?$A.dayjs(n.end_at):$A.dayjs("2099-12-31 23:59:59");return a-r})},getDialogDraft:e=>i=>e.dialogDrafts.find(s=>s.id===i)||null,tagDialogDraft:e=>i=>{const t=e.dialogDrafts.find(s=>s.id===i);return!!(t!=null&&t.tag)},getDialogQuote:e=>i=>e.dialogQuotes.find(s=>s.id===i)||null,filterMicroAppsMenus:e=>e.microAppsMenus.filter(i=>i.location==="application"),filterMicroAppsMenusAdmin:e=>e.microAppsMenus.filter(i=>i.location==="application/admin"),filterMicroAppsMenusMain:e=>e.microAppsMenus.filter(i=>i.location==="main/menu")};function nu(e,i,t){$A.isJson(i)||(i={});const s=e+"::"+encodeURIComponent(new URLSearchParams($A.sortObject(i,["page","pagesize","timerange"])).toString()),n=t.callAt.find(a=>a.key===s)||{};return n.__last=$A.dayjs().unix(),typeof n.key=="undefined"&&(n.key=s,n.updated=0,n.deleted=0,t.callAt.push(n),$A.IDBSet("callAt",t.callAt).catch(a=>{})),this.get=()=>(i.timerange=i.timerange||`${n.updated||0},${n.deleted||0}`,i),this.save=({total:a,current_page:r,deleted_id:o})=>new Promise(async l=>{if(r!==1)return;let c=!1;const u=n.__last||$A.dayjs().unix();a>0&&(n.updated=u,c=!0),$A.isArray(o)&&o.length>0?(n.deleted=u,c=!0):o=[],$A.isEEUIApp&&(c=t.isFirstPage),c&&($A.isSubElectron||$A.isEEUIApp&&!t.isFirstPage||await $A.IDBSet("callAt",t.callAt)),l(o)}),this}function ke(e,i,t){return new nu(e,i,t)}function au(e,i=!0){return e&&(i?e=String(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/\n/g,"$"):e=String(e).replace(/\-/g,"+").replace(/\_/g,"/").replace(/\$/g,`
|
|
`)),e}const ru={retry:5,interval:3*1e3};class ou{constructor(i,t=ru){this.url=i,this.es=null,this.options=t,this.retry=t.retry,this.timer=null}_onOpen(){window.systemInfo.debug==="yes"&&console.log("SSE open: "+this.url)}_onMessage(i,t){return s=>{this.retry=this.options.retry,typeof t=="function"&&t(i,s)}}_onError(i,t){return()=>{window.systemInfo.debug==="yes"&&console.log("SSE retry: "+this.url),this.es&&(this._removeAllEvent(i,t),this.unsunscribe()),this.retry>0&&(this.retry--,this.timer=setTimeout(()=>{this.subscribe(i,t)},this.options.interval))}}_removeAllEvent(i,t){i=$A.isArray(i)?i:[i],this.es.removeEventListener("open",this._onOpen),i.some(s=>{this.es.removeEventListener(s,this._onMessage(s,t))}),this.es.removeEventListener("error",this._onError(i,t))}subscribe(i,t){i=$A.isArray(i)?i:[i],this.es=new EventSource(this.url),this.es.addEventListener("open",this._onOpen),i.some(s=>{this.es.addEventListener(s,this._onMessage(s,t))}),this.es.addEventListener("error",this._onError(i,t))}unsunscribe(){this.es&&(this.es.close(),this.es=null),this.timer&&clearTimeout(this.timer),window.systemInfo.debug==="yes"&&console.log("SSE cancel: "+this.url)}}const W={timer:{},subTemp:null};var lu={preload({state:e}){var i;window.addEventListener("resize",()=>{const t=$A(window).width(),s=$A(window).height(),n=$A.screenOrientation();e.windowTouch="ontouchend"in document,e.windowWidth=t,e.windowHeight=s,e.windowOrientation=n,e.windowLandscape=n==="landscape",e.windowPortrait=n==="portrait",e.windowIsFullScreen=$A.isFullScreen(),e.formOptions={class:t>576?"":"form-label-weight-bold",labelPosition:t>576?"right":"top",labelWidth:t>576?"auto":""},$A.eeuiAppSendMessage({action:"windowSize",width:t,height:s})}),window.addEventListener("scroll",()=>{e.windowScrollY=window.scrollY}),window.addEventListener("message",({data:t})=>{t=$A.jsonParse(t),t.action==="eeuiAppSendMessage"&&($A.isArray(t.data)?t.data:[t.data]).forEach(n=>{$A.eeuiAppSendMessage(n)})}),window.addEventListener("fullscreenchange",()=>{document.fullscreenElement?$A("body").addClass("fullscreen-mode"):$A("body").removeClass("fullscreen-mode")}),(i=window.visualViewport)==null||i.addEventListener("resize",()=>{e.viewportHeight=window.visualViewport.height||0})},init({state:e,dispatch:i}){return new Promise(async t=>{const s=$A.urlParameterAll(),n={language:"__system:languageName__",theme:"__system:themeConf__",userid:"__system:userId__",token:"__system:userToken__"},a={userid:0,token:null};if(Object.entries(n).forEach(([c,u])=>{s[c]&&(window.localStorage.setItem(u,s[c]),c==="userid"&&(a.userid=$A.runNum(s[c])),c==="token"&&(a.token=s[c]))}),Object.keys(n).some(c=>s[c])){const c=$A.removeURLParameter(window.location.href,Object.keys(n));window.history.replaceState(null,"",c)}if(a.userid>0&&a.token){const c=await $A.IDBJson("userInfo");await $A.IDBSet("userInfo",Object.assign(c,a))}let r=null;const o=await $A.IDBString("clearCache");o&&(o==="handle"&&(r="handleClearCache"),await $A.IDBRemove("clearCache"),await $A.IDBSet("cacheVersion","clear"));const l=await $A.IDBString("cacheVersion");l&&l!==e.cacheVersion?await i("handleClearCache"):await i("handleReadCache"),await i("synchTheme"),await i("handleKeyboard"),e.clientId||(e.clientId=$A.randomString(6),await $A.IDBSet("clientId",e.clientId)),i("call",{url:"users/key/client",data:{client_id:e.clientId},encrypt:!1}).then(({data:c})=>{e.apiKeyData=c}),i("systemSetting"),await $A.loadScriptS(["js/jsencrypt.min.js","js/scroll-into-view.min.js","language/web/key.js",`language/web/${I}.js`,`language/iview/${I}.js`]),Rs(),t(r)})},safeAreaInsets({state:e}){return new Promise(i=>{if(!e.isFirstPage)return i(null);$A.eeuiAppGetSafeAreaInsets().then(t=>{var n,a,r,o;t.top=t.top||((a=(n=e.safeAreaSize)==null?void 0:n.data)==null?void 0:a.top)||0,t.bottom=t.bottom||((o=(r=e.safeAreaSize)==null?void 0:r.data)==null?void 0:o.bottom)||0;const s=t.height/window.outerHeight;e.safeAreaSize={top:Math.round(t.top/s*100)/100,bottom:Math.round(t.bottom/s*100)/100,data:t},i(e.safeAreaSize)}).catch(t=>{console.warn(t),i(null)})})},call({state:e,dispatch:i},t){var a;$A.isJson(t)||(t={url:t});const s={"Content-Type":"application/json",language:I,token:e.userToken,fd:$A.getSessionStorageString("userWsFd"),version:window.systemInfo.version||"0.0.1",platform:$A.Platform};if(!e.userToken&&((a=e.meetingWindow)==null?void 0:a.meetingSharekey)&&(s.sharekey=e.meetingWindow.meetingSharekey),$A.isJson(t.header)?t.header=Object.assign(s,t.header):t.header=s,e.systemConfig.e2e_message==="open"&&t.encrypt===void 0&&$A.inArray(t.url,["users/login","users/editpass","users/operation","users/delete/account","system/license","users/bot/*","dialog/msg/*"],!0)&&(t.encrypt=!0),t.encrypt){const r=window.navigator.userAgent;(window.systemInfo.debug==="yes"||/Windows NT 5.1|Windows XP/.test(r)||r.indexOf("Windows NT 6.0")!==-1||r.indexOf("Windows NT 6.1")!==-1||r.indexOf("Windows NT 6.2")!==-1)&&(t.encrypt=!1)}t.url=$A.apiUrl(t.url),t.data=$A.newDateString(t.data);const n=$A.cloneJSON(t);return new Promise(async(r,o)=>{if(/^https?:\/\/public\//.test(t.url)){o({ret:-1,data:{},msg:"No server address"});return}const l=[];if(t.encrypt===!0&&(t.data&&e.apiKeyData.type==="pgp"&&(l.push(`encrypt_type=${e.apiKeyData.type};encrypt_id=${e.apiKeyData.id}`),t.method="post",t.data={encrypted:await i("pgpEncryptApi",t.data)}),l.push("client_type=pgp;client_key="+(await i("pgpGetLocalKey")).publicKeyB64)),l.length>0&&(t.header.encrypt=l.join(";")),t.method==="post"&&(t.data=JSON.stringify(t.data)),t.spinner===!0||typeof t.spinner=="number"&&t.spinner>0){const{before:c,complete:u}=t;t.before=()=>{i("showSpinner",typeof t.spinner=="number"?t.spinner:0),typeof c=="function"&&c()},t.complete=()=>{i("hiddenSpinner"),typeof u=="function"&&u()}}t.success=async(c,u,h)=>{if(!$A.isJson(c)){console.log(c,u,h),o({ret:-1,data:{},msg:$A.L("\u8FD4\u56DE\u53C2\u6570\u9519\u8BEF")});return}t.encrypt===!0&&c.encrypted&&(c=await i("pgpDecryptApi",c.encrypted));const{ret:d,data:p,msg:f}=c;if(d===-1&&(e.userId=0,t.checkAuth!==!1)){e.ajaxAuthException=f||$A.L("\u8BF7\u767B\u5F55\u540E\u7EE7\u7EED..."),o(Object.assign(c,{msg:!1}));return}if(d===-2&&t.checkNick!==!1){i("userEditInput","nickname").then(()=>{i("call",n).then(r).catch(o)}).catch(g=>{o({ret:-1,data:p,msg:g||$A.L("\u8BF7\u8BBE\u7F6E\u6635\u79F0\uFF01")})});return}if(d===-3&&t.checkTel!==!1){i("userEditInput","tel").then(()=>{i("call",n).then(r).catch(o)}).catch(g=>{o({ret:-1,data:p,msg:g||$A.L("\u8BF7\u8BBE\u7F6E\u8054\u7CFB\u7535\u8BDD\uFF01")})});return}if(d===1){r({data:p,msg:f,xhr:h});return}o({ret:d,data:p,msg:f||$A.L("\u672A\u77E5\u9519\u8BEF")}),d===-4001?i("forgetProject",{id:p.project_id}):d===-4002?(p.force===1&&(e.taskArchiveView=0),i("forgetTask",{id:p.task_id})):d===-4003?i("forgetDialog",{id:p.dialog_id}):d===-4004&&i("getTaskForParent",p.task_id).catch(()=>{})},t.error=async(c,u)=>{const h={ret:-1,data:{},msg:$A.L("\u8BF7\u6C42\u5931\u8D25\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5\u3002")};if(window.navigator.onLine===!1||u===0&&c.readyState===4){if(n.method!=="post"&&n.networkFailureRetry!==!1){await new Promise(p=>setTimeout(p,1e3)),i("call",Object.assign(n,{networkFailureRetry:!1})).then(r).catch(o);return}h.ret=-1001,h.msg=t.checkNetwork!==!1?!1:$A.L("\u7F51\u7EDC\u5F02\u5E38\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5\u3002"),t.checkNetwork!==!1&&$A.Ready!==!1&&(e.ajaxNetworkException=$A.L("\u7F51\u7EDC\u8FDE\u63A5\u5931\u8D25\uFF0C\u8BF7\u68C0\u67E5\u7F51\u7EDC\u8BBE\u7F6E\u3002"))}o(h),console.error(c,u)},$A.ajaxc(t)})},callCancel({state:e},i){return new Promise((t,s)=>{$A.ajaxcCancel(i)?t():s()})},systemSetting({dispatch:e,state:i}){return new Promise((t,s)=>{switch(i.systemConfig.__state){case"success":t(i.systemConfig);break;case"loading":setTimeout(n=>{e("systemSetting").then(t).catch(s)},100);break;default:i.systemConfig.__state="loading",e("call",{url:"system/setting"}).then(({data:n})=>{i.systemConfig=Object.assign(n,{timezoneDifference:$A.updateTimezone(n.server_timezone),__state:"success"}),t(i.systemConfig)}).catch(n=>{i.systemConfig.__state="error",s()});break}})},downUrl({state:e},i){if(!i)return;let t=i,s=!0;if($A.isJson(i)&&(t=i.url,s=!!i.token),s){let n={token:e.userToken};$A.isJson(i)&&(t=i.url,n=i.params||{}),t=$A.urlAddParams(t,n)}$A.Electron?$A.Electron.request({action:"openExternal",url:t},()=>{},()=>{}):$A.isEEUIApp?$A.eeuiAppOpenWeb(t):window.open(t)},filePos({state:e,getters:i,dispatch:t},s){if($A.isSubElectron){$A.syncDispatch("filePos",s),$A.Electron.sendMessage("mainWindowActive");return}t("openTask",0),(!i.isMessengerPage||e.windowPortrait)&&t("openDialog",0),$A.goForward({name:"manage-file",params:s})},toggleProjectParameter({commit:e,state:i},t){$A.syncDispatch("toggleProjectParameter",t);let s=t,n=null,a=i.projectId;if($A.isJson(t)&&(s=t.key,n=t.value,a=t.project_id),a){let r=i.cacheProjectParameter.findIndex(l=>l.project_id==a);r===-1&&(e("project/parameter/push",$A.projectParameterTemplate(a)),r=i.cacheProjectParameter.findIndex(l=>l.project_id==a));const o=i.cacheProjectParameter[r];$A.isJson(s)||(s={[s]:n||!o[s]}),e("project/parameter/splice",{index:r,data:Object.assign(o,s)})}},setTheme({state:e,dispatch:i},t){return new Promise(function(s){if(t===void 0){s(!1);return}if(!$A.dark.utils.supportMode()){$A.isEEUIApp?$A.modalWarning("\u4EC5Android\u8BBE\u7F6E\u652F\u6301\u4E3B\u9898\u529F\u80FD"):$A.modalWarning("\u4EC5\u5BA2\u6237\u7AEF\u6216Chrome\u6D4F\u89C8\u5668\u652F\u6301\u4E3B\u9898\u529F\u80FD"),s(!1);return}i("synchTheme",t),s(!0)})},synchTheme({state:e,dispatch:i},t=void 0){switch(typeof t=="undefined"?t=e.themeConf:e.themeConf=t,t){case"dark":$A.dark.enableDarkMode();break;case"light":$A.dark.disableDarkMode();break;default:e.themeConf="auto",$A.dark.autoDarkMode();break}e.themeName=$A.dark.isDarkEnabled()?"dark":"light",window.localStorage.setItem("__system:themeConf__",e.themeConf),$A.isEEUIApp?$A.eeuiAppSendMessage({action:"updateTheme",themeName:e.themeName,themeDefault:{theme:{dark:"#131313",light:"#f8f8f8"},nav:{dark:"#cdcdcd",light:"#232323"}}}):$A.isElectron&&$A.Electron.sendMessage("setStore",{key:"themeConf",value:e.themeConf})},getBasicData({state:e,dispatch:i},t){if(typeof t=="number"){window.__getBasicDataTimer&&clearTimeout(window.__getBasicDataTimer),t>-1&&(window.__getBasicDataTimer=setTimeout(a=>i("getBasicData",null),t));return}const s=e.userId+$A.dayjs().unix();if(window.__getBasicDataKey===s)return;window.__getBasicDataKey=s,i("getDialogAuto").catch(()=>{}),i("getDialogTodo",0).catch(()=>{}),i("getTaskPriority",1e3),i("getReportUnread",1e3),i("getApproveUnread",1e3),i("getProjectByQueue"),i("getTaskForDashboard"),i("dialogMsgRead"),i("updateMicroAppsStatus");const n=Object.values(e.userAvatar).map(({userid:a})=>a);[...new Set(n)].some(a=>i("getUserBasic",{userid:a}))},getReportUnread({state:e,dispatch:i},t){window.__getReportUnread&&clearTimeout(window.__getReportUnread),window.__getReportUnread=setTimeout(()=>{e.userId===0?e.reportUnreadNumber=0:i("call",{url:"report/unread"}).then(({data:s})=>{e.reportUnreadNumber=s.total||0}).catch(s=>{})},typeof t=="number"?t:1e3)},getApproveUnread({state:e,dispatch:i},t){window.__getApproveUnread&&clearTimeout(window.__getApproveUnread),window.__getApproveUnread=setTimeout(()=>{e.userId===0?e.approveUnreadNumber=0:i("call",{url:"approve/process/doto"}).then(({data:s})=>{e.approveUnreadNumber=s.total||0}).catch(({msg:s})=>{s.indexOf("404 not found")!==-1&&$A.modalInfo({title:"\u7248\u672C\u8FC7\u4F4E",content:"\u670D\u52A1\u5668\u7248\u672C\u8FC7\u4F4E\uFF0C\u8BF7\u5347\u7EA7\u670D\u52A1\u5668\u3002"})})},typeof t=="number"?t:1e3)},getUserInfo({dispatch:e}){return new Promise(function(i,t){e("call",{url:"users/info"}).then(s=>{e("saveUserInfo",s.data),i(s)}).catch(s=>{console.warn(s),t(s)})})},saveUserInfoBase({state:e,dispatch:i},t){return new Promise(async s=>{const n=$A.cloneJSON(t);n.userid=$A.runNum(n.userid),n.token=n.userid>0?n.token||e.userToken:"",e.userInfo=n,e.userId=n.userid,e.userToken=n.token,e.userIsAdmin=$A.inArray("admin",n.identity),$A.isSubElectron||$A.isEEUIApp&&!e.isFirstPage||await $A.IDBSet("userInfo",e.userInfo),$A.eeuiAppSendMessage({action:"userChatList",language:$A.eeuiAppConvertLanguage(),url:$A.mainUrl("api/users/share/list")+`?token=${e.userToken}`}),$A.eeuiAppSendMessage({action:"userUploadUrl",dirUrl:$A.mainUrl("api/file/content/upload")+`?token=${e.userToken}`,chatUrl:$A.mainUrl("api/dialog/msg/sendfiles")+`?token=${e.userToken}`}),s()})},saveUserInfo({commit:e,state:i,dispatch:t},s){return new Promise(async n=>{await t("saveUserInfoBase",s),t("getBasicData",null),i.userId>0&&(e("user/save",i.cacheUserBasic.filter(({userid:a})=>a!==i.userId)),t("saveUserBasic",i.userInfo)),n()})},getUserBasic({state:e,dispatch:i},t){if(e.loadUserBasic===!0){t&&e.cacheUserWait.push(t);return}let s=$A.dayjs().unix(),n=$A.cloneJSON(e.cacheUserWait);t&&t.userid&&n.push(t),e.cacheUserWait=[];let a=[],r=0;n.some(o=>{let l=e.cacheUserBasic.find(({userid:c})=>c==o.userid);if(l&&s-l._time<=30)return setTimeout(()=>{C.emit("userActive",{type:"cache",data:l})},r+=5),!1;a.push(o)}),a.length!==0&&(a.length>30&&(e.cacheUserWait=a.slice(30),a=a.slice(0,30)),e.loadUserBasic=!0,i("call",{url:"users/basic",data:{userid:[...new Set(a.map(({userid:o})=>o))]},checkAuth:!1}).then(o=>{s=$A.dayjs().unix(),a.forEach(l=>{let c=o.data.find(({userid:u})=>u==l.userid)||Object.assign(l,{email:""});c._time=s,i("saveUserBasic",c)}),e.loadUserBasic=!1,i("getUserBasic")}).catch(o=>{console.warn(o),e.loadUserBasic=!1,i("getUserBasic")}))},getUserData({state:e,dispatch:i},t){return new Promise(async(s,n)=>{let a=e.cacheUserBasic.find(r=>r.userid==t);if(!a)try{const{data:r}=await i("call",{url:"users/basic",data:{userid:[t]},checkAuth:!1});a=r.find(o=>o.userid==t)}catch{}a?s(a):n()})},saveUserBasic({commit:e,state:i},t){$A.syncDispatch("saveUserBasic",t);const s=i.cacheUserBasic.findIndex(({userid:n})=>n==t.userid);s>-1?(t=Object.assign({},i.cacheUserBasic[s],t),e("user/splice",{index:s,data:t})):e("user/push",t),C.emit("userActive",{type:"cache",data:t})},editUserBot({dispatch:e},i){return new Promise((t,s)=>{let n=0;i.dialog_id&&(n=i.dialog_id,delete i.dialog_id),e("call",{url:"users/bot/edit",data:i,method:"post"}).then(({data:a,msg:r})=>{e("saveUserBasic",{userid:a.id,nickname:a.name,userimg:a.avatar}),n&&e("saveDialog",{id:n,name:a.name}),t({data:a,msg:r})}).catch(s)})},userEditInput({dispatch:e},i){return new Promise(function(t,s){let n="";if(i==="nickname")n="\u6635\u79F0";else if(i==="tel")n="\u8054\u7CFB\u7535\u8BDD";else{s("\u53C2\u6570\u9519\u8BEF");return}setTimeout(a=>{$A.modalInput({title:`\u8BBE\u7F6E${n}`,placeholder:`\u8BF7\u8F93\u5165\u60A8\u7684${n}`,okText:"\u4FDD\u5B58",onOk:r=>r?new Promise((o,l)=>{e("call",{url:"users/editdata",data:{[i]:r},checkNick:!1,checkTel:!1}).then(()=>{e("getUserInfo").finally(c=>{o(),t()})}).catch(({msg:c})=>{l(c)})}):`\u8BF7\u8F93\u5165${n}`,onCancel:r=>s})},100)})},getDepartmentList({dispatch:e}){return new Promise((i,t)=>{const s=(n,a=0,r=0,o=[])=>{let l=[];return n.some(c=>{if(c.parent_id==a){const u=Object.assign({},c,{chains:o.concat([c.name]),level:r+1});l.push(u);const h=s(n,c.id,r+1,o.concat([c.name]));l=l.concat(h)}}),l};e("call",{url:"users/department/list"}).then(({data:n})=>{i(s(n,0,1))}).catch(t)})},logout({state:e,dispatch:i},t=!0){return new Promise(async s=>{try{await i("call",{url:"users/logout",timeout:6e3})}catch(n){console.log(n)}i("handleClearCache",{}).then(()=>{let n=["/","/login"].includes(window.location.pathname)?"":encodeURIComponent(window.location.href);t===!1&&(n=null),$A.goForward({name:"login",query:n?{from:n}:{}},!0),s()})})},handleKeyboard({state:e},i){return new Promise(t=>{window.localStorage.getItem("__system:keyboardConf__")||(window.localStorage.setItem("__system:keyboardConf__",window.localStorage.getItem("__keyboard:data__")),window.localStorage.removeItem("__keyboard:data__"));const s=$A.isJson(i)?i:$A.jsonParse(window.localStorage.getItem("__system:keyboardConf__"))||{};s.screenshot_key=(s.screenshot_key||"").trim().toLowerCase(),s.send_button_app=s.send_button_app||"enter",s.send_button_desktop=s.send_button_desktop||"enter",window.localStorage.setItem("__system:keyboardConf__",$A.jsonStringify(s)),e.cacheKeyboard=s,t(s)})},handleClearCache({state:e,dispatch:i},t){return new Promise(async s=>{const n=["themeConf","languageName","keyboardConf"],a=n.reduce((o,l)=>({...o,[l]:window.localStorage.getItem(`__system:${l}__`)}),{});window.localStorage.clear(),n.forEach(o=>window.localStorage.setItem(`__system:${o}__`,a[o]));const r={clientId:await $A.IDBString("clientId"),cacheServerUrl:await $A.IDBString("cacheServerUrl"),cacheCalendarView:await $A.IDBString("cacheCalendarView"),cacheProjectParameter:await $A.IDBArray("cacheProjectParameter"),cacheLoginEmail:await $A.IDBString("cacheLoginEmail"),cacheFileSort:await $A.IDBJson("cacheFileSort"),cacheTaskBrowse:await $A.IDBArray("cacheTaskBrowse"),cacheTranslationLanguage:await $A.IDBString("cacheTranslationLanguage"),cacheTranscriptionLanguage:await $A.IDBString("cacheTranscriptionLanguage"),cacheTranslations:await $A.IDBArray("cacheTranslations"),cacheEmojis:await $A.IDBArray("cacheEmojis"),userInfo:await $A.IDBJson("userInfo"),cacheVersion:e.cacheVersion};await $A.IDBClear(),await Promise.all(Object.entries(r).map(([o,l])=>$A.IDBSet(o,l))),await i("saveUserInfoBase",$A.isJson(t)?t:r.userInfo),await i("handleReadCache"),s()})},handleReadCache({state:e}){return new Promise(async i=>{const t={string:["clientId","cacheServerUrl","cacheCalendarView","cacheTranslationLanguage","cacheTranscriptionLanguage"],array:["cacheUserBasic","cacheProjects","cacheColumns","cacheTasks","cacheProjectParameter","cacheTaskBrowse","cacheTranslations","dialogMsgs","dialogDrafts","dialogQuotes","fileLists","callAt","cacheEmojis","cacheDialogs","microAppsIds","microAppsMenus"],json:["userInfo"]},s=await Promise.all([...t.string.map(n=>$A.IDBString(n)),...t.array.map(n=>$A.IDBArray(n)),...t.json.map(n=>$A.IDBJson(n))]);[...t.string,...t.array,...t.json].forEach((n,a)=>{e[n]=s[a]}),e.cacheDialogs=e.cacheDialogs.map(n=>({...n,loading:!1})),e.dialogDrafts=e.dialogDrafts.filter(n=>!!n.content).map(n=>({...n,tag:!!n.content})),typeof J[e.cacheTranslationLanguage]=="undefined"&&(e.cacheTranslationLanguage=I),typeof J[e.cacheTranscriptionLanguage]=="undefined"&&(e.cacheTranscriptionLanguage=""),e.userInfo.userid&&(e.userId=e.userInfo.userid=$A.runNum(e.userInfo.userid),e.userToken=e.userInfo.token,e.userIsAdmin=$A.inArray("admin",e.userInfo.identity)),e.cacheServerUrl&&(window.systemInfo.apiUrl=e.cacheServerUrl),i()})},onBeforeUnload(){$A.isSubElectron&&W.subTemp&&($A.syncDispatch("saveDialogDraft",W.subTemp),W.subTemp=null)},scrollBottom({state:e},i){if(!i)return;const t=i.getBoundingClientRect();!t||window.scrollTo({top:t.bottom+e.safeAreaSize.bottom,behavior:"smooth"})},userUrl({state:e},i){return new Promise(t=>{if($A.getDomain(i)==$A.getDomain($A.mainUrl())&&le(window.location))try{const n=new URL(i);if(/^\/(single|meeting)\//.test(n.pathname)){const a=new URL(window.location);return a.hash=n.pathname+n.search,t(a.toString())}}catch{}const s={language:I,theme:e.themeConf,userid:e.userId};($A.getDomain(i)==$A.getDomain($A.mainUrl())||le(i))&&(s.token=e.userToken),t($A.urlAddParams(i,s))})},openAppMapPage({dispatch:e},i){return new Promise(t=>{const s=$A.L("\u5B9A\u4F4D\u7B7E\u5230"),n=$A.randomString(6),a={title:s,label:$A.L("\u9009\u62E9\u9644\u8FD1\u5730\u70B9"),placeholder:$A.L("\u641C\u7D22\u5730\u70B9"),noresult:$A.L("\u9644\u8FD1\u6CA1\u6709\u627E\u5230\u5730\u70B9"),errtip:$A.L("\u5B9A\u4F4D\u5931\u8D25"),selectclose:"true",channel:n};$A.eeuiAppSetVariate(`location::${n}`,"");const r=$A.urlAddParams(window.location.origin+"/tools/map/index.html",Object.assign(a,i||{}));e("openAppChildPage",{pageType:"app",pageTitle:s,url:"web.js",params:{titleFixed:!0,hiddenDone:!0,url:r},callback:({status:o})=>{if(o==="pause"){const l=$A.jsonParse($A.eeuiAppGetVariate(`location::${n}`));if(l.point){if($A.eeuiAppSetVariate(`location::${n}`,""),l.distance>i.radius){$A.modalError(`\u4F60\u9009\u62E9\u7684\u4F4D\u7F6E\u300C${l.title}\u300D\u4E0D\u5728\u7B7E\u5230\u8303\u56F4\u5185`);return}t(l)}}}})})},async openAppChildPage({dispatch:e},i){i.params.url=await e("userUrl",i.params.url),typeof i.params.allowAccess=="undefined"&&(i.params.allowAccess=le(i.params.url)),typeof i.params.showProgress=="undefined"&&(i.params.showProgress=!le(i.params.url)),$A.eeuiAppOpenPage(i)},async openChildWindow({dispatch:e},i){i.path=await e("userUrl",i.path),$A.Electron.sendMessage("openChildWindow",i)},async openWebTabWindow({dispatch:e},i){const t={url:i};$A.getDomain(i)==$A.getDomain($A.mainUrl())?t.url=await e("userUrl",i):t.webPreferences={contextIsolation:!1},$A.Electron.sendMessage("openWebTabWindow",t)},saveFile({commit:e,state:i,dispatch:t},s){if($A.syncDispatch("saveFile",s),$A.isArray(s))s.forEach(n=>{t("saveFile",n)});else if($A.isJson(s)){let n={_load:!1,_edit:!1};const a=i.fileLists.findIndex(({id:r})=>r==s.id);a>-1?e("file/splice",{index:a,data:Object.assign(n,i.fileLists[a],s)}):e("file/push",Object.assign(n,s))}},forgetFile({commit:e,state:i,dispatch:t},s){$A.syncDispatch("forgetFile",s),($A.isArray(s.id)?s.id:[s.id]).some(a=>{e("file/save",i.fileLists.filter(r=>r.id!=a)),i.fileLists.some(r=>{r.pid==a&&t("forgetFile",r)})})},packProgress({state:e,dispatch:i},t){$A.syncDispatch("packProgress",t);const s=e.filePackLists.findIndex(({name:n})=>n==t.name);s>-1?e.filePackLists[s].progress=t.progress:e.filePackLists.push(t)},getFiles({commit:e,state:i,dispatch:t},s){return new Promise(function(n,a){t("call",{url:"file/lists",data:{pid:s}}).then(r=>{const o=r.data.map(({id:l})=>l);e("file/save",i.fileLists.filter(l=>l.pid!=s||o.includes(l.id))),t("saveFile",r.data),n(r)}).catch(r=>{console.warn(r),a(r)})})},searchFiles({state:e,dispatch:i},t){return $A.isJson(t)||(t={key:t}),new Promise(function(s,n){i("call",{url:"file/search",data:t}).then(a=>{i("saveFile",a.data),s(a)}).catch(a=>{console.warn(a),n(a)})})},saveProject({commit:e,state:i,dispatch:t},s){if($A.syncDispatch("saveProject",s),$A.isArray(s))s.forEach(n=>{t("saveProject",n)});else if($A.isJson(s)){typeof s.project_column!="undefined"&&(t("saveColumn",s.project_column),delete s.project_column);const n=i.cacheProjects.findIndex(({id:a})=>a==s.id);n>-1?e("project/splice",{index:n,data:Object.assign({},i.cacheProjects[n],s)}):(typeof s.project_user=="undefined"&&(s.project_user=[]),e("project/push",s),i.projectTotal++),i.cacheDialogs.some(a=>{if(a.type=="group"&&a.group_type=="project"&&a.group_info&&a.group_info.id==s.id){s.name!==void 0&&(a.name=s.name);for(let r in a.group_info)!a.group_info.hasOwnProperty(r)||s[r]===void 0||(a.group_info[r]=s[r])}})}},forgetProject({commit:e,state:i,dispatch:t},s){$A.syncDispatch("forgetProject",s);const n=$A.isArray(s.id)?s.id:[s.id];if(n.some(a=>{const r=i.cacheProjects.findIndex(o=>o.id==a);r>-1&&(t("forgetTask",{id:i.cacheTasks.filter(o=>o.project_id==s.id).map(o=>o.id)}),t("forgetColumn",{id:i.cacheColumns.filter(o=>o.project_id==s.id).map(o=>o.id)}),e("project/splice",{index:r}),i.projectTotal=Math.max(0,i.projectTotal-1))}),n.includes(i.projectId)){const a=$A.cloneJSON(i.cacheProjects).sort((r,o)=>r.top_at||o.top_at?$A.sortDay(o.top_at,r.top_at):o.id-r.id).find(({id:r})=>r&&r!=s.id);a?$A.goForward({name:"manage-project",params:{projectId:a.id}}):$A.goForward({name:"manage-dashboard"})}},getProjects({state:e,dispatch:i},t){return new Promise(function(s,n){if(e.userId===0){e.cacheProjects=[],n({msg:"Parameter error"});return}const a=ke("projects",t,e);setTimeout(()=>{e.loadProjects++},2e3),i("call",{url:"project/lists",data:a.get()}).then(({data:r})=>{i("saveProject",r.data),a.save(r).then(o=>i("forgetProject",{id:o})),e.projectTotal=r.total_all,s(r)}).catch(r=>{console.warn(r),n(r)}).finally(r=>{e.loadProjects--})})},getProjectByQueue({dispatch:e},i=null){if(window.__getProjectByQueueTimer&&clearTimeout(window.__getProjectByQueueTimer),typeof i=="number"){window.__getProjectByQueueTimer=setTimeout(t=>e("getProjectByQueue",null),i);return}e("getProjects").catch(()=>{})},getProjectOne({state:e,dispatch:i},t){return new Promise(function(s,n){if($A.runNum(t)===0){n({msg:"Parameter error"});return}e.projectLoad++,i("call",{url:"project/one",data:{project_id:t}}).then(a=>{setTimeout(()=>{e.projectLoad--},10),i("saveProject",a.data),s(a)}).catch(a=>{console.warn(a),e.projectLoad--,n(a)})})},archivedProject({state:e,dispatch:i},t){return new Promise(function(s,n){if($A.runNum(t)===0){n({msg:"Parameter error"});return}i("call",{url:"project/archived",data:{project_id:t}}).then(a=>{i("forgetProject",{id:t}),s(a)}).catch(a=>{console.warn(a),i("getProjectOne",t).catch(()=>{}),n(a)})})},removeProject({state:e,dispatch:i},t){return new Promise(function(s,n){if($A.runNum(t)===0){n({msg:"Parameter error"});return}i("call",{url:"project/remove",data:{project_id:t}}).then(a=>{i("forgetProject",{id:t}),s(a)}).catch(a=>{console.warn(a),i("getProjectOne",t).catch(()=>{}),n(a)})})},exitProject({state:e,dispatch:i},t){return new Promise(function(s,n){if($A.runNum(t)===0){n({msg:"Parameter error"});return}i("call",{url:"project/exit",data:{project_id:t}}).then(a=>{i("forgetProject",{id:t}),s(a)}).catch(a=>{console.warn(a),i("getProjectOne",t).catch(()=>{}),n(a)})})},saveColumn({commit:e,state:i,dispatch:t},s){if($A.syncDispatch("saveColumn",s),$A.isArray(s))s.forEach(n=>{t("saveColumn",n)});else if($A.isJson(s)){const n=i.cacheColumns.findIndex(({id:a})=>a==s.id);n>-1?e("project/column/splice",{index:n,data:Object.assign({},i.cacheColumns[n],s)}):e("project/column/push",s)}},forgetColumn({commit:e,state:i,dispatch:t},s){$A.syncDispatch("forgetColumn",s);const n=$A.isArray(s.id)?s.id:[s.id],a=[];n.some(r=>{const o=i.cacheColumns.findIndex(l=>l.id==r);o>-1&&(t("forgetTask",{id:i.cacheTasks.filter(l=>l.column_id==s.id).map(l=>l.id)}),a.push(i.cacheColumns[o].project_id),e("project/column/splice",{index:o}))}),Array.from(new Set(a)).some(r=>t("getProjectOne",r).catch(()=>{}))},getColumns({commit:e,state:i,dispatch:t},s){return new Promise(function(n,a){if(i.userId===0){i.cacheColumns=[],a({msg:"Parameter error"});return}i.projectLoad++,t("call",{url:"project/column/lists",data:{project_id:s}}).then(({data:r})=>{i.projectLoad--;const o=r.data.map(({id:l})=>l);if(e("project/column/save",i.cacheColumns.filter(l=>l.project_id!=s||o.includes(l.id))),t("saveColumn",r.data),n(r.data),i.cacheColumns.filter(l=>l.project_id==s).length===1){const l=i.cacheProjectParameter.find(c=>c.project_id==s)||{};(typeof l.menuInit=="undefined"||l.menuInit===!1)&&t("toggleProjectParameter",{project_id:s,key:{menuInit:!0,menuType:"table"}})}}).catch(r=>{console.warn(r),i.projectLoad--,a(r)})})},removeColumn({state:e,dispatch:i},t){return new Promise(function(s,n){if($A.runNum(t)===0){n({msg:"Parameter error"});return}i("call",{url:"project/column/remove",data:{column_id:t}}).then(a=>{i("forgetColumn",{id:t}),s(a)}).catch(a=>{console.warn(a),n(a)})})},saveTask({commit:e,state:i,dispatch:t},s){if($A.syncDispatch("saveTask",s),$A.isArray(s))s.forEach(n=>{t("saveTask",n)});else if($A.isJson(s)){if(s._time=$A.dayjs().unix(),s.flow_item_name&&s.flow_item_name.indexOf("|")!==-1){const r=$A.convertWorkflow(s.flow_item_name);s.flow_item_status=r.status,s.flow_item_name=r.name,s.flow_item_color=r.color}typeof s.archived_at!="undefined"&&i.cacheTasks.filter(r=>r.parent_id==s.id).some(r=>{t("saveTask",Object.assign(r,{archived_at:s.archived_at,archived_userid:s.archived_userid}))});let n={};typeof s.update_marking!="undefined"&&(n=$A.isJson(s.update_marking)?s.update_marking:{},delete s.update_marking);const a=i.cacheTasks.findIndex(({id:r})=>r==s.id);a>-1?e("task/splice",{index:a,data:Object.assign({},i.cacheTasks[a],s)}):e("task/push",s),(n.is_update_maintask===!0||s.parent_id>0&&i.cacheTasks.findIndex(({id:r})=>r==s.parent_id)===-1)&&t("getTaskOne",s.parent_id).catch(()=>{}),n.is_update_project===!0&&t("getProjectOne",s.project_id).catch(()=>{}),n.is_update_content===!0&&t("getTaskContent",s.id),n.is_update_subtask===!0&&t("getTaskForParent",s.id).catch(()=>{}),i.cacheDialogs.some(r=>{if(r.name===void 0||r.dialog_delete===1)return!1;if(r.type=="group"&&r.group_type=="task"&&r.group_info&&r.group_info.id==s.id){s.name!==void 0&&(r.name=s.name);for(let o in r.group_info)!r.group_info.hasOwnProperty(o)||s[o]===void 0||(r.group_info[o]=s[o])}})}},forgetTask({commit:e,state:i,dispatch:t},s){$A.syncDispatch("forgetTask",s);const n=($A.isArray(s.id)?s.id:[s.id]).filter(o=>o!=i.taskArchiveView),a=[],r=[];n.some(o=>{const l=i.cacheTasks.findIndex(c=>c.id==o);l>-1&&(i.cacheTasks[l].parent_id&&a.push(i.cacheTasks[l].parent_id),r.push(i.cacheTasks[l].project_id),e("task/splice",{index:l})),i.cacheTasks.filter(c=>c.parent_id==o).some(c=>{let u=i.cacheTasks.findIndex(h=>h.id==c.id);u>-1&&(r.push(c.project_id),e("task/splice",{index:u}))})}),Array.from(new Set(a)).some(o=>t("getTaskOne",o).catch(()=>{})),Array.from(new Set(r)).some(o=>t("getProjectOne",o).catch(()=>{})),n.includes(i.taskId)&&(i.taskId=0)},todayAndOverdue({state:e,dispatch:i}){const t=$A.daytz(),s=t.format("YYYY-MM-DD");e.cacheTasks.some(n=>{if(!n.end_at)return!1;const a={},r=$A.dayjs(n.end_at);!n.today&&r.format("YYYY-MM-DD")==s&&(a.today=!0),!n.overdue&&r<t&&(a.overdue=!0),Object.keys(a).length>0&&i("saveTask",Object.assign(n,a))})},increaseTaskMsgNum({state:e,commit:i},t){$A.syncDispatch("increaseTaskMsgNum",t);const s=e.cacheTasks.findIndex(n=>n.dialog_id===t.id);if(s!==-1){const n=$A.cloneJSON(e.cacheTasks[s]);n.msg_num++,i("task/splice",{index:s,data:n})}},increaseMsgReplyNum({state:e,commit:i},t){$A.syncDispatch("increaseMsgReplyNum",t);const s=e.dialogMsgs.findIndex(n=>n.id==t.id);if(s!==-1){const n=$A.cloneJSON(e.dialogMsgs[s]);n.reply_num++,i("message/splice",{index:s,data:n})}},decrementMsgReplyNum({state:e,commit:i},t){$A.syncDispatch("decrementMsgReplyNum",t);const s=e.dialogMsgs.findIndex(n=>n.id==t.id);if(s!==-1){const n=$A.cloneJSON(e.dialogMsgs[s]);n.reply_num--,i("message/splice",{index:s,data:n})}},getTasks({state:e,dispatch:i},t){t===null&&(t={});const s=ke("tasks",t,e);return new Promise(function(n,a){if(e.userId===0){e.cacheTasks=[],a({msg:"Parameter error"});return}t.project_id&&e.projectLoad++,i("call",{url:"project/task/lists",data:s.get()}).then(({data:r})=>{t.project_id&&e.projectLoad--,i("saveTask",r.data),s.save(r).then(o=>i("forgetTask",{id:o})),r.next_page_url?(t.page=r.current_page+1,r.current_page%30===0?$A.modalConfirm({content:"\u6570\u636E\u5DF2\u8D85\u8FC7"+r.to+"\u6761\uFF0C\u662F\u5426\u7EE7\u7EED\u52A0\u8F7D\uFF1F",onOk:()=>{i("getTasks",t).then(n).catch(a)},onCancel:()=>{n()}}):i("getTasks",t).then(n).catch(a)):n()}).catch(r=>{console.warn(r),a(r),t.project_id&&e.projectLoad--})})},getTaskOne({state:e,dispatch:i},t){return new Promise(function(s,n){if(/^\d+$/.test(t)&&(t={task_id:t}),$A.runNum(t.task_id)===0){n({msg:"Parameter error"});return}if($A.isArray(e.taskOneLoad[t.task_id])){e.taskOneLoad[t.task_id].push({resolve:s,reject:n});return}e.taskOneLoad[t.task_id]=[],i("call",{url:"project/task/one",data:t}).then(a=>{i("saveTask",a.data),s(a),e.taskOneLoad[t.task_id].some(r=>{r.resolve(a)})}).catch(a=>{console.warn(a),n(a),e.taskOneLoad[t.task_id].some(r=>{r.reject(a)})}).finally(a=>{delete e.taskOneLoad[t.task_id]})})},getTaskForDashboard({state:e,dispatch:i},t){if(window.__getTaskForDashboard&&clearTimeout(window.__getTaskForDashboard),typeof t=="number"){t>-1&&(window.__getTaskForDashboard=setTimeout(s=>i("getTaskForDashboard",null),t));return}e.loadDashboardTasks!==!0&&(e.loadDashboardTasks=!0,i("getTasks",null).finally(s=>{e.loadDashboardTasks=!1}))},getTaskForProject({state:e,dispatch:i},t){return new Promise(function(s,n){i("getTasks",{project_id:t}).then(s).catch(n)})},getTaskForParent({state:e,dispatch:i},t){return new Promise(function(s,n){i("getTasks",{parent_id:t}).then(s).catch(n)})},removeTask({state:e,dispatch:i},t){return new Promise(function(s,n){if($A.runNum(t.task_id)===0){n({msg:"Parameter error"});return}i("setLoad",{key:`task-${t.task_id}`,delay:300}),i("call",{url:"project/task/remove",data:t}).then(a=>{e.taskArchiveView=0,i("forgetTask",{id:t.task_id}),s(a)}).catch(a=>{console.warn(a),i("getTaskOne",t.task_id).catch(()=>{}),n(a)}).finally(a=>{i("cancelLoad",`task-${t.task_id}`)})})},archivedTask({state:e,dispatch:i},t){return new Promise(function(s,n){if(/^\d+$/.test(t)&&(t={task_id:t}),$A.runNum(t.task_id)===0){n({msg:"Parameter error"});return}i("setLoad",{key:`task-${t.task_id}`,delay:300}),i("call",{url:"project/task/archived",data:t}).then(a=>{i("saveTask",a.data),s(a)}).catch(a=>{console.warn(a),i("getTaskOne",t.task_id).catch(()=>{}),n(a)}).finally(a=>{i("cancelLoad",`task-${t.task_id}`)})})},getTaskContent({state:e,dispatch:i},t){$A.runNum(t)!==0&&(i("setLoad",{key:`task-${t}`,delay:1200}),i("call",{url:"project/task/content",data:{task_id:t}}).then(s=>{i("saveTaskContent",s.data)}).catch(s=>{console.warn(s)}).finally(s=>{i("cancelLoad",`task-${t}`)}))},saveTaskContent({commit:e,state:i,dispatch:t},s){if($A.syncDispatch("saveTaskContent",s),$A.isArray(s))s.forEach(n=>{t("saveTaskContent",n)});else if($A.isJson(s)){const n=i.taskContents.findIndex(({task_id:a})=>a==s.task_id);n>-1?e("task/content/splice",{index:n,data:Object.assign({},i.taskContents[n],s)}):e("task/content/push",s)}},getTaskFiles({state:e,dispatch:i},t){$A.runNum(t)!==0&&i("call",{url:"project/task/files",data:{task_id:t}}).then(s=>{s.data.forEach(n=>{const a=e.taskFiles.findIndex(({id:r})=>r==n.id);a>-1?e.taskFiles.splice(a,1,n):e.taskFiles.push(n)}),i("saveTask",{id:t,file_num:s.data.length})}).catch(s=>{console.warn(s)})},forgetTaskFile({state:e,dispatch:i},t){($A.isArray(t)?t:[t]).some(n=>{const a=e.taskFiles.findIndex(r=>r.id==n);a>-1&&e.taskFiles.splice(a,1)})},openTask({state:e,dispatch:i},t){let s=t;if($A.isJson(t)&&(t.parent_id>0?s=t.parent_id:s=t.id),$A.isSubElectron){s>0?$A.Electron.sendMessage("updateChildWindow",{name:`task-${s}`,path:`/single/task/${s}`}):$A.Electron.sendMessage("windowClose");return}e.taskId>0&&C.emit("handleMoveTop","taskModal"),e.taskArchiveView=s,e.taskId=s,s>0?i("getTaskOne",{task_id:s,archived:"all"}).then(()=>{i("getTaskContent",s),i("getTaskFiles",s),i("getTaskForParent",s).catch(()=>{}),i("saveTaskBrowse",s)}).catch(({msg:n})=>{$A.modalWarning({content:n,onOk:()=>{e.taskId=0}})}):e.taskOperation={}},taskAdd({state:e,dispatch:i},t){return new Promise(function(s,n){const a=$A.cloneJSON($A.newDateString(t));$A.isArray(a.column_id)&&(a.column_id=a.column_id.find(r=>r)),i("call",{url:"project/task/add",data:a,spinner:600,method:"post"}).then(r=>{r.data.is_visible===1&&i("addTaskSuccess",r.data),e.taskLatestId=r.data.id,s(r)}).catch(r=>{console.warn(r),n(r)})})},taskAddSub({dispatch:e},i){return new Promise(function(t,s){e("call",{url:"project/task/addsub",data:i,spinner:600}).then(n=>{e("addTaskSuccess",n.data),t(n)}).catch(n=>{console.warn(n),s(n)})})},addTaskSuccess({dispatch:e},i){typeof i.new_column!="undefined"&&(e("saveColumn",i.new_column),delete i.new_column),e("saveTask",i),e("getProjectOne",i.project_id).catch(()=>{})},taskUpdate({state:e,dispatch:i},t){return new Promise(function(s,n){i("taskBeforeUpdate",t).then(({post:a})=>{i("setLoad",{key:`task-${a.task_id}`,delay:300}),i("call",{url:"project/task/update",data:a,method:"post"}).then(r=>{i("saveTask",r.data),s(r)}).catch(r=>{console.warn(r),i("getTaskOne",a.task_id).catch(()=>{}),n(r)}).finally(r=>{i("cancelLoad",`task-${a.task_id}`)})}).catch(n)})},taskBeforeUpdate({state:e,dispatch:i},t){return new Promise(function(s,n){let a=$A.cloneJSON($A.newDateString(t)),r="\u6E29\u99A8\u63D0\u793A",o=null;if(typeof a.times!="undefined"){t.times[0]===!1&&(o="\u4F60\u786E\u5B9A\u8981\u53D6\u6D88\u4EFB\u52A1\u65F6\u95F4\u5417\uFF1F");const l=e.cacheTasks.find(({id:c})=>c==a.task_id);r=l.parent_id>0?"\u66F4\u65B0\u5B50\u4EFB\u52A1":"\u66F4\u65B0\u4E3B\u4EFB\u52A1",l&&(l.parent_id>0?a.times[0]&&e.cacheTasks.some(c=>{if(c.id!=l.parent_id)return!1;if(!c.end_at)return o="\u4E3B\u4EFB\u52A1\u6CA1\u6709\u8BBE\u7F6E\u65F6\u95F4\uFF0C\u8BBE\u7F6E\u5B50\u4EFB\u52A1\u5C06\u540C\u6B65\u8BBE\u7F6E\u4E3B\u4EFB\u52A1",!0;let u=$A.dayjs(a.times[0]).unix(),h=$A.dayjs(a.times[1]).unix(),d=$A.dayjs(c.start_at).unix(),p=$A.dayjs(c.end_at).unix();if(u<d)return o="\u65B0\u8BBE\u7F6E\u7684\u5B50\u4EFB\u52A1\u5F00\u59CB\u65F6\u95F4\u5728\u4E3B\u4EFB\u52A1\u65F6\u95F4\u4E4B\u5916\uFF0C\u4FEE\u6539\u540E\u5C06\u540C\u6B65\u4FEE\u6539\u4E3B\u4EFB\u52A1",!0;if(h>p)return o="\u65B0\u8BBE\u7F6E\u7684\u5B50\u4EFB\u52A1\u7ED3\u675F\u65F6\u95F4\u5728\u4E3B\u4EFB\u52A1\u65F6\u95F4\u4E4B\u5916\uFF0C\u4FEE\u6539\u540E\u5C06\u540C\u6B65\u4FEE\u6539\u4E3B\u4EFB\u52A1",!0}):e.cacheTasks.some(c=>{if(c.parent_id!=l.id||!c.end_at)return!1;let u=$A.dayjs(a.times[0]).unix(),h=$A.dayjs(a.times[1]).unix(),d=$A.dayjs(l.start_at).unix(),p=$A.dayjs(l.end_at).unix(),f=$A.dayjs(c.start_at).unix(),g=$A.dayjs(c.end_at).unix();if(d==f&&p==g)return!1;if(!a.times[0])return o=`\u5B50\u4EFB\u52A1\uFF08${c.name}\uFF09\u5DF2\u8BBE\u7F6E\u65F6\u95F4\uFF0C\u6E05\u9664\u4E3B\u4EFB\u52A1\u65F6\u95F4\u540E\u5C06\u540C\u6B65\u6E05\u9664\u5B50\u4EFB\u52A1\u7684\u65F6\u95F4`,!0;if(u>f)return o=`\u65B0\u8BBE\u7F6E\u7684\u5F00\u59CB\u65F6\u95F4\u5728\u5B50\u4EFB\u52A1\uFF08${c.name}\uFF09\u65F6\u95F4\u4E4B\u5185\uFF0C\u4FEE\u6539\u540E\u5C06\u540C\u6B65\u4FEE\u6539\u5B50\u4EFB\u52A1`,!0;if(h<g)return o=`\u65B0\u8BBE\u7F6E\u7684\u7ED3\u675F\u65F6\u95F4\u5728\u5B50\u4EFB\u52A1\uFF08${c.name}\uFF09\u65F6\u95F4\u4E4B\u5185\uFF0C\u4FEE\u6539\u540E\u5C06\u540C\u6B65\u4FEE\u6539\u5B50\u4EFB\u52A1`,!0}))}if(o===null){s({confirm:!1,post:a});return}$A.modalConfirm({title:r,content:o,onOk:()=>{s({confirm:!0,post:a})},onCancel:()=>{n({msg:!1})}})})},getTaskFlow({state:e,dispatch:i},{task_id:t,project_id:s}){return new Promise(function(n,a){i("call",{url:"project/task/flow",data:{task_id:t,project_id:s||0}}).then(r=>{let o=e.cacheTasks.find(({id:u})=>u==t),{data:l}=r;l.turns.some(u=>{const h=e.taskFlowItems.findIndex(({id:d})=>d==u.id);h>-1?e.taskFlowItems.splice(h,1,u):e.taskFlowItems.push(u),o&&o.flow_item_id==u.id&&o.flow_item_name!=u.name&&e.cacheTasks.filter(({flow_item_id:d})=>d==u.id).some(d=>{i("saveTask",{id:d.id,flow_item_name:`${u.status}|${u.name}|${u.color}`})})}),delete l.turns;const c=e.taskFlows.findIndex(({task_id:u})=>u==l.task_id);c>-1?e.taskFlows.splice(c,1,l):e.taskFlows.push(l),n(r)}).catch(r=>{console.warn(r),a(r)})})},getTaskPriority({state:e,dispatch:i},t){window.__getTaskPriority&&clearTimeout(window.__getTaskPriority),window.__getTaskPriority=setTimeout(()=>{i("call",{url:"system/priority"}).then(s=>{e.taskPriority=s.data}).catch(s=>{console.warn(s)})},typeof t=="number"?t:1e3)},getColumnTemplate({state:e,dispatch:i}){return new Promise(function(t,s){i("call",{url:"system/column/template"}).then(n=>{e.columnTemplate=n.data,t(n)}).catch(n=>{console.warn(n),s(n)})})},saveTaskCompleteTemp({state:e},i){/^\d+$/.test(i)&&!e.taskCompleteTemps.includes(i)&&e.taskCompleteTemps.push(i)},forgetTaskCompleteTemp({state:e},i){i===!0?e.taskCompleteTemps=[]:/^\d+$/.test(i)&&(e.taskCompleteTemps=e.taskCompleteTemps.filter(t=>t!=i))},saveTaskBrowse({state:e},i){const t=e.cacheTaskBrowse.findIndex(({id:s})=>s==i);t>-1&&e.cacheTaskBrowse.splice(t,1),e.cacheTaskBrowse.unshift({id:i,userid:e.userId}),e.cacheTaskBrowse.length>200&&e.cacheTaskBrowse.splice(200),$A.IDBSave("cacheTaskBrowse",e.cacheTaskBrowse)},taskDefaultTime({state:e,dispatch:i},t){return new Promise(async s=>{$A.isArray(t)&&t.length===2&&/\s+(00:00|23:59)$/.test(t[0])&&/\s+(00:00|23:59)$/.test(t[1])&&(t[0]=await i("taskDefaultStartTime",t[0]),t[1]=await i("taskDefaultEndTime",t[1])),s(t)})},taskDefaultStartTime({state:e},i){return new Promise(t=>{/(\s|^)([0-2]\d):([0-5]\d)(:\d{1,2})*$/.test(i)&&(i=i.replace(/(\s|^)([0-2]\d):([0-5]\d)(:\d{1,2})*$/,"$1"+e.systemConfig.task_default_time[0])),t(i)})},taskDefaultEndTime({state:e},i){return new Promise(t=>{/(\s|^)([0-2]\d):([0-5]\d)(:\d{1,2})*$/.test(i)&&(i=i.replace(/(\s|^)([0-2]\d):([0-5]\d)(:\d{1,2})*$/,"$1"+e.systemConfig.task_default_time[1])),t(i)})},async updateTaskTemplates({state:e,dispatch:i},t){const{data:s}=await i("call",{url:"project/task/template_list",data:{project_id:t}});e.taskTemplates=e.taskTemplates.filter(n=>n.project_id!==t).concat(s||[])},saveDialog({commit:e,state:i,dispatch:t},s){var n;if($A.syncDispatch("saveDialog",s),$A.isArray(s))s.forEach(a=>{t("saveDialog",a)});else if($A.isJson(s)){s.id=parseInt(s.id);const a=i.cacheDialogs.findIndex(({id:o})=>o==s.id);let r=!1;if(typeof s.last_force!="undefined"&&(r=!0,delete s.last_force),a>-1){const o=i.cacheDialogs[a],l=s.user_ms,c=o.user_ms||0;l<c&&(typeof s.unread!="undefined"&&delete s.unread,typeof s.unread_one!="undefined"&&delete s.unread_one,typeof s.mention!="undefined"&&delete s.mention,typeof s.mention_ids!="undefined"&&delete s.mention_ids),s.unread_one&&(n=i.dialogMsgs.find(u=>u.id==s.unread_one))!=null&&n.read_at&&delete s.unread_one,s.mention_ids&&(s.mention_ids=s.mention_ids.filter(u=>{var h;return!((h=i.dialogMsgs.find(d=>d.id==u))!=null&&h.read_at)})),!r&&s.last_at&&o.last_at&&$A.dayjs(s.last_at)<$A.dayjs(o.last_at)&&(delete s.last_at,delete s.last_msg),e("dialog/splice",{index:a,data:Object.assign({},o,s)})}else e("dialog/push",s)}},updateDialogLastMsg({state:e,dispatch:i},t){if($A.syncDispatch("updateDialogLastMsg",t),$A.isArray(t))t.forEach(s=>{i("updateDialogLastMsg",s)});else if($A.isJson(t))if(e.cacheDialogs.findIndex(({id:n})=>n==t.dialog_id)>-1){const n={id:t.dialog_id,last_msg:t,last_at:t.created_at||$A.daytz().format("YYYY-MM-DD HH:mm:ss")};t.mtype=="tag"&&(n.has_tag=!0),t.mtype=="todo"&&(n.has_todo=!0),t.mtype=="image"&&(n.has_image=!0),t.mtype=="file"&&(n.has_file=!0),t.link&&(n.has_link=!0),i("saveDialog",n)}else i("getDialogOne",t.dialog_id).catch(()=>{})},getDialogAuto({state:e,dispatch:i}){return new Promise(function(t,s){if(e.loadDialogAuto){s({msg:"Loading"});return}setTimeout(n=>{e.loadDialogs++},2e3),e.loadDialogAuto=!0,i("getDialogs").then(t).catch(s).finally(n=>{e.loadDialogs--,e.loadDialogAuto=!1})})},getDialogs({state:e,dispatch:i},t){return new Promise(function(s,n){if(e.userId===0){e.cacheDialogs=[],n({msg:"Parameter error"});return}$A.isJson(t)||(t={}),typeof t.page=="undefined"&&(t.page=1),typeof t.pagesize=="undefined"&&(t.pagesize=20);const a=ke("dialogs",t,e);i("call",{url:"dialog/lists",data:a.get()}).then(({data:r})=>{i("saveDialog",r.data),a.save(r).then(o=>i("forgetDialog",{id:o})),r.current_page===1&&i("getDialogLatestMsgs",r.data.map(({id:o})=>o)),r.next_page_url&&r.current_page<5?(t.page++,i("getDialogs",t).then(s).catch(n)):(s(),i("getDialogBeyonds"))}).catch(r=>{console.warn(r),n(r)})})},async getDialogBeyonds({state:e,dispatch:i}){const t=await $A.IDBString("dialogBeyond"),s=$A.daytz().format("YYYY-MM-DD HH");if(t==s)return;await $A.IDBSet("dialogBeyond",s);const n=o=>e.cacheDialogs.filter(o).sort((l,c)=>$A.sortDay(l.last_at,c.last_at)).find(({id:l})=>l>0),a=n(({unread:o,last_at:l})=>o>0&&l),r=n(({todo_num:o,last_at:l})=>o>0&&l);i("call",{url:"dialog/beyond",data:{unread_at:a?a.last_at:$A.dayjs().unix(),todo_at:r?r.last_at:$A.dayjs().unix()}}).then(({data:o})=>{i("saveDialog",o)})},getDialogOne({state:e,dispatch:i},t){return new Promise(function(s,n){if($A.runNum(t)===0){n({msg:"Parameter error"});return}i("call",{url:"dialog/one",data:{dialog_id:t}}).then(a=>{i("saveDialog",a.data),s(a)}).catch(a=>{console.warn(a),n(a)})})},getDialogTodo({commit:e,state:i,dispatch:t},s){t("call",{url:"dialog/todo",data:{dialog_id:s}}).then(({data:n})=>{$A.arrayLength(n)>0?(s>0&&(t("saveDialog",{id:s,todo_num:$A.arrayLength(n)}),e("dialog/todo/save",i.dialogTodos.filter(a=>a.dialog_id!=s))),t("saveDialogTodo",n)):s>0&&t("saveDialog",{id:s,todo_num:0})}).catch(console.warn)},getDialogMsgTop({state:e,dispatch:i},t){i("call",{url:"dialog/msg/topinfo",data:{dialog_id:t}}).then(({data:s})=>{$A.isJson(s)&&i("saveDialogMsgTop",s)}).catch(console.warn)},openDialog({state:e,dispatch:i},t){return new Promise(async(s,n)=>{let a,r,o;if($A.isJson(t)&&(a=t.single,r=t.search_msg_id,o=t.dialog_msg_id,t=t.dialog_id),a=typeof a=="boolean"?a:$A.isSubElectron,r=/^\d+$/.test(r)?parseInt(r):0,o=/^\d+$/.test(o)?parseInt(o):0,t=/^\d+$/.test(t)?parseInt(t):0,t>0&&e.cacheDialogs.findIndex(l=>l.id==t)===-1){i("showSpinner",300);try{await i("getDialogOne",t)}catch(l){n(l);return}finally{i("hiddenSpinner")}}if($A.Electron&&a){i("openDialogNewWindow",t),s();return}e.dialogModalShow?C.emit("handleMoveTop","dialogModal"):e.dialogId===t&&(e.dialogId=0),requestAnimationFrame(l=>{e.dialogSearchMsgId=r,e.dialogMsgId=o,e.dialogId=t,s()})})},openDialogUserid({state:e,dispatch:i},t){return new Promise((s,n)=>{const a=e.cacheDialogs.find(r=>r.type!=="user"||!r.dialog_user?!1:r.dialog_user.userid===t);if(a)return i("openDialog",a.id).then(s).catch(n);i("call",{url:"dialog/open/user",data:{userid:t},spinner:600}).then(async({data:r})=>{i("saveDialog",r),i("openDialog",r.id).then(s).catch(n)}).catch(r=>{console.warn(r),n(r)})})},openDialogNewWindow({state:e,dispatch:i},t){const s=e.cacheDialogs.find(({id:n})=>n===t)||{};i("openChildWindow",{name:`dialog-${t}`,path:`/single/dialog/${t}`,force:!1,config:{title:s.name,parent:null,width:Math.min(window.screen.availWidth,1024),height:Math.min(window.screen.availHeight,768)}})},forgetDialog({commit:e,state:i,dispatch:t},s){$A.syncDispatch("forgetDialog",s);const n=$A.isArray(s.id)?s.id:[s.id];n.some(a=>{$A.isJson(a)&&(a=a.id);const r=i.cacheDialogs.findIndex(o=>o.id==a);r>-1&&(t("forgetDialogMsg",{id:i.dialogMsgs.filter(o=>o.dialog_id==s.id).map(o=>o.id)}),e("dialog/splice",{index:r}))}),n.includes(i.dialogId)&&(i.dialogId=0)},saveInDialog({commit:e,state:i,dispatch:t},s){$A.syncDispatch("saveInDialog",s);const n=i.dialogIns.findIndex(o=>o.uid==s.uid);n>-1?e("dialog/in/splice",{index:n,data:Object.assign({},i.dialogIns[n],s)}):e("dialog/in/push",s);const a=5e3,r=500;if(e("dialog/history/save",i.dialogHistory.filter(o=>o!=s.dialog_id)),e("dialog/history/push",s.dialog_id),i.dialogMsgs.length>a&&i.dialogHistory.length>r){const o=i.dialogHistory.slice().reverse(),l=[],c=[];o.forEach(u=>{l.length<r||i.dialogIns.findIndex(h=>h.dialog_id==u)>-1?l.push(u):c.push(u)}),c.length>0&&e("message/save",i.dialogMsgs.filter(u=>!c.includes(u.dialog_id))),e("dialog/history/save",l)}},forgetInDialog({state:e,commit:i},t){$A.syncDispatch("forgetInDialog",t);const s=e.dialogIns.findIndex(n=>n.uid==t.uid);s>-1&&i("dialog/in/splice",{index:s})},closeDialog({state:e,commit:i},t){if($A.syncDispatch("closeDialog",t),!/^\d+$/.test(t.id))return;i("draft/tag",t.id);const s=e.dialogMsgs.filter(n=>n.dialog_id==t.id);if(s.length>e.dialogMsgKeep){const n=s.sort((a,r)=>r.id-a.id).splice(e.dialogMsgKeep).map(a=>a.id);i("message/save",e.dialogMsgs.filter(a=>!n.includes(a.id)))}},clearDialogMsgs({state:e,commit:i},t){$A.syncDispatch("clearDialogMsgs",t),/^\d+$/.test(t.id)&&i("message/save",e.dialogMsgs.filter(s=>s.dialog_id!=t.id))},saveDialogTodo({commit:e,state:i,dispatch:t},s){if($A.syncDispatch("saveDialogTodo",s),$A.isArray(s))s.forEach(n=>{t("saveDialogTodo",n)});else if($A.isJson(s)){const n=i.dialogTodos.findIndex(a=>a.id==s.id);n>-1?e("dialog/todo/splice",{index:n,data:Object.assign({},i.dialogTodos[n],s)}):e("dialog/todo/push",s)}},forgetDialogTodoForMsgId({state:e,commit:i},t){$A.syncDispatch("forgetDialogTodoForMsgId",t);const s=e.dialogTodos.findIndex(n=>n.msg_id==t.id);s>-1&&i("dialog/todo/splice",{index:s})},saveDialogMsgTop({commit:e,state:i,dispatch:t},s){if($A.syncDispatch("saveDialogMsgTop",s),$A.isArray(s))s.forEach(n=>{t("saveDialogMsgTop",n)});else if($A.isJson(s)){e("dialog/msg/top/save",i.dialogMsgTops.filter(a=>a.dialog_id!=s.dialog_id));const n=i.dialogMsgTops.findIndex(a=>a.id==s.id);n>-1?e("dialog/msg/top/splice",{index:n,data:Object.assign({},i.dialogMsgTops[n],s)}):e("dialog/msg/top/push",s)}},forgetDialogMsgTopForMsgId({state:e,commit:i},t){$A.syncDispatch("forgetDialogMsgTopForMsgId",t);const s=e.dialogMsgTops.findIndex(n=>n.msg_id==t.id);s>-1&&i("dialog/msg/top/splice",{index:s})},saveDialogDraft({commit:e},{id:i,content:t,immediate:s=!1}){if($A.isSubElectron){W.subTemp={id:i,content:t,immediate:!0};return}$A.syncDispatch("saveDialogDraft",{id:i,content:t,immediate:s}),W.timer[i]&&(clearTimeout(W.timer[i]),delete W.timer[i]),W.timer[i]=setTimeout(()=>{e("draft/set",{id:i,content:t}),delete W.timer[i]},s||!t?0:600)},saveDialogQuote({commit:e},i){e("quote/set",i)},removeDialogQuote({commit:e},i){e("quote/remove",i)},saveDialogMsg({commit:e,state:i,dispatch:t},s){if($A.syncDispatch("saveDialogMsg",s),$A.isArray(s)){s.forEach(r=>{t("saveDialogMsg",r)});return}s.type=="notice"&&(s.estimateSize=42);const n=i.dialogMsgs.findIndex(({id:r})=>r==s.id);if(n>-1){const r=i.dialogMsgs[n];r.read_at&&delete s.read_at,s=Object.assign({},r,s),e("message/splice",{index:n,data:s})}else e("message/push",s);const a=i.cacheDialogs.find(({id:r})=>r==s.dialog_id);if(a){let r=!1;!s.read_at&&s.userid!=i.userId&&!i.dialogIns.find(({dialog_id:o})=>o==a.id)&&(a.unread_one?a.unread_one=Math.min(a.unread_one,s.id):a.unread_one=s.id,r=!0),a.last_msg&&a.last_msg.id==s.id&&(a.last_msg=Object.assign({},a.last_msg,s),r=!0),r&&t("saveDialog",a)}},forgetDialogMsg({commit:e,state:i,dispatch:t},s){$A.syncDispatch("forgetDialogMsg",s),($A.isArray(s.id)?s.id:[s.id]).some(a=>{const r=i.dialogMsgs.findIndex(o=>o.id==a);if(r>-1){const o=i.dialogMsgs[r];t("decrementMsgReplyNum",{id:o.reply_id}),t("audioStop",$A.getObject(o,"msg.path")),e("message/splice",{index:r})}}),t("forgetDialogTodoForMsgId",s),t("forgetDialogMsgTopForMsgId",s)},getDialogMsgs({commit:e,state:i,dispatch:t,getters:s},n){return new Promise((a,r)=>{let o=d=>{},l=d=>{},c=!1,u=!1;typeof n.save_before!="undefined"&&(o=typeof n.save_before=="function"?n.save_before:d=>{},delete n.save_before),typeof n.save_after!="undefined"&&(l=typeof n.save_after=="function"?n.save_after:d=>{},delete n.save_after),typeof n.clear_before!="undefined"&&(c=typeof n.clear_before=="boolean"?n.clear_before:!1,delete n.clear_before),typeof n.spinner!="undefined"&&(u=n.spinner,delete n.spinner);const h=`msg::${n.dialog_id}-${n.msg_id}-${n.msg_type||""}`;if(s.isLoad(h)){r({msg:"Loading"});return}t("setLoad",h),c&&e("message/save",i.dialogMsgs.filter(({dialog_id:d})=>d!==n.dialog_id)),n.pagesize=25,t("call",{url:"dialog/msg/list",data:n,spinner:u,complete:d=>t("cancelLoad",h)}).then(d=>{o();const p=d.data;if($A.isJson(p.dialog)){const f=p.list.map(({id:g})=>g);e("message/save",i.dialogMsgs.filter(g=>g.dialog_id!=n.dialog_id||f.includes(g.id)||$A.dayjs(g.created_at).unix()>=p.time)),t("saveDialog",p.dialog)}$A.isArray(p.todo)&&(e("dialog/todo/save",i.dialogTodos.filter(f=>f.dialog_id!=n.dialog_id)),t("saveDialogTodo",p.todo)),$A.isJson(p.top)&&t("saveDialogMsgTop",p.top),t("saveDialogMsg",p.list),a(d),l()}).catch(d=>{console.warn(d),r(d)}).finally(d=>{if(n.prev_id){const p=i.dialogMsgs.find(({prev_id:f})=>f==n.prev_id);p&&(p.prev_id=0)}if(n.next_id){const p=i.dialogMsgs.find(({next_id:f})=>f==n.next_id);p&&(p.next_id=0)}})})},getDialogLatestMsgs({state:e,dispatch:i},t=[]){return new Promise(function(s,n){if(e.userId===0){n({msg:"Parameter error"});return}if(!$A.isArray(t)){n({msg:"Parameter is not array"});return}if(t.length===0){s();return}const a=t.slice(5),r=t.slice(0,5);i("call",{method:"post",url:"dialog/msg/latest",data:{dialogs:r.map(o=>{var l;return{id:o,latest_id:((l=e.dialogMsgs.sort((c,u)=>u.id-c.id).find(({dialog_id:c})=>c==o))==null?void 0:l.id)||0}}),take:e.dialogMsgKeep}}).then(({data:o})=>{i("saveDialogMsg",o.data),a.length>0?i("getDialogLatestMsgs",a).then(s).catch(n):s()}).catch(o=>{n(o)})})},dialogMsgRead({state:e,dispatch:i},t){if($A.isJson(t)){if(t.userid==e.userId||t.read_at)return;t.read_at=$A.daytz().format("YYYY-MM-DD HH:mm:ss"),e.readWaitData[t.id]=e.readWaitData[t.id]||0;const s=e.cacheDialogs.find(({id:n})=>n==t.dialog_id);if(s){let n=!1;if(t.id==s.unread_one&&(s.unread_one=0,n=!0),$A.isArray(s.mention_ids)){const a=s.mention_ids.findIndex(r=>r==t.id);a>-1&&(s.mention_ids.splice(a,1),n=!0)}n&&(i("saveDialog",s),e.readWaitData[t.id]=t.dialog_id)}}clearTimeout(e.readTimeout),e.readTimeout=setTimeout(s=>{if(e.readTimeout=null,e.userId===0){t&&(t.read_at=null);return}const n=Object.entries(e.readWaitData);if(n.length===0){t&&(t.read_at=null);return}const a=Object.fromEntries(n.slice(0,100));e.readWaitData=Object.fromEntries(n.slice(100)),i("call",{method:"post",url:"dialog/msg/read",data:{id:a}}).then(({data:r})=>{Object.entries(a).filter(([o,l])=>/^\d+$/.test(l)).forEach(([o,l])=>{e.dialogMsgs.filter(c=>c.dialog_id==l&&c.id>=o).forEach(c=>{c.read_at=$A.daytz().format("YYYY-MM-DD HH:mm:ss")})}),i("saveDialog",r)}).catch(r=>{Object.keys(a).forEach(o=>{const l=e.dialogMsgs.find(c=>c.id==o);l&&(l.read_at=null)}),e.readWaitData=Object.assign(e.readWaitData,a)}).finally(r=>{e.readLoadNum++})},50)},dialogMsgDot({state:e,dispatch:i},t){!$A.isJson(t)||!t.dot||(t.dot=0,i("call",{url:"dialog/msg/dot",data:{id:t.id}}).then(({data:s})=>{i("saveDialog",s)}))},dialogMsgMark({state:e,dispatch:i},t){return new Promise((s,n)=>{i("call",{url:"dialog/msg/mark",data:t}).then(a=>{typeof t.after_msg_id!="undefined"&&e.dialogMsgs.some(r=>{r.dialog_id==t.dialog_id&&r.id>=t.after_msg_id&&(r.read_at=$A.daytz().format("YYYY-MM-DD HH:mm:ss"))}),i("saveDialog",a.data),s(a)}).catch(a=>{n(a)})})},streamMsgSubscribe({state:e,dispatch:i},t){if(/^https?:\/\//i.test(t)||(t=$A.mainUrl(t.substring(1))),e.dialogSseList.find(n=>n.streamUrl==t))return;const s=new ou(t);s.subscribe(["append","replace","done"],(n,a)=>{switch(n){case"append":case"replace":const r=$A.jsonParse(a.data);i("streamMsgData",{type:n,id:a.lastEventId,text:r.content});break;case"done":const o=e.dialogSseList.findIndex(l=>s===l.sse);o>-1&&e.dialogSseList.splice(o,1),s.unsunscribe();break}}),e.dialogSseList.push({sse:s,streamUrl:t,time:$A.dayjs().unix()}),e.dialogSseList.length>10&&e.dialogSseList.shift().sse.close()},streamMsgData({state:e},i){$A.syncDispatch("streamMsgData",i),C.emit("streamMsgData",i)},saveTranslation({state:e},i){if(!$A.isJson(i))return;const t=e.cacheTranslations.find(s=>s.key==i.key&&s.language==i.language);if(t)t.content=i.content;else{const s=J[i.language]||i.language;e.cacheTranslations.push(Object.assign(i,{label:s}))}$A.IDBSave("cacheTranslations",e.cacheTranslations.slice(-200))},removeTranslation({state:e},i){e.cacheTranslations=e.cacheTranslations.filter(t=>t.key!=i),$A.IDBSave("cacheTranslations",e.cacheTranslations.slice(-200))},setTranslationLanguage({state:e},i){e.cacheTranslationLanguage=i,$A.IDBSave("cacheTranslationLanguage",i)},setTranscriptionLanguage({state:e},i){e.cacheTranscriptionLanguage=i,$A.IDBSave("cacheTranscriptionLanguage",i)},setLoad({state:e,dispatch:i},t){if($A.isJson(t)){setTimeout(n=>{i("setLoad",t.key)},t.delay||0);return}const s=e.loads.find(n=>n.key==t);s?s.num++:e.loads.push({key:t,num:1})},cancelLoad({state:e},i){const t=e.loads.find(s=>s.key==i);t?t.num--:e.loads.push({key:i,num:-1})},showSpinner({state:e},i){const t=$A.randomString(6);e.floatSpinnerTimer.push({id:t,timer:setTimeout(s=>{e.floatSpinnerTimer=e.floatSpinnerTimer.filter(n=>n.id!==t),e.floatSpinnerLoad++},typeof i=="number"?i:0)})},hiddenSpinner({state:e,dispatch:i},t){if(typeof t=="number"){setTimeout(n=>{i("hiddenSpinner")},t);return}const s=e.floatSpinnerTimer.shift();s?clearTimeout(s.timer):e.floatSpinnerLoad--},previewImage({state:e},i){if($A.isJson(i)||(i={index:0,list:[i]}),i.list=i.list.map(t=>($A.isJson(t)?t.src=$A.thumbRestore(t.src):t=$A.thumbRestore(t),t)),typeof i.index=="string"){const t=$A.thumbRestore(i.index);i.index=Math.max(0,i.list.findIndex(s=>$A.isJson(s)?s.src==t:s==t))}e.previewImageIndex=i.index,e.previewImageList=i.list},audioPlay({state:e,dispatch:i},t){const s=document.getElementById("__audio_play_element__");if(s&&(s.pause(),s.src="",s.parentNode.removeChild(s)),!t||t===e.audioPlaying){e.audioPlaying=null;return}const n=document.createElement("audio");n.id=e.audioPlayId="__audio_play_element__",n.controls=!1,n.loop=!1,n.volume=1,n.src=e.audioPlaying=t,n.onended=a=>{i("audioStop",n.src)},document.body.appendChild(n),n.play().then(a=>{})},audioStop({state:e},i){const t=document.getElementById("__audio_play_element__");!t||(t.src===i||i===!0)&&(t.pause(),t.src="",t.parentNode.removeChild(t),e.audioPlaying=null)},websocketConnection({state:e,dispatch:i}){if(clearTimeout(e.wsTimeout),e.ws&&(e.ws.close(),e.ws=null),e.userId===0)return;let t=$A.mainUrl("ws");t=t.replace("https://","wss://"),t=t.replace("http://","ws://"),t+=`?action=web&token=${e.userToken}&language=${I}`;const s=$A.openLog,n=$A.randomString(16);e.wsRandom=n,e.ws=new WebSocket(t),e.ws.onopen=async a=>{s&&console.log("[WS] Open",a,$A.daytz().format("YYYY-MM-DD HH:mm:ss")),e.wsOpenNum++,!(window.systemInfo.debug==="yes"||e.systemConfig.e2e_message!=="open")&&i("websocketSend",{type:"encrypt",data:{type:"pgp",key:(await i("pgpGetLocalKey")).publicKeyB64}})},e.ws.onclose=async a=>{s&&console.log("[WS] Close",a,$A.daytz().format("YYYY-MM-DD HH:mm:ss")),e.ws=null,clearTimeout(e.wsTimeout),e.wsTimeout=setTimeout(()=>{n===e.wsRandom&&i("websocketConnection")},3e3)},e.ws.onerror=async a=>{s&&console.log("[WS] Error",a,$A.daytz().format("YYYY-MM-DD HH:mm:ss")),e.ws=null,clearTimeout(e.wsTimeout),e.wsTimeout=setTimeout(()=>{n===e.wsRandom&&i("websocketConnection")},3e3)},e.ws.onmessage=async a=>{if($A.inArray(e.routeName,["preload","404"])){s&&console.log("[WS] Preload",a);return}s&&console.log("[WS] Message",a);let r=$A.jsonParse(a.data);r.type==="encrypt"&&r.encrypted&&(r=await i("pgpDecryptApi",r.encrypted));const o=$A.formatMsgBasic(r),{type:l,msgId:c}=o;switch(l){case"open":$A.setSessionStorage("userWsFd",o.data.fd);break;case"receipt":typeof e.wsCall[c]=="function"&&e.wsCall[c](o.body,!0),delete e.wsCall[c];break;case"line":C.emit("userActive",{type:"line",data:o.data});break;case"msgStream":if($A.isSubElectron)return;i("streamMsgSubscribe",o.stream_url);break;default:if(c&&i("websocketSend",{type:"receipt",msgId:c}).catch(u=>{}),C.emit("websocketMsg",o),$A.isSubElectron)return;switch(l){case"dialog":(function(u){const{mode:h,silence:d,data:p}=u,{dialog_id:f}=p;switch(h){case"delete":if(i("forgetDialogMsg",p),e.cacheDialogs.find(({id:A})=>A==f)){const A={id:f,last_msg:p.last_msg,last_at:p.last_msg?p.last_msg.created_at:$A.daytz().format("YYYY-MM-DD HH:mm:ss"),last_force:!0};p.update_read?i("call",{url:"dialog/msg/unread",data:{dialog_id:f}}).then(({data:j})=>{i("saveDialog",Object.assign(A,j))}).catch(()=>{}):i("saveDialog",A)}break;case"add":case"chat":const b=h==="add";if(!e.dialogMsgs.find(({id:A})=>A==p.id)&&(i("increaseTaskMsgNum",{id:p.dialog_id}),i("increaseMsgReplyNum",{id:p.reply_id}),b)){if(p.userid!==e.userId){const A=e.cacheDialogs.find(({id:j})=>j==f);if(A){const j={id:f,unread:A.unread+1,mention:A.mention,user_at:p.user_at,user_ms:p.user_ms};p.mention&&j.mention++,i("saveDialog",j)}}d||C.emit("dialogMsgPush",p)}const v=(A,j)=>{if(j>5||e.dialogMsgs.find(({id:q})=>q==A.id)){i("saveDialogMsg",A),b&&i("updateDialogLastMsg",A);return}setTimeout(()=>v(A,j+1),50)};v(p,0);break;case"update":case"readed":const M=(A,j)=>{if(e.dialogMsgs.find(({id:q})=>q==A.id)){i("saveDialogMsg",A),typeof A.todo!="undefined"&&i("getDialogTodo",f);return}j<=5&&setTimeout(q=>{M(A,++j)},500)};M(p,0);break;case"groupAdd":case"groupJoin":case"groupRestore":i("getDialogOne",p.id).catch(()=>{});break;case"groupUpdate":e.cacheDialogs.find(({id:A})=>A==p.id)&&i("saveDialog",p);break;case"groupExit":case"groupDelete":i("forgetDialog",p);break;case"updateTopMsg":i("saveDialog",{id:p.dialog_id,top_msg_id:p.top_msg_id,top_userid:p.top_userid}),i("getDialogMsgTop",f);break}})(o);break;case"project":(function(u){const{action:h,data:d}=u;switch(h){case"add":case"update":case"recovery":i("saveProject",d);break;case"detail":i("getProjectOne",d.id).catch(()=>{}),i("getTaskForProject",d.id).catch(()=>{});break;case"delete":case"archived":i("forgetProject",d);break;case"sort":i("getTaskForProject",d.id).catch(()=>{});break}})(o);break;case"projectColumn":(function(u){const{action:h,data:d}=u;switch(h){case"add":case"update":case"recovery":i("saveColumn",d);break;case"delete":i("forgetColumn",d);break}})(o);break;case"projectTask":(function(u){const{action:h,data:d}=u;switch(h){case"add":case"restore":i("addTaskSuccess",d);break;case"update":case"archived":case"recovery":i("saveTask",d);break;case"dialog":i("saveTask",d),i("getDialogOne",d.dialog_id).catch(()=>{});break;case"upload":i("getTaskFiles",d.task_id);break;case"filedelete":i("forgetTaskFile",d.id);break;case"delete":i("forgetTask",d);break}})(o);break;case"file":(function(u){const{action:h,data:d}=u;switch(h){case"add":case"update":i("saveFile",d);break;case"delete":i("forgetFile",d);break;case"compress":i("packProgress",d);break}})(o);break;case"report":(function({action:u}){u=="unreadUpdate"&&i("getReportUnread",1e3)})(o);break;case"approve":(function({action:u}){u=="unread"&&i("getApproveUnread",1e3)})(o);break}break}}},websocketSend({state:e},i){return new Promise((t,s)=>{var l;if(!$A.isJson(i)){s();return}const{type:n,data:a,callback:r}=i;let o;if(!e.ws){typeof r=="function"&&r(null,!1),s();return}typeof r=="function"&&(o=n+"_"+$A.randomString(3),e.wsCall[o]=r);try{(l=e.ws)==null||l.send(JSON.stringify({type:n,msgId:o,data:a})),t()}catch(c){typeof r=="function"&&r(null,!1),s(c)}})},websocketPath({state:e,dispatch:i},t){clearTimeout(e.wsPathTimeout),e.wsPathValue=t,e.wsPathTimeout=setTimeout(()=>{e.wsPathValue==t&&i("websocketSend",{type:"path",data:{path:t}}).catch(s=>{})},1e3)},websocketClose({state:e}){e.ws&&(e.ws.close(),e.ws=null)},pgpGenerate({state:e}){return new Promise(async i=>{const t=await ks({type:"ecc",curve:"curve25519",passphrase:e.clientId,userIDs:[{name:"doo",email:"admin@admin.com"}]});t.publicKeyB64=au(t.publicKey.replace(/\s*-----(BEGIN|END) PGP PUBLIC KEY BLOCK-----\s*/g,"")),i(t)})},pgpGetLocalKey({state:e,dispatch:i}){return new Promise(async t=>{if(e.localKeyPair.privateKey)return t(e.localKeyPair);for(;e.localKeyLock===!0;)await new Promise(s=>setTimeout(s,100));if(e.localKeyPair.privateKey)return t(e.localKeyPair);e.localKeyLock=!0,e.localKeyPair=await i("pgpGenerate"),e.localKeyLock=!1,t(e.localKeyPair)})},pgpEncrypt({state:e,dispatch:i},t){return new Promise(async s=>{$A.isJson(t)||(t={message:t});const n=t.message||t.text,a=t.publicKey||t.key||(await i("pgpGetLocalKey")).publicKey,r=await bs({armoredKey:a}),o=await As({message:await Cs({text:n}),encryptionKeys:r});s(o)})},pgpDecrypt({state:e,dispatch:i},t){return new Promise(async s=>{$A.isJson(t)||(t={encrypted:t});const n=t.encrypted||t.text,a=t.privateKey||t.key||(await i("pgpGetLocalKey")).privateKey,r=await Ss({privateKey:await Ts({armoredKey:a}),passphrase:t.passphrase||e.clientId}),{data:o}=await Ds({message:await Ls({armoredMessage:n}),decryptionKeys:r});s(o)})},pgpEncryptApi({state:e,dispatch:i},t){return new Promise(s=>{t=$A.jsonStringify(t),i("pgpEncrypt",{message:t,publicKey:e.apiKeyData.key}).then(n=>{s(n.replace(/\s*-----(BEGIN|END) PGP MESSAGE-----\s*/g,""))})})},pgpDecryptApi({state:e,dispatch:i},t){return new Promise(s=>{i("pgpDecrypt",{encrypted:`-----BEGIN PGP MESSAGE-----
|
|
|
|
`+t+`
|
|
-----END PGP MESSAGE-----`}).then(n=>{s($A.jsonParse(n))})})},closeMeetingWindow({state:e},i){e.meetingWindow={show:!1,type:i,meetingid:0}},showMeetingWindow({state:e},i){e.meetingWindow=Object.assign(i,{show:i.type!=="direct"})},async openMicroApp({state:e},i){if(!i||!$A.isJson(i)||!i.id||!i.name||!i.url)return;const t=new URL($A.mainUrl(""));i.url=i.url.replace(/^\/+/,"").replace(/^\:(\d+)/ig,(n,a)=>t.protocol+"//"+t.hostname+":"+a).replace(/\{window[._]location[._](\w+)}/ig,(n,a)=>{if(a in t)return t[a]}).replace(/\{system_base_url}/g,t.origin);const s={id:i.id,name:i.name,url:$A.mainUrl(i.url),url_type:i.url_type||"inline",background:i.background||null,transparent:typeof i.transparent=="boolean"?i.transparent:!1,disable_scope_css:typeof i.disable_scope_css=="boolean"?i.disable_scope_css:!1,auto_dark_theme:typeof i.auto_dark_theme=="boolean"?i.auto_dark_theme:!0,keep_alive:typeof i.keep_alive=="boolean"?i.keep_alive:!0,iframe_immersive:typeof i.iframe_immersive=="boolean"?i.iframe_immersive:!1,props:$A.isJson(i.props)?i.props:{}};if(!e.microAppsIds.includes(s.id)){$A.modalWarning(`\u5E94\u7528\u300C${s.id}\u300D\u672A\u5B89\u88C5`);return}s.url=s.url.replace(/\{user_id}/g,e.userId).replace(/\{user_nickname}/g,encodeURIComponent(e.userInfo.nickname)).replace(/\{user_email}/g,encodeURIComponent(e.userInfo.email)).replace(/\{user_avatar}/g,encodeURIComponent(e.userInfo.userimg)).replace(/\{user_token}/g,encodeURIComponent(e.userToken)).replace(/\{system_theme}/g,e.themeName).replace(/\{system_lang}/g,I),C.emit("observeMicroApp:open",s)},isMicroAppInstalled({state:e},i){return new Promise(t=>{if(!i){t(!1);return}t(!!e.microAppsIds.includes(i))})},async updateMicroAppsStatus({commit:e,state:i}){const{data:{code:t,data:s}}=await me.get($A.mainUrl("appstore/api/v1/internal/installed"),{headers:{Token:i.userToken,Language:I}});t===200&&e("microApps/data",s||[])}},cu={"route/loading":function(e,i){i?e.routeLoading++:e.routeLoading--},"user/push":function(e,i){e.cacheUserBasic.push(i),$A.IDBSave("cacheUserBasic",e.cacheUserBasic,600)},"user/splice":function(e,{index:i,data:t,count:s=1}){typeof t=="undefined"?e.cacheUserBasic.splice(i,s):e.cacheUserBasic.splice(i,s,t),$A.IDBSave("cacheUserBasic",e.cacheUserBasic,600)},"user/save":function(e,i){e.cacheUserBasic=i,$A.IDBSave("cacheUserBasic",e.cacheUserBasic,600)},"message/push":function(e,i){e.dialogMsgs.push(i),$A.IDBSave("dialogMsgs",e.dialogMsgs,600)},"message/splice":function(e,{index:i,data:t,count:s=1}){typeof t=="undefined"?e.dialogMsgs.splice(i,s):e.dialogMsgs.splice(i,s,t),$A.IDBSave("dialogMsgs",e.dialogMsgs,600)},"message/save":function(e,i){e.dialogMsgs=i,$A.IDBSave("dialogMsgs",e.dialogMsgs,600)},"task/push":function(e,i){e.cacheTasks.push(i),$A.IDBSave("cacheTasks",e.cacheTasks,600)},"task/splice":function(e,{index:i,data:t,count:s=1}){typeof t=="undefined"?e.cacheTasks.splice(i,s):e.cacheTasks.splice(i,s,t),$A.IDBSave("cacheTasks",e.cacheTasks,600)},"task/content/push":function(e,i){e.taskContents.push(i)},"task/content/splice":function(e,{index:i,data:t,count:s=1}){typeof t=="undefined"?e.taskContents.splice(i,s):e.taskContents.splice(i,s,t)},"dialog/push":function(e,i){e.cacheDialogs.push(i),$A.IDBSave("cacheDialogs",e.cacheDialogs,600)},"dialog/splice":function(e,{index:i,data:t,count:s=1}){typeof t=="undefined"?e.cacheDialogs.splice(i,s):e.cacheDialogs.splice(i,s,t),$A.IDBSave("cacheDialogs",e.cacheDialogs,600)},"dialog/in/push":function(e,i){e.dialogIns.push(i)},"dialog/in/splice":function(e,{index:i,data:t,count:s=1}){typeof t=="undefined"?e.dialogIns.splice(i,s):e.dialogIns.splice(i,s,t)},"dialog/history/push":function(e,i){e.dialogHistory.push(i)},"dialog/history/save":function(e,i){e.dialogHistory=i},"dialog/msg/top/push":function(e,i){e.dialogMsgTops.push(i)},"dialog/msg/top/splice":function(e,{index:i,data:t,count:s=1}){typeof t=="undefined"?e.dialogMsgTops.splice(i,s):e.dialogMsgTops.splice(i,s,t)},"dialog/msg/top/save":function(e,i){e.dialogMsgTops=i},"dialog/todo/push":function(e,i){e.dialogTodos.push(i)},"dialog/todo/splice":function(e,{index:i,data:t,count:s=1}){typeof t=="undefined"?e.dialogTodos.splice(i,s):e.dialogTodos.splice(i,s,t)},"dialog/todo/save":function(e,i){e.dialogTodos=i},"project/push":function(e,i){e.cacheProjects.push(i),$A.IDBSave("cacheProjects",e.cacheProjects)},"project/splice":function(e,{index:i,data:t,count:s=1}){typeof t=="undefined"?e.cacheProjects.splice(i,s):e.cacheProjects.splice(i,s,t),$A.IDBSave("cacheProjects",e.cacheProjects)},"project/column/push":function(e,i){e.cacheColumns.push(i),$A.IDBSave("cacheColumns",e.cacheColumns)},"project/column/splice":function(e,{index:i,data:t,count:s=1}){typeof t=="undefined"?e.cacheColumns.splice(i,s):e.cacheColumns.splice(i,s,t),$A.IDBSave("cacheColumns",e.cacheColumns)},"project/column/save":function(e,i){e.cacheColumns=i,$A.IDBSave("cacheColumns",e.cacheColumns)},"project/parameter/push":function(e,i){e.cacheProjectParameter.push(i),$A.IDBSave("cacheProjectParameter",e.cacheProjectParameter)},"project/parameter/splice":function(e,{index:i,data:t,count:s=1}){typeof t=="undefined"?e.cacheProjectParameter.splice(i,s):e.cacheProjectParameter.splice(i,s,t),$A.IDBSave("cacheProjectParameter",e.cacheProjectParameter)},"file/push":function(e,i){e.fileLists.push(i),$A.IDBSave("fileLists",e.fileLists,600)},"file/splice":function(e,{index:i,data:t,count:s=1}){typeof t=="undefined"?e.fileLists.splice(i,s):e.fileLists.splice(i,s,t),$A.IDBSave("fileLists",e.fileLists,600)},"file/save":function(e,i){e.fileLists=i,$A.IDBSave("fileLists",e.fileLists,600)},"draft/set":function(e,{id:i,content:t}){const s=e.dialogDrafts.findIndex(a=>a.id===i),n={id:i,content:$A.filterInvalidLine(t),time:new Date().getTime()};s===-1&&!n.content||(e.dialogId==i?n.tag=s!==-1?e.dialogDrafts[s].tag:!1:n.tag=!!n.content,s!==-1?e.dialogDrafts.splice(s,1,n):e.dialogDrafts.push(n),$A.IDBSave("dialogDrafts",e.dialogDrafts))},"draft/tag":function(e,i){if(e.dialogId==i)return;const t=e.dialogDrafts.findIndex(s=>s.id===i);t!==-1&&(e.dialogDrafts[t].tag=!!e.dialogDrafts[t].content,$A.IDBSave("dialogDrafts",e.dialogDrafts))},"quote/set":function(e,{id:i,type:t,content:s}){const n=e.dialogQuotes.findIndex(r=>r.id===i),a={id:i,type:t,content:s,time:new Date().getTime()};n===-1&&!a.content||(n!==-1?e.dialogQuotes.splice(n,1,a):e.dialogQuotes.push(a),$A.IDBSave("dialogQuotes",e.dialogQuotes))},"quote/remove":function(e,i){const t=e.dialogQuotes.findIndex(s=>s.id===i);t!==-1&&(e.dialogQuotes.splice(t,1),$A.IDBSave("dialogQuotes",e.dialogQuotes))},"longpress/set":function(e,{type:i,data:t,element:s}){e.longpressData={type:i,data:t,element:s}},"longpress/clear":function(e){e.longpressData={type:"",data:null,element:null}},"menu/operation":function(e,i){e.menuOperation=i||{}},"microApps/push":function(e,i){e.microApps.push(i)},"microApps/update":function(e,{name:i,data:t}){const s=e.microApps.find(n=>n.name==i);s&&Object.assign(s,t)},"microApps/keepAlive":function(e,i){const t=e.microApps.filter(s=>s.keep_alive);t.length<=i||t.sort((s,n)=>s.lastOpenAt-n.lastOpenAt).slice(0,t.length-i).forEach(s=>{s.keepAliveBackup=!0,s.keep_alive=!1})},"microApps/splice":function(e,{index:i,data:t,count:s=1}){typeof t=="undefined"?e.microApps.splice(i,s):e.microApps.splice(i,s,t)},"microApps/data":function(e,i){e.userIsAdmin&&i.unshift({id:"appstore",version:"1.0.0",menu_items:[{location:"application/admin",label:$A.L("\u5E94\u7528\u5546\u5E97"),icon:$A.mainUrl("images/application/appstore.svg"),url:"appstore/internal?language={system_lang}&theme={system_theme}",disable_scope_css:!0,auto_dark_theme:!1}]});const t=e.microAppsInstalled.filter(n=>!i.some(a=>a.id===n.id)).map(n=>({type:"uninstall",id:n.id}));e.microAppsInstalled.forEach(n=>{const a=i.find(r=>r.id===n.id);a&&n.version!==a.version&&t.push({type:"update",id:n.id})}),e.microAppsInstalled=i,C.emit("observeMicroApp:updatedOrUninstalled",t);const s=[];i.forEach(n=>{n.menu_items&&s.push(...n.menu_items.map(a=>Object.assign(a,{id:n.id})))}),s.forEach(n=>{let a=n.id;s.filter(r=>r.id===n.id).length>1&&(a+="_"+`${n.url}`.replace(/^https?:\/\/.*?\//,"").replace(/[^a-zA-Z0-9]/g,"_")),s.find(r=>r.name===a)&&(a+="_"+$A.randomString(8)),n.name=a}),$A.IDBSave("microAppsIds",e.microAppsIds=i.map(n=>n.id)),$A.IDBSave("microAppsMenus",e.microAppsMenus=s)}};k.use(Ae);var G=new Ae.Store({state:su,getters:iu,mutations:cu,actions:lu}),uu={computed:{...x(["windowWidth","windowHeight","windowActive","windowScrollY","windowTouch","windowLandscape","windowPortrait","userId","userToken","routeName","routePath"])}};var du=function(){var e=this,i=e.$createElement;return e._self._c,e._e()},hu=[];const pu={name:"PageTitle",props:{title:{type:[String,Number],default:""}},data(){return{pagePath:""}},activated(){this.updateTitle()},watch:{title:{handler(){this.initTitle()},immediate:!0}},methods:{initTitle(){this.pagePath=this.$route.path,this.updateTitle()},updateTitle(){if(this.pagePath=="")return;let e=this.title,{title:i}=document;e!==i&&this.pagePath===this.$route.path&&this.setPageTile(e)},setPageTile(e){document.title=e}}},Vt={};var fu=m(pu,du,hu,!1,mu,null,null,null);function mu(e){for(let i in Vt)this[i]=Vt[i]}var gu=function(){return fu.exports}(),_u=function(){var e=this,i=e.$createElement,t=e._self._c||i;return e.visible?t("ETooltip",{attrs:{disabled:e.$isEEUIApp||e.windowTouch||e.content=="",content:e.content}},[e.type==="svg"?t("svg",{staticClass:"common-loading",attrs:{viewBox:"25 25 50 50"}},[t("circle",{staticClass:"common-path",attrs:{cx:"50",cy:"50",r:"20",fill:"none","stroke-width":"5","stroke-miterlimit":"10"}})]):t("div",{staticClass:"common-pureing"})]):e._e()},vu=[];const $u={name:"Loading",props:{type:{type:String,default:"svg"},content:{type:[String,Number],default:""},delay:{type:Number,default:0}},data(){return{visible:this.delay===0,timer:null}},mounted(){this.delay>0&&(this.timer=setTimeout(e=>{this.visible=!0},this.delay))},beforeDestroy(){this.timer&&clearTimeout(this.timer)}},qt={};var yu=m($u,_u,vu,!1,wu,null,null,null);function wu(e){for(let i in qt)this[i]=qt[i]}var ku=function(){return yu.exports}(),bu=function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("ETooltip",{attrs:{content:e.tipText,placement:e.placement,effect:e.tooltipTheme,delay:e.delay,disabled:e.$isEEUIApp||e.windowTouch||!e.showTooltip||e.disabled,"max-width":e.tooltipMaxWidth,transfer:""}},[t("span",{ref:"content",staticClass:"common-auto-tip",on:{mouseenter:e.handleTooltipIn,click:e.onClick}},[e.existSlot?[e._t("default")]:[e._v(e._s(e.content))]],2)])},Au=[];const Cu={name:"AutoTip",props:{content:{type:[String,Number],default:""},placement:{default:"bottom"},tooltipTheme:{default:"dark"},tooltipMaxWidth:{type:[String,Number],default:300},delay:{type:Number,default:100},disabled:{type:Boolean,default:!1}},data(){return{showTooltip:!1,tooltipContent:""}},computed:{tipText(){const{content:e,tooltipContent:i}=this;return e||i||""},existSlot(){return!(typeof this.$slots.default=="undefined"||this.$slots.default.length<1)}},methods:{handleTooltipIn(){const e=this.$refs.content;if(!e)return;let i=document.createRange();i.setStart(e,0),i.setEnd(e,e.childNodes.length||0);const t=i.getBoundingClientRect().width;if(this.showTooltip=Math.floor(t)>Math.floor(e.offsetWidth),this.showTooltip&&this.existSlot){const s=this.$slots.default.map(n=>n.text?n.text:n.elm.innerText?n.elm.innerText:"");this.tooltipContent=s.join("")}i=null},onClick(e){this.$emit("on-click",e)}}},Yt={};var Su=m(Cu,bu,Au,!1,Tu,null,null,null);function Tu(e){for(let i in Yt)this[i]=Yt[i]}var Du=function(){return Su.exports}(),Lu=function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("div",{staticClass:"common-tag-input",class:{focus:e.isFocus},on:{paste:function(s){return e.pasteText(s)},click:e.focus}},[t("Draggable",{attrs:{list:e.disSource,animation:150,tag:"ul",draggable:".column-item"}},e._l(e.disSource,function(s,n){return t("div",{staticClass:"tags-item column-item"},[t("span",{staticClass:"tags-content",on:{click:function(a){return a.stopPropagation(),e.edit(e.disSource,n)}}},[e._v(e._s(s))]),t("span",{staticClass:"tags-del",on:{click:function(a){return a.stopPropagation(),e.delTag(n)}}},[e._v("\xD7")])])}),0),t("textarea",{directives:[{name:"model",rawName:"v-model",value:e.content,expression:"content"}],ref:"myTextarea",staticClass:"tags-input",style:{minWidth:e.minWidth+"px"},attrs:{placeholder:e.tis||e.placeholderText,enterkeyhint:e.enterkeyhint,disabled:e.disabled,readonly:e.readonly},domProps:{value:e.content},on:{keydown:[function(s){return!s.type.indexOf("key")&&e._k(s.keyCode,"enter",13,s.key,"Enter")?null:e.downEnter(s)},function(s){return!s.type.indexOf("key")&&e._k(s.keyCode,"delete",[8,46],s.key,["Backspace","Delete","Del"])?null:e.delTag(!1)}],keyup:e.onKeyup,focus:e.onFocus,blur:e.onBlur,input:function(s){s.target.composing||(e.content=s.target.value)}}}),e._v(" "),e.showPlaceholder||e.tis!==""?t("span",{ref:"myPlaceholder",staticClass:"tags-placeholder"},[e._v(e._s(e.tis||e.placeholderText))]):e._e()],1)},Iu=[];const xu={name:"TagInput",components:{Draggable:Ms},props:{value:{default:""},cut:{default:","},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},placeholder:{default:""},max:{default:0},enterkeyhint:{type:String,default:""}},data(){var i;const e=[];return this.value&&((i=this.value)==null||i.split(",").forEach(t=>{t&&e.push(t)})),{minWidth:80,tis:"",tisTimeout:null,showPlaceholder:!0,content:"",disSource:e,isFocus:!1,editShow:!1,editData:{index:0,disSource:[],name:""},addRule:{name:[{required:!0,message:this.$L("\u8BF7\u586B\u5199\u540D\u79F0\uFF01"),trigger:"change"}]}}},mounted(){this.wayMinWidth()},watch:{placeholder(){this.wayMinWidth()},value(e){if(e&&typeof e=="string"){let i=[];e==null||e.split(",").forEach(t=>{t&&i.push(t)}),this.disSource=i}},disSource(e){let i="";e.forEach(t=>{i!=""&&(i+=this.cut),i+=t}),this.$emit("input",i),this.$emit("on-change")}},computed:{placeholderText(){return this.disSource.length>0?"":this.placeholder}},methods:{edit(e,i){this.editData.disSource=e,this.editData.index=i,this.editData.name=e[i]+"",$A.modalInput({title:"\u7F16\u8F91",placeholder:"\u8BF7\u8F93\u5165\u540D\u79F0",okText:"\u786E\u5B9A",value:e[i]+"",onOk:t=>t?(this.editData.name=t,this.editData.disSource[this.editData.index]=t,this.$set(this.disSource,this.editData.index,t),!1):"\u8BF7\u8F93\u5165\u540D\u79F0"})},focus(e){const i=this.$refs.myTextarea;i.focus(e);const{cursor:t}=e||{};if(t){const s=i.value.length;switch(t){case"start":i.setSelectionRange(0,0);break;case"end":i.setSelectionRange(s,s);break;default:i.setSelectionRange(0,s)}}},wayMinWidth(){this.showPlaceholder=!0,this.$nextTick(()=>{this.$refs.myPlaceholder&&(this.minWidth=Math.max(this.minWidth,this.$refs.myPlaceholder.offsetWidth)),setTimeout(()=>{try{this.minWidth=Math.max(this.minWidth,this.$refs.myPlaceholder.offsetWidth),this.showPlaceholder=!1}catch{}$A(this.$refs.myPlaceholder).is(":visible")||this.wayMinWidth()},500)})},pasteText(e){e.preventDefault();let i=(e.clipboardData||window.clipboardData).getData("text");this.addTag(!1,i)},downEnter(e){e.preventDefault()},onFocus(e){this.isFocus=!0,this.$emit("on-focus",e)},onBlur(e){this.isFocus=!1,this.addTag(!1,this.content),this.$emit("on-blur",e)},onKeyup(e){this.addTag(e,this.content),this.$emit("on-keyup",e),e.keyCode===13&&this.$nextTick(()=>{this.$emit("on-enter",e)})},addTag(e,i){if(e===!1||e.keyCode===13){i.trim()!=""&&this.disSource.indexOf(i.trim())===-1&&this.disSource.push(i.trim()),this.content="";return}if(this.max>0&&this.disSource.length>=this.max){this.content="",this.tis="\u6700\u591A\u53EA\u80FD\u6DFB\u52A0"+this.max+"\u4E2A",clearTimeout(this.tisTimeout),this.tisTimeout=setTimeout(()=>{this.tis=""},2e3);return}let t=i.trim(),s=t.length-this.cut.length;t!=""&&t.substring(s)===this.cut&&(t=t.substring(0,s),t.trim()!=""&&this.disSource.indexOf(t.trim())===-1&&this.disSource.push(t.trim()),this.content="")},delTag(e){if(e===!1){if(this.content!=="")return;e=this.disSource.length-1}this.disSource.splice(e,1),this.focus()}}},Kt={};var Eu=m(xu,Lu,Iu,!1,Mu,null,null,null);function Mu(e){for(let i in Kt)this[i]=Kt[i]}var ju=function(){return Eu.exports}(),Pu=function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("div",{staticClass:"td-action",style:e.tdStyle,attrs:{"data-width":e.width,"data-height":e.height}},[t("div",{directives:[{name:"resize",rawName:"v-resize",value:e.onResize,expression:"onResize"}],ref:"action",staticClass:"td-action-container",class:{"td-action-menu":e.menu.length>0},on:{mouseenter:e.handleIn}},[e._t("default"),e._l(e.menu,function(s,n){return s.hidden!==!0?t("ETooltip",{key:n,attrs:{placement:"top",disabled:e.$isEEUIApp||e.windowTouch||!s.title,content:s.title,enterable:!1,"open-delay":600}},[s.children&&s.children.length>0?t("EDropdown",{staticClass:"menu-dropdown",attrs:{size:"medium",trigger:"click"},on:{command:e.onClick}},[s.label?t("a",{style:s.style||{},attrs:{href:s.href||"javascript:void(0)",target:s.target||"_self"}},[e._v(e._s(s.label))]):e.isAliIcon(s.icon)?t("i",{staticClass:"taskfont menu-icon",style:s.style||{},domProps:{innerHTML:e._s(s.icon)}}):t("Icon",{staticClass:"menu-icon",style:s.style||{},attrs:{type:s.icon}}),t("EDropdownMenu",{attrs:{slot:"dropdown"},slot:"dropdown"},e._l(s.children,function(a,r){return a.hidden!==!0?t("EDropdownItem",{key:r,style:a.style||{},attrs:{command:a.action,disabled:!!a.disabled,divided:!!a.divided}},[t("div",[e._v(e._s(a.title))])]):e._e()}),1)],1):s.label?t("a",{style:s.style||{},attrs:{href:s.href||"javascript:void(0)",target:s.target||"_self"},on:{click:function(a){return e.onClick(s.action)}}},[e._v(e._s(s.label))]):e.isAliIcon(s.icon)?t("i",{staticClass:"taskfont menu-icon",style:s.style||{},domProps:{innerHTML:e._s(s.icon)},on:{click:function(a){return e.onClick(s.action)}}}):t("Icon",{staticClass:"menu-icon",style:s.style||{},attrs:{type:s.icon},on:{click:function(a){return e.onClick(s.action)}}})],1):e._e()})],2)])},Ru=[];k.use(js);const Uu={name:"TableAction",props:{column:{type:Object,default:()=>({})},autoWidth:{type:Boolean,default:!0},minWidth:{type:Number,default:80},align:{type:String,default:""},menu:{type:Array,default:()=>[]}},data(){return{width:0,height:0}},mounted(){this.onUpdate()},activated(){this.onUpdate()},beforeUpdate(){this.onUpdate()},computed:{tdStyle(){const e={},{align:i}=this;switch(i.toLowerCase()){case"left":e.justifyContent="flex-start";break;case"center":e.justifyContent="center";break;case"right":e.justifyContent="flex-end";break}return e}},methods:{isAliIcon(e){return $A.leftExists(e,"&#")},handleIn(){var e;((e=this.$refs.action)==null?void 0:e.offsetWidth)!=this.width&&this.onUpdate()},onUpdate(){this.onResize({width:this.$refs.action.offsetWidth,height:this.$refs.action.offsetHeight})},onResize({width:e,height:i}){if(!this.autoWidth)return;$A(".ivu-table-column-"+this.column.__id).each((s,n)=>{let a=$A(n).find(".td-action-container");a.length>0&&(e=Math.max(e,a[0].offsetWidth),i=Math.max(i,a[0].offsetHeight))}),this.width=e,this.height=i;let t=Math.max(this.minWidth,this.width+26);this.column.minWidth&&(t=Math.max(this.column.minWidth,t)),this.column.maxWidth&&(t=Math.min(this.column.maxWidth,t)),t!=this.column.width&&this.$nextTick(()=>{this.$set(this.column,"width",t)})},onClick(e){this.$emit("action",e)}}},Jt={};var Ou=m(Uu,Pu,Ru,!1,Bu,null,null,null);function Bu(e){for(let i in Jt)this[i]=Jt[i]}var Fu=function(){return Ou.exports}(),zu=function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("div",{staticClass:"quick-edit",class:[e.alwaysIcon?"quick-always":""]},[e.isEdit?t("div",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:e.onClickOut,expression:"onClickOut"}],staticClass:"quick-input"},[e.isTag?t("TagInput",{ref:"input",attrs:{disabled:e.isLoad,enterkeyhint:"done"},on:{"on-keydown":e.onKeydown,"on-blur":e.onBlur},model:{value:e.content,callback:function(s){e.content=s},expression:"content"}}):t("Input",{ref:"input",attrs:{disabled:e.isLoad,parser:e.parser,enterkeyhint:"done"},on:{"on-keydown":e.onKeydown,"on-blur":e.onBlur},model:{value:e.content,callback:function(s){e.content=s},expression:"content"}}),e.isLoad?t("div",{staticClass:"quick-loading"},[t("Loading")],1):e._e()],1):[t("div",{staticClass:"quick-text",attrs:{title:e.attrTitle}},[e._t("default")],2),e.disabled?e._e():t("Icon",{staticClass:"quick-icon",attrs:{type:"ios-create-outline"},on:{click:function(s){return s.stopPropagation(),e.onEdit.apply(null,arguments)}}})]],2)},Nu=[];const Hu={name:"QuickEdit",directives:{clickoutside:ls},props:{value:{},autoEdit:{},isTag:{type:Boolean,default:!1},alwaysIcon:{type:Boolean,default:!1},clickOutSide:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},parser:{type:Function},attrTitle:{type:String,default:""}},data(){return{isLoad:!1,isEdit:!1,content:""}},mounted(){this.autoEdit===!0&&this.onEdit()},watch:{autoEdit(e){e===!0&&setTimeout(this.onEdit,0)}},methods:{onEditChange(e){this.isEdit=e,this.$emit("on-edit-change",e)},onEdit(){this.content=this.value,this.onEditChange(!0),this.$nextTick(()=>{this.$refs.input.focus({cursor:"all"})})},onKeydown(e){e.keyCode===13?this.onEnter():e.keyCode===27&&(e.preventDefault(),e.stopPropagation(),this.isEdit=!1,this.isLoad=!1)},onEnter(){if(this.content==this.value){this.onEditChange(!1);return}this.isLoad||(this.isLoad=!0,this.$emit("input",this.content),this.$emit("on-update",this.content,()=>{this.onEditChange(!1),this.isLoad=!1}))},onClickOut(){!this.clickOutSide||this.onEnter()},onBlur(){this.clickOutSide||!this.isEdit||this.onEnter()}}},Gt={};var Wu=m(Hu,zu,Nu,!1,Vu,null,null,null);function Vu(e){for(let i in Gt)this[i]=Gt[i]}var qu=function(){return Wu.exports}(),Yu={props:{userid:{type:[String,Number],default:""},size:{type:[String,Number],default:"default"},showIcon:{type:Boolean,default:!0},showName:{type:Boolean,default:!1},showStateDot:{type:Boolean,default:!0},nameText:{type:String,default:""},borderWidth:{type:Number,default:0},borderColor:{type:String,default:""},clickOpenDetail:{type:Boolean,default:!1},userResult:{default:null}}},Ku=function(){var e=this,i=e.$createElement,t=e._self._c||i;return e.user?t("div",{staticClass:"avatar-wrapper common-avatar",class:{"avatar-pointer":e.clickOpenDetail},on:{click:e.onClickOpen}},[e.showIcon?t("div",{class:e.boxClass,style:e.boxStyle,attrs:{title:e.showName?void 0:e.user.nickname}},[e.showStateDot&&!e.user.disable_at?t("em",{style:e.spotStyle}):e._e(),e.showImg?t("EAvatar",{ref:"avatar",class:{"avatar-default":e.isDefault},attrs:{src:e.user.userimg,size:e.avatarSize,error:e.onError}},[t("span",{staticClass:"avatar-char",style:e.spotStyle},[e._v(e._s(e.nickname))])]):t("EAvatar",{staticClass:"avatar-text",attrs:{size:e.avatarSize}},[t("span",{staticClass:"avatar-char",style:e.spotStyle},[e._v(e._s(e.nickname))])])],1):e._e(),e.showName?t("div",{staticClass:"avatar-name",style:e.nameStyle},[e.user.bot?t("div",{staticClass:"taskfont bot"},[e._v("\uE68C")]):e._e(),t("span",[e._v(e._s(e.nameText||e.user.nickname))])]):e._e()]):e._e()},Ju=[];const Gu={name:"UserAvatar",mixins:[Yu],data(){return{user:null}},mounted(){this.getData(),C.on("userActive",this.userActive),this.$store.state.userAvatar[this._uid]=this.$props},beforeDestroy(){C.off("userActive",this.userActive),this.$store.state.userAvatar[this._uid]!==void 0&&delete this.$store.state.userAvatar[this._uid]},computed:{boxClass(){return{"avatar-box":!0,online:this.$store.state.userId===this.userid||this.user.online||this.isBot,disabled:this.user.disable_at,deleted:this.user.delete_at}},boxStyle(){const e={},{borderWidth:i,borderColor:t}=this;return i>0&&(e.border=i+"px solid "+(t||"#ffffff")),e},spotStyle(){let{borderWidth:e,size:i}=this;return i==="default"&&(i=32),e>0&&(i-=e),i==32?{}:{transform:"scale("+Math.min(1.25,i/32)+")"}},nameStyle(){const{showIcon:e}=this,{delete_at:i,disable_at:t}=this.user,s={};return e||(s.marginLeft=0),(i||t)&&(s.opacity=.8),s},avatarSize(){let{borderWidth:e,size:i}=this;return i==="default"&&(i=32),e>0?i-e*2:i},showImg(){const{userimg:e}=this.user;return e?!$A.rightExists(e,"/avatar.png"):!1},isDefault(){const{userimg:e}=this.user;return $A.strExists(e,"/avatar")},isBot(){return!!(this.user&&this.user.bot)},nickname(){const{nickname:e}=this.user;if(!e)return"D";let i=e.substring(0,2);return/^[\u4e00-\u9fa5]+$/.test(i)&&(i=i.substring(0,1)),i||"D"}},watch:{userid(){this.getData()}},methods:{userActive({type:e,data:i}){i.userid==this.userid&&(e==="line"?this.user&&this.$set(this.user,"online",i.online):this.setUser(i))},getData(){if(!this.$store.state.userId)return;const e=this.$store.state.cacheUserBasic.find(({userid:i})=>i==this.userid);e&&this.setUser(e),this.$store.dispatch("getUserBasic",{userid:this.userid})},setUser(e){try{this.user&&this.user.userimg!=e.userimg&&this.$refs.avatar&&(this.$refs.avatar.$data.isImageExist=!0)}catch{}this.user=e,typeof this.userResult=="function"&&this.userResult(e)},onClickOpen(){this.clickOpenDetail?C.emit("openUser",this.userid):this.$emit("on-click",this.userid)},openDialog(){this.$store.dispatch("openDialogUserid",this.userid).catch(({msg:e})=>{$A.modalError(e)})},onError(){return!0}}},Qt={};var Qu=m(Gu,Ku,Ju,!1,Xu,null,null,null);function Xu(e){for(let i in Qt)this[i]=Qt[i]}var Zu=function(){return Qu.exports}(),ed=function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("img",{attrs:{src:e.processedSrc,alt:e.alt}})},td=[];const sd={props:{src:{type:String,required:!0},alt:{type:String,default:""}},computed:{processedSrc({src:e}){return rs(e)}}},Xt={};var id=m(sd,ed,td,!1,nd,null,null,null);function nd(e){for(let i in Xt)this[i]=Xt[i]}var ad=function(){return id.exports}(),rd=function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("img",{attrs:{src:e.srcValue,alt:e.alt},on:{"~error":function(s){return e.onError.apply(null,arguments)}}})},od=[];const ld={name:"ImgView",props:{src:{default:""},errorSrc:{default:""},alt:{default:""}},computed:{srcValue({src:e}){return this.toSrc(e)}},methods:{toSrc(e){return e.substring(0,10)==="data:image"||e.substring(0,2)==="//"||e.substring(0,7)==="http://"||e.substring(0,8)==="https://"||e.substring(0,6)==="ftp://"||e.substring(0,1)==="/"?e:$A.mainUrl(e)},onError(e){!this.errorSrc||(e.target.src=this.toSrc(this.errorSrc))}}},Zt={};var cd=m(ld,rd,od,!1,ud,null,null,null);function ud(e){for(let i in Zt)this[i]=Zt[i]}var dd=function(){return cd.exports}();function P(e){return parseInt(e,10)||0}const X=typeof window!="undefined"&&("ontouchstart"in window||"maxTouchPoints"in window.navigator&&window.navigator.maxTouchPoints>0||window.DocumentTouch&&document instanceof window.DocumentTouch);function es(e){return e?getComputedStyle(e):{}}function fe(e,i){if(e)for(const t in i){let s=i[t];typeof s=="number"&&(s=`${s}px`),e.style[t]=s}return e}var hd={name:"Scrollbar",props:{tag:{type:String,default:"div"},className:{type:String,default:""},enableX:{type:Boolean,default:!1},enableY:{type:Boolean,default:!0},hideBar:{type:Boolean,default:!1},minSize:{type:Number,default:20},touchContentBlur:{type:Boolean,default:!0}},data(){return{isReady:!1,scrollingX:!1,scrollingY:!1,moveingX:!1,moveingY:!1,containerWidth:null,containerHeight:null,contentWidth:null,contentHeight:null,contentOverflow:{x:null,y:null},thumbYHeight:null,thumbYTop:null,thumbXWidth:null,thumbXLeft:null,lastScrollTop:0,lastScrollLeft:0,timeouts:{}}},computed:{containerClass(){const e=["scrollbar-container"];return X?e.push("scrollbar-touch"):e.push("scrollbar-desktop"),this.contentWidth>this.containerWidth&&this.contentOverflow.x!=="hidden"&&this.enableX&&e.push("scrollbar-active-x"),this.contentHeight>this.containerHeight&&this.contentOverflow.y!=="hidden"&&this.enableY&&e.push("scrollbar-active-y"),this.scrollingX&&e.push("scrollbar-scrolling-x"),this.scrollingY&&e.push("scrollbar-scrolling-y"),this.moveingX&&e.push("scrollbar-moveing-x"),this.moveingY&&e.push("scrollbar-moveing-y"),(this.hideBar||!this.isReady)&&e.push("scrollbar-hidebar"),e},contentClass({className:e,enableX:i,enableY:t}){const s=["scrollbar-content"];return e&&s.push(e),i||s.push("scrollbar-disable-x"),t||s.push("scrollbar-disable-y"),s}},mounted(){this.$nextTick(()=>{this.updateBase()})},updated(){this.$nextTick(()=>{this.updateGeometry(!1)})},methods:{scrollInfo(){const e=$A(this.$refs.content),i=Math.round(e.innerHeight()),t=e.scrollTop(),s=this.$refs.content.scrollHeight;return{scale:t/(s-i),scrollY:t,scrollE:s-i-t}},scrollElement(){return this.$refs.content},querySelector(e){return this.$refs.content&&this.$refs.content.querySelector(e)},updateBase(){if(X)return;const e=es(this.$refs.container),i=es(this.$refs.content);fe(this.$refs.trackX,{left:P(e.paddingLeft)+P(i.marginLeft),right:P(e.paddingRight)+P(i.marginRight),bottom:P(e.paddingBottom)+P(i.marginBottom)}),fe(this.$refs.trackY,{top:P(e.paddingTop)+P(i.marginTop),bottom:P(e.paddingBottom)+P(i.marginBottom),right:P(e.paddingRight)+P(i.marginRight)}),this.contentOverflow={x:i.overflowX,y:i.overflowY}},updateGeometry(e){if(X)return;const i=this.$refs.content;if(!i)return;const t=Math.floor(i.scrollTop),s=i.getBoundingClientRect();this.containerWidth=Math.round(s.width),this.containerHeight=Math.round(s.height),this.contentWidth=i.scrollWidth,this.contentHeight=i.scrollHeight,this.thumbXWidth=Math.max(P(this.containerWidth*this.containerWidth/this.contentWidth),this.minSize),this.thumbXLeft=P(i.scrollLeft*(this.containerWidth-this.thumbXWidth)/(this.contentWidth-this.containerWidth)),this.thumbYHeight=Math.max(P(this.containerHeight*this.containerHeight/this.contentHeight),this.minSize),this.thumbYTop=P(t*(this.containerHeight-this.thumbYHeight)/(this.contentHeight-this.containerHeight)),fe(this.$refs.thumbX,{left:this.thumbXLeft,width:this.thumbXWidth}),fe(this.$refs.thumbY,{top:this.thumbYTop,height:this.thumbYHeight}),e&&(this.scrollingX=this.lastScrollLeft!==i.scrollLeft,this.scrollingY=this.lastScrollTop!==i.scrollTop,this.lastScrollTop=i.scrollTop,this.lastScrollLeft=i.scrollLeft,this.timeouts.scroll&&clearTimeout(this.timeouts.scroll),this.timeouts.scroll=setTimeout(()=>{this.scrollingX=!1,this.scrollingY=!1},1e3))},onContainerMouseMove(){var e;(e=this.$store)!=null&&e.state.windowTouch||setTimeout(()=>{this.isReady||(this.updateGeometry(!0),this.isReady=!0)},300)},onContentTouchStart(e){if(!this.touchContentBlur)return;const i=document.activeElement;i&&i.blur()},onContentScroll(e){this.updateGeometry(!0),this.$emit("on-scroll",e),this.isReady=!0},onContentMouseenter(){this.updateBase(),this.updateGeometry(!1)},onTrackXMouseDown(e){if(X)return;const i=this.$refs.content,t=this.$refs.trackX.getBoundingClientRect(),n=e.pageX-window.scrollX-t.left>this.thumbXLeft?1:-1;i.scrollLeft+=n*this.containerWidth,this.updateGeometry(!0),e.stopPropagation()},onTrackYMouseDown(e){if(X)return;const i=this.$refs.content,t=this.$refs.trackY.getBoundingClientRect(),n=e.pageY-window.scrollY-t.top>this.thumbYTop?1:-1;i.scrollTop+=n*this.containerHeight,this.updateGeometry(!0),e.stopPropagation()},onThumbXMouseDown(e){if(X)return;const i=this.$refs.content,t=i.getBoundingClientRect(),s=i.scrollLeft,n=e.pageX-window.scrollX,a=o=>{const l=o.pageX-n;i.scrollLeft=s+l*this.contentWidth/t.width},r=()=>{this.timeouts.moveX=setTimeout(()=>{this.moveingX=!1},100),document.removeEventListener("mousemove",a),document.removeEventListener("mouseup",r)};this.moveingX=!0,this.timeouts.moveX&&clearTimeout(this.timeouts.moveX),document.addEventListener("mousemove",a),document.addEventListener("mouseup",r),e.preventDefault(),e.stopPropagation()},onThumbYMouseDown(e){if(X)return;const i=this.$refs.content,t=i.getBoundingClientRect(),s=i.scrollTop,n=e.pageY-window.scrollY,a=o=>{const l=o.pageY-n;i.scrollTop=s+l*this.contentHeight/t.height},r=()=>{this.timeouts.moveY=setTimeout(()=>{this.moveingY=!1},100),document.removeEventListener("mousemove",a),document.removeEventListener("mouseup",r)};this.moveingY=!0,this.timeouts.moveY&&clearTimeout(this.timeouts.moveY),document.addEventListener("mousemove",a),document.addEventListener("mouseup",r),e.preventDefault(),e.stopPropagation()}},render(e){return e("div",{ref:"container",class:this.containerClass,on:{"~mousemove":this.onContainerMouseMove}},[e(this.tag,{ref:"content",class:this.contentClass,on:{touchstart:this.onContentTouchStart,scroll:this.onContentScroll,mouseenter:this.onContentMouseenter}},this.$slots.default),e("div",{ref:"trackX",class:"scrollbar-track-x",on:{mousedown:this.onTrackXMouseDown}},[e("div",{ref:"thumbX",class:"scrollbar-thumb-x",on:{mousedown:this.onThumbXMouseDown}})]),e("div",{ref:"trackY",class:"scrollbar-track-y",on:{mousedown:this.onTrackYMouseDown}},[e("div",{ref:"thumbY",class:"scrollbar-thumb-y",on:{mousedown:this.onThumbYMouseDown}})])])}};const ve=!!(window&&window.process&&window.process.type&&window.electron),De=window&&window.navigator&&/eeui/i.test(window.navigator.userAgent),Le=ve||De;k.use(Ae);k.use(_e);k.use(Es,{config:{autoSetContainer:!0}});k.use(B,{modal:{checkEscClose:!0}});k.component("PageTitle",gu);k.component("Loading",ku);k.component("AutoTip",Du);k.component("TagInput",ju);k.component("TableAction",Fu);k.component("QuickEdit",qu);k.component("UserAvatar",Zu);k.component("Imgs",ad);k.component("ImgView",dd);k.component("Scrollbar",hd);k.component("EAvatar",re.exports.Avatar);k.component("ETooltip",re.exports.Tooltip);k.component("EPopover",re.exports.Popover);k.component("EDropdown",re.exports.Dropdown);k.component("EDropdownMenu",re.exports.DropdownMenu);k.component("EDropdownItem",re.exports.DropdownItem);const pd=_e.prototype.push;_e.prototype.push=function(i){return pd.call(this,i).catch(t=>t)};const be=le(window.location)?"hash":"history",Ie=new _e({mode:be,routes:Zc});B.LoadingBar.config({color:"#3fcc25",failedColor:"#ff0000"});Ie.beforeEach((e,i,t)=>{Le||(B.LoadingBar._timer&&clearTimeout(B.LoadingBar._timer),B.LoadingBar._timer=setTimeout(s=>{B.LoadingBar._load=!0,B.LoadingBar.start()},300)),G.commit("route/loading",!0),t()});Ie.afterEach(()=>{Le||(B.LoadingBar._timer&&clearTimeout(B.LoadingBar._timer),B.LoadingBar._load===!0&&(B.LoadingBar._load=!1,B.LoadingBar.finish())),G.commit("route/loading",!1)});k.prototype.goForward=function(e,i,t=!0){if($A.Ready&&$A.isSubElectron&&t){$A.Electron.sendMessage("broadcastCommand",{channel:"goForward",payload:{route:e,isReplace:i}}),$A.Electron.sendMessage("mainWindowActive");return}if(typeof e=="string")if($A.strExists(e,"/")){if(/^https?:\/\//.test(e))if($A.getDomain(e)===$A.getDomain($A.mainUrl()))e=e.replace(/^https?:\/\/[^\/]+/,"");else{i?window.location.replace(e):window.location.href=e;return}e={path:e}}else e={name:e};D.$store.state.routeHistorys.length===0&&D.$store.state.routeHistorys.push(D.$route);const s=i?"replace":"push";D.$router[s](e).then(n=>{if(i)D.$store.state.routeHistorys.pop(),D.$store.state.routeHistorys.push(n);else{const a=D.$store.state.routeHistorys.push(n);a>120&&D.$store.state.routeHistorys.splice(a-100),D.$store.state.routeHistoryLast=a>=2?D.$store.state.routeHistorys[a-2]:{}}}).catch(n=>console.warn("\u8DEF\u7531\u8DF3\u8F6C\u5931\u8D25:",n))};k.prototype.goBack=function(){if(D.$store.state.routeHistorys.length>1){D.$router.back(),D.$store.state.routeHistorys.pop();const e=D.$store.state.routeHistorys.length;D.$store.state.routeHistoryLast=e>=2?D.$store.state.routeHistorys[e-2]:{}}else D.$router.replace({path:"/"}).catch(e=>{}),D.$store.state.routeHistorys=[],D.$store.state.routeHistoryLast={}};k.prototype.copyText=function(e){if($A.isJson(e)||(e={text:e,success:"\u590D\u5236\u6210\u529F",error:"\u590D\u5236\u5931\u8D25"}),$A.isEEUIApp){$A.eeuiAppCopyText(e.text),e.success&&$A.messageSuccess(e.success);return}D.$copyText(e.text).then(i=>{e.success&&$A.messageSuccess(e.success)}).catch(i=>{e.error&&$A.messageError(e.error)})};$A.L=Ce;$A.Ready=!1;$A.Electron=null;$A.Platform="web";$A.isMainElectron=!1;$A.isSubElectron=!1;$A.isEEUIApp=De;$A.isElectron=ve;$A.isSoftware=Le;$A.openLog=!1;ve?($A.Electron=window.electron,$A.Platform=/macintosh|mac os x/i.test(navigator.userAgent)?"mac":"win",$A.isMainElectron=/\s+MainTaskWindow\//.test(window.navigator.userAgent),$A.isSubElectron=/\s+SubTaskWindow\//.test(window.navigator.userAgent)):De&&($A.Platform=/(iPhone|iPad|iPod|iOS)/i.test(navigator.userAgent)?"ios":"android");const fs=$A.randomString(6)+"_"+Date.now().toString();$A.syncPauses=new Map;$A.syncDispatch=(e,i)=>{var t;return!$A.Ready||!ve||$A.syncPauses.has(e)||!$A.isJson(i)?!1:i.__sync__===!0?(delete i.__sync__,!1):((t=$A.Electron)==null||t.sendMessage("broadcastCommand",{channel:"syncDispatch",payload:{dispatchId:fs,action:e,data:i}}),!0)};var ss;(ss=$A.Electron)==null||ss.listener("syncDispatch",async({dispatchId:e,action:i,data:t})=>{!$A.Ready||fs!==e&&(!$A.isJson(t)||(t.__sync__=!0,await G.dispatch(i,t)))});var is;(is=$A.Electron)==null||is.listener("goForward",({route:e,isReplace:i})=>{!$A.Ready||$A.goForward(e,i,!1)});$A.bindScreenshotKey=e=>{let i="";const t=(e.screenshot_key||"").trim().toLowerCase();t&&(i=/macintosh|mac os x/i.test(navigator.userAgent)?"command":"ctrl",i=`${i}+shift+${t.toLowerCase()}`),$A.Electron.sendMessage("bindScreenshotKey",{key:i})};k.prototype.$A=$A;k.prototype.$L=Ce;k.prototype.$Electron=$A.Electron;k.prototype.$Platform=$A.Platform;k.prototype.$isMainElectron=$A.isMainElectron;k.prototype.$isSubElectron=$A.isSubElectron;k.prototype.$isEEUIApp=$A.isEEUIApp;k.prototype.$isSoftware=$A.isSoftware;k.config.productionTip=!1;k.mixin(uu);let D;const ts=async()=>{const e=await G.dispatch("init");D=new k({router:Ie,store:G,render:i=>i(Xc),template:"<App/>"}).$mount("#app"),$A.goForward=D.goForward,$A.goBack=D.goBack,$A.Message=D.$Message,$A.Notice=D.$Notice,$A.Modal=D.$Modal,$A.Ready=!0,e==="handleClearCache"&&$A.messageSuccess("\u6E05\u9664\u6210\u529F"),typeof window.LANGUAGE_DATA[`i_${I}`]!="undefined"&&B.locale(window.LANGUAGE_DATA[`i_${I}`])},fd=async()=>{if($A.isEEUIApp){const i=new Date().getTime();for(;typeof requireModuleJs!="function"&&(await new Promise(s=>setTimeout(s,200)),!(new Date().getTime()-i>15*1e3)););if(typeof requireModuleJs!="function"){const s=$A.L("\u52A0\u8F7D\u5931\u8D25\uFF0C\u8BF7\u91CD\u542F\u8F6F\u4EF6"),n=document.querySelector(".app-view-loading");n?n.innerHTML=`<span style="color:#f00;font-size:18px;">${s}</span>`:alert(s);return}const t=$A.eeuiAppGetPageInfo()||{};G.state.isFirstPage=t.pageName==="firstPage",await G.dispatch("safeAreaInsets")}if(await G.dispatch("preload"),window.location[be==="hash"?"hash":"pathname"].replace(/^[#\/\s]+/,"")!=="preload"){await ts();return}window.__initializeApp=async i=>{if(/^https?:\/\//.test(i)){if($A.getDomain(i)!==$A.getDomain($A.mainUrl())){window.location.href=url;return}i=i.replace(/^https?:\/\/[^\/]+/,"")}be==="hash"&&(i=`#/${i.replace(/^[#\/\s]+/,"")}`),window.history.replaceState(null,"",i),await ts()}};fd().catch(e=>{});export{fl as C,Xo as D,Sl as F,dd as I,ne as M,Di as N,Fc as S,Fi as T,Se as U,cc as V,ic as a,ol as b,G as c,rl as d,C as e,J as f,al as g,ah as h,le as i,nh as j,Us as k,I as l,Yu as m,m as n,su as s,us as t};
|