(function(e){function t(t){for(var o,a,s=t[0],l=t[1],c=t[2],d=0,u=[];d{try{const o=t.getItem(e);return o?JSON.parse(o):n}catch(o){return console.error(`Error reading ${e} from storage:`,o),n}},b={taskList:p,userInfo:m("TUIKit-userInfo",localStorage,{}),isMsgNeedReadReceipt:m("isMsgNeedReadReceipt",sessionStorage,!0),displayOnlineStatus:m("displayOnlineStatus",sessionStorage,!0),allowNotification:m("allowNotification",sessionStorage,!0),_isTIMCallKit:!0,consultInfo:{},titleName:"",doctorName:"",orderId:null,sessionId:null,groupId:null},h=Object(u["a"])({state:b,getters:{getConsultInfo:e=>e.consultInfo,getTitleName:e=>e.titleName,getDoctorName:e=>e.doctorName,getOrderId:e=>e.orderId,getSessionId:e=>e.sessionId,getGroupId:e=>e.groupId,getCompletedTasks:e=>{var t;return a()(t=e.taskList).call(t,e=>e.status)},getTaskById:e=>t=>{var n;return r()(n=e.taskList).call(n,e=>e.id===t)}},mutations:{handleTask(e,t){t>=0&&te.id===n);return-1!==a&&(e("handleTask",a),!0)}},modules:{}});t["a"]=h},"0817":function(e,t,n){"use strict";n("9d26")},"0bf6":function(e,t,n){},"0f3a":function(e,t,n){},1:function(e,t){},"107e":function(e,t,n){},"10d3":function(e,t,n){"use strict";n("13d0")},1182:function(e,t,n){"use strict";n("d871")},"11aa":function(e,t,n){"use strict";n("57cf")},"13d0":function(e,t,n){},"14ed":function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAYAAABw4pVUAAAAAXNSR0IArs4c6QAABRdJREFUeF7tnO2ZFSEMhdlOtBOtRK1ErUStRK1ES3HPXXl2FoEkEIaM9/Dn/rjAhLwkB5iPh8QSygMPoayhMYlAgk0CAiGQYB4IZg4jhECCeSCYOYwQAgnmgWDmMEIIJJgHgpnDCCGQYB4IZg4jhECCeSCYOYwQAgnmgWDmMEIIxMUDb1JK71JKr1JKPx9/v6aUfrv0vLmTK0bIp5TSx8JvP1JKH/4HKFcD8j2lhOioldcEcl54IzV96cCAJYgQpK5LlytECCICkSGVz48VkM4uXaIDqelFy+EEsngq9vSidmkCWQREoxcEssj5ZbdavSCQE4Bo9QIbQERRWZiyHCFp9eLt301hbS/SA5J39vjFJhJ1V+7sMWGwec0TR71p3b3K0uoFnIdBwZkteC0guMavYvKgP8BdAWXqejuBaPUCEOC8XKxAWqlwVYqz2vdiruwCotWLmtOsA8YO/30jvXpD6Y1Lda0dQCx6gegoixWIBN/rDEyKeNXRzplARvSiNrGtQNAHNKS2MsN/HnpS042j7WXaba6HtEBag9EutDB7kDqkojF8BAjsR7vWOFTppGN8L+oBHFGoKhIQKdxVF1FW0jplBAhMkMaivX45HKlfLEhqqbfqlh4QKScq/ayqZjF6FIgGilVPJB+ZIfeA9FYnKi8rKh33F4rqtyozQDz1xE03jgPvAdGuhrSOLOtp9KLW9ywQLz1x040IQMyhfDB6FogmdUn2uerGbiAWvVgRIblPyaktPXHXjVkgmD0z965nz488IiT7wLo/WaIbHkB23rv2BGLVkyW6QSAvE6GUurKeSPVmU/HNqpFVliR4o6subTvPCNHqCc6heicNbj4hkOdp0NOT3mQZXb6bd+orZqI2Cnr1Vtkl6UnNJtM5lWbwjBCbnpQ+ddENinp/qkrinVu76QaByLlD0hNX3SAQGYh0jrckOrjsrYNhypIn7Isaq1ZZuIh0TlWaar1/Ig6Vq6xnF0nnVK1lr+vzXQTy7GZJN1qz21VPCOTJzZJu4HS79WwX2rtBIRBZN7SHiy56cu9AJN0o9xvW+yeiiJcV7h2I9f6GdN41nbruGYikG61zKqndFJQRIAjjb+ZYfGqAthFu4Ur7DcmpEpRhPRkBMsji1szjOdrZjaFVN1rjXaInZwPJg1M9Cd7wxCwQq260gCzRk11A8tp95KMxM0CkVGO9vyH1J6W+f2DvfpR05KMxo0BmdaMVKRIUk570gEghOaMlx7ZWXRkB4qUby/VEeh0Bs+r4NukoBM37JVpdGQHipRvL9UQCMgqgbIewzh8c6/WZn4rsLY2tQKSUYtWN0dSlmnBnAcEg8ltUUrRIumIFEuWlTyxgAKVbzgQCQ7S61NMVLyCr7ou39ieqFdfZQPLs0L4MVAtzK5DaJHB/nuow7VvXU93I2gUE9o/qihVITpd5cZJTopQ9Zv7PbxzjNx81qd4z3AlkVFdGgMw499S2u4GM6Err24uqHH2qdwcuFgGIVVf4eaYB0KNNtLpS658RMup1oZ12v1J2QyCLgFh05WgCgSwEYtUV1CeQE4BY9ys7X0Z1cUekVVZvQBpdYYS4TAl9J9I5mNeprd6iBTWvEiHHodfOwVaeTS1we7vLKwLJRy44m0IqUx1rn+rViYtdFcjEkGM3JZBgfAiEQIJ5IJg5jBACCeaBYOYwQggkmAeCmcMIIZBgHghmDiOEQIJ5IJg5jBACCeaBYOYwQggkmAeCmfMHU1mYdEaYItIAAAAASUVORK5CYII="},"179e":function(e,t,n){e.exports=n.p+"img/invite_user.16977bfe.svg"},"17da":function(e,t,n){"use strict";n.d(t,"d",(function(){return o})),n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return i})),n.d(t,"e",(function(){return r})),n.d(t,"a",(function(){return s}));const o="https://web.sdk.qcloud.com/im/assets/emoji/",a={"[NO]":"emoji_0@2x.png","[OK]":"emoji_1@2x.png","[下雨]":"emoji_2@2x.png","[么么哒]":"emoji_3@2x.png","[乒乓]":"emoji_4@2x.png","[便便]":"emoji_5@2x.png","[信封]":"emoji_6@2x.png","[偷笑]":"emoji_7@2x.png","[傲慢]":"emoji_8@2x.png","[再见]":"emoji_9@2x.png","[冷汗]":"emoji_10@2x.png","[凋谢]":"emoji_11@2x.png","[刀]":"emoji_12@2x.png","[删除]":"emoji_13@2x.png","[勾引]":"emoji_14@2x.png","[发呆]":"emoji_15@2x.png","[发抖]":"emoji_16@2x.png","[可怜]":"emoji_17@2x.png","[可爱]":"emoji_18@2x.png","[右哼哼]":"emoji_19@2x.png","[右太极]":"emoji_20@2x.png","[右车头]":"emoji_21@2x.png","[吐]":"emoji_22@2x.png","[吓]":"emoji_23@2x.png","[咒骂]":"emoji_24@2x.png","[咖啡]":"emoji_25@2x.png","[啤酒]":"emoji_26@2x.png","[嘘]":"emoji_27@2x.png","[回头]":"emoji_28@2x.png","[困]":"emoji_29@2x.png","[坏笑]":"emoji_30@2x.png","[多云]":"emoji_31@2x.png","[大兵]":"emoji_32@2x.png","[大哭]":"emoji_33@2x.png","[太阳]":"emoji_34@2x.png","[奋斗]":"emoji_35@2x.png","[奶瓶]":"emoji_36@2x.png","[委屈]":"emoji_37@2x.png","[害羞]":"emoji_38@2x.png","[尴尬]":"emoji_39@2x.png","[左哼哼]":"emoji_40@2x.png","[左太极]":"emoji_41@2x.png","[左车头]":"emoji_42@2x.png","[差劲]":"emoji_43@2x.png","[弱]":"emoji_44@2x.png","[强]":"emoji_45@2x.png","[彩带]":"emoji_46@2x.png","[彩球]":"emoji_47@2x.png","[得意]":"emoji_48@2x.png","[微笑]":"emoji_49@2x.png","[心碎了]":"emoji_50@2x.png","[快哭了]":"emoji_51@2x.png","[怄火]":"emoji_52@2x.png","[怒]":"emoji_53@2x.png","[惊恐]":"emoji_54@2x.png","[惊讶]":"emoji_55@2x.png","[憨笑]":"emoji_56@2x.png","[手枪]":"emoji_57@2x.png","[打哈欠]":"emoji_58@2x.png","[抓狂]":"emoji_59@2x.png","[折磨]":"emoji_60@2x.png","[抠鼻]":"emoji_61@2x.png","[抱抱]":"emoji_62@2x.png","[抱拳]":"emoji_63@2x.png","[拳头]":"emoji_64@2x.png","[挥手]":"emoji_65@2x.png","[握手]":"emoji_66@2x.png","[撇嘴]":"emoji_67@2x.png","[擦汗]":"emoji_68@2x.png","[敲打]":"emoji_69@2x.png","[晕]":"emoji_70@2x.png","[月亮]":"emoji_71@2x.png","[棒棒糖]":"emoji_72@2x.png","[汽车]":"emoji_73@2x.png","[沙发]":"emoji_74@2x.png","[流汗]":"emoji_75@2x.png","[流泪]":"emoji_76@2x.png","[激动]":"emoji_77@2x.png","[灯泡]":"emoji_78@2x.png","[炸弹]":"emoji_79@2x.png","[熊猫]":"emoji_80@2x.png","[爆筋]":"emoji_81@2x.png","[爱你]":"emoji_82@2x.png","[爱心]":"emoji_83@2x.png","[爱情]":"emoji_84@2x.png","[猪头]":"emoji_85@2x.png","[猫咪]":"emoji_86@2x.png","[献吻]":"emoji_87@2x.png","[玫瑰]":"emoji_88@2x.png","[瓢虫]":"emoji_89@2x.png","[疑问]":"emoji_90@2x.png","[白眼]":"emoji_91@2x.png","[皮球]":"emoji_92@2x.png","[睡觉]":"emoji_93@2x.png","[磕头]":"emoji_94@2x.png","[示爱]":"emoji_95@2x.png","[礼品袋]":"emoji_96@2x.png","[礼物]":"emoji_97@2x.png","[篮球]":"emoji_98@2x.png","[米饭]":"emoji_99@2x.png","[糗大了]":"emoji_100@2x.png","[红双喜]":"emoji_101@2x.png","[红灯笼]":"emoji_102@2x.png","[纸巾]":"emoji_103@2x.png","[胜利]":"emoji_104@2x.png","[色]":"emoji_105@2x.png","[药]":"emoji_106@2x.png","[菜刀]":"emoji_107@2x.png","[蛋糕]":"emoji_108@2x.png","[蜡烛]":"emoji_109@2x.png","[街舞]":"emoji_110@2x.png","[衰]":"emoji_111@2x.png","[西瓜]":"emoji_112@2x.png","[调皮]":"emoji_113@2x.png","[象棋]":"emoji_114@2x.png","[跳绳]":"emoji_115@2x.png","[跳跳]":"emoji_116@2x.png","[车厢]":"emoji_117@2x.png","[转圈]":"emoji_118@2x.png","[鄙视]":"emoji_119@2x.png","[酷]":"emoji_120@2x.png","[钞票]":"emoji_121@2x.png","[钻戒]":"emoji_122@2x.png","[闪电]":"emoji_123@2x.png","[闭嘴]":"emoji_124@2x.png","[闹钟]":"emoji_125@2x.png","[阴险]":"emoji_126@2x.png","[难过]":"emoji_127@2x.png","[雨伞]":"emoji_128@2x.png","[青蛙]":"emoji_129@2x.png","[面条]":"emoji_130@2x.png","[鞭炮]":"emoji_131@2x.png","[风车]":"emoji_132@2x.png","[飞吻]":"emoji_133@2x.png","[飞机]":"emoji_134@2x.png","[饥饿]":"emoji_135@2x.png","[香蕉]":"emoji_136@2x.png","[骷髅]":"emoji_137@2x.png","[麦克风]":"emoji_138@2x.png","[麻将]":"emoji_139@2x.png","[鼓掌]":"emoji_140@2x.png","[龇牙]":"emoji_141@2x.png"},i=["[龇牙]","[调皮]","[流汗]","[偷笑]","[再见]","[敲打]","[擦汗]","[猪头]","[玫瑰]","[流泪]","[大哭]","[嘘]","[酷]","[抓狂]","[委屈]","[便便]","[炸弹]","[菜刀]","[可爱]","[色]","[害羞]","[得意]","[吐]","[微笑]","[怒]","[尴尬]","[惊恐]","[冷汗]","[爱心]","[示爱]","[白眼]","[傲慢]","[难过]","[惊讶]","[疑问]","[困]","[么么哒]","[憨笑]","[爱情]","[衰]","[撇嘴]","[阴险]","[奋斗]","[发呆]","[右哼哼]","[抱抱]","[坏笑]","[飞吻]","[鄙视]","[晕]","[大兵]","[可怜]","[强]","[弱]","[握手]","[胜利]","[抱拳]","[凋谢]","[米饭]","[蛋糕]","[西瓜]","[啤酒]","[瓢虫]","[勾引]","[OK]","[爱你]","[咖啡]","[月亮]","[刀]","[发抖]","[差劲]","[拳头]","[心碎了]","[太阳]","[礼物]","[皮球]","[骷髅]","[挥手]","[闪电]","[饥饿]","[咒骂]","[折磨]","[抠鼻]","[鼓掌]","[糗大了]","[左哼哼]","[打哈欠]","[快哭了]","[吓]","[篮球]","[乒乓]","[NO]","[跳跳]","[怄火]","[转圈]","[磕头]","[回头]","[跳绳]","[激动]","[街舞]","[献吻]","[左太极]","[右太极]","[闭嘴]","[猫咪]","[红双喜]","[鞭炮]","[红灯笼]","[麻将]","[麦克风]","[礼品袋]","[信封]","[象棋]","[彩带]","[蜡烛]","[爆筋]","[棒棒糖]","[奶瓶]","[面条]","[香蕉]","[飞机]","[左车头]","[车厢]","[右车头]","[多云]","[下雨]","[钞票]","[熊猫]","[灯泡]","[风车]","[闹钟]","[雨伞]","[彩球]","[钻戒]","[沙发]","[纸巾]","[手枪]","[青蛙]"],r="https://web.sdk.qcloud.com/im/assets/face-elem/",s=[{icon:1,list:["yz00","yz01","yz02","yz03","yz04","yz05","yz06","yz07","yz08","yz09","yz10","yz11","yz12","yz13","yz14","yz15","yz16","yz17"]},{icon:2,list:["ys00","ys01","ys02","ys03","ys04","ys05","ys06","ys07","ys08","ys09","ys10","ys11","ys12","ys13","ys14","ys15"]},{icon:3,list:["gcs00","gcs01","gcs02","gcs03","gcs04","gcs05","gcs06","gcs07","gcs08","gcs09","gcs10","gcs11","gcs12","gcs13","gcs14","gcs15","gcs16"]}]},"181e":function(e,t,n){"use strict";n("6ebc")},1848:function(e,t,n){"use strict";n("1d03")},"18c1":function(e,t,n){"use strict";n("c0a5")},"198e":function(e,t,n){"use strict";n("6746")},"1bba":function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAMAAACdt4HsAAAAe1BMVEX///8AAAD///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////9z+u+qAAAAKHRSTlMzAC8EKxkTKB0L70n76823e0Mhu1TAhDs29NWOd15NPyTdwqOdgGnjem2xqgAAAitJREFUWMOll+lyqzAMhU+8AA4UCNnbJmnT5fL+T3jHxHSMkQrU50cmzvKNjixkCytGMtFNqgQgVNroRHK/owEmUwikMjMXILUCKaXlDIDUAqyEllOAxP2dRSS/AmSKSaWSBxiBGRKGAySYqYQGZJitjAK8YYHexoAMi5SFgAQLlQwBBotlfIAUWCwhPUCKPyh1gEEClqcBjIHXNtArZcIBNEbarEPAeoORtAXQAWzbkbZkCBagOQPTJnQHUJyBaRPKAgxvYNqEWSF4CPLqqf1FT1UePBIYOsgHwZNG8qEHSPiqWl/F4XLML/W+8D+s4EtiWIVB/AcX1913MaxGaPjyfvhu473hoRfvC/jSaBjAZ7eXH+gJDKBBSgP2wMFm4Xwu6xMA7GlACkUDdgBK9/55A+BakAAFQQJKu9gVPcHGsCUBAiABNaw+++UXgNoD8PIdAKd3L6ArDWAsHNHpuy8/ADfaApPEG4C+qr/R6UgnkdnGq7cJ/x7h7JhtbNgkfv3UFMAmsWFKeWtT+OwWRZfSkinlhAQU1sOmJ5TOAQFIINlSBk51eT4Xjzq40wCJlSIB7QucPrp2aF8JgApbWjsm3Nbu2e4VtjTDANq7a14Hu2AAJmzrw462ry/58XIoWIAaHSxcS2Zamh4dbdU0oBodbSv917auB8f78oNFyNgLRuwVJ/qSFXvNi71oxl51oy/b8df9+IEjfuSJH7rix774wTN+9I0fvqPH//+TfI0R8kWyJgAAAABJRU5ErkJggg=="},"1c60":function(e,t,n){"use strict";n("c1b0")},"1cac":function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGgAAABoCAMAAAAqwkWTAAAAkFBMVEUAAAD///////////////////////////////////////////////////////////////////////////////////////////////////////////////8lQWaDk6g8VXb19/hxg5v6+/zo6+/f4+nb3+bBydSqtcNofJVJYYA2UHIwSm4nQ2ju8PO3wMxec47Fc9FRAAAAHHRSTlMAS+0eBOfZ0snGrowV3/n1uLKjjndsZVc+LyoLFK3R0wAAAtFJREFUaN6014luqzAQheGxw75k33uA0DZL0zR9/7e7cqVWKOSaMdjfA/DDeCQL4su263QWh7kcj2UexrN0vc3Itv0qkXhCJqs92eKJuQ8Nfy48Gm6X+ujkpzsaRkRgigT1twlhINxQPyKAoUCQuVGCHpIRmfGWE/QyWXpGnxOjt3hEbEJiACm4Y1tgoAVrfC9TDDZ9oU5ZBAuirHMNAlgRjDo6OSzJtaUsgDVBptmDCBZF/90Ibwqrph49t4BlC3pKwDrxdOEkrJMjavFiOBC3j2kJJ5atwU3gxORxeAkcSbQb527zAjgTUMMGDm0aoRAOhZoTcnVKEZyKfjs78NyLB3fw/P4BpGD5uj6Grl9gSemH54OlLlpqsPgeKYI9uLa7yTrMTQdnPrw5KT5/cH2H56vOHjpvdVUwVPUbdPZEtNJ2rgXTVVtadV0QdcFWd10WEhoVP1RBQxJl0Gk/rjy9Hw7vp7L9CtDJaGsSqs74c65MQltaG4QuBzQcLgahNaX8UIkHJT+U0owdukA5lh+fnx/lEcqFHZpRzA1Vam6v5a34cStf1fQqbiimkBs6q8538edblc7cUEg5M1QBQNk6sooZykkyQyWA460Zuh1VmhmSNGaGTo2nNtonZmj8r1ozxmEQhqGoYUE0MIBURCt3Y0Hc/36VB4ZMhJK8mlzAUuTE3/+/5EKLqq5xoVVVl9RCyVdnPbfFhTbru+Sr65lCvTTM1TXSMs3QysC09yCBebBBJuYLmmRmPtVZOmZMdCI1Mfhqk1vEKH+YgCTEydMkMSG33kci/3PiHIl8GcsXGsVOVV4SV/tqWUrkx6ulhNJrS9jX/9KL2IsyNDCLhjKdMBuNMgYxq5MybzE7mjLYsciACkGoWIcKqrDojQoT/x+P5g18fUTY+UJ5P5hBHnDCFwpyGW7xiOtcAJD8IlW/QGL+sbczIN990MRcsCWGj34B+Zek3m5aKggAAAAASUVORK5CYII="},"1cc6":function(e,t,n){"use strict";n("7e3a")},"1d03":function(e,t,n){},"1e9e":function(e,t,n){},"1ede":function(e,t,n){},"1f40":function(e,t,n){},"224d":function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGgAAABoCAMAAAAqwkWTAAAA2FBMVEUAAAD///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////8lQWb3+Pnc4Oawusg8VXdJYYAtSGwpRGnT2eGRn7Lh5erBydRtgJlDXHw1T3IvSm7z9fft8PLl6O3X3OO2v8yptMOjr7+ap7iGlapne5VbcIxVa4h4iaB3iJ/L0tvK0drGzte5ws6bqLmWpLYxS27fH+7xAAAAInRSTlMABO3H0q5OyY4e4fsfjPXo59nYuLKjd2xlV0pIPi8qFxQLhSvRRQAAAuZJREFUaN601eeS2jAUBeCLbGMwvXdYjii7wLI92ZZk0t//jSIxTFiPkbGQ/P2S9YMzHK4vlNxk2C01HTdghQILXKdZ6g4nZNu44zEcwbzOmGzJDFoVxKi0BhkyNypVcVK1NCIzWR8J+VmDznouNLi9Mxvs16Cp1id9eQ9n8PK6rbXLOEu5rdVf0cHZnKLGrDEYYNmkteVgKJeovmkDxhpTOunChwX+xcmprsOKev5ETgBLgtikizqsqce0N/VhkT9VznUDVjVUU56DZTnFPoB1WTqiyGAdK1JExkEKnOjP1EYq2pE3tYxUlPMU5iElHoX0kZp+aBJqSE0tQwc9pKhHBy5S5GrvBPP94CNVPu2NoGWxXG6hZXTO1p5945xfQktpP9tVJDe/5BJC1pufiFPNkDRAcosrHg2arzhfIM6ApBYAjdqiQc/i4mqNGC2SKnq1RYOe7sXN8hFqFRLGurVJCPnMha8FqI2JqKNbm4SwDRdeoNYhIk+jNlUQ3mV5s/g/C5a4tmjQp5c5dh7/istXKDGiCY7bLnmMfc6Kr34cyrt7gNKEhjhuyU8HvcpPf4L0cCfOz1AaUhfH8QRB65WcNuz8Ecd3KHUpZxCE31z4BWku39pZzLprmgTh5rBhb8VxC5UmOUZB17K8NaQ3cXqDikOuQdD+K23+r4cbqLgUmAUtxMMXSN93J5WAmFnQtXi4/XBSYVQwC5qJh/sPJ5XCv2rtHQdAEIiiqIkNjUuwsdFluP9VaaxMbBwgx5HKjoQg8z6XbcSOjl0Gdr3ZD8ueIPaosjHBBh8b5UqcMLkVEJB7k4BkkliJ/Kht2WttCzNi1loO0/kdO751Ca2p0v5vYfuPAo2RRTQqdGIxGgsGVdSpwlsWR6uAnVUGqgRRtY4qqlj1psrE7+vR8+qRwvfaqVuFnaWU74UZZAInOqAg+eCWNlwnJ4BUi1TlhsQc9natubwB+cr8HzRRwJZPfLTc8dESwkcPSwpvc/EgQfkAAAAASUVORK5CYII="},"22f6":function(e,t,n){"use strict";n("bfcd")},"23f8":function(e,t,n){"use strict";n("5250")},2446:function(e,t,n){"use strict";n("c45c")},2497:function(e,t,n){"use strict";n("a352")},"259d":function(e,t,n){"use strict";n.d(t,"f",(function(){return N})),n.d(t,"m",(function(){return U})),n.d(t,"d",(function(){return B})),n.d(t,"o",(function(){return M})),n.d(t,"p",(function(){return V})),n.d(t,"s",(function(){return R})),n.d(t,"r",(function(){return P})),n.d(t,"h",(function(){return G})),n.d(t,"k",(function(){return F})),n.d(t,"j",(function(){return H})),n.d(t,"t",(function(){return z})),n.d(t,"e",(function(){return K})),n.d(t,"i",(function(){return Y})),n.d(t,"l",(function(){return W})),n.d(t,"g",(function(){return q})),n.d(t,"x",(function(){return Q})),n.d(t,"c",(function(){return X})),n.d(t,"w",(function(){return Z})),n.d(t,"n",(function(){return J})),n.d(t,"a",(function(){return te})),n.d(t,"v",(function(){return ne})),n.d(t,"b",(function(){return oe})),n.d(t,"u",(function(){return ae})),n.d(t,"q",(function(){return ie}));n("d9e2"),n("1236");var o=n("14b1"),a=n.n(o),i=n("52da"),r=n.n(i),s=n("fa81"),l=n.n(s),c=n("65b8"),d=n.n(c),u=n("4573"),p=n.n(u),m=n("3818"),b=n.n(m),h=n("b4d1"),v=n.n(h),f=n("acf5"),g=n.n(f),O=n("cca4"),j=n.n(O),y=n("e946"),I=n.n(y),C=n("045d"),E=n.n(C),k=n("505e"),w=n.n(k),_=(n("2b0b"),n("9474")),S=n.n(_);function T(e){const t=e;let n,o,a,i;return t>=3600?(o=S()(""+t/3600,10)<10?"0"+S()(""+t/3600,10):S()(""+t/3600,10),a=S()(""+t%60/60,10)<10?"0"+S()(""+t%60/60,10):S()(""+t%60/60,10),i=t%3600<10?"0"+t%3600:t%3600,i>60&&(a=S()(""+i/60,10)<10?"0"+S()(""+i/60,10):S()(""+i/60,10),i=i%60<10?"0"+i%60:i%60),n=`${o}:${a}:${i}`):t>=60&&t<3600?(a=S()(""+t/60,10)<10?"0"+S()(""+t/60,10):S()(""+t/60,10),i=t%60<10?"0"+t%60:t%60,n=`00:${a}:${i}`):t<60&&(i=t<10?"0"+t:t,n="00:00:"+i),n}var L=n("b05a"),A=n("c959"),D=n("2e20");function N(e){var t,n,o,a,i,r;let s="";switch(e.type){case A["a"].TYPES.CONV_C2C:s=Z(null===e||void 0===e||null===(t=e.userProfile)||void 0===t?void 0:t.avatar)?null===e||void 0===e||null===(n=e.userProfile)||void 0===n?void 0:n.avatar:"https://web.sdk.qcloud.com/component/TUIKit/assets/avatar_21.png";break;case A["a"].TYPES.CONV_GROUP:s=Z(null===e||void 0===e||null===(o=e.groupProfile)||void 0===o?void 0:o.avatar)?null===e||void 0===e||null===(a=e.groupProfile)||void 0===a?void 0:a.avatar:"https://web.sdk.qcloud.com/im/demo/TUIkit/web/img/constomer.svg";break;case A["a"].TYPES.CONV_SYSTEM:s=Z(null===e||void 0===e||null===(i=e.groupProfile)||void 0===i?void 0:i.avatar)?null===e||void 0===e||null===(r=e.groupProfile)||void 0===r?void 0:r.avatar:"https://web.sdk.qcloud.com/component/TUIKit/assets/group_avatar.png";break}return s}function U(e){var t,n;const{t:o}=window.TUIKitTUICore.config.i18n.useI18n();let a="";switch(e.type){case A["a"].TYPES.CONV_C2C:a=(null===e||void 0===e?void 0:e.userProfile.nick)||(null===e||void 0===e||null===(t=e.userProfile)||void 0===t?void 0:t.userID)||"";break;case A["a"].TYPES.CONV_GROUP:a=e.groupProfile.name||(null===e||void 0===e||null===(n=e.groupProfile)||void 0===n?void 0:n.groupID)||"";break;case A["a"].TYPES.CONV_SYSTEM:a=o("系统通知");break}return a}function B(e){const{t:t}=window.TUIKitTUICore.config.i18n.useI18n(),n=[`[${t("TUIConversation.有人@我")}]`,`[${t("TUIConversation.@所有人")}]`,`[${t("TUIConversation.@所有人")}][${t("TUIConversation.有人@我")}]`];let o="";for(let a=0;a0&&(o=n[e.groupAtInfoList[a].atTypeArray[0]-1]);return o}function M(e){var t;const n={referenceMessageForShow:"",referenceMessageType:0};if(!e||null===e||void 0===e||!e.ID||null===e||void 0===e||!e.type)return n;switch(e.type){case A["a"].TYPES.MSG_TEXT:n.referenceMessageForShow=null===e||void 0===e||null===(t=e.payload)||void 0===t?void 0:t.text,n.referenceMessageType=1;break;case A["a"].TYPES.MSG_CUSTOM:n.referenceMessageForShow="[自定义消息]",n.referenceMessageType=2;break;case A["a"].TYPES.MSG_IMAGE:n.referenceMessageForShow="[图片]",n.referenceMessageType=3;break;case A["a"].TYPES.MSG_AUDIO:n.referenceMessageForShow="[语音]",n.referenceMessageType=4;break;case A["a"].TYPES.MSG_VIDEO:n.referenceMessageForShow="[视频]",n.referenceMessageType=5;break;case A["a"].TYPES.MSG_FILE:n.referenceMessageForShow="[文件]",n.referenceMessageType=6;break;case A["a"].TYPES.MSG_FACE:n.referenceMessageForShow="[表情]",n.referenceMessageType=8;break}return n}function V(e){const{t:t}=window.TUIKitTUICore.config.i18n.useI18n(),{lastMessage:n}=e,o=e;let a="",i="";const r=o.unreadCount>0&&o.messageRemindType===A["a"].TYPES.MSG_REMIND_ACPT_NOT_NOTE?`[${o.unreadCount>99?"99+":o.unreadCount}${t("TUIConversation.条")}] `:"";if(o.type===A["a"].TYPES.CONV_GROUP&&(a=n.fromAccount===o.groupProfile.selfInfo.userID?t("TUIConversation.我"):n.nameCard||n.nick||n.fromAccount),n.type===A["a"].TYPES.MSG_TEXT)i=n.payload.text;else if(n.type===A["a"].TYPES.MSG_CUSTOM){var s;const e=te(null===n||void 0===n||null===(s=n.payload)||void 0===s?void 0:s.data);if(1===(null===e||void 0===e?void 0:e.businessID))return i=$(n),i;i=n.messageForShow}else i=n.messageForShow;return n.isRevoked&&(i=t("TUIChat.撤回了一条消息")),o.type===A["a"].TYPES.CONV_GROUP&&n.type===A["a"].TYPES.MSG_GRP_TIP?i:`${r}${a?a+":":""}${i}`}function R(e){var t,n,o,i;const{t:s}=window.TUIKitTUICore.config.i18n.useI18n(),l={message:e,text:""};let c=(null===e||void 0===e?void 0:e.nick)||(null===e||void 0===e||null===(t=e.payload)||void 0===t||null===(t=t.userIDList)||void 0===t?void 0:t.join(","));var d,u;(null===e||void 0===e||null===(n=e.payload)||void 0===n||null===(n=n.memberList)||void 0===n?void 0:n.length)>0&&(c="",null===e||void 0===e||null===(d=e.payload)||void 0===d||null===(d=d.memberList)||void 0===d||a()(d).call(d,e=>{c+=((null===e||void 0===e?void 0:e.nick)||(null===e||void 0===e?void 0:e.userID))+","}),c=null===(u=c)||void 0===u?void 0:r()(u).call(u,0,-1));if((null===e||void 0===e?void 0:e.type)===(null===A["a"]||void 0===A["a"]||null===(o=A["a"].TYPES)||void 0===o?void 0:o.MSG_GRP_TIP))switch(e.payload.operationType){case A["a"].TYPES.GRP_TIP_MBR_JOIN:l.text=`${c} ${s("message.tip.加入群组")}`;break;case A["a"].TYPES.GRP_TIP_MBR_QUIT:l.text=`${s("message.tip.群成员")}:${c} ${s("message.tip.退出群组")}`;break;case A["a"].TYPES.GRP_TIP_MBR_KICKED_OUT:l.text=`${s("message.tip.群成员")}:${c} ${s("message.tip.被")}${e.payload.operatorID}${s("message.tip.踢出群组")}`;break;case A["a"].TYPES.GRP_TIP_MBR_SET_ADMIN:l.text=`${s("message.tip.群成员")}:${c} ${s("message.tip.成为管理员")}`;break;case A["a"].TYPES.GRP_TIP_MBR_CANCELED_ADMIN:l.text=`${s("message.tip.群成员")}:${c} ${s("message.tip.被撤销管理员")}`;break;case A["a"].TYPES.GRP_TIP_GRP_PROFILE_UPDATED:l.text=x(e);break;case A["a"].TYPES.GRP_TIP_MBR_PROFILE_UPDATED:for(const t of e.payload.memberList)t.muteTime>0?l.text=`${s("message.tip.群成员")}:${t.userID}${s("message.tip.被禁言")}`:l.text=`${s("message.tip.群成员")}:${t.userID}${s("message.tip.被取消禁言")}`;break;default:l.text=`[${s("message.tip.群提示消息")}]`;break}else if("group_create"===(null===e||void 0===e||null===(i=e.payload)||void 0===i?void 0:i.data)){var p;l.text=null===e||void 0===e||null===(p=e.payload)||void 0===p?void 0:p.extension}else l.text=$(e);return l}function x(e){const{t:t}=window.TUIKitTUICore.config.i18n.useI18n(),{payload:n}=e,{newGroupProfile:o}=n,{operatorID:a}=n;let i="";const r=l()(o)[0];switch(r){case"muteAllMembers":i=o[r]?`${t("message.tip.管理员")} ${a} ${t("message.tip.开启全员禁言")}`:`${t("message.tip.管理员")} ${a} ${t("message.tip.取消全员禁言")}`;break;case"ownerID":i=`${o[r]} ${t("message.tip.成为新的群主")}`;break;case"groupName":i=`${a} ${t("message.tip.修改群名为")} ${o[r]}`;break;case"notification":i=`${a} ${t("message.tip.发布新公告")}`;break;default:break}return i}function P(e){const t={text:Object(L["a"])(e.payload)};return t}function G(e){var t;const n={message:e,name:"",url:""};return n.name=e.payload.data,d()(t=e.payload.data).call(t,"@2x")<0&&(n.name=n.name+"@2x"),n.url=`https://web.sdk.qcloud.com/im/assets/face-elem/${n.name}.png`,n}function F(e){const t={lon:"",lat:"",href:"",url:"",description:"",message:e};return t.lon=e.payload.longitude.toFixed(6),t.lat=e.payload.latitude.toFixed(6),t.href=`https://uri.amap.com/marker?position=${t.lon},${t.lat}&name=${e.payload.description}&src=mypage&coordinate=gaode&callnative=0`,t.url=`https://restapi.amap.com/v3/staticmap?location=${t.lon},${t.lat}&zoom=10&size=300*150&markers=large,,A:${t.lon},${t.lat}&key=8498ba3ba280654a7f6891b617f7d6ef`,t.description=e.payload.description,t}function H(e){return{progress:"unSend"===(null===e||void 0===e?void 0:e.status)&&e.progress,url:e.payload.imageInfoArray[0].url,width:e.payload.imageInfoArray[0].width,height:e.payload.imageInfoArray[0].height,message:e}}function z(e){var t,n,o,a;return{progress:"unSend"===(null===e||void 0===e?void 0:e.status)&&(null===e||void 0===e?void 0:e.progress),url:null===e||void 0===e||null===(t=e.payload)||void 0===t?void 0:t.videoUrl,snapshotUrl:null===e||void 0===e||null===(n=e.payload)||void 0===n?void 0:n.snapshotUrl,snapshotWidth:null===e||void 0===e||null===(o=e.payload)||void 0===o?void 0:o.snapshotWidth,snapshotHeight:null===e||void 0===e||null===(a=e.payload)||void 0===a?void 0:a.snapshotHeight,message:e}}function K(e){return{progress:"unSend"===(null===e||void 0===e?void 0:e.status)&&e.progress,url:e.payload.url,message:e,second:e.payload.second}}function Y(e){let t="";return t=e.payload.fileSize>=1048576?(e.payload.fileSize/1048576).toFixed(2)+" Mb":e.payload.fileSize>=1024?(e.payload.fileSize/1024).toFixed(2)+" Kb":e.payload.fileSize.toFixed(2)+"B",{progress:"unSend"===(null===e||void 0===e?void 0:e.status)&&e.progress,url:e.payload.fileUrl,message:e,name:e.payload.fileName,size:t}}function W(e){return{message:e,...e.payload}}function $(e){var t,n;const{t:o}=window.TUIKitTUICore.config.i18n.useI18n();let a={},i={};try{var r;a=te(null===e||void 0===e||null===(r=e.payload)||void 0===r?void 0:r.data)}catch(c){a={}}if(1!==a.businessID)return"";try{i=te(a.data)}catch(c){i={}}let s="";null===(t=a)||void 0===t||null===(t=t.inviteeList)||void 0===t||p()(t).call(t,(e,t)=>{var n;t<(null===(n=a)||void 0===n||null===(n=n.inviteeList)||void 0===n?void 0:n.length)-1?s+=`"${e}"、`:s+=`"${e}" `});const l=`"${null===(n=a)||void 0===n?void 0:n.inviter}" `;switch(a.actionType){case 1:return i.call_end>=0&&!a.groupID?`${o("message.custom.通话时长")}:${T(i.call_end)}`:a.groupID&&a.timeout>0?`${l}${o("message.custom.发起通话")}`:a.groupID?""+o("message.custom.结束群聊"):i.data&&"switchToAudio"===i.data.cmd?""+o("message.custom.切换语音通话"):i.data&&"switchToVideo"===i.data.cmd?""+o("message.custom.切换视频通话"):""+o("message.custom.发起通话");case 2:return`${a.groupID?l:""}${o("message.custom.取消通话")}`;case 3:return i.data&&"switchToAudio"===i.data.cmd?""+o("message.custom.切换语音通话"):i.data&&"switchToVideo"===i.data.cmd?""+o("message.custom.切换视频通话"):`${a.groupID?s:""}${o("message.custom.已接听")}`;case 4:return`${a.groupID?s:""}${o("message.custom.拒绝通话")}`;case 5:return i.data&&"switchToAudio"===i.data.cmd?""+o("message.custom.切换语音通话"):i.data&&"switchToVideo"===i.data.cmd?""+o("message.custom.切换视频通话"):`${a.groupID?s:""}${o("message.custom.无应答")}`;default:return""}}function q(e){const{t:t}=window.TUIKitTUICore.config.i18n.useI18n();return{message:e,custom:$(e)||`[${t("message.custom.自定义消息")}]`}}function Q(e){const{t:t}=window.TUIKitTUICore.config.i18n.useI18n(),n=e.payload.groupProfile.name||e.payload.groupProfile.groupID;switch(e.payload.operationType){case 1:return`${e.payload.operatorID} ${t("message.tip.申请加入群组")}:${n}`;case 2:return`${t("message.tip.成功加入群组")}:${n}`;case 3:return`${t("message.tip.申请加入群组")}:${n} ${t("message.tip.被拒绝")}`;case 4:return`${t("message.tip.你被管理员")}${e.payload.operatorID} ${t("message.tip.踢出群组")}:${n}`;case 5:return`${t("message.tip.群")}:${n} ${t("message.tip.被")} ${e.payload.operatorID} ${t("message.tip.解散")}`;case 6:return`${e.payload.operatorID} ${t("message.tip.创建群")}:${n}`;case 7:return`${e.payload.operatorID} ${t("message.tip.邀请你加群")}:${n}`;case 8:return`${t("message.tip.你退出群组")}:${n}`;case 9:return`${t("message.tip.你被")}${e.payload.operatorID} ${t("message.tip.设置为群")}:${n} ${t("message.tip.的管理员")}`;case 10:return`${t("message.tip.你被")}${e.payload.operatorID} ${t("message.tip.撤销群")}:${n} ${t("message.tip.的管理员身份")}`;case 12:return`${e.payload.operatorID} ${t("message.tip.邀请你加群")}:${n}`;case 13:return`${e.payload.operatorID} ${t("message.tip.同意加群")}:${n}`;case 14:return`${e.payload.operatorID} ${t("message.tip.拒接加群")}:${n}`;case 255:return`${t("message.tip.自定义群系统通知")}: ${e.payload.userDefinedField}`}}function X(e,t,n){var o;const i=(null===e||void 0===e?void 0:e.querySelectorAll("."+t))||[],s=a()(o=r()(Array.prototype).call(i)).call(o,e=>new b.a((t,n)=>{e.onload=()=>{t(e)},e.onloadeddata=()=>{t(e)},e.onprogress=()=>{t(e)},e.complete&&t(e)}));return b.a.all(s).then(()=>{n&&n()}).catch(e=>{console.error("网络异常",e)})}function Z(e){return/^(https?:\/\/(([a-zA-Z0-9]+-?)+[a-zA-Z0-9]+\.)+[a-zA-Z]+)(:\d+)?(\/.*)?(\?.*)?(#.*)?$/.test(e)}function J(e,t,n){return{businessID:e,version:t,...n}}function ee(e){if("string"===typeof e)try{const t=JSON.parse(e);return!!t}catch(t){return!1}return!1}function te(e){return e&&ee(e)?JSON.parse(e):e}function ne(e){if(!e)return!1;try{var t;const{businessID:n}=te(null===e||void 0===e||null===(t=e.payload)||void 0===t?void 0:t.data);if(n===D["a"].typeUserTyping)return!0}catch{return!1}return!1}function oe(e,t=new v.a){if("object"!==typeof e||null===e)throw new TypeError("传入参数不是对象");if(t.has(e))return t.get(e);const n=g()(j()(e)),o=l()(e);return p()(o).call(o,o=>{const a=e[o];"object"!==typeof a||null===a?n[o]=a:I()(a)?n[o]=[...a]:a instanceof E.a?n[o]=new E.a([...a]):a instanceof w.a?n[o]=new w.a([...a]):(t.set(e,e),n[o]=oe(a,t))}),n}const ae=e=>{var t,n,o,a,i,r;return!!((null===e||void 0===e?void 0:e.type)===(null===A["a"]||void 0===A["a"]||null===(t=A["a"].TYPES)||void 0===t?void 0:t.MSG_GRP_TIP)||(null===e||void 0===e?void 0:e.type)===(null===A["a"]||void 0===A["a"]||null===(n=A["a"].TYPES)||void 0===n?void 0:n.MSG_CUSTOM)&&(null===e||void 0===e?void 0:e.conversationType)===(null===A["a"]||void 0===A["a"]||null===(o=A["a"].TYPES)||void 0===o?void 0:o.CONV_GROUP)&&null!==D["a"]&&void 0!==D["a"]&&D["a"].TYPE_CALL_MESSAGE||(null===e||void 0===e?void 0:e.type)===(null===A["a"]||void 0===A["a"]||null===(a=A["a"].TYPES)||void 0===a?void 0:a.MSG_CUSTOM)&&(null===e||void 0===e?void 0:e.conversationType)===(null===A["a"]||void 0===A["a"]||null===(i=A["a"].TYPES)||void 0===i?void 0:i.CONV_GROUP)&&"group_create"===(null===e||void 0===e||null===(r=e.payload)||void 0===r?void 0:r.data))},ie=(e,t,n,o)=>{const a=e/t,i=n/o;return e<=n&&t<=o?{width:e,height:t}:e<=n&&t>o||e>n&&t>o&&a<=i?{width:e*(o/t),height:o}:{width:n,height:t*(n/e)}}},2757:function(e,t,n){e.exports=n.p+"img/default_avatar_w.e7b781ea.png"},"277c":function(e,t,n){},2857:function(e,t,n){"use strict";n("81f9")},2929:function(e,t,n){"use strict";n("9b52")},"292f":function(e){e.exports=JSON.parse('{"发起单聊":"New one-to-one chat","发起群聊":"New group chat","请输入userID":"Enter a user ID","删除会话":"Delete conversation","系统通知":"System notification","置顶会话":"Top conversation","取消置顶":"cancel top conversation","消息免打扰":"Message not disturb","取消免打扰":"cancel not disturb","有人@我":"Someone {\'@\'} me","@所有人":"{\'@\'}Everyone","条":"strip","我":"me","网络异常,请您检查网络设置":"Network exception, please check the network settings"}')},2950:function(e,t,n){"use strict";n("e8e5")},"29ef":function(e,t,n){"use strict";n("7394")},"2b91":function(e,t,n){"use strict";n("2f05")},"2dbf":function(e,t,n){"use strict";n("02ac")},"2e20":function(e,t,n){"use strict";const o={typeC2C:"isC2C",typeGroup:"isGroup",cancel:"cancel",group:"GROUP",handleMessage:{revoke:"revoke",copy:"copy",delete:"delete",forward:"forward",reply:"reply",reference:"reference"},at:"@",all:"所有人",typeText:1,typeCustom:2,typeImage:3,typeAudio:4,typeVideo:5,typeFile:6,typeFace:8,typeForward:"forward",typeMute:"mute",typeOrder:"order",typeService:"consultion",typeReply:"quick_reply",typeEvaluate:"evaluation",typeTextLink:"text_link",typeAndroid:"android",typeIphone:"iphone",typeMini:"miniprogram",typeSystem:"system",typeBusinessCard:"business_card",typeArchives:"archives",typeMedicalExaminationReport:"medical_examination_report",typeUserTyping:"user_typing_status",typeInputStatusIng:"EIMAMSG_InputStatus_Ing",typeInputStatusEnd:"EIMAMSG_InputStatus_End",scrollType:{toBottom:"bottom",toTarget:"target"},inViewType:{page:"page",scroll:"scroll"},TYPE_CALL_MESSAGE:1,CALL_ACTION_TYPE:{INVITE:1,CANCEL_INVITE:2,ACCEPT_INVITE:3,REJECT_INVITE:4,INVITE_TIMEOUT:5}};t["a"]=o},"2f05":function(e,t,n){},"301d":function(e,t,n){},3160:function(e,t,n){},3231:function(e,t,n){},"336d":function(e){e.exports=JSON.parse('{"群聊通知":"Group Chat Notifications","系统通知":"System Notifications","我的群聊":"My Group Chats","输入群ID,按回车搜索":"Enter a group ID","群名称":"Group name","群ID":"Group ID","加入群聊":"Join group chat","解散群聊":"Disband group chat","退出群聊":"Quit group chat","进入群聊":"Enter group chat","群类型":"Group type","请填写验证信息":"Enter the verification info","申请加入":"Request to join","已申请":"Requested","接受":"Accept","拒绝":"Refuse","已处理":"Handled","添加群聊":"add group chat","已加入":"joined","该群组不存在":"The group does not exist","加群":"join","我的好友":"Friend","发送消息":"Send Message","个性签名":"Signature"}')},"34bb":function(e,t,n){e.exports=n.p+"img/doctor-img.fa4faaf8.webp"},3501:function(e,t,n){e.exports=n.p+"media/phone_dialing.9ab02c40.mp3"},"35dc":function(e,t,n){},"360d":function(e,t,n){},"37a4":function(e){e.exports=JSON.parse('{"撤回":"Recall message","删除":"Delete message","复制":"Copy","重新发送":"Resend","转发":"Forward","引用":"Reference","回复":"Reply","回复详情":"Replies","条回复":"replies","打开":"Open","已读":"Read","全部已读":"All read","人已读":" read","人未读":" unread","人关闭阅读状态":" read status closed","消息详情":"Message Detail","关闭阅读状态":"Read status closed","该消息不存在":"The message does not exist","无法定位到原消息":"Unable to navigate to the original message","未读":"Unread","您":"You","撤回了一条消息":"recalled a message","重新编辑":"Re-edit","我":"I","查看更多":"View more","转发给":"Forward to","请输入消息":"Enter a message","描述":"Description","经度":"Longitude","纬度":"Latitude","自定义消息":"Custom message","图片":"[photo]","语音":"[audio]","视频":"[video]","表情":"[face]","文件":"[file]","自定义":"[custom message]","管理员开启全员禁言":"The admin enables Mute All","您已被管理员禁言":"You have been muted by the admin","按Enter发送,Ctrl+Enter换行":"Press Enter to send a message and Ctrl+Enter to start a new line","单击下载":"Click download","确认重发该消息?":"Confirm to resend the message?","取消":"Cancel","确定":"Submit","对方正在输入":"Typing...","回到最新位置":"Back to the latest location","条新消息":" new messages","安全提示":"【Security Tips】This APP is only used to experience the functions of Tencent Cloud Instant Messaging products, and cannot be used for business negotiation and expansion. Don\'t trust money-related information such as remittances and lottery wins, don\'t make unfamiliar phone calls easily, and beware of being deceived.","点此投诉":"Complain","语音通话":"Voice Call","视频通话":"Video Call","发起群语音":"Make group voice call","发起群视频":"Make group video call","已接听":"Answered","拒绝通话":"Decline Call","无应答":"No Answer","取消通话":"Cancel Call","发起通话":"Start Call","结束群聊":"Edit Group Call","通话时长":"Duration","欢迎使用TUICallKit":"Welcome to TUICallKit","检测到您暂未集成TUICallKit,无法体验音视频通话功能":"It is detected that you have not integrated TUI CallKit yet, so you cannot experience the audio and video call. ","请点击":"Please click","集成TUICallKit":" Integrate TUICallKit ","开通腾讯实时音视频服务":"Integration Tencent Real-Time Communication","进行体验":"to experience.","您当前购买使用的套餐包暂未开通此功能":"The package you purchased does not support this ability.","选择提醒的人":"Select Contact","manage":{"群公告":"Group notice","群成员":"Group member","群管理":"Manage group","好友工作群":"Work","陌生人社交群":"Public","临时会议群":"Meeting","直播群":"AVChatRom","自由加入":"Join freely","需要验证":"Require approval","禁止加群":"Disallow group joining","人":"","群ID":"Group ID","群头像":"Group profile photo","群类型":"Group type","加群方式":"Group joining mode","转让群组":"Transfer ownership","解散群聊":"Disband group","退出群组":"Quit group","群管理员":"Group admin","全员禁言":"Mute All","全员禁言开启后,只允许群主和管理员发言。":"If Mute All is enabled, only the group owner and admin can speak.","单独禁言人员":"Mute a member","删除成员":"Remove member","确定从群聊中删除该成员?":"Are you sure you want to remove this member from the group chat?","确定从群聊中删除所选成员?":"Are you sure you want to remove selected member(s) from the group chat?","暂无公告":"No notice","发布":"Post","编辑":"Edit","群名称":"Group name","查看更多":"View more","管理员":"Admin","群主":"Group owner","我":"me","添加成员":"Add member","新增管理员":"Add admin","移除管理员":"Revoke admin","新增禁言用户":"Add muted member","移除禁言用户":"Remove muted member","修改群聊名称":"Edit group name","修改群聊名称后,将在群内通知其他成员":"After modifying the group chat name, other members will be notified in the group","仅限中文、字母、数字和下划线,2-20个字":"Chinese, letters, numbers and underscores only, 2-20 words","请先注册 TUIGroup 模块":"Please register the TUIGroup module first","该用户不存在":"The user does not exist","该用户不在群组内":"The user is not in the group"}}')},"38cc":function(e,t,n){},3910:function(e,t,n){"use strict";n("85d0")},"39aa":function(e,t,n){"use strict";n("4e80")},"3a39c":function(e,t,n){"use strict";n("bddc")},"3b1e":function(e,t,n){"use strict";n("c20b")},"3e72":function(e,t,n){"use strict";n("3160")},"3f89":function(e,t,n){},"3fa9":function(e,t,n){"use strict";n("738c")},"403c":function(e){e.exports=JSON.parse('{"请对本次服务进行评价":"请对本次服务进行评价","提交评价":"提交评价","服务评价工具":"服务评价工具","使用":"使用","自定义消息":"自定义消息","搭建":"搭建","星":"星"}')},"409e":function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAYAAABw4pVUAAAAAXNSR0IArs4c6QAABcBJREFUeF7tnYuN1TAQRb2dQCdQCVAJUAlQCVAJUAm8u3rWywbP1+NkIk2kFdJu7Dj3zM+OE55aHakUeEo1mhpMKyDJjKCAFJBkCiQbTnlIAUmmQLLhlIcUkGQKJBtOeUgBSaZAsuGUhxSQZAokG055SAFJpkCy4ZSHFJBkCiQbTnmID8ib1hp+frTWft9/fD3tWl0VCMR411p71Vr7efv3a6QogrJfbtd6vzkHUD5EXf+KQD611j7uRAsVhQECA/g1+Pvn2+8wrunjakC+30PF6MZfR1kpo+rIGPrpIVCuAgSWiVCBUEUdCBsIXSsPhCqMgzqmjeIKQAABniEdIRYqXeQesmAgowMJ/u2Mp2YHwoWIvSBHAQEMGMgSKJmBcPliZJ1HAcG1JUNxjyUjEE2+OBuIBoorp2UDos0XGYBgDCiBQ0NXJiBSGOgQkDhHIrjDhCKRU6dI+cTsJVmAaPMFKhhMCkfl7xlAAIqDYq66zgaizRe4MVgbZuQUvLOASPnENK4zgWjzBSDAM/qREUiYl5wFRJsvRtYVCQQzb4gZsTgZsqxyBhBLvoB37I8IIKNQaQotg3GFeMmRQDz5YlTdRAChrBmhcWQE2kKM8xJVxaUFQtXa2oEiX3CLcr2ffb5YBYSaP5irosEAqb419ya+sKON9Vow3HnakBHhIVzYnH22wmkmrgZzHqKtgiJgWEJFBJDusZTna41jdO+cbmLY4oDsH1VGCL/vYzu/0PYfAUSaO+DvojUzA6bCFqo5QCEPDoi2GtIKuT9PFVMXVVm9W24tasZLKGOGAQJ0OiAzNxvlIRBFWovyegkXttg+z/AQS75YVWVt+w2Z0BmqLdYYPUDQ4cyza7jtzBHpIZrQ5fUSKmyxodoLJGTLi5PKCiBTpSpxH9yGCFL3AvJQk0rw3nznyiMF5AHEFWIYL6c21bEldQF5KMqFGG8e+UsAIwubAvJSMbOAQh6kwiA5Yy8gLxU1C1hA1j7CjQZirgjLQ16auFlAwUOoQoFc0yogLxU1C+gEQk4OC8haINSEs4AoVwUqZCmF2p4WLdq27+jZunmsFbLOmYeQyzEF5AGEW+rwPjIwTzQLyAMIt+Kr3Z2zj8AFxJGTehMq3ouPXYlr1uLiTRjvcxpOvBXL7/U8RPCcFQ+oqD5Zj/PkEExqvjlDQ/8UhbP5czNzKSlcjPMOb7jixhkOZEbMiK2a0UBWbHJwh0CPh8wA6W3FHXzMRSKBrPIOdwg8Cwj07rtXrLtQIoFwmwG9yRz35sofaHj2VlLPxuYoIByMmdwBXan5hwiZAyLt6osIXejDmlcigEi7+mdC6tSMX5qBYisL3nqdfT9E014rwiwQaVe/d89xN1B3uJJCVpQH9JjaPzjG9avJK7NAuF39s6HKXV11USQPiYQivZPRryXllVVArKFzpM10CX0kENyANi9x4swCWfV+YUgJfTSQblXal4FGeWUWyCiEepfXt17C3ZNYXZ0RsvYuDkv15JUIIH0ssGrrPGgUqkK848ikTuUiT16JBBKVI7k5jbZ6fB7LWSFrK4Q1r1DfXlSHhSgK9364MtpctWUAYs0r2T7PNPpsbL8nc27KBMQyXxkZ+RkeIr3vvv1ojsoxswHBoLV5ZX+DRwOR3lJ2vcKQEYhlvrKFciQQaS3MPZasQKx5Bee7RVDFksdJS9fCsgOx5JUjgHDzDYzVXFXtjeEKQLR55Qgg0sLk1Fets8xDtBFDmq+YS0zthTfnUQ+ecErI9a/iIVvtRlY6HSqUcKI3Y/932SsC6SGsfy5W/MKOUmzNadT/XWKeb1AXuyoQjXirzsHr01gUhVf+uV3Eu1tyOL4Csgqbs98C4hRuVbMCskpZZ78FxCncqmYFZJWyzn4LiFO4Vc0KyCplnf0WEKdwq5oVkFXKOvstIE7hVjUrIKuUdfZbQJzCrWpWQFYp6+y3gDiFW9WsgKxS1tnvP5Az1XQJBKYyAAAAAElFTkSuQmCC"},"416b":function(e,t,n){"use strict";n("6c6b")},4176:function(e,t,n){"use strict";n.d(t,"a",(function(){return B})),n.d(t,"e",(function(){return M})),n.d(t,"b",(function(){return V})),n.d(t,"c",(function(){return R})),n.d(t,"d",(function(){return x}));var o=n("9474"),a=n.n(o),i=n("65b8"),r=n.n(i),s=(n("14d9"),n("fc56")),l=n.n(s),c=n("4573"),d=n.n(c),u=n("4c43"),p=n.n(u),m=n("3393"),b=n.n(m),h=n("c192"),v=n.n(h),f=n("7a23");const g={key:0},O={key:1};function j(e,t,n,o,a,i){return Object(f["openBlock"])(),Object(f["createBlock"])(f["Transition"],{name:"fade",onBeforeLeave:e.onClose,onAfterLeave:t[0]||(t[0]=t=>e.$emit("destroy"))},{default:Object(f["withCtx"])(()=>[Object(f["withDirectives"])(Object(f["createElementVNode"])("div",{class:Object(f["normalizeClass"])(["message",[e.handleStyle(e.type),e.isH5&&"message-h5"]]),style:Object(f["normalizeStyle"])(e.customStyle)},[e.isH5?Object(f["createCommentVNode"])("",!0):(Object(f["openBlock"])(),Object(f["createElementBlock"])("p",g,Object(f["toDisplayString"])(e.message),1)),e.isH5?(Object(f["openBlock"])(),Object(f["createElementBlock"])("span",O,Object(f["toDisplayString"])(e.message),1)):Object(f["createCommentVNode"])("",!0)],6),[[f["vShow"],e.visible]])]),_:1},8,["onBeforeLeave"])}var y=n("3654"),I=Object(f["defineComponent"])({name:"TUIMessage",props:{message:{type:String,default:""},duration:{type:Number,default:3e3},repeatNum:{type:Number,default:1},id:{type:String,default:""},onClose:{type:Function,required:!1},offset:{type:Number,default:20},zIndex:{type:Number,default:0},isH5:{type:Boolean,default:!1},type:{type:String,default:""}},setup(e){const t=Object(f["ref"])(!1);let n=void 0;function o(){e.duration>0&&({stop:n}=Object(y["useTimeoutFn"])(()=>{t.value&&i()},e.duration))}function a(){var e;null===(e=n)||void 0===e||e()}function i(){t.value=!1}Object(f["watch"])(()=>e.repeatNum,()=>{a(),o()});const r=Object(f["computed"])(()=>({top:e.offset+"px",zIndex:e.zIndex}));Object(f["onMounted"])(()=>{o(),t.value=!0});const s=e=>!e||"error"!==e&&"success"!==e&&"warning"!==e?"normal":e;return{visible:t,customStyle:r,handleStyle:s}}}),C=(n("d0f1"),n("6b0d")),E=n.n(C);const k=E()(I,[["render",j],["__scopeId","data-v-3852e376"]]);var w=k;const _=[];let S=1;const T=document.body,L=function(e){const t=l()(_).call(_,t=>{var n,o,a;return""+(null!==(n=null===(o=t.vm.props)||void 0===o?void 0:o.message)&&void 0!==n?n:"")===""+(null!==(a=e.message)&&void 0!==a?a:"")});if(t)return t.vm.component.props.repeatNum+=1,{close:()=>r.component.proxy.visible=!1};let n=e.offset||20;d()(_).call(_,({vm:e})=>{var t;n+=((null===(t=e.el)||void 0===t?void 0:t.offsetHeight)||0)+20}),n+=20;const o="message_"+(S+=1),a=e.onClose,i={zIndex:20+S,offset:n,id:o,...e,onClose:()=>{A(o,a)}},r=Object(f["createVNode"])(w,i),s=document.createElement("div");return r.props.onDestroy=()=>{Object(f["render"])(null,s)},Object(f["render"])(r,s),_.push({vm:r}),T.appendChild(s.firstElementChild),{close:()=>r.component.proxy.visible=!1}};function A(e,t){const n=p()(_).call(_,({vm:t})=>e===t.component.props.id);if(-1===n)return;const{vm:o}=_[n];if(!o)return;null===t||void 0===t||t(o);const a=o.el.offsetHeight;b()(_).call(_,n,1);const i=_.length;if(!(i<1))for(let r=n;r8KB)"};var U=N;function B(e){const{t:t}=window.TUIKitTUICore.config.i18n.useI18n(),n=6e4,o=60*n,i=24*o,r=7*i,s=(new Date).getTime(),l=s-e;let c="";if(l<0)return;const d=l/n,u=l/o,p=l/i,m=l/r;if(m>=1&&m<=4)c=` ${a()(""+m,10)} ${t("time.周")}${t("time.前")}`;else if(p>=1&&p<=6)c=` ${a()(""+p,10)} ${t("time.天")}${t("time.前")}`;else if(u>=1&&u<=23)c=` ${a()(""+u,10)} ${t("time.小时")}${t("time.前")}`;else if(d>=1&&d<=59)c=` ${a()(""+d,10)} ${t("time.分钟")}${t("time.前")}`;else if(l>=0&&l<=n)c=""+t("time.刚刚");else{const t=new Date;t.setTime(e);const n=t.getFullYear(),o=t.getMonth()+1<10?"0"+(t.getMonth()+1):t.getMonth()+1,a=t.getDate()<10?"0"+t.getDate():t.getDate();c=`${n}-${o}-${a}`}return c}function M(e){const{t:t}=window.TUIKitTUICore.config.i18n.useI18n(),n=e.payload.groupProfile.name||e.payload.groupProfile.groupID;switch(e.payload.operationType){case 1:return`${e.payload.operatorID} ${t("message.tip.申请加入群组")}:${n}`;case 2:return`${t("message.tip.成功加入群组")}:${n}`;case 3:return`${t("message.tip.申请加入群组")}:${n} ${t("message.tip.被拒绝")}`;case 4:return`${t("message.tip.你被管理员")}${e.payload.operatorID} ${t("message.tip.踢出群组")}:${n}`;case 5:return`${t("message.tip.群")}:${n} ${t("message.tip.被")} ${e.payload.operatorID} ${t("message.tip.解散")}`;case 6:return`${e.payload.operatorID} ${t("message.tip.创建群")}:${n}`;case 7:return`${e.payload.operatorID} ${t("message.tip.邀请你加群")}:${n}`;case 8:return`${t("message.tip.你退出群组")}:${n}`;case 9:return`${t("message.tip.你被")}${e.payload.operatorID} ${t("message.tip.设置为群")}:${n} ${t("message.tip.的管理员")}`;case 10:return`${t("message.tip.你被")}${e.payload.operatorID} ${t("message.tip.撤销群")}:${n} ${t("message.tip.的管理员身份")}`;case 12:return`${e.payload.operatorID} ${t("message.tip.邀请你加群")}:${n}`;case 13:return`${e.payload.operatorID} ${t("message.tip.同意加群")}:${n}`;case 14:return`${e.payload.operatorID} ${t("message.tip.拒接加群")}:${n}`;case 255:return`${t("message.tip.自定义群系统通知")}: ${e.payload.userDefinedField}`}}function V(e,t){null!==e&&void 0!==e&&e.type&&null!==e&&void 0!==e&&e.message?D({message:`${e.type} : ${e.message}`||e,isH5:!(null===t||void 0===t||!t.isH5),type:"error"}):D({message:U[e.code]||e,isH5:!(null===t||void 0===t||!t.isH5),type:"error"})}function R(e,t){D({message:e,isH5:!(null===t||void 0===t||!t.isH5),type:"success"})}function x(e,t){if(e.length!==t.length)return!1;for(let n=0;n>":"查看详情>>"}}')},6746:function(e,t,n){},"67c9":function(e,t,n){e.exports=n.p+"img/camera-false.c7398c68.svg"},"67f0":function(e,t,n){},"6a25":function(e,t,n){"use strict";n("7c88")},"6b89":function(e,t,n){"use strict";n("6275")},"6ba3":function(e,t,n){"use strict";const o=function(){const e=navigator.userAgent,t=/(?:Windows Phone)/.test(e),n=/(?:SymbianOS)/.test(e)||t,o=/(?:Android)/.test(e),a=/(?:Firefox)/.test(e),i=/(?:iPad|PlayBook)/.test(e)||o&&!/(?:Mobile)/.test(e)||a&&/(?:Tablet)/.test(e),r=/(?:iPhone)/.test(e)&&!i,s=!r&&!o&&!n;return{isTablet:i,isPhone:r,isAndroid:o,isPC:s,isH5:r||o||i}};t["a"]=o},"6c6b":function(e,t,n){},"6d66":function(e,t,n){e.exports=n.p+"img/floatFullScreen.1ff6b95f.svg"},"6e04":function(e,t,n){"use strict";n("d013")},"6ea1":function(e,t,n){"use strict";n("7c63")},"6ebc":function(e,t,n){},"6f51":function(e,t,n){e.exports=n.p+"img/fullScreen.99735b5c.svg"},"703d":function(e,t,n){e.exports=n.p+"img/at.f3555aa3.svg"},"70bb":function(e,t,n){"use strict";n("1f40")},"72af":function(e){e.exports=JSON.parse('{"请对本次服务进行评价":"Please rate this service","提交评价":"Feedback","常用语-快捷回复工具":"Common Expressions - Quick Reply Tool","使用":"Build with","自定义消息":"Custom message","搭建":"","在吗?在吗?在吗?重要的话说三遍。":"Are you there? ","好久没聊天了,快来和我说说话~":"It’s been a long time. How about you?","好的,就这么说定了。":"Okay. It\'s a deal.","感恩的心,感谢有你。":"So grateful! ","糟糕!是心动的感觉!":"Oh, no. Flipped.","心疼地抱抱自己,我太难了!":"Give myself a warm hug. ","没关系,别在意,事情过去就过去了。":"Take it easy.","早上好,今天也是让人期待的一天呢!":"Good morning. Have a wonderful day.","熬夜有什么用,又没人陪你聊天,早点休息吧。":"It\'s better to go to bed early."}')},"736b":function(e,t,n){"use strict";n("7c84")},"738c":function(e,t,n){},7394:function(e,t,n){},"73af":function(e,t,n){"use strict";n("82b8")},7466:function(e,t,n){},"74a8":function(e,t,n){},"750d":function(e,t,n){"use strict";n("f975")},7613:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAYAAADhAJiYAAAACXBIWXMAACE4AAAhOAFFljFgAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAABySURBVHgB7c7RCYAwDIThw8kcwVHcoDM4ipM4giu4QcyLCIK02rQp5T641+QHiIiICCIy6ia0QEOC3AI8PWJ8o15ifKIiMXWjEmPqRH2MKRv1M6ZMVGaMbZRRzGVGLj2yi50t9m9IaFpg49CtICIi6twJIS39bzNKa9EAAAAASUVORK5CYII="},"77d5":function(e,t,n){"use strict";n("632c")},"77ea":function(e,t,n){"use strict";n("35dc")},"7a54":function(e,t,n){"use strict";n("e2f6")},"7af0":function(e,t,n){"use strict";n("afa3")},"7c02":function(e,t,n){"use strict";n("360d")},"7c63":function(e,t,n){},"7c84":function(e,t,n){},"7c88":function(e,t,n){},"7d79":function(e,t,n){},"7d94":function(e,t,n){"use strict";n("57dd")},"7e3a":function(e,t,n){},"7ecd":function(e,t,n){},"80de":function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMAAAADACAMAAABlApw1AAAAnFBMVEUAbv////+82P8Icv/8/f/1+f+Huv8dfv9Glv8TeP8Mdf/w9v9Snf/s9P/S5f/5/P/j7/+gyf99tf8igf+rz//n8f/Y6P/G3//B2/+Ww/91sP83jf/y+P+01P9bof89kf8phf8YfP/e7P+Qv/9Mmf8th//M4v9yrv+31v+v0f+jyv9nqP9ipf+Lvf9sq/+Bt/95s/+Zxf+mzP+cx/8TBOLUAAAF3klEQVR42uza2W7qMBQF0L0bEwghaZinAkWFIiiFiv7/v13pKk6COmCnDz5IXs882Ar2mQzP8zzP8zzP8zzP8zzP8zzP8+QI5sdwelksLtPwOA9wZ1Zhqlih0nCFu9EME34jCZu4B9uB4g/UYAvpoqniL9Q0gmjLmDfES8jV7tJAtw2h+iMaGfUh0nZIQ0ORZ3kV84ssHY/TjF/EAoPCNuYVNdnN2/nRmO8mildicd+gmbFq2ItwJeoNWZUJC2pByop4FuCLYBazIpWVHr2wYr/Gt9Z7VrxAkBZLaocf7RRLLYjRHrKglvjFUrEwlBPQQpaO+NWRpRBCNBssnHDDiYWGlJvowMIZN51ZOECEpqKWwkBKTcn4BCELcxiYCzsFQULtE0Y+qSUSolmnXE4EI1G55Q7cG1CbwdCM2gDOBU/MNSIYihrMPbn/D22odWGsS20D18I6a9kIuocmzDUCGAsazE3gWrGUBSwsim3DsWdqPVjoUXuGW6166X1LTFXwRm0NC01qb3ArZE7BipJyDXWZy2AlK6OHWxfmXmHllbkL3BowN4aVsZRsaP/XDezh1uKvG1jArQNzI1gZSamLX5hLYCWR0qDr/TUO9ODWiVofFvrUTnCrVa802YjJhZrXFbF9Vey8NdSolRN0xdQDeK0VCMZlBuJYGQhiWIilhAHgo05BsKb2Adc6de6TlqDWXKUovseSGECdDslEziUEPDD3GMBQ8MjcA9zrUVvB0IpSMqHr1Zxh6ExNwpuJGm3C8gi4b05fH4J7PALAh21CuhEUxq6HdgfbsewcEpQzmjgw+n0saD7zX9cuMehQSldOa9GqR7IQU40VsnL0bjPYzyDFe723Eu+QYkstaeOGdkJN0MO/lNoON+yopZDjX/t2tpw4DEQBtC/edxMDwRA2kwAZlgmT//+3SWViBEYyNjFBNaXzxOstI9nqbg2QizUqpcXIDUgejoHcQ9VvV0OqOfYUuacZlZg9IZeSTBIduU61yRBdsgnwP6jyOvalGzc7SCLkAosErAC5SLIHcDK7u9CIS1tIOrdbHMNC59ICQCDVFvTPGMwrvx/ISHmRZgVm5FKBOwKzIhlZHphwSiemIRjv7k0BPh9HItOhA8eMAEhUEBUwccxIbY0+aHZqADIOfZ8LcSrKHh+zCJ+k/AotciJcFEm4gzJj8Mm+gzJt8ElXiRBxPJTypP4DsTO70G+SXQIeefral3VRokvy6+GLDpz97JH0WKk3nQy27dGovR1MUtnKuSV8XtlkIP9nUM7NkPN5qTJ5ru9xzVbIGe5RLAO5lcQJkvVKF5zKXsGC7WVoTZ5JNr9inLCLLQTG62xmJJGXXaeLohX3vMkszIkMO5I2HIw8cOjFI6WOM0+va4vuSJs8tAwIrInsGF9im2gNrt7W1ugerPXIgNiciGIcxKzyxXsQP74ihmYIETZTjyMXjgr64+7nMkzNDOWelsQLQBsDYvpq7NLtaesQF3TNGfEDkJUapcHTF7qtZBugXJbalPOAs4lGd92KUKLv0+3MUh1lsvYm4bfzsCTG9d9jiPXGdBuuaUCstx9bVGSZ+GRaVPDy1o9+OIIdQ0BfzH2H+HriQ4zr72MI9KfUtLlo+zNtl8QyfMhIZLoUrIjI1KhJTp+/YJ/dSh38FxJzn/ddcIQJNccJceZxMK080PhA5YZzTgbPp6a4IQrCt4SqWFSeULffDRQNGr3rxkTtIVVj1SkGubseCt6oEWsc8x4cqmpX856M3b9FAicAY2wdqq5Ve7pyUohgNzJZzCymNZsF9VsCfoYjgUXfluFgrlEd46t6AtocR/oNDoXCvH7xd6gGu9tkP3CJ3OrKGmP9imKSAY0VU/dX37V4xpFnqmPWw8GmqZdAfEV0Zk+1JEH5g7/VVijuE3SvfnytewUY4sSQ6lncPYCJb3XnW40HCFr1GDhhtOoJmgtwJyqACqACqAAqgBQBtq07k+eeiqIoiqIoiqIoiqIoiqIoiqL8N/4CmBFTXwX+GcMAAAAASUVORK5CYII="},"81a1":function(e,t,n){},"81cb":function(e,t,n){"use strict";n("573d")},"81f9":function(e,t,n){},"82b8":function(e,t,n){},8522:function(e,t,n){"use strict";n("b28e")},"8599c":function(e,t,n){"use strict";n("e282")},"85d0":function(e,t,n){},8613:function(e,t,n){e.exports=n.p+"img/permit-en.660ee94e.png"},8617:function(e,t,n){"use strict";n("b56c")},8801:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGgAAABoCAMAAAAqwkWTAAAAkFBMVEUAAAD////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////HztfO1N3p7O/K0dnv8fT9/f7R197a3uT7/Pz3+Prk6OzM0tvz9ffV2+H5+vvd4ufg5OknoyjnAAAAHnRSTlMA7bCNHgTo0k5JLBXJx/nf2djGuKN3bGVXPgv14/RLhx5LAAAEBklEQVRo3rTWxxXEIBADUIIDXnDOSf2XuXdnYPgNzJPQAfadnkcpmrTkRcHLtBFynDWj9hsExwUuhh+jEmddggdJl8UUWWSCV4n0zaUMPjKKuZtSWEgn5iarYKnKmL1IwIGIbJfWr3Cy97FVnBzOcotQisMDV19rk/AkP9W3tPDWLuyVNiBg9OsMapCoo5c7G4hsj5d0DTK1ftiBASGz3O66Ban2buUSxCS7pEBOXQ6Ogxy/mF6cI4D8/Ew9guhPxa0IYj+WJxCIOPwP/pSW3Y6CMBCFa4yYVaPGGF1vDqVQ/sH3f7ulhNltYKUz31VDyJxMz/wUTLokt8bYPCnA5Ev5XJkyffxLz5S6Ko9vsEhN7FGn01etU6zgv8L24JDEMxIMlIO6xgp76UxI4zk6AzLrDsz5cGL5YxZCDYCcUvvMiXQO4NAvdBK6zh7rHCRTu1vo5AAal6bNeFN8F8krYQpf6OFgSgSIdoJmzWc6pqSPKbdp7+Bg/zGococ3wtyVIwIHr+YofOMOLRhE/JrDnwaFL2o3HjoQobp7SIUofEsGMXjQghAKpWRQJVgWG7lQRQOpBZONUkfwmBnUjQYV4HJUL7GQLsigBmxe6ikSovBvrkHEU22lQgkZlEPAlv0q8UdpaegG0bDL7iYTsrTrzChRaPC4Bbc4vQi8UdrTDbqa8P5Z3+cXrKOnRe3vOjLINa33zxoXtWEM0wxATaO0pF031oQBkLlUgx17DmcUd9OaaEEGlZia1jrpOJzR+adas+1pEAbieIZumhkTX2jUGEcpBQrj4ft/OwPhvDRmuX+hduxekSzhP9pr73cPolDLENJ0DCP0Uzk7eysJiUtX8s7kLowMvGnyodoJzsBvqXTNMMIQQfEik5xBdG87bokZX3xyYMRq+jYzPljJveUDq+j/MoyQT6S6mz+tEA+sfAXVM/u6MFKmpGka5H5N5Eu10tOLGEZ4gzJS15V4qQJhYpj2gmGEJHU+PWooYLwDgc+otDAOjFSKEjE40n4ioTzX1oWR8je17AoQhZ4gOLGXYOTcgJF2B+HWpSUytUYjbQID5F8YMVmTjtZDAAkhsQsjZ2uMzbOWIRywIwL5DCMkyaYwJD6AaQvDiJuP6cGcIHuFEjGCEZIkK2q8egKkli6M2KwvJpE+88DUwx5KlhlGGLxOXnaHpf+KYt1ioSNW0FAU65YKPXOJRkbINUKPHkWnNUIPQhktmNCHX2EwVymZ383w4lnqZB1XCTusbMl/CSVCOTrU0n3fxyqwR2sZxGqCxGrrxGpURWu9xWomXr89Grbhu40Wdrim/HbGDMIMTmxrFGT1cEuUcZ2vt/02B5CWjlRte0jMd+ztNgb50NHE2xq2DDM++gMth+mh+w6ysAAAAABJRU5ErkJggg=="},8802:function(e,t,n){},8893:function(e){e.exports=JSON.parse('{"请对本次服务进行评价":"Please rate this service","提交评价":"Feedback","服务评价工具":"Service rate tool","使用":"Build with","自定义消息":"Custom message","搭建":"","星":"Star"}')},8961:function(e,t,n){},"899b":function(e,t,n){"use strict";n("b30a")},"8a95":function(e,t,n){"use strict";n("7d79")},"8ab2":function(e,t,n){"use strict";n("b075")},"8d06":function(e,t,n){"use strict";n.d(t,"a",(function(){return h})),n.d(t,"b",(function(){return v}));var o=n("3818"),a=n.n(o),i=n("bc3a"),r=n.n(i),s=n("4328"),l=n.n(s),c=n("48d5");sessionStorage.getItem("tokenF");const{urlF:d,tokenF:u}=c["a"],p=r.a.create({timeout:4e4,baseURL:"",headers:{"Content-Type":"application/json","X-Access-Token":u+"",...m()}});function m(){let e={};return"QH"==(null===c["a"]||void 0===c["a"]?void 0:c["a"].vitePlatform)&&(e={"X-ClientSign":"Quarry"}),e}let b=(d+"").replace("lol","://");const h=(e,t)=>new a.a((n,o)=>{p.get(`${b}${e}${l.a.stringify(t)?"?"+l.a.stringify(t):""}`,t).then(e=>{n(e.data)}).catch(e=>{o(e)})}),v=(e,t)=>new a.a((n,o)=>{p.post(`${b}${e}`,t).then(e=>{n(e.data)}).catch(e=>{o(e)})})},"8fe9":function(e){e.exports=JSON.parse('{"输入groupID搜索":"Enter groupId search","群名称":"Group name","群ID":"Group ID","加入群聊":"Join","解散群聊":"Dissolution","退出群聊":"Quit","群类型":"Group type","请填写验证信息":"Please fill in the verification information","申请加入":"Apply Join","已申请":"Applied"}')},"907b":function(e,t,n){e.exports=n.p+"img/trans.80995c10.svg"},9151:function(e,t,n){"use strict";n("059e")},"92c8":function(e){e.exports=JSON.parse('{"取消":"取消","完成":"完成","已选中":"已选中","人":"人","保存":"保存","请输入userID":"请输入userID","确定":"确定","全选":"全选","已在群聊中":"已在群聊中"}')},9426:function(e,t,n){},9444:function(e,t,n){"use strict";n("ded8")},"944d":function(e,t,n){"use strict";n("63ad")},9471:function(e,t,n){"use strict";n("3231")},"94fc":function(e,t,n){},"95f4":function(e,t,n){},9952:function(e,t,n){},"999c":function(e){e.exports=JSON.parse('{"周":"week(s) ","天":"day(s)","小时":"hour(s) ","分钟":"minute(s)","刚刚":"Just now","前":" ago","昨天":"Yesterday","星期一":"Monday","星期二":"Tuesday","星期三":"Wednesday","星期四":"Thursday","星期五":"Friday","星期六":"Saturday","星期日":"Sunday"}')},"9aba":function(e,t,n){"use strict";n("0034")},"9b52":function(e,t,n){},"9c10":function(e){e.exports=JSON.parse('{"tip":{"群成员":"group members","加入群组":"joined the group","退出群组":"left the group","被":"by","踢出群组":"was kicked out of the group","成为管理员":"was set as an admin","被撤销管理员":"was revoked","被禁言":" was unmuted","被取消禁言":"cancel the prohibition","群提示消息":"group prompt message","管理员":"The admin","开启全员禁言":"enabled Mute All","取消全员禁言":"disabled Mute All","成为新的群主":"became the new group owner","修改群名为":"changed the group name to","发布新公告":"posted a new notice","申请加入群组":"requested to join the group","成功加入群组":"Successfully joined the group","被拒绝":"The request to join the group was refused","你被管理员":"You","群":"group","解散":"disbanded","创建群":"created the group","邀请你加群":"invite you to join the group","你退出群组":"You left the group","你被":"You were","设置为群":"set as group","的管理员":"as an admin","撤销群":"revoked","的管理员身份":"admin role of the group","同意加群":"agreed to join the group","拒接加群":"refused to join the group","自定义群系统通知":"Custom group system notification"},"custom":{"自定义消息":"Custom message","通话时长":"Call duration","结束群聊":"End","切换语音通话":"Switch voice call","切换视频通话":"Switch video call","发起通话":"Start a call","取消通话":"Cancel","已接听":"Answered","拒绝通话":"Decline","无应答":"No answer","对本次服务评价":"Rate this service","查看详情>>":"View details >>"}}')},"9d26":function(e,t,n){},"9d69":function(e,t,n){},"9dea":function(e,t,n){},"9eda":function(e,t,n){"use strict";n("8802")},a090:function(e,t,n){e.exports=n.p+"img/hangup.806dc8a0.svg"},a1b5:function(e,t,n){"use strict";n("60e6")},a243:function(e,t,n){"use strict";n("fa9c")},a2b3:function(e,t,n){},a352:function(e,t,n){},a45b:function(e,t,n){e.exports=n.p+"img/back.edad3f01.svg"},a46a:function(e){e.exports=JSON.parse('{"输入groupID搜索":"输入groupID搜索","群名称":"群名称","群ID":"群ID","加入群聊":"加入群聊","解散群聊":"解散群聊","退出群聊":"退出群聊","群类型":"群类型","请填写验证信息":"请填写验证信息","申请加入":"申请加入","已申请":"已申请"}')},a58a:function(e,t,n){"use strict";n("1e9e")},a6a0:function(e,t,n){"use strict";n("c4d2")},a781:function(e,t,n){e.exports=n.p+"img/floatMicrophoneClosed.52e8d8ca.svg"},a94d:function(e,t,n){"use strict";n("d161")},aa07:function(e,t,n){e.exports=n.p+"img/loading-audio.0ef2b537.svg"},aa66:function(e,t,n){"use strict";n("b97d")},abd7:function(e,t,n){"use strict";n("0bf6")},adb7:function(e,t,n){e.exports=n.p+"img/cancel.55fd3529.svg"},ae10:function(e,t,n){"use strict";n("7466")},ae69:function(e,t,n){"use strict";n("67f0")},aeac:function(e,t,n){"use strict";n("301d")},afa3:function(e,t,n){},afbc:function(e,t,n){"use strict";var o=n("6605"),a=n("fcd0");const i=[{path:"/",name:"Home",component:()=>n.e("about").then(n.bind(null,"bb51"))}],r=Object(o["a"])({history:Object(o["b"])(""),routes:i});r.beforeEach((e,t,n)=>{"Login"===e.name||a["b"].isLogin?n():n({name:"Login"})}),t["a"]=r},b05a:function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));n("14d9");var o=n("65b8"),a=n.n(o),i=n("52da"),r=n.n(i),s=n("17da");function l(e){const t=[];let n=e.text,o=-1,i=-1;while(""!==n)switch(o=a()(n).call(n,"["),i=a()(n).call(n,"]"),o){case 0:if(-1===i)t.push({name:"text",text:n}),n="";else{const e=r()(n).call(n,0,i+1);s["b"][e]?(t.push({name:"img",src:s["d"]+s["b"][e]}),n=n.substring(i+1)):(t.push({name:"text",text:"["}),n=r()(n).call(n,1))}break;case-1:t.push({name:"text",text:n}),n="";break;default:t.push({name:"text",text:r()(n).call(n,0,o)}),n=n.substring(o);break}return t}},b075:function(e,t,n){},b0af:function(e){e.exports=JSON.parse('{"发起会话":"发起会话","发起单聊":"发起单聊","发起群聊":"发起群聊","该用户不存在":"该用户不存在","创建群聊,请注册 TUIGroup 模块":"创建群聊,请注册 TUIGroup 模块","创建成功":"创建成功","发起多人会话(群聊)":"发起多人会话(群聊)","群头像":"群头像","群名称":"群名称","群ID":"群ID","群类型":"群类型","选填":"选填","取消":"取消","创建":"创建","类似普通微信群,创建后仅支持已在群内的好友邀请加群,且无需被邀请方同意或群主神奇。详见":"类似普通微信群,创建后仅支持已在群内的好友邀请加群,且无需被邀请方同意或群主神奇。详见","类似 QQ 群,创建后群主可以指定群管理员,用户搜索群 ID 发起加群申请后,需要群主或管理员审批通过才能入群。详见":"类似 QQ 群,创建后群主可以指定群管理员,用户搜索群 ID 发起加群申请后,需要群主或管理员审批通过才能入群。详见","创建后可以随意进出,且支持查看入群前消息;适合用于音视频会议场景、在线教育场景等与实时音视频产品结合的场景。详见":"创建后可以随意进出,且支持查看入群前消息;适合用于音视频会议场景、在线教育场景等与实时音视频产品结合的场景。详见","创建后可以随意进出,没有群成员数量上限,但不支持历史消息存储;适合与直播产品结合,用于弹幕聊天场景。详见":"创建后可以随意进出,没有群成员数量上限,但不支持历史消息存储;适合与直播产品结合,用于弹幕聊天场景。详见","产品文档":"产品文档","设置群名称":"设置群名称","请输入群名称":"请输入群名称","设置群ID":"设置群ID","请输入群ID":"请输入群ID","选择群类型":"选择群类型"}')},b15c:function(e){e.exports=JSON.parse('{"周":"周","天":"天","小时":"小时","分钟":"分钟","刚刚":"刚刚","前":"前","昨天":"昨天","星期一":"星期一","星期二":"星期二","星期三":"星期三","星期四":"星期四","星期五":"星期五","星期六":"星期六","星期日":"星期日"}')},b23d:function(e,t,n){"use strict";n("dd7e")},b26b:function(e,t,n){"use strict";n("eeae")},b27e:function(e,t,n){"use strict";n("277c")},b28e:function(e,t,n){},b30a:function(e,t,n){},b45f:function(e,t,n){e.exports=n.p+"img/zoom_out_audio.fe420914.svg"},b56c:function(e,t,n){},b5fe:function(e,t,n){},b742:function(e,t,n){"use strict";n("eafc")},b77c:function(e,t,n){"use strict";n("74a8")},b928:function(e,t,n){"use strict";n("b5fe")},b97d:function(e,t,n){},b9ad:function(e,t,n){},baef:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAMAAAD04JH5AAAAw1BMVEUAAAD7WV77WF/7WF77WF/6WV/7WV76WF77WV/7WmD6WWD/XmP/Zmb/gID/gID/XmH6WV/7WF77WF77WF77WV76WF/6WV/7WV/7WV/8WV77WF/7WV/8WWD8WF/8W177Wl/7XGD6WGL/XWf/YGD6WF76WF7////++Pj+8vP9z9H7f4T6Ymj7lJj7jZH7iIz6aW/+/Pz8srT8rrD8mp78ubv6b3T6XGL92tv91db9x8n9vsD8qKv+6+v+5eb+3+H8oqX7dXpC6t/gAAAAJXRSTlMA7cO6idPGqYVCNxwMBgQf2vv58+nfzK+slXx0XktJPj00FRDZDO0oagAAA7VJREFUeNrE1wl2okAUBdDPjBic5zGJeUhEjUYTZ5P9r6pP253uIyoUCFV3Acrnv8OrolgGVsc0FF2rSqWSVNV0xTA71oC4eOipcgVXVWS190BpsjOmXkSgom5mbEqH1ZTARGpalLh86wURvLTylKSnOiKrP1FSHhXEojxSEjIyYpMzdK9sA3dpZOkeuXYZdyq3cxRbX0MCtH7c8VUkRM3F2r6MxMgxktCVkCCpSxGpSJhKUdgGEmfYESpXQQoU5qp+riEVtWfG4isgJYU80/wFpKbwzLD/GlJUC82BrSBVik3BDKTMiPf94fVF6oKDbkD/SOBAutlMORlcyDmuAWCPQR/c9K8uQAM32rUltMFRmy5ky+ConCW/BrhqkE8GnGXonAzOZDrzCO7Ob64KuFPO7v8Q4In+q0OAOv2ThxB5+tGCEC36UYAQL/SXBUEs+qMJQZp0YksQRLLF1IC/EEwIY9JvOoTRT5fBIoQpPhBRDwL1TodxgVQRRxH/saSCGLzvydfydXXcu7Ph0HX3q9ftfDHyEFWFaICIvOlus3euc9fzqYcoBhGLYPS+mjnBZsflCMws6oDV53QzdNi42+knmHTIZJ196zpRuPMPMDDJYBp+cbx404fN/Gsxno6mk8l4t309XK5mPUEog+U8/DZ3fdNtFh9Xwvm+9q/oMEYIJbwJvPn5z7oBGfMW61m0R9BJQyDv/fzvV+OQdL35l3UcIYBGVQQZ+5PnIczG8du+4aYqSbjte+34DBFq6VwYTnCLRCXctLsM9gGhds4VY9xQ+sWcneQwCMNQAEWqEFWXVZfsip2GeaYDEtz/VF11ZzdEVfV5B0DBjpLYDs4+v8KWnDoWmFVbgJ6CnAVPcipYYrUUqJswMyx4kVPKokHbhKFPJDknp4FFHYlC9SCyLEnJKWNRqx1EB5LNSiDdDHsk7xBEPp8xI7n1LFlIFKnXcS3csLakLaqitbeNyTsG8aYI1FOfD6Ryr2IiWaw+yRr+mB9LKoTeaxW2ItlJf5S2htncm6KiH1VlqX/j+uVZPq4D/dtlD4UJvDSDF6fw8hzeoMC3aOBNKnibDt6oxLdqg4Qgkv206+EDC/jIBj+0go/t8INL+OgWP7yGj+/f3dtBCQAgAMDACpawf0VBE/iQGy7Hzg8MfOHwEwvfePzI5FcuPrP5nc8PjX7p9FMr33r92OzXbj+3+73fAwdPPALIxTMfD5089QpgN8/9AuAxQD4D6PWw3zEvGpv9fgWfC/Q7gN9f8P8FGlRGjHL2An8AAAAASUVORK5CYII="},bbb6:function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return a}));var o=n("e311");const a=604800;function i(e){const{SDKAppID:t,secretKey:n,userID:i}=e,r=new o["a"](t,n,a),s=r.genTestUserSig(i);return{SDKAppID:t,userSig:s}}},bc82:function(e){e.exports=JSON.parse('{"资料设置":"Edit profile","头像":"Profile photo","昵称":"Name","账号":"Account","个性签名":"Status","性别":"Gender","男":"Male","女":"Female","不显示":"Rather not say","出生年月":"Birthday","取消":"Cancel","保存":"Save","请选择出生日期":"Select the date of birthday","选择头像":"Select Avatar","设置昵称":"Setting Name","仅限中文、字母、数字和下划线,2-20个字":"Chinese, letters, numbers and underscores only, 2-20 words","请输入昵称":"Enter Name","性别选择":"Select gender","请输入内容":"Enter content","用户ID":"userID","暂未设置":"Not set yet"}')},bccb:function(e,t,n){},bddc:function(e,t,n){},bddd:function(e,t,n){"use strict";n("f068")},bfcd:function(e,t,n){},c07e:function(e,t,n){e.exports=n.p+"img/minimize.cb673f80.svg"},c0a5:function(e,t,n){},c0e7:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAMAAAC5zwKfAAAAsVBMVEUAAAD///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////+3mHKcAAAAOnRSTlMAChshaFgmE25ORA9eSRa/sTLNloBjBlM/07qFKok2m3c786wukeTf3Kh07PCNe8fDtZ/o16Kl9/nJwyGDfwAABBtJREFUWMOs0cuKBSEMRVEfkEJFwUnKgQiC//+NHbvUWz1rbrKdLw5G/SNUUqGeIUppgZqiCKgvijwhUKeUCNwL+ZwxWxT4RCTuAwb2Qm2sXeIBOeJlqc9ENmhgg2aBgQOiBYA/E3ln1rYu0C6QdxUE8mZHvKjw/ZFh1Ed8TQyMe0CuswnCErViZPKghe+NQXG6MoGHJC8pVnq8QRKD4gU950NCtZrpXa3l3x7RItPD3NtDjhkobqaQt8lckQ3m3vshhxYY2GcP2JJil33pm+zA964y68vUfBB8OWQxfA+L95ssDflgIu+QVvGr0e9KRwGwRR+3OQS84CP1kDEJgMnFU9ECoD2gd00JNFx01BRdlQD77U5WAvTuUxIBaeG9XpAA3X1yWgK8XyB+aehXP53YbZdyQBjA8SFKYpWHNmRZ5aEQ6dn3/2D3NQy6262Nf6/qnH7nmplOEoBs8+gJTg5u7JIi9Mk2ffZcMn0pmiI0Ztt6HsrSvdYVIRJrTWBZuh/IX6DSuxQy4gWMVQ37gczVvZCKPfoSgKvSvvqBSYHPBKNu4aGhJtQxYj9wD2BVXDCIBlDDD6jfqQzDSxzHBBTRiAWMxAz6gONrFOPAu4RLhESm5jSO7wPmlwOIuKgw4Pk3U3E4jeru0UFUhUELf2UzgJG4Hue8dQ9RTbpjfKEXGo7hhM4jftwi/wCV4LE81QVXcxy37TwiF/sAluThmlSbgDXSlhl18wZHHyJkvEBlLNeKzrgbqESBT0jflciGrbnK2+J2sy6e4IdBQEg/1lDVXGg9x9nS73szPQCQkFFKNa87NQftuLe3kZaCYxgSMoAB6yhhyzXeTmUm73kf00AHkIgH6e5tQ6fiwIPM946anob68QhiRfoiumu8A7DyVFW13tnHtRHKei0GYaSg+0Yc4cDDovr9l8emR/BALMljIA8eLjS71jNN00qEl8umLV2GWtEfo4d41Wk9ED2Tf3o2I0HSb7c7UT/s0GNzVgWvHhBKFFWc/M6t5DRLQdQBxKLunyj0I0ozd/V8wEGKnWizj8fbOHWfplKWYrCeMZj+uj8TziTzlaAHKfkpcVh+SY8oakSvRcbaZJkkSVmGRbmaUQ4M+skHFcRqvgpUcPl5cz5B581qupckY28YpZg2M4bGED1pwlgqWXAN2rad56BtVqspDrwSrMTSW9HoaZSWlAOWntd4FbjC3v8gzBjaI/SiuWiRHXwOtuItlfUthV63Vj0C3q24Be9HzFJd4tGfjQTPs5LW+x3EoiybNHqntaMo9ytuwHbNUCpvFujNqIWq2C9AENPbhqU63ZU7dg7cTxACLrM7/36eL9nEPp3z5pSJaEiZtOL6/TVBzVjHA6sMczCbcbaYb9B6R894wbE8+7zJFU9lxl8D9Lp/VcLH/2j8UuYAAAAASUVORK5CYII="},c164:function(e,t,n){e.exports=n.p+"img/permit-zh.e38e3517.png"},c193:function(e,t,n){"use strict";n.d(t,"d",(function(){return s})),n.d(t,"e",(function(){return l["a"]})),n.d(t,"b",(function(){return c["a"]})),n.d(t,"a",(function(){return v})),n.d(t,"c",(function(){return E}));const o={theme:"dark"};function a(e){e.setCommonStore(o)}function i(e){console.log("app",e)}const r={name:"TUITheme",plugin:a,install:i};var s=r,l=n("c7e2"),c=n("6ba3"),d=n("2b0b"),u=n.n(d),p=n("14b1"),m=n.n(p);const b=[{name:"TUILongPress",callback:(e,t,n)=>{if("function"!==typeof t.value){const e=n.context.name;let o=`[longpress:] provided expression '${t.expression}' is not afunction, but has to be `;e&&(o+=`Found in component '${e}' `),console.warn(o)}let o=null;const a=e=>{"click"===e.type&&0!==e.button||null===o&&(o=u()(()=>{r(e)},1e3))},i=e=>{null!==o&&(clearTimeout(o),o=null)},r=e=>{t.value(e)};e.addEventListener("mousedown",a,!1),e.addEventListener("touchstart",a,!1),e.addEventListener("click",i),e.addEventListener("mouseout",i),e.addEventListener("touchend",i),e.addEventListener("touchcancel",i)}}],h=e=>{m()(b).call(b,t=>{e.directive(t.name,{beforeMount:t.callback})})};var v=h,f=n("2fa7"),g=n("3818"),O=n.n(g),j=n("259d"),y=n("ea1b"),I=n.n(y);class C{constructor(e){Object(f["a"])(this,"allowNotifications",!0),Object(f["a"])(this,"showPreviews",!0),Object(f["a"])(this,"notificationTitle","腾讯云 IM "),Object(f["a"])(this,"notificationIcon","https://web.sdk.qcloud.com/im/demo/latest/faviconnew.png"),e&&(void 0!==(null===e||void 0===e?void 0:e.allowNotifications)&&(this.allowNotifications=e.allowNotifications),void 0!==(null===e||void 0===e?void 0:e.showPreviews)&&(this.showPreviews=e.showPreviews),void 0!==(null===e||void 0===e?void 0:e.notificationTitle)&&(this.notificationTitle=e.notificationTitle),void 0!==(null===e||void 0===e?void 0:e.notificationIcon)&&(this.notificationIcon=e.notificationIcon))}static getInstance(e){return C.instance||(C.instance=new C(e)),C.instance}static plugin(e,t){e.config.notification=this.getInstance(t),this.TUICore=e}static install(e){e.use(this.getInstance())}setNotificationConfiguration(e){e&&(void 0!==(null===e||void 0===e?void 0:e.allowNotifications)&&(this.allowNotifications=e.allowNotifications),void 0!==(null===e||void 0===e?void 0:e.showPreviews)&&(this.showPreviews=e.showPreviews),void 0!==(null===e||void 0===e?void 0:e.notificationTitle)&&(this.notificationTitle=e.notificationTitle),void 0!==(null===e||void 0===e?void 0:e.notificationIcon)&&(this.notificationIcon=e.notificationIcon))}async notify(e){this.allowNotifications&&this.checkNotificationAbility()&&await this.requestNotificationPermission()&&await this.handleNotification(e)}checkNotificationAbility(){return"Notification"in window&&"denied"!==window.Notification.permission}requestNotificationPermission(){return new O.a((e,t)=>{var n;null!==(n=window)&&void 0!==n&&n.Notification||t(!1),"granted"===window.Notification.permission&&e(!0),window.Notification.requestPermission().then(t=>{"granted"===t&&e(!0)}).catch(()=>{t(!1)})})}async handleNotification(e){var t;if(!this._isMessageNeedNotification(e))return;const n=this._handleNotificationType(e);let o,a={badge:this.notificationIcon,icon:this.notificationIcon,body:"",requireInteraction:!1};switch(n){case"call":if(o=this._handleCallNotificationContent(e),null===(t=o)||void 0===t||!t.content)return;a.body=o.content,a.requireInteraction=!o.callEnd;break;case"chat":a.body=await this._handleChatNotificationContent(e),a.requireInteraction=!1;break}const i=new Notification(this.notificationTitle,a);i.onclick=()=>{var t;if(window.focus(),!e||null===e||void 0===e||!e.conversationID)return;const n=null===C||void 0===C||null===(t=C.TUICore)||void 0===t||null===(t=t.TUIServer)||void 0===t?void 0:t.TUIConversation;(null===e||void 0===e?void 0:e.conversationType)!==I.a.TYPES.CONV_C2C&&(null===e||void 0===e?void 0:e.conversationType)!==I.a.TYPES.CONV_GROUP||null===n||void 0===n||n.getConversationProfile(null===e||void 0===e?void 0:e.conversationID).then(e=>{var t,o;(null===e||void 0===e||null===(t=e.data)||void 0===t?void 0:t.conversation)&&n.handleCurrentConversation(null===e||void 0===e||null===(o=e.data)||void 0===o?void 0:o.conversation)}),i.close()}}_isMessageNeedNotification(e){var t;if(!e||null===e||void 0===e||!e.ID||null===e||void 0===e||!e.type||null!==e&&void 0!==e&&e.isRevoked||null!==e&&void 0!==e&&e.isDeleted||j["v"]&&Object(j["v"])(e))return!1;if((null===e||void 0===e?void 0:e.type)===I.a.TYPES.MSG_GRP_TIP||(null===e||void 0===e?void 0:e.type)===I.a.TYPES.MSG_GRP_SYS_NOTICE)return!1;const n=null===C||void 0===C||null===(t=C.TUICore)||void 0===t||null===(t=t.TUIServer)||void 0===t||null===(t=t.TUIConversation)||void 0===t||null===(t=t.currentStore)||void 0===t?void 0:t.currentConversationID;return!this.checkPageFocus()||(null===e||void 0===e?void 0:e.conversationID)!==n}_handleNotificationType(e){if(e.type===I.a.TYPES.MSG_CUSTOM){var t;const n=Object(j["a"])(null===e||void 0===e||null===(t=e.payload)||void 0===t?void 0:t.data);if(1===(null===n||void 0===n?void 0:n.businessID)||"av_call"===(null===n||void 0===n?void 0:n.businessID))return"call"}return"chat"}async _handleChatNotificationContent(e){var t;let n="";if(!e||null===e||void 0===e||!e.ID||null===e||void 0===e||!e.type)return n;switch(this.showPreviews){case!0:n=await this._handleChatNotificationContentTitle(e),n+=this._handleChatNotificationContentText(e);break;case!1:n="您有"+await(null===C||void 0===C||null===(t=C.TUICore)||void 0===t||null===(t=t.tim)||void 0===t?void 0:t.getTotalUnreadMessageCount())+"条新消息";break;default:break}return n}async _handleChatNotificationContentTitle(e){var t;let n="";switch(null===e||void 0===e?void 0:e.conversationType){case I.a.TYPES.CONV_C2C:n=((null===e||void 0===e?void 0:e.nick)||(null===e||void 0===e?void 0:e.from))+": ";break;case I.a.TYPES.CONV_GROUP:n=(null===e||void 0===e?void 0:e.conversationID)+": ",await(null===C||void 0===C||null===(t=C.TUICore)||void 0===t||null===(t=t.tim)||void 0===t||null===(t=t.getConversationProfile(null===e||void 0===e?void 0:e.conversationID))||void 0===t?void 0:t.then(t=>{var o;n=((null===t||void 0===t||null===(o=t.data)||void 0===o||null===(o=o.conversation)||void 0===o||null===(o=o.groupProfile)||void 0===o?void 0:o.name)||(null===e||void 0===e?void 0:e.conversationID))+": "}).catch(()=>{n=(null===e||void 0===e?void 0:e.conversationID)+": "}));break;case I.a.TYPES.CONV_SYSTEM:n="系统消息: ";break;default:break}return n}_handleChatNotificationContentText(e){var t;let n="";switch(e.type){case I.a.TYPES.MSG_TEXT:n+=null===e||void 0===e||null===(t=e.payload)||void 0===t?void 0:t.text;break;case I.a.TYPES.MSG_CUSTOM:n+="[自定义消息]";break;case I.a.TYPES.MSG_IMAGE:n+="[图片]";break;case I.a.TYPES.MSG_AUDIO:n+="[语音]";break;case I.a.TYPES.MSG_VIDEO:n+="[视频]";break;case I.a.TYPES.MSG_FILE:n+="[文件]";break;case I.a.TYPES.MSG_FACE:n+="[表情]";break;case I.a.TYPES.MSG_MERGER:n+="[聊天记录]";break;case I.a.TYPES.MSG_LOCATION:n+="[位置]";break;default:break}return n}_handleCallNotificationContent(e){let t="",n=!1;try{if(e.type===I.a.TYPES.MSG_CUSTOM){var o;const a=Object(j["a"])(null===e||void 0===e||null===(o=e.payload)||void 0===o?void 0:o.data),i=Object(j["a"])(a.data);1===(null===a||void 0===a?void 0:a.businessID)&&(1===a.actionType&&(a.groupID&&a.timeout>0||!a.call_end&&0!==a.call_end&&!a.groupID&&(null===i||void 0===i||!i.data||"switchToAudio"!==(null===i||void 0===i?void 0:i.data.cmd)&&"switchToVideo"!==(null===i||void 0===i?void 0:i.data.cmd)))?(t=this.showPreviews?a.inviter+" 发起通话":"您有一个通话请求",n=!1):2===a.actionType&&(t=this.showPreviews?a.inviter+" 取消通话":"通话取消",n=!0))}}catch(a){console.warn(a)}return{content:t,callEnd:n}}checkPageFocus(){return document.hasFocus()}}Object(f["a"])(C,"TUICore",void 0),Object(f["a"])(C,"instance",void 0);var E=C},c1b0:function(e,t,n){},c20b:function(e,t,n){},c45c:function(e,t,n){},c4d2:function(e,t,n){},c548:function(e,t,n){"use strict";n("faef")},c7e2:function(e,t,n){"use strict";n.d(t,"b",(function(){return U}));var o=n("2fa7"),a=n("9ca6"),i=n("37a4"),r=n("292f"),s=n("8fe9"),l=n("bc82"),c=n("336d"),d=n("e32f"),u=n("9c10"),p=n("f017"),m=n("999c"),b=n("72af"),h=n("8893");const v={en:{"取消":"Cancel","发送":"Send","系统通知":"System notification","关闭":"Close","确定":"Save",TUIChat:i,TUIConversation:r,TUIGroup:s,TUIProfile:l,TUIContact:c,message:u,component:p,time:m,Evaluate:h,Words:b,TUISearch:d}};var f=v,g=n("45e3"),O=n("4189"),j=n("a46a"),y=n("5ce0"),I=n("d39e"),C=n("b0af"),E=n("6609"),k=n("92c8"),w=n("b15c"),_=n("524e"),S=n("403c");const T={zh_cn:{"取消":"取消","发送":"发送","系统通知":"系统通知","关闭":"关闭","确定":"确定",TUIChat:g,TUIConversation:O,TUIGroup:j,TUIProfile:y,TUIContact:I,message:E,component:k,time:w,Evaluate:S,Words:_,TUISearch:C}};var L=T;const A={...f,...L};var D=A;class N{constructor(e){Object(o["a"])(this,"messages",{en:{},zh_cn:{}}),Object(o["a"])(this,"i18n",void 0),this.messages=e}static getInstance(){return N.instance||(N.instance=new N(D)),N.instance}provideMessage(e){return this.messages.en={...this.messages.en,...e.en},this.messages.zh_cn={...this.messages.zh_cn,...e.zh_cn},this.messages}useI18n(){return Object(a["b"])()}static install(e){const t=N.getInstance(),n="zh";t.i18n=Object(a["a"])({legacy:!1,globalInjection:!0,global:!0,locale:"zh"===n?"zh_cn":n,fallbackLocale:"zh_cn",messages:t.messages}),e.use(t.i18n)}static plugin(e){e.config.i18n=N.getInstance()}}function U(){return N.getInstance().i18n.global.locale}Object(o["a"])(N,"instance",void 0);t["a"]=N},c885:function(e,t,n){},c8e9:function(e,t,n){"use strict";n("9952")},c959:function(e,t,n){"use strict";var o=n("ea1b"),a=n.n(o);t["a"]=a.a},ca51:function(e,t,n){e.exports=n.p+"img/zoom_out_video.7dd03c75.svg"},cb3b:function(e,t,n){},cb87:function(e,t,n){"use strict";n("95f4")},cb8a:function(e,t,n){"use strict";n("9dea")},ccb2:function(e,t,n){e.exports=n.p+"img/acceptAudio.6ec3ac77.svg"},cd49:function(e,t,n){"use strict";n.r(t),n.d(t,"sdkAppId",(function(){return Cd})),n.d(t,"urlF",(function(){return yd})),n.d(t,"tokenF",(function(){return Id}));n("14d9");var o=n("5b1a"),a=n.n(o),i=n("7a23");const r={class:"app"};function s(e,t){const n=Object(i["resolveComponent"])("router-view");return Object(i["openBlock"])(),Object(i["createElementBlock"])("div",r,[Object(i["createVNode"])(n)])}n("ce48");var l=n("6b0d"),c=n.n(l);const d={},u=c()(d,[["render",s]]);var p=u,m=n("afbc"),b=n("0613"),h=n("3ef4"),v=n("1f77");n("7437");const f=n("0149"),g=n("f712"),O={en:{"当前语言":"English","即时通信":"IM","即时通信IM":"IM","社交娱乐":"Entertaining & Socializing","腾讯云":"Tencent Cloud","使用指引":"User Guide",Login:f,Home:g}};var j=O;const y=n("e68c"),I=n("54ba"),C={zh_cn:{"当前语言":"简体中文","即时通信":"即时通信","即时通信IM":"即时通信IM","社交娱乐":"社交娱乐","腾讯云":"腾讯云","使用指引":"使用指引",Login:y,Home:I}};var E=C;const k={...j,...E};var w,_,S,T,L,A,D,N=k,U=n("fcd0"),B=n("2fa7"),M=n("14b1"),V=n.n(M),R=n("9a73"),x=n.n(R),P=n("493c"),G=n.n(P),F=n("65b8"),H=n.n(F),z=n("fa81"),K=n.n(z),Y=n("e4f0"),W=n.n(Y),$=n("fc56"),q=n.n($),Q=n("4573"),X=n.n(Q),Z=n("e76e"),J=n.n(Z),ee=n("298b"),te=n.n(ee),ne=n("3818"),oe=n.n(ne),ae=n("78b2"),ie=n.n(ae),re=(n("d9e2"),n("9ab4"));(function(e){e["CALL"]="call",e["CUSTOM"]="custom"})(w||(w={})),function(e){e[e["UNKNOWN"]=0]="UNKNOWN",e[e["AUDIO"]=1]="AUDIO",e[e["VIDEO"]=2]="VIDEO"}(_||(_={})),function(e){e["UNKNOWN"]="unknown",e["CALLEE"]="callee",e["CALLER"]="caller"}(S||(S={})),function(e){e["IDLE"]="idle",e["CALLING"]="calling",e["CONNECTED"]="connected"}(T||(T={})),function(e){e["CONTAIN"]="contain",e["COVER"]="cover",e["FILL"]="fill"}(L||(L={})),function(e){e["RESOLUTION_480P"]="480p",e["RESOLUTION_720P"]="720p",e["RESOLUTION_1080P"]="1080p"}(A||(A={})),function(e){e["EN"]="en",e["ZH-CN"]="zh-cn",e["JA_JP"]="ja_JP"}(D||(D={}));const se={IDLE:"idle",BE_INVITED:"be-invited",DIALING_C2C:"dialing-c2c",DIALING_GROUP:"dialing-group",CALLING_C2C_AUDIO:"calling-c2c-audio",CALLING_C2C_VIDEO:"calling-c2c-video",CALLING_GROUP_AUDIO:"calling-group-audio",CALLING_GROUP_VIDEO:"calling-group-video"};var le,ce,de;(function(e){e["EAR"]="ear",e["SPEAKER"]="speaker"})(le||(le={})),function(e){e["MICROPHONE"]="microphone",e["CAMERA"]="camera",e["SPEAKER"]="speaker"}(ce||(ce={})),function(e){e[e["FRONT"]=0]="FRONT",e[e["BACK"]=1]="BACK"}(de||(de={}));const ue={SWITCH_TO_AUDIO_CALL_FAILED:60001,SWITCH_TO_VIDEO_CALL_FAILED:60002,MICROPHONE_UNAVAILABLE:60003,CAMERA_UNAVAILABLE:60004,BAN_DEVICE:60005,NOT_SUPPORTED_WEBRTC:60006,ERROR_BLACKLIST:20007},pe={SWITCH_TO_AUDIO_CALL_FAILED:"switchToAudioCall-call-failed",SWITCH_TO_VIDEO_CALL_FAILED:"switchToVideoCall-call-failed",MICROPHONE_UNAVAILABLE:"microphone-unavailable",CAMERA_UNAVAILABLE:"camera-unavailable",BAN_DEVICE:"ban-device",NOT_SUPPORTED_WEBRTC:"not-supported-webrtc",ERROR_BLACKLIST:"blacklist-user-tips"};var me;(function(e){e[e["NORMAL"]=0]="NORMAL",e[e["RELEASE"]=1]="RELEASE",e[e["WARNING"]=2]="WARNING",e[e["ERROR"]=3]="ERROR",e[e["NONE"]=4]="NONE"})(me||(me={}));const be={CALL_STATUS:"callStatus",CALL_ROLE:"callRole",CALL_MEDIA_TYPE:"callMediaType",LOCAL_USER_INFO:"localUserInfo",LOCAL_USER_INFO_EXCLUDE_VOLUMN:"localUserInfoExcludeVolume",REMOTE_USER_INFO_LIST:"remoteUserInfoList",REMOTE_USER_INFO_EXCLUDE_VOLUMN_LIST:"remoteUserInfoExcludeVolumeList",CALLER_USER_INFO:"callerUserInfo",IS_GROUP:"isGroup",CALL_DURATION:"callDuration",CALL_TIPS:"callTips",TOAST_INFO:"toastInfo",IS_MINIMIZED:"isMinimized",ENABLE_FLOAT_WINDOW:"enableFloatWindow",BIG_SCREEN_USER_ID:"bigScreenUserId",LANGUAGE:"language",IS_CLICKABLE:"isClickable",DISPLAY_MODE:"displayMode",VIDEO_RESOLUTION:"videoResolution",PUSHER:"pusher",PLAYER:"player",IS_EAR_PHONE:"isEarPhone",SHOW_PERMISSION_TIP:"SHOW_PERMISSION_TIP",GROUP_ID:"groupID",ROOM_ID:"roomID",SHOW_SELECT_USER:"showSelectUser"},he={PREFIX:"【CallService】",AUDIO:"audio",VIDEO:"video",LOCAL_VIDEO:"localVideo",ERROR:"error",TIMEOUT:"timeout",RAF:"raf",INTERVAL:"interval",DEFAULT:"default",BOOLEAN:"boolean",STRING:"string",NUMBER:"number",OBJECT:"object",ARRAY:"array",FUNCTION:"function",UNDEFINED:"undefined",ALL:"all",MYSELF:"myself",DEVICE_LIST:"deviceList",CAMERA_POSITION:"cameraPosition",...be},ve=2147483647;var fe,ge;(function(e){e["MAC"]="mac",e["WIN"]="win"})(fe||(fe={})),function(e){e[e["TUI_CALL_KIT"]=14]="TUI_CALL_KIT",e[e["TIM_CALL_KIT"]=15]="TIM_CALL_KIT"}(ge||(ge={}));var Oe=n("3653");const je={hangup:"Hang up",reject:"Decline",accept:"Accept",camera:"Camera",microphone:"Microphone",speaker:"speaker","open camera":"Open Camera","close camera":"Close Camera","open microphone":"Open Microphone","close microphone":"Close Microphone","video-to-audio":"Switch to audio","other side reject call":"other side reject call","reject call":"Reject Call",cancel:"Cancel Call","other side line busy":"other side line busy","in busy":"in busy","call timeout":"call timeout","no response from the other side":"no response from the other side","end call":"end call","caller calling message":"Awaiting response","callee calling video message":"invites you to a video call","callee calling audio message":"invites you to a voice call","no microphone access":"no microphone access","no camera access":"no camera access","invite member":"Invite Member","Invited group call":"invites you to a group call",waiting:"Calling...",me:"(me)","browser-authorization":"Browser authorization","mac-privacy":"System Preferences -> Security and Privacy -> Privacy","win-privacy":"Setting -> Privacy and Security -> App permissions","mac-preferences":"Open System Preferences","win-preferences":"Open Setting","Please enter userID":"Please enter userID","View more":"View more","people selected":"people selected","Select all":"Select all",Cancel:"Cancel",Done:"Done","camera enabled":"Camera On","camera disabled":"Camera Off","microphone enabled":"Unmuted","microphone disabled":"Muted","speaker phone":"Speaker","ear piece":"Earpiece","wait to be called":"Waiting",answered:"Connected","people in the call":" other(s) in the call","failed to obtain speakers":"failed to obtain speakers","you have a new call":"You have a new call","Those involved":"Those involved in the call are",call:"call","video-call":"video call","audio-call":"audio call",search:"search","search-result":"search result","no-user":"user not found","member-not-added":"member not added","input-phone-userID":"phone number or userID","not-login":"not logged in","login-status-expire":"login status is invalid, please refresh the page and try again","experience-multi-call":"experience multi-person calls, please download the full-featured demo: ","not-support-multi-call":"multi-person call interface is not open",userID:"userID","already-enter":"entered the call","camera-opened":"Camera on","camera-closed":"Camera off","microphone-opened":"Mic on","microphone-closed":"Mic off",timeout:"timeout","kick out":"kick out","image-resolution":"Resolution","default-image-resolution":"Default","invited-person":"Invite","be-rejected":"Call declined, ","be-no-response":"No response, ","be-line-busy":"Line busy, ","be-canceled":"The call is canceled, ","voice-call-end":"Voice call ended","video-call-end":"Video call ended","method-call-failed":"Failed to sync the operation","failed-to-obtain-permission":"Failed to obtain permissions","environment-detection-failed":"Failed to check the environment","switchToAudioCall-call-failed":"switch to audio call method failed","switchToVideoCall-call-failed":"switch to video call method failed","microphone-unavailable":"No mic found","camera-unavailable":"No camera found","ban-device":"Device access denied","not-supported-webrtc":"Your current environment does not support WebRTC","blacklist-user-tips":"The identifier is in blacklist. Failed to send this message!","is-already-calling":"TUICallKit is already on a call","need-init":"Before initiating a call with TUICallKit, ensure that the TUICallKitServer.init() method has executed successfully. ","can't call yourself":"Can't call yourself","Use-phone-and-computer":"Use your mobile phone and computer to experience video calls","Wechat scan right QR code":"Wechat scan right QR code","Scan the QR code above":"Scan the QR code above","accept-error":"Accept failed","accept-device-error":"Accept failed, unable to auth calling device","call-error":"Start call failed"},ye={hangup:"挂断",reject:"拒绝",accept:"接受",camera:"摄像头",microphone:"麦克风",speaker:"扬声器","open camera":"打开摄像头","close camera":"关闭摄像头","open microphone":"打开麦克风","close microphone":"关闭麦克风","video-to-audio":"转语音通话","other side reject call":"对方已拒绝","reject call":"拒绝通话",cancel:"取消通话","other side line busy":"对方忙线","in busy":"正在忙","call timeout":"呼叫超时","end call":"结束通话","caller calling message":"等待对方接受邀请","callee calling video message":"邀请你视频通话","callee calling audio message":"邀请你语音通话","no microphone access":"没有麦克风权限","no camera access":"没有摄像头权限","invite member":"邀请成员","Invited group call":"邀请你加入多人通话","Those involved":"参与通话的有:",waiting:"等待接听...",me:"(我)","browser-authorization":"浏览器授权","mac-privacy":"系统偏好设置 -> 安全与隐私 -> 隐私","win-privacy":"设置 -> 隐私和安全性 -> 应用权限","mac-preferences":"打开系统偏好设置","win-preferences":"打开系统设置","Please enter userID":"请输入 userID","View more":"查看更多","people selected":"人已选中","Select all":"全选",Cancel:"取消",Done:"完成","camera enabled":"摄像头已开","camera disabled":"摄像头已关","microphone enabled":"麦克风已开","microphone disabled":"麦克风已关","speaker phone":"扬声器已开","ear piece":"扬声器已关","wait to be called":"等待接听",answered:"已接通","people in the call":"人参与通话","failed to obtain speakers":"无法获取扬声器","you have a new call":"您有一个新的通话",timeout:"超时","kick out":"被踢",call:"通话","video-call":"视频通话","audio-call":"音频通话",search:"搜索","search-result":"搜索结果","Wechat scan right QR code":"微信扫右二维码","Use-phone-and-computer":"用手机与电脑互打体验视频通话","Scan the QR code above":"扫描上方二维码","no-user":"未搜索到用户","member-not-added":"未添加成员","not-login":"未登录","login-status-expire":"登录状态已失效,请刷新网页重试","experience-multi-call":"体验多人通话请下载全功能demo:","not-support-multi-call":"多人通话接口未开放","input-phone-userID":"请输入手机号/用户ID",userID:"用户ID","already-enter":"已经进入当前通话","image-resolution":"分辨率","default-image-resolution":"默认分辨率","invited-person":"添加成员","be-rejected":"对方已拒绝,","be-no-response":"对方无应答,","be-line-busy":"对方忙线中,","be-canceled":"对方已取消","voice-call-end":"语音通话结束","video-call-end":"视频通话结束","method-call-failed":"同步操作失败","failed-to-obtain-permission":"权限获取失败","environment-detection-failed":"环境检测失败","switchToAudioCall-call-failed":"切语音调用失败","switchToVideoCall-call-failed":"切视频调用失败","microphone-unavailable":"没有可用的麦克风设备","camera-unavailable":"没有可用的摄像头设备","ban-device":"用户禁止使用设备","not-supported-webrtc":"当前环境不支持 WebRTC","blacklist-user-tips":"发起通话失败,被对方拉入黑名单,禁止发起!","is-already-calling":"TUICallKit 已在通话状态","need-init":"TUICallKit 发起通话前需保证 TUICallKitServer.init() 方法执行成功","can't call yourself":"不能呼叫自己","accept-error":"接通失败","accept-device-error":"接通失败,通话设备获取失败","call-error":"发起通话失败"},Ie={hangup:"通話終了",reject:"拒否",accept:"応答",camera:"カメラ",microphone:"マイク",speaker:"スピーカー","other side reject call":"通話が拒否されました","reject call":"通話拒否",cancel:"通話をキャンセル","other side line busy":"相手が通話中です","in busy":"通話中","call timeout":"呼び出しタイムアウト","end call":"通話終了","caller calling message":"応答を待っています","callee calling video message":"ビデオ通話に招待されました","callee calling audio message":"音声通話に招待されました","no microphone access":"マイクにアクセスできません","no camera access":"カメラにアクセスできません","invite member":"メンバーを招待する","browser-authorization":"ブラウザ認証","mac-privacy":"システム環境設定 -> セキュリティとプライバシー ->プライバシー","win-privacy":"設定 -> セキュリティとプライバシー ->アプリのアクセス許可","mac-preferences":"システム環境設定を開く","win-preferences":"システム設定を開く","Please enter userID":"ユーザーIDを入力してください","View more":"もっと見る","people selected":"人が選択されました","Select all":"すべて選択",Cancel:"キャンセル",Done:"完了","open camera":"オープンカメラ","close camera":"カメラを閉じる","open microphone":"オープンマイク","close microphone":"マイクを閉じる","camera enabled":"カメラオン","camera disabled":"カメラオフ","microphone enabled":"マイクオン","microphone disabled":"マイクオフ","speaker phone":"スピーカーオン","wait to be called":"待機中",answered:"接続済み","people in the call":"通話に参加している人たち","failed to obtain speakers":"スピーカーが見つかりません","you have a new call":"新しい通話があります",timeout:"タイムアウト","kick out":"キックアウトされました","Invited group call":"グループ通話に招待されました。","Those involved":"参加者:",call:"通話","video-call":"ビデオ通話","audio-call":"音声通話",search:"検索","search-result":"検索結果","Wechat scan right QR code":"WeChatで右側にあるQRコードを読み取ります。","Use-phone-and-computer":"携帯電話とコンピュータを使用してビデオ通話を体験してください","Scan the QR code above":"上のQRコードを読み取ります。","no-user":"ユーザーが見つかりませんでした","member-not-added":"メンバーが追加されていません","not-login":"ログインしていません","login-status-expire":"ログインの有効期限が過ぎています。ページを更新してもう一度お試しください","experience-multi-call":"複数人で同時に音声通話できるグループ通話機能を体験するには、全機能のデモをダウンロードしてください","not-support-multi-call":"グループ通話インターフェイスが開いていません","input-phone-userID":"携帯電話番号/ユーザーIDを入力してください",userID:"ユーザーID","already-enter":"すでに通話に参加しています",waiting:"応答を待っています...","camera-opened":"カメラがオンになっています","camera-closed":"カメラがオフになっています","microphone-opened":"マイクがオンになっています","microphone-closed":"マイクがオフになっています","image-resolution":"解像度","default-image-resolution":"デフォルト解像度","invited-person":"メンバーを招待","video-to-audio":"音声通話に切り替えます",me:"(自分)","be-rejected":"通話が拒否されました, ","be-no-response":"応答なし, ","be-line-busy":"相手が通話中です, ","be-canceled":"相手が通話をキャンセルしました","voice-call-end":"音声通話が終了しました","video-call-end":"ビデオ通話が終了しました","method-call-failed":"操作の同期に失敗しました","failed-to-obtain-permission":"権限の取得に失敗しました","environment-detection-failed":"環境の検出に失敗しました","switchToAudioCall-call-failed":"音声通話に切り替えることはできません","switchToVideoCall-call-failed":"ビデオ通話に切り替えることはできません","microphone-unavailable":"使用できるマイクがありません","camera-unavailable":"使用できるカメラがありません","ban-device":"デバイスへのアクセスが拒否されました","not-supported-webrtc":"現在の環境はWebRTCをサポートしていません","blacklist-user-tips":"ユーザーはブラックリストに登録され、通話が開始できませんでした","is-already-calling":"TUICallKit はすでに通話中です","need-init":"TUICallKitで通話を開始する前に、TUICallKitServer.init() メソッドが正常に実行されたことを確認してください。","can't call yourself":"自分に電話をかけることができません","accept-error":"接続できませんでした","accept-device-error":"接続できませんでした。発信側デバイスを認証できません","call-error":"通話が開始できませんでした"},Ce={OTHER_SIDE:"other side",CANCEL:"cancel",OTHER_SIDE_REJECT_CALL:"other side reject call",REJECT_CALL:"reject call",OTHER_SIDE_LINE_BUSY:"other side line busy",IN_BUSY:"in busy",CALL_TIMEOUT:"call timeout",END_CALL:"end call",TIMEOUT:"timeout",KICK_OUT:"kick out",CALLER_CALLING_MSG:"caller calling message",CALLER_GROUP_CALLING_MSG:"wait to be called",CALLEE_CALLING_VIDEO_MSG:"callee calling video message",CALLEE_CALLING_AUDIO_MSG:"callee calling audio message",NO_MICROPHONE_DEVICE_PERMISSION:"no microphone access",NO_CAMERA_DEVICE_PERMISSION:"no camera access"},Ee={en:je,"zh-cn":ye,ja_JP:Ie};function ke(e){var t;const n=nn.getData(w.CALL,he.LANGUAGE);for(const a in Ee)if(a===n){const t=Ee[a];for(const n in t)if(n===e)return t[n]}const o=null===(t=e["en"])||void 0===t?void 0:t.key;return console.error(`${he.PREFIX}translation is not found: ${e}.`),o}async function we(e){if(!e)return!1;try{const t=await new oe.a((t,n)=>{const o=new XMLHttpRequest;o.open("HEAD",e,!0),o.onload=()=>t(o),o.onerror=()=>n(o),o.send()});return 200===t.status&&"audio/mpeg"===t.getResponseHeader("Content-Type")}catch(t){return console.warn(t),!1}}var _e=n("2b0b"),Se=n.n(_e),Te=(n("1236"),n("cca4")),Le=n.n(Te),Ae=n("e946"),De=n.n(Ae),Ne=(n("a4fc"),n("9474")),Ue=n.n(Ne),Be=n("3002"),Me=n.n(Be);const Ve="undefined"!==typeof wx&&"function"===typeof wx.getSystemInfoSync&&Boolean(wx.getSystemInfoSync().fontSizeSetting),Re="undefined"!==typeof uni&&"undefined"===typeof uni,xe=Ve||Re,Pe="undefined"!==typeof uni,Ge=function(){return("undefined"!==typeof uni||"undefined"!==typeof window)&&!xe}(),Fe=function(){return Ve?wx:Pe?uni:window}(),He=Ge&&window&&window.navigator&&window.navigator.userAgent||"",ze=/Android/i.test(He),Ke=/(?:Windows Phone)/.test(He),Ye=/(?:SymbianOS)/.test(He),We=/iPad/i.test(He)||/iPhone/i.test(He)||/iPod/i.test(He),$e=ze||Ke||Ye||We,qe=Ge&&!$e,Qe=qe&&x()(He).call(He,"Windows NT"),Xe=qe&&x()(He).call(He,"Mac");class Ze{constructor(){Object(B["a"])(this,"global",Fe),Object(B["a"])(this,"isPC",!1),Object(B["a"])(this,"isH5",!1),Object(B["a"])(this,"isWeChat",!1),Object(B["a"])(this,"isApp",!1),Object(B["a"])(this,"isUniPlatform",!1),Object(B["a"])(this,"isOfficial",!1),Object(B["a"])(this,"isWIN",!1),Object(B["a"])(this,"isMAC",!1),this.initEnv()}static getInstance(){return Ze.instance||(Ze.instance=new Ze),Ze.instance}initEnv(){this.isPC=qe,this.isH5=$e,this.isWeChat=Ve,this.isApp=Re&&!Ve,this.isUniPlatform=Pe,this.isWIN=Qe,this.isMAC=Xe}initOfficial(e){this.isOfficial=1400187352===e||1400188366===e}}Object(B["a"])(Ze,"instance",void 0);const Je=function(e){return typeof e===he.UNDEFINED},et=function(e){if(typeof e!==he.OBJECT||null===e)return!1;const t=Le()(e);if(null===t)return!0;let n=t;while(null!==Le()(n))n=Le()(n);return t===n},tt=function(e){return typeof De.a===he.FUNCTION?De()(e):Object.prototype.toString.call(e).match(/^\[object (.*)\]$/)[1].toLowerCase()===he.ARRAY},nt=function(e){return typeof e===he.STRING},ot=function(e){return typeof e===he.BOOLEAN},at=function(e){return null!==e&&(typeof e===he.NUMBER&&!isNaN(e-0)||typeof e===he.OBJECT&&e.constructor===Number)};function it(e){const t=Math.floor(e/3600),n=Math.floor(e%3600/60),o=Math.floor(e%60);let a=t>9?""+t:"0"+t;return a+=n>9?":"+n:":0"+n,a+=o>9?":"+o:":0"+o,a}function rt(e){var t;return-1!==(null===e||void 0===e?void 0:H()(t=e.message).call(t,"is ongoing, please avoid repeated calls"))}function st(e){const{message:t}=e;return-1!==H()(t).call(t,"NotAllowedError: Permission denied")}function lt(){return Me()()}const ct=function(e){return typeof e===he.FUNCTION},dt=()=>{var e,t;if(Ze.getInstance().isWeChat)return"zh-cn";const n=((null===(e=navigator)||void 0===e?void 0:e.language)||(null===(t=navigator)||void 0===t?void 0:t.userLanguage)||"").substr(0,2);let o="en";switch(n){case"zh":o="zh-cn";break;case"ja":o="ja_JP";break;default:o="en"}return o};const ut=function(e){return Object.prototype.toString.call(e).match(/^\[object (.*)\]$/)[1].toLowerCase()};function pt(e,t,n){var o;if(!e.hasOwnProperty(t))return e;const a={};return X()(o=K()(e)).call(o,o=>{o===t?a[n]=e[o]:a[o]=e[o]}),a}const mt=0,bt=1,ht=2;function vt({retryFunction:e,settings:t,onError:n,onRetrying:o,onRetryFailed:a,context:i}){return function(...r){const s=t.retries||5;let l=0,c=-1,d=mt;const u=async(p,m)=>{const b=i||this;try{const t=await e.apply(b,r);l=0,p(t)}catch(h){const e=()=>{clearTimeout(c),l=0,d=ht,m(h)},i=()=>{d!==ht&&l{c=-1,u(p,m)},Je(t.timeout)?1e3:t.timeout)):(e(),ct(a)&&a.call(b,h))};ct(n)?n.call(b,h,i,m,r):i()}};return new oe.a(u)}}var ft=vt;function gt(e){return function(t,n,o){const{retries:a=5,timeout:i=2e3,onError:r,onRetrying:s,onRetryFailed:l}=e,c=ft({retryFunction:o.value,settings:{retries:a,timeout:i},onError:r,onRetrying:s,onRetryFailed:l,context:null});return o.value=function(...e){return c.apply(this,e)},o}}var Ot=n("3501"),jt=n.n(Ot),yt=n("ce82"),It=n.n(yt);class Ct{constructor(){Object(B["a"])(this,"_bellContext",null),Object(B["a"])(this,"_isMuteBell",!1),Object(B["a"])(this,"_calleeBellFilePath",It.a),Object(B["a"])(this,"_callRole",S.UNKNOWN),Object(B["a"])(this,"_callStatus",T.IDLE),this._bellContext=new Audio,this._bellContext.loop=!0}setBellSrc(){try{let e=jt.a;this._callRole===S.CALLEE&&(e=this._calleeBellFilePath||It.a),this._bellContext.src=e}catch(e){console.warn(`${he.PREFIX}Failed to setBellSrc, ${e}`)}}setBellProperties(e){this._callRole=e.callRole||this._callRole,this._callStatus=e.callStatus||this._callStatus,this._calleeBellFilePath=e.calleeBellFilePath||this._calleeBellFilePath,this._isMuteBell=Je(e.isMuteBell)?this._isMuteBell:e.isMuteBell}async play(){try{if(this._callStatus!==T.CALLING)return;this.setBellSrc(),this._callRole!==S.CALLEE||this._isMuteBell||await this._bellContext.play(),this._callRole===S.CALLER&&await this._bellContext.play()}catch(e){console.warn(`${he.PREFIX}Failed to play audio file, ${e}`)}}async stop(){try{await this._bellContext.pause()}catch(e){console.warn(`${he.PREFIX}Failed to stop audio file, ${e}`)}}async setBellMute(e){this._callStatus!==T.CALLING&&this._callRole!==S.CALLEE||(e?await this.stop():await this.play())}destroy(){try{this._isMuteBell=!1,this._calleeBellFilePath="",this._callRole=S.UNKNOWN,this._callStatus=T.IDLE,this._bellContext.pause(),this._bellContext=null}catch(e){console.warn(`${he.PREFIX}Failed to destroy, ${e}`)}}}var Et=n("045d"),kt=n.n(Et);function wt(){return function(e,t,n){const o=n.value,a=new kt.a;return n.value=async function(...e){if(a.has(this))console.warn(`${he.PREFIX}previous ${t}() is ongoing, please avoid repeated calls`);else try{a.add(this);const t=await o.apply(this,e);return a.delete(this),t}catch(n){throw a.delete(this),n}},n}}var _t=n("c52e"),St=n.n(_t),Tt=n("44a4"),Lt=n.n(Tt),At=n("800f"),Dt=n.n(At);const Nt=he.PREFIX+"API";function Ut(e){return function(t,n,o){let a=o.value;return o.value=function(...t){return Bt.call(this,e,t,n),a.apply(this,t)},o}}function Bt(e,t,n){try{if(t[0].SDKAppID||(e=pt(e,"SDKAppID","sdkAppID")),tt(e))for(let o=0;o: ${r} is required.`);return}const s=St()(t).call(t,e=>e===ut(o));let l="";if(!s){for(let e=0;e: ${r} must be ${l}, current ${r} is ${typeof o}.`)}if(!1===a){const e=nt(o)&&""===Lt()(o).call(o);if(e)throw new Error(`${Nt}<${i}>: ${r} is blank.`)}if(tt(n)&&n&&-1===H()(n).call(n,o))throw new Error(`${Nt}<${i}>: ${r} error, only be ${n}, current ${r} is ${o}.`);if(nt(n)&&-1!==H()(n).call(n,"~")){const e=n.split("~");if(o<+e[0]||o>+e[1]||at(o)&&Dt()(o))throw new Error(`${Nt}<${i}>: ${r} error, only be ${n}, current ${r} is ${o}.`)}}const Vt={init:{SDKAppID:{required:!0,rules:[he.NUMBER],allowEmpty:!1},userID:{required:!0,rules:[he.STRING],allowEmpty:!1},userSig:{required:!0,rules:[he.STRING],allowEmpty:!1},tim:{required:!1,rules:[he.OBJECT]}},call:{userID:{required:!0,rules:[he.STRING],allowEmpty:!1},type:{required:!0,rules:[he.NUMBER],range:[1,2],allowEmpty:!1},roomID:{required:!1,rules:[he.NUMBER],range:"1~"+ve,allowEmpty:!1},userData:{required:!1,rules:[he.STRING],allowEmpty:!1},timeout:{required:!1,rules:[he.NUMBER],allowEmpty:!1}},groupCall:{userIDList:{required:!0,rules:[he.ARRAY],allowEmpty:!1},type:{required:!0,rules:[he.NUMBER],range:[1,2],allowEmpty:!1},groupID:{required:!0,rules:[he.STRING],allowEmpty:!1},roomID:{required:!1,rules:[he.NUMBER],range:"1~"+ve,allowEmpty:!1},timeout:{required:!1,rules:[he.NUMBER],allowEmpty:!1},userData:{required:!1,rules:[he.STRING],allowEmpty:!1},offlinePushInfo:{required:!1,rules:[he.OBJECT],allowEmpty:!1}},joinInGroupCall:{type:{required:!0,rules:[he.NUMBER],range:[1,2],allowEmpty:!1},groupID:{required:!0,rules:[he.STRING],allowEmpty:!1},roomID:{required:!0,rules:[he.NUMBER],allowEmpty:!1}},inviteUser:{userIDList:{required:!0,rules:[he.ARRAY],allowEmpty:!1}},setSelfInfo:{nickName:{required:!1,rules:[he.STRING],allowEmpty:!1},avatar:{required:!1,rules:[he.STRING],allowEmpty:!1}},enableFloatWindow:[{key:"enable",required:!1,rules:[he.BOOLEAN],allowEmpty:!1}],enableAIVoice:[{key:"enable",required:!0,rules:[he.BOOLEAN],allowEmpty:!1}],enableMuteMode:[{key:"enable",required:!0,rules:[he.BOOLEAN],allowEmpty:!1}],setCallingBell:[{key:"filePath",required:!1,rules:[he.STRING],allowEmpty:!0}],setLanguage:[{key:"language",required:!0,rules:[he.STRING],allowEmpty:!1}],setVideoDisplayMode:[{key:"displayMode",required:!0,rules:[he.STRING],range:[L.CONTAIN,L.COVER,L.FILL],allowEmpty:!1}],setVideoResolution:[{key:"resolution",required:!0,rules:[he.STRING],range:[A.RESOLUTION_1080P,A.RESOLUTION_480P,A.RESOLUTION_720P],allowEmpty:!1}]};function Rt(e,t){const n={userId:e,nick:"",avatar:"",remark:"",displayUserInfo:"",isAudioAvailable:!1,isVideoAvailable:!1,isEnter:!1,domId:t||e};return t?n:{...n,isEnter:!1}}async function xt(e,t,n){let o=Rt(e,he.LOCAL_VIDEO);try{if(!t)return o;const e=await t.getMyProfile(),c=null===n||void 0===n?void 0:n.getData(w.CALL,he.LOCAL_USER_INFO);var a,i,r,s,l;if(0===(null===e||void 0===e?void 0:e.code))o={...o,...c,userId:null===e||void 0===e||null===(a=e.data)||void 0===a?void 0:a.userID,nick:null===e||void 0===e||null===(i=e.data)||void 0===i?void 0:i.nick,avatar:null===e||void 0===e||null===(r=e.data)||void 0===r?void 0:r.avatar,displayUserInfo:(null===e||void 0===e||null===(s=e.data)||void 0===s?void 0:s.nick)||(null===e||void 0===e||null===(l=e.data)||void 0===l?void 0:l.userID)};return o}catch(c){return console.error(`${he.PREFIX}getMyProfile failed, error: ${c}.`),o}}async function Pt(e,t,n){let o=V()(e).call(e,e=>Rt(e));try{if(!t)return o;const a=await t.getFriendProfile({userIDList:e});if(0===a.code){const{friendList:i=[],failureUserIDList:r=[]}=a.data;let s=V()(r).call(r,e=>e.userID);if(r.length>0){const e=await t.getUserProfile({userIDList:V()(r).call(r,e=>e.userID)});0===(null===e||void 0===e?void 0:e.code)&&(s=(null===e||void 0===e?void 0:e.data)||[])}const l=null===n||void 0===n?void 0:n.getData(w.CALL,he.REMOTE_USER_INFO_LIST),c=V()(i).call(i,e=>e.userID),d=V()(s).call(s,e=>e.userID);o=V()(e).call(e,e=>{const t=Rt(e),n=H()(c).call(c,e),o=H()(d).call(d,e);let a="",r="",u="",p="";var m,b,h,v,f;-1!==n&&(a=(null===(m=i[n])||void 0===m?void 0:m.remark)||"",r=(null===(b=i[n])||void 0===b||null===(b=b.profile)||void 0===b?void 0:b.nick)||"",u=a||r||t.userId||"",p=(null===(h=i[n])||void 0===h||null===(h=h.profile)||void 0===h?void 0:h.avatar)||"");-1!==o&&(r=(null===(v=s[o])||void 0===v?void 0:v.nick)||"",u=r||t.userId||"",p=(null===(f=s[o])||void 0===f?void 0:f.avatar)||"");const g=q()(l).call(l,t=>t.userId===e)||{};return{...t,...g,remark:a,nick:r,displayUserInfo:u,avatar:p}})}return o}catch(a){return console.error(`${he.PREFIX}getRemoteUserProfile failed, error: ${a}.`),o}}function Gt(e,t,n,o){const a=e.getData(w.CALL,he.IS_GROUP);let i=""+ke(t);return a&&(i=n?`${n} ${i}`:i,i=o?`${i} ${o}`:i),i}function Ft(e){const t=e.getData(w.CALL,he.CALL_STATUS);if(t===T.IDLE)return se.IDLE;const n=e.getData(w.CALL,he.IS_GROUP);if(t===T.CALLING)return n?se.DIALING_GROUP:se.DIALING_C2C;const o=e.getData(w.CALL,he.CALL_MEDIA_TYPE);return n?o===_.AUDIO?se.CALLING_GROUP_AUDIO:se.CALLING_GROUP_VIDEO:o===_.AUDIO?se.CALLING_C2C_AUDIO:se.CALLING_C2C_VIDEO}async function Ht(e,t,n,o){let a=[];try{const i=await t.getGroupMemberList({groupID:e,count:n,offset:o});if(0===i.code)return i.data.memberList||a}catch(i){return console.error(`${he.PREFIX}getGroupMember failed, error: ${i}.`),a}}async function zt(e,t){let n={};try{const o=await t.getGroupProfile({groupID:e});if(0===o.code)return o.data.group||n}catch(o){return console.error(`${he.PREFIX}getGroupProfile failed, error: ${o}.`),n}}var Kt=n("21e7"),Yt=n.n(Kt),Wt=n("505e"),$t=n.n(Wt);class qt{static generateTaskID(){return this.currentTaskID++}static run(e=he.TIMEOUT,t,n){n=(he.INTERVAL,{delay:2e3,count:0,backgroundTask:!0,...n}),et(t)&&(n={...n,...t}),ct(e)&&(t=e,e=he.TIMEOUT);const o={taskID:this.generateTaskID(),loopCount:0,intervalID:null,timeoutID:null,taskName:e,callback:t,...n};return this.taskMap.set(o.taskID,o),e===he.INTERNAL?this.interval(o):this.timeout(o),o.taskID}static interval(e){const t=()=>{e.callback(),e.loopCount+=1,this.isBreakLoop(e)};return e.intervalID=Yt()(t,e.delay)}static timeout(e){const t=()=>{if(e.callback(),e.loopCount+=1,!this.isBreakLoop(e))return e.timeoutID=Se()(t,e.delay)};return e.timeoutID=Se()(t,e.delay)}static hasTask(e){return this.taskMap.has(e)}static clearTask(e){if(!this.taskMap.has(e))return!0;const{intervalID:t,timeoutID:n,onVisibilitychange:o}=this.taskMap.get(e);return t&&clearInterval(t),n&&clearTimeout(n),o&&document.removeEventListener("visibilitychange",o),this.taskMap.delete(e),!0}static isBreakLoop(e){return!this.taskMap.has(e.taskID)||0!==e.count&&e.loopCount>=e.count&&(this.clearTask(e.taskID),!0)}}Object(B["a"])(qt,"taskMap",new $t.a),Object(B["a"])(qt,"currentTaskID",1);var Qt=qt,Xt=n("a952"),Zt=n.n(Xt);class Jt{constructor(){Object(B["a"])(this,"defaultStore",{callStatus:T.IDLE,callRole:S.UNKNOWN,callMediaType:_.UNKNOWN,localUserInfo:{userId:""},localUserInfoExcludeVolume:{userId:""},remoteUserInfoList:[],remoteUserInfoExcludeVolumeList:[],callerUserInfo:{userId:""},isGroup:!1,callDuration:"00:00:00",callTips:"",toastInfo:{text:""},isMinimized:!1,enableFloatWindow:!1,bigScreenUserId:"",language:dt(),isClickable:!1,deviceList:{cameraList:[],microphoneList:[],currentCamera:{},currentMicrophone:{}},showPermissionTip:!1,groupID:"",roomID:0,cameraPosition:de.FRONT,displayMode:L.COVER,videoResolution:A.RESOLUTION_480P,showSelectUser:!1,pusher:{},player:[],isEarPhone:!1}),Object(B["a"])(this,"store",J()({},this.defaultStore))}update(e,t){switch(e){default:this.store[e]=t}}getData(e){return e?this.store[e]:this.store}reset(e=[]){0===e.length&&(e=K()(this.store));const t=te()(e).call(e,(e,t)=>({...e,[t]:this.defaultStore[t]}),{});this.store={...this.defaultStore,...this.store,...t}}}class en{constructor(){Object(B["a"])(this,"task",void 0),Object(B["a"])(this,"storeMap",void 0),Object(B["a"])(this,"timerId",-1),this.storeMap={[w.CALL]:new Jt},this.task={}}static getInstance(){return en.instance||(en.instance=new en),en.instance}watch(e,t,n){var o;this.task[e]||(this.task[e]={});const a=this.task[e];X()(o=K()(t)).call(o,o=>{const i=t[o];a[o]||(a[o]=new $t.a),a[o].set(i,1);const{notifyRangeWhenWatch:r}=n||{};if(r===he.ALL&&this.notify(e,o),r===he.MYSELF){const t=this.getData(e,o);i.call(this,t)}})}unwatch(e,t){var n;if(!this.task[e])return;const o=this.task[e];X()(n=K()(t)).call(n,e=>{o[e].delete(t[e])})}update(e,t,n){var o;if(nt(n)||at(n)||ot(n)){const o=this.storeMap[e]["store"][t];if(o===n)return}null===(o=this.storeMap[e])||void 0===o||o.update(t,n),this.notify(e,t)}getData(e,t){var n;return null===(n=this.storeMap[e])||void 0===n?void 0:n.getData(t)}notify(e,t){if(!this.task[e])return;const n=this.task[e];if(n[t]){const o=n[t],a=this.getData(e,t);for(const[e]of Zt()(o).call(o))e.call(this,a)}}reset(e,t=[],n=!1){if(e in this.storeMap){const o=this.storeMap[e];0===t.length&&(t=K()(null===o||void 0===o?void 0:o.store)),o.reset(t),n&&X()(t).call(t,t=>{this.notify(e,t)})}}updateStore(e,t){var n;const o=t||w.CALL;X()(n=K()(e)).call(n,t=>{this.update(o,t,e[t])})}}Object(B["a"])(en,"instance",void 0);const tn=Ze.getInstance(),nn=en.getInstance(),on="2.5.2",an="vue3";class rn{constructor(){Object(B["a"])(this,"_tuiCallEngine",void 0),Object(B["a"])(this,"_tim",null),Object(B["a"])(this,"_TUICore",null),Object(B["a"])(this,"_timerId",-1),Object(B["a"])(this,"_startTimeStamp",lt()),Object(B["a"])(this,"_bellContext",null),Object(B["a"])(this,"_defaultOfflinePushInfo",{title:"",description:ke("you have a new call")}),Object(B["a"])(this,"beforeCalling",void 0),Object(B["a"])(this,"afterCalling",void 0),Object(B["a"])(this,"onMinimized",void 0),Object(B["a"])(this,"onMessageSentByMe",void 0),Object(B["a"])(this,"kickedOut",void 0),Object(B["a"])(this,"statusChanged",void 0),Object(B["a"])(this,"_handleCallStatusChange",async e=>{try{const o={callRole:nn.getData(w.CALL,he.CALL_ROLE),callStatus:nn.getData(w.CALL,he.CALL_STATUS)};if(this._bellContext.setBellProperties(o),e===T.CALLING){var t;await(null===this||void 0===this||null===(t=this._bellContext)||void 0===t?void 0:t.play())}else{var n;if(e===T.CONNECTED){const e=nn.getData(w.CALL,he.IS_GROUP),t=nn.getData(w.CALL,he.CALL_MEDIA_TYPE),n=nn.getData(w.CALL,he.REMOTE_USER_INFO_LIST),o=e?se.DIALING_GROUP:se.DIALING_C2C;nn.update(w.CALL,he.CALL_TIPS,""),this.statusChanged&&this.statusChanged({oldStatus:o,newStatus:Ft(nn)}),e||t!==_.VIDEO||this.switchScreen(n[0].domId)}await(null===this||void 0===this||null===(n=this._bellContext)||void 0===n?void 0:n.stop())}}catch(o){console.warn(`${he.PREFIX}handleCallStatusChange, ${o}.`)}}),console.log(`${he.PREFIX}version: ${on}`),this._watchTUIStore(),this._bellContext=new Ct}static getInstance(){return rn.instance||(rn.instance=new rn),rn.instance}async init(e){try{if(this._tuiCallEngine)return;let{userID:t,tim:n,userSig:o,sdkAppID:a,SDKAppID:i,isFromChat:r,component:s=ge.TUI_CALL_KIT}=e;this._TUICore&&(a=this._TUICore.SDKAppID,n=this._TUICore.tim),this._tim=n,console.log(`${he.PREFIX}init sdkAppId: ${a||i}, userId: ${t}`),this._tuiCallEngine=Oe["TUICallEngine"].createInstance({tim:n,SDKAppID:a||i,frameWork:an,language:6,callkitVersion:on,chat:r||!1,component:s}),this._addListenTuiCallEngineEvent(),nn.update(w.CALL,he.LOCAL_USER_INFO,{userId:t}),nn.update(w.CALL,he.LOCAL_USER_INFO_EXCLUDE_VOLUMN,{userId:t}),await this._tuiCallEngine.login({userID:t,userSig:o,assetsPath:""})}catch(t){throw console.error(`${he.PREFIX}init failed, error: ${t}.`),t}}async destroyed(){try{const e=nn.getData(w.CALL,he.CALL_STATUS);if(e!==T.IDLE)throw new Error("please destroyed when status is idle, current status: "+e);this._tuiCallEngine&&(this._removeListenTuiCallEngineEvent(),await this._tuiCallEngine.destroyInstance(),this._tuiCallEngine=null)}catch(e){throw console.error(`${he.PREFIX}destroyed failed, error: ${e}.`),e}}async call(e){try{const{type:t,userID:n,offlinePushInfo:o}=e;if(nn.getData(w.CALL,he.CALL_STATUS)!==T.IDLE)return;await this._updateCallStoreBeforeCall(t,[{userId:n}]),this._executeExternalBeforeCalling(),e.offlinePushInfo={...this._defaultOfflinePushInfo,...o};const a=await this._tuiCallEngine.call(e);await this._updateCallStoreAfterCall([n],a)}catch(t){this._handleCallError(t,"call")}}async groupCall(e){try{const{userIDList:t,type:n,groupID:o,offlinePushInfo:a}=e;if(nn.getData(w.CALL,he.CALL_STATUS)!==T.IDLE)return;const i=V()(t).call(t,e=>({userId:e}));await this._updateCallStoreBeforeCall(n,i,o),this._executeExternalBeforeCalling(),e.offlinePushInfo={...this._defaultOfflinePushInfo,...a};const r=await this._tuiCallEngine.groupCall(e);await this._updateCallStoreAfterCall(t,r)}catch(t){this._handleCallError(t,"groupCall")}}async inviteUser(e){try{const{userIDList:t}=e;let n=await Pt(t,this.getTim(),nn);const o=nn.getData(w.CALL,he.REMOTE_USER_INFO_LIST);nn.update(w.CALL,he.REMOTE_USER_INFO_LIST,[...o,...n]),nn.update(w.CALL,he.REMOTE_USER_INFO_EXCLUDE_VOLUMN_LIST,[...o,...n]),this._tuiCallEngine&&await this._tuiCallEngine.inviteUser(e)}catch(t){throw console.error(`${he.PREFIX}inviteUser failed, error: ${t}.`),this._resetCallStore(),t}}async joinInGroupCall(e){try{const t={[he.CALL_ROLE]:S.CALLEE,[he.IS_GROUP]:!0,[he.CALL_STATUS]:T.CONNECTED,[he.CALL_MEDIA_TYPE]:e.type,[he.GROUP_ID]:e.groupID,[he.ROOM_ID]:e.roomID};nn.updateStore(t,w.CALL);await this._tuiCallEngine.joinInGroupCall(e);e.type===_.VIDEO&&await this.openCamera(he.LOCAL_VIDEO),nn.update(w.CALL,he.IS_CLICKABLE,!0),this._startTimer(),this._updateDeviceList(),await this._tuiCallEngine.setVideoQuality(nn.getData(w.CALL,he.VIDEO_RESOLUTION));const n=nn.getData(w.CALL,he.LOCAL_USER_INFO);nn.update(w.CALL,he.LOCAL_USER_INFO,{...n,isEnter:!0}),nn.update(w.CALL,he.LOCAL_USER_INFO_EXCLUDE_VOLUMN,{...n,isEnter:!0}),this._setLocalUserInfoAudioVideoAvailable(!0,he.AUDIO)}catch(t){throw console.error(`${he.PREFIX}joinInGroupCall failed, error: ${t}.`),this._resetCallStore(),t}}getTUICallEngineInstance(){return(null===this||void 0===this?void 0:this._tuiCallEngine)||null}setLogLevel(e){var t;null===this||void 0===this||null===(t=this._tuiCallEngine)||void 0===t||t.setLogLevel(e)}setLanguage(e){var t;e&&x()(t=G()(D)).call(t,e)&&nn.update(w.CALL,he.LANGUAGE,e)}enableFloatWindow(e){nn.update(w.CALL,he.ENABLE_FLOAT_WINDOW,e)}async setSelfInfo(e){const{nickName:t,avatar:n}=e;try{await this._tuiCallEngine.setSelfInfo({nickName:t,avatar:n})}catch(o){console.error(`${he.PREFIX}setSelfInfo failed, error: ${o}.`)}}async enableAIVoice(e){try{await this._tuiCallEngine.enableAIVoice(e),console.log(`${he.PREFIX}enableAIVoice: ${e}.`)}catch(t){throw console.error(`${he.PREFIX}enableAIVoice failed, error: ${t}.`),t}}async setCallingBell(e){let t=!0;if(t=await we(e),!t)return void console.warn(`${he.PREFIX}setCallingBell failed, filePath: ${e}.`);const n={calleeBellFilePath:e};this._bellContext.setBellProperties(n)}async enableMuteMode(e){try{const t={isMuteBell:e};this._bellContext.setBellProperties(t),await this._bellContext.setBellMute(e)}catch(t){console.warn(`${he.PREFIX}enableMuteMode failed, error: ${t}.`)}}async accept(){try{nn.update(w.CALL,he.CALL_STATUS,T.CONNECTED),this._updateDeviceList();const e=await this._tuiCallEngine.accept();if(e){nn.update(w.CALL,he.IS_CLICKABLE,!0),this._startTimer();const e=nn.getData(w.CALL,he.CALL_MEDIA_TYPE);e===_.VIDEO&&await this.openCamera(he.LOCAL_VIDEO),await this._tuiCallEngine.setVideoQuality(nn.getData(w.CALL,he.VIDEO_RESOLUTION));const t=nn.getData(w.CALL,he.LOCAL_USER_INFO);nn.update(w.CALL,he.LOCAL_USER_INFO,{...t,isEnter:!0}),nn.update(w.CALL,he.LOCAL_USER_INFO_EXCLUDE_VOLUMN,{...t,isEnter:!0}),this._setLocalUserInfoAudioVideoAvailable(!0,he.AUDIO)}}catch(e){if(rt(e))return;this._noDevicePermissionToast(e,_.AUDIO),this._resetCallStore()}}async hangup(){try{await this._tuiCallEngine.hangup()}catch(e){console.debug(e)}this._resetCallStore()}async reject(){try{await this._tuiCallEngine.reject()}catch(e){console.debug(e)}this._resetCallStore()}async openCamera(e){try{await this._tuiCallEngine.openCamera(e),this._setLocalUserInfoAudioVideoAvailable(!0,he.VIDEO)}catch(t){this._noDevicePermissionToast(t,_.VIDEO),console.error(`${he.PREFIX}openCamera error: ${t}.`)}}async closeCamera(){try{await this._tuiCallEngine.closeCamera(),this._setLocalUserInfoAudioVideoAvailable(!1,he.VIDEO)}catch(e){console.error(`${he.PREFIX}closeCamera error: ${e}.`)}}async openMicrophone(){try{await this._tuiCallEngine.openMicrophone(),this._setLocalUserInfoAudioVideoAvailable(!0,he.AUDIO)}catch(e){console.error(`${he.PREFIX}openMicrophone failed, error: ${e}.`)}}async closeMicrophone(){try{await this._tuiCallEngine.closeMicrophone(),this._setLocalUserInfoAudioVideoAvailable(!1,he.AUDIO)}catch(e){console.error(`${he.PREFIX}closeMicrophone failed, error: ${e}.`)}}switchScreen(e){e&&nn.update(w.CALL,he.BIG_SCREEN_USER_ID,e)}async switchCallMediaType(){try{const e=nn.getData(w.CALL,he.CALL_MEDIA_TYPE);if(e===_.AUDIO)return void console.warn(`${he.PREFIX}switchCallMediaType failed, ${e} not support.`);await this._tuiCallEngine.switchCallMediaType(_.AUDIO);nn.update(w.CALL,he.CALL_MEDIA_TYPE,_.AUDIO);const t=nn.getData(w.CALL,he.IS_GROUP),n=t?se.CALLING_GROUP_VIDEO:se.CALLING_C2C_VIDEO,o=Ft(nn);this.statusChanged&&this.statusChanged({oldStatus:n,newStatus:o})}catch(e){console.error(`${he.PREFIX}switchCallMediaType failed, error: ${e}.`)}}async switchCamera(){const e=nn.getData(w.CALL,he.CAMERA_POSITION),t=e===de.BACK?de.FRONT:de.BACK;try{await this._tuiCallEngine.switchCamera(t),nn.update(w.CALL,he.CAMERA_POSITION,t)}catch(n){console.error(`${he.PREFIX}_switchCamera failed, error: ${n}.`)}}getTim(){var e,t;return this._tim?this._tim:this._tuiCallEngine?(null===(e=this._tuiCallEngine)||void 0===e?void 0:e.tim)||(null===(t=this._tuiCallEngine)||void 0===t?void 0:t.getTim()):(console.warn(he.PREFIX+"getTim warning: _tuiCallEngine Instance is not available."),null)}async switchDevice(e){try{await this._tuiCallEngine.switchDevice(e)}catch(t){console.error(`${he.PREFIX}_switchDevice failed, error: ${t}.`)}}_addListenTuiCallEngineEvent(){this._tuiCallEngine?(this._tuiCallEngine.on(Oe["TUICallEvent"].ERROR,this._handleError,this),this._tuiCallEngine.on(Oe["TUICallEvent"].INVITED,this._handleNewInvitationReceived,this),this._tuiCallEngine.on(Oe["TUICallEvent"].USER_ACCEPT,this._handleUserAccept,this),this._tuiCallEngine.on(Oe["TUICallEvent"].USER_ENTER,this._handleUserEnter,this),this._tuiCallEngine.on(Oe["TUICallEvent"].USER_LEAVE,this._handleUserLeave,this),this._tuiCallEngine.on(Oe["TUICallEvent"].REJECT,this._handleInviteeReject,this),this._tuiCallEngine.on(Oe["TUICallEvent"].NO_RESP,this._handleNoResponse,this),this._tuiCallEngine.on(Oe["TUICallEvent"].LINE_BUSY,this._handleLineBusy,this),this._tuiCallEngine.on(Oe["TUICallEvent"].CALLING_CANCEL,this._handleCallingCancel,this),this._tuiCallEngine.on(Oe["TUICallEvent"].SDK_READY,this._handleSDKReady,this),this._tuiCallEngine.on(Oe["TUICallEvent"].KICKED_OUT,this._handleKickedOut,this),this._tuiCallEngine.on(Oe["TUICallEvent"].MESSAGE_SENT_BY_ME,this._messageSentByMe,this),this._tuiCallEngine.on(Oe["TUICallEvent"].CALLING_END,this._handleCallingEnd,this),this._tuiCallEngine.on(Oe["TUICallEvent"].CALL_TYPE_CHANGED,this._handleCallTypeChange,this),this._tuiCallEngine.on(Oe["TUICallEvent"].USER_VIDEO_AVAILABLE,this._handleUserVideoAvailable,this),this._tuiCallEngine.on(Oe["TUICallEvent"].USER_AUDIO_AVAILABLE,this._handleUserAudioAvailable,this),this._tuiCallEngine.on(Oe["TUICallEvent"].USER_VOICE_VOLUME,this._handleUserVoiceVolume,this),this._tuiCallEngine.on(Oe["TUICallEvent"].DEVICED_UPDATED,this._handleDeviceUpdate,this)):console.warn(he.PREFIX+"add engine event listener failed, engine is empty.")}_removeListenTuiCallEngineEvent(){this._tuiCallEngine.off(Oe["TUICallEvent"].ERROR,this._handleError),this._tuiCallEngine.off(Oe["TUICallEvent"].INVITED,this._handleNewInvitationReceived),this._tuiCallEngine.off(Oe["TUICallEvent"].USER_ACCEPT,this._handleUserAccept),this._tuiCallEngine.off(Oe["TUICallEvent"].USER_ENTER,this._handleUserEnter),this._tuiCallEngine.off(Oe["TUICallEvent"].USER_LEAVE,this._handleUserLeave),this._tuiCallEngine.off(Oe["TUICallEvent"].REJECT,this._handleInviteeReject),this._tuiCallEngine.off(Oe["TUICallEvent"].NO_RESP,this._handleNoResponse),this._tuiCallEngine.off(Oe["TUICallEvent"].LINE_BUSY,this._handleLineBusy),this._tuiCallEngine.off(Oe["TUICallEvent"].CALLING_CANCEL,this._handleCallingCancel),this._tuiCallEngine.off(Oe["TUICallEvent"].SDK_READY,this._handleSDKReady),this._tuiCallEngine.off(Oe["TUICallEvent"].KICKED_OUT,this._handleKickedOut),this._tuiCallEngine.off(Oe["TUICallEvent"].MESSAGE_SENT_BY_ME,this._messageSentByMe),this._tuiCallEngine.off(Oe["TUICallEvent"].CALLING_END,this._handleCallingEnd),this._tuiCallEngine.off(Oe["TUICallEvent"].CALL_TYPE_CHANGED,this._handleCallTypeChange),this._tuiCallEngine.off(Oe["TUICallEvent"].USER_VIDEO_AVAILABLE,this._handleUserVideoAvailable),this._tuiCallEngine.off(Oe["TUICallEvent"].USER_AUDIO_AVAILABLE,this._handleUserAudioAvailable),this._tuiCallEngine.off(Oe["TUICallEvent"].USER_VOICE_VOLUME,this._handleUserVoiceVolume),this._tuiCallEngine.off(Oe["TUICallEvent"].DEVICED_UPDATED,this._handleDeviceUpdate)}_handleError(e){var t;const{code:n,message:o}=e||{},a=H()(t=G()(ue)).call(t,n);let i="";if(-1!==a){const e=K()(ue)[a];i=ke(pe[e]),i&&nn.update(w.CALL,he.TOAST_INFO,{text:i,type:he.ERROR})}this._executeExternalAfterCalling(),console.error(`${he.PREFIX}_handleError, errorCode: ${n}; errorMessage: ${i||o}.`)}async _handleNewInvitationReceived(e){b["a"].commit("setGroupId",null===e||void 0===e?void 0:e.groupID),console.log(`${he.PREFIX}onCallReceived event data: ${a()(e)}.`);const{sponsor:t="",isFromGroup:n,callMediaType:o,inviteData:i={},calleeIdList:r=[],groupID:s=""}=this._analyzeEventData(e),l=nn.getData(w.CALL,he.LOCAL_USER_INFO),c=[t,...W()(r).call(r,e=>e!==l.userId)],d=o||i.callType,u=d===_.AUDIO?Ce.CALLEE_CALLING_AUDIO_MSG:Ce.CALLEE_CALLING_VIDEO_MSG;let p={[he.CALL_ROLE]:S.CALLEE,[he.IS_GROUP]:n,[he.CALL_STATUS]:T.CALLING,[he.CALL_MEDIA_TYPE]:d,[he.CALL_TIPS]:ke(u),[he.CALLER_USER_INFO]:{userId:t},[he.GROUP_ID]:s};nn.updateStore(p,w.CALL),this._executeExternalBeforeCalling(),this.statusChanged&&this.statusChanged({oldStatus:se.IDLE,newStatus:se.BE_INVITED});const m=await Pt(c,this.getTim(),nn),[h]=W()(m).call(m,e=>e.userId===t);m.length>0&&nn.updateStore({[he.REMOTE_USER_INFO_LIST]:m,[he.REMOTE_USER_INFO_EXCLUDE_VOLUMN_LIST]:m,[he.CALLER_USER_INFO]:{userId:t,nick:(null===h||void 0===h?void 0:h.nick)||"",avatar:(null===h||void 0===h?void 0:h.avatar)||"",displayUserInfo:(null===h||void 0===h?void 0:h.remark)||(null===h||void 0===h?void 0:h.nick)||t}},w.CALL)}_handleUserAccept(e){this._callerChangeToConnected(),nn.update(w.CALL,he.TOAST_INFO,ke("answered")),console.log(`${he.PREFIX}accept event data: ${a()(e)}.`)}async _handleUserEnter(e){this._callerChangeToConnected();const{userID:t,data:n}=this._analyzeEventData(e);let o=nn.getData(w.CALL,he.REMOTE_USER_INFO_LIST);const i=q()(o).call(o,e=>(null===e||void 0===e?void 0:e.userId)===t);if(!i){o.push({userId:t}),o.length>0&&(nn.update(w.CALL,he.REMOTE_USER_INFO_LIST,o),nn.update(w.CALL,he.REMOTE_USER_INFO_EXCLUDE_VOLUMN_LIST,o));const[e]=await Pt([t],this.getTim(),nn);o=nn.getData(w.CALL,he.REMOTE_USER_INFO_LIST),X()(o).call(o,n=>{var o;(null===(o=n)||void 0===o?void 0:o.userId)===t&&(n=J()(n,e))})}o=V()(o).call(o,e=>(e.userId===t&&(e.isEnter=!0),e)),o.length>0&&(nn.update(w.CALL,he.REMOTE_USER_INFO_LIST,o),nn.update(w.CALL,he.REMOTE_USER_INFO_EXCLUDE_VOLUMN_LIST,o)),console.log(`${he.PREFIX}userEnter event data: ${a()(e)}.`)}_callerChangeToConnected(){const e=nn.getData(w.CALL,he.CALL_ROLE),t=nn.getData(w.CALL,he.CALL_STATUS);t===T.CALLING&&e===S.CALLER&&(nn.update(w.CALL,he.CALL_STATUS,T.CONNECTED),this._startTimer())}_handleUserLeave(e){console.log(`${he.PREFIX}userLeave event data: ${a()(e)}.`);const{data:t,userID:n}=this._analyzeEventData(e);if(nn.getData(w.CALL,he.IS_GROUP)){const e=nn.getData(w.CALL,he.REMOTE_USER_INFO_LIST),t=(q()(e).call(e,e=>e.userId===n)||{}).displayUserInfo||n,o=Gt(nn,Ce.END_CALL,t);nn.update(w.CALL,he.TOAST_INFO,{text:o})}n&&this._deleteRemoteUser([n])}_unNormalEventsManager(e,t){console.log(`${he.PREFIX}${t} event data: ${a()(e)}.`);const n=nn.getData(w.CALL,he.IS_GROUP),o=nn.getData(w.CALL,he.REMOTE_USER_INFO_LIST);switch(t){case Oe["TUICallEvent"].REJECT:case Oe["TUICallEvent"].LINE_BUSY:{const{userID:a}=this._analyzeEventData(e);let i=t===Oe["TUICallEvent"].REJECT?Ce.OTHER_SIDE_REJECT_CALL:Ce.OTHER_SIDE_LINE_BUSY,r=Gt(nn,i);if(n){const e=(q()(o).call(o,e=>e.userId===a)||{}).displayUserInfo||a;i=t===Oe["TUICallEvent"].REJECT?Ce.REJECT_CALL:Ce.IN_BUSY,r=Gt(nn,i,e)}nn.update(w.CALL,he.TOAST_INFO,{text:r}),a&&this._deleteRemoteUser([a]);break}case Oe["TUICallEvent"].NO_RESP:{const{userIDList:t=[]}=this._analyzeEventData(e),a=n?Ce.TIMEOUT:Ce.CALL_TIMEOUT,i=V()(t).call(t,e=>{const t=q()(o).call(o,t=>t.userId===e)||{};return t.displayUserInfo||e}),r=n?Gt(nn,a,i.join()):Gt(nn,a);nn.update(w.CALL,he.TOAST_INFO,{text:r}),t.length>0&&this._deleteRemoteUser(t);break}case Oe["TUICallEvent"].CALLING_CANCEL:this._resetCallStore();break}}_handleInviteeReject(e){this._unNormalEventsManager(e,Oe["TUICallEvent"].REJECT)}_handleNoResponse(e){this._unNormalEventsManager(e,Oe["TUICallEvent"].NO_RESP)}_handleLineBusy(e){this._unNormalEventsManager(e,Oe["TUICallEvent"].LINE_BUSY)}_handleCallingCancel(e){this._executeExternalAfterCalling(),this._unNormalEventsManager(e,Oe["TUICallEvent"].CALLING_CANCEL)}_handleCallingEnd(e){console.log(`${he.PREFIX}callEnd event data: ${a()(e)}.`),this._executeExternalAfterCalling(),this._resetCallStore()}async _handleSDKReady(e){var t;let n=nn.getData(w.CALL,he.LOCAL_USER_INFO);n=await xt(n.userId,this.getTim(),nn),this._defaultOfflinePushInfo.title=null===(t=n)||void 0===t?void 0:t.displayUserInfo,nn.update(w.CALL,he.LOCAL_USER_INFO,n),nn.update(w.CALL,he.LOCAL_USER_INFO_EXCLUDE_VOLUMN,n)}_handleKickedOut(e){console.log(`${he.PREFIX}kickOut event data: ${a()(e)}.`),this.kickedOut&&this.kickedOut(e),window.parent.postMessage(a()({code:"kickOut"}),"*"),nn.update(w.CALL,he.CALL_TIPS,Gt(nn,Ce.KICK_OUT)),this._resetCallStore()}_handleCallTypeChange(e){const{newCallType:t,type:n}=this._analyzeEventData(e);nn.update(w.CALL,he.CALL_MEDIA_TYPE,t||n)}_messageSentByMe(e){const t=null===e||void 0===e?void 0:e.data;this.onMessageSentByMe&&this.onMessageSentByMe(t)}async _handleUserVideoAvailable(e){const{userID:t,isVideoAvailable:n}=this._analyzeEventData(e);console.log(`${he.PREFIX}_handleUserVideoAvailable event data: ${a()(e)}.`);try{n&&await this._startRemoteView(t)}catch(o){console.error(`${he.PREFIX}_startRemoteView failed, error: ${o}.`)}this._setRemoteUserInfoAudioVideoAvailable(n,he.VIDEO,t)}_handleUserAudioAvailable(e){const{userID:t,isAudioAvailable:n}=this._analyzeEventData(e);console.log(`${he.PREFIX}_handleUserAudioAvailable event data: ${a()(e)}.`),this._setRemoteUserInfoAudioVideoAvailable(n,he.AUDIO,t)}_handleUserVoiceVolume(e){try{const{volumeMap:t}=this._analyzeEventData(e);if(0===(t||[]).length)return;const n=nn.getData(w.CALL,he.LOCAL_USER_INFO);let o=nn.getData(w.CALL,he.REMOTE_USER_INFO_LIST);const[a]=W()(t).call(t,e=>e.userId===n.userId),i=te()(t).call(t,(e,t)=>t.userId!==n.userId?{...e,[t.userId]:t.audioVolume}:e,{});n.volume=a.audioVolume,o=V()(o).call(o,e=>({...e,volume:i[e.userId]}));const r={[he.LOCAL_USER_INFO]:n,[he.REMOTE_USER_INFO_LIST]:o};nn.updateStore(r,w.CALL)}catch(t){console.debug(t)}}_handleDeviceUpdate(e){const{cameraList:t,microphoneList:n,speakerList:o,currentCamera:a,currentMicrophone:i,currentSpeaker:r}=e;nn.update(w.CALL,he.DEVICE_LIST,{cameraList:t,microphoneList:n,speakerList:o,currentCamera:a,currentMicrophone:i,currentSpeaker:r})}_updateDeviceList(){const e=nn.getData(w.CALL,he.CALL_MEDIA_TYPE);e===_.VIDEO&&this._tuiCallEngine.getDeviceList("camera").then(e=>{const t=nn.getData(w.CALL,he.DEVICE_LIST),n=(null===e||void 0===e?void 0:e[0])||{};nn.update(w.CALL,he.DEVICE_LIST,{...t,cameraList:e,currentCamera:n})}).catch(e=>{console.error(`${he.PREFIX}updateCameraList failed, error: ${e}.`)}),this._tuiCallEngine.getDeviceList("microphones").then(e=>{const t=nn.getData(w.CALL,he.DEVICE_LIST),n=(null===e||void 0===e?void 0:e[0])||{};nn.update(w.CALL,he.DEVICE_LIST,{...t,microphoneList:e,currentMicrophone:n})}).catch(e=>{console.error(`${he.PREFIX}updateMicrophoneList failed, error: ${e}.`)})}_handleCallError(e,t){if(!rt(e))throw this._noDevicePermissionToast(e,_.AUDIO),console.error(`${he.PREFIX}${t} failed, error: ${e}.`),this._resetCallStore(),e}setCallback(e){const{beforeCalling:t,afterCalling:n,onMinimized:o,onMessageSentByMe:a,kickedOut:i,statusChanged:r}=e;t&&(this.beforeCalling=t),n&&(this.afterCalling=n),o&&(this.onMinimized=o),a&&(this.onMessageSentByMe=a),i&&(this.kickedOut=i),r&&(this.statusChanged=r)}async getDeviceList(e){try{const t=await this._tuiCallEngine.getDeviceList(e);return t}catch(t){this._handleCallError(t,"call")}}toggleMinimize(){const e=nn.getData(w.CALL,he.IS_MINIMIZED);nn.update(w.CALL,he.IS_MINIMIZED,!e),console.log(`${he.PREFIX}toggleMinimize: ${e} -> ${!e}.`),this.onMinimized&&this.onMinimized(e,!e)}_executeExternalBeforeCalling(){this.beforeCalling&&this.beforeCalling()}_executeExternalAfterCalling(){this.afterCalling&&this.afterCalling()}setVideoDisplayMode(e){nn.update(w.CALL,he.DISPLAY_MODE,e)}async setVideoResolution(e){try{if(!e)return;nn.update(w.CALL,he.VIDEO_RESOLUTION,e),await this._tuiCallEngine.setVideoQuality(e)}catch(t){console.warn(`${he.PREFIX}setVideoResolution failed, error: ${t}.`)}}async _startRemoteView(e){if(e){if(!document.getElementById(e))return console.warn(`${he.PREFIX}_startRemoteView can't find HTMLElement sid: ${e}`),oe.a.reject();try{const t=nn.getData(w.CALL,he.DISPLAY_MODE);await this._tuiCallEngine.startRemoteView({userID:e,videoViewDomID:e,options:{objectFit:t}})}catch(t){return console.error(`${he.PREFIX}_startRemoteView error: ${t}.`),oe.a.reject(t)}}else console.warn(he.PREFIX+"_startRemoteView userID is empty")}_setRemoteUserInfoAudioVideoAvailable(e,t,n){let o=nn.getData(w.CALL,he.REMOTE_USER_INFO_LIST);o=V()(o).call(o,o=>{if(o.userId===n){if(t===he.AUDIO)return{...o,isAudioAvailable:e};if(t===he.VIDEO)return{...o,isVideoAvailable:e}}return o}),o.length>0&&(nn.update(w.CALL,he.REMOTE_USER_INFO_LIST,o),nn.update(w.CALL,he.REMOTE_USER_INFO_EXCLUDE_VOLUMN_LIST,o))}_setLocalUserInfoAudioVideoAvailable(e,t){let n=nn.getData(w.CALL,he.LOCAL_USER_INFO);t===he.AUDIO&&(n={...n,isAudioAvailable:e}),t===he.VIDEO&&(n={...n,isVideoAvailable:e}),nn.update(w.CALL,he.LOCAL_USER_INFO,n),nn.update(w.CALL,he.LOCAL_USER_INFO_EXCLUDE_VOLUMN,n)}async _updateCallStoreBeforeCall(e,t,n){const o=n||nn.getData(w.CALL,he.IS_MINIMIZED)?Ce.CALLER_GROUP_CALLING_MSG:Ce.CALLER_CALLING_MSG;let a={[he.CALL_MEDIA_TYPE]:e,[he.CALL_ROLE]:S.CALLER,[he.REMOTE_USER_INFO_LIST]:t,[he.REMOTE_USER_INFO_EXCLUDE_VOLUMN_LIST]:t,[he.IS_GROUP]:!!n,[he.CALL_TIPS]:ke(o),[he.GROUP_ID]:n};nn.updateStore({...a,[he.CALL_STATUS]:T.CALLING},w.CALL),this.statusChanged&&this.statusChanged({oldStatus:se.IDLE,newStatus:n?se.DIALING_GROUP:se.DIALING_C2C}),this._updateDeviceList();const i=await Pt(V()(t).call(t,e=>e.userId),this.getTim(),nn);i.length>0&&(nn.update(w.CALL,he.REMOTE_USER_INFO_LIST,i),nn.update(w.CALL,he.REMOTE_USER_INFO_EXCLUDE_VOLUMN_LIST,i))}async _updateCallStoreAfterCall(e,t){if(t){if(nn.update(w.CALL,he.IS_CLICKABLE,!0),nn.update(w.CALL,he.ROOM_ID,t.roomID),0!==t.code)return void this._resetCallStore();{const e=nn.getData(w.CALL,he.CALL_MEDIA_TYPE);e===_.VIDEO&&await this.openCamera(he.LOCAL_VIDEO);try{await this._tuiCallEngine.setVideoQuality(nn.getData(w.CALL,he.VIDEO_RESOLUTION))}catch(n){console.warn(`${he.PREFIX}setVideoQuality failed, error: ${n}.`)}}const e=nn.getData(w.CALL,he.LOCAL_USER_INFO);nn.update(w.CALL,he.LOCAL_USER_INFO,{...e,isEnter:!0}),nn.update(w.CALL,he.LOCAL_USER_INFO_EXCLUDE_VOLUMN,{...e,isEnter:!0}),this._setLocalUserInfoAudioVideoAvailable(!0,he.AUDIO)}else this._resetCallStore()}_resetCurrentDevice(){const{cameraList:e,microphoneList:t,speakerList:n}=nn.getData(w.CALL,he.DEVICE_LIST);nn.update(w.CALL,he.DEVICE_LIST,{microphoneList:t,cameraList:e,speakerList:n,currentCamera:(null===e||void 0===e?void 0:e[0])||{},currentMicrophone:(null===t||void 0===t?void 0:t[0])||{},currentSpeaker:(null===n||void 0===n?void 0:n[0])||{}})}_resetCallStore(){var e;const t=Ft(nn);this._stopTimer();let n=W()(e=K()(be)).call(e,e=>{switch(be[e]){case he.CALL_STATUS:case he.LANGUAGE:case he.IS_GROUP:case he.DISPLAY_MODE:case he.VIDEO_RESOLUTION:case he.ENABLE_FLOAT_WINDOW:case he.LOCAL_USER_INFO:case he.LOCAL_USER_INFO_EXCLUDE_VOLUMN:return!1;default:return!0}});n=V()(n).call(n,e=>be[e]),nn.reset(w.CALL,n);const o=nn.getData(w.CALL,he.CALL_STATUS);o!==T.IDLE&&nn.reset(w.CALL,[he.CALL_STATUS],!0),nn.reset(w.CALL,[he.IS_MINIMIZED],!0),nn.reset(w.CALL,[he.IS_EAR_PHONE],!0),nn.update(w.CALL,he.LOCAL_USER_INFO,{...nn.getData(w.CALL,he.LOCAL_USER_INFO),isVideoAvailable:!1,isAudioAvailable:!1}),nn.update(w.CALL,he.LOCAL_USER_INFO_EXCLUDE_VOLUMN,{...nn.getData(w.CALL,he.LOCAL_USER_INFO_EXCLUDE_VOLUMN),isVideoAvailable:!1,isAudioAvailable:!1}),nn.update(w.CALL,he.REMOTE_USER_INFO_LIST,[]),nn.update(w.CALL,he.REMOTE_USER_INFO_EXCLUDE_VOLUMN_LIST,[]),this._resetCurrentDevice();const a=Ft(nn);t!==a&&this.statusChanged&&this.statusChanged({oldStatus:t,newStatus:a})}_noDevicePermissionToast(e,t){if(window.parent.postMessage(a()({code:"permissionError",msg:"打开麦克风/摄像头失败,请检查设备连接状态并开启相关权限"}),"*"),st(e)){var n;let o="";t===_.AUDIO&&(o=Gt(nn,Ce.NO_MICROPHONE_DEVICE_PERMISSION)),t===_.VIDEO&&(o=Gt(nn,Ce.NO_CAMERA_DEVICE_PERMISSION));const a=null===(n=this._tuiCallEngine)||void 0===n?void 0:n.getDevicePermission();null!==a&&void 0!==a&&a.audio||nn.update(w.CALL,he.SHOW_PERMISSION_TIP,!0),console.error(`${he.PREFIX}call failed, error: ${e.message}.`)}}_startTimer(){var e;-1===this._timerId&&(this._startTimeStamp=lt(),this._timerId=Qt.run(he.TIMEOUT,ie()(e=this._updateCallDuration).call(e,this),{delay:1e3}))}_updateCallDuration(){const e=Math.round((lt()-this._startTimeStamp)/1e3),t=it(e);nn.update(w.CALL,he.CALL_DURATION,t)}_stopTimer(){-1!==this._timerId&&(Qt.clearTask(this._timerId),this._timerId=-1)}_deleteRemoteUser(e){if(0===e.length)return;let t=nn.getData(w.CALL,he.REMOTE_USER_INFO_LIST);X()(e).call(e,e=>{t=W()(t).call(t,t=>t.userId!==e)}),nn.update(w.CALL,he.REMOTE_USER_INFO_LIST,t),nn.update(w.CALL,he.REMOTE_USER_INFO_EXCLUDE_VOLUMN_LIST,t)}_analyzeEventData(e){return e||{}}async getGroupMemberList(e,t){const n=nn.getData(w.CALL,he.GROUP_ID);let o=await Ht(n,this.getTim(),e,t);return o}async getGroupProfile(){const e=nn.getData(w.CALL,he.GROUP_ID);return await zt(e,this.getTim())}_watchTUIStore(){null===nn||void 0===nn||nn.watch(w.CALL,{[he.CALL_STATUS]:this._handleCallStatusChange})}_unwatchTUIStore(){null===nn||void 0===nn||nn.unwatch(w.CALL,{[he.CALL_STATUS]:this._handleCallStatusChange})}bindTUICore(e){this._TUICore=e}}Object(B["a"])(rn,"instance",void 0),Object(re["a"])([wt(),Ut(Vt.init)],rn.prototype,"init",null),Object(re["a"])([wt(),Ut(Vt.call)],rn.prototype,"call",null),Object(re["a"])([wt(),Ut(Vt.groupCall)],rn.prototype,"groupCall",null),Object(re["a"])([wt(),Ut(Vt.inviteUser)],rn.prototype,"inviteUser",null),Object(re["a"])([wt(),Ut(Vt.joinInGroupCall)],rn.prototype,"joinInGroupCall",null),Object(re["a"])([Ut(Vt.setLanguage)],rn.prototype,"setLanguage",null),Object(re["a"])([Ut(Vt.enableFloatWindow)],rn.prototype,"enableFloatWindow",null),Object(re["a"])([Ut(Vt.setSelfInfo)],rn.prototype,"setSelfInfo",null),Object(re["a"])([Ut(Vt.enableAIVoice)],rn.prototype,"enableAIVoice",null),Object(re["a"])([Ut(Vt.setCallingBell)],rn.prototype,"setCallingBell",null),Object(re["a"])([Ut(Vt.enableMuteMode)],rn.prototype,"enableMuteMode",null),Object(re["a"])([wt()],rn.prototype,"accept",null),Object(re["a"])([wt()],rn.prototype,"hangup",null),Object(re["a"])([wt()],rn.prototype,"reject",null),Object(re["a"])([wt()],rn.prototype,"openCamera",null),Object(re["a"])([wt()],rn.prototype,"closeCamera",null),Object(re["a"])([wt()],rn.prototype,"openMicrophone",null),Object(re["a"])([wt()],rn.prototype,"closeMicrophone",null),Object(re["a"])([wt()],rn.prototype,"switchScreen",null),Object(re["a"])([wt()],rn.prototype,"switchCallMediaType",null),Object(re["a"])([wt()],rn.prototype,"switchCamera",null),Object(re["a"])([wt()],rn.prototype,"switchDevice",null),Object(re["a"])([Ut(Vt.setVideoDisplayMode)],rn.prototype,"setVideoDisplayMode",null),Object(re["a"])([Ut(Vt.setVideoResolution)],rn.prototype,"setVideoResolution",null),Object(re["a"])([gt({retries:5,timeout:200,onRetrying(e){console.warn(`${he.PREFIX}_startRemoteView, retrying [${e}]`)}})],rn.prototype,"_startRemoteView",null);const sn=rn.getInstance();var ln=n("80de"),cn=n.n(ln);const dn={class:"singleInvite-message"},un=["src"],pn={class:"singleInvite-nick"},mn={key:0,class:"singleInvite-tips"};var bn=Object(i["defineComponent"])({__name:"SingleAudio",props:{isSponsor:{type:Boolean,required:!0},remoteUsersList:{type:Array,required:!0},callAlertMessage:{type:String,required:!0},callStatus:{type:String,required:!0}},setup(e){function t(e){e.target.src=cn.a}return(n,o)=>(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",dn,[Object(i["createElementVNode"])("img",{class:"singleInvite-avatar",src:e.remoteUsersList[0].avatar||Object(i["unref"])(cn.a),onerror:t},null,8,un),Object(i["createElementVNode"])("div",pn,Object(i["toDisplayString"])(e.remoteUsersList[0].displayUserInfo),1),e.callStatus===Object(i["unref"])(T).CALLING?(Object(i["openBlock"])(),Object(i["createElementBlock"])("span",mn,Object(i["toDisplayString"])(e.callAlertMessage),1)):Object(i["createCommentVNode"])("",!0)]))}});n("46f9");const hn=c()(bn,[["__scopeId","data-v-660d726b"]]);var vn=hn;const fn={class:"singleInvite-box"},gn={class:"singleInvite-message"},On={class:"singleInvite-nick"},jn={class:"singleInvite-tips"},yn=["src"];var In=Object(i["defineComponent"])({__name:"SingleVideo",props:{isSponsor:{type:Boolean,required:!0},remoteUsersList:{type:Array,required:!0},callAlertMessage:{type:String,required:!0}},setup(e){function t(e){e.target.src=cn.a}return(n,o)=>(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",fn,[Object(i["createElementVNode"])("div",gn,[Object(i["createElementVNode"])("div",On,Object(i["toDisplayString"])(e.remoteUsersList[0].displayUserInfo),1),Object(i["createElementVNode"])("span",jn,Object(i["toDisplayString"])(e.callAlertMessage),1)]),Object(i["createElementVNode"])("img",{class:"singleInvite-avatar",src:e.remoteUsersList[0].avatar||Object(i["unref"])(cn.a),onerror:t},null,8,yn)]))}});n("4f76");const Cn=c()(In,[["__scopeId","data-v-01909bfc"]]);var En=Cn;const kn={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",class:"design-iconfont"},wn={key:0},_n={key:1},Sn={key:2};var Tn=Object(i["defineComponent"])({__name:"MicVolume",props:{volume:{}},setup(e){return(t,n)=>(Object(i["openBlock"])(),Object(i["createElementBlock"])("svg",kn,[e.volume&&e.volume>0?(Object(i["openBlock"])(),Object(i["createElementBlock"])("g",wn,[...n[0]||(n[0]=[Object(i["createElementVNode"])("path",{d:"M8.62462 7.17395C8.90076 7.17395 9.12462 7.38807 9.12462 7.65221C9.12462 7.89434 8.93651 8.09444 8.69246 8.12611L8.62462 8.13047H7.3335C7.05735 8.13047 6.8335 7.91635 6.8335 7.65221C6.8335 7.41009 7.0216 7.20998 7.26565 7.17832L7.3335 7.17395H8.62462Z",fill:"#43D92B"},null,-1)])])):Object(i["createCommentVNode"])("",!0),e.volume&&e.volume>5?(Object(i["openBlock"])(),Object(i["createElementBlock"])("g",_n,[...n[1]||(n[1]=[Object(i["createElementVNode"])("path",{d:"M8.62462 5.57971C8.90076 5.57971 9.12462 5.79384 9.12462 6.05797C9.12462 6.3001 8.93651 6.5002 8.69246 6.53187L8.62462 6.53623H7.3335C7.05735 6.53623 6.8335 6.32211 6.8335 6.05797C6.8335 5.81585 7.0216 5.61575 7.26565 5.58408L7.3335 5.57971H8.62462Z",fill:"#43D92B"},null,-1)])])):Object(i["createCommentVNode"])("",!0),e.volume&&e.volume>10?(Object(i["openBlock"])(),Object(i["createElementBlock"])("g",Sn,[...n[2]||(n[2]=[Object(i["createElementVNode"])("path",{d:"M8.62462 3.98547C8.90076 3.98547 9.12462 4.1996 9.12462 4.46373C9.12462 4.70586 8.93651 4.90596 8.69246 4.93763L8.62462 4.942H7.3335C7.05735 4.942 6.8335 4.72787 6.8335 4.46373C6.8335 4.22161 7.0216 4.02151 7.26565 3.98984L7.3335 3.98547H8.62462Z",fill:"#43D92B"},null,-1)])])):Object(i["createCommentVNode"])("",!0),n[3]||(n[3]=Object(i["createElementVNode"])("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M11.3301 3.45938C11.2517 1.89175 9.77808 0.658081 8 0.658081C6.17253 0.658081 4.66667 1.96123 4.66667 3.59077V7.72539L4.66994 7.85678C4.7483 9.42442 6.22192 10.6581 8 10.6581C9.82747 10.6581 11.3333 9.35493 11.3333 7.72539V3.59077L11.3301 3.45938ZM6.0035 3.54179C6.06337 2.69234 6.92083 1.99146 8.00016 1.99146C9.11947 1.99146 10.0002 2.74521 10.0002 3.63675V7.67949L9.99682 7.77446C9.93695 8.62391 9.07949 9.32479 8.00016 9.32479C6.88086 9.32479 6.00016 8.57103 6.00016 7.67949V3.63675L6.0035 3.54179ZM8.33333 15.3333C8.51743 15.3333 8.66667 15.1841 8.66667 15V13.2964C11.5402 12.9793 14 10.6655 14 8.27322V7.68092C14 7.49682 13.8508 7.34758 13.6667 7.34758H13C12.8159 7.34758 12.6667 7.49682 12.6667 7.68092V8.27322L12.6634 8.39309C12.5681 10.1524 10.3982 11.9979 8.00396 12C8.00264 12 8.00132 12 8 12C7.99868 12 7.99736 12 7.99604 12C5.54737 11.9979 3.33333 10.0675 3.33333 8.27322L3.33043 7.65652C3.32956 7.47164 3.17839 7.32278 2.99352 7.32477L2.32975 7.33191C2.14706 7.33387 2 7.48252 2 7.66522V8.27322L2.00292 8.4162C2.09825 10.757 4.51708 12.9856 7.33333 13.2964V15C7.33333 15.1841 7.48257 15.3333 7.66667 15.3333H8.33333Z",fill:"#fff"},null,-1))]))}});const Ln=Tn;var An=Ln;const Dn={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",class:"design-iconfont"};function Nn(e,t){return Object(i["openBlock"])(),Object(i["createElementBlock"])("svg",Dn,[...t[0]||(t[0]=[Object(i["createElementVNode"])("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M4.82825 12.4759C5.58172 12.9048 6.43742 13.1978 7.33333 13.2967V15.0002C7.33333 15.1843 7.48257 15.3335 7.66667 15.3335H8.33333C8.51743 15.3335 8.66667 15.1843 8.66667 15.0002V13.2967C11.5402 12.9796 14 10.6658 14 8.27347V7.68116C14 7.49707 13.8508 7.34783 13.6667 7.34783H13C12.8159 7.34783 12.6667 7.49707 12.6667 7.68116V8.27347L12.6634 8.39333C12.5681 10.1526 10.3982 11.9982 8.00396 12.0002L8 12.0002L7.99604 12.0002C7.22514 11.9996 6.47749 11.8078 5.81487 11.4893L4.82825 12.4759ZM6.83168 10.4725C7.196 10.5927 7.5899 10.6583 8 10.6583C9.82747 10.6583 11.3333 9.35517 11.3333 7.72563V5.97083L6.83168 10.4725ZM10.9068 2.1547L4.73629 8.32524C4.70043 8.17327 4.67793 8.01689 4.66994 7.85702L4.66667 7.72563V3.59102C4.66667 1.96148 6.17253 0.658325 8 0.658325C9.24072 0.658325 10.3332 1.25901 10.9068 2.1547ZM3.62455 9.43698L2.64622 10.4153C2.26208 9.78985 2.03108 9.10804 2.00292 8.41644L2 8.27347V7.66546C2 7.48277 2.14706 7.33411 2.32975 7.33215L2.99352 7.32502C3.17839 7.32303 3.32956 7.47188 3.33043 7.65676L3.33333 8.27347C3.33333 8.66191 3.4371 9.05672 3.62455 9.43698Z",fill:"#fff"},null,-1),Object(i["createElementVNode"])("rect",{x:".609863",y:"13.4514",width:"19.0127",height:"1.5",rx:".75",transform:"rotate(-45 .609863 13.4514)",fill:"#FE3C44"},null,-1)])])}const Un={},Bn=c()(Un,[["render",Nn]]);var Mn=Bn;const Vn={key:0,class:"singleInvite-header-mobile"},Rn={key:1,class:"singleInvite-header-desktop"},xn={class:"singleInvite-message"},Pn={class:"singleInvite-nick"},Gn={class:"singleInvite-nick-span"},Fn={key:0,class:"microphone-icon-container"},Hn={key:0,class:"singleInvite-tips"};var zn=Object(i["defineComponent"])({__name:"InviteInfo",setup(e){const{CALL_ROLE:t,CALL_MEDIA_TYPE:n,IS_GROUP:o,REMOTE_USER_INFO_LIST:a,CALL_STATUS:r,CALL_TIPS:s}=he,l=Object(i["ref"])(nn.getData(w.CALL,t)),c=Object(i["ref"])(nn.getData(w.CALL,n)),d=Object(i["ref"])(nn.getData(w.CALL,o)),u=Object(i["ref"])(nn.getData(w.CALL,a)),p=Object(i["ref"])(nn.getData(w.CALL,r)),m=Object(i["ref"])(nn.getData(w.CALL,s)),b=!tn.isPC,h=l.value===S.CALLER,v=e=>{l.value=e},f=e=>{d.value=e},g=e=>{c.value=e},O=e=>{u.value=e},j=e=>{p.value=e},y=e=>{m.value=e};return Object(i["onMounted"])(()=>{nn.watch(w.CALL,{[t]:v,[o]:f,[n]:g,[a]:O,[r]:j,[s]:y},{notifyRangeWhenWatch:he.MYSELF})}),Object(i["onUnmounted"])(()=>{nn.unwatch(w.CALL,{[r]:j,[n]:g,[t]:v,[o]:f,[a]:O,[s]:y})}),(e,t)=>(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",null,[!Object(i["unref"])(d)&&b?(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",Vn,[Object(i["unref"])(c)===Object(i["unref"])(_).AUDIO&&0!==Object(i["unref"])(u).length?(Object(i["openBlock"])(),Object(i["createBlock"])(vn,{key:0,class:"singleAudio","remote-users-list":Object(i["unref"])(u),"is-sponsor":h,"call-alert-message":Object(i["unref"])(m),"call-status":Object(i["unref"])(p)},null,8,["remote-users-list","call-alert-message","call-status"])):Object(i["createCommentVNode"])("",!0),Object(i["unref"])(c)===Object(i["unref"])(_).VIDEO&&0!==Object(i["unref"])(u).length?(Object(i["openBlock"])(),Object(i["createBlock"])(En,{key:1,class:"singleVideo","remote-users-list":Object(i["unref"])(u),"is-sponsor":h,"call-alert-message":Object(i["unref"])(m)},null,8,["remote-users-list","call-alert-message"])):Object(i["createCommentVNode"])("",!0)])):Object(i["createCommentVNode"])("",!0),Object(i["unref"])(d)||b||0===Object(i["unref"])(u).length?Object(i["createCommentVNode"])("",!0):(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",Rn,[Object(i["createElementVNode"])("div",xn,[Object(i["createElementVNode"])("div",Pn,[Object(i["createElementVNode"])("div",Gn,Object(i["toDisplayString"])(Object(i["unref"])(u)[0].displayUserInfo),1),Object(i["unref"])(c)===Object(i["unref"])(_).AUDIO&&"connected"===Object(i["unref"])(p)?(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",Fn,[Object(i["unref"])(u)[0].isAudioAvailable?(Object(i["openBlock"])(),Object(i["createBlock"])(An,{key:0,volume:Object(i["unref"])(u)[0].volume},null,8,["volume"])):(Object(i["openBlock"])(),Object(i["createBlock"])(Mn,{key:1}))])):Object(i["createCommentVNode"])("",!0)]),Object(i["unref"])(p)!==Object(i["unref"])(T).CONNECTED?(Object(i["openBlock"])(),Object(i["createElementBlock"])("span",Hn,Object(i["toDisplayString"])(Object(i["unref"])(m)),1)):Object(i["createCommentVNode"])("",!0)])]))]))}});n("b27e");const Kn=zn;var Yn=Kn,Wn=n("baef"),$n=n.n(Wn),qn=n("a090"),Qn=n.n(qn),Xn=n("aa07"),Zn=n.n(Xn),Jn=n("c0e7"),eo=n.n(Jn);const to={class:"btn-container"},no=["src"],oo=["src"];var ao=Object(i["defineComponent"])({__name:"IconBtn",props:{text:{type:String,default:""},icon:{type:String},size:{type:Number},loadingIcon:{type:String,default:eo.a},loading:{type:Boolean,default:!1},isMobile:{type:Boolean,default:!1}},emits:["click"],setup(e,{emit:t}){const n=e,o=Object(i["computed"])(()=>"btn-body "+(n.isMobile?"mobile":"desktop")),a=Object(i["computed"])(()=>"btn-text "+(n.isMobile?"mobile":"desktop")),r=t,s=()=>{!n.loading&&r("click")},l=Object(i["computed"])(()=>{const e=n.size?n.size:n.isMobile?50:40,t=n.size?n.size:n.isMobile?50:40;return{width:e+"px",height:t+"px"}});return(t,n)=>(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",to,[Object(i["createElementVNode"])("div",{class:Object(i["normalizeClass"])(Object(i["unref"])(o)),onClick:s,style:Object(i["normalizeStyle"])({width:Object(i["unref"])(l).width,height:Object(i["unref"])(l).height})},[e.loading?(Object(i["openBlock"])(),Object(i["createElementBlock"])("img",{key:0,class:"invite-calling-item-loading",src:e.loadingIcon},null,8,no)):Object(i["createCommentVNode"])("",!0),e.icon&&!e.loading?(Object(i["openBlock"])(),Object(i["createElementBlock"])("img",{key:1,src:e.icon},null,8,oo)):Object(i["createCommentVNode"])("",!0),Object(i["renderSlot"])(t.$slots,"default")],6),Object(i["createElementVNode"])("div",{class:Object(i["normalizeClass"])(Object(i["unref"])(a))},Object(i["toDisplayString"])(e.text),3)]))}});n("1cc6");const io=c()(ao,[["__scopeId","data-v-b0182c64"]]);var ro=io,so=Object(i["defineComponent"])({__name:"Hangup",props:{isMobile:{type:Boolean,required:!0},isClickable:{type:Boolean,required:!0},isGroupCall:{type:Boolean,required:!0},callType:{type:Number,required:!0}},setup(e){const t=e,n=t.isMobile?$n.a:Qn.a,o=t.isMobile&&!t.isGroupCall&&t.callType===_.VIDEO,a=!t.isMobile||o?eo.a:Zn.a,r=async()=>{await sn.hangup()};return(t,o)=>(Object(i["openBlock"])(),Object(i["createBlock"])(ro,{loadingIcon:Object(i["unref"])(a),loading:!e.isClickable,icon:Object(i["unref"])(n),text:Object(i["unref"])(ke)("hangup"),isMobile:e.isMobile,onClick:r},null,8,["loadingIcon","loading","icon","text","isMobile"]))}});n("e888");const lo=c()(so,[["__scopeId","data-v-6e723204"]]);var co=lo,uo=n("1bba"),po=n.n(uo),mo=Object(i["defineComponent"])({__name:"SwitchCamera",setup(e){function t(){sn.switchCamera()}return(e,n)=>(Object(i["openBlock"])(),Object(i["createBlock"])(ro,{icon:Object(i["unref"])(po.a),size:32,text:" ",isMobile:!0,onClick:t},null,8,["icon"]))}});n("0817");const bo=c()(mo,[["__scopeId","data-v-629d4b52"]]);var ho=bo,vo=n("4d2b"),fo=n.n(vo),go=n("ccb2"),Oo=n.n(go),jo=n("e083"),yo=n.n(jo),Io=Object(i["defineComponent"])({__name:"Accept",props:{isMobile:{type:Boolean,required:!0},callType:{type:Number,required:!0}},setup(e){const t=e,n=t.isMobile?fo.a:t.callType===_.AUDIO?Oo.a:yo.a,o=async()=>{await sn.accept()};return(t,a)=>(Object(i["openBlock"])(),Object(i["createBlock"])(ro,{icon:Object(i["unref"])(n),text:Object(i["unref"])(ke)("accept"),isMobile:e.isMobile,onClick:o},null,8,["icon","text","isMobile"]))}});const Co=Io;var Eo=Co,ko=Object(i["defineComponent"])({__name:"Reject",props:{isMobile:{type:Boolean,required:!0}},setup(e){const t=e,n=t.isMobile?$n.a:Qn.a,o=async()=>{await sn.reject()};return(t,a)=>(Object(i["openBlock"])(),Object(i["createBlock"])(ro,{icon:Object(i["unref"])(n),text:Object(i["unref"])(ke)("reject"),isMobile:e.isMobile,onClick:o},null,8,["icon","text","isMobile"]))}});const wo=ko;var _o=wo,So=n("f172"),To=n.n(So),Lo=n("907b"),Ao=n.n(Lo);const Do={class:"call-operate"},No=["src"];var Uo=Object(i["defineComponent"])({__name:"SwitchAudioCall",props:{isMobile:{type:Boolean,required:!0}},setup(e){const t=e,n=t.isMobile?To.a:Ao.a,o=t.isMobile?"btn-operate-mobile":"btn-operate-desktop",a=t.isMobile?28:40,r=async()=>{await sn.switchCallMediaType()};return(t,s)=>(Object(i["openBlock"])(),Object(i["createBlock"])(ro,{class:Object(i["normalizeClass"])(Object(i["unref"])(o)),style:{width:"40px"},size:Object(i["unref"])(a),text:Object(i["unref"])(ke)("video-to-audio"),isMobile:e.isMobile,onClick:r},{default:Object(i["withCtx"])(()=>[Object(i["createElementVNode"])("div",Do,[Object(i["createElementVNode"])("img",{class:"operate-img",src:Object(i["unref"])(n)},null,8,No)])]),_:1},8,["class","size","text","isMobile"]))}});n("9aba");const Bo=c()(Uo,[["__scopeId","data-v-008b0eb1"]]);var Mo=Bo,Vo=n("d281"),Ro=n.n(Vo),xo=n("8801"),Po=n.n(xo),Go=n("4751"),Fo=n.n(Go),Ho=n("5432"),zo=n.n(Ho),Ko=n("7613"),Yo=n.n(Ko);const Wo={class:"body"},$o=180;var qo=Object(i["defineComponent"])({__name:"Popover",props:{showPopover:{type:Boolean},targetBoundingClientRect:{},width:{}},setup(e){const t=e,n=Object(i["ref"])(!1),o=Object(i["ref"])();return Object(i["watch"])(()=>t.showPopover,()=>{n.value=t.showPopover}),Object(i["watch"])(()=>t.targetBoundingClientRect,()=>{const{width:e,height:n}=t.targetBoundingClientRect;o.value={left:e/2-$o/2+"px",bottom:n+10+"px"}}),(e,t)=>Object(i["unref"])(n)?(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",{key:0,class:"popover-container",style:Object(i["normalizeStyle"])(Object(i["unref"])(o))},[Object(i["createElementVNode"])("div",Wo,[Object(i["renderSlot"])(e.$slots,"default")]),t[0]||(t[0]=Object(i["createElementVNode"])("div",{class:"triangle"},null,-1))],4)):Object(i["createCommentVNode"])("",!0)}});n("11aa");const Qo=c()(qo,[["__scopeId","data-v-5aed287a"]]);var Xo=Qo;const Zo={class:"scroll-container"},Jo={class:"scroll-content"},ea=["onClick"];var ta=Object(i["defineComponent"])({__name:"DeviceSelectPopover",props:{isMobile:{type:Boolean},deviceType:{},targetBoundingClientRect:{},showDeviceSelect:{type:Boolean}},setup(e){const t=e,n=Object(i["ref"])(""),o=Object(i["ref"])(nn.getData(w.CALL,he.LOCAL_USER_INFO)),a=Object(i["ref"])(nn.getData(w.CALL,he.DEVICE_LIST)),r=Object(i["ref"])("");Object(i["watch"])(()=>{var e,n;return t.deviceType===ce.MICROPHONE?null===(e=o.value)||void 0===e?void 0:e.isAudioAvailable:null===(n=o.value)||void 0===n?void 0:n.isVideoAvailable},()=>{var e,a;const i=t.deviceType===ce.MICROPHONE?null===(e=o.value)||void 0===e?void 0:e.isAudioAvailable:null===(a=o.value)||void 0===a?void 0:a.isVideoAvailable,r=i?"close":"open";n.value=`${r} ${t.deviceType}`},{deep:!0,immediate:!0});const s=async()=>{var e,n;t.deviceType===ce.CAMERA&&(null!==(e=o.value)&&void 0!==e&&e.isVideoAvailable?await sn.closeCamera():await sn.openCamera("localVideo"));t.deviceType===ce.MICROPHONE&&(null!==(n=o.value)&&void 0!==n&&n.isAudioAvailable?await sn.closeMicrophone():await sn.openMicrophone())},l=async e=>{try{await sn.switchDevice({deviceType:t.deviceType===ce.CAMERA?"video":"audio",deviceId:e}),r.value=e}catch(n){console.error(n)}},c=e=>{o.value=e},d=e=>{var n;if(t.deviceType===ce.CAMERA)a.value=(null===e||void 0===e?void 0:e.cameraList)||[],r.value=(null===e||void 0===e||null===(n=e.currentCamera)||void 0===n?void 0:n.deviceId)||"";else if(t.deviceType===ce.MICROPHONE){var o;r.value=(null===e||void 0===e||null===(o=e.currentMicrophone)||void 0===o?void 0:o.deviceId)||"",a.value=(null===e||void 0===e?void 0:e.microphoneList)||[]}};return Object(i["onMounted"])(()=>{nn.watch(w.CALL,{[he.LOCAL_USER_INFO]:c,[he.DEVICE_LIST]:d},{notifyRangeWhenWatch:he.MYSELF})}),Object(i["onUnmounted"])(()=>{nn.unwatch(w.CALL,{[he.LOCAL_USER_INFO]:c,[he.DEVICE_LIST]:d})}),(t,o)=>e.isMobile?Object(i["createCommentVNode"])("",!0):(Object(i["openBlock"])(),Object(i["createBlock"])(Xo,{key:0,class:"device-select-container",showPopover:e.showDeviceSelect,targetBoundingClientRect:e.targetBoundingClientRect},{default:Object(i["withCtx"])(()=>[Object(i["createElementVNode"])("div",Zo,[Object(i["createElementVNode"])("div",Jo,[(Object(i["openBlock"])(!0),Object(i["createElementBlock"])(i["Fragment"],null,Object(i["renderList"])(Object(i["unref"])(a),e=>(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",{class:Object(i["normalizeClass"])(["device-select-label",e.deviceId===Object(i["unref"])(r)?"select":""]),key:e.deviceId,onClick:()=>l(e.deviceId)},[Object(i["createElementVNode"])("span",null,Object(i["toDisplayString"])(e.label),1)],10,ea))),128))])]),Object(i["createElementVNode"])("div",{class:"device-select-label btn",onClick:s},[Object(i["createElementVNode"])("span",null,Object(i["toDisplayString"])(Object(i["unref"])(ke)(Object(i["unref"])(n))),1)])]),_:1},8,["showPopover","targetBoundingClientRect"]))}});n("a58a");const na=c()(ta,[["__scopeId","data-v-c38e97ec"]]);var oa=na,aa=n("c751"),ia=n.n(aa);function ra(...e){var t,n;let o=null===(t=window)||void 0===t?void 0:t.document,a="",i=()=>{},r={};if("string"===typeof e[0]?[a,i,r]=e:[o,a,i,r]=e,o)return null===(n=o)||void 0===n||n.addEventListener(a,i,r),()=>{var e;null===(e=o)||void 0===e||e.removeEventListener(a,i,r)}}function sa(e,t){let n=()=>{};Object(i["onMounted"])(()=>{const o=n=>{const o=V()(e).call(e,e=>Object(i["unref"])(e)),a=n.composedPath(),r=[];for(let e=0;e!e)&&t()};n=ra("click",o,{passive:!0})}),Object(i["onUnmounted"])(()=>{var e;null===(e=n)||void 0===e||e()})}const la={class:"camera-container"},ca=["src"];var da=Object(i["defineComponent"])({__name:"Microphone",props:{isMobile:{type:Boolean,required:!0}},setup(e){const t=e,n=Object(i["ref"])(),o=Object(i["ref"])(nn.getData(w.CALL,he.LOCAL_USER_INFO)),a=Object(i["ref"])(),r=Object(i["ref"])(),s=Object(i["ref"])("");s.value=t.isMobile?Ro.a:Fo.a;const l=async()=>{var e;null!==(e=o.value)&&void 0!==e&&e.isAudioAvailable?t.isMobile?s.value=Ro.a:s.value=Fo.a:t.isMobile?s.value=Po.a:s.value=zo.a},c=Object(i["ref"])(),d=Object(i["ref"])(!1),u=async()=>{d.value=!d.value};Object(i["watch"])(()=>{var e;return null===(e=o.value)||void 0===e?void 0:e.isAudioAvailable},()=>{l()},{deep:!0,immediate:!0});const p=async()=>{var e;null!==(e=o.value)&&void 0!==e&&e.isAudioAvailable?await sn.closeMicrophone():await sn.openMicrophone()};sa([a,r],()=>{d.value=!1});const m=e=>{o.value=e};return Object(i["onMounted"])(()=>{var e,t;c.value=(null===(e=n.value)||void 0===e||null===(e=e.$el)||void 0===e||null===(t=e.getBoundingClientRect)||void 0===t?void 0:t.call(e))||{},nn.watch(w.CALL,{[he.LOCAL_USER_INFO]:m},{notifyRangeWhenWatch:he.MYSELF})}),Object(i["onUnmounted"])(()=>{nn.unwatch(w.CALL,{[he.LOCAL_USER_INFO]:m})}),(t,o)=>(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",la,[Object(i["createVNode"])(ro,{ref_key:"btnRef",ref:n,icon:Object(i["unref"])(s),text:Object(i["unref"])(ke)("microphone"),isMobile:e.isMobile,onClick:p},null,8,["icon","text","isMobile"]),e.isMobile?Object(i["createCommentVNode"])("",!0):(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",{key:0,ref_key:"arrowRef",ref:r,class:"arrow-btn",onClick:u},[Object(i["createElementVNode"])("img",{class:"arrow-img",src:Object(i["unref"])(Yo.a)},null,8,ca)],512)),e.isMobile?Object(i["createCommentVNode"])("",!0):(Object(i["openBlock"])(),Object(i["createBlock"])(oa,{key:1,ref_key:"deviceSelectRef",ref:a,isMobile:e.isMobile,deviceType:Object(i["unref"])(ce).MICROPHONE,showDeviceSelect:Object(i["unref"])(d),targetBoundingClientRect:Object(i["unref"])(c)},null,8,["isMobile","deviceType","showDeviceSelect","targetBoundingClientRect"]))]))}});n("39aa");const ua=c()(da,[["__scopeId","data-v-1ebe4157"]]);var pa=ua,ma=n("224d"),ba=n.n(ma),ha=n("5f25"),va=n.n(ha),fa=Object(i["defineComponent"])({__name:"Speaker",setup(e){const t=Object(i["ref"])(nn.getData(w.CALL,he.IS_EAR_PHONE)?va.a:ba.a),n=e=>{t.value=e?va.a:ba.a};Object(i["onMounted"])(()=>{nn.watch(w.CALL,{[he.IS_EAR_PHONE]:n})}),Object(i["onUnmounted"])(()=>{nn.unwatch(w.CALL,{[he.IS_EAR_PHONE]:n})});const o=()=>{sn.setSoundMode()};return(e,n)=>(Object(i["openBlock"])(),Object(i["createBlock"])(ro,{icon:Object(i["unref"])(t),text:Object(i["unref"])(ke)("speaker"),isMobile:!0,onClick:o},null,8,["icon","text"]))}});const ga=fa;var Oa=ga,ja=n("1cac"),ya=n.n(ja),Ia=n("5903"),Ca=n.n(Ia),Ea=n("4b1e"),ka=n.n(Ea),wa=n("67c9"),_a=n.n(wa);const Sa={class:"camera-container"},Ta=["src"];var La=Object(i["defineComponent"])({__name:"Camera",props:{isMobile:{type:Boolean,required:!0}},setup(e){const t=e,n=Object(i["ref"])(),o=Object(i["ref"])(""),a=Object(i["ref"])(nn.getData(w.CALL,he.LOCAL_USER_INFO)),r=Object(i["ref"])(),s=Object(i["ref"])();o.value=t.isMobile?ya.a:ka.a;const l=Object(i["ref"])(),c=Object(i["ref"])(!1),d=async()=>{c.value=!c.value},u=async()=>{var e;null!==(e=a.value)&&void 0!==e&&e.isVideoAvailable?t.isMobile?o.value=ya.a:o.value=ka.a:t.isMobile?o.value=Ca.a:o.value=_a.a};Object(i["watch"])(()=>{var e;return null===(e=a.value)||void 0===e?void 0:e.isVideoAvailable},()=>{u()},{deep:!0,immediate:!0});const p=async()=>{var e;null!==(e=a.value)&&void 0!==e&&e.isVideoAvailable?await sn.closeCamera():await sn.openCamera("localVideo")};sa([r,s],()=>{c.value=!1});const m=e=>{a.value=e};return Object(i["onMounted"])(()=>{var e,t;l.value=(null===(e=n.value)||void 0===e||null===(e=e.$el)||void 0===e||null===(t=e.getBoundingClientRect)||void 0===t?void 0:t.call(e))||{},nn.watch(w.CALL,{[he.LOCAL_USER_INFO]:m},{notifyRangeWhenWatch:he.MYSELF})}),Object(i["onUnmounted"])(()=>{nn.unwatch(w.CALL,{[he.LOCAL_USER_INFO]:m})}),(t,a)=>(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",Sa,[Object(i["createVNode"])(ro,{ref_key:"btnRef",ref:n,icon:Object(i["unref"])(o),text:Object(i["unref"])(ke)("camera"),isMobile:e.isMobile,onClick:p},null,8,["icon","text","isMobile"]),e.isMobile?Object(i["createCommentVNode"])("",!0):(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",{key:0,ref_key:"arrowRef",ref:s,class:"arrow-btn",onClick:d},[Object(i["createElementVNode"])("img",{class:"arrow-img",src:Object(i["unref"])(Yo.a)},null,8,Ta)],512)),e.isMobile?Object(i["createCommentVNode"])("",!0):(Object(i["openBlock"])(),Object(i["createBlock"])(oa,{key:1,ref_key:"deviceSelectRef",ref:r,isMobile:e.isMobile,deviceType:Object(i["unref"])(ce).CAMERA,showDeviceSelect:Object(i["unref"])(c),targetBoundingClientRect:Object(i["unref"])(l)},null,8,["isMobile","deviceType","showDeviceSelect","targetBoundingClientRect"]))]))}});n("fc5e");const Aa=c()(La,[["__scopeId","data-v-7d149aa4"]]);var Da=Aa;const Na={class:"text"};var Ua=Object(i["defineComponent"])({__name:"Timer",props:{callDuration:{type:String,required:!0}},setup(e){return(t,n)=>(Object(i["openBlock"])(),Object(i["createElementBlock"])("span",Na,Object(i["toDisplayString"])(e.callDuration),1))}});n("198e");const Ba=c()(Ua,[["__scopeId","data-v-23786eca"]]);var Ma=Ba;const Va={key:0,class:"btn-operate"},Ra={class:"btn-operate"},xa={class:"btn-operate"},Pa={key:0,class:"btn-operate"},Ga={key:1,class:"btn-operate"},Fa={class:"btn-operate"},Ha={key:2,class:"control-wrapper-desktop"},za={class:"panel-button-area"},Ka={key:3,class:"control-wrapper-desktop"},Ya={class:"panel-button-area"};var Wa=Object(i["defineComponent"])({__name:"BtnOperate",setup(e){const t=Object(i["ref"])(nn.getData(w.CALL,he.CALL_ROLE)),n=Object(i["ref"])(nn.getData(w.CALL,he.CALL_MEDIA_TYPE)),o=Object(i["ref"])(nn.getData(w.CALL,he.CALL_STATUS)),a=Object(i["ref"])(nn.getData(w.CALL,he.IS_GROUP)),r=Object(i["ref"])(nn.getData(w.CALL,he.CALL_DURATION)),s=Object(i["ref"])(nn.getData(w.CALL,he.IS_CLICKABLE)),l=!tn.isPC,c=tn.isH5;let d=t.value===S.CALLER;const u=Object(i["ref"])(n.value===_.AUDIO?"black":"white"),p=e=>{d=e===S.CALLER,t.value=e},m=e=>{a.value=e},b=e=>{n.value=e,u.value=n.value===_.AUDIO?"black":"white"},h=e=>{o.value=e},v=e=>{r.value=e},f=e=>{s.value=e};return Object(i["onMounted"])(()=>{nn.watch(w.CALL,{[he.CALL_ROLE]:p,[he.IS_GROUP]:m,[he.CALL_MEDIA_TYPE]:b,[he.CALL_STATUS]:h,[he.CALL_DURATION]:v,[he.IS_CLICKABLE]:f},{notifyRangeWhenWatch:he.MYSELF})}),Object(i["onUnmounted"])(()=>{nn.unwatch(w.CALL,{[he.CALL_ROLE]:p,[he.IS_GROUP]:m,[he.CALL_MEDIA_TYPE]:b,[he.CALL_STATUS]:h,[he.CALL_DURATION]:v,[he.IS_CLICKABLE]:f})}),(e,t)=>(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",null,[Object(i["unref"])(o)===Object(i["unref"])(T).CALLING&&l?(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",{key:0,class:Object(i["normalizeClass"])(["control-wrapper-mobile",Object(i["unref"])(u)])},[Object(i["unref"])(n)===Object(i["unref"])(_).VIDEO&&Object(i["unref"])(d)&&!Object(i["unref"])(c)?(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",Va,[Object(i["createVNode"])(Mo,{class:"mobile-switchAudioCall","is-mobile":l})])):Object(i["createCommentVNode"])("",!0),Object(i["createElementVNode"])("div",Ra,[Object(i["unref"])(d)?Object(i["createCommentVNode"])("",!0):(Object(i["openBlock"])(),Object(i["createBlock"])(_o,{key:0,class:"mobile-reject","is-mobile":l})),Object(i["unref"])(d)?(Object(i["openBlock"])(),Object(i["createBlock"])(co,{key:1,isGroupCall:Object(i["unref"])(a),callType:Object(i["unref"])(n),"is-mobile":l,isClickable:Object(i["unref"])(s)},null,8,["isGroupCall","callType","isClickable"])):Object(i["createCommentVNode"])("",!0),Object(i["unref"])(d)&&Object(i["unref"])(n)===Object(i["unref"])(_).VIDEO&&!Object(i["unref"])(c)?(Object(i["openBlock"])(),Object(i["createBlock"])(ho,{key:2,class:"mobile-switchcamera"})):Object(i["createCommentVNode"])("",!0),Object(i["unref"])(d)?Object(i["createCommentVNode"])("",!0):(Object(i["openBlock"])(),Object(i["createBlock"])(Eo,{key:3,class:"mobile-accept","is-mobile":l,"call-type":Object(i["unref"])(n)},null,8,["call-type"]))])],2)):Object(i["createCommentVNode"])("",!0),Object(i["unref"])(o)===Object(i["unref"])(T).CONNECTED&&l?(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",{key:1,class:Object(i["normalizeClass"])(["control-wrapper-mobile",Object(i["unref"])(u)])},[Object(i["createElementVNode"])("div",xa,[Object(i["createVNode"])(Ma,{"call-duration":Object(i["unref"])(r)},null,8,["call-duration"])]),Object(i["unref"])(n)===Object(i["unref"])(_).VIDEO?(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",Pa,[Object(i["createVNode"])(Mo,{class:"mobile-switchAudioCall","is-mobile":l})])):Object(i["createCommentVNode"])("",!0),Object(i["unref"])(n)===Object(i["unref"])(_).VIDEO?(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",Ga,[Object(i["createVNode"])(pa,{class:"btn","is-mobile":l}),Object(i["unref"])(c)?Object(i["createCommentVNode"])("",!0):(Object(i["openBlock"])(),Object(i["createBlock"])(Oa,{key:0,class:"btn"})),Object(i["createVNode"])(Da,{class:"btn","is-mobile":l})])):Object(i["createCommentVNode"])("",!0),Object(i["createElementVNode"])("div",Fa,[Object(i["unref"])(n)===Object(i["unref"])(_).AUDIO?(Object(i["openBlock"])(),Object(i["createBlock"])(pa,{key:0,class:"btn","is-mobile":l})):Object(i["createCommentVNode"])("",!0),Object(i["createVNode"])(co,{class:"mobile-hangup btn","is-mobile":l,isGroupCall:Object(i["unref"])(a),callType:Object(i["unref"])(n),isClickable:Object(i["unref"])(s)},null,8,["isGroupCall","callType","isClickable"]),Object(i["unref"])(n)!==Object(i["unref"])(_).VIDEO||Object(i["unref"])(c)?Object(i["createCommentVNode"])("",!0):(Object(i["openBlock"])(),Object(i["createBlock"])(ho,{key:1,class:"btn mobile-switchcamera"})),Object(i["unref"])(n)!==Object(i["unref"])(_).AUDIO||Object(i["unref"])(c)?Object(i["createCommentVNode"])("",!0):(Object(i["openBlock"])(),Object(i["createBlock"])(Oa,{key:2,class:"btn"}))])],2)):Object(i["createCommentVNode"])("",!0),Object(i["unref"])(o)!==Object(i["unref"])(T).CALLING||l?Object(i["createCommentVNode"])("",!0):(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",Ha,[Object(i["createElementVNode"])("div",za,[Object(i["unref"])(n)===Object(i["unref"])(_).VIDEO?(Object(i["openBlock"])(),Object(i["createBlock"])(Da,{key:0,class:"btn","is-mobile":l})):Object(i["createCommentVNode"])("",!0),Object(i["unref"])(d)?(Object(i["openBlock"])(),Object(i["createBlock"])(pa,{key:1,class:"btn","is-mobile":l})):Object(i["createCommentVNode"])("",!0),Object(i["unref"])(d)?Object(i["createCommentVNode"])("",!0):(Object(i["openBlock"])(),Object(i["createBlock"])(_o,{key:2,class:"btn","is-mobile":l})),Object(i["unref"])(d)?Object(i["createCommentVNode"])("",!0):(Object(i["openBlock"])(),Object(i["createBlock"])(Eo,{key:3,class:"btn","is-mobile":l,"call-type":Object(i["unref"])(n)},null,8,["call-type"])),Object(i["unref"])(d)?(Object(i["openBlock"])(),Object(i["createBlock"])(co,{key:4,class:"btn",isGroupCall:Object(i["unref"])(a),callType:Object(i["unref"])(n),"is-mobile":l,isClickable:Object(i["unref"])(s)},null,8,["isGroupCall","callType","isClickable"])):Object(i["createCommentVNode"])("",!0)])])),Object(i["unref"])(o)!==Object(i["unref"])(T).CONNECTED||l?Object(i["createCommentVNode"])("",!0):(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",Ka,[Object(i["createElementVNode"])("div",Ya,[Object(i["unref"])(n)===Object(i["unref"])(_).VIDEO?(Object(i["openBlock"])(),Object(i["createBlock"])(Da,{key:0,class:"btn","is-mobile":l})):Object(i["createCommentVNode"])("",!0),Object(i["createVNode"])(pa,{class:"btn","is-mobile":l}),Object(i["unref"])(n)===Object(i["unref"])(_).VIDEO?(Object(i["openBlock"])(),Object(i["createBlock"])(Mo,{key:1,class:"btn","is-mobile":l})):Object(i["createCommentVNode"])("",!0),Object(i["createVNode"])(co,{class:"btn","is-mobile":l,isGroupCall:Object(i["unref"])(a),callType:Object(i["unref"])(n),isClickable:Object(i["unref"])(s)},null,8,["isGroupCall","callType","isClickable"])])]))]))}});n("3fa9");const $a=c()(Wa,[["__scopeId","data-v-79d41074"]]);var qa=$a,Qa=n("559c"),Xa=n.n(Qa);const Za={class:"streamBox"},Ja=["id"],ei={key:1,class:"callDuration-text"},ti={key:0,class:"tag"},ni={class:"microphone-icon-container"},oi={class:"stream-userInfo"},ai=["id"],ii={class:"tag"},ri={class:"microphone-icon-container"},si={class:"stream-userInfo"},li={class:"screenImg"},ci=["src"];var di=Object(i["defineComponent"])({__name:"PusherPlayer",setup(e){const t=Object(i["ref"])(nn.getData(w.CALL,he.CALL_MEDIA_TYPE)),n=Object(i["ref"])(nn.getData(w.CALL,he.CALL_STATUS)),o=Object(i["ref"])("largeView"),a=Object(i["ref"])("smallView"),r=Object(i["ref"])(!0),s=Object(i["ref"])(nn.getData(w.CALL,he.REMOTE_USER_INFO_LIST)),l=Object(i["ref"])(nn.getData(w.CALL,he.LOCAL_USER_INFO)),c=Object(i["ref"])(nn.getData(w.CALL,he.CALL_DURATION)),d=(Object(i["ref"])(!1),Object(i["ref"])(!1)),u=Object(i["ref"])(!1),p=!tn.isPC,m=Object(i["computed"])(()=>n.value===T.CONNECTED&&0!==s.value.length&&t.value===_.VIDEO),b=e=>{l.value=e},h=e=>{var t;u.value=null===(t=e[0])||void 0===t?void 0:t.isEnter,s.value=e},v=e=>{n.value=e},f=e=>{t.value=e},g=e=>{d.value=e},O=()=>{t.value!==_.AUDIO&&d.value&&sn.toggleMinimize()},j=e=>{c.value=e},y=e=>{e&&("localVideo"===e?(o.value="largeView",a.value="smallView",r.value=!0):(a.value="largeView",o.value="smallView",r.value=!1))},I={[he.IS_MINIMIZED]:g,[he.LOCAL_USER_INFO]:b,[he.REMOTE_USER_INFO_LIST]:h,[he.CALL_STATUS]:v,[he.CALL_MEDIA_TYPE]:f,[he.CALL_DURATION]:j,[he.BIG_SCREEN_USER_ID]:y};Object(i["onMounted"])(()=>{nn.watch(w.CALL,I,{notifyRangeWhenWatch:he.MYSELF})}),Object(i["onUnmounted"])(()=>{nn.unwatch(w.CALL,I)});const C=(e,t)=>{n.value!==T.CONNECTED||p&&"largeView"===t||sn.switchScreen(e)};return(e,b)=>(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",Za,[p?Object(i["withDirectives"])((Object(i["openBlock"])(),Object(i["createElementBlock"])("div",{key:0,class:"streamBox-mobile",onClick:O},[Object(i["createElementVNode"])("div",{id:"localVideo",class:Object(i["normalizeClass"])(Object(i["unref"])(o)),onClick:b[0]||(b[0]=e=>C(Object(i["unref"])(r)?Object(i["unref"])(s)[0].domId:"localVideo",Object(i["unref"])(o)))},null,2),0!==Object(i["unref"])(s).length?(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",{key:0,id:Object(i["unref"])(s)[0].domId,class:Object(i["normalizeClass"])(Object(i["unref"])(a)),onClick:b[1]||(b[1]=e=>C(Object(i["unref"])(r)?Object(i["unref"])(s)[0].domId:"localVideo",Object(i["unref"])(a)))},null,10,Ja)):Object(i["createCommentVNode"])("",!0),Object(i["unref"])(d)?(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",ei,Object(i["toDisplayString"])(Object(i["unref"])(n)!==Object(i["unref"])(T).CONNECTED?Object(i["unref"])(ke)("waiting"):Object(i["unref"])(c)),1)):Object(i["createCommentVNode"])("",!0)],512)),[[i["vShow"],Object(i["unref"])(t)===Object(i["unref"])(_).VIDEO]]):Object(i["createCommentVNode"])("",!0),p?Object(i["createCommentVNode"])("",!0):Object(i["withDirectives"])((Object(i["openBlock"])(),Object(i["createElementBlock"])("div",{key:1,class:Object(i["normalizeClass"])(["streamBox-deskTop",Object(i["unref"])(l).isVideoAvailable?"streamDisplay":""])},[Object(i["createElementVNode"])("div",{id:"localVideo",class:Object(i["normalizeClass"])(Object(i["unref"])(o))},[Object(i["unref"])(n)===Object(i["unref"])(T).CONNECTED?(Object(i["openBlock"])(),Object(i["createElementBlock"])("span",ti,[Object(i["createElementVNode"])("div",ni,[Object(i["unref"])(l).isAudioAvailable?(Object(i["openBlock"])(),Object(i["createBlock"])(An,{key:0,volume:Object(i["unref"])(l).volume},null,8,["volume"])):(Object(i["openBlock"])(),Object(i["createBlock"])(Mn,{key:1}))]),Object(i["createElementVNode"])("div",oi,Object(i["toDisplayString"])(`${Object(i["unref"])(l).displayUserInfo} ${Object(i["unref"])(ke)("me")}`),1)])):Object(i["createCommentVNode"])("",!0)],2),Object(i["unref"])(u)?(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",{key:0,class:Object(i["normalizeClass"])(Object(i["unref"])(a))},[Object(i["createElementVNode"])("div",{id:Object(i["unref"])(s)[0].domId,class:"remoteListBox"},[Object(i["createElementVNode"])("span",ii,[Object(i["createElementVNode"])("div",ri,[Object(i["unref"])(s)[0].isAudioAvailable?(Object(i["openBlock"])(),Object(i["createBlock"])(An,{key:0,volume:Object(i["unref"])(s)[0].volume},null,8,["volume"])):(Object(i["openBlock"])(),Object(i["createBlock"])(Mn,{key:1}))]),Object(i["createElementVNode"])("div",si,Object(i["toDisplayString"])(Object(i["unref"])(s)[0].displayUserInfo),1)])],8,ai)],2)):Object(i["createCommentVNode"])("",!0),Object(i["unref"])(m)?(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",{key:1,class:"switchScreenBox",onClick:b[2]||(b[2]=e=>C(Object(i["unref"])(r)?Object(i["unref"])(s)[0].domId:"localVideo"))},[Object(i["createElementVNode"])("div",li,[Object(i["createElementVNode"])("img",{src:Object(i["unref"])(Xa.a)},null,8,ci)])])):Object(i["createCommentVNode"])("",!0)],2)),[[i["vShow"],Object(i["unref"])(t)===Object(i["unref"])(_).VIDEO]])]))}});n("612c"),n("e238");const ui=c()(di,[["__scopeId","data-v-0a5477f0"]]);var pi=ui,mi=Object(i["defineComponent"])({__name:"Pusher",props:{localClass:{type:String,required:!0},currentLocalScreen:{type:Boolean,required:!0}},emits:["toggleViewSize"],setup(e,{emit:t}){const n=Object(i["ref"])(nn.getData(w.CALL,he.PUSHER)),o=Object(i["ref"])(nn.getData(w.CALL,he.CALL_STATUS)),a=e,r=(e,t)=>{o.value===T.CONNECTED&&"large-view"!==a.localClass&&sn.switchScreen(a.currentLocalScreen?"player":"localVideo")},s=e=>{n.value=J()({},n.value,e)},l=e=>{o.value=e},c={[he.PUSHER]:s,[he.CALL_STATUS]:l};function d(e){sn._tuiCallEngine._pusherStateChangeHandler(e)}function u(e){sn._tuiCallEngine._pusherNetStatus(e)}function p(e){sn._tuiCallEngine._pusherNetStatus(e)}function m(e){sn._tuiCallEngine._pusherAudioVolumeNotify(e)}return Object(i["onMounted"])(()=>{nn.watch(w.CALL,c,{notifyRangeWhenWatch:he.MYSELF})}),Object(i["onUnmounted"])(()=>{nn.unwatch(w.CALL,c)}),(t,o)=>{const a=Object(i["resolveComponent"])("live-pusher");return Object(i["openBlock"])(),Object(i["createElementBlock"])("div",{class:Object(i["normalizeClass"])(e.localClass)},[Object(i["createElementVNode"])("div",{onClick:r,class:"stream-box"},[Object(i["createVNode"])(a,{class:"stream",url:Object(i["unref"])(n).url,mode:Object(i["unref"])(n).mode,autopush:!0,"enable-camera":Object(i["unref"])(n).enableCamera,"enable-mic":!0,muted:!Object(i["unref"])(n).enableMic,"enable-agc":!0,"enable-ans":!0,"enable-ear-monitor":Object(i["unref"])(n).enableEarMonitor,"auto-focus":"false",zoom:Object(i["unref"])(n).enableZoom,"min-bitrate":Object(i["unref"])(n).minBitrate,"max-bitrate":Object(i["unref"])(n).maxBitrate,"video-width":Object(i["unref"])(n).videoWidth,"video-height":Object(i["unref"])(n).videoHeight,beauty:Object(i["unref"])(n).beautyLevel,whiteness:Object(i["unref"])(n).whitenessLevel,orientation:Object(i["unref"])(n).videoOrientation,aspect:Object(i["unref"])(n).videoAspect,"device-position":Object(i["unref"])(n).frontCamera,"remote-mirror":Object(i["unref"])(n).enableRemoteMirror,"local-mirror":Object(i["unref"])(n).localMirror,"background-mute":Object(i["unref"])(n).enableBackgroundMute,"audio-quality":Object(i["unref"])(n).audioQuality,"audio-volume-type":Object(i["unref"])(n).audioVolumeType,"audio-reverb-type":Object(i["unref"])(n).audioReverbType,"waiting-img":Object(i["unref"])(n).waitingImage,"beauty-style":Object(i["unref"])(n).beautyStyle,filter:W()(Object(i["unref"])(n)),onStatechange:d,onNetstatus:u,onError:p,onAudiovolumenotify:m},null,8,["url","mode","enable-camera","muted","enable-ear-monitor","zoom","min-bitrate","max-bitrate","video-width","video-height","beauty","whiteness","orientation","aspect","device-position","remote-mirror","local-mirror","background-mute","audio-quality","audio-volume-type","audio-reverb-type","waiting-img","beauty-style","filter"])])],2)}}});n("cb87");const bi=c()(mi,[["__scopeId","data-v-35a6b725"]]);var hi=bi,vi=Object(i["defineComponent"])({__name:"Player",props:{remoteClass:{type:String,required:!0},currentLocalScreen:{type:Boolean,required:!0}},setup(e){const t=Object(i["ref"])(nn.getData(w.CALL,he.PLAYER)),n=Object(i["ref"])(nn.getData(w.CALL,he.CALL_STATUS)),o=Object(i["ref"])(nn.getData(w.CALL,he.IS_EAR_PHONE)?le.EAR:le.SPEAKER),a=e,r=e=>{t.value=J()({},t.value,e)},s=e=>{n.value=e},l=e=>{o.value=e?le.EAR:le.SPEAKER},c={[he.PLAYER]:r,[he.CALL_STATUS]:s,[he.IS_EAR_PHONE]:l};Object(i["onMounted"])(()=>{nn.watch(w.CALL,c,{notifyRangeWhenWatch:he.MYSELF})}),Object(i["onUnmounted"])(()=>{nn.unwatch(w.CALL,c)});const d=(e,t)=>{n.value===T.CONNECTED&&"large-view"!==a.remoteClass&&sn.switchScreen(a.currentLocalScreen?"player":"localVideo")};function u(e){sn._tuiCallEngine._playerStateChange(e)}function p(e){}function m(e){sn._tuiCallEngine._playNetStatus(e)}function b(e){sn._tuiCallEngine._playerAudioVolumeNotify(e)}return(n,a)=>{const r=Object(i["resolveComponent"])("live-player");return Object(i["openBlock"])(),Object(i["createElementBlock"])("div",{class:Object(i["normalizeClass"])(e.remoteClass)},[(Object(i["openBlock"])(!0),Object(i["createElementBlock"])(i["Fragment"],null,Object(i["renderList"])(Object(i["unref"])(t),(e,t)=>(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",{key:t,onClick:d,class:"stream-box"},[e.hasAudio||e.hasVideo?(Object(i["openBlock"])(),Object(i["createBlock"])(r,{key:0,class:"stream",id:e.id,"data-userid":e.userID,"data-streamid":e.streamID,"data-streamtype":e.streamType,src:e.src,mode:"RTC",autoplay:e.autoplay,"mute-audio":e.muteAudio,"mute-video":e.muteVideo,orientation:e.orientation,"object-fit":e.objectFit,"background-mute":e.enableBackgroundMute,"min-cache":e.minCache,"max-cache":e.maxCache,"sound-mode":Object(i["unref"])(o),"enable-recv-message":e.enableRecvMessage,"auto-pause-if-navigate":e.autoPauseIfNavigate,"auto-pause-if-open-native":e.autoPauseIfOpenNative,onStatechange:u,onFullscreenchange:p,onNetstatus:m,onAudiovolumenotify:b},null,8,["id","data-userid","data-streamid","data-streamtype","src","autoplay","mute-audio","mute-video","orientation","object-fit","background-mute","min-cache","max-cache","sound-mode","enable-recv-message","auto-pause-if-navigate","auto-pause-if-open-native"])):Object(i["createCommentVNode"])("",!0)]))),128))],2)}}});n("9471");const fi=c()(vi,[["__scopeId","data-v-6dee905d"]]);var gi=fi;const Oi={key:1,class:"callDuration-text"};var ji=Object(i["defineComponent"])({__name:"WeChatStream",setup(e){const t=Object(i["ref"])("large-view"),n=Object(i["ref"])("small-view"),o=Object(i["ref"])(!0),a=Object(i["ref"])(nn.getData(w.CALL,he.CALL_MEDIA_TYPE)),r=Object(i["ref"])(nn.getData(w.CALL,he.CALL_STATUS)),s=Object(i["ref"])(nn.getData(w.CALL,he.CALL_DURATION)),l=Object(i["ref"])(!1),c=e=>{a.value=e},d=e=>{l.value=e},u=()=>{a.value!==_.AUDIO&&l.value&&sn.toggleMinimize()},p=e=>{r.value=e},m=e=>{s.value=e},b=e=>{e&&("localVideo"===e?(t.value="large-view",n.value="small-view",o.value=!0):(n.value="large-view",t.value="small-view",o.value=!1))},h={[he.CALL_MEDIA_TYPE]:c,[he.IS_MINIMIZED]:d,[he.CALL_STATUS]:p,[he.CALL_DURATION]:m,[he.BIG_SCREEN_USER_ID]:b};return Object(i["onMounted"])((function(){nn.watch(w.CALL,h,{notifyRangeWhenWatch:he.MYSELF})})),Object(i["onUnmounted"])(()=>{nn.unwatch(w.CALL,h)}),(e,c)=>Object(i["withDirectives"])((Object(i["openBlock"])(),Object(i["createElementBlock"])("div",{onClick:u,class:"streamBox-mobile"},[Object(i["createVNode"])(hi,{localClass:Object(i["unref"])(t),currentLocalScreen:Object(i["unref"])(o)},null,8,["localClass","currentLocalScreen"]),Object(i["unref"])(r)===Object(i["unref"])(T).CONNECTED?(Object(i["openBlock"])(),Object(i["createBlock"])(gi,{key:0,remoteClass:Object(i["unref"])(n),currentLocalScreen:Object(i["unref"])(o)},null,8,["remoteClass","currentLocalScreen"])):Object(i["createCommentVNode"])("",!0),Object(i["unref"])(l)?(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",Oi,Object(i["toDisplayString"])(Object(i["unref"])(r)!==Object(i["unref"])(T).CONNECTED?Object(i["unref"])(ke)("waiting"):Object(i["unref"])(s)),1)):Object(i["createCommentVNode"])("",!0)],512)),[[i["vShow"],Object(i["unref"])(a)===Object(i["unref"])(_).VIDEO]])}});n("6ea1");const yi=c()(ji,[["__scopeId","data-v-2f03120d"]]);var Ii=yi,Ci=n("5f9f"),Ei=n.n(Ci),ki=n("5d5e"),wi=n.n(ki),_i=n("a781"),Si=n.n(_i),Ti=n("6d66"),Li=n.n(Ti);const Ai={class:"float-control-panel"},Di={class:"float-control-item-icon"},Ni=["src"],Ui={class:"float-control-item-icon"},Bi=["src"],Mi=["src"],Vi={class:"float-control-item-icon"},Ri=["src"];var xi=Object(i["defineComponent"])({__name:"FloatWindow",props:{localUserInfo:{type:Object,required:!0},callStatus:{type:String,required:!0},callRole:{type:String,required:!0}},emits:["closeFloatWindow"],setup(e,{emit:t}){const n=t,o=Object(i["ref"])(!0),a=e;function r(){n("closeFloatWindow")}async function s(){a.callRole===S.CALLEE&&a.callStatus===T.CALLING?await sn.reject():await sn.hangup()}async function l(){o.value?(await sn.closeMicrophone(),o.value=!1):(await sn.openMicrophone(),o.value=!0)}return(t,n)=>(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",Ai,[Object(i["createElementVNode"])("div",Di,[Object(i["createElementVNode"])("div",{class:"float-control-item-icon-container",onClick:s},[Object(i["createElementVNode"])("img",{src:Object(i["unref"])(Ei.a)},null,8,Ni)])]),Object(i["createElementVNode"])("div",Ui,[Object(i["createElementVNode"])("div",{class:"float-control-item-icon-container",onClick:l},[e.localUserInfo.isAudioAvailable?(Object(i["openBlock"])(),Object(i["createElementBlock"])("img",{key:0,src:Object(i["unref"])(wi.a)},null,8,Bi)):(Object(i["openBlock"])(),Object(i["createElementBlock"])("img",{key:1,src:Object(i["unref"])(Si.a)},null,8,Mi))])]),Object(i["createElementVNode"])("div",Vi,[Object(i["createElementVNode"])("div",{class:"float-control-item-icon-container",onClick:r},[Object(i["createElementVNode"])("img",{src:Object(i["unref"])(Li.a)},null,8,Ri)])])]))}});n("4823");const Pi=c()(xi,[["__scopeId","data-v-0ad0e890"]]);var Gi=Pi,Fi=n("60c0"),Hi=n.n(Fi);const zi=["src"],Ki={class:"phone-text"};var Yi=Object(i["defineComponent"])({__name:"FloatWindow",setup(e){const t=Object(i["ref"])(nn.getData(w.CALL,he.CALL_STATUS)),n=Object(i["ref"])(nn.getData(w.CALL,he.CALL_DURATION));function o(){sn.toggleMinimize()}Object(i["onMounted"])(()=>{nn.watch(w.CALL,{[he.CALL_STATUS]:a,[he.CALL_DURATION]:r},{notifyRangeWhenWatch:he.MYSELF})}),Object(i["onUnmounted"])(()=>{nn.unwatch(w.CALL,{[he.CALL_STATUS]:a,[he.CALL_DURATION]:r})});const a=e=>{t.value=e},r=e=>{n.value=e};return(e,a)=>(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",{class:"phone-box",onClick:o},[Object(i["createElementVNode"])("img",{class:"phone-img",src:Object(i["unref"])(Hi.a)},null,8,zi),Object(i["createElementVNode"])("div",Ki,Object(i["toDisplayString"])(Object(i["unref"])(t)!==Object(i["unref"])(T).CONNECTED?Object(i["unref"])(ke)("waiting"):Object(i["unref"])(n)),1)]))}});n("c8e9");const Wi=c()(Yi,[["__scopeId","data-v-60f06920"]]);var $i=Wi,qi=n("c07e"),Qi=n.n(qi),Xi=n("6f51"),Zi=n.n(Xi);const Ji={class:"function-buttons"},er=["src"],tr=["src"];var nr=Object(i["defineComponent"])({__name:"ToggleSize",props:{allowedFullScreen:{type:Boolean,required:!0},allowedMinimized:{type:Boolean,required:!0}},emits:["openFloatWindow"],setup(e,{emit:t}){const n=t;function o(){document.fullscreenElement&&document.exitFullscreen(),n("openFloatWindow")}function a(){const e=document.getElementById("tui-call-kit-id");document.fullscreenElement?document.exitFullscreen():e.requestFullscreen().catch(e=>{alert(`Error attempting to enable fullscreen mode: ${e.message} (${e.name})`)})}return(t,n)=>(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",Ji,[e.allowedMinimized?(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",{key:0,class:"minimize",onClick:o},[Object(i["createElementVNode"])("img",{src:Object(i["unref"])(Qi.a)},null,8,er)])):Object(i["createCommentVNode"])("",!0),e.allowedFullScreen?(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",{key:1,class:"minimize",onClick:a},[Object(i["createElementVNode"])("img",{src:Object(i["unref"])(Zi.a)},null,8,tr)])):Object(i["createCommentVNode"])("",!0)]))}});n("750d");const or=c()(nr,[["__scopeId","data-v-a40a0b04"]]);var ar=or,ir=n("ca51"),rr=n.n(ir),sr=n("b45f"),lr=n.n(sr);const cr=["src"];var dr=Object(i["defineComponent"])({__name:"ZoomOut",props:{isGroupCall:{type:Boolean,required:!0},callType:{type:Number,required:!0}},setup(e){const t=e;let n=Object(i["ref"])(t.isGroupCall||t.callType===_.AUDIO?lr.a:rr.a);function o(){sn.toggleMinimize()}Object(i["onMounted"])(()=>{nn.watch(w.CALL,{[he.CALL_MEDIA_TYPE]:a},{notifyRangeWhenWatch:he.MYSELF})}),Object(i["onUnmounted"])(()=>{nn.unwatch(w.CALL,{[he.CALL_MEDIA_TYPE]:a})});const a=e=>{n.value=e===_.AUDIO?lr.a:rr.a};return(e,t)=>(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",{class:"zoom-box",onClick:o},[Object(i["createElementVNode"])("img",{class:"zoom-img",src:Object(i["unref"])(n)},null,8,cr)]))}});n("8a95");const ur=c()(dr,[["__scopeId","data-v-4b419c86"]]);var pr=ur;const mr={key:0,class:"inviteHeader"},br={key:0,class:"inviteHeader"},hr={key:2,class:"topToolbar-desk"};var vr=Object(i["defineComponent"])({__name:"SingleCall",props:{allowedFullScreen:{type:Boolean,required:!0}},setup(e){const t=!tn.isPC,n=tn.isWeChat,o=Object(i["ref"])(nn.getData(w.CALL,he.CALL_STATUS)),a=Object(i["ref"])(nn.getData(w.CALL,he.CALL_MEDIA_TYPE)),r=Object(i["ref"])(n||a.value!==_.VIDEO?"audioStyle":"videoStyle"),s=Object(i["ref"])(n?"weChatBody":""),l=Object(i["ref"])(!1),c=Object(i["ref"])(nn.getData(w.CALL,he.LOCAL_USER_INFO)),d=Object(i["ref"])(nn.getData(w.CALL,he.CALL_DURATION)),u=Object(i["ref"])(nn.getData(w.CALL,he.IS_GROUP)),p=Object(i["ref"])(nn.getData(w.CALL,he.ENABLE_FLOAT_WINDOW)),m=Object(i["ref"])(nn.getData(w.CALL,he.CALL_ROLE)),b=e=>{o.value=e},h=e=>{a.value=e,n||(r.value=a.value===_.VIDEO?"videoStyle":"")},v=e=>{c.value=e},f=e=>{l.value=e},g=e=>{d.value=e};function O(){sn.toggleMinimize()}function j(){sn.toggleMinimize()}function y(e){p.value=e}const I=e=>{m.value=e};return Object(i["onMounted"])((function(){nn.watch(w.CALL,{[he.CALL_STATUS]:b,[he.CALL_MEDIA_TYPE]:h,[he.LOCAL_USER_INFO]:v,[he.IS_MINIMIZED]:f,[he.CALL_DURATION]:g,[he.ENABLE_FLOAT_WINDOW]:y,[he.CALL_ROLE]:I},{notifyRangeWhenWatch:he.MYSELF})})),Object(i["onUnmounted"])(()=>{nn.unwatch(w.CALL,{[he.CALL_STATUS]:b,[he.CALL_MEDIA_TYPE]:h,[he.LOCAL_USER_INFO]:v,[he.IS_MINIMIZED]:f,[he.CALL_DURATION]:g,[he.ENABLE_FLOAT_WINDOW]:y,[he.CALL_ROLE]:I})}),(b,h)=>(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",{class:Object(i["normalizeClass"])(Object(i["unref"])(s))},[t?(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",{key:0,class:Object(i["normalizeClass"])(["singleCall-mobile",Object(i["unref"])(r)])},[Object(i["unref"])(o)!==Object(i["unref"])(T).CALLING&&Object(i["unref"])(a)!==Object(i["unref"])(_).AUDIO||Object(i["unref"])(l)?Object(i["createCommentVNode"])("",!0):(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",mr,[Object(i["createVNode"])(Yn)])),Object(i["unref"])(n)?(Object(i["openBlock"])(),Object(i["createBlock"])(Ii,{key:2,class:"live-pusher"})):(Object(i["openBlock"])(),Object(i["createBlock"])(pi,{key:1})),Object(i["unref"])(l)?Object(i["createCommentVNode"])("",!0):(Object(i["openBlock"])(),Object(i["createBlock"])(qa,{key:3,class:"btnOperate btn-operate-mobile"}))],2)):Object(i["createCommentVNode"])("",!0),t?Object(i["createCommentVNode"])("",!0):Object(i["withDirectives"])((Object(i["openBlock"])(),Object(i["createElementBlock"])("div",{key:1,class:Object(i["normalizeClass"])(["singleCall-desktop",Object(i["unref"])(r)])},[Object(i["createVNode"])(ar,{class:"toggleSize","allowed-full-screen":e.allowedFullScreen,"allowed-minimized":Object(i["unref"])(p),onOpenFloatWindow:O},null,8,["allowed-full-screen","allowed-minimized"]),Object(i["unref"])(o)===Object(i["unref"])(T).CALLING||Object(i["unref"])(a)===Object(i["unref"])(_).AUDIO?(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",br,[Object(i["createVNode"])(Yn)])):Object(i["createCommentVNode"])("",!0),Object(i["createVNode"])(pi),Object(i["createVNode"])(qa,{class:"btnOperate"})],2)),[[i["vShow"],!Object(i["unref"])(l)]]),t?Object(i["createCommentVNode"])("",!0):(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",hr,[Object(i["unref"])(o)!==Object(i["unref"])(T).CONNECTED||Object(i["unref"])(l)?Object(i["createCommentVNode"])("",!0):(Object(i["openBlock"])(),Object(i["createBlock"])(Ma,{key:0,class:"topToolbar-time","call-duration":Object(i["unref"])(d)},null,8,["call-duration"])),Object(i["unref"])(l)?(Object(i["openBlock"])(),Object(i["createBlock"])(Gi,{key:1,"local-user-info":Object(i["unref"])(c),callStatus:Object(i["unref"])(o),callRole:Object(i["unref"])(m),onCloseFloatWindow:j},null,8,["local-user-info","callStatus","callRole"])):Object(i["createCommentVNode"])("",!0)])),t?(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",{key:3,class:Object(i["normalizeClass"])(Object(i["unref"])(l)?"topToolbar-mobile-floatWindow":"topToolbar-mobile")},[Object(i["unref"])(p)&&!Object(i["unref"])(l)?(Object(i["openBlock"])(),Object(i["createBlock"])(pr,{key:0,isGroupCall:Object(i["unref"])(u),callType:Object(i["unref"])(a)},null,8,["isGroupCall","callType"])):Object(i["createCommentVNode"])("",!0),Object(i["unref"])(l)&&(Object(i["unref"])(a)===Object(i["unref"])(_).AUDIO||Object(i["unref"])(u))?(Object(i["openBlock"])(),Object(i["createBlock"])($i,{key:1})):Object(i["createCommentVNode"])("",!0)],2)):Object(i["createCommentVNode"])("",!0)],2))}});n("9eda");const fr=c()(vr,[["__scopeId","data-v-56c44f1f"]]);var gr=fr;const Or=["src"],jr={class:"nick"},yr={class:"tips"},Ir={class:"list-tips"},Cr={class:"list"},Er=["src"],kr={class:"list-name"};var wr=Object(i["defineComponent"])({__name:"InviteCallee",props:{remoteUsersList:{type:Array,required:!0},localUserInfo:{type:Object,required:!0},callerUserInfo:{type:Object,required:!0}},setup(e){const t=e;function n(e){e.target.src=cn.a}const o=Object(i["computed"])(()=>[t.localUserInfo,...t.remoteUsersList]);return(t,a)=>(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",null,[Object(i["createElementVNode"])("img",{class:"avatar",src:e.callerUserInfo.avatar||Object(i["unref"])(cn.a),onerror:n},null,8,Or),Object(i["createElementVNode"])("div",jr,Object(i["toDisplayString"])(e.callerUserInfo.displayUserInfo),1),Object(i["createElementVNode"])("div",yr,Object(i["toDisplayString"])(Object(i["unref"])(ke)("Invited group call")),1),Object(i["createElementVNode"])("div",Ir,Object(i["toDisplayString"])(Object(i["unref"])(ke)("Those involved")),1),Object(i["createElementVNode"])("div",Cr,[(Object(i["openBlock"])(!0),Object(i["createElementBlock"])(i["Fragment"],null,Object(i["renderList"])(Object(i["unref"])(o),(e,t)=>(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",{key:t,class:"list-item"},[Object(i["createElementVNode"])("img",{class:"list-avatar",src:e.avatar||Object(i["unref"])(cn.a),onerror:n},null,8,Er),Object(i["createElementVNode"])("div",kr,Object(i["toDisplayString"])(e.displayUserInfo),1)]))),128))])]))}});n("b742");const _r=c()(wr,[["__scopeId","data-v-aa4eb03a"]]);var Sr=_r;const Tr={class:"singleInvite-message"},Lr={class:"singleInvite-nick"},Ar={class:"singleInvite-nick-span"},Dr={class:"singleInvite-tips"};var Nr=Object(i["defineComponent"])({__name:"InviteInfo",setup(e){const t=!tn.isPC,n=t?"groupInvite-header-mobile":"groupInvite-header-desktop",o=Object(i["ref"])(nn.getData(w.CALL,he.CALL_ROLE)),a=Object(i["ref"])(nn.getData(w.CALL,he.CALL_MEDIA_TYPE)),r=Object(i["ref"])(nn.getData(w.CALL,he.IS_GROUP)),s=Object(i["ref"])(nn.getData(w.CALL,he.REMOTE_USER_INFO_LIST)),l=Object(i["ref"])(nn.getData(w.CALL,he.CALL_STATUS)),c=Object(i["ref"])(nn.getData(w.CALL,he.CALL_DURATION)),d=Object(i["ref"])(nn.getData(w.CALL,he.CALL_TIPS)),u=Object(i["ref"])(nn.getData(w.CALL,he.LOCAL_USER_INFO)),p=Object(i["ref"])(nn.getData(w.CALL,he.CALLER_USER_INFO)),m=e=>{p.value=e},b=e=>{u.value=e},h=e=>{o.value=e},v=e=>{r.value=e},f=e=>{a.value=e},g=e=>{s.value=e},O=e=>{l.value=e},j=e=>{c.value=e},y=e=>{d.value=e},I={[he.CALLER_USER_INFO]:m,[he.LOCAL_USER_INFO]:b,[he.CALL_ROLE]:h,[he.IS_GROUP]:v,[he.CALL_MEDIA_TYPE]:f,[he.REMOTE_USER_INFO_LIST]:g,[he.CALL_STATUS]:O,[he.CALL_DURATION]:j,[he.CALL_TIPS]:y};return Object(i["onMounted"])(()=>{nn.watch(w.CALL,I,{notifyRangeWhenWatch:he.MYSELF})}),Object(i["onUnmounted"])(()=>{nn.unwatch(w.CALL,I)}),(e,o)=>(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",null,[t&&0!==Object(i["unref"])(s).length?(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",{key:0,class:Object(i["normalizeClass"])(Object(i["unref"])(n))},[Object(i["createVNode"])(Sr,{"local-user-info":Object(i["unref"])(u),callerUserInfo:Object(i["unref"])(p),"remote-users-list":Object(i["unref"])(s)},null,8,["local-user-info","callerUserInfo","remote-users-list"])],2)):Object(i["createCommentVNode"])("",!0),t||0===Object(i["unref"])(s).length?Object(i["createCommentVNode"])("",!0):(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",{key:1,class:Object(i["normalizeClass"])(Object(i["unref"])(n))},[Object(i["createElementVNode"])("div",Tr,[Object(i["createElementVNode"])("div",Lr,[Object(i["createElementVNode"])("div",Ar,Object(i["toDisplayString"])(Object(i["unref"])(p).displayUserInfo),1)]),Object(i["createElementVNode"])("span",Dr,Object(i["toDisplayString"])(Object(i["unref"])(d)),1)])],2))]))}});n("e690");const Ur=c()(Nr,[["__scopeId","data-v-9dc5b474"]]);var Br=Ur,Mr=n("179e"),Vr=n.n(Mr),Rr=n("e305"),xr=n.n(Rr),Pr=Object(i["defineComponent"])({__name:"InviteUser",props:{isMobile:{type:Boolean,required:!0}},setup(e){const t=e,n=t.isMobile?xr.a:Vr.a,o=async()=>{nn.update(w.CALL,he.SHOW_SELECT_USER,!0)};return(t,a)=>(Object(i["openBlock"])(),Object(i["createBlock"])(ro,{icon:Object(i["unref"])(n),text:Object(i["unref"])(ke)("invite member"),isMobile:e.isMobile,onClick:o},null,8,["icon","text","isMobile"]))}});const Gr=Pr;var Fr=Gr;const Hr={class:"btn-operate"},zr={class:"btn-operate"},Kr={key:0,class:"btn-operate"},Yr={class:"btn-operate"},Wr={key:2,class:"control-wrapper-desktop"},$r={class:"panel-button-area"},qr={key:3,class:"control-wrapper-desktop"},Qr={class:"panel-button-area"},Xr="control-wrapper-mobile",Zr="black";var Jr=Object(i["defineComponent"])({__name:"BtnOperate",setup(e){const t=Object(i["ref"])(nn.getData(w.CALL,he.CALL_ROLE)),n=Object(i["ref"])(nn.getData(w.CALL,he.CALL_MEDIA_TYPE)),o=Object(i["ref"])(nn.getData(w.CALL,he.CALL_STATUS)),a=Object(i["ref"])(nn.getData(w.CALL,he.IS_GROUP)),r=Object(i["ref"])(nn.getData(w.CALL,he.CALL_DURATION)),s=Object(i["ref"])(nn.getData(w.CALL,he.IS_CLICKABLE)),l=!tn.isPC,c=tn.isH5;let d=t.value===S.CALLER;const u=Object(i["ref"])(nn.getData(w.CALL,he.LOCAL_USER_INFO)),p=e=>{u.value=e},m=e=>{d=e===S.CALLER,t.value=e},b=e=>{a.value=e},h=e=>{n.value=e},v=e=>{o.value=e},f=e=>{r.value=e},g=e=>{s.value=e},O={[he.LOCAL_USER_INFO]:p,[he.CALL_ROLE]:m,[he.IS_GROUP]:b,[he.CALL_MEDIA_TYPE]:h,[he.CALL_STATUS]:v,[he.CALL_DURATION]:f,[he.IS_CLICKABLE]:g};return Object(i["onMounted"])(()=>{nn.watch(w.CALL,O,{notifyRangeWhenWatch:he.MYSELF})}),Object(i["onUnmounted"])(()=>{nn.unwatch(w.CALL,O)}),(e,t)=>(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",null,[Object(i["unref"])(o)===Object(i["unref"])(T).CALLING&&l?(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",{key:0,class:Object(i["normalizeClass"])([Xr,Zr])},[Object(i["createElementVNode"])("div",Hr,[Object(i["unref"])(d)?Object(i["createCommentVNode"])("",!0):(Object(i["openBlock"])(),Object(i["createBlock"])(_o,{key:0,class:"mobile-reject","is-mobile":l})),Object(i["unref"])(d)?Object(i["createCommentVNode"])("",!0):(Object(i["openBlock"])(),Object(i["createBlock"])(Eo,{key:1,class:"mobile-accept","is-mobile":l,"call-type":Object(i["unref"])(n)},null,8,["call-type"])),Object(i["unref"])(d)?(Object(i["openBlock"])(),Object(i["createBlock"])(Fr,{key:2,class:"mobile-invite","is-mobile":l})):Object(i["createCommentVNode"])("",!0),Object(i["unref"])(d)?(Object(i["openBlock"])(),Object(i["createBlock"])(co,{key:3,isGroupCall:Object(i["unref"])(a),callType:Object(i["unref"])(n),"is-mobile":l,isClickable:Object(i["unref"])(s)},null,8,["isGroupCall","callType","isClickable"])):Object(i["createCommentVNode"])("",!0)])],2)):Object(i["createCommentVNode"])("",!0),Object(i["unref"])(o)===Object(i["unref"])(T).CONNECTED&&l?(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",{key:1,class:Object(i["normalizeClass"])([Xr,Zr])},[Object(i["createElementVNode"])("div",zr,[Object(i["createVNode"])(Ma,{"call-duration":Object(i["unref"])(r),"call-type":Object(i["unref"])(n)},null,8,["call-duration","call-type"])]),Object(i["unref"])(n)===Object(i["unref"])(_).VIDEO?(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",Kr,[Object(i["createVNode"])(pa,{class:"btn","local-user-info":Object(i["unref"])(u),"is-mobile":l},null,8,["local-user-info"]),Object(i["unref"])(c)?Object(i["createCommentVNode"])("",!0):(Object(i["openBlock"])(),Object(i["createBlock"])(Oa,{key:0,class:"btn"})),Object(i["createVNode"])(Da,{class:"btn","is-mobile":l})])):Object(i["createCommentVNode"])("",!0),Object(i["createElementVNode"])("div",Yr,[Object(i["unref"])(n)===Object(i["unref"])(_).AUDIO?(Object(i["openBlock"])(),Object(i["createBlock"])(pa,{key:0,class:"btn","local-user-info":Object(i["unref"])(u),"is-mobile":l},null,8,["local-user-info"])):Object(i["createCommentVNode"])("",!0),Object(i["createVNode"])(Fr,{class:"btn","is-mobile":l}),Object(i["createVNode"])(co,{class:"btn","is-mobile":l,isGroupCall:Object(i["unref"])(a),callType:Object(i["unref"])(n),isClickable:Object(i["unref"])(s)},null,8,["isGroupCall","callType","isClickable"]),Object(i["unref"])(n)!==Object(i["unref"])(_).AUDIO||Object(i["unref"])(c)?Object(i["createCommentVNode"])("",!0):(Object(i["openBlock"])(),Object(i["createBlock"])(Oa,{key:1,class:"btn"}))])],2)):Object(i["createCommentVNode"])("",!0),Object(i["unref"])(o)!==Object(i["unref"])(T).CALLING||l?Object(i["createCommentVNode"])("",!0):(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",Wr,[Object(i["createElementVNode"])("div",$r,[Object(i["unref"])(d)?Object(i["createCommentVNode"])("",!0):(Object(i["openBlock"])(),Object(i["createBlock"])(_o,{key:0,class:"btn","is-mobile":l})),Object(i["unref"])(d)?Object(i["createCommentVNode"])("",!0):(Object(i["openBlock"])(),Object(i["createBlock"])(Eo,{key:1,class:"btn","is-mobile":l,"call-type":Object(i["unref"])(n)},null,8,["call-type"])),Object(i["unref"])(n)===Object(i["unref"])(_).VIDEO?(Object(i["openBlock"])(),Object(i["createBlock"])(Da,{key:2,class:"btn","is-mobile":l})):Object(i["createCommentVNode"])("",!0),Object(i["unref"])(d)?(Object(i["openBlock"])(),Object(i["createBlock"])(pa,{key:3,class:"btn","local-user-info":Object(i["unref"])(u),"is-mobile":l},null,8,["local-user-info"])):Object(i["createCommentVNode"])("",!0),Object(i["unref"])(d)?(Object(i["openBlock"])(),Object(i["createBlock"])(Fr,{key:4,class:"btn","is-mobile":l})):Object(i["createCommentVNode"])("",!0),Object(i["unref"])(d)?(Object(i["openBlock"])(),Object(i["createBlock"])(co,{key:5,class:"btn",isGroupCall:Object(i["unref"])(a),callType:Object(i["unref"])(n),"is-mobile":l,isClickable:Object(i["unref"])(s)},null,8,["isGroupCall","callType","isClickable"])):Object(i["createCommentVNode"])("",!0)])])),Object(i["unref"])(o)!==Object(i["unref"])(T).CONNECTED||l?Object(i["createCommentVNode"])("",!0):(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",qr,[Object(i["createElementVNode"])("div",Qr,[Object(i["unref"])(n)===Object(i["unref"])(_).VIDEO?(Object(i["openBlock"])(),Object(i["createBlock"])(Da,{key:0,class:"btn","is-mobile":l})):Object(i["createCommentVNode"])("",!0),Object(i["createVNode"])(pa,{class:"btn","local-user-info":Object(i["unref"])(u),"is-mobile":l},null,8,["local-user-info"]),Object(i["createVNode"])(Fr,{class:"btn","is-mobile":l}),Object(i["createVNode"])(co,{class:"btn","is-mobile":l,isGroupCall:Object(i["unref"])(a),callType:Object(i["unref"])(n),isClickable:Object(i["unref"])(s)},null,8,["isGroupCall","callType","isClickable"])])]))]))}});n("03d24");const es=c()(Jr,[["__scopeId","data-v-2876cd02"]]);var ts=es,ns=n("0f79"),os=n.n(ns);const as={class:"swiper-item",name:"swiper-silder"};var is=Object(i["defineComponent"])({__name:"SwiperSlider",props:{index:{}},setup(e){return(e,t)=>(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",as,[Object(i["renderSlot"])(e.$slots,"default")]))}});n("abd7");const rs=c()(is,[["__scopeId","data-v-1328adc6"]]);var ss,ls=rs;function cs({pageCount:e}){const t=Object(i["ref"])(),n=Object(i["ref"])(),o=Object(i["ref"])(0),a=Object(i["ref"])(ss.RIGHT);function r(e){t.value=e.changedTouches[0].pageX,n.value=e.changedTouches[0].pageY}function s(){o.value=o.value+1}function l(){o.value=o.value-1}function c(n){const i=n.changedTouches[0].pageX-t.value;if(!(Math.abs(i)<5)){if(i<0){if(o.value===e.value-1)return;a.value=ss.LEFT,s()}if(i>0){if(0===o.value)return;a.value=ss.RIGHT,l()}}}return Object(i["watch"])(e,()=>{1===e.value&&0!==o.value&&(o.value=0)}),Object(i["onMounted"])(()=>{document.addEventListener("touchstart",r,!1),document.addEventListener("touchend",c,!1)}),Object(i["onUnmounted"])(()=>{document.removeEventListener("touchstart",r,!1),document.removeEventListener("touchend",c,!1)}),{currentIndex:o,direction:a}}function ds(e){const t=[];for(let o=0;o{const n=e.value.children,o=ds(n);t.value.length!==o.length&&(t.value=o)};return Object(i["onMounted"])(()=>{n()}),Object(i["onUpdated"])(()=>{n()}),t}(function(e){e["LEFT"]="left",e["RIGHT"]="right"})(ss||(ss={}));const ps={class:"swipe"},ms={key:0,class:"swipe-dots-container"};var bs=Object(i["defineComponent"])({__name:"Swiper",props:{grid:{}},setup(e){const t=Object(i["ref"])(),n=us(t),o=e,a=Object(i["computed"])(()=>{const{rows:e=1,cols:t=1}=(null===o||void 0===o?void 0:o.grid)||{};return e*t}),r=Object(i["computed"])(()=>Math.ceil(n.value.length/a.value)),s=Object(i["computed"])(()=>r.value>1),{direction:l,currentIndex:c}=cs({pageCount:r});function d({count:e,width:t,height:n,rows:o,cols:i,currentIndex:r}){const s=[],l=e=>Math.floor(e/(o*i));for(let c=0;c{const{width:o,height:a,top:i,left:r,visible:s}=e[n];t.style.top=i,t.style.left=r,t.style.width=o+"px",t.style.height=a+"px",t.style.visible=s})}return Object(i["watch"])([n,c],()=>{var e;const a=t.value.clientWidth,{rows:i=1,cols:r=1}=(null===o||void 0===o?void 0:o.grid)||{},s=Ue()(a)/r,l=getComputedStyle(null===(e=n.value)||void 0===e?void 0:e[0]),m=u(l,"height");t.value.style.height=i*m+"px";const b=d({count:n.value.length,width:s,height:m,rows:i,cols:r,currentIndex:c.value});p(b)}),Object(i["provide"])("direction",l),(e,n)=>(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",ps,[Object(i["createElementVNode"])("div",{ref_key:"swiperContainerRef",ref:t,class:"swiper-sliders-container"},[Object(i["renderSlot"])(e.$slots,"default")],512),Object(i["unref"])(s)?(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",ms,[(Object(i["openBlock"])(!0),Object(i["createElementBlock"])(i["Fragment"],null,Object(i["renderList"])(Object(i["unref"])(r),e=>(Object(i["openBlock"])(),Object(i["createElementBlock"])("span",{key:e,class:Object(i["normalizeClass"])(["swipe-dots",[Object(i["unref"])(c)===e-1?"swipe-current-dots":""]])},null,2))),128))])):Object(i["createCommentVNode"])("",!0)]))}});n("899b");const hs=bs;var vs=hs,fs=n("623d"),gs=n.n(fs);const Os={class:"invite-calling-list"},js=["id"],ys={key:0,class:"invite-calling-item-loading"},Is=["src"],Cs={key:1,class:"tag"},Es={class:"microphone-icon-container"},ks={class:"stream-userInfo"},ws=["src"],_s={key:0,class:"invite-calling-item-id"};var Ss=Object(i["defineComponent"])({__name:"RemoteStreamList",props:{remoteList:{type:Array,required:!0},callStatus:{type:String,required:!0},localUserInfo:{type:Object,required:!0}},setup(e){const t=e,n=Object(i["computed"])(()=>[t.localUserInfo,...t.remoteList]);function o(e){e.target.src=cn.a}return(t,a)=>(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",Os,[Object(i["createVNode"])(vs,{grid:{rows:2,cols:2}},{default:Object(i["withCtx"])(()=>[(Object(i["openBlock"])(!0),Object(i["createElementBlock"])(i["Fragment"],null,Object(i["renderList"])(Object(i["unref"])(n),(t,n)=>(Object(i["openBlock"])(),Object(i["createBlock"])(ls,{key:""+t.userId,index:n,class:"invite-calling-item"},{default:Object(i["withCtx"])(()=>[Object(i["createElementVNode"])("div",{id:t.domId,class:"invite-calling-item-message"},[t.isEnter||"localVideo"===t.domId?Object(i["createCommentVNode"])("",!0):(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",ys,[Object(i["createElementVNode"])("img",{src:Object(i["unref"])(gs.a)},null,8,Is)])),t.isEnter&&"connected"===e.callStatus||"localVideo"===t.domId?(Object(i["openBlock"])(),Object(i["createElementBlock"])("span",Cs,[Object(i["createElementVNode"])("div",Es,[t.isAudioAvailable?(Object(i["openBlock"])(),Object(i["createBlock"])(An,{key:0,volume:t.volume},null,8,["volume"])):(Object(i["openBlock"])(),Object(i["createBlock"])(Mn,{key:1}))]),Object(i["createElementVNode"])("div",ks,Object(i["toDisplayString"])("localVideo"===t.domId?Object(i["unref"])(ke)("me"):t.displayUserInfo),1)])):Object(i["createCommentVNode"])("",!0)],8,js),Object(i["createElementVNode"])("img",{class:"avatar",src:t.avatar||Object(i["unref"])(cn.a),onerror:o},null,8,ws),t.isEnter||"localVideo"===t.domId?Object(i["createCommentVNode"])("",!0):(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",_s,Object(i["toDisplayString"])(t.nick||t.userId),1))]),_:2},1032,["index"]))),128))]),_:1})]))}});n("b928");const Ts=c()(Ss,[["__scopeId","data-v-25e97ea5"]]);var Ls=Ts;const As={class:"calling-wrapper"},Ds={key:0,class:"user-view-text-container"},Ns={class:"tag"},Us={class:"microphone-icon-container"},Bs={class:"stream-userInfo"},Ms=["id"],Vs={key:0,class:"invite-calling-item-loading"},Rs=["src"],xs={key:1,class:"user-view-text-container"},Ps={class:"tag"},Gs={class:"microphone-icon-container"},Fs={class:"stream-userInfo"};var Hs=Object(i["defineComponent"])({__name:"RemoteStreamList",props:{remoteList:{type:Array,required:!0},callStatus:{type:String,required:!0},callType:{type:Number,required:!0},localUserInfo:{type:Object,required:!0}},setup(e){const t=e,n=Object(i["ref"])(1),o=Object(i["ref"])([]),a=Object(i["ref"])("group-user-view"),r=Object(i["ref"])("group-calling-container"),s=Object(i["ref"])("user-view-user-id");async function l(){const e=[];for(let o=8*(n.value-1);o<8*n.value&&o{const e=o.value.length+1;a.value="group-user-view group-user-view-"+e,r.value="group-calling-container group-calling-container-"+e,s.value="user-view-user-id user-view-user-id-"+e},{flush:"post",deep:!0}),Object(i["watchEffect"])(async()=>{await l()}),(t,n)=>(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",As,[Object(i["createElementVNode"])("div",{class:Object(i["normalizeClass"])(Object(i["unref"])(r))},[Object(i["createElementVNode"])("div",{id:"localVideo",class:Object(i["normalizeClass"])(Object(i["unref"])(a))},["connected"!==e.callStatus||e.callType===Object(i["unref"])(_).AUDIO?(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",Ds,[Object(i["createElementVNode"])("div",{class:Object(i["normalizeClass"])([Object(i["unref"])(s),"localStream-userInfo"])},Object(i["toDisplayString"])(e.localUserInfo.displayUserInfo),3)])):Object(i["createCommentVNode"])("",!0),Object(i["createElementVNode"])("span",Ns,[Object(i["createElementVNode"])("div",Us,[e.localUserInfo.isAudioAvailable?(Object(i["openBlock"])(),Object(i["createBlock"])(An,{key:0,volume:e.localUserInfo.volume},null,8,["volume"])):(Object(i["openBlock"])(),Object(i["createBlock"])(Mn,{key:1}))]),Object(i["createElementVNode"])("div",Bs,Object(i["toDisplayString"])(e.localUserInfo.displayUserInfo)+Object(i["toDisplayString"])(Object(i["unref"])(ke)("me")),1)])],2),(Object(i["openBlock"])(!0),Object(i["createElementBlock"])(i["Fragment"],null,Object(i["renderList"])(e.remoteList,t=>(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",{id:t.domId,key:t.userId,class:Object(i["normalizeClass"])(Object(i["unref"])(a))},[Object(i["createElementVNode"])("div",null,[t.isEnter?Object(i["createCommentVNode"])("",!0):(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",Vs,[Object(i["createElementVNode"])("img",{src:Object(i["unref"])(gs.a)},null,8,Rs)])),"connected"!==e.callStatus||e.callType===Object(i["unref"])(_).AUDIO?(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",xs,[Object(i["createElementVNode"])("div",{class:Object(i["normalizeClass"])(["invite-userInfo",Object(i["unref"])(s)])},Object(i["toDisplayString"])(t.displayUserInfo),3)])):Object(i["createCommentVNode"])("",!0)]),Object(i["createElementVNode"])("span",Ps,[Object(i["createElementVNode"])("div",Gs,[t.isAudioAvailable?(Object(i["openBlock"])(),Object(i["createBlock"])(An,{key:0,volume:t.volume},null,8,["volume"])):(Object(i["openBlock"])(),Object(i["createBlock"])(Mn,{key:1}))]),Object(i["createElementVNode"])("div",Fs,Object(i["toDisplayString"])(t.displayUserInfo),1)])],10,Ms))),128))],2)]))}});n("d65dd"),n("2dbf");const zs=c()(Hs,[["__scopeId","data-v-f43d44d8"]]);var Ks,Ys=zs,Ws=n("d254"),$s=n.n(Ws),qs=n("52da"),Qs=n.n(qs);(function(e){e["LEFT"]="left",e["RIGHT"]="right"})(Ks||(Ks={}));const Xs={class:"swiper-sliders-container"},Zs={key:0,class:"swipe-dots-container"};var Js=Object(i["defineComponent"])({__name:"Swiper",props:{grid:{},renderStreamList:{}},setup(e){const t=e,n=Object(i["ref"])(Ks.RIGHT),o=Object(i["ref"])(0),a=Object(i["ref"])(),r=Object(i["ref"])(),s=Object(i["computed"])(()=>{const{rows:e=1,cols:n=1}=(null===t||void 0===t?void 0:t.grid)||{};return e*n}),l=Object(i["ref"])([]),c=Object(i["ref"])(0),d=Object(i["ref"])([]);Object(i["watch"])(()=>t.renderStreamList,()=>{var e;c.value=Math.ceil(t.renderStreamList.length/s.value),1===c.value&&(o.value=0);let n=[];for(let t=0;tUe()(e)),console.log(t.renderStreamList,c.value)},{immediate:!0});const u=Object(i["computed"])(()=>c.value>1),p=Object(i["computed"])(()=>{var e;return Qs()(e=l.value).call(e,o.value*s.value,o.value*s.value+s.value)});function m(e){a.value=e.changedTouches[0].pageX,r.value=e.changedTouches[0].pageY}function b(){o.value=o.value+1}function h(){o.value=o.value-1}function v(e){const t=e.changedTouches[0].pageX-a.value;if(!(Math.abs(t)<5)){if(t<0){if(o.value===c.value-1)return;n.value=Ks.LEFT,b()}if(t>0){if(0===o.value)return;n.value=Ks.RIGHT,h()}}}return Object(i["provide"])("showSliderList",p),Object(i["provide"])("direction",n),(e,t)=>(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",{class:"swipe",onTouchstart:m,onTouchend:v},[Object(i["createElementVNode"])("div",Xs,[Object(i["renderSlot"])(e.$slots,"default")]),Object(i["unref"])(u)?(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",Zs,[(Object(i["openBlock"])(!0),Object(i["createElementBlock"])(i["Fragment"],null,Object(i["renderList"])(Object(i["unref"])(d),e=>(Object(i["openBlock"])(),Object(i["createElementBlock"])("span",{key:e,class:Object(i["normalizeClass"])(["swipe-dots",[Object(i["unref"])(o)===e?"swipe-current-dots":""]])},null,2))),128))])):Object(i["createCommentVNode"])("",!0)],32))}});n("1c60");const el=Js;var tl=el;const nl={options:{virtualHost:!0}};var ol=Object(i["defineComponent"])({...nl,__name:"SwiperSlider",props:{index:{}},setup(e){const t=e,n=Object(i["inject"])("showSliderList"),o=Object(i["ref"])("0px"),a=Object(i["ref"])("0px");Object(i["watch"])(()=>t.index,()=>{o.value=t.index%2*50+"%",a.value=187*(t.index%4-1)+"px"},{immediate:!0});const r=Object(i["computed"])(()=>{var e;switch(o.value=t.index%2*50+"%",t.index%4){case 0:case 1:a.value="0px";break;case 2:case 3:a.value="187px";break}return null===(e=n.value)||void 0===e?void 0:x()(e).call(e,t.index)});return(e,t)=>Object(i["unref"])(r)?(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",{key:0,class:"swiper-item",style:Object(i["normalizeStyle"])({left:Object(i["unref"])(o),top:Object(i["unref"])(a)})},[Object(i["renderSlot"])(e.$slots,"default")],4)):Object(i["createCommentVNode"])("",!0)}});n("5842");const al=c()(ol,[["__scopeId","data-v-60274674"]]);var il=al;const rl={class:"invite-calling-list"},sl={class:"invite-calling-item"},ll={key:0,class:"invite-calling-item-message"},cl=["src"],dl=["src"],ul={class:"invite-calling-item-id"},pl={key:0,class:"pusher-box"},ml={key:0,class:"invite-calling-item-id"},bl={key:1,class:"player-container"},hl={key:1,class:"invite-calling-item-id"};var vl=Object(i["defineComponent"])({__name:"RemoteStreamList",props:{remoteList:{type:Array,required:!0},callStatus:{type:String,required:!0},localUserInfo:{type:Object,required:!0},callType:{type:Number,required:!0}},setup(e){const t=Object(i["ref"])(nn.getData(w.CALL,he.PUSHER)),n=Object(i["ref"])(nn.getData(w.CALL,he.PLAYER)),o=Object(i["ref"])(nn.getData(w.CALL,he.IS_EAR_PHONE)?le.EAR:le.SPEAKER),a=Object(i["ref"])({}),r=e,s=e=>{J()(t.value,e)},l=e=>{J()(n.value,e),a.value=p(n.value)},c=e=>{o.value=e?le.EAR:le.SPEAKER},d={[he.PUSHER]:s,[he.PLAYER]:l,[he.IS_EAR_PHONE]:c};Object(i["onMounted"])(()=>{nn.watch(w.CALL,d,{notifyRangeWhenWatch:he.MYSELF})}),Object(i["onUnmounted"])(()=>{nn.unwatch(w.CALL,d)});const u=Object(i["computed"])(()=>[r.localUserInfo,...r.remoteList]);function p(e=[]){const t={};for(let n=0;n{const s=Object(i["resolveComponent"])("live-pusher"),l=Object(i["resolveComponent"])("live-player");return Object(i["openBlock"])(),Object(i["createElementBlock"])("div",rl,[Object(i["createVNode"])(tl,{class:"list-box","render-stream-list":Object(i["unref"])(u),grid:{rows:2,cols:2}},{default:Object(i["withCtx"])(()=>[(Object(i["openBlock"])(!0),Object(i["createElementBlock"])(i["Fragment"],null,Object(i["renderList"])(Object(i["unref"])(u),(n,r)=>(Object(i["openBlock"])(),Object(i["createBlock"])(il,{key:""+n.userId,userid:n.userId,index:r,class:"invite-list"},{default:Object(i["withCtx"])(()=>[Object(i["createElementVNode"])("div",sl,[n.isEnter&&e.callType!==Object(i["unref"])(_).AUDIO?Object(i["createCommentVNode"])("",!0):(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",ll,[n.isEnter?Object(i["createCommentVNode"])("",!0):(Object(i["openBlock"])(),Object(i["createElementBlock"])("img",{key:0,class:"invite-calling-item-loading",src:Object(i["unref"])(gs.a)},null,8,cl)),Object(i["createElementVNode"])("img",{class:"avatar",src:n.avatar||Object(i["unref"])(cn.a),onerror:m},null,8,dl),Object(i["createElementVNode"])("div",ul,Object(i["toDisplayString"])(n.displayUserInfo),1)])),n.isEnter?(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",{key:1,class:Object(i["normalizeClass"])(e.callType===Object(i["unref"])(_).AUDIO?"invite-calling-audio":"invite-calling-item-stream")},[n.userId===e.localUserInfo.userId?(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",pl,[Object(i["createVNode"])(s,{class:"pusher",url:Object(i["unref"])(t).url,mode:Object(i["unref"])(t).mode,autopush:!0,"enable-camera":Object(i["unref"])(t).enableCamera,"enable-mic":!0,muted:!Object(i["unref"])(t).enableMic,"enable-agc":!0,"enable-ans":!0,"enable-ear-monitor":Object(i["unref"])(t).enableEarMonitor,"auto-focus":"false",zoom:Object(i["unref"])(t).enableZoom,"min-bitrate":Object(i["unref"])(t).minBitrate,"max-bitrate":Object(i["unref"])(t).maxBitrate,"video-width":Object(i["unref"])(t).videoWidth,"video-height":Object(i["unref"])(t).videoHeight,beauty:Object(i["unref"])(t).beautyLevel,whiteness:Object(i["unref"])(t).whitenessLevel,orientation:Object(i["unref"])(t).videoOrientation,aspect:Object(i["unref"])(t).videoAspect,"device-position":Object(i["unref"])(t).frontCamera,"remote-mirror":Object(i["unref"])(t).enableRemoteMirror,"local-mirror":Object(i["unref"])(t).localMirror,"background-mute":Object(i["unref"])(t).enableBackgroundMute,"audio-quality":Object(i["unref"])(t).audioQuality,"audio-volume-type":Object(i["unref"])(t).audioVolumeType,"audio-reverb-type":Object(i["unref"])(t).audioReverbType,"waiting-img":Object(i["unref"])(t).waitingImage,"beauty-style":Object(i["unref"])(t).beautyStyle,filter:W()(Object(i["unref"])(t)),onStatechange:b,onNetstatus:h,onError:v,onAudiovolumenotify:f},null,8,["url","mode","enable-camera","muted","enable-ear-monitor","zoom","min-bitrate","max-bitrate","video-width","video-height","beauty","whiteness","orientation","aspect","device-position","remote-mirror","local-mirror","background-mute","audio-quality","audio-volume-type","audio-reverb-type","waiting-img","beauty-style","filter"]),e.callType!==Object(i["unref"])(_).AUDIO?(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",ml,Object(i["toDisplayString"])(n.nick||n.userId),1)):Object(i["createCommentVNode"])("",!0)])):(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",bl,[Object(i["unref"])(a)[n.userId]&&Object(i["unref"])(a)[n.userId].userID===n.userId&&(Object(i["unref"])(a)[n.userId].hasAudio||Object(i["unref"])(a)[n.userId].hasVideo)?(Object(i["openBlock"])(),Object(i["createBlock"])(l,{key:0,class:"player",id:Object(i["unref"])(a)[n.userId].id,"data-userid":Object(i["unref"])(a)[n.userId].userID,"data-streamid":Object(i["unref"])(a)[n.userId].streamID,"data-streamtype":Object(i["unref"])(a)[n.userId].streamType,src:Object(i["unref"])(a)[n.userId].src,mode:"RTC",autoplay:Object(i["unref"])(a)[n.userId].autoplay,"mute-audio":Object(i["unref"])(a)[n.userId].muteAudio,"mute-video":Object(i["unref"])(a)[n.userId].muteVideo,orientation:Object(i["unref"])(a)[n.userId].orientation,"object-fit":Object(i["unref"])(a)[n.userId].objectFit,"background-mute":Object(i["unref"])(a)[n.userId].enableBackgroundMute,"min-cache":Object(i["unref"])(a)[n.userId].minCache,"max-cache":Object(i["unref"])(a)[n.userId].maxCache,"sound-mode":Object(i["unref"])(o),"enable-recv-message":Object(i["unref"])(a)[n.userId].enableRecvMessage,"auto-pause-if-navigate":Object(i["unref"])(a)[n.userId].autoPauseIfNavigate,"auto-pause-if-open-native":Object(i["unref"])(a)[n.userId].autoPauseIfOpenNative,onStatechange:g,onFullscreenchange:O,onNetstatus:j,onAudiovolumenotify:y},null,8,["id","data-userid","data-streamid","data-streamtype","src","autoplay","mute-audio","mute-video","orientation","object-fit","background-mute","min-cache","max-cache","sound-mode","enable-recv-message","auto-pause-if-navigate","auto-pause-if-open-native"])):Object(i["createCommentVNode"])("",!0),e.callType!==Object(i["unref"])(_).AUDIO?(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",hl,Object(i["toDisplayString"])(n.displayUserInfo),1)):Object(i["createCommentVNode"])("",!0)]))],2)):Object(i["createCommentVNode"])("",!0)])]),_:2},1032,["userid","index"]))),128))]),_:1},8,["render-stream-list"])])}}});n("b26b");const fl=c()(vl,[["__scopeId","data-v-aac026d4"]]);var gl=fl;const Ol={class:"streamBox"};var jl=Object(i["defineComponent"])({__name:"PusherPlayer",setup(e){const t=Object(i["ref"])(nn.getData(w.CALL,he.CALL_STATUS)),n=Object(i["ref"])(nn.getData(w.CALL,he.REMOTE_USER_INFO_LIST)),o=Object(i["ref"])(nn.getData(w.CALL,he.LOCAL_USER_INFO)),a=Object(i["ref"])(nn.getData(w.CALL,he.CALL_MEDIA_TYPE)),r=!tn.isPC,s=tn.isWeChat,l=e=>{o.value=e},c=e=>{n.value=e},d=e=>{t.value=e},u=e=>{a.value=e},p={[he.LOCAL_USER_INFO]:l,[he.REMOTE_USER_INFO_LIST]:c,[he.CALL_STATUS]:d,[he.CALL_MEDIA_TYPE]:u};return Object(i["onMounted"])(()=>{nn.watch(w.CALL,p,{notifyRangeWhenWatch:he.MYSELF})}),Object(i["onUnmounted"])(()=>{nn.unwatch(w.CALL,p)}),(e,l)=>(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",Ol,[0!==Object(i["unref"])(n).length&&r&&!Object(i["unref"])(s)?(Object(i["openBlock"])(),Object(i["createBlock"])(Ls,{key:0,"local-user-info":Object(i["unref"])(o),"remote-list":Object(i["unref"])(n),"call-status":Object(i["unref"])(t)},null,8,["local-user-info","remote-list","call-status"])):Object(i["createCommentVNode"])("",!0),0===Object(i["unref"])(n).length||r||Object(i["unref"])(s)?Object(i["createCommentVNode"])("",!0):(Object(i["openBlock"])(),Object(i["createBlock"])(Ys,{key:1,"local-user-info":Object(i["unref"])(o),"remote-list":Object(i["unref"])(n),"call-status":Object(i["unref"])(t),"call-type":Object(i["unref"])(a)},null,8,["local-user-info","remote-list","call-status","call-type"])),r&&Object(i["unref"])(s)?(Object(i["openBlock"])(),Object(i["createBlock"])(gl,{key:2,"local-user-info":Object(i["unref"])(o),"remote-list":Object(i["unref"])(n),"call-status":Object(i["unref"])(t),"call-type":Object(i["unref"])(a)},null,8,["local-user-info","remote-list","call-status","call-type"])):Object(i["createCommentVNode"])("",!0)]))}});n("2950");const yl=c()(jl,[["__scopeId","data-v-32827a02"]]);var Il=yl;const Cl={key:0,class:"dialog-main-header"},El={class:"dialog-main-title"},kl={key:1,class:"dialog-main-footer"};var wl=Object(i["defineComponent"])({__name:"TDialog",props:{moduleValue:{type:Boolean,default:!1},isHeaderShow:{type:Boolean,default:!0},isFooterShow:{type:Boolean,default:!0},background:{type:Boolean,default:!0},title:{type:String,default:""},center:{type:Boolean,default:!1},isH5:{type:Boolean,default:!1}},emits:["update:moduleValue","submit"],setup(e,{emit:t}){const n={OUTSIDE:"outside",INSIDE:"inside"},o=e,a=Object(i["ref"])(!0),r=Object(i["ref"])(!0),s=Object(i["ref"])(!0),l=Object(i["ref"])("");Object(i["watchEffect"])(()=>{l.value=o.title,a.value=o.isHeaderShow,r.value=o.isFooterShow,s.value=o.background});const c=t,d=e=>{e===n.OUTSIDE&&u()},u=()=>{c("update:moduleValue",!1)},p=()=>{c("submit"),u()};return(t,c)=>e.moduleValue?(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",{key:0,class:Object(i["normalizeClass"])(["dialog",[o.isH5?"dialog-h5":"",e.center?"center":""]]),onClick:c[1]||(c[1]=Object(i["withModifiers"])(e=>d(n.OUTSIDE),["stop","prevent"]))},[Object(i["createElementVNode"])("main",{class:Object(i["normalizeClass"])(["dialog-main",[Object(i["unref"])(s)?"":"dialog-main-back"]]),onClick:c[0]||(c[0]=Object(i["withModifiers"])(e=>d(n.INSIDE),["stop","prevent"]))},[Object(i["unref"])(a)?(Object(i["openBlock"])(),Object(i["createElementBlock"])("header",Cl,[Object(i["createElementVNode"])("h1",El,Object(i["toDisplayString"])(Object(i["unref"])(l)),1),Object(i["createElementVNode"])("i",{class:"icon icon-close",onClick:u})])):Object(i["createCommentVNode"])("",!0),Object(i["createElementVNode"])("div",{class:Object(i["normalizeClass"])(["dialog-main-content",[o.isH5?"dialog-main-content-uniapp":""]])},[Object(i["renderSlot"])(t.$slots,"default")],2),Object(i["unref"])(r)?(Object(i["openBlock"])(),Object(i["createElementBlock"])("footer",kl,[Object(i["createElementVNode"])("button",{class:"btn btn-cancel",onClick:u},Object(i["toDisplayString"])(Object(i["unref"])(ke)("Cancel")),1),Object(i["createElementVNode"])("button",{class:"btn btn-default",onClick:p},Object(i["toDisplayString"])(Object(i["unref"])(ke)("Done")),1)])):Object(i["createCommentVNode"])("",!0)],2)],2)):Object(i["createCommentVNode"])("",!0)}});n("8ab2");const _l=c()(wl,[["__scopeId","data-v-69e379a0"]]);var Sl=_l,Tl=n("3393"),Ll=n.n(Tl);const Al=["src"],Dl=["src"];var Nl=Object(i["defineComponent"])({__name:"TIcon",props:{file:{type:String,default:""},width:{type:String,default:"20px"},height:{type:String,default:"20px"},isApp:{type:Boolean,default:!1}},emits:["click"],setup(e,{emit:t}){const n=t,o=e,a=()=>{n("click")};return(e,t)=>(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",{class:"icon",onClick:a},[o.isApp?(Object(i["openBlock"])(),Object(i["createElementBlock"])("image",{key:0,class:"icon",src:o.file,style:Object(i["normalizeStyle"])({width:o.width,height:o.height})},null,12,Al)):(Object(i["openBlock"])(),Object(i["createElementBlock"])("img",{key:1,class:"icon",src:o.file,style:Object(i["normalizeStyle"])({width:o.width,height:o.height})},null,12,Dl))]))}});n("d6b9");const Ul=c()(Nl,[["__scopeId","data-v-fbdcb564"]]);var Bl=Ul,Ml=n("eb86"),Vl=n.n(Ml),Rl=n("a45b"),xl=n.n(Rl),Pl=n("adb7"),Gl=n.n(Pl),Fl=n("8d06");const Hl={class:"title"},zl={class:"main"},Kl={class:"left"},Yl={style:{padding:"10px"}},Wl={class:"transfer-left-main",style:{display:"flex","flex-direction":"column",overflow:"hidden"}},$l={key:1,class:"icon-unselected"},ql={class:"select-all"},Ql={style:{flex:"1",overflow:"auto"},class:"transfer-list"},Xl=["onClick"],Zl=["src"],Jl={class:"name"},ec={key:0},tc={class:"right"},nc={key:0,class:"transfer-header"},oc={key:1,class:"transfer-list"},ac={key:0,class:"transfer-text"},ic={class:"transfer-list-item-content"},rc=["src"],sc={key:0,class:"name"},lc=["onClick"],cc={class:"transfer-right-footer"};var dc=Object(i["defineComponent"])({__name:"TTransfer",props:{list:{type:Array,default:()=>[]},selectedList:{type:Array,default:()=>[]},isSearch:{type:Boolean,default:!0},isRadio:{type:Boolean,default:!1},isCustomItem:{type:Boolean,default:!1},title:{type:String,default:""},type:{type:String,default:""},resultShow:{type:Boolean,default:!0},total:{type:Number,default:0},isH5:{type:Boolean,default:!1}},emits:["search","submit","cancel","getMore"],setup(e,{emit:t}){const n=e,o=t,r=Object(i["ref"])(""),s=Object(i["ref"])([]),l=Object(i["ref"])([]),c=Object(i["ref"])(0),d=Object(i["ref"])([]),u=Object(i["ref"])(!0),p=Object(i["ref"])(!1),m=Object(i["ref"])(!1),h=Object(i["ref"])(""),v=Object(i["ref"])(""),f=Object(i["ref"])([]),g=async()=>{try{const t=await Object(Fl["a"])("/health-emergency/api/emergency/order/getGroupMemberList",{sessionId:b["a"].getters.getGroupId});var e;if(200===(null===t||void 0===t?void 0:t.code))f.value=V()(e=(null===t||void 0===t?void 0:t.result)||[]).call(e,e=>({userID:null===e||void 0===e?void 0:e.userId,nick:null===e||void 0===e?void 0:e.userName,avatar:null===e||void 0===e?void 0:e.avatar,isGroup:null===e||void 0===e?void 0:e.isGroupMember}))}catch(t){console.log(t)}};Object(i["watchEffect"])(async()=>{var e,t,o;const{list:i,isCustomItem:m,isSearch:b,title:v,total:O,selectedList:j}=n;if(m)for(let n=0;n-1&&Ll()(i).call(i,n,1),s.value=i}else s.value=i;s.value=W()(e=s.value).call(e,e=>"administrator"!==e.userID),await g();const I=V()(t=s.value).call(t,e=>e.userID);V()(o=f.value).call(o,e=>{x()(I).call(I,e.userID)||s.value.push(e)}),l.value=JSON.parse(a()(s.value)),c.value=O||i.length,d.value=j&&j.length>0?j:d.value,u.value=b,p.value=m,h.value=v,r.value=n.type});const O=Object(i["computed"])(()=>{var e;return W()(e=s.value).call(e,e=>!e.isDisabled)}),j=e=>{if(e.isDisabled)return;let t=d.value;const o=H()(t).call(t,e);var a;if(o>-1)return Ll()(a=d.value).call(a,o,1);n.isRadio&&(t=[]),t.push(e),d.value=t},y=()=>{d.value.length===O.value.length?d.value=[]:d.value=[...O.value]};Object(i["watch"])(()=>v.value,e=>{var t;l.value=W()(t=s.value).call(t,t=>{var n;return H()(n=t.nick).call(n,e)>-1||!e})});const I=()=>{var e;m.value=!0,Object(Fl["b"])("/health-emergency/api/emergency/addGroupUser",{groupId:b["a"].getters.getGroupId,memberList:V()(e=d.value).call(e,e=>null===e||void 0===e?void 0:e.userID)}).then(e=>{200===e.code?(o("submit",d.value),v.value="",d.value=[]):window.parent.postMessage(a()({code:"message",type:"warning",msg:"发起聊天失败"}),"*"),m.value=!1}).catch(e=>{m.value=!1,console.log(e)})},C=()=>{o("cancel"),v.value="",d.value=[]};return(t,o)=>{const a=Object(i["resolveComponent"])("el-input"),r=Object(i["resolveComponent"])("el-button");return Object(i["openBlock"])(),Object(i["createElementBlock"])("div",{class:Object(i["normalizeClass"])(["transfer",[n.isH5?"transfer-h5":""]])},[n.isH5?(Object(i["openBlock"])(),Object(i["createElementBlock"])("header",{key:0,class:"transfer-header transfer-h5-header",onClick:C},[Object(i["createVNode"])(Bl,{class:"icon",file:Object(i["unref"])(xl.a),width:"18px",height:"18px"},null,8,["file"]),Object(i["createElementVNode"])("span",Hl,Object(i["toDisplayString"])(Object(i["unref"])(h)),1),o[1]||(o[1]=Object(i["createElementVNode"])("span",{class:"space"},null,-1))])):Object(i["createCommentVNode"])("",!0),Object(i["createElementVNode"])("main",zl,[Object(i["createElementVNode"])("div",Kl,[Object(i["createElementVNode"])("header",Yl,[Object(i["createVNode"])(a,{style:{"border-radius":"50px"},modelValue:Object(i["unref"])(v),"onUpdate:modelValue":o[0]||(o[0]=e=>Object(i["isRef"])(v)?v.value=e:null),placeholder:"请输入姓名"},null,8,["modelValue"])]),Object(i["createElementVNode"])("main",Wl,[Object(i["createElementVNode"])("ul",null,[Object(i["unref"])(O).length>1&&!e.isRadio?(Object(i["openBlock"])(),Object(i["createElementBlock"])("li",{key:0,class:"transfer-list-item",onClick:y},[Object(i["unref"])(d).length===Object(i["unref"])(O).length?(Object(i["openBlock"])(),Object(i["createBlock"])(Bl,{key:0,file:Object(i["unref"])(Vl.a),width:"18px",height:"18px"},null,8,["file"])):(Object(i["openBlock"])(),Object(i["createElementBlock"])("i",$l)),Object(i["createElementVNode"])("span",ql,Object(i["toDisplayString"])(Object(i["unref"])(ke)("Select all")),1)])):Object(i["createCommentVNode"])("",!0)]),Object(i["createElementVNode"])("ul",Ql,[(Object(i["openBlock"])(!0),Object(i["createElementBlock"])(i["Fragment"],null,Object(i["renderList"])(Object(i["unref"])(l),e=>{var n;return Object(i["openBlock"])(),Object(i["createElementBlock"])("li",{class:"transfer-list-item",key:e.userID,onClick:t=>j(e)},[H()(n=Object(i["unref"])(d)).call(n,e)>-1?(Object(i["openBlock"])(),Object(i["createBlock"])(Bl,{key:0,file:Object(i["unref"])(Vl.a),class:Object(i["normalizeClass"])([e.isDisabled&&"disabled"]),width:"18px",height:"18px"},null,8,["file","class"])):(Object(i["openBlock"])(),Object(i["createElementBlock"])("i",{key:1,class:Object(i["normalizeClass"])([e.isDisabled&&"disabled","icon-unselected"])},null,2)),Object(i["unref"])(p)?Object(i["renderSlot"])(t.$slots,"left",{key:3,data:e}):(Object(i["openBlock"])(),Object(i["createElementBlock"])(i["Fragment"],{key:2},[Object(i["createElementVNode"])("img",{class:"avatar",src:e.avatar||"https://web.sdk.qcloud.com/component/TUIKit/assets/avatar_21.png",onerror:"this.src='https://web.sdk.qcloud.com/component/TUIKit/assets/avatar_21.png'"},null,8,Zl),Object(i["createElementVNode"])("span",Jl,Object(i["toDisplayString"])(e.nick||e.userID),1),e.isDisabled?(Object(i["openBlock"])(),Object(i["createElementBlock"])("span",ec)):Object(i["createCommentVNode"])("",!0)],64))],8,Xl)}),128))])])]),Object(i["createElementVNode"])("div",tc,[n.isH5?Object(i["createCommentVNode"])("",!0):(Object(i["openBlock"])(),Object(i["createElementBlock"])("header",nc,Object(i["toDisplayString"])(Object(i["unref"])(h)),1)),e.resultShow?(Object(i["openBlock"])(),Object(i["createElementBlock"])("ul",oc,[Object(i["unref"])(d).length>0&&!n.isH5?(Object(i["openBlock"])(),Object(i["createElementBlock"])("p",ac,Object(i["toDisplayString"])(Object(i["unref"])(d).length)+" "+Object(i["toDisplayString"])(Object(i["unref"])(ke)("people selected")),1)):Object(i["createCommentVNode"])("",!0),(Object(i["openBlock"])(!0),Object(i["createElementBlock"])(i["Fragment"],null,Object(i["renderList"])(Object(i["unref"])(d),(e,o)=>(Object(i["openBlock"])(),Object(i["createElementBlock"])("li",{class:"transfer-list-item space-between",key:o},[Object(i["createElementVNode"])("aside",ic,[Object(i["unref"])(p)?Object(i["renderSlot"])(t.$slots,"right",{key:1,data:e}):(Object(i["openBlock"])(),Object(i["createElementBlock"])(i["Fragment"],{key:0},[Object(i["createElementVNode"])("img",{class:"avatar",src:e.avatar||"https://web.sdk.qcloud.com/component/TUIKit/assets/avatar_21.png",onerror:"this.src='https://web.sdk.qcloud.com/component/TUIKit/assets/avatar_21.png'"},null,8,rc),n.isH5?Object(i["createCommentVNode"])("",!0):(Object(i["openBlock"])(),Object(i["createElementBlock"])("span",sc,Object(i["toDisplayString"])(e.nick||e.userID),1))],64))]),n.isH5?Object(i["createCommentVNode"])("",!0):(Object(i["openBlock"])(),Object(i["createElementBlock"])("span",{key:0,onClick:t=>j(e)},[Object(i["createVNode"])(Bl,{file:Object(i["unref"])(Gl.a),width:"18px",height:"18px"},null,8,["file"])],8,lc))]))),128))])):Object(i["createCommentVNode"])("",!0),Object(i["createElementVNode"])("footer",cc,[Object(i["createElementVNode"])("button",{class:"btn btn-cancel",onClick:C},Object(i["toDisplayString"])(Object(i["unref"])(ke)("Cancel")),1),Object(i["unref"])(d).length>0?(Object(i["openBlock"])(),Object(i["createBlock"])(r,{key:0,loading:Object(i["unref"])(m),class:"btn",style:{background:"#3370ff !important",border:"0 solid #2f80ed !important"},onClick:I},{default:Object(i["withCtx"])(()=>[Object(i["createTextVNode"])(Object(i["toDisplayString"])(Object(i["unref"])(ke)("Done")),1)]),_:1},8,["loading"])):(Object(i["openBlock"])(),Object(i["createElementBlock"])("button",{key:1,class:"btn btn-no",onClick:I},Object(i["toDisplayString"])(Object(i["unref"])(ke)("Done")),1))])])])],2)}}});n("73af"),n("2446");const uc=c()(dc,[["__scopeId","data-v-188ea6b8"]]);var pc=uc,mc=Object(i["defineComponent"])({__name:"SelectUser",props:{isRadio:{type:Boolean,default:!1},isNeedSearch:{type:Boolean,default:!1},title:{type:String,default:""},userList:{type:Array,default:()=>[]},total:{type:Number,default:0},isShow:{type:Boolean,default:!1},isPC:{type:Boolean,default:!0}},emits:["complete","search","getMore","update:isShow"],setup(e,{emit:t}){const n=t,o=e,a=Object(i["ref"])(!1);Object(i["watchEffect"])(()=>{a.value=o.isShow});const r=()=>{a.value=!a.value,n("complete",[]),n("update:isShow",a.value)},s=e=>{n("complete",e)},l=e=>{n("search",e)},c=()=>{n("getMore")};return(t,n)=>(Object(i["openBlock"])(),Object(i["createBlock"])(Sl,{moduleValue:Object(i["unref"])(a),isH5:!e.isPC,isHeaderShow:!1,isFooterShow:!1,background:!1,"onUpdate:moduleValue":r},{default:Object(i["withCtx"])(()=>[Object(i["createVNode"])(pc,{isSearch:o.isNeedSearch,title:o.title,list:o.userList,isH5:!e.isPC,isRadio:o.isRadio,total:o.total,onGetMore:c,onSearch:l,onSubmit:s,onCancel:r},null,8,["isSearch","title","list","isH5","isRadio","total"])]),_:1},8,["moduleValue","isH5"]))}});const bc=mc;var hc=bc;const vc={key:0},fc=30;var gc=Object(i["defineComponent"])({__name:"GroupCall",setup(e){const t=Object(i["ref"])(nn.getData(w.CALL,he.CALL_ROLE)),n=Object(i["ref"])(nn.getData(w.CALL,he.CALL_STATUS)),o=Object(i["ref"])(nn.getData(w.CALL,he.CALL_MEDIA_TYPE)),a=!tn.isPC,r=a?"":"group-deskTop",s=Object(i["ref"])(nn.getData(w.CALL,he.LOCAL_USER_INFO)),l=Object(i["ref"])(nn.getData(w.CALL,he.REMOTE_USER_INFO_LIST)),c=Object(i["ref"])(!1),d=Object(i["ref"])(0),u=Object(i["ref"])([]),p=Object(i["ref"])([]),m=Object(i["ref"])(0);Object(i["onMounted"])(()=>{nn.watch(w.CALL,j,{notifyRangeWhenWatch:he.MYSELF})}),Object(i["onUnmounted"])(()=>{nn.unwatch(w.CALL,j)});const b=e=>{n.value=e},h=e=>{o.value=e},v=e=>{t.value=e},f=e=>{s.value=e},g=e=>{l.value=e},O=async e=>{if(c.value=e,c.value){await C();const e=await sn.getGroupProfile();d.value=e.memberCount}},j={[he.CALL_STATUS]:b,[he.CALL_MEDIA_TYPE]:h,[he.CALL_ROLE]:v,[he.SHOW_SELECT_USER]:O,[he.LOCAL_USER_INFO]:f,[he.REMOTE_USER_INFO_LIST]:g},y=()=>{c.value=!1,nn.update(w.CALL,he.SHOW_SELECT_USER,!1),m.value=0,u.value=[]},I=async()=>{m.value+=fc,await C()},C=async()=>{var e,t;const n=await sn.getGroupMemberList(fc,m.value),o=V()(e=[...l.value,s.value]).call(e,e=>e.userId);u.value.push(...n),u.value=V()(t=u.value).call(t,e=>(x()(o).call(o,e.userID)&&(e={...e,isDisabled:!0}),e)),p.value=u.value},E=async e=>{try{if(e.length<=0)return;c.value=!1,nn.update(w.CALL,he.SHOW_SELECT_USER,!1),m.value=0;const t=V()(e).call(e,e=>e.userID);await sn.inviteUser({userIDList:t}),u.value=[]}catch(t){console.debug(t)}},k=e=>{var t;e?u.value=W()(t=u.value).call(t,t=>{var n,o;return x()(n=t.userID).call(n,e)||x()(o=t.nick).call(o,e)}):u.value=p.value};return(e,o)=>(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",{class:Object(i["normalizeClass"])(Object(i["unref"])(r))},[Object(i["createVNode"])(hc,{isShow:Object(i["unref"])(c),isNeedSearch:!0,userList:Object(i["unref"])(u),isPC:!a,total:Object(i["unref"])(d),onGetMore:I,onComplete:E,onSearch:k,"onUpdate:isShow":y},null,8,["isShow","userList","isPC","total"]),Object(i["unref"])(n)===Object(i["unref"])(T).CALLING&&Object(i["unref"])(t)!==Object(i["unref"])(S).CALLER?(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",vc,[Object(i["createVNode"])(Br)])):Object(i["createCommentVNode"])("",!0),Object(i["unref"])(n)===Object(i["unref"])(T).CONNECTED||Object(i["unref"])(t)===Object(i["unref"])(S).CALLER?(Object(i["openBlock"])(),Object(i["createBlock"])(Il,{key:1})):Object(i["createCommentVNode"])("",!0),Object(i["createVNode"])(ts)],2))}});n("a243");const Oc=c()(gc,[["__scopeId","data-v-79061597"]]);var jc=Oc;const yc={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg","data-v-ea893728":""};function Ic(e,t){return Object(i["openBlock"])(),Object(i["createElementBlock"])("svg",yc,[...t[0]||(t[0]=[Object(i["createElementVNode"])("path",{fill:"currentColor",d:"M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"},null,-1)])])}const Cc={},Ec=c()(Cc,[["render",Ic]]);var kc=Ec,wc=n("c164"),_c=n.n(wc),Sc=n("8613"),Tc=n.n(Sc);const Lc={key:0,class:"card"},Ac={class:"card-body"},Dc={class:"card-wrapper"},Nc={class:"title"},Uc={class:"button"},Bc={class:"allow"},Mc={class:"image-wrapper"},Vc=["src"];var Rc=Object(i["defineComponent"])({__name:"SystemPermitTip",props:{platform:{},language:{}},setup(e){const t={mac:{"zh-cn":_c.a,en:Tc.a},win:{"zh-cn":_c.a,en:Tc.a}},n=e,o=Object(i["computed"])(()=>"mac"===n.platform?"mac-privacy":"win-privacy"),a=Object(i["computed"])(()=>"mac"===n.platform?"mac-preferences":"win-preferences"),r=Object(i["ref"])(_c.a),s=Object(i["ref"])(!0),l=e=>{e&&tn.isPC&&(s.value=!0)},c=()=>{s.value=!1};return Object(i["watch"])(()=>n.language,()=>{r.value=t[n.platform][n.language]},{immediate:!0}),Object(i["onMounted"])(()=>{nn.watch(w.CALL,{[he.SHOW_PERMISSION_TIP]:l},{notifyRangeWhenWatch:he.MYSELF})}),Object(i["onUnmounted"])(()=>{nn.unwatch(w.CALL,{[he.SHOW_PERMISSION_TIP]:l})}),(e,t)=>Object(i["unref"])(s)?(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",Lc,[Object(i["createElementVNode"])("div",Ac,[Object(i["createElementVNode"])("div",{class:"close",onClick:c},[Object(i["createVNode"])(kc)]),Object(i["createElementVNode"])("div",Dc,[Object(i["createElementVNode"])("div",Nc,Object(i["toDisplayString"])(Object(i["unref"])(ke)("browser-authorization")),1),Object(i["createElementVNode"])("div",Uc,Object(i["toDisplayString"])(Object(i["unref"])(ke)(Object(i["unref"])(a))),1),Object(i["createElementVNode"])("div",Bc,Object(i["toDisplayString"])(Object(i["unref"])(ke)(Object(i["unref"])(o))),1),Object(i["createElementVNode"])("div",Mc,[Object(i["createElementVNode"])("img",{src:Object(i["unref"])(r),class:"image",alt:"system permit"},null,8,Vc)])])])])):Object(i["createCommentVNode"])("",!0)}});n("bddd");const xc=c()(Rc,[["__scopeId","data-v-35018963"]]);var Pc=xc;const Gc={class:"tip"},Fc={class:"card"};var Hc=Object(i["defineComponent"])({__name:"PermitTip",setup(e){const t=Object(i["computed"])(()=>tn.isMAC?fe.MAC:fe.WIN),n=Object(i["ref"])(nn.getData(w.CALL,he.LANGUAGE)),o=e=>n.value=e;return Object(i["onMounted"])(()=>{nn.watch(w.CALL,{[he.LANGUAGE]:o},{notifyRangeWhenWatch:he.MYSELF})}),Object(i["onUnmounted"])(()=>{nn.unwatch(w.CALL,{[he.LANGUAGE]:o})}),(e,o)=>(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",Gc,[Object(i["createElementVNode"])("div",Fc,[Object(i["createVNode"])(Pc,{platform:Object(i["unref"])(t),language:Object(i["unref"])(n)},null,8,["platform","language"])])]))}});n("70bb");const zc=c()(Hc,[["__scopeId","data-v-c8d202ba"]]);var Kc=zc;const Yc={};let Wc=null,$c=1;const qc=()=>{const e=document.body,t=document.createElement("div");Wc&&(e.removeChild(Wc.el),Object(i["render"])(null,t));const n=Object(i["createVNode"])(Kc,{index:"permit-item-"+$c++,destroy(){Object(i["render"])(null,t)}});Object(i["render"])(n,t),e.appendChild(t.firstElementChild),Wc=n};Yc.show=()=>qc();var Qc=n("4c43"),Xc=n.n(Qc);const Zc={class:"toast-content"};var Jc=Object(i["defineComponent"])({__name:"Toast",props:{type:{},duration:{},message:{},index:{},showClose:{type:Boolean},destroy:{type:Function},close:{type:Function}},setup(e){const t=e,n=Object(i["ref"])(!1),o=Object(i["ref"])(null),a=Object(i["computed"])(()=>"toast-container "+t.type),r=()=>{t.destroy()},s=()=>{t.close(),n.value=!1},l=()=>{o.value&&clearTimeout(o.value),t.duration&&(o.value=Se()(()=>{s()},t.duration))};return Object(i["onMounted"])(()=>{n.value=!0,l()}),Object(i["onUnmounted"])(()=>{o.value&&clearTimeout(o.value)}),(t,o)=>(Object(i["openBlock"])(),Object(i["createBlock"])(i["Transition"],{name:"slide-up",onAfterLeave:r},{default:Object(i["withCtx"])(()=>[Object(i["withDirectives"])((Object(i["openBlock"])(),Object(i["createElementBlock"])("div",{key:e.index,class:Object(i["normalizeClass"])(Object(i["unref"])(a))},[Object(i["createElementVNode"])("div",Zc,Object(i["toDisplayString"])(e.message),1),Object(i["withDirectives"])(Object(i["createElementVNode"])("i",{onClick:s,class:"toast-close-icon"},null,512),[[i["vShow"],e.showClose]])],2)),[[i["vShow"],Object(i["unref"])(n)]])]),_:1}))}});n("8599c");const ed=c()(Jc,[["__scopeId","data-v-89575908"]]);var td,nd=ed;const od={},ad=[];let id=1;function rd(){var e;const t=ad.length;return t>0?null===(e=ad[t-1])||void 0===e||null===(e=e.el)||void 0===e||null===(e=e.style)||void 0===e?void 0:e.top:"30px"}function sd(){var e;const t=ad.length;return t>0?null===(e=ad[t-1])||void 0===e||null===(e=e.el)||void 0===e?void 0:e.offsetHeight:0}const ld=e=>{const{type:t,duration:n=3e3,message:o,showClose:a=!1,onClose:r}=e,s=document.body,l=document.createElement("div"),c=Object(i["createVNode"])(nd,{type:t,duration:n,message:o,showClose:a,index:"toast-item-"+id++,close(){var e,t;const n=Xc()(ad).call(ad,e=>e===c);console.log(null===(e=ad[n])||void 0===e||null===(e=e.el)||void 0===e?void 0:e.offsetHeight);const o=Ue()(null===(t=ad[n])||void 0===t||null===(t=t.el)||void 0===t?void 0:t.offsetHeight)+20;for(let a=0;a{let t={};od[e]=n=>{"string"===typeof n?t.message=n:t=n,ld({type:e,...t})}}),od.show=e=>{let t={};return"string"===typeof e?(t.message=e,t.type="info"):t=e,ld({type:"info",...t})};var cd=Object(i["defineComponent"])({__name:"TUICallKit",props:{beforeCalling:{},afterCalling:{},onMinimized:{},onMessageSentByMe:{},kickedOut:{},statusChanged:{},allowedMinimized:{type:Boolean,default:!1},allowedFullScreen:{type:Boolean,default:!0},videoDisplayMode:{default:"cover"},videoResolution:{default:"480p"}},setup(e){const t=!tn.isPC,n=Object(i["ref"])(nn.getData(w.CALL,he.CALL_STATUS)),o=Object(i["ref"])(nn.getData(w.CALL,he.IS_GROUP)),a=t?"TUICallKit-mobile transition-animation":"TUICallKit-desktop",r=Object(i["ref"])(""),s=Object(i["ref"])(""),l=Object(i["ref"])(""),c=Object(i["ref"])(!1),d=Object(i["ref"])(nn.getData(w.CALL,he.CALL_MEDIA_TYPE)),u=e,{beforeCalling:p,afterCalling:m,onMinimized:b,onMessageSentByMe:h,videoDisplayMode:v,videoResolution:f,kickedOut:g,statusChanged:O,allowedMinimized:j}=Object(i["toRefs"])(u),y=e=>{n.value=e},I=e=>{o.value=e},C=e=>{e.text&&L(e.text,e.type||"info")},E=e=>{d.value=e,t&&c.value&&(l.value="miniMized-mobile-audio",s.value=""),t&&!c.value&&(s.value="mobile-audio")},k=e=>{c.value=e,e?t?d.value===_.AUDIO?s.value="miniMized-mobile-audio":l.value="miniMized-mobile-video":r.value="miniMized":(s.value="mobile-audio",r.value="",l.value="")},S=e=>{if(e&&tn.isPC)try{Yc.show()}catch(t){console.debug(t)}};function L(e,t){switch(t){case"info":null===od||void 0===od||od.info(e);break;case"error":null===od||void 0===od||od.error(e);break;default:break}}return Object(i["watchEffect"])(()=>{sn.setCallback({beforeCalling:p&&p.value,afterCalling:m&&m.value,onMinimized:b&&b.value,onMessageSentByMe:h&&h.value,kickedOut:g&&g.value,statusChanged:O&&O.value})}),Object(i["onMounted"])(()=>{j.value&&sn.enableFloatWindow(j.value),sn.setVideoDisplayMode(v.value),sn.setVideoResolution(f.value),nn.watch(w.CALL,{[he.CALL_STATUS]:y,[he.IS_GROUP]:I,[he.TOAST_INFO]:C,[he.CALL_MEDIA_TYPE]:E,[he.SHOW_PERMISSION_TIP]:S},{notifyRangeWhenWatch:he.MYSELF}),nn.watch(w.CALL,{[he.IS_MINIMIZED]:k})}),Object(i["onUnmounted"])(()=>{nn.unwatch(w.CALL,{[he.CALL_STATUS]:y,[he.IS_GROUP]:I,[he.TOAST_INFO]:C,[he.IS_MINIMIZED]:k,[he.SHOW_PERMISSION_TIP]:S})}),(t,c)=>Object(i["unref"])(n)!==Object(i["unref"])(T).IDLE?(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",{key:0,id:"tui-call-kit-id",class:Object(i["normalizeClass"])([Object(i["unref"])(a),Object(i["unref"])(r),Object(i["unref"])(l),Object(i["unref"])(s)])},[Object(i["unref"])(o)?(Object(i["openBlock"])(),Object(i["createBlock"])(jc,{key:1,class:"singCall"})):(Object(i["openBlock"])(),Object(i["createBlock"])(gr,{key:0,class:"singCall","allowed-full-screen":e.allowedFullScreen},null,8,["allowed-full-screen"]))],2)):Object(i["createCommentVNode"])("",!0)}});n("416b");const dd=cd;var ud=dd;const pd=e=>(e.component("TUICallKit",{server:sn}),sn.bindTUICore(e),ud),md=e=>{e.component("TUICallKit",ud),console.log("TUICallKit&mini installed",e)};ud.plugin=pd,ud.install=md;var bd=n("c193"),hd=n("bbb6"),vd=n("1344"),fd=n("48d5");const{userId:gd,sdkAppId:Od,userSig:jd,urlF:yd,tokenF:Id}=fd["a"];sessionStorage.setItem("tokenF",Id+"");const Cd=1*Od,Ed=U["b"].init({SDKAppID:Cd}),kd={userID:gd,userSig:jd},wd=e=>{Ed.login(e).then(t=>{const n={...e,expire:(new Date).getTime()+hd["a"]};b["a"].commit("setUserInfo",n),window.parent.postMessage(a()({code:"closeLoading"}),"*"),m["a"].push({name:"Home"})}).catch(e=>{console.log("该关了"),window.parent.postMessage(a()({code:"closeLoading"}),"*"),Object(h["a"])({message:e,grouping:!0,type:"error"})})};wd(kd),Ed.config.i18n.provideMessage(N),Ed.use(U["a"]),Ed.use(ud),Ed.use(bd["c"]);const _d=Object(i["createApp"])(p),Sd=Object(vd["a"])(),Td={};Td.$on=Sd.on,Td.$off=Sd.off,Td.$emit=Sd.emit,_d.config.globalProperties.$bus=Td,_d.use(b["a"]).use(m["a"]).use(Ed).use(Td).use(v["a"]).mount("#app")},ce48:function(e,t,n){"use strict";n("107e")},ce82:function(e,t,n){e.exports=n.p+"media/phone_ringing.92df1ed7.mp3"},d013:function(e,t,n){},d0f1:function(e,t,n){"use strict";n("f7a6")},d161:function(e,t,n){},d281:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGgAAABoCAMAAAAqwkWTAAAAqFBMVEUAAAD///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////8lQWY7VXb29/mlscAnQ2jn6u69xdFjd5ExS25GXn0wSm7p7PDh5erM09vBydSgrb2SoLN7jKJxhJwqRmpLY4Hu8POVo7WVorRccY0F8cuqAAAAHnRSTlMA7R4Ex+jZ0q5OSRXJ4Yz59biyo453bGVXPi8qC41r8AF3AAADgUlEQVRo3rzW147CMBAF0DHpld7Za5bQVyD+/+tWSHmgGGecmJznSFcej2dCfMl8mg/cIBPdrsgCd5BP5wnZtpyEAgoinCzJFiceetDwhrFDzS1yD5W8fEHNRCmY0ojqmwUwEMyontiHIT8mc50QNYQd004b91BLb+wYHcdFba7BoSKBBkTELdsIDY1Y5Vv10Vh/RZWSFBakSWUb+LDC71TkZLAk0yYlPqzxE00fpLAoXX3s6z6s6jukNoJlI1KKYF2kbDgB60RHcUEuvsB9v6YxvmL8VrgevqL3WrwQXxLSkxhM283+eDod95stmGJ65IPlfCtkqbidweLTgxlYdgf54LADy+NfWACOayGfFFdwBKYzYVfIF8XOcD6kYDgf5JvDGQwplRbguEmFGzgWZdAPGLaFVCi2YMjLKeeBYSOVNmDwHIPHupdKe4NHOwTHUSodwTGkOw8cJ6l0Aod3z1mCRX4AliURTdoImvAXhPyAvyxEG0GCKEEbQUho3k7QnKbtBE3pp52gnAbtBA3IbSfIrdzil/X6og8qv9ELKIPeWsq1Pqj8Ri8jwRimv/qh+ssYroK6jPXwp18Tf4x10f2v1upaG4ShKIzBupcy2Mvo0OaKdg+mhqjV///P5oE9lFU9N2uWufPSYiDH3MTcr0OJxmkWu+747PQ7MiJqOg9/ve7KMeSZ6ehhaPDa68EJFtuww0CPNzaglbVwS1psIzve/IPtYKC1ABKW6+gHy68gN81jZDkkFjP9c/QK4pdqj5W45SDfYWU9v1S5mxiwS3YpbbHYoYG7Cer4vmxjyvlErDQYFO74NK68wsRdOZdalh3GKoUrVwUnF8xm7O2ANRi5KIITZbjlMV/r5JtNXYvnPufYKQNI8UfAFFdUUpgj4EUZQCIkVlkPaE+FrUVqW5ywGpXdgHd9kF+Z4wxMpQzy9WlLLsPHzQ00SK7Ca1jVpHfdNU3n+qDqCVJLNerGjyAZfVPnaiC1BPZ5EECUB2FP0v9oRAdS0IhF9EhKNNGInknRKRbREymjRSN6CysMnudvhjMvDAaWOsEzxxRS6gR2v0W0I+XoWKZ7eUhVYE/WMkjVBEnV1knVqErWekvVTPz79mjchu82WtjxmvLbkRnEEU5sSwpyt7hli3KdOwRI25VU/UQktn3ZG3DINEK+7PB/pIkxxZZ6+Wh2LR/NguSjn/9F6h0IFyvQAAAAAElFTkSuQmCC"},d35b:function(e,t,n){e.exports=n.p+"img/mute.4ee858f2.svg"},d39e:function(e){e.exports=JSON.parse('{"群聊通知":"群聊通知","系统通知":"系统通知","我的群聊":"我的群聊","输入群ID,按回车搜索":"输入群ID,按回车搜索","群名称":"群名称","群ID":"群ID","加入群聊":"加入群聊","解散群聊":"解散群聊","退出群聊":"退出群聊","进入群聊":"进入群聊","群类型":"群类型","请填写验证信息":"请填写验证信息","申请加入":"申请加入","已申请":"已申请","接受":"接受","拒绝":"拒绝","已处理":"已处理","添加群聊":"添加群聊","已加入":"已加入","该群组不存在":"该群组不存在","加群":"加群","我的好友":"我的好友","发送消息":"发送消息","个性签名":"个性签名"}')},d42b:function(e,t,n){"use strict";n("5831")},d45a:function(e,t,n){"use strict";n("c885")},d4db:function(e,t,n){"use strict";n("fa4f")},d5f0:function(e,t,n){"use strict";n("38cc")},d65dd:function(e,t,n){"use strict";n("8961")},d6b9:function(e,t,n){"use strict";n("4591")},d7d7:function(e,t,n){},d814:function(e,t,n){"use strict";n("b9ad")},d871:function(e,t,n){},dc8e:function(e,t,n){},dce0:function(e,t,n){"use strict";n("eebc")},dd44:function(e,t,n){e.exports=n.p+"img/default_avatar.b5538259.png"},dd7e:function(e,t,n){},ded8:function(e,t,n){},e083:function(e,t,n){e.exports=n.p+"img/acceptVideo.c38a1592.svg"},e157:function(e,t,n){"use strict";n("9d69")},e238:function(e,t,n){"use strict";n("4724")},e282:function(e,t,n){},e2f6:function(e,t,n){},e305:function(e,t,n){e.exports=n.p+"img/invite_user.2a5433a4.svg"},e311:function(e,t,n){"use strict";(function(e){var o,a,i=n("e946"),r=n.n(i),s=n("52da"),l=n.n(s),c=n("65b8"),d=n.n(c),u=n("05f2"),p=n.n(u),m=n("9474"),b=n.n(m),h=n("b0bc"),v=n.n(h),f=n("44a4"),g=n.n(f),O=n("2e10"),j=n.n(O),y=n("acf5"),I=n.n(y),C=n("a3e3"),E=n.n(C),k=n("3393"),w=n.n(k),_=n("2b0b"),S=n.n(_),T=n("cca4"),L=n.n(T),A=n("fa81"),D=n.n(A),N=n("2b58"),U=n.n(N),B=n("5b1a"),M=n.n(B),V=n("4573"),R=n.n(V),x=n("ec69"),P=n.n(x),G=n("14b1"),F=n.n(G),H=n("298b"),z=n.n(H),K=n("7c78"),Y=n.n(K),W=n("2d80"),$=n.n(W),q=n("78b2"),Q=n.n(q),X=n("b6ce"),Z=n.n(X),J=n("f72b"),ee=n.n(J),te=n("3002"),ne=n.n(te),oe=(n("d9e2"),n("14d9"),n("2c66"),n("249d"),n("40e9"),n("e9f5"),n("db9ba"),n("5377"),n("907a"),n("986a"),n("1d02"),n("3c5d"),n("6ce5"),n("2834"),n("4ea1"),n("8407"),n("34af"),n("418f"),n("b848"),n("c73d"),"undefined"!=typeof e?e:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{}),ae=[],ie=[],re="undefined"!=typeof Uint8Array?Uint8Array:Array,se=!1;function le(){se=!0;for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=0,n=e.length;t>18&63]+ae[a>>12&63]+ae[a>>6&63]+ae[63&a]);return i.join("")}function de(e){var t;se||le();for(var n=e.length,o=n%3,a="",i=[],r=0,s=n-o;rs?s:r+16383));return 1===o?(t=e[n-1],a+=ae[t>>2],a+=ae[t<<4&63],a+="=="):2===o&&(t=(e[n-2]<<8)+e[n-1],a+=ae[t>>10],a+=ae[t>>4&63],a+=ae[t<<2&63],a+="="),i.push(a),i.join("")}function ue(e,t,n,o,a){var i,r,s=8*a-o-1,l=(1<>1,d=-7,u=n?a-1:0,p=n?-1:1,m=e[t+u];for(u+=p,i=m&(1<<-d)-1,m>>=-d,d+=s;d>0;i=256*i+e[t+u],u+=p,d-=8);for(r=i&(1<<-d)-1,i>>=-d,d+=o;d>0;r=256*r+e[t+u],u+=p,d-=8);if(0===i)i=1-c;else{if(i===l)return r?NaN:1/0*(m?-1:1);r+=Math.pow(2,o),i-=c}return(m?-1:1)*r*Math.pow(2,i-o)}function pe(e,t,n,o,a,i){var r,s,l,c=8*i-a-1,d=(1<>1,p=23===a?Math.pow(2,-24)-Math.pow(2,-77):0,m=o?0:i-1,b=o?1:-1,h=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,r=d):(r=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-r))<1&&(r--,l*=2),(t+=r+u>=1?p/l:p*Math.pow(2,1-u))*l>=2&&(r++,l/=2),r+u>=d?(s=0,r=d):r+u>=1?(s=(t*l-1)*Math.pow(2,a),r+=u):(s=t*Math.pow(2,u-1)*Math.pow(2,a),r=0));a>=8;e[n+m]=255&s,m+=b,s/=256,a-=8);for(r=r<0;e[n+m]=255&r,m+=b,r/=256,c-=8);e[n+m-b]|=128*h}var me={}.toString,be=r.a||function(e){return"[object Array]"==me.call(e)};function he(){return fe.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function ve(e,t){if(he()=he())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+he().toString(16)+" bytes");return 0|e}function Ce(e){return!(null==e||!e._isBuffer)}function Ee(e,t){if(Ce(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var o=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return Xe(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return Ze(e).length;default:if(o)return Xe(e).length;t=(""+t).toLowerCase(),o=!0}}function ke(e,t,n){var o=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return Pe(this,t,n);case"utf8":case"utf-8":return Me(this,t,n);case"ascii":return Re(this,t,n);case"latin1":case"binary":return xe(this,t,n);case"base64":return Be(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ge(this,t,n);default:if(o)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),o=!0}}function we(e,t,n){var o=e[t];e[t]=e[n],e[n]=o}function _e(e,t,n,o,a){if(0===e.length)return-1;if("string"==typeof n?(o=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=a?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(a)return-1;n=e.length-1}else if(n<0){if(!a)return-1;n=0}if("string"==typeof t&&(t=fe.from(t,o)),Ce(t))return 0===t.length?-1:Se(e,t,n,o,a);if("number"==typeof t)return t&=255,fe.TYPED_ARRAY_SUPPORT&&"function"==typeof d()(Uint8Array.prototype)?a?d()(Uint8Array.prototype).call(e,t,n):p()(Uint8Array.prototype).call(e,t,n):Se(e,[t],n,o,a);throw new TypeError("val must be string, number or Buffer")}function Se(e,t,n,o,a){var i,r=1,s=e.length,l=t.length;if(void 0!==o&&("ucs2"===(o=String(o).toLowerCase())||"ucs-2"===o||"utf16le"===o||"utf-16le"===o)){if(e.length<2||t.length<2)return-1;r=2,s/=2,l/=2,n/=2}function c(e,t){return 1===r?e[t]:e.readUInt16BE(t*r)}if(a){var d=-1;for(i=n;is&&(n=s-l),i=n;i>=0;i--){for(var u=!0,p=0;pa&&(o=a):o=a;var i=t.length;if(i%2!=0)throw new TypeError("Invalid hex string");o>i/2&&(o=i/2);for(var r=0;r>8,a=n%256,i.push(a),i.push(o);return i}(t,e.length-n),e,n,o)}function Be(e,t,n){return 0===t&&n===e.length?de(e):de(l()(e).call(e,t,n))}function Me(e,t,n){n=Math.min(e.length,n);for(var o=[],a=t;a239?4:d>223?3:d>191?2:1;if(a+p<=n)switch(p){case 1:d<128&&(u=d);break;case 2:128==(192&(i=e[a+1]))&&(c=(31&d)<<6|63&i)>127&&(u=c);break;case 3:i=e[a+1],r=e[a+2],128==(192&i)&&128==(192&r)&&(c=(15&d)<<12|(63&i)<<6|63&r)>2047&&(c<55296||c>57343)&&(u=c);break;case 4:i=e[a+1],r=e[a+2],s=e[a+3],128==(192&i)&&128==(192&r)&&128==(192&s)&&(c=(15&d)<<18|(63&i)<<12|(63&r)<<6|63&s)>65535&&c<1114112&&(u=c)}null===u?(u=65533,p=1):u>65535&&(u-=65536,o.push(u>>>10&1023|55296),u=56320|1023&u),o.push(u),a+=p}return function(e){var t=e.length;if(t<=Ve)return String.fromCharCode.apply(String,e);for(var n="",o=0;o0&&(e=this.toString("hex",0,50).match(/.{2}/g).join(" "),this.length>50&&(e+=" ... ")),""},fe.prototype.compare=function(e,t,n,o,a){if(!Ce(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===o&&(o=0),void 0===a&&(a=this.length),t<0||n>e.length||o<0||a>this.length)throw new RangeError("out of range index");if(o>=a&&t>=n)return 0;if(o>=a)return-1;if(t>=n)return 1;if(this===e)return 0;for(var i=(a>>>=0)-(o>>>=0),r=(n>>>=0)-(t>>>=0),s=Math.min(i,r),c=l()(p=this).call(p,o,a),d=l()(e).call(e,t,n),u=0;ua)&&(n=a),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");o||(o="utf8");for(var i=!1;;)switch(o){case"hex":return Te(this,e,t,n);case"utf8":case"utf-8":return Le(this,e,t,n);case"ascii":return Ae(this,e,t,n);case"latin1":case"binary":return De(this,e,t,n);case"base64":return Ne(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ue(this,e,t,n);default:if(i)throw new TypeError("Unknown encoding: "+o);o=(""+o).toLowerCase(),i=!0}},fe.prototype.toJSON=function(){return{type:"Buffer",data:l()(Array.prototype).call(this._arr||this,0)}};var Ve=4096;function Re(e,t,n){var o="";n=Math.min(e.length,n);for(var a=t;ao)&&(n=o);for(var a="",i=t;in)throw new RangeError("Trying to access beyond buffer length")}function He(e,t,n,o,a,i){if(!Ce(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>a||te.length)throw new RangeError("Index out of range")}function ze(e,t,n,o){t<0&&(t=65535+t+1);for(var a=0,i=Math.min(e.length-n,2);a>>8*(o?a:1-a)}function Ke(e,t,n,o){t<0&&(t=4294967295+t+1);for(var a=0,i=Math.min(e.length-n,4);a>>8*(o?a:3-a)&255}function Ye(e,t,n,o,a,i){if(n+o>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function We(e,t,n,o,a){return a||Ye(e,0,n,4),pe(e,t,n,o,23,4),n+4}function $e(e,t,n,o,a){return a||Ye(e,0,n,8),pe(e,t,n,o,52,8),n+8}fe.prototype.slice=function(e,t){var n,o=this.length;if((e=~~e)<0?(e+=o)<0&&(e=0):e>o&&(e=o),(t=void 0===t?o:~~t)<0?(t+=o)<0&&(t=0):t>o&&(t=o),t0&&(a*=256);)o+=this[e+--t]*a;return o},fe.prototype.readUInt8=function(e,t){return t||Fe(e,1,this.length),this[e]},fe.prototype.readUInt16LE=function(e,t){return t||Fe(e,2,this.length),this[e]|this[e+1]<<8},fe.prototype.readUInt16BE=function(e,t){return t||Fe(e,2,this.length),this[e]<<8|this[e+1]},fe.prototype.readUInt32LE=function(e,t){return t||Fe(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},fe.prototype.readUInt32BE=function(e,t){return t||Fe(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},fe.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||Fe(e,t,this.length);for(var o=this[e],a=1,i=0;++i=(a*=128)&&(o-=Math.pow(2,8*t)),o},fe.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||Fe(e,t,this.length);for(var o=t,a=1,i=this[e+--o];o>0&&(a*=256);)i+=this[e+--o]*a;return i>=(a*=128)&&(i-=Math.pow(2,8*t)),i},fe.prototype.readInt8=function(e,t){return t||Fe(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},fe.prototype.readInt16LE=function(e,t){t||Fe(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},fe.prototype.readInt16BE=function(e,t){t||Fe(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},fe.prototype.readInt32LE=function(e,t){return t||Fe(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},fe.prototype.readInt32BE=function(e,t){return t||Fe(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},fe.prototype.readFloatLE=function(e,t){return t||Fe(e,4,this.length),ue(this,e,!0,23,4)},fe.prototype.readFloatBE=function(e,t){return t||Fe(e,4,this.length),ue(this,e,!1,23,4)},fe.prototype.readDoubleLE=function(e,t){return t||Fe(e,8,this.length),ue(this,e,!0,52,8)},fe.prototype.readDoubleBE=function(e,t){return t||Fe(e,8,this.length),ue(this,e,!1,52,8)},fe.prototype.writeUIntLE=function(e,t,n,o){e=+e,t|=0,n|=0,o||He(this,e,t,n,Math.pow(2,8*n)-1,0);var a=1,i=0;for(this[t]=255&e;++i=0&&(i*=256);)this[t+a]=e/i&255;return t+n},fe.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||He(this,e,t,1,255,0),fe.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},fe.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||He(this,e,t,2,65535,0),fe.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):ze(this,e,t,!0),t+2},fe.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||He(this,e,t,2,65535,0),fe.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):ze(this,e,t,!1),t+2},fe.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||He(this,e,t,4,4294967295,0),fe.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):Ke(this,e,t,!0),t+4},fe.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||He(this,e,t,4,4294967295,0),fe.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):Ke(this,e,t,!1),t+4},fe.prototype.writeIntLE=function(e,t,n,o){if(e=+e,t|=0,!o){var a=Math.pow(2,8*n-1);He(this,e,t,n,a-1,-a)}var i=0,r=1,s=0;for(this[t]=255&e;++i>0)-s&255;return t+n},fe.prototype.writeIntBE=function(e,t,n,o){if(e=+e,t|=0,!o){var a=Math.pow(2,8*n-1);He(this,e,t,n,a-1,-a)}var i=n-1,r=1,s=0;for(this[t+i]=255&e;--i>=0&&(r*=256);)e<0&&0===s&&0!==this[t+i+1]&&(s=1),this[t+i]=(e/r>>0)-s&255;return t+n},fe.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||He(this,e,t,1,127,-128),fe.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},fe.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||He(this,e,t,2,32767,-32768),fe.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):ze(this,e,t,!0),t+2},fe.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||He(this,e,t,2,32767,-32768),fe.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):ze(this,e,t,!1),t+2},fe.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||He(this,e,t,4,2147483647,-2147483648),fe.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):Ke(this,e,t,!0),t+4},fe.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||He(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),fe.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):Ke(this,e,t,!1),t+4},fe.prototype.writeFloatLE=function(e,t,n){return We(this,e,t,!0,n)},fe.prototype.writeFloatBE=function(e,t,n){return We(this,e,t,!1,n)},fe.prototype.writeDoubleLE=function(e,t,n){return $e(this,e,t,!0,n)},fe.prototype.writeDoubleBE=function(e,t,n){return $e(this,e,t,!1,n)},fe.prototype.copy=function(e,t,n,o){if(n||(n=0),o||0===o||(o=this.length),t>=e.length&&(t=e.length),t||(t=0),o>0&&o=this.length)throw new RangeError("sourceStart out of bounds");if(o<0)throw new RangeError("sourceEnd out of bounds");o>this.length&&(o=this.length),e.length-t=0;--a)e[a+t]=this[a+n];else if(i<1e3||!fe.TYPED_ARRAY_SUPPORT)for(a=0;a>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(i=t;i55295&&n<57344){if(!a){if(n>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(r+1===o){(t-=3)>-1&&i.push(239,191,189);continue}a=n;continue}if(n<56320){(t-=3)>-1&&i.push(239,191,189),a=n;continue}n=65536+(a-55296<<10|n-56320)}else a&&(t-=3)>-1&&i.push(239,191,189);if(a=null,n<128){if((t-=1)<0)break;i.push(n)}else if(n<2048){if((t-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function Ze(e){return function(e){var t,n,o,a,i,r;se||le();var s=e.length;if(s%4>0)throw new Error("Invalid string. Length must be a multiple of 4");i="="===e[s-2]?2:"="===e[s-1]?1:0,r=new re(3*s/4-i),o=i>0?s-4:s;var l=0;for(t=0,n=0;t>16&255,r[l++]=a>>8&255,r[l++]=255&a;return 2===i?(a=ie[e.charCodeAt(t)]<<2|ie[e.charCodeAt(t+1)]>>4,r[l++]=255&a):1===i&&(a=ie[e.charCodeAt(t)]<<10|ie[e.charCodeAt(t+1)]<<4|ie[e.charCodeAt(t+2)]>>2,r[l++]=a>>8&255,r[l++]=255&a),r}(function(e){if((e=function(e){return g()(e)?g()(e).call(e):e.replace(/^\s+|\s+$/g,"")}(e).replace(qe,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function Je(e,t,n,o){for(var a=0;a=t.length||a>=e.length);++a)t[a+n]=e[a];return a}function et(e){return null!=e&&(!!e._isBuffer||tt(e)||function(e){return"function"==typeof e.readFloatLE&&"function"==typeof l()(e)&&tt(l()(e).call(e,0,0))}(e))}function tt(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}function nt(e,t){return e(t={exports:{}},t.exports),t.exports}"undefined"!=typeof j.a?j.a:"undefined"!=typeof window?window:"undefined"!=typeof e||"undefined"!=typeof self&&self;var ot=nt((function(e,t){var n;e.exports=(n=n||function(e,t){var n=I.a||function(){function e(){}return function(t){var n;return e.prototype=t,n=new e,e.prototype=null,n}}(),o={},a=o.lib={},i=a.Base={extend:function(e){var t=n(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},r=a.WordArray=i.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=null!=t?t:4*e.length},toString:function(e){return(e||c).stringify(this)},concat:function(e){var t=this.words,n=e.words,o=this.sigBytes,a=e.sigBytes;if(this.clamp(),o%4)for(var i=0;i>>2]>>>24-i%4*8&255;t[o+i>>>2]|=r<<24-(o+i)%4*8}else for(i=0;i>>2]=n[i>>>2];return this.sigBytes+=a,this},clamp:function(){var t=this.words,n=this.sigBytes;t[n>>>2]&=4294967295<<32-n%4*8,t.length=e.ceil(n/4)},clone:function(){var e,t=i.clone.call(this);return t.words=l()(e=this.words).call(e,0),t},random:function(t){for(var n,o=[],a=function(t){t=t;var n=987654321,o=4294967295;return function(){var a=((n=36969*(65535&n)+(n>>16)&o)<<16)+(t=18e3*(65535&t)+(t>>16)&o)&o;return a/=4294967296,(a+=.5)*(e.random()>.5?1:-1)}},i=0;i>>2]>>>24-a%4*8&255;o.push((i>>>4).toString(16)),o.push((15&i).toString(16))}return o.join("")},parse:function(e){for(var t=e.length,n=[],o=0;o>>3]|=b()(e.substr(o,2),16)<<24-o%8*4;return new r.init(n,t/2)}},d=s.Latin1={stringify:function(e){for(var t=e.words,n=e.sigBytes,o=[],a=0;a>>2]>>>24-a%4*8&255;o.push(String.fromCharCode(i))}return o.join("")},parse:function(e){for(var t=e.length,n=[],o=0;o>>2]|=(255&e.charCodeAt(o))<<24-o%4*8;return new r.init(n,t)}},u=s.Utf8={stringify:function(e){try{return decodeURIComponent(escape(d.stringify(e)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(e){return d.parse(unescape(encodeURIComponent(e)))}},p=a.BufferedBlockAlgorithm=i.extend({reset:function(){this._data=new r.init,this._nDataBytes=0},_append:function(e){var t;"string"==typeof e&&(e=u.parse(e)),E()(t=this._data).call(t,e),this._nDataBytes+=e.sigBytes},_process:function(t){var n=this._data,o=n.words,a=n.sigBytes,i=this.blockSize,s=4*i,l=a/s,c=(l=t?e.ceil(l):e.max((0|l)-this._minBufferSize,0))*i,d=e.min(4*c,a);if(c){for(var u=0;u>>2]|=e[a]<<24-a%4*8;t.call(this,o,n)}else t.apply(this,arguments)}).prototype=e}}(),n.lib.WordArray)})),nt((function(e,t){var n;e.exports=(n=ot,function(){var e=n,t=e.lib.WordArray,o=e.enc;function a(e){return e<<8&4278255360|e>>>8&16711935}o.Utf16=o.Utf16BE={stringify:function(e){for(var t=e.words,n=e.sigBytes,o=[],a=0;a>>2]>>>16-a%4*8&65535;o.push(String.fromCharCode(i))}return o.join("")},parse:function(e){for(var n=e.length,o=[],a=0;a>>1]|=e.charCodeAt(a)<<16-a%2*16;return t.create(o,2*n)}},o.Utf16LE={stringify:function(e){for(var t=e.words,n=e.sigBytes,o=[],i=0;i>>2]>>>16-i%4*8&65535);o.push(String.fromCharCode(r))}return o.join("")},parse:function(e){for(var n=e.length,o=[],i=0;i>>1]|=a(e.charCodeAt(i)<<16-i%2*16);return t.create(o,2*n)}}}(),n.enc.Utf16)})),nt((function(e,t){var n,o,a;e.exports=(a=(o=n=ot).lib.WordArray,o.enc.Base64={stringify:function(e){var t=e.words,n=e.sigBytes,o=this._map;e.clamp();for(var a=[],i=0;i>>2]>>>24-i%4*8&255)<<16|(t[i+1>>>2]>>>24-(i+1)%4*8&255)<<8|t[i+2>>>2]>>>24-(i+2)%4*8&255,s=0;s<4&&i+.75*s>>6*(3-s)&63));var l=o.charAt(64);if(l)for(;a.length%4;)a.push(l);return a.join("")},parse:function(e){var t=e.length,n=this._map,o=this._reverseMap;if(!o){o=this._reverseMap=[];for(var i=0;i>>6-r%4*2;o[i>>>2]|=(s|l)<<24-i%4*8,i++}return a.create(o,i)}(e,t,o)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="},n.enc.Base64)})),nt((function(e,t){var n;e.exports=(n=ot,function(e){var t=n,o=t.lib,a=o.WordArray,i=o.Hasher,r=t.algo,s=[];!function(){for(var t=0;t<64;t++)s[t]=4294967296*e.abs(e.sin(t+1))|0}();var l=r.MD5=i.extend({_doReset:function(){this._hash=new a.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,t){for(var n=0;n<16;n++){var o=t+n,a=e[o];e[o]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8)}var i=this._hash.words,r=e[t+0],l=e[t+1],m=e[t+2],b=e[t+3],h=e[t+4],v=e[t+5],f=e[t+6],g=e[t+7],O=e[t+8],j=e[t+9],y=e[t+10],I=e[t+11],C=e[t+12],E=e[t+13],k=e[t+14],w=e[t+15],_=i[0],S=i[1],T=i[2],L=i[3];_=c(_,S,T,L,r,7,s[0]),L=c(L,_,S,T,l,12,s[1]),T=c(T,L,_,S,m,17,s[2]),S=c(S,T,L,_,b,22,s[3]),_=c(_,S,T,L,h,7,s[4]),L=c(L,_,S,T,v,12,s[5]),T=c(T,L,_,S,f,17,s[6]),S=c(S,T,L,_,g,22,s[7]),_=c(_,S,T,L,O,7,s[8]),L=c(L,_,S,T,j,12,s[9]),T=c(T,L,_,S,y,17,s[10]),S=c(S,T,L,_,I,22,s[11]),_=c(_,S,T,L,C,7,s[12]),L=c(L,_,S,T,E,12,s[13]),T=c(T,L,_,S,k,17,s[14]),_=d(_,S=c(S,T,L,_,w,22,s[15]),T,L,l,5,s[16]),L=d(L,_,S,T,f,9,s[17]),T=d(T,L,_,S,I,14,s[18]),S=d(S,T,L,_,r,20,s[19]),_=d(_,S,T,L,v,5,s[20]),L=d(L,_,S,T,y,9,s[21]),T=d(T,L,_,S,w,14,s[22]),S=d(S,T,L,_,h,20,s[23]),_=d(_,S,T,L,j,5,s[24]),L=d(L,_,S,T,k,9,s[25]),T=d(T,L,_,S,b,14,s[26]),S=d(S,T,L,_,O,20,s[27]),_=d(_,S,T,L,E,5,s[28]),L=d(L,_,S,T,m,9,s[29]),T=d(T,L,_,S,g,14,s[30]),_=u(_,S=d(S,T,L,_,C,20,s[31]),T,L,v,4,s[32]),L=u(L,_,S,T,O,11,s[33]),T=u(T,L,_,S,I,16,s[34]),S=u(S,T,L,_,k,23,s[35]),_=u(_,S,T,L,l,4,s[36]),L=u(L,_,S,T,h,11,s[37]),T=u(T,L,_,S,g,16,s[38]),S=u(S,T,L,_,y,23,s[39]),_=u(_,S,T,L,E,4,s[40]),L=u(L,_,S,T,r,11,s[41]),T=u(T,L,_,S,b,16,s[42]),S=u(S,T,L,_,f,23,s[43]),_=u(_,S,T,L,j,4,s[44]),L=u(L,_,S,T,C,11,s[45]),T=u(T,L,_,S,w,16,s[46]),_=p(_,S=u(S,T,L,_,m,23,s[47]),T,L,r,6,s[48]),L=p(L,_,S,T,g,10,s[49]),T=p(T,L,_,S,k,15,s[50]),S=p(S,T,L,_,v,21,s[51]),_=p(_,S,T,L,C,6,s[52]),L=p(L,_,S,T,b,10,s[53]),T=p(T,L,_,S,y,15,s[54]),S=p(S,T,L,_,l,21,s[55]),_=p(_,S,T,L,O,6,s[56]),L=p(L,_,S,T,w,10,s[57]),T=p(T,L,_,S,f,15,s[58]),S=p(S,T,L,_,E,21,s[59]),_=p(_,S,T,L,h,6,s[60]),L=p(L,_,S,T,I,10,s[61]),T=p(T,L,_,S,m,15,s[62]),S=p(S,T,L,_,j,21,s[63]),i[0]=i[0]+_|0,i[1]=i[1]+S|0,i[2]=i[2]+T|0,i[3]=i[3]+L|0},_doFinalize:function(){var t=this._data,n=t.words,o=8*this._nDataBytes,a=8*t.sigBytes;n[a>>>5]|=128<<24-a%32;var i=e.floor(o/4294967296),r=o;n[15+(a+64>>>9<<4)]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8),n[14+(a+64>>>9<<4)]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8),t.sigBytes=4*(n.length+1),this._process();for(var s=this._hash,l=s.words,c=0;c<4;c++){var d=l[c];l[c]=16711935&(d<<8|d>>>24)|4278255360&(d<<24|d>>>8)}return s},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}});function c(e,t,n,o,a,i,r){var s=e+(t&n|~t&o)+a+r;return(s<>>32-i)+t}function d(e,t,n,o,a,i,r){var s=e+(t&o|n&~o)+a+r;return(s<>>32-i)+t}function u(e,t,n,o,a,i,r){var s=e+(t^n^o)+a+r;return(s<>>32-i)+t}function p(e,t,n,o,a,i,r){var s=e+(n^(t|~o))+a+r;return(s<>>32-i)+t}t.MD5=i._createHelper(l),t.HmacMD5=i._createHmacHelper(l)}(Math),n.MD5)})),nt((function(e,t){var n,o,a,i,r,s,l,c;e.exports=(a=(o=n=ot).lib,i=a.WordArray,r=a.Hasher,s=o.algo,l=[],c=s.SHA1=r.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var n=this._hash.words,o=n[0],a=n[1],i=n[2],r=n[3],s=n[4],c=0;c<80;c++){if(c<16)l[c]=0|e[t+c];else{var d=l[c-3]^l[c-8]^l[c-14]^l[c-16];l[c]=d<<1|d>>>31}var u=(o<<5|o>>>27)+s+l[c];u+=c<20?1518500249+(a&i|~a&r):c<40?1859775393+(a^i^r):c<60?(a&i|a&r|i&r)-1894007588:(a^i^r)-899497514,s=r,r=i,i=a<<30|a>>>2,a=o,o=u}n[0]=n[0]+o|0,n[1]=n[1]+a|0,n[2]=n[2]+i|0,n[3]=n[3]+r|0,n[4]=n[4]+s|0},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,o=8*e.sigBytes;return t[o>>>5]|=128<<24-o%32,t[14+(o+64>>>9<<4)]=Math.floor(n/4294967296),t[15+(o+64>>>9<<4)]=n,e.sigBytes=4*t.length,this._process(),this._hash},clone:function(){var e=r.clone.call(this);return e._hash=this._hash.clone(),e}}),o.SHA1=r._createHelper(c),o.HmacSHA1=r._createHmacHelper(c),n.SHA1)})),nt((function(e,t){var n;e.exports=(n=ot,function(e){var t=n,o=t.lib,a=o.WordArray,i=o.Hasher,r=t.algo,s=[],c=[];!function(){function t(t){for(var n=e.sqrt(t),o=2;o<=n;o++)if(!(t%o))return!1;return!0}function n(e){return 4294967296*(e-(0|e))|0}for(var o=2,a=0;a<64;)t(o)&&(a<8&&(s[a]=n(e.pow(o,.5))),c[a]=n(e.pow(o,1/3)),a++),o++}();var d=[],u=r.SHA256=i.extend({_doReset:function(){this._hash=new a.init(l()(s).call(s,0))},_doProcessBlock:function(e,t){for(var n=this._hash.words,o=n[0],a=n[1],i=n[2],r=n[3],s=n[4],l=n[5],u=n[6],p=n[7],m=0;m<64;m++){if(m<16)d[m]=0|e[t+m];else{var b=d[m-15],h=(b<<25|b>>>7)^(b<<14|b>>>18)^b>>>3,v=d[m-2],f=(v<<15|v>>>17)^(v<<13|v>>>19)^v>>>10;d[m]=h+d[m-7]+f+d[m-16]}var g=o&a^o&i^a&i,O=(o<<30|o>>>2)^(o<<19|o>>>13)^(o<<10|o>>>22),j=p+((s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25))+(s&l^~s&u)+c[m]+d[m];p=u,u=l,l=s,s=r+j|0,r=i,i=a,a=o,o=j+(O+g)|0}n[0]=n[0]+o|0,n[1]=n[1]+a|0,n[2]=n[2]+i|0,n[3]=n[3]+r|0,n[4]=n[4]+s|0,n[5]=n[5]+l|0,n[6]=n[6]+u|0,n[7]=n[7]+p|0},_doFinalize:function(){var t=this._data,n=t.words,o=8*this._nDataBytes,a=8*t.sigBytes;return n[a>>>5]|=128<<24-a%32,n[14+(a+64>>>9<<4)]=e.floor(o/4294967296),n[15+(a+64>>>9<<4)]=o,t.sigBytes=4*n.length,this._process(),this._hash},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}});t.SHA256=i._createHelper(u),t.HmacSHA256=i._createHmacHelper(u)}(Math),n.SHA256)})),nt((function(e,t){var n,o,a,i,r,s;e.exports=(a=(o=n=ot).lib.WordArray,i=o.algo,r=i.SHA256,s=i.SHA224=r.extend({_doReset:function(){this._hash=new a.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var e=r._doFinalize.call(this);return e.sigBytes-=4,e}}),o.SHA224=r._createHelper(s),o.HmacSHA224=r._createHmacHelper(s),n.SHA224)})),nt((function(e,t){var n;e.exports=(n=ot,function(){var e=n,t=e.lib.Hasher,o=e.x64,a=o.Word,i=o.WordArray,r=e.algo;function s(){return a.create.apply(a,arguments)}var l=[s(1116352408,3609767458),s(1899447441,602891725),s(3049323471,3964484399),s(3921009573,2173295548),s(961987163,4081628472),s(1508970993,3053834265),s(2453635748,2937671579),s(2870763221,3664609560),s(3624381080,2734883394),s(310598401,1164996542),s(607225278,1323610764),s(1426881987,3590304994),s(1925078388,4068182383),s(2162078206,991336113),s(2614888103,633803317),s(3248222580,3479774868),s(3835390401,2666613458),s(4022224774,944711139),s(264347078,2341262773),s(604807628,2007800933),s(770255983,1495990901),s(1249150122,1856431235),s(1555081692,3175218132),s(1996064986,2198950837),s(2554220882,3999719339),s(2821834349,766784016),s(2952996808,2566594879),s(3210313671,3203337956),s(3336571891,1034457026),s(3584528711,2466948901),s(113926993,3758326383),s(338241895,168717936),s(666307205,1188179964),s(773529912,1546045734),s(1294757372,1522805485),s(1396182291,2643833823),s(1695183700,2343527390),s(1986661051,1014477480),s(2177026350,1206759142),s(2456956037,344077627),s(2730485921,1290863460),s(2820302411,3158454273),s(3259730800,3505952657),s(3345764771,106217008),s(3516065817,3606008344),s(3600352804,1432725776),s(4094571909,1467031594),s(275423344,851169720),s(430227734,3100823752),s(506948616,1363258195),s(659060556,3750685593),s(883997877,3785050280),s(958139571,3318307427),s(1322822218,3812723403),s(1537002063,2003034995),s(1747873779,3602036899),s(1955562222,1575990012),s(2024104815,1125592928),s(2227730452,2716904306),s(2361852424,442776044),s(2428436474,593698344),s(2756734187,3733110249),s(3204031479,2999351573),s(3329325298,3815920427),s(3391569614,3928383900),s(3515267271,566280711),s(3940187606,3454069534),s(4118630271,4000239992),s(116418474,1914138554),s(174292421,2731055270),s(289380356,3203993006),s(460393269,320620315),s(685471733,587496836),s(852142971,1086792851),s(1017036298,365543100),s(1126000580,2618297676),s(1288033470,3409855158),s(1501505948,4234509866),s(1607167915,987167468),s(1816402316,1246189591)],c=[];!function(){for(var e=0;e<80;e++)c[e]=s()}();var d=r.SHA512=t.extend({_doReset:function(){this._hash=new i.init([new a.init(1779033703,4089235720),new a.init(3144134277,2227873595),new a.init(1013904242,4271175723),new a.init(2773480762,1595750129),new a.init(1359893119,2917565137),new a.init(2600822924,725511199),new a.init(528734635,4215389547),new a.init(1541459225,327033209)])},_doProcessBlock:function(e,t){for(var n=this._hash.words,o=n[0],a=n[1],i=n[2],r=n[3],s=n[4],d=n[5],u=n[6],p=n[7],m=o.high,b=o.low,h=a.high,v=a.low,f=i.high,g=i.low,O=r.high,j=r.low,y=s.high,I=s.low,C=d.high,E=d.low,k=u.high,w=u.low,_=p.high,S=p.low,T=m,L=b,A=h,D=v,N=f,U=g,B=O,M=j,V=y,R=I,x=C,P=E,G=k,F=w,H=_,z=S,K=0;K<80;K++){var Y=c[K];if(K<16)var W=Y.high=0|e[t+2*K],$=Y.low=0|e[t+2*K+1];else{var q=c[K-15],Q=q.high,X=q.low,Z=(Q>>>1|X<<31)^(Q>>>8|X<<24)^Q>>>7,J=(X>>>1|Q<<31)^(X>>>8|Q<<24)^(X>>>7|Q<<25),ee=c[K-2],te=ee.high,ne=ee.low,oe=(te>>>19|ne<<13)^(te<<3|ne>>>29)^te>>>6,ae=(ne>>>19|te<<13)^(ne<<3|te>>>29)^(ne>>>6|te<<26),ie=c[K-7],re=ie.high,se=ie.low,le=c[K-16],ce=le.high,de=le.low;W=(W=(W=Z+re+(($=J+se)>>>0>>0?1:0))+oe+(($+=ae)>>>0>>0?1:0))+ce+(($+=de)>>>0>>0?1:0),Y.high=W,Y.low=$}var ue,pe=V&x^~V&G,me=R&P^~R&F,be=T&A^T&N^A&N,he=L&D^L&U^D&U,ve=(T>>>28|L<<4)^(T<<30|L>>>2)^(T<<25|L>>>7),fe=(L>>>28|T<<4)^(L<<30|T>>>2)^(L<<25|T>>>7),ge=(V>>>14|R<<18)^(V>>>18|R<<14)^(V<<23|R>>>9),Oe=(R>>>14|V<<18)^(R>>>18|V<<14)^(R<<23|V>>>9),je=l[K],ye=je.high,Ie=je.low,Ce=H+ge+((ue=z+Oe)>>>0>>0?1:0),Ee=fe+he;H=G,z=F,G=x,F=P,x=V,P=R,V=B+(Ce=(Ce=(Ce=Ce+pe+((ue+=me)>>>0>>0?1:0))+ye+((ue+=Ie)>>>0>>0?1:0))+W+((ue+=$)>>>0<$>>>0?1:0))+((R=M+ue|0)>>>0>>0?1:0)|0,B=N,M=U,N=A,U=D,A=T,D=L,T=Ce+(ve+be+(Ee>>>0>>0?1:0))+((L=ue+Ee|0)>>>0>>0?1:0)|0}b=o.low=b+L,o.high=m+T+(b>>>0>>0?1:0),v=a.low=v+D,a.high=h+A+(v>>>0>>0?1:0),g=i.low=g+U,i.high=f+N+(g>>>0>>0?1:0),j=r.low=j+M,r.high=O+B+(j>>>0>>0?1:0),I=s.low=I+R,s.high=y+V+(I>>>0>>0?1:0),E=d.low=E+P,d.high=C+x+(E>>>0

>>0?1:0),w=u.low=w+F,u.high=k+G+(w>>>0>>0?1:0),S=p.low=S+z,p.high=_+H+(S>>>0>>0?1:0)},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,o=8*e.sigBytes;return t[o>>>5]|=128<<24-o%32,t[30+(o+128>>>10<<5)]=Math.floor(n/4294967296),t[31+(o+128>>>10<<5)]=n,e.sigBytes=4*t.length,this._process(),this._hash.toX32()},clone:function(){var e=t.clone.call(this);return e._hash=this._hash.clone(),e},blockSize:32});e.SHA512=t._createHelper(d),e.HmacSHA512=t._createHmacHelper(d)}(),n.SHA512)})),nt((function(e,t){var n,o,a,i,r,s,l,c;e.exports=(a=(o=n=ot).x64,i=a.Word,r=a.WordArray,s=o.algo,l=s.SHA512,c=s.SHA384=l.extend({_doReset:function(){this._hash=new r.init([new i.init(3418070365,3238371032),new i.init(1654270250,914150663),new i.init(2438529370,812702999),new i.init(355462360,4144912697),new i.init(1731405415,4290775857),new i.init(2394180231,1750603025),new i.init(3675008525,1694076839),new i.init(1203062813,3204075428)])},_doFinalize:function(){var e=l._doFinalize.call(this);return e.sigBytes-=16,e}}),o.SHA384=l._createHelper(c),o.HmacSHA384=l._createHmacHelper(c),n.SHA384)})),nt((function(e,t){var n;e.exports=(n=ot,function(e){var t=n,o=t.lib,a=o.WordArray,i=o.Hasher,r=t.x64.Word,s=t.algo,c=[],d=[],u=[];!function(){for(var e=1,t=0,n=0;n<24;n++){c[e+5*t]=(n+1)*(n+2)/2%64;var o=(2*e+3*t)%5;e=t%5,t=o}for(e=0;e<5;e++)for(t=0;t<5;t++)d[e+5*t]=t+(2*e+3*t)%5*5;for(var a=1,i=0;i<24;i++){for(var s=0,l=0,p=0;p<7;p++){if(1&a){var m=(1<>>24)|4278255360&(i<<24|i>>>8),r=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8),(S=n[a]).high^=r,S.low^=i}for(var s=0;s<24;s++){for(var l=0;l<5;l++){for(var m=0,b=0,h=0;h<5;h++)m^=(S=n[l+5*h]).high,b^=S.low;var v=p[l];v.high=m,v.low=b}for(l=0;l<5;l++){var f=p[(l+4)%5],g=p[(l+1)%5],O=g.high,j=g.low;for(m=f.high^(O<<1|j>>>31),b=f.low^(j<<1|O>>>31),h=0;h<5;h++)(S=n[l+5*h]).high^=m,S.low^=b}for(var y=1;y<25;y++){var I=(S=n[y]).high,C=S.low,E=c[y];E<32?(m=I<>>32-E,b=C<>>32-E):(m=C<>>64-E,b=I<>>64-E);var k=p[d[y]];k.high=m,k.low=b}var w=p[0],_=n[0];for(w.high=_.high,w.low=_.low,l=0;l<5;l++)for(h=0;h<5;h++){var S=n[y=l+5*h],T=p[y],L=p[(l+1)%5+5*h],A=p[(l+2)%5+5*h];S.high=T.high^~L.high&A.high,S.low=T.low^~L.low&A.low}S=n[0];var D=u[s];S.high^=D.high,S.low^=D.low}},_doFinalize:function(){var t=this._data,n=t.words,o=(this._nDataBytes,8*t.sigBytes),i=32*this.blockSize;n[o>>>5]|=1<<24-o%32,n[(e.ceil((o+1)/i)*i>>>5)-1]|=128,t.sigBytes=4*n.length,this._process();for(var r=this._state,s=this.cfg.outputLength/8,l=s/8,c=[],d=0;d>>24)|4278255360&(p<<24|p>>>8),m=16711935&(m<<8|m>>>24)|4278255360&(m<<24|m>>>8),c.push(m),c.push(p)}return new a.init(c,s)},clone:function(){for(var e=i.clone.call(this),t=e._state=l()(o=this._state).call(o,0),n=0;n<25;n++){var o;t[n]=t[n].clone()}return e}});t.SHA3=i._createHelper(m),t.HmacSHA3=i._createHmacHelper(m)}(Math),n.SHA3)})),nt((function(e,t){var n;e.exports=(n=ot,function(e){var t=n,o=t.lib,a=o.WordArray,i=o.Hasher,r=t.algo,s=a.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),l=a.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),c=a.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),d=a.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),u=a.create([0,1518500249,1859775393,2400959708,2840853838]),p=a.create([1352829926,1548603684,1836072691,2053994217,0]),m=r.RIPEMD160=i.extend({_doReset:function(){this._hash=a.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var n=0;n<16;n++){var o=t+n,a=e[o];e[o]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8)}var i,r,m,j,y,I,C,E,k,w,_,S=this._hash.words,T=u.words,L=p.words,A=s.words,D=l.words,N=c.words,U=d.words;for(I=i=S[0],C=r=S[1],E=m=S[2],k=j=S[3],w=y=S[4],n=0;n<80;n+=1)_=i+e[t+A[n]]|0,_+=n<16?b(r,m,j)+T[0]:n<32?h(r,m,j)+T[1]:n<48?v(r,m,j)+T[2]:n<64?f(r,m,j)+T[3]:g(r,m,j)+T[4],_=(_=O(_|=0,N[n]))+y|0,i=y,y=j,j=O(m,10),m=r,r=_,_=I+e[t+D[n]]|0,_+=n<16?g(C,E,k)+L[0]:n<32?f(C,E,k)+L[1]:n<48?v(C,E,k)+L[2]:n<64?h(C,E,k)+L[3]:b(C,E,k)+L[4],_=(_=O(_|=0,U[n]))+w|0,I=w,w=k,k=O(E,10),E=C,C=_;_=S[1]+m+k|0,S[1]=S[2]+j+w|0,S[2]=S[3]+y+I|0,S[3]=S[4]+i+C|0,S[4]=S[0]+r+E|0,S[0]=_},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,o=8*e.sigBytes;t[o>>>5]|=128<<24-o%32,t[14+(o+64>>>9<<4)]=16711935&(n<<8|n>>>24)|4278255360&(n<<24|n>>>8),e.sigBytes=4*(t.length+1),this._process();for(var a=this._hash,i=a.words,r=0;r<5;r++){var s=i[r];i[r]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8)}return a},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}});function b(e,t,n){return e^t^n}function h(e,t,n){return e&t|~e&n}function v(e,t,n){return(e|~t)^n}function f(e,t,n){return e&n|t&~n}function g(e,t,n){return e^(t|~n)}function O(e,t){return e<>>32-t}t.RIPEMD160=i._createHelper(m),t.HmacRIPEMD160=i._createHmacHelper(m)}(),n.RIPEMD160)})),nt((function(e,t){var n,o,a,i,r,s;e.exports=(o=(n=ot).lib,a=o.Base,i=n.enc,r=i.Utf8,s=n.algo,void(s.HMAC=a.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=r.parse(t));var n=e.blockSize,o=4*n;t.sigBytes>o&&(t=e.finalize(t)),t.clamp();for(var a=this._oKey=t.clone(),i=this._iKey=t.clone(),s=a.words,l=i.words,c=0;c>>2];e.sigBytes-=t}},i.BlockCipher=b.extend({cfg:b.cfg.extend({mode:f,padding:O}),reset:function(){b.reset.call(this);var e=this.cfg,t=e.iv,n=e.mode;if(this._xformMode==this._ENC_XFORM_MODE)var o=n.createEncryptor;else{o=n.createDecryptor;this._minBufferSize=1}this._mode&&this._mode.__creator==o?this._mode.init(this,t&&t.words):(this._mode=o.call(n,this,t&&t.words),this._mode.__creator=o)},_doProcessBlock:function(e,t){this._mode.processBlock(e,t)},_doFinalize:function(){var e=this.cfg.padding;if(this._xformMode==this._ENC_XFORM_MODE){e.pad(this._data,this.blockSize);var t=this._process(!0)}else{t=this._process(!0);e.unpad(t)}return t},blockSize:4}),j=i.CipherParams=r.extend({init:function(e){this.mixIn(e)},toString:function(e){return(e||this.formatter).stringify(this)}}),y=a.format={},I=y.OpenSSL={stringify:function(e){var t,n,o=e.ciphertext,a=e.salt;if(a)var i=E()(t=E()(n=s.create([1398893684,1701076831])).call(n,a)).call(t,o);else i=o;return i.toString(u)},parse:function(e){var t=u.parse(e),n=t.words;if(1398893684==n[0]&&1701076831==n[1]){var o=s.create(l()(n).call(n,2,4));w()(n).call(n,0,4),t.sigBytes-=16}return j.create({ciphertext:t,salt:o})}},C=i.SerializableCipher=r.extend({cfg:r.extend({format:I}),encrypt:function(e,t,n,o){o=this.cfg.extend(o);var a=e.createEncryptor(n,o),i=a.finalize(t),r=a.cfg;return j.create({ciphertext:i,key:n,iv:r.iv,algorithm:e,mode:r.mode,padding:r.padding,blockSize:e.blockSize,formatter:o.format})},decrypt:function(e,t,n,o){o=this.cfg.extend(o),t=this._parse(t,o.format);var a=e.createDecryptor(n,o).finalize(t.ciphertext);return a},_parse:function(e,t){return"string"==typeof e?t.parse(e,this):e}}),k=a.kdf={},_=k.OpenSSL={execute:function(e,t,n,o){var a;o||(o=s.random(8));var i=m.create({keySize:t+n}).compute(e,o),r=s.create(l()(a=i.words).call(a,t),4*n);return i.sigBytes=4*t,j.create({key:i,iv:r,salt:o})}},S=i.PasswordBasedCipher=C.extend({cfg:C.cfg.extend({kdf:_}),encrypt:function(e,t,n,o){var a=(o=this.cfg.extend(o)).kdf.execute(n,e.keySize,e.ivSize);o.iv=a.iv;var i=C.encrypt.call(this,e,t,a.key,o);return i.mixIn(a),i},decrypt:function(e,t,n,o){o=this.cfg.extend(o),t=this._parse(t,o.format);var a=o.kdf.execute(n,e.keySize,e.ivSize,t.salt);o.iv=a.iv;var i=C.decrypt.call(this,e,t,a.key,o);return i}})))})),nt((function(e,t){var n;e.exports=((n=ot).mode.CFB=function(){var e=n.lib.BlockCipherMode.extend();function t(e,t,n,o){var a=this._iv;if(a){var i=l()(a).call(a,0);this._iv=void 0}else i=this._prevBlock;o.encryptBlock(i,0);for(var r=0;r>24&255)){var t=e>>16&255,n=e>>8&255,o=255&e;255===t?(t=0,255===n?(n=0,255===o?o=0:++o):++n):++t,e=0,e+=t<<16,e+=n<<8,e+=o}else e+=1<<24;return e}var o=e.Encryptor=e.extend({processBlock:function(e,n){var o=this._cipher,a=o.blockSize,i=this._iv,r=this._counter;i&&(r=this._counter=l()(i).call(i,0),this._iv=void 0),function(e){0===(e[0]=t(e[0]))&&(e[1]=t(e[1]))}(r);var s=l()(r).call(r,0);o.encryptBlock(s,0);for(var c=0;c>>2]|=a<<24-i%4*8,e.sigBytes+=a},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},n.pad.Ansix923)})),nt((function(e,t){var n;e.exports=((n=ot).pad.Iso10126={pad:function(e,t){var o,a=4*t,i=a-e.sigBytes%a;E()(o=E()(e).call(e,n.lib.WordArray.random(i-1))).call(o,n.lib.WordArray.create([i<<24],1))},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},n.pad.Iso10126)})),nt((function(e,t){var n;e.exports=((n=ot).pad.Iso97971={pad:function(e,t){E()(e).call(e,n.lib.WordArray.create([2147483648],1)),n.pad.ZeroPadding.pad(e,t)},unpad:function(e){n.pad.ZeroPadding.unpad(e),e.sigBytes--}},n.pad.Iso97971)})),nt((function(e,t){var n;e.exports=((n=ot).pad.ZeroPadding={pad:function(e,t){var n=4*t;e.clamp(),e.sigBytes+=n-(e.sigBytes%n||n)},unpad:function(e){for(var t=e.words,n=e.sigBytes-1;!(t[n>>>2]>>>24-n%4*8&255);)n--;e.sigBytes=n+1}},n.pad.ZeroPadding)})),nt((function(e,t){var n;e.exports=((n=ot).pad.NoPadding={pad:function(){},unpad:function(){}},n.pad.NoPadding)})),nt((function(e,t){var n,o,a,i;e.exports=(a=(o=n=ot).lib.CipherParams,i=o.enc.Hex,o.format.Hex={stringify:function(e){return e.ciphertext.toString(i)},parse:function(e){var t=i.parse(e);return a.create({ciphertext:t})}},n.format.Hex)})),nt((function(e,t){var n;e.exports=(n=ot,function(){var e=n,t=e.lib.BlockCipher,o=e.algo,a=[],i=[],r=[],s=[],l=[],c=[],d=[],u=[],p=[],m=[];!function(){for(var e=[],t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;var n=0,o=0;for(t=0;t<256;t++){var b=o^o<<1^o<<2^o<<3^o<<4;b=b>>>8^255&b^99,a[n]=b,i[b]=n;var h=e[n],v=e[h],f=e[v],g=257*e[b]^16843008*b;r[n]=g<<24|g>>>8,s[n]=g<<16|g>>>16,l[n]=g<<8|g>>>24,c[n]=g,g=16843009*f^65537*v^257*h^16843008*n,d[b]=g<<24|g>>>8,u[b]=g<<16|g>>>16,p[b]=g<<8|g>>>24,m[b]=g,n?(n=h^e[e[e[f^h]]],o^=e[e[o]]):n=o=1}}();var b=[0,1,2,4,8,16,32,64,128,27,54],h=o.AES=t.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var e=this._keyPriorReset=this._key,t=e.words,n=e.sigBytes/4,o=4*((this._nRounds=n+6)+1),i=this._keySchedule=[],r=0;r6&&r%n==4&&(s=a[s>>>24]<<24|a[s>>>16&255]<<16|a[s>>>8&255]<<8|a[255&s]):(s=a[(s=s<<8|s>>>24)>>>24]<<24|a[s>>>16&255]<<16|a[s>>>8&255]<<8|a[255&s],s^=b[r/n|0]<<24),i[r]=i[r-n]^s}for(var l=this._invKeySchedule=[],c=0;c>>24]]^u[a[s>>>16&255]]^p[a[s>>>8&255]]^m[a[255&s]]}},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._keySchedule,r,s,l,c,a)},decryptBlock:function(e,t){var n=e[t+1];e[t+1]=e[t+3],e[t+3]=n,this._doCryptBlock(e,t,this._invKeySchedule,d,u,p,m,i),n=e[t+1],e[t+1]=e[t+3],e[t+3]=n},_doCryptBlock:function(e,t,n,o,a,i,r,s){for(var l=this._nRounds,c=e[t]^n[0],d=e[t+1]^n[1],u=e[t+2]^n[2],p=e[t+3]^n[3],m=4,b=1;b>>24]^a[d>>>16&255]^i[u>>>8&255]^r[255&p]^n[m++],v=o[d>>>24]^a[u>>>16&255]^i[p>>>8&255]^r[255&c]^n[m++],f=o[u>>>24]^a[p>>>16&255]^i[c>>>8&255]^r[255&d]^n[m++],g=o[p>>>24]^a[c>>>16&255]^i[d>>>8&255]^r[255&u]^n[m++];c=h,d=v,u=f,p=g}h=(s[c>>>24]<<24|s[d>>>16&255]<<16|s[u>>>8&255]<<8|s[255&p])^n[m++],v=(s[d>>>24]<<24|s[u>>>16&255]<<16|s[p>>>8&255]<<8|s[255&c])^n[m++],f=(s[u>>>24]<<24|s[p>>>16&255]<<16|s[c>>>8&255]<<8|s[255&d])^n[m++],g=(s[p>>>24]<<24|s[c>>>16&255]<<16|s[d>>>8&255]<<8|s[255&u])^n[m++],e[t]=h,e[t+1]=v,e[t+2]=f,e[t+3]=g},keySize:8});e.AES=t._createHelper(h)}(),n.AES)})),nt((function(e,t){var n;e.exports=(n=ot,function(){var e=n,t=e.lib,o=t.WordArray,a=t.BlockCipher,i=e.algo,r=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],s=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],c=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],d=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],u=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],p=i.DES=a.extend({_doReset:function(){for(var e=this._key.words,t=[],n=0;n<56;n++){var o=r[n]-1;t[n]=e[o>>>5]>>>31-o%32&1}for(var a=this._subKeys=[],i=0;i<16;i++){var l=a[i]=[],d=c[i];for(n=0;n<24;n++)l[n/6|0]|=t[(s[n]-1+d)%28]<<31-n%6,l[4+(n/6|0)]|=t[28+(s[n+24]-1+d)%28]<<31-n%6;for(l[0]=l[0]<<1|l[0]>>>31,n=1;n<7;n++)l[n]=l[n]>>>4*(n-1)+3;l[7]=l[7]<<5|l[7]>>>27}var u=this._invSubKeys=[];for(n=0;n<16;n++)u[n]=a[15-n]},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._subKeys)},decryptBlock:function(e,t){this._doCryptBlock(e,t,this._invSubKeys)},_doCryptBlock:function(e,t,n){this._lBlock=e[t],this._rBlock=e[t+1],m.call(this,4,252645135),m.call(this,16,65535),b.call(this,2,858993459),b.call(this,8,16711935),m.call(this,1,1431655765);for(var o=0;o<16;o++){for(var a=n[o],i=this._lBlock,r=this._rBlock,s=0,l=0;l<8;l++)s|=d[l][((r^a[l])&u[l])>>>0];this._lBlock=r,this._rBlock=i^s}var c=this._lBlock;this._lBlock=this._rBlock,this._rBlock=c,m.call(this,1,1431655765),b.call(this,8,16711935),b.call(this,2,858993459),m.call(this,16,65535),m.call(this,4,252645135),e[t]=this._lBlock,e[t+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});function m(e,t){var n=(this._lBlock>>>e^this._rBlock)&t;this._rBlock^=n,this._lBlock^=n<>>e^this._lBlock)&t;this._lBlock^=n,this._rBlock^=n<>>2]>>>24-r%4*8&255;i=(i+o[a]+s)%256;var l=o[a];o[a]=o[i],o[i]=l}this._i=this._j=0},_doProcessBlock:function(e,t){e[t]^=i.call(this)},keySize:8,ivSize:0});function i(){for(var e=this._S,t=this._i,n=this._j,o=0,a=0;a<4;a++){n=(n+e[t=(t+1)%256])%256;var i=e[t];e[t]=e[n],e[n]=i,o|=e[(e[t]+e[n])%256]<<24-8*a}return this._i=t,this._j=n,o}e.RC4=t._createHelper(a);var r=o.RC4Drop=a.extend({cfg:a.cfg.extend({drop:192}),_doReset:function(){a._doReset.call(this);for(var e=this.cfg.drop;e>0;e--)i.call(this)}});e.RC4Drop=t._createHelper(r)}(),n.RC4)})),nt((function(e,t){var n;e.exports=(n=ot,function(){var e=n,t=e.lib.StreamCipher,o=e.algo,a=[],i=[],r=[],s=o.Rabbit=t.extend({_doReset:function(){for(var e=this._key.words,t=this.cfg.iv,n=0;n<4;n++)e[n]=16711935&(e[n]<<8|e[n]>>>24)|4278255360&(e[n]<<24|e[n]>>>8);var o=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],a=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];for(this._b=0,n=0;n<4;n++)l.call(this);for(n=0;n<8;n++)a[n]^=o[n+4&7];if(t){var i=t.words,r=i[0],s=i[1],c=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8),d=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),u=c>>>16|4294901760&d,p=d<<16|65535&c;for(a[0]^=c,a[1]^=u,a[2]^=d,a[3]^=p,a[4]^=c,a[5]^=u,a[6]^=d,a[7]^=p,n=0;n<4;n++)l.call(this)}},_doProcessBlock:function(e,t){var n=this._X;l.call(this),a[0]=n[0]^n[5]>>>16^n[3]<<16,a[1]=n[2]^n[7]>>>16^n[5]<<16,a[2]=n[4]^n[1]>>>16^n[7]<<16,a[3]=n[6]^n[3]>>>16^n[1]<<16;for(var o=0;o<4;o++)a[o]=16711935&(a[o]<<8|a[o]>>>24)|4278255360&(a[o]<<24|a[o]>>>8),e[t+o]^=a[o]},blockSize:4,ivSize:2});function l(){for(var e=this._X,t=this._C,n=0;n<8;n++)i[n]=t[n];for(t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0>>0?1:0)|0,this._b=t[7]>>>0>>0?1:0,n=0;n<8;n++){var o=e[n]+t[n],a=65535&o,s=o>>>16,l=((a*a>>>17)+a*s>>>15)+s*s,c=((4294901760&o)*o|0)+((65535&o)*o|0);r[n]=l^c}e[0]=r[0]+(r[7]<<16|r[7]>>>16)+(r[6]<<16|r[6]>>>16)|0,e[1]=r[1]+(r[0]<<8|r[0]>>>24)+r[7]|0,e[2]=r[2]+(r[1]<<16|r[1]>>>16)+(r[0]<<16|r[0]>>>16)|0,e[3]=r[3]+(r[2]<<8|r[2]>>>24)+r[1]|0,e[4]=r[4]+(r[3]<<16|r[3]>>>16)+(r[2]<<16|r[2]>>>16)|0,e[5]=r[5]+(r[4]<<8|r[4]>>>24)+r[3]|0,e[6]=r[6]+(r[5]<<16|r[5]>>>16)+(r[4]<<16|r[4]>>>16)|0,e[7]=r[7]+(r[6]<<8|r[6]>>>24)+r[5]|0}e.Rabbit=t._createHelper(s)}(),n.Rabbit)})),nt((function(e,t){var n;e.exports=(n=ot,function(){var e=n,t=e.lib.StreamCipher,o=e.algo,a=[],i=[],r=[],s=o.RabbitLegacy=t.extend({_doReset:function(){var e=this._key.words,t=this.cfg.iv,n=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],o=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];this._b=0;for(var a=0;a<4;a++)l.call(this);for(a=0;a<8;a++)o[a]^=n[a+4&7];if(t){var i=t.words,r=i[0],s=i[1],c=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8),d=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),u=c>>>16|4294901760&d,p=d<<16|65535&c;for(o[0]^=c,o[1]^=u,o[2]^=d,o[3]^=p,o[4]^=c,o[5]^=u,o[6]^=d,o[7]^=p,a=0;a<4;a++)l.call(this)}},_doProcessBlock:function(e,t){var n=this._X;l.call(this),a[0]=n[0]^n[5]>>>16^n[3]<<16,a[1]=n[2]^n[7]>>>16^n[5]<<16,a[2]=n[4]^n[1]>>>16^n[7]<<16,a[3]=n[6]^n[3]>>>16^n[1]<<16;for(var o=0;o<4;o++)a[o]=16711935&(a[o]<<8|a[o]>>>24)|4278255360&(a[o]<<24|a[o]>>>8),e[t+o]^=a[o]},blockSize:4,ivSize:2});function l(){for(var e=this._X,t=this._C,n=0;n<8;n++)i[n]=t[n];for(t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0>>0?1:0)|0,this._b=t[7]>>>0>>0?1:0,n=0;n<8;n++){var o=e[n]+t[n],a=65535&o,s=o>>>16,l=((a*a>>>17)+a*s>>>15)+s*s,c=((4294901760&o)*o|0)+((65535&o)*o|0);r[n]=l^c}e[0]=r[0]+(r[7]<<16|r[7]>>>16)+(r[6]<<16|r[6]>>>16)|0,e[1]=r[1]+(r[0]<<8|r[0]>>>24)+r[7]|0,e[2]=r[2]+(r[1]<<16|r[1]>>>16)+(r[0]<<16|r[0]>>>16)|0,e[3]=r[3]+(r[2]<<8|r[2]>>>24)+r[1]|0,e[4]=r[4]+(r[3]<<16|r[3]>>>16)+(r[2]<<16|r[2]>>>16)|0,e[5]=r[5]+(r[4]<<8|r[4]>>>24)+r[3]|0,e[6]=r[6]+(r[5]<<16|r[5]>>>16)+(r[4]<<16|r[4]>>>16)|0,e[7]=r[7]+(r[6]<<8|r[6]>>>24)+r[5]|0}e.RabbitLegacy=t._createHelper(s)}(),n.RabbitLegacy)})),nt((function(e,t){e.exports=ot})));function it(){throw new Error("setTimeout has not been defined")}function rt(){throw new Error("clearTimeout has not been defined")}var st=it,lt=rt;function ct(e){if(st===S.a)return S()(e,0);if((st===it||!st)&&S.a)return st=S.a,S()(e,0);try{return st(e,0)}catch(ae){try{return st.call(null,e,0)}catch(ae){return st.call(this,e,0)}}}"function"==typeof oe.setTimeout&&(st=S.a),"function"==typeof oe.clearTimeout&&(lt=clearTimeout);var dt,ut=[],pt=!1,mt=-1;function bt(){pt&&dt&&(pt=!1,dt.length?ut=E()(dt).call(dt,ut):mt=-1,ut.length&&ht())}function ht(){if(!pt){var e=ct(bt);pt=!0;for(var t=ut.length;t;){for(dt=ut,ut=[];++mt1)for(var n=1;n0&&r.length>a){r.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+r.length+" "+t+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=r.length,s=l,"function"==typeof console.warn?console.warn(s):console.log(s)}}else r=i[t]=n,++e._eventsCount;return e}function St(e,t,n){var o=!1;function a(){e.removeListener(t,a),o||(o=!0,n.apply(e,arguments))}return a.listener=n,a}function Tt(e){var t=this._events;if(t){var n=t[e];if("function"==typeof n)return 1;if(n)return n.length}return 0}function Lt(e,t){for(var n=new Array(t);t--;)n[t]=e[t];return n}gt.now||gt.mozNow||gt.msNow||gt.oNow||gt.webkitNow,Ot.prototype=I()(null),jt.EventEmitter=jt,jt.usingDomains=!1,jt.prototype.domain=void 0,jt.prototype._events=void 0,jt.prototype._maxListeners=void 0,jt.defaultMaxListeners=10,jt.init=function(){this.domain=null,jt.usingDomains&&(void 0).active&&(void 0).Domain,this._events&&this._events!==L()(this)._events||(this._events=new Ot,this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},jt.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||isNaN(e))throw new TypeError('"n" argument must be a positive number');return this._maxListeners=e,this},jt.prototype.getMaxListeners=function(){return yt(this)},jt.prototype.emit=function(e){var t,n,o,a,i,r,s,l="error"===e;if(r=this._events)l=l&&null==r.error;else if(!l)return!1;if(s=this.domain,l){if(t=arguments[1],!s){if(t instanceof Error)throw t;var c=new Error('Uncaught, unspecified "error" event. ('+t+")");throw c.context=t,c}return t||(t=new Error('Uncaught, unspecified "error" event')),t.domainEmitter=this,t.domain=s,t.domainThrown=!1,s.emit("error",t),!1}if(!(n=r[e]))return!1;var d="function"==typeof n;switch(o=arguments.length){case 1:It(n,d,this);break;case 2:Ct(n,d,this,arguments[1]);break;case 3:Et(n,d,this,arguments[1],arguments[2]);break;case 4:kt(n,d,this,arguments[1],arguments[2],arguments[3]);break;default:for(a=new Array(o-1),i=1;i0;)if(n[i]===t||n[i].listener&&n[i].listener===t){r=n[i].listener,a=i;break}if(a<0)return this;if(1===n.length){if(n[0]=void 0,0==--this._eventsCount)return this._events=new Ot,this;delete o[e]}else!function(e,t){for(var n=t,o=n+1,a=e.length;o0?U()(this._events):[]};var At="function"==typeof I.a?function(e,t){e.super_=t,e.prototype=I()(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:function(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e},Dt=/%[sdj%]/g;function Nt(e){if(!Kt(e)){for(var t=[],n=0;n=a)return e;switch(e){case"%s":return String(o[n++]);case"%d":return Number(o[n++]);case"%j":try{return M()(o[n++])}catch(e){return"[Circular]"}default:return e}})),r=o[n];n=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),Ht(t)?n.showHidden=t:t&&function(e,t){if(!t||!$t(t))return e;for(var n=D()(t),o=n.length;o--;)e[n[o]]=t[n[o]]}(n,t),Yt(n.showHidden)&&(n.showHidden=!1),Yt(n.depth)&&(n.depth=2),Yt(n.colors)&&(n.colors=!1),Yt(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=Rt),Pt(n,e,n.depth)}function Rt(e,t){var n=Vt.styles[t];return n?"["+Vt.colors[n][0]+"m"+e+"["+Vt.colors[n][1]+"m":e}function xt(e,t){return e}function Pt(e,t,n){if(e.customInspect&&t&&Xt(t.inspect)&&t.inspect!==Vt&&(!t.constructor||t.constructor.prototype!==t)){var o=t.inspect(n,e);return Kt(o)||(o=Pt(e,o,n)),o}var a=function(e,t){if(Yt(t))return e.stylize("undefined","undefined");if(Kt(t)){var n="'"+M()(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}return o=t,"number"==typeof o?e.stylize(""+t,"number"):Ht(t)?e.stylize(""+t,"boolean"):zt(t)?e.stylize("null","null"):void 0;var o}(e,t);if(a)return a;var i=D()(t),s=function(e){var t={};return R()(e).call(e,(function(e,n){t[e]=!0})),t}(i);if(e.showHidden&&(i=P()(t)),Qt(t)&&(d()(i).call(i,"message")>=0||d()(i).call(i,"description")>=0))return Gt(t);if(0===i.length){if(Xt(t)){var l=t.name?": "+t.name:"";return e.stylize("[Function"+l+"]","special")}if(Wt(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(qt(t))return e.stylize(Date.prototype.toString.call(t),"date");if(Qt(t))return Gt(t)}var c,u,p="",m=!1,b=["{","}"];return c=t,r()(c)&&(m=!0,b=["[","]"]),Xt(t)&&(p=" [Function"+(t.name?": "+t.name:"")+"]"),Wt(t)&&(p=" "+RegExp.prototype.toString.call(t)),qt(t)&&(p=" "+Date.prototype.toUTCString.call(t)),Qt(t)&&(p=" "+Gt(t)),0!==i.length||m&&0!=t.length?n<0?Wt(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special"):(e.seen.push(t),u=m?function(e,t,n,o,a){for(var i=[],r=0,s=t.length;r60?n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+n[1]:n[0]+t+" "+e.join(", ")+" "+n[1]}(u,p,b)):b[0]+p+b[1]}function Gt(e){return"["+Error.prototype.toString.call(e)+"]"}function Ft(e,t,n,o,a,i){var r,s,l,c,u,p,m;if((m=Y()(t,a)||{value:t[a]}).get?p=m.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):m.set&&(p=e.stylize("[Setter]","special")),Jt(o,a)||(u="["+a+"]"),p||(d()(r=e.seen).call(r,m.value)<0?d()(s=p=zt(n)?Pt(e,m.value,null):Pt(e,m.value,n-1)).call(s,"\n")>-1&&(p=i?F()(l=p.split("\n")).call(l,(function(e){return" "+e})).join("\n").substr(2):"\n"+F()(c=p.split("\n")).call(c,(function(e){return" "+e})).join("\n")):p=e.stylize("[Circular]","special")),Yt(u)){if(i&&a.match(/^\d+$/))return p;(u=M()(""+a)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(u=u.substr(1,u.length-2),u=e.stylize(u,"name")):(u=u.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),u=e.stylize(u,"string"))}return u+": "+p}function Ht(e){return"boolean"==typeof e}function zt(e){return null===e}function Kt(e){return"string"==typeof e}function Yt(e){return void 0===e}function Wt(e){return $t(e)&&"[object RegExp]"===Zt(e)}function $t(e){return"object"==typeof e&&null!==e}function qt(e){return $t(e)&&"[object Date]"===Zt(e)}function Qt(e){return $t(e)&&("[object Error]"===Zt(e)||e instanceof Error)}function Xt(e){return"function"==typeof e}function Zt(e){return Object.prototype.toString.call(e)}function Jt(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function en(){this.head=null,this.tail=null,this.length=0}Vt.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},Vt.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},en.prototype.push=function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length},en.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},en.prototype.shift=function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}},en.prototype.clear=function(){this.head=this.tail=null,this.length=0},en.prototype.join=function(e){if(0===this.length)return"";for(var t=this.head,n=""+t.data;t=t.next;)n+=e+t.data;return n},en.prototype.concat=function(e){if(0===this.length)return fe.alloc(0);if(1===this.length)return this.head.data;for(var t=fe.allocUnsafe(e>>>0),n=this.head,o=0;n;)n.data.copy(t,o),o+=n.data.length,n=n.next;return t};var tn=fe.isEncoding||function(e){switch(e&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function nn(e){switch(this.encoding=(e||"utf8").toLowerCase().replace(/[-_]/,""),function(e){if(e&&!tn(e))throw new Error("Unknown encoding: "+e)}(e),this.encoding){case"utf8":this.surrogateSize=3;break;case"ucs2":case"utf16le":this.surrogateSize=2,this.detectIncompleteChar=an;break;case"base64":this.surrogateSize=3,this.detectIncompleteChar=rn;break;default:return void(this.write=on)}this.charBuffer=new fe(6),this.charReceived=0,this.charLength=0}function on(e){return e.toString(this.encoding)}function an(e){this.charReceived=e.length%2,this.charLength=this.charReceived?2:0}function rn(e){this.charReceived=e.length%3,this.charLength=this.charReceived?3:0}nn.prototype.write=function(e){for(var t="";this.charLength;){var n,o=e.length>=this.charLength-this.charReceived?this.charLength-this.charReceived:e.length;if(e.copy(this.charBuffer,this.charReceived,0,o),this.charReceived+=o,this.charReceived=55296&&a<=56319)){if(this.charReceived=this.charLength=0,0===e.length)return t;break}this.charLength+=this.surrogateSize,t=""}this.detectIncompleteChar(e);var a,i=e.length;if(this.charLength&&(e.copy(this.charBuffer,0,e.length-this.charReceived,i),i-=this.charReceived),i=(t+=e.toString(this.encoding,0,i)).length-1,(a=t.charCodeAt(i))>=55296&&a<=56319){var r=this.surrogateSize;return this.charLength+=r,this.charReceived+=r,this.charBuffer.copy(this.charBuffer,r,0,r),e.copy(this.charBuffer,0,0,r),t.substring(0,i)}return t},nn.prototype.detectIncompleteChar=function(e){for(var t=e.length>=3?3:e.length;t>0;t--){var n=e[e.length-t];if(1==t&&n>>5==6){this.charLength=2;break}if(t<=2&&n>>4==14){this.charLength=3;break}if(t<=3&&n>>3==30){this.charLength=4;break}}this.charReceived=t},nn.prototype.end=function(e){var t="";if(e&&e.length&&(t=this.write(e)),this.charReceived){var n=this.charReceived,o=this.charBuffer,a=this.encoding;t+=l()(o).call(o,0,n).toString(a)}return t},cn.ReadableState=ln;var sn=function(e){return Yt(Bt)&&(Bt=""),e=e.toUpperCase(),Mt[e]||(new RegExp("\\b"+e+"\\b","i").test(Bt)?Mt[e]=function(){var t=Nt.apply(null,arguments);console.error("%s %d: %s",e,0,t)}:Mt[e]=function(){}),Mt[e]}("stream");function ln(e,t){e=e||{},this.objectMode=!!e.objectMode,t instanceof Vn&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var n=e.highWaterMark,o=this.objectMode?16:16384;this.highWaterMark=n||0===n?n:o,this.highWaterMark=~~this.highWaterMark,this.buffer=new en,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.ranOut=!1,this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(this.decoder=new nn(e.encoding),this.encoding=e.encoding)}function cn(e){if(!(this instanceof cn))return new cn(e);this._readableState=new ln(e,this),this.readable=!0,e&&"function"==typeof e.read&&(this._read=e.read),jt.call(this)}function dn(e,t,n,o,a){var i=function(e,t){var n=null;return et(t)||"string"==typeof t||null==t||e.objectMode||(n=new TypeError("Invalid non-string/buffer chunk")),n}(t,n);if(i)e.emit("error",i);else if(null===n)t.reading=!1,function(e,t){if(!t.ended){if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,mn(e)}}(e,t);else if(t.objectMode||n&&n.length>0)if(t.ended&&!a){var r=new Error("stream.push() after EOF");e.emit("error",r)}else if(t.endEmitted&&a){var s=new Error("stream.unshift() after end event");e.emit("error",s)}else{var l;!t.decoder||a||o||(n=t.decoder.write(n),l=!t.objectMode&&0===n.length),a||(t.reading=!1),l||(t.flowing&&0===t.length&&!t.sync?(e.emit("data",n),e.read(0)):(t.length+=t.objectMode?1:n.length,a?t.buffer.unshift(n):t.buffer.push(n),t.needReadable&&mn(e))),function(e,t){t.readingMore||(t.readingMore=!0,vt(hn,e,t))}(e,t)}else a||(t.reading=!1);return function(e){return!e.ended&&(e.needReadable||e.lengtht.highWaterMark&&(t.highWaterMark=function(e){return e>=un?e=un:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function mn(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(sn("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?vt(bn,e):bn(e))}function bn(e){sn("emit readable"),e.emit("readable"),gn(e)}function hn(e,t){for(var n=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length=t.length?(o=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:E()(n=t.buffer).call(n,t.length),t.buffer.clear()):o=function(e,t,n,o,a){var i;return ei.length?i.length:e;if(r===i.length?a+=i:a+=l()(i).call(i,0,e),0===(e-=r)){r===i.length?(++o,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=l()(i).call(i,r));break}++o}return t.length-=o,a}(e,t):function(e,t){var n=fe.allocUnsafe(e),o=t.head,a=1;for(o.data.copy(n),e-=o.data.length;o=o.next;){var i=o.data,r=e>i.length?i.length:e;if(i.copy(n,n.length-e,0,r),0===(e-=r)){r===i.length?(++a,o.next?t.head=o.next:t.head=t.tail=null):(t.head=o,o.data=l()(i).call(i,r));break}++a}return t.length-=a,n}(e,t),i}(e,t.buffer,t.decoder),o)}function jn(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,vt(yn,t,e))}function yn(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function In(e,t){for(var n=0,o=e.length;n=t.highWaterMark||t.ended))return sn("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?jn(this):mn(this),null;if(0===(e=pn(e,t))&&t.ended)return 0===t.length&&jn(this),null;var o,a=t.needReadable;return sn("need readable",a),(0===t.length||t.length-e0?On(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&jn(this)),null!==o&&this.emit("data",o),o},cn.prototype._read=function(e){this.emit("error",new Error("not implemented"))},cn.prototype.pipe=function(e,t){var n=this,o=this._readableState;switch(o.pipesCount){case 0:o.pipes=e;break;case 1:o.pipes=[o.pipes,e];break;default:o.pipes.push(e)}o.pipesCount+=1,sn("pipe count=%d opts=%j",o.pipesCount,t);var a=t&&!1===t.end?d:s;function i(e){sn("onunpipe"),e===n&&d()}function s(){sn("onend"),e.end()}o.endEmitted?vt(a):n.once("end",a),e.on("unpipe",i);var l=function(e){return function(){var t=e._readableState;sn("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&e.listeners("data").length&&(t.flowing=!0,gn(e))}}(n);e.on("drain",l);var c=!1;function d(){sn("cleanup"),e.removeListener("close",b),e.removeListener("finish",h),e.removeListener("drain",l),e.removeListener("error",m),e.removeListener("unpipe",i),n.removeListener("end",s),n.removeListener("end",d),n.removeListener("data",p),c=!0,!o.awaitDrain||e._writableState&&!e._writableState.needDrain||l()}var u=!1;function p(t){sn("ondata"),u=!1,!1!==e.write(t)||u||((1===o.pipesCount&&o.pipes===e||o.pipesCount>1&&-1!==In(o.pipes,e))&&!c&&(sn("false write response, pause",n._readableState.awaitDrain),n._readableState.awaitDrain++,u=!0),n.pause())}function m(t){var n;sn("onerror",t),v(),e.removeListener("error",m),0===(n="error",e.listeners(n).length)&&e.emit("error",t)}function b(){e.removeListener("finish",h),v()}function h(){sn("onfinish"),e.removeListener("close",b),v()}function v(){sn("unpipe"),n.unpipe(e)}return n.on("data",p),function(e,t,n){if("function"==typeof e.prependListener)return e.prependListener(t,n);e._events&&e._events[t]?r()(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}(e,"error",m),e.once("close",b),e.once("finish",h),e.emit("pipe",n),o.flowing||(sn("pipe resume"),n.resume()),e},cn.prototype.unpipe=function(e){var t,n=this._readableState;if(0===n.pipesCount)return this;if(1===n.pipesCount)return e&&e!==n.pipes||(e||(e=n.pipes),n.pipes=null,n.pipesCount=0,n.flowing=!1,e&&e.emit("unpipe",this)),this;if(!e){var o=n.pipes,a=n.pipesCount;n.pipes=null,n.pipesCount=0,n.flowing=!1;for(var i=0;i-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},wn.prototype._write=function(e,t,n){n(new Error("not implemented"))},wn.prototype._writev=null,wn.prototype.end=function(e,t,n){var o=this._writableState;"function"==typeof e?(n=e,e=null,t=null):"function"==typeof t&&(n=t,t=null),null!=e&&this.write(e,t),o.corked&&(o.corked=1,this.uncork()),o.ending||o.finished||function(e,t,n){t.ending=!0,Dn(e,t),n&&(t.finished?vt(n):e.once("finish",n)),t.ended=!0,e.writable=!1}(this,o,n)},At(Vn,cn);for(var Un=D()(wn.prototype),Bn=0;Bn=0;)e[t]=0}var no=0,oo=1,ao=2,io=29,ro=256,so=ro+1+io,lo=30,co=19,uo=2*so+1,po=15,mo=16,bo=7,ho=256,vo=16,fo=17,go=18,Oo=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],jo=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],yo=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],Io=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],Co=new Array(2*(so+2));to(Co);var Eo=new Array(2*lo);to(Eo);var ko=new Array(512);to(ko);var wo=new Array(256);to(wo);var _o=new Array(io);to(_o);var So,To,Lo,Ao=new Array(lo);function Do(e,t,n,o,a){this.static_tree=e,this.extra_bits=t,this.extra_base=n,this.elems=o,this.max_length=a,this.has_stree=e&&e.length}function No(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function Uo(e){return e<256?ko[e]:ko[256+(e>>>7)]}function Bo(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}function Mo(e,t,n){e.bi_valid>mo-n?(e.bi_buf|=t<>mo-e.bi_valid,e.bi_valid+=n-mo):(e.bi_buf|=t<>>=1,n<<=1}while(--t>0);return n>>>1}function xo(e,t,n){var o,a,i=new Array(po+1),r=0;for(o=1;o<=po;o++)i[o]=r=r+n[o-1]<<1;for(a=0;a<=t;a++){var s=e[2*a+1];0!==s&&(e[2*a]=Ro(i[s]++,s))}}function Po(e){var t;for(t=0;t8?Bo(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}function Fo(e,t,n,o){var a=2*t,i=2*n;return e[a]>1;n>=1;n--)Ho(e,i,n);a=l;do{n=e.heap[1],e.heap[1]=e.heap[e.heap_len--],Ho(e,i,1),o=e.heap[1],e.heap[--e.heap_max]=n,e.heap[--e.heap_max]=o,i[2*a]=i[2*n]+i[2*o],e.depth[a]=(e.depth[n]>=e.depth[o]?e.depth[n]:e.depth[o])+1,i[2*n+1]=i[2*o+1]=a,e.heap[1]=a++,Ho(e,i,1)}while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],function(e,t){var n,o,a,i,r,s,l=t.dyn_tree,c=t.max_code,d=t.stat_desc.static_tree,u=t.stat_desc.has_stree,p=t.stat_desc.extra_bits,m=t.stat_desc.extra_base,b=t.stat_desc.max_length,h=0;for(i=0;i<=po;i++)e.bl_count[i]=0;for(l[2*e.heap[e.heap_max]+1]=0,n=e.heap_max+1;nb&&(i=b,h++),l[2*o+1]=i,o>c||(e.bl_count[i]++,r=0,o>=m&&(r=p[o-m]),s=l[2*o],e.opt_len+=s*(i+r),u&&(e.static_len+=s*(d[2*o+1]+r)));if(0!==h){do{for(i=b-1;0===e.bl_count[i];)i--;e.bl_count[i]--,e.bl_count[i+1]+=2,e.bl_count[b]--,h-=2}while(h>0);for(i=b;0!==i;i--)for(o=e.bl_count[i];0!==o;)(a=e.heap[--n])>c||(l[2*a+1]!==i&&(e.opt_len+=(i-l[2*a+1])*l[2*a],l[2*a+1]=i),o--)}}(e,t),xo(i,c,e.bl_count)}function Yo(e,t,n){var o,a,i=-1,r=t[1],s=0,l=7,c=4;for(0===r&&(l=138,c=3),t[2*(n+1)+1]=65535,o=0;o<=n;o++)a=r,r=t[2*(o+1)+1],++s>=7;o=8&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)}(e)}function Zo(e,t,n,o){var a,i,r=0;e.level>0?(e.strm.data_type===eo&&(e.strm.data_type=function(e){var t,n=4093624447;for(t=0;t<=31;t++,n>>>=1)if(1&n&&0!==e.dyn_ltree[2*t])return Zn;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return Jn;for(t=32;t=3&&0===e.bl_tree[2*Io[t]+1];t--);return e.opt_len+=3*(t+1)+5+5+4,t}(e),a=e.opt_len+3+7>>>3,(i=e.static_len+3+7>>>3)<=a&&(a=i)):a=i=n+5,n+4<=a&&-1!==t?Qo(e,t,n,o):e.strategy===Xn||i===a?(Mo(e,(oo<<1)+(o?1:0),3),zo(e,Co,Eo)):(Mo(e,(ao<<1)+(o?1:0),3),function(e,t,n,o){var a;for(Mo(e,t-257,5),Mo(e,n-1,5),Mo(e,o-4,4),a=0;a>>8&255,e.pending_buf[e.d_buf+2*e.last_lit+1]=255&t,e.pending_buf[e.l_buf+e.last_lit]=255&n,e.last_lit++,0===t?e.dyn_ltree[2*n]++:(e.matches++,t--,e.dyn_ltree[2*(wo[n]+ro+1)]++,e.dyn_dtree[2*Uo(t)]++),e.last_lit===e.lit_bufsize-1}function ea(e,t,n,o){for(var a=65535&e|0,i=e>>>16&65535|0,r=0;0!==n;){n-=r=n>2e3?2e3:n;do{i=i+(a=a+t[o++]|0)|0}while(--r);a%=65521,i%=65521}return a|i<<16|0}var ta=function(){for(var e,t=[],n=0;n<256;n++){e=n;for(var o=0;o<8;o++)e=1&e?3988292384^e>>>1:e>>>1;t[n]=e}return t}();function na(e,t,n,o){var a=ta,i=o+n;e^=-1;for(var r=o;r>>8^a[255&(e^t[r])];return-1^e}var oa,aa=0,ia=1,ra=3,sa=4,la=5,ca=0,da=1,ua=-2,pa=-3,ma=-5,ba=-1,ha=1,va=2,fa=3,ga=4,Oa=2,ja=8,ya=9,Ia=286,Ca=30,Ea=19,ka=2*Ia+1,wa=15,_a=3,Sa=258,Ta=Sa+_a+1,La=32,Aa=42,Da=69,Na=73,Ua=91,Ba=103,Ma=113,Va=666,Ra=1,xa=2,Pa=3,Ga=4,Fa=3;function Ha(e,t){return e.msg=Kn[t],t}function za(e){return(e<<1)-(e>4?9:0)}function Ka(e){for(var t=e.length;--t>=0;)e[t]=0}function Ya(e){var t=e.state,n=t.pending;n>e.avail_out&&(n=e.avail_out),0!==n&&(Wn(e.output,t.pending_buf,t.pending_out,n,e.next_out),e.next_out+=n,t.pending_out+=n,e.total_out+=n,e.avail_out-=n,t.pending-=n,0===t.pending&&(t.pending_out=0))}function Wa(e,t){Zo(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,Ya(e.strm)}function $a(e,t){e.pending_buf[e.pending++]=t}function qa(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t}function Qa(e,t){var n,o,a=e.max_chain_length,i=e.strstart,r=e.prev_length,s=e.nice_match,l=e.strstart>e.w_size-Ta?e.strstart-(e.w_size-Ta):0,c=e.window,d=e.w_mask,u=e.prev,p=e.strstart+Sa,m=c[i+r-1],b=c[i+r];e.prev_length>=e.good_match&&(a>>=2),s>e.lookahead&&(s=e.lookahead);do{if(c[(n=t)+r]===b&&c[n+r-1]===m&&c[n]===c[i]&&c[++n]===c[i+1]){i+=2,n++;do{}while(c[++i]===c[++n]&&c[++i]===c[++n]&&c[++i]===c[++n]&&c[++i]===c[++n]&&c[++i]===c[++n]&&c[++i]===c[++n]&&c[++i]===c[++n]&&c[++i]===c[++n]&&ir){if(e.match_start=t,r=o,o>=s)break;m=c[i+r-1],b=c[i+r]}}}while((t=u[t&d])>l&&0!=--a);return r<=e.lookahead?r:e.lookahead}function Xa(e){var t,n,o,a,i,r,s,l,c,d,u=e.w_size;do{if(a=e.window_size-e.lookahead-e.strstart,e.strstart>=u+(u-Ta)){Wn(e.window,e.window,u,u,0),e.match_start-=u,e.strstart-=u,e.block_start-=u,t=n=e.hash_size;do{o=e.head[--t],e.head[t]=o>=u?o-u:0}while(--n);t=n=u;do{o=e.prev[--t],e.prev[t]=o>=u?o-u:0}while(--n);a+=u}if(0===e.strm.avail_in)break;if(r=e.strm,s=e.window,l=e.strstart+e.lookahead,c=a,d=void 0,(d=r.avail_in)>c&&(d=c),n=0===d?0:(r.avail_in-=d,Wn(s,r.input,r.next_in,d,l),1===r.state.wrap?r.adler=ea(r.adler,s,d,l):2===r.state.wrap&&(r.adler=na(r.adler,s,d,l)),r.next_in+=d,r.total_in+=d,d),e.lookahead+=n,e.lookahead+e.insert>=_a)for(i=e.strstart-e.insert,e.ins_h=e.window[i],e.ins_h=(e.ins_h<=_a&&(e.ins_h=(e.ins_h<=_a)if(o=Jo(e,e.strstart-e.match_start,e.match_length-_a),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=_a){e.match_length--;do{e.strstart++,e.ins_h=(e.ins_h<=_a&&(e.ins_h=(e.ins_h<4096)&&(e.match_length=_a-1)),e.prev_length>=_a&&e.match_length<=e.prev_length){a=e.strstart+e.lookahead-_a,o=Jo(e,e.strstart-1-e.prev_match,e.prev_length-_a),e.lookahead-=e.prev_length-1,e.prev_length-=2;do{++e.strstart<=a&&(e.ins_h=(e.ins_h<la||t<0)return e?Ha(e,ua):ua;if(o=e.state,!e.output||!e.input&&0!==e.avail_in||o.status===Va&&t!==sa)return Ha(e,0===e.avail_out?ma:ua);if(o.strm=e,n=o.last_flush,o.last_flush=t,o.status===Aa)if(2===o.wrap)e.adler=0,$a(o,31),$a(o,139),$a(o,8),o.gzhead?($a(o,(o.gzhead.text?1:0)+(o.gzhead.hcrc?2:0)+(o.gzhead.extra?4:0)+(o.gzhead.name?8:0)+(o.gzhead.comment?16:0)),$a(o,255&o.gzhead.time),$a(o,o.gzhead.time>>8&255),$a(o,o.gzhead.time>>16&255),$a(o,o.gzhead.time>>24&255),$a(o,9===o.level?2:o.strategy>=va||o.level<2?4:0),$a(o,255&o.gzhead.os),o.gzhead.extra&&o.gzhead.extra.length&&($a(o,255&o.gzhead.extra.length),$a(o,o.gzhead.extra.length>>8&255)),o.gzhead.hcrc&&(e.adler=na(e.adler,o.pending_buf,o.pending,0)),o.gzindex=0,o.status=Da):($a(o,0),$a(o,0),$a(o,0),$a(o,0),$a(o,0),$a(o,9===o.level?2:o.strategy>=va||o.level<2?4:0),$a(o,Fa),o.status=Ma);else{var r=ja+(o.w_bits-8<<4)<<8;r|=(o.strategy>=va||o.level<2?0:o.level<6?1:6===o.level?2:3)<<6,0!==o.strstart&&(r|=La),r+=31-r%31,o.status=Ma,qa(o,r),0!==o.strstart&&(qa(o,e.adler>>>16),qa(o,65535&e.adler)),e.adler=1}if(o.status===Da)if(o.gzhead.extra){for(a=o.pending;o.gzindex<(65535&o.gzhead.extra.length)&&(o.pending!==o.pending_buf_size||(o.gzhead.hcrc&&o.pending>a&&(e.adler=na(e.adler,o.pending_buf,o.pending-a,a)),Ya(e),a=o.pending,o.pending!==o.pending_buf_size));)$a(o,255&o.gzhead.extra[o.gzindex]),o.gzindex++;o.gzhead.hcrc&&o.pending>a&&(e.adler=na(e.adler,o.pending_buf,o.pending-a,a)),o.gzindex===o.gzhead.extra.length&&(o.gzindex=0,o.status=Na)}else o.status=Na;if(o.status===Na)if(o.gzhead.name){a=o.pending;do{if(o.pending===o.pending_buf_size&&(o.gzhead.hcrc&&o.pending>a&&(e.adler=na(e.adler,o.pending_buf,o.pending-a,a)),Ya(e),a=o.pending,o.pending===o.pending_buf_size)){i=1;break}i=o.gzindexa&&(e.adler=na(e.adler,o.pending_buf,o.pending-a,a)),0===i&&(o.gzindex=0,o.status=Ua)}else o.status=Ua;if(o.status===Ua)if(o.gzhead.comment){a=o.pending;do{if(o.pending===o.pending_buf_size&&(o.gzhead.hcrc&&o.pending>a&&(e.adler=na(e.adler,o.pending_buf,o.pending-a,a)),Ya(e),a=o.pending,o.pending===o.pending_buf_size)){i=1;break}i=o.gzindexa&&(e.adler=na(e.adler,o.pending_buf,o.pending-a,a)),0===i&&(o.status=Ba)}else o.status=Ba;if(o.status===Ba&&(o.gzhead.hcrc?(o.pending+2>o.pending_buf_size&&Ya(e),o.pending+2<=o.pending_buf_size&&($a(o,255&e.adler),$a(o,e.adler>>8&255),e.adler=0,o.status=Ma)):o.status=Ma),0!==o.pending){if(Ya(e),0===e.avail_out)return o.last_flush=-1,ca}else if(0===e.avail_in&&za(t)<=za(n)&&t!==sa)return Ha(e,ma);if(o.status===Va&&0!==e.avail_in)return Ha(e,ma);if(0!==e.avail_in||0!==o.lookahead||t!==aa&&o.status!==Va){var s=o.strategy===va?function(e,t){for(var n;;){if(0===e.lookahead&&(Xa(e),0===e.lookahead)){if(t===aa)return Ra;break}if(e.match_length=0,n=Jo(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,n&&(Wa(e,!1),0===e.strm.avail_out))return Ra}return e.insert=0,t===sa?(Wa(e,!0),0===e.strm.avail_out?Pa:Ga):e.last_lit&&(Wa(e,!1),0===e.strm.avail_out)?Ra:xa}(o,t):o.strategy===fa?function(e,t){for(var n,o,a,i,r=e.window;;){if(e.lookahead<=Sa){if(Xa(e),e.lookahead<=Sa&&t===aa)return Ra;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=_a&&e.strstart>0&&(o=r[a=e.strstart-1])===r[++a]&&o===r[++a]&&o===r[++a]){i=e.strstart+Sa;do{}while(o===r[++a]&&o===r[++a]&&o===r[++a]&&o===r[++a]&&o===r[++a]&&o===r[++a]&&o===r[++a]&&o===r[++a]&&ae.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=_a?(n=Jo(e,1,e.match_length-_a),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(n=Jo(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),n&&(Wa(e,!1),0===e.strm.avail_out))return Ra}return e.insert=0,t===sa?(Wa(e,!0),0===e.strm.avail_out?Pa:Ga):e.last_lit&&(Wa(e,!1),0===e.strm.avail_out)?Ra:xa}(o,t):oa[o.level].func(o,t);if(s!==Pa&&s!==Ga||(o.status=Va),s===Ra||s===Pa)return 0===e.avail_out&&(o.last_flush=-1),ca;if(s===xa&&(t===ia?Xo(o):t!==la&&(Qo(o,0,0,!1),t===ra&&(Ka(o.head),0===o.lookahead&&(o.strstart=0,o.block_start=0,o.insert=0))),Ya(e),0===e.avail_out))return o.last_flush=-1,ca}return t!==sa?ca:o.wrap<=0?da:(2===o.wrap?($a(o,255&e.adler),$a(o,e.adler>>8&255),$a(o,e.adler>>16&255),$a(o,e.adler>>24&255),$a(o,255&e.total_in),$a(o,e.total_in>>8&255),$a(o,e.total_in>>16&255),$a(o,e.total_in>>24&255)):(qa(o,e.adler>>>16),qa(o,65535&e.adler)),Ya(e),o.wrap>0&&(o.wrap=-o.wrap),0!==o.pending?ca:da)}oa=[new ei(0,0,0,0,(function(e,t){var n=65535;for(n>e.pending_buf_size-5&&(n=e.pending_buf_size-5);;){if(e.lookahead<=1){if(Xa(e),0===e.lookahead&&t===aa)return Ra;if(0===e.lookahead)break}e.strstart+=e.lookahead,e.lookahead=0;var o=e.block_start+n;if((0===e.strstart||e.strstart>=o)&&(e.lookahead=e.strstart-o,e.strstart=o,Wa(e,!1),0===e.strm.avail_out))return Ra;if(e.strstart-e.block_start>=e.w_size-Ta&&(Wa(e,!1),0===e.strm.avail_out))return Ra}return e.insert=0,t===sa?(Wa(e,!0),0===e.strm.avail_out?Pa:Ga):(e.strstart>e.block_start&&(Wa(e,!1),e.strm.avail_out),Ra)})),new ei(4,4,8,4,Za),new ei(4,5,16,8,Za),new ei(4,6,32,32,Za),new ei(4,4,16,16,Ja),new ei(8,16,32,32,Ja),new ei(8,16,128,128,Ja),new ei(8,32,128,256,Ja),new ei(32,128,258,1024,Ja),new ei(32,258,258,4096,Ja)];var ai=30,ii=12;function ri(e,t){var n,o,a,i,r,s,l,c,d,u,p,m,b,h,v,f,g,O,j,y,I,C,E,k,w;n=e.state,o=e.next_in,k=e.input,a=o+(e.avail_in-5),i=e.next_out,w=e.output,r=i-(t-e.avail_out),s=i+(e.avail_out-257),l=n.dmax,c=n.wsize,d=n.whave,u=n.wnext,p=n.window,m=n.hold,b=n.bits,h=n.lencode,v=n.distcode,f=(1<>>=j=O>>>24,b-=j,0===(j=O>>>16&255))w[i++]=65535&O;else{if(!(16&j)){if(0==(64&j)){O=h[(65535&O)+(m&(1<>>=j,b-=j),b<15&&(m+=k[o++]<>>=j=O>>>24,b-=j,!(16&(j=O>>>16&255))){if(0==(64&j)){O=v[(65535&O)+(m&(1<l){e.msg="invalid distance too far back",n.mode=ai;break e}if(m>>>=j,b-=j,I>(j=i-r)){if((j=I-j)>d&&n.sane){e.msg="invalid distance too far back",n.mode=ai;break e}if(C=0,E=p,0===u){if(C+=c-j,j2;)w[i++]=E[C++],w[i++]=E[C++],w[i++]=E[C++],y-=3;y&&(w[i++]=E[C++],y>1&&(w[i++]=E[C++]))}else{C=i-I;do{w[i++]=w[C++],w[i++]=w[C++],w[i++]=w[C++],y-=3}while(y>2);y&&(w[i++]=w[C++],y>1&&(w[i++]=w[C++]))}break}}break}}while(o>3,m&=(1<<(b-=y<<3))-1,e.next_in=o,e.next_out=i,e.avail_in=o=1&&0===L[y];y--);if(I>y&&(I=y),0===y)return a[i++]=20971520,a[i++]=20971520,s.bits=1,0;for(j=1;j0&&(e===di||1!==y))return-1;for(A[1]=0,g=1;gli||e===pi&&w>ci)return 1;for(;;){b=g-E,r[O]m?(h=D[N+r[O]],v=S[T+r[O]]):(h=96,v=0),l=1<>E)+(c-=l)]=b<<24|h<<16|v|0}while(0!==c);for(l=1<>=1;if(0!==l?(_&=l-1,_+=l):_=0,O++,0==--L[g]){if(g===y)break;g=t[n+r[O]]}if(g>I&&(_&u)!==d){for(0===E&&(E=I),p+=j,k=1<<(C=g-E);C+Eli||e===pi&&w>ci)return 1;a[d=_&u]=I<<24|C<<16|p-i|0}}return 0!==_&&(a[p+_]=g-E<<24|64<<16|0),s.bits=I,0}var gi=0,Oi=1,ji=2,yi=4,Ii=5,Ci=6,Ei=0,ki=1,wi=2,_i=-2,Si=-3,Ti=-4,Li=-5,Ai=8,Di=1,Ni=2,Ui=3,Bi=4,Mi=5,Vi=6,Ri=7,xi=8,Pi=9,Gi=10,Fi=11,Hi=12,zi=13,Ki=14,Yi=15,Wi=16,$i=17,qi=18,Qi=19,Xi=20,Zi=21,Ji=22,er=23,tr=24,nr=25,or=26,ar=27,ir=28,rr=29,sr=30,lr=31,cr=32,dr=852,ur=592;function pr(e){return(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function mr(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new qn(320),this.work=new qn(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function br(e){var t;return e&&e.state?((t=e.state).wsize=0,t.whave=0,t.wnext=0,function(e){var t;return e&&e.state?(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=Di,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new Qn(dr),t.distcode=t.distdyn=new Qn(ur),t.sane=1,t.back=-1,Ei):_i}(e)):_i}function hr(e,t){var n,o;return e?(o=new mr,e.state=o,o.window=null,(n=function(e,t){var n,o;return e&&e.state?(o=e.state,t<0?(n=0,t=-t):(n=1+(t>>4),t<48&&(t&=15)),t&&(t<8||t>15)?_i:(null!==o.window&&o.wbits!==t&&(o.window=null),o.wrap=n,o.wbits=t,br(e))):_i}(e,t))!==Ei&&(e.state=null),n):_i}var vr,fr,gr=!0;function Or(e){if(gr){var t;for(vr=new Qn(512),fr=new Qn(32),t=0;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(fi(Oi,e.lens,0,288,vr,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;fi(ji,e.lens,0,32,fr,0,e.work,{bits:5}),gr=!1}e.lencode=vr,e.lenbits=9,e.distcode=fr,e.distbits=5}function jr(e,t){var n,o,a,i,r,s,l,c,d,u,p,m,b,h,v,f,g,O,j,y,I,C,E,k,w=0,_=new $n(4),S=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!e||!e.state||!e.output||!e.input&&0!==e.avail_in)return _i;(n=e.state).mode===Hi&&(n.mode=zi),r=e.next_out,a=e.output,l=e.avail_out,i=e.next_in,o=e.input,s=e.avail_in,c=n.hold,d=n.bits,u=s,p=l,C=Ei;e:for(;;)switch(n.mode){case Di:if(0===n.wrap){n.mode=zi;break}for(;d<16;){if(0===s)break e;s--,c+=o[i++]<>>8&255,n.check=na(n.check,_,2,0),c=0,d=0,n.mode=Ni;break}if(n.flags=0,n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&c)<<8)+(c>>8))%31){e.msg="incorrect header check",n.mode=sr;break}if((15&c)!==Ai){e.msg="unknown compression method",n.mode=sr;break}if(d-=4,I=8+(15&(c>>>=4)),0===n.wbits)n.wbits=I;else if(I>n.wbits){e.msg="invalid window size",n.mode=sr;break}n.dmax=1<>8&1),512&Z()(n)&&(_[0]=255&c,_[1]=c>>>8&255,n.check=na(n.check,_,2,0)),c=0,d=0,n.mode=Ui;case Ui:for(;d<32;){if(0===s)break e;s--,c+=o[i++]<>>8&255,_[2]=c>>>16&255,_[3]=c>>>24&255,n.check=na(n.check,_,4,0)),c=0,d=0,n.mode=Bi;case Bi:for(;d<16;){if(0===s)break e;s--,c+=o[i++]<>8),512&Z()(n)&&(_[0]=255&c,_[1]=c>>>8&255,n.check=na(n.check,_,2,0)),c=0,d=0,n.mode=Mi;case Mi:if(1024&Z()(n)){for(;d<16;){if(0===s)break e;s--,c+=o[i++]<>>8&255,n.check=na(n.check,_,2,0)),c=0,d=0}else n.head&&(n.head.extra=null);n.mode=Vi;case Vi:if(1024&Z()(n)&&((m=n.length)>s&&(m=s),m&&(n.head&&(I=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Array(n.head.extra_len)),Wn(n.head.extra,o,i,m,I)),512&Z()(n)&&(n.check=na(n.check,o,m,i)),s-=m,i+=m,n.length-=m),n.length))break e;n.length=0,n.mode=Ri;case Ri:if(2048&Z()(n)){if(0===s)break e;m=0;do{I=o[i+m++],n.head&&I&&n.length<65536&&(n.head.name+=String.fromCharCode(I))}while(I&&m>9&1,n.head.done=!0),e.adler=n.check=0,n.mode=Hi;break;case Gi:for(;d<32;){if(0===s)break e;s--,c+=o[i++]<>>=7&d,d-=7&d,n.mode=ar;break}for(;d<3;){if(0===s)break e;s--,c+=o[i++]<>>=1)){case 0:n.mode=Ki;break;case 1:if(Or(n),n.mode=Xi,t===Ci){c>>>=2,d-=2;break e}break;case 2:n.mode=$i;break;case 3:e.msg="invalid block type",n.mode=sr}c>>>=2,d-=2;break;case Ki:for(c>>>=7&d,d-=7&d;d<32;){if(0===s)break e;s--,c+=o[i++]<>>16^65535)){e.msg="invalid stored block lengths",n.mode=sr;break}if(n.length=65535&c,c=0,d=0,n.mode=Yi,t===Ci)break e;case Yi:n.mode=Wi;case Wi:if(m=n.length){if(m>s&&(m=s),m>l&&(m=l),0===m)break e;Wn(a,o,i,m,r),s-=m,i+=m,l-=m,r+=m,n.length-=m;break}n.mode=Hi;break;case $i:for(;d<14;){if(0===s)break e;s--,c+=o[i++]<>>=5,d-=5,n.ndist=1+(31&c),c>>>=5,d-=5,n.ncode=4+(15&c),c>>>=4,d-=4,n.nlen>286||n.ndist>30){e.msg="too many length or distance symbols",n.mode=sr;break}n.have=0,n.mode=qi;case qi:for(;n.have>>=3,d-=3}for(;n.have<19;)n.lens[S[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,E={bits:n.lenbits},C=fi(gi,n.lens,0,19,n.lencode,0,n.work,E),n.lenbits=E.bits,C){e.msg="invalid code lengths set",n.mode=sr;break}n.have=0,n.mode=Qi;case Qi:for(;n.have>>16&255,g=65535&w,!((v=w>>>24)<=d);){if(0===s)break e;s--,c+=o[i++]<>>=v,d-=v,n.lens[n.have++]=g;else{if(16===g){for(k=v+2;d>>=v,d-=v,0===n.have){e.msg="invalid bit length repeat",n.mode=sr;break}I=n.lens[n.have-1],m=3+(3&c),c>>>=2,d-=2}else if(17===g){for(k=v+3;d>>=v)),c>>>=3,d-=3}else{for(k=v+7;d>>=v)),c>>>=7,d-=7}if(n.have+m>n.nlen+n.ndist){e.msg="invalid bit length repeat",n.mode=sr;break}for(;m--;)n.lens[n.have++]=I}}if(n.mode===sr)break;if(0===n.lens[256]){e.msg="invalid code -- missing end-of-block",n.mode=sr;break}if(n.lenbits=9,E={bits:n.lenbits},C=fi(Oi,n.lens,0,n.nlen,n.lencode,0,n.work,E),n.lenbits=E.bits,C){e.msg="invalid literal/lengths set",n.mode=sr;break}if(n.distbits=6,n.distcode=n.distdyn,E={bits:n.distbits},C=fi(ji,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,E),n.distbits=E.bits,C){e.msg="invalid distances set",n.mode=sr;break}if(n.mode=Xi,t===Ci)break e;case Xi:n.mode=Zi;case Zi:if(s>=6&&l>=258){e.next_out=r,e.avail_out=l,e.next_in=i,e.avail_in=s,n.hold=c,n.bits=d,ri(e,p),r=e.next_out,a=e.output,l=e.avail_out,i=e.next_in,o=e.input,s=e.avail_in,c=n.hold,d=n.bits,n.mode===Hi&&(n.back=-1);break}for(n.back=0;f=(w=n.lencode[c&(1<>>16&255,g=65535&w,!((v=w>>>24)<=d);){if(0===s)break e;s--,c+=o[i++]<>O)])>>>16&255,g=65535&w,!(O+(v=w>>>24)<=d);){if(0===s)break e;s--,c+=o[i++]<>>=O,d-=O,n.back+=O}if(c>>>=v,d-=v,n.back+=v,n.length=g,0===f){n.mode=or;break}if(32&f){n.back=-1,n.mode=Hi;break}if(64&f){e.msg="invalid literal/length code",n.mode=sr;break}n.extra=15&f,n.mode=Ji;case Ji:if(n.extra){for(k=n.extra;d>>=n.extra,d-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=er;case er:for(;f=(w=n.distcode[c&(1<>>16&255,g=65535&w,!((v=w>>>24)<=d);){if(0===s)break e;s--,c+=o[i++]<>O)])>>>16&255,g=65535&w,!(O+(v=w>>>24)<=d);){if(0===s)break e;s--,c+=o[i++]<>>=O,d-=O,n.back+=O}if(c>>>=v,d-=v,n.back+=v,64&f){e.msg="invalid distance code",n.mode=sr;break}n.offset=g,n.extra=15&f,n.mode=tr;case tr:if(n.extra){for(k=n.extra;d>>=n.extra,d-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){e.msg="invalid distance too far back",n.mode=sr;break}n.mode=nr;case nr:if(0===l)break e;if(m=p-l,n.offset>m){if((m=n.offset-m)>n.whave&&n.sane){e.msg="invalid distance too far back",n.mode=sr;break}m>n.wnext?(m-=n.wnext,b=n.wsize-m):b=n.wnext-m,m>n.length&&(m=n.length),h=n.window}else h=a,b=r-n.offset,m=n.length;m>l&&(m=l),l-=m,n.length-=m;do{a[r++]=h[b++]}while(--m);0===n.length&&(n.mode=Zi);break;case or:if(0===l)break e;a[r++]=n.length,l--,n.mode=Zi;break;case ar:if(n.wrap){for(;d<32;){if(0===s)break e;s--,c|=o[i++]<=i.wsize?(Wn(i.window,t,n-i.wsize,i.wsize,0),i.wnext=0,i.whave=i.wsize):((a=i.wsize-i.wnext)>o&&(a=o),Wn(i.window,t,n-o,a,i.wnext),(o-=a)?(Wn(i.window,t,n-o,o,0),i.wnext=o,i.whave=i.wsize):(i.wnext+=a,i.wnext===i.wsize&&(i.wnext=0),i.whaveCr)throw new TypeError("Bad argument");this.mode=e,this.init_done=!1,this.write_in_progress=!1,this.pending_close=!1,this.windowBits=0,this.level=0,this.memLevel=0,this.strategy=0,this.dictionary=null}function kr(e,t){for(var n=0;n15&&(r=2,o-=16),a<1||a>ya||n!==ja||o<8||o>15||t<0||t>9||i<0||i>ga)return Ha(e,ua);8===o&&(o=9);var s=new ti;return e.state=s,s.strm=e,s.wrap=r,s.gzhead=null,s.w_bits=o,s.w_size=1<_r.Z_MAX_CHUNK))throw new Error("Invalid chunk size: "+e.chunkSize);if(e.windowBits&&(e.windowBits<_r.Z_MIN_WINDOWBITS||e.windowBits>_r.Z_MAX_WINDOWBITS))throw new Error("Invalid windowBits: "+e.windowBits);if(e.level&&(e.level<_r.Z_MIN_LEVEL||e.level>_r.Z_MAX_LEVEL))throw new Error("Invalid compression level: "+e.level);if(e.memLevel&&(e.memLevel<_r.Z_MIN_MEMLEVEL||e.memLevel>_r.Z_MAX_MEMLEVEL))throw new Error("Invalid memLevel: "+e.memLevel);if(e.strategy&&e.strategy!=_r.Z_FILTERED&&e.strategy!=_r.Z_HUFFMAN_ONLY&&e.strategy!=_r.Z_RLE&&e.strategy!=_r.Z_FIXED&&e.strategy!=_r.Z_DEFAULT_STRATEGY)throw new Error("Invalid strategy: "+e.strategy);if(e.dictionary&&!et(e.dictionary))throw new Error("Invalid dictionary: it should be a Buffer instance");this._binding=new _r.Zlib(t);var n=this;this._hadError=!1,this._binding.onerror=function(e,t){n._binding=null,n._hadError=!0;var o=new Error(e);o.errno=t,o.code=_r.codes[t],n.emit("error",o)};var o=_r.Z_DEFAULT_COMPRESSION;"number"==typeof e.level&&(o=e.level);var a=_r.Z_DEFAULT_STRATEGY;"number"==typeof e.strategy&&(a=e.strategy),this._binding.init(e.windowBits||_r.Z_DEFAULT_WINDOWBITS,o,e.memLevel||_r.Z_DEFAULT_MEMLEVEL,a,e.dictionary),this._buffer=new fe(this._chunkSize),this._offset=0,this._closed=!1,this._level=o,this._strategy=a,this.once("end",this.close)}R()(a=D()(Sr)).call(a,(function(e){Sr[Sr[e]]=e})),At(Rr,Gn),Rr.prototype.params=function(e,t,n){if(e<_r.Z_MIN_LEVEL||e>_r.Z_MAX_LEVEL)throw new RangeError("Invalid compression level: "+e);if(t!=_r.Z_FILTERED&&t!=_r.Z_HUFFMAN_ONLY&&t!=_r.Z_RLE&&t!=_r.Z_FIXED&&t!=_r.Z_DEFAULT_STRATEGY)throw new TypeError("Invalid strategy: "+t);if(this._level!==e||this._strategy!==t){var o=this;this.flush(_r.Z_SYNC_FLUSH,(function(){o._binding.params(e,t),o._hadError||(o._level=e,o._strategy=t,n&&n())}))}else vt(n)},Rr.prototype.reset=function(){return this._binding.reset()},Rr.prototype._flush=function(e){this._transform(new fe(0),"",e)},Rr.prototype.flush=function(e,t){var n=this._writableState;if(("function"==typeof e||void 0===e&&!t)&&(t=e,e=_r.Z_FULL_FLUSH),n.ended)t&&vt(t);else if(n.ending)t&&this.once("end",t);else if(n.needDrain){var o=this;this.once("drain",(function(){o.flush(t)}))}else this._flushFlag=e,this.write(new fe(0),"",t)},Rr.prototype.close=function(e){if(e&&vt(e),!this._closed){this._closed=!0,this._binding.close();var t=this;vt((function(){t.emit("close")}))}},Rr.prototype._transform=function(e,t,n){var o,a=this._writableState,i=(a.ending||a.ended)&&(!e||a.length===e.length);if(null===!e&&!et(e))return n(new Error("invalid input"));i?o=_r.Z_FINISH:(o=this._flushFlag,e.length>=a.length&&(this._flushFlag=this._opts.flush||_r.Z_NO_FLUSH)),this._processChunk(e,o,n)},Rr.prototype._processChunk=function(e,t,n){var o=e&&e.length,a=this._chunkSize-this._offset,i=0,r=this,s="function"==typeof n;if(!s){var c,d=[],u=0;this.on("error",(function(e){c=e}));do{var p=this._binding.writeSync(t,e,i,o,this._buffer,this._offset,a)}while(!this._hadError&&h(p[0],p[1]));if(this._hadError)throw c;var m=E()(fe).call(fe,d,u);return this.close(),m}var b=this._binding.write(t,e,i,o,this._buffer,this._offset,a);function h(c,p){if(!r._hadError){var m=a-p;if(function(e,t){if(!e)throw new Error(t)}(m>=0,"have should not go down"),m>0){var b,v=l()(b=r._buffer).call(b,r._offset,r._offset+m);r._offset+=m,s?r.push(v):(d.push(v),u+=v.length)}if((0===p||r._offset>=r._chunkSize)&&(a=r._chunkSize,r._offset=0,r._buffer=new fe(r._chunkSize)),0===p){if(i+=o-c,o=c,!s)return!0;var f=r._binding.write(t,e,i,o,r._buffer,r._offset,r._chunkSize);return f.callback=h,void(f.buffer=e)}if(!s)return!1;n()}}b.buffer=e,b.callback=h},At(Ar,Rr),At(Dr,Rr),At(Nr,Rr),At(Ur,Rr),At(Br,Rr),At(Mr,Rr),At(Vr,Rr);var xr={codes:Sr,createDeflate:function(e){return new Ar(e)},createInflate:function(e){return new Dr(e)},createDeflateRaw:function(e){return new Br(e)},createInflateRaw:function(e){return new Mr(e)},createGzip:function(e){return new Nr(e)},createGunzip:function(e){return new Ur(e)},createUnzip:function(e){return new Vr(e)},deflate:function(e,t,n){return"function"==typeof t&&(n=t,t={}),Tr(new Ar(t),e,n)},deflateSync:function(e,t){return Lr(new Ar(t),e)},gzip:function(e,t,n){return"function"==typeof t&&(n=t,t={}),Tr(new Nr(t),e,n)},gzipSync:function(e,t){return Lr(new Nr(t),e)},deflateRaw:function(e,t,n){return"function"==typeof t&&(n=t,t={}),Tr(new Br(t),e,n)},deflateRawSync:function(e,t){return Lr(new Br(t),e)},unzip:function(e,t,n){return"function"==typeof t&&(n=t,t={}),Tr(new Vr(t),e,n)},unzipSync:function(e,t){return Lr(new Vr(t),e)},inflate:function(e,t,n){return"function"==typeof t&&(n=t,t={}),Tr(new Dr(t),e,n)},inflateSync:function(e,t){return Lr(new Dr(t),e)},gunzip:function(e,t,n){return"function"==typeof t&&(n=t,t={}),Tr(new Ur(t),e,n)},gunzipSync:function(e,t){return Lr(new Ur(t),e)},inflateRaw:function(e,t,n){return"function"==typeof t&&(n=t,t={}),Tr(new Mr(t),e,n)},inflateRawSync:function(e,t){return Lr(new Mr(t),e)},Deflate:Ar,Inflate:Dr,Gzip:Nr,Gunzip:Ur,DeflateRaw:Br,InflateRaw:Mr,Unzip:Vr,Zlib:Rr};t["a"]=class{constructor(e,t,n){this.SDKAPPID=e,this.EXPIRETIME=n,this.PRIVATEKEY=t}genTestUserSig(e){return this._isNumber(this.SDKAPPID)?this._isString(this.PRIVATEKEY)?this._isString(e)?this._isNumber(this.EXPIRETIME)?(console.log("sdkAppID="+this.SDKAPPID+" key="+this.PRIVATEKEY+" userID="+e+" expire="+this.EXPIRETIME),this.genSigWithUserbuf(e,this.EXPIRETIME,null)):(console.error("expireTime must be a number"),""):(console.error("userID must be a string"),""):(console.error("privateKey must be a string"),""):(console.error("sdkAppID must be a number"),"")}newBuffer(e,t){return fe.from?fe.from(e,t):new fe(e,t)}unescape(e){return e.replace(/_/g,"=").replace(/\-/g,"/").replace(/\*/g,"+")}escape(e){return e.replace(/\+/g,"*").replace(/\//g,"-").replace(/=/g,"_")}encode(e){return this.escape(this.newBuffer(e).toString("base64"))}decode(e){return this.newBuffer(this.unescape(e),"base64")}base64encode(e){return this.newBuffer(e).toString("base64")}base64decode(e){return this.newBuffer(e,"base64").toString()}_hmacsha256(e,t,n,o){let a="TLS.identifier:"+e+"\n";a+="TLS.sdkappid:"+this.SDKAPPID+"\n",a+="TLS.time:"+t+"\n",a+="TLS.expire:"+n+"\n",null!=o&&(a+="TLS.userbuf:"+o+"\n");let i=at.HmacSHA256(a,this.PRIVATEKEY);return at.enc.Base64.stringify(i)}_utc(){return Math.round(ne()()/1e3)}_isNumber(e){return null!==e&&("number"==typeof e&&!isNaN(e-0)||"object"==typeof e&&e.constructor===Number)}_isString(e){return"string"==typeof e}genSigWithUserbuf(e,t,n){let o=this._utc(),a={"TLS.ver":"2.0","TLS.identifier":e,"TLS.sdkappid":this.SDKAPPID,"TLS.time":o,"TLS.expire":t},i="";if(null!=n){let r=this.base64encode(n);a["TLS.userbuf"]=r,i=this._hmacsha256(e,o,t,r)}else i=this._hmacsha256(e,o,t,null);a["TLS.sig"]=i;let r=M()(a),s=xr.deflateSync(this.newBuffer(r)).toString("base64"),l=this.escape(s);return console.log("ret="+l),l}validate(e){let t=this.decode(e),n=xr.inflateSync(t);console.log("validate ret="+n)}}}).call(this,n("c8ba"))},e32f:function(e){e.exports=JSON.parse('{"发起会话":"Start chat","发起单聊":"New one-to-one chat","发起群聊":"New group chat","该用户不存在":"The user does not exist","创建群聊,请注册 TUIGroup 模块":"To create a group chat, please register the TUIGroup module","创建成功":"Creation successful","发起多人会话(群聊)":"New group chat","群头像":"Group profile photo","群名称":"Group name","群ID":"Group ID","群类型":"Group type","选填":"Optional","取消":"Cancel","创建":"Create","类似普通微信群,创建后仅支持已在群内的好友邀请加群,且无需被邀请方同意或群主神奇。详见":"Similar to a WeChat group. Users can join the group only via invitation by existing members. The invitation does not need to be agreed by the invitee or approved by the group owner. See the documentation for details.","类似 QQ 群,创建后群主可以指定群管理员,用户搜索群 ID 发起加群申请后,需要群主或管理员审批通过才能入群。详见":"Similar to a QQ group. After a public group is created, the group owner can designate group admins. To join the group, a user needs to search the group ID and send a request, which needs to be approved by the group owner or an admin before the user can join the group. See the documentation for details. ","创建后可以随意进出,且支持查看入群前消息;适合用于音视频会议场景、在线教育场景等与实时音视频产品结合的场景。详见":"After the group is created, a user can join and quit the group freely and can view the messages sent before joining the group. It is suitable for scenarios that integrate Tencent Real-Time Communication (TRTC), such as audio and video conferences and online education. See the documentation for details.","创建后可以随意进出,没有群成员数量上限,但不支持历史消息存储;适合与直播产品结合,用于弹幕聊天场景。详见":"After a group is created, a user can join and quit the group freely. The group can have an unlimited number of members, but it does not store message history. It can be combined with Live Video Broadcasting (LVB) to support on-screen comment scenarios. See the documentation for details. ","产品文档":"product documentation","设置群名称":"Group name","请输入群名称":"Enter the group name","设置群ID":"Group ID","请输入群ID":"Enter the group ID","选择群类型":"Group type"}')},e435:function(e,t,n){e.exports=n.p+"img/downaload-image.ac16e1ec.png"},e5cf:function(e,t,n){"use strict";n("bccb")},e68c:function(e){e.exports=JSON.parse('{"登录":"登录","登录当前账号":"登录当前账号","切换其他账号":"切换其他账号","我已阅读并同意":"我已阅读并同意","和":"和","隐私条例":"隐私条例","用户协议":"用户协议","免费体验":"免费体验","体验更多Demo":"体验更多Demo","访问官网":"访问官网","超10亿用户的信赖":"超10亿用户的信赖","一分钟":"一分钟","改2行代码,1分钟跑通demo":"改2行代码,1分钟跑通demo","每月服务客户数超过10000家":"每月服务客户数超过10000家","消息收发成功率":"消息收发成功率,服务可靠性高于99.99%","10亿":"10亿","每月活跃用户数超过10亿":"每月活跃用户数超过10亿","请输入手机号":"请输入手机号","请输入userID":"请输入userID","请输入正确的手机号":"请输入正确的手机号","请先勾选用户协议":"请先勾选用户协议","请输入验证码":"请输入验证码","获取验证码":"获取验证码","登录失败":"登录失败","验证码发送成功":"验证码发送成功","发送验证码失败":"验证码发送失败","Android":"Android","iOS":"iOS","小程序":"小程序","Windows":"Windows","Mac OS":"Mac OS","扫描二维码下载":"扫描二维码下载","微信扫码进入":"微信扫码进入","点击直接下载":"点击直接下载","更多客户端体验":"更多客户端体验","微信扫一扫,免费体验腾讯云 IM 小程序":"微信扫一扫,免费体验腾讯云 IM 小程序","或者截图至相册,切换微信扫一扫识别体验":"或者截图至相册,切换微信扫一扫识别体验"}')},e690:function(e,t,n){"use strict";n("7ecd")},e888:function(e,t,n){"use strict";n("81a1")},e8e5:function(e,t,n){},e93c:function(e,t,n){},eafc:function(e,t,n){},eb5a:function(e,t,n){},eb86:function(e,t,n){e.exports=n.p+"img/selected.33c5a61d.svg"},eeae:function(e,t,n){},eebc:function(e,t,n){},f017:function(e){e.exports=JSON.parse('{"取消":"Cancel","完成":"Done","已选中":"Selected","人":"","保存":"Save","请输入userID":"Enter a user ID","确定":"submit","全选":"All","已在群聊中":"exists"}')},f068:function(e,t,n){},f172:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAAkCAMAAADrTAnMAAAAn1BMVEUAAAD///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////8Kd3m4AAAANHRSTlMA+LcMRx7t6ODcoIBxYUAInFv18cuOhn4yGBLRzb2ka1MnIw/61sWKeU06NyytpZWSVzYEGKQRgAAAAaZJREFUSMedVet6gjAMBVEElaGAeJvi/e6mW97/2Za0ED5gRe35w6H9Tgk5SWq8hd+WoYW1A3tLR3gAgJuOsAeIrobQj0i51FBO2igMJ4rdczRvqpQXE5V3xaaLe6PyYpbMBDdNhSlAaEwLPriwSJ2kYzs1QnDGRo4+LgwlfSDdtmqEYHpFA2Eg+QxpohYS+n62NKUA2xab2fgv42NgfHJI1wBfj4KukAV+MXPLjgMF2OzLiD6ZZ/1k5Gj1TaiAfbFsfPkR9I6sx7LNsCor+LLgMu1xiinwHajgyB/1kH4JNhBM4hSqZGz3B7J5iRnNLTwVjinLJXYN63TOWh7O9jGzXGCok5Pwt72Mdet03O8NNuGILKZSCdSyvABa5JYMupMe8Q0SwTz2Th+Icslxf+wkbSM9iydhP7BURU5Y5u1xoUhSV2DXrG+rFf3OTPIYQHT1kArIf6GRTVmpPkX4ENnaek9HRywC5ZyGG2robIURVafuZjFLUmZnu3a3Oh4j1XiUHtgWsb3xDjzgOli9quF57PqaN8DVeBux7p0zEkNIA9bNOWT8DweSes56/3r9AAAAAElFTkSuQmCC"},f712:function(e){e.exports=JSON.parse('{"欢迎使用":"Welcome","建议体验功能":"Recommended Demo Features","用UI组件快速集成":"Quick Integration with UI Components","创建项目":"Create a project","下载TUIKit组件":"Download the TUIKit component","引入TUIKit组件":"Import the TUIKit component","获取SDKAppID":"Obtain the SDKAppID, key, and userID","调用TUIKit组件":"Call the TUIKit component","启动项目":"Launch the project","发送您的第一条消息":"Send your first mess","首购低至1折":"Up to 90% off for first purchase","IM首购9percent折":"Up to 91% off for first purchase","续费9折起":"Up to 10% off for re-purchase","复购75%起":"Up to 25% off for re-purchase","立即选购":"Purchase now","体验更多Demo":"More demos","立即前往":"Try now","已完成":"Completed","待体验":"To try out","发送一条消息":"Send a message","撤回一条消息":"Recall a message","切换一次使用语言":"Change the language","发起一个多人会话":"Create a group chat","发起一个群聊":"New a group chat","开启一次群禁言":"Mute group members","解散一个群聊":"Disband a group","解散一个多人会话":"Disband a group","发起一次通话":"Make a call","修改一次我的昵称":"Edit a nick","我们为您默认提供了一位“示例好友”和一个“示例客服群”您不用额外添加好友和群聊就可完整体验腾讯云 IM 单聊、群聊的所有功能。":"We provide a Sample Friend and a Sample Customer Service Group by default, so that you can fully try out all the features of one-to-one chat and group chat of Tencent Cloud IM without adding additional friends or groups.","随时随地":"You can log in and try out anytime and anywhere.","男":"Male","女":"Female","用户ID":"user ID","个性签名":"Status","暂未设置":"Not set","出生年月":"Birthday","编辑资料":"Edit profile","关于腾讯云IM":"About Tencent Cloud IM","退出登录":"Log out","隐私条例":"Privacy Policy","用户协议":"User Agreement","免责声明":"Disclaimers","联系我们":"Contact us","注销账户":"Cancel account","SDK版本":"SDK version","注销后,您将无法使用当前账号,相关数据也将删除无法找回。 当前账号":"Instant Messaging (IM) is a test product provided by Tencent Cloud, and Tencent Cloud enjoys its copyright and ownership. It is for trying out features, but not for commercial use. To follow regulatory requirements of the authority, audio and video-based interactions performed via IM will be recorded and archived throughout the whole process. It is strictly prohibited to disseminate via IM any pornographic, abusive, violent, political and other noncompliant content.","IM-免责声明":"Im - Disclaimer","IM(“本产品”)是由腾讯云提供的一款测试产品,腾讯云享有本产品的著作权和所有权。本产品仅用于功能体验,不得用于任何商业用途。依据相关部门监管要求,严禁在使用中有任何色情、辱骂、暴恐、涉政等违法内容传播。":"Instant Messaging (IM) is a demo product provided by Tencent Cloud, and Tencent Cloud retains its copyright and ownership. This product is for trying out features, but not for commercial use. To follow regulatory requirements of the authority, audio and video-based interactions performed via IM will be recorded and archived throughout the whole process. It is strictly prohibited to disseminate any pornographic, abusive, violent, sensitive and other noncompliant content.","同意":"Agree","取消":"Cancel","注销":"Cancel","关闭":"close","开启":"open","关于腾讯云·通信":"About Tencent Cloud IM","消息":"message","通讯录":"contact","个人中心":"Profile","已读回执":"Read receipt","消息阅读状态":"Message read status","关闭阅读状态":"If disabled, the message read status is hidden for all your messages and for all the messages sent by memebers in a chat.","开启阅读状态":"If enabled, the message read status is displayed for all your messages and for all the messages sent by memebers in a chat.","显示在线状态":"Display online status","开启在线状态":"If enabled, the users\' online status will displayed in your session and contact list.","关闭在线状态":"If disabled, the users\' online status will not displayed in your session and contact list.","消息通知":"Message Notification"}')},f7a6:function(e,t,n){},f975:function(e,t,n){},fa4f:function(e,t,n){},fa9c:function(e,t,n){},faef:function(e,t,n){},fc5e:function(e,t,n){"use strict";n("dc8e")},fcd0:function(e,t,n){"use strict";n.d(t,"b",(function(){return $h})),n.d(t,"a",(function(){return Mh}));var o=n("4573"),a=n.n(o),i=n("fa81"),r=n.n(i),s=n("14b1"),l=n.n(s),c=n("2fa7"),d=(n("14d9"),n("78b2")),u=n.n(d),p=n("e76e"),m=n.n(p),b=n("5b1a"),h=n.n(b),v=n("3818"),f=n.n(v),g=n("2b0b"),O=n.n(g),j=n("e4f0"),y=n.n(j),I=n("fc56"),C=n.n(I),E=n("4c43"),k=n.n(E),w=n("3393"),_=n.n(w),S=n("65b8"),T=n.n(S),L=n("c193");class A{destroyed(){}updateStore(e,t){}}var D=n("259d");class N extends A{constructor(e){var t;super(),Object(c["a"])(this,"TUICore",void 0),Object(c["a"])(this,"store",void 0),Object(c["a"])(this,"currentStore",{}),this.TUICore=e,this.bindTIMEvent(),this.store=e.setComponentStore("TUIChat",{},u()(t=this.updateStore).call(t,this))}destroyed(){this.unbindTIMEvent()}updateStore(e,t){m()(this.currentStore,e),e.conversation.conversationID?e.conversation.conversationID&&e.conversation.conversationID!==t.conversation.conversationID&&this.render(e.conversation):this.currentStore.messageList=[]}render(e){const t=15;if(this.currentStore.isFirstRender=!0,this.currentStore.messageList=[],this.currentStore.readSet.clear(),this.getMessageList({conversationID:e.conversationID,count:t}),e.type===this.TUICore.TIM.TYPES.CONV_GROUP){var n;this.currentStore.userInfo.isGroup=!0;const t={groupID:e.groupProfile.groupID,userIDList:[e.groupProfile.selfInfo.userID]};this.getGroupProfile({groupID:e.groupProfile.groupID}),this.getGroupMemberProfile(t).then(e=>{const{memberList:t}=e.data,[n]=t;this.currentStore.selfInfo=n}),null===this||void 0===this||null===(n=this.TUICore)||void 0===n||null===(n=n.TUIServer)||void 0===n||null===(n=n.TUIGroup)||void 0===n||n.getGroupMemberList({groupID:e.groupProfile.groupID,count:100,offset:0}).then(e=>{var t;this.currentStore.allMemberList=null===(t=e.data)||void 0===t?void 0:t.memberList})}else this.currentStore.userInfo.isGroup=!1,this.currentStore.userInfo.list=[null===e||void 0===e?void 0:e.userProfile]}bindTIMEvent(){this.TUICore.tim.on(this.TUICore.TIM.EVENT.MESSAGE_RECEIVED,this.handleMessageReceived,this),this.TUICore.tim.on(this.TUICore.TIM.EVENT.MESSAGE_MODIFIED,this.handleMessageModified,this),this.TUICore.tim.on(this.TUICore.TIM.EVENT.MESSAGE_REVOKED,this.handleMessageRevoked,this),this.TUICore.tim.on(this.TUICore.TIM.EVENT.MESSAGE_READ_BY_PEER,this.handleMessageReadByPeer,this),this.TUICore.tim.on(this.TUICore.TIM.EVENT.GROUP_LIST_UPDATED,this.handleGroupListUpdated,this),this.TUICore.tim.on(this.TUICore.TIM.EVENT.MESSAGE_READ_RECEIPT_RECEIVED,this.handleMessageReadReceiptReceived,this)}unbindTIMEvent(){this.TUICore.tim.off(this.TUICore.TIM.EVENT.MESSAGE_RECEIVED,this.handleMessageReceived),this.TUICore.tim.off(this.TUICore.TIM.EVENT.MESSAGE_MODIFIED,this.handleMessageModified),this.TUICore.tim.off(this.TUICore.TIM.EVENT.MESSAGE_REVOKED,this.handleMessageRevoked),this.TUICore.tim.off(this.TUICore.TIM.EVENT.MESSAGE_READ_BY_PEER,this.handleMessageReadByPeer),this.TUICore.tim.off(this.TUICore.TIM.EVENT.GROUP_LIST_UPDATED,this.handleGroupListUpdated),this.TUICore.tim.off(this.TUICore.TIM.EVENT.MESSAGE_READ_RECEIPT_RECEIVED,this.handleMessageReadReceiptReceived)}handleMessageReceived(e){var t;null===e||void 0===e||null===(t=e.data)||void 0===t||a()(t).call(t,e=>{var t;(null===e||void 0===e?void 0:e.conversationID)===(null===this||void 0===this||null===(t=this.store)||void 0===t||null===(t=t.conversation)||void 0===t?void 0:t.conversationID)&&(this.currentStore.messageList=[...this.currentStore.messageList,e]),L["c"].getInstance().notify(e)})}handleMessageModified(e){const t=this.currentStore.messageList;this.currentStore.messageList=[],this.currentStore.messageList=t}handleMessageRevoked(e){const t=this.currentStore.messageList;this.currentStore.messageList=[],this.currentStore.messageList=t}handleMessageReadByPeer(e){const t=this.currentStore.messageList;this.currentStore.messageList=[],this.currentStore.messageList=t}handleGroupListUpdated(e){var t;null===e||void 0===e||l()(t=e.data).call(t,e=>{var t;return(null===e||void 0===e?void 0:e.groupID)===(null===this||void 0===this||null===(t=this.store)||void 0===t||null===(t=t.conversation)||void 0===t||null===(t=t.groupProfile)||void 0===t?void 0:t.groupID)&&(this.store.conversation.groupProfile=e,this.currentStore.conversation={},this.currentStore.conversation=this.store.conversation),e})}handleMessageReadReceiptReceived(e){const t=this.currentStore.messageList;this.currentStore.messageList=[],this.currentStore.messageList=t}handleMessageOptions(e,t,n,o){var a,i,r,s;const l={to:"",conversationType:(null===o||void 0===o?void 0:o.type)||this.store.conversation.type,payload:e,needReadReceipt:this.currentStore.needReadReceipt};switch(this.currentStore.needTyping&&(l.cloudCustomData={messageFeature:{needTyping:1,version:1}},l.cloudCustomData=h()(l.cloudCustomData)),"file"===t&&n&&(l.onProgress=n),l.conversationType){case this.TUICore.TIM.TYPES.CONV_C2C:l.to=(null===o||void 0===o||null===(a=o.userProfile)||void 0===a?void 0:a.userID)||(null===(i=this.store.conversation)||void 0===i||null===(i=i.userProfile)||void 0===i?void 0:i.userID)||"";break;case this.TUICore.TIM.TYPES.CONV_GROUP:l.to=(null===o||void 0===o||null===(r=o.groupProfile)||void 0===r?void 0:r.groupID)||(null===(s=this.store.conversation)||void 0===s||null===(s=s.groupProfile)||void 0===s?void 0:s.groupID)||"";break;default:break}return l}handlePromiseCallback(e){return new f.a((t,n)=>{const o={TUIName:"TUIChat",callback:()=>{e&&e(t,n)}};this.TUICore.setAwaitFunc(o.TUIName,o.callback)})}handlePromiseCallbackRetry(e,t=[],n=function(){return!1}){return new f.a((o,a)=>{let i=0;function r(){i++,e().then(o).catch(e=>{i>t.length||n&&n(e)?a(e):O()(r,t[i-1])})}r()})}handleUploadProgress(e,t){var n;l()(n=this.currentStore.messageList).call(n,n=>(n.ID===t.ID&&(n.progress=e),n))}sendFaceMessage(e){return this.handlePromiseCallback(async(t,n)=>{try{var o;const n=this.handleMessageOptions(e,"face"),a=this.TUICore.tim.createFaceMessage(n);this.currentStore.messageList.push(a);const i=await this.TUICore.tim.sendMessage(a);this.currentStore.messageList=l()(o=this.currentStore.messageList).call(o,e=>e.ID===i.data.message.ID?i.data.message:e),t(i)}catch(a){n(a);const e=this.currentStore.messageList;this.currentStore.messageList=[],this.currentStore.messageList=e}})}sendImageMessage(e){return this.handlePromiseCallback(async(t,n)=>{try{var o;const n=this.handleMessageOptions({file:e},"file",e=>{this.handleUploadProgress(e,a)}),a=this.TUICore.tim.createImageMessage(n);a.progress=.01,this.currentStore.messageList.push(a);const i=await this.TUICore.tim.sendMessage(a);this.currentStore.messageList=l()(o=this.currentStore.messageList).call(o,e=>e.ID===i.data.message.ID?i.data.message:e),t(i)}catch(a){n(a);const e=this.currentStore.messageList;this.currentStore.messageList=[],this.currentStore.messageList=e}})}sendVideoMessage(e){return this.handlePromiseCallback(async(t,n)=>{try{var o;const n=this.handleMessageOptions({file:e},"file",e=>{this.handleUploadProgress(e,a)}),a=this.TUICore.tim.createVideoMessage(n);a.progress=.01,this.currentStore.messageList.push(a);const i=await this.TUICore.tim.sendMessage(a);this.currentStore.messageList=l()(o=this.currentStore.messageList).call(o,e=>e.ID===i.data.message.ID?i.data.message:e),t(i)}catch(a){n(a);const e=this.currentStore.messageList;this.currentStore.messageList=[],this.currentStore.messageList=e}})}sendFileMessage(e){return this.handlePromiseCallback(async(t,n)=>{try{var o;const n=this.handleMessageOptions({file:e},"file",e=>{this.handleUploadProgress(e,a)}),a=this.TUICore.tim.createFileMessage(n);a.progress=.01,this.currentStore.messageList.push(a);const i=await this.TUICore.tim.sendMessage(a);this.currentStore.messageList=l()(o=this.currentStore.messageList).call(o,e=>e.ID===i.data.message.ID?i.data.message:e),t(i)}catch(a){n(a);const e=this.currentStore.messageList;this.currentStore.messageList=[],this.currentStore.messageList=e}})}sendCustomMessage(e){return this.handlePromiseCallback(async(t,n)=>{try{var o;e.data=h()(e.data);const n=this.handleMessageOptions(e,"custom"),a=this.TUICore.tim.createCustomMessage(n);this.currentStore.messageList.push(a);const i=await this.TUICore.tim.sendMessage(a);this.currentStore.messageList=l()(o=this.currentStore.messageList).call(o,e=>e.ID===i.data.message.ID?i.data.message:e),t(i)}catch(a){n(a);const e=this.currentStore.messageList;this.currentStore.messageList=[],this.currentStore.messageList=e}})}sendLocationMessage(e){return this.handlePromiseCallback(async(t,n)=>{try{const n=this.handleMessageOptions(e,"location"),o=this.TUICore.tim.createLocationMessage(n);this.currentStore.messageList.push(o);const a=await this.TUICore.tim.sendMessage(o);t(a)}catch(o){n(o);const e=this.currentStore.messageList;this.currentStore.messageList=[],this.currentStore.messageList=e}})}forwardMessage(e,t){return this.handlePromiseCallback(async(n,o)=>{try{const o=this.handleMessageOptions(e,"forward",{},t),a=this.TUICore.tim.createForwardMessage(o),i=await this.TUICore.tim.sendMessage(a);this.store.conversation.conversationID===i.data.message.conversationID&&this.currentStore.messageList.push(i.data.message),n(i)}catch(a){o(a);const e=this.currentStore.messageList;this.currentStore.messageList=[],this.currentStore.messageList=e}})}async sendMessageReadReceipt(e){return this.handlePromiseCallback(async(t,n)=>{try{const n=await this.TUICore.tim.sendMessageReadReceipt(e);t(n)}catch(o){n(o)}})}async getMessageReadReceiptList(e){return this.handlePromiseCallback(async(t,n)=>{try{const n=await this.TUICore.tim.getMessageReadReceiptList(e);t(n)}catch(o){n(o)}})}async getMessageList(e,t){return this.handlePromiseCallback(async(n,o)=>{try{const o=await this.TUICore.tim.getMessageList(e);o.data.messageList.length&&await this.getMessageReadReceiptList(o.data.messageList),this.currentStore.messageList=t?[...o.data.messageList,...this.currentStore.messageList]:o.data.messageList,this.currentStore.nextReqMessageID=o.data.nextReqMessageID,this.currentStore.isCompleted=o.data.isCompleted,n(o)}catch(a){o(a)}})}async getHistoryMessageList(){const e={conversationID:this.currentStore.conversation.conversationID,nextReqMessageID:this.currentStore.nextReqMessageID,count:15};this.currentStore.isCompleted||this.getMessageList(e,!0)}sendTextMessage(e,t){return this.handlePromiseCallback(async(n,o)=>{try{var a;const o=this.handleMessageOptions({text:e},"text");let i={};if(o.cloudCustomData)try{i=Object(D["a"])(o.cloudCustomData)}catch{i={}}const r=h()(t),s=m()(o,{cloudCustomData:r,...i}),c=this.TUICore.tim.createTextMessage(s);this.currentStore.messageList.push(c);const d=await this.TUICore.tim.sendMessage(c);this.currentStore.messageList=l()(a=this.currentStore.messageList).call(a,e=>e.ID===d.data.message.ID?d.data.message:e),n(d)}catch(i){o(i);const e=this.currentStore.messageList;this.currentStore.messageList=[],this.currentStore.messageList=e}})}sendTypingMessage(e){return this.handlePromiseCallback(async(t,n)=>{try{e.data=h()(e.data);const n=this.handleMessageOptions(e,"custom"),o=this.TUICore.tim.createCustomMessage(n),a=await this.TUICore.tim.sendMessage(o,{onlineUserOnly:!0});t(a)}catch(o){n(o);const e=this.currentStore.messageList;this.currentStore.messageList=[],this.currentStore.messageList=e}})}sendTextAtMessage(e){return this.handlePromiseCallback(async(t,n)=>{try{var o;const n=this.handleMessageOptions(e,"text"),a=this.TUICore.tim.createTextAtMessage(n);this.currentStore.messageList.push(a);const i=await this.TUICore.tim.sendMessage(a);this.currentStore.messageList=l()(o=this.currentStore.messageList).call(o,e=>e.ID===i.data.message.ID?i.data.message:e),t(i)}catch(a){n(a);const e=this.currentStore.messageList;this.currentStore.messageList=[],this.currentStore.messageList=e}})}sendMergerMessage(e){return this.handlePromiseCallback(async(t,n)=>{try{var o;const n=this.handleMessageOptions(e,"merger"),a=this.TUICore.tim.createMergerMessage(n);this.currentStore.messageList.push(a);const i=await this.TUICore.tim.sendMessage(a);this.currentStore.messageList=l()(o=this.currentStore.messageList).call(o,e=>e.ID===i.data.message.ID?i.data.message:e),t(i)}catch(a){n(a);const e=this.currentStore.messageList;this.currentStore.messageList=[],this.currentStore.messageList=e}})}revokeMessage(e){return this.handlePromiseCallback(async(t,n)=>{try{var o;const n=await this.TUICore.tim.revokeMessage(e),a=Object(D["a"])(null===e||void 0===e?void 0:e.cloudCustomData);null!==a&&void 0!==a&&null!==(o=a.messageReply)&&void 0!==o&&o.messageRootID&&await this.revokeReplyMessage(e),t(n)}catch(a){n(a);const e=this.currentStore.messageList;this.currentStore.messageList=[],this.currentStore.messageList=e}})}resendMessage(e){return this.handlePromiseCallback(async(t,n)=>{try{var o;const n=await this.TUICore.tim.resendMessage(e);this.currentStore.messageList=y()(o=this.currentStore.messageList).call(o,t=>t.ID!==e.ID),this.currentStore.messageList.push(n.data.message),t(n)}catch(a){n(a)}})}deleteMessage(e){return this.handlePromiseCallback(async(t,n)=>{try{const n=await this.TUICore.tim.deleteMessage(e);t(n);const o=this.currentStore.messageList;this.currentStore.messageList=[],this.currentStore.messageList=o}catch(o){n(o)}})}modifyMessage(e){return this.handlePromiseCallback(async(t,n)=>{try{const n=await this.TUICore.tim.modifyMessage(e);t(n)}catch(o){const e=null===o||void 0===o?void 0:o.code,t=null===o||void 0===o?void 0:o.data;2480===e?console.warn("MODIFY_MESSAGE_ERROR","修改消息发生冲突,data.message 是最新的消息","data.message:",null===t||void 0===t?void 0:t.message):2481===e?console.warn("MODIFY_MESSAGE_ERROR","不支持修改直播群消息"):20026===e&&console.warn("MODIFY_MESSAGE_ERROR","消息不存在"),n(o)}})}replyMessage(e,t){const n=()=>this.handlePromiseCallback(async(n,o)=>{try{var a,i,r,s;const o={messageAbstract:null===e||void 0===e||null===(a=e.payload)||void 0===a?void 0:a.text,messageSender:null===e||void 0===e?void 0:e.from,messageID:null===e||void 0===e?void 0:e.ID,messageType:null===e||void 0===e?void 0:e.type,messageTime:null===e||void 0===e?void 0:e.time,messageSequence:null===e||void 0===e?void 0:e.sequence,version:1};if(!t){var l,c;const n=Object(D["a"])(null===e||void 0===e?void 0:e.cloudCustomData),o=null===n||void 0===n||null===(l=n.messageReply)||void 0===l?void 0:l.messageRootID;t=await(null===this||void 0===this||null===(c=this.currentStore)||void 0===c||null===(c=c.messageList)||void 0===c?void 0:C()(c).call(c,e=>(null===e||void 0===e?void 0:e.ID)===o))||this.findMessage(o)}const u=null!==(i=t)&&void 0!==i&&i.cloudCustomData?Object(D["a"])(null===(r=t)||void 0===r?void 0:r.cloudCustomData):{messageReplies:{}};var d;if(null!==u&&void 0!==u&&null!==(s=u.messageReplies)&&void 0!==s&&s.replies)u.messageReplies.replies=[...null===u||void 0===u||null===(d=u.messageReplies)||void 0===d?void 0:d.replies,o];else u.messageReplies={replies:[o],version:1};t.cloudCustomData=h()(u);const p=this.modifyMessage(t);n(p)}catch(u){o(u)}}),o=function(e){return!e||2480!==(null===e||void 0===e?void 0:e.code)};return this.handlePromiseCallbackRetry(n,[500,1e3,3e3],o)}revokeReplyMessage(e,t){const n=()=>this.handlePromiseCallback(async(n,o)=>{try{var a,i,r;if(!t){var s,l;const n=Object(D["a"])(null===e||void 0===e?void 0:e.cloudCustomData),o=null===n||void 0===n||null===(s=n.messageReply)||void 0===s?void 0:s.messageRootID;t=await(null===this||void 0===this||null===(l=this.currentStore)||void 0===l||null===(l=l.messageList)||void 0===l?void 0:C()(l).call(l,e=>(null===e||void 0===e?void 0:e.ID)===o))||this.findMessage(o)}const o=null!==(a=t)&&void 0!==a&&a.cloudCustomData?Object(D["a"])(null===(i=t)||void 0===i?void 0:i.cloudCustomData):{messageReplies:{}};if(null!==o&&void 0!==o&&null!==(r=o.messageReplies)&&void 0!==r&&r.replies){var c,d;const t=k()(c=o.messageReplies.replies).call(c,t=>(null===t||void 0===t?void 0:t.messageID)===(null===e||void 0===e?void 0:e.ID));null===o||void 0===o||null===(d=o.messageReplies)||void 0===d||null===(d=d.replies)||void 0===d||_()(d).call(d,t,1)}t.cloudCustomData=h()(o);const u=this.modifyMessage(t);n(u)}catch(u){o(u)}}),o=function(e){return!e||2480!==(null===e||void 0===e?void 0:e.code)};return this.handlePromiseCallbackRetry(n,[500,1e3,3e3],o)}emojiReact(e,t){const n=()=>this.handlePromiseCallback(async(n,o)=>{try{var a,i,r,s,l,c,d;e&&null!==(a=e)&&void 0!==a&&a.ID&&t||o();const g=null===(i=this.TUICore)||void 0===i||null===(i=i.TUIServer)||void 0===i||null===(i=i.TUIProfile)||void 0===i||null===(i=i.store)||void 0===i||null===(i=i.profile)||void 0===i?void 0:i.userID;e=await(null===this||void 0===this||null===(r=this.currentStore)||void 0===r||null===(r=r.messageList)||void 0===r?void 0:C()(r).call(r,t=>{var n;return(null===t||void 0===t?void 0:t.ID)===(null===(n=e)||void 0===n?void 0:n.ID)}))||this.findMessage(null===(s=e)||void 0===s?void 0:s.ID);const O=null!==(l=e)&&void 0!==l&&l.cloudCustomData?Object(D["a"])(null===(c=e)||void 0===c?void 0:c.cloudCustomData):{messageReact:{}};var u;if(null!==O&&void 0!==O&&null!==(d=O.messageReact)&&void 0!==d&&d.reacts)if(null!==O&&void 0!==O&&null!==(u=O.messageReact)&&void 0!==u&&u.reacts[t]){var p;const e=null===O||void 0===O||null===(p=O.messageReact)||void 0===p||null===(p=p.reacts[t])||void 0===p?void 0:T()(p).call(p,g);var m,b,v,f;if(-1===e)null===O||void 0===O||null===(m=O.messageReact)||void 0===m||null===(m=m.reacts[t])||void 0===m||m.push(g);else if(null===O||void 0===O||null===(b=O.messageReact)||void 0===b||null===(b=b.reacts[t])||void 0===b||_()(b).call(b,e,1),0===(null===O||void 0===O||null===(v=O.messageReact)||void 0===v||null===(v=v.reacts[t])||void 0===v?void 0:v.length))null===O||void 0===O||null===(f=O.messageReact)||void 0===f||delete f.reacts[t]}else O.messageReact.reacts[t]=[g];else O.messageReact={reacts:{},version:1},O.messageReact.reacts[t]=[g];e.cloudCustomData=h()(O);const j=this.modifyMessage(e);n(j)}catch(g){o(g)}}),o=function(e){return!e||2480!==(null===e||void 0===e?void 0:e.code)};return this.handlePromiseCallbackRetry(n,[500,1e3,3e3],o)}findMessage(e){return this.handlePromiseCallback(async(t,n)=>{try{const n=await this.TUICore.tim.findMessage(e);t(n)}catch(o){n(o)}})}getGroupProfile(e){return this.handlePromiseCallback(async(t,n)=>{try{const n=await this.TUICore.tim.getGroupProfile(e);this.currentStore.conversation.groupProfile=n.data.group,t(n)}catch(o){n(o)}})}getGroupMemberProfile(e){return this.handlePromiseCallback(async(t,n)=>{try{const n=await this.TUICore.tim.getGroupMemberProfile(e);t(n)}catch(o){n(o)}})}handleGroupApplication(e){return this.handlePromiseCallback(async(t,n)=>{try{const n=await this.TUICore.tim.handleGroupApplication(e);t(n)}catch(o){n(o)}})}async getUserProfile(e){return this.handlePromiseCallback(async(t,n)=>{try{const n=await this.TUICore.tim.getUserProfile({userIDList:e});t(n)}catch(o){n(o)}})}async getFriendList(){return this.handlePromiseCallback(async(e,t)=>{try{const t=await this.TUICore.tim.getFriendList();e(t)}catch(n){t(n)}})}async checkFriend(e,t){return this.handlePromiseCallback(async(n,o)=>{try{var a;const o=await this.TUICore.tim.checkFriend({userIDList:[e],type:t}),i=null===o||void 0===o||null===(a=o.data)||void 0===a||null===(a=a.successUserIDList[0])||void 0===a?void 0:a.relation;n(i)}catch(i){o(i)}})}async getGroupReadMemberList(e,t="",n=15){return this.handlePromiseCallback(async(o,a)=>{try{const a=await this.TUICore.tim.getGroupMessageReadMemberList({message:e,filter:0,cursor:t,count:n});o(a)}catch(i){a(i)}})}async getGroupUnreadMemberList(e,t="",n=15){return this.handlePromiseCallback(async(o,a)=>{try{const a=await this.TUICore.tim.getGroupMessageReadMemberList({message:e,filter:1,cursor:t,count:n});o(a)}catch(i){a(i)}})}async handleMessageSentByMeToView(e){var t;(null===e||void 0===e?void 0:e.conversationID)===(null===this||void 0===this||null===(t=this.store)||void 0===t||null===(t=t.conversation)||void 0===t?void 0:t.conversationID)&&this.currentStore.messageList.push(e)}bind(e){return this.currentStore=e}}var U=n("7a23");const B={class:"TUIChat-main",style:{"border-top":"1px solid #f2f2f2"}},M={key:0,style:{width:"100%",height:"100%",display:"flex","justify-content":"center","align-items":"center"}},V={style:{padding:"0 0 5px 5px","font-size":"14px","text-align":"left"}},R={style:{color:"#333333","font-weight":"bold"}},x={style:{"margin-left":"10px",color:"#333333"}},P={style:{display:"flex"}},G={style:{padding:"8px","background-color":"#f2f2f2","border-radius":"10px"}},F=["id"],H={class:"to-bottom-tip-cont"},z={class:"func",id:"func"},K={class:"func-main",style:{display:"flex",position:"relative"}},Y={key:0,style:{"z-index":"100",position:"absolute",width:"100%",height:"100%",left:"0",top:"0",opacity:"0"}},W={style:{display:"flex","align-items":"center"}},$={class:"mask-main"},q={key:1,class:"TUIChat"},Q={class:"TUIChat-header"};function X(e,t,n,o,a,i){var r,s,l;const c=Object(U["resolveComponent"])("TypingHeader"),d=Object(U["resolveComponent"])("MessageText"),u=Object(U["resolveComponent"])("MessageImage"),p=Object(U["resolveComponent"])("MessageVideo"),m=Object(U["resolveComponent"])("MessageAudio"),b=Object(U["resolveComponent"])("MessageFile"),h=Object(U["resolveComponent"])("MessageFace"),v=Object(U["resolveComponent"])("MessageLocation"),f=Object(U["resolveComponent"])("MessageCustom"),g=Object(U["resolveComponent"])("MessageMerger"),O=Object(U["resolveComponent"])("MessageTimestamp"),j=Object(U["resolveComponent"])("MessageItem"),y=Object(U["resolveComponent"])("imagePreviewer"),I=Object(U["resolveComponent"])("MessageInput"),C=Object(U["resolveComponent"])("MessageSystem");return"chat"===e.conversationType||"0"==e.hrefParams.getMessageList?(Object(U["openBlock"])(),Object(U["createElementBlock"])("div",{key:0,class:Object(U["normalizeClass"])(["TUIChat",[e.env.isH5?"TUIChat-H5":""]])},["0"!=e.hrefParams.getMessageList?(Object(U["openBlock"])(),Object(U["createElementBlock"])("header",{key:0,class:Object(U["normalizeClass"])(["TUIChat-header",[e.env.isH5?"h5-header":""]])},[Object(U["createElementVNode"])("div",null,[e.env.isH5?(Object(U["openBlock"])(),Object(U["createElementBlock"])("i",{key:0,class:"icon icon-back",onClick:t[0]||(t[0]=(...t)=>e.back&&e.back(...t))})):Object(U["createCommentVNode"])("",!0)]),Object(U["createVNode"])(c,{upTabIndex:e.upTabIndex,needTyping:e.needTyping,conversation:e.conversation,messageList:e.messageList,isDisabled:e.getDisabled(e.conversation),ref:"typingRef"},null,8,["upTabIndex","needTyping","conversation","messageList","isDisabled"]),Object(U["createElementVNode"])("aside",{class:Object(U["normalizeClass"])(["setting",[e.env.isH5?"h5-setting":""]])},["expert"!==e.hrefParams.isSpecialized||!e.getDisabled(e.conversation)||null!==(r=e.conversation)&&void 0!==r&&r.isEnd?Object(U["createCommentVNode"])("",!0):(Object(U["openBlock"])(),Object(U["createElementBlock"])("span",{key:0,style:{color:"#147aff",cursor:"pointer","font-size":"15px","margin-right":"5px"},class:Object(U["normalizeClass"])([e.env.isH5?"h5-span":""]),onClick:t[1]||(t[1]=t=>e.endConsult(e.conversation))}," 结束咨询 ",2))],2)],2)):Object(U["createCommentVNode"])("",!0),Object(U["createElementVNode"])("div",B,[Object(U["createCommentVNode"])("",!0),Object(U["createElementVNode"])("ul",{class:"TUI-message-list",onClick:t[5]||(t[5]=t=>e.dialogID=""),ref:"messageEle",id:"messageEle"},[e.isCompleted||"0"==e.hrefParams.getMessageList?Object(U["createCommentVNode"])("",!0):(Object(U["openBlock"])(),Object(U["createElementBlock"])("p",{key:0,class:"message-more",onClick:t[3]||(t[3]=(...t)=>e.getHistoryMessageList&&e.getHistoryMessageList(...t))},Object(U["toDisplayString"])(e.$t("TUIChat.查看更多")),1)),"0"==e.hrefParams.getMessageList?(Object(U["openBlock"])(),Object(U["createElementBlock"])(U["Fragment"],{key:1},[0===e.messagesNew.length?(Object(U["openBlock"])(),Object(U["createElementBlock"])("div",M,Object(U["toDisplayString"])(e.messagesIsNull),1)):Object(U["createCommentVNode"])("",!0),(Object(U["openBlock"])(!0),Object(U["createElementBlock"])(U["Fragment"],null,Object(U["renderList"])(e.messagesNew,(t,n)=>(Object(U["openBlock"])(),Object(U["createElementBlock"])("li",{key:n},[Object(U["createElementVNode"])("div",V,[Object(U["createElementVNode"])("span",R,Object(U["toDisplayString"])(t.fromAccountName),1),Object(U["createElementVNode"])("span",x,Object(U["toDisplayString"])(t.sendtime),1)]),Object(U["createElementVNode"])("div",P,[Object(U["createElementVNode"])("div",G,[t.contenttype===e.types.MSG_TEXT?(Object(U["openBlock"])(),Object(U["createBlock"])(d,{key:0,data:e.handleTextMessageShowContext(t)},null,8,["data"])):Object(U["createCommentVNode"])("",!0),t.contenttype===e.types.MSG_IMAGE?(Object(U["openBlock"])(),Object(U["createBlock"])(u,{key:1,isH5:e.env.isH5,data:e.handleImageMessageShowContext(t),onUploading:e.handleUploadingImageOrVideo,onPreviewImage:e.previewImage},null,8,["isH5","data","onUploading","onPreviewImage"])):Object(U["createCommentVNode"])("",!0),t.contenttype===e.types.MSG_VIDEO?(Object(U["openBlock"])(),Object(U["createBlock"])(p,{key:2,isH5:e.env.isH5,data:e.handleVideoMessageShowContext(t),onUploading:e.uploading},null,8,["isH5","data","onUploading"])):Object(U["createCommentVNode"])("",!0),t.contenttype===e.types.MSG_AUDIO?(Object(U["openBlock"])(),Object(U["createBlock"])(m,{key:3,data:e.handleAudioMessageShowContext(t)},null,8,["data"])):Object(U["createCommentVNode"])("",!0),t.contenttype===e.types.MSG_FILE?(Object(U["openBlock"])(),Object(U["createBlock"])(b,{key:4,data:e.handleFileMessageShowContext(t)},null,8,["data"])):Object(U["createCommentVNode"])("",!0),t.contenttype===e.types.MSG_FACE?(Object(U["openBlock"])(),Object(U["createBlock"])(h,{key:5,data:e.handleFaceMessageShowContext(t),isH5:e.env.isH5},null,8,["data","isH5"])):Object(U["createCommentVNode"])("",!0),t.contenttype===e.types.MSG_LOCATION?(Object(U["openBlock"])(),Object(U["createBlock"])(v,{key:6,data:e.handleLocationMessageShowContext(t)},null,8,["data"])):Object(U["createCommentVNode"])("",!0),t.contenttype===e.types.MSG_CUSTOM?(Object(U["openBlock"])(),Object(U["createBlock"])(f,{key:7,data:e.handleCustomMessageShowContext(t)},null,8,["data"])):Object(U["createCommentVNode"])("",!0),t.contenttype===e.types.MSG_MERGER?(Object(U["openBlock"])(),Object(U["createBlock"])(g,{key:8,data:e.handleMergerMessageShowContext(t)},null,8,["data"])):Object(U["createCommentVNode"])("",!0)])])]))),128))],64)):(Object(U["openBlock"])(!0),Object(U["createElementBlock"])(U["Fragment"],{key:2},Object(U["renderList"])(e.messages,(t,n)=>{var o;return Object(U["openBlock"])(),Object(U["createElementBlock"])("li",{key:n,id:null===t||void 0===t?void 0:t.ID,ref_for:!0,ref:"messageAimID"},[Object(U["createVNode"])(O,{currTime:null===t||void 0===t?void 0:t.time,prevTime:n>0?null===(o=e.messages[n-1])||void 0===o?void 0:o.time:0},null,8,["currTime","prevTime"]),Object(U["createVNode"])(j,{message:e.getSrc(t),env:e.env,types:e.types,displayGroupMessageReadReceipt:e.needGroupReceipt,displayEmojiReactions:e.isNeedEmojiReact,messageList:e.messages,onHandleEditor:e.handleEditor,onShowDialog:e.showDialog,onUploading:e.handleUploadingImageOrVideo,onJumpID:e.jumpID,onResendMessage:e.resendMessage},null,8,["message","env","types","displayGroupMessageReadReceipt","displayEmojiReactions","messageList","onHandleEditor","onShowDialog","onUploading","onJumpID","onResendMessage"])],8,F)}),128)),e.needToBottom?(Object(U["openBlock"])(),Object(U["createElementBlock"])("div",{key:3,class:"to-bottom-tip",onClick:t[4]||(t[4]=t=>e.scrollToTarget("bottom"))},[t[11]||(t[11]=Object(U["createElementVNode"])("i",{class:"icon icon-bottom-double"},null,-1)),Object(U["createElementVNode"])("div",H,[Object(U["createElementVNode"])("span",null,Object(U["toDisplayString"])(e.toBottomTipCont),1)])])):Object(U["createCommentVNode"])("",!0)],512),e.showImagePreview?(Object(U["openBlock"])(),Object(U["createBlock"])(y,{key:1,currentImage:e.currentImagePreview,imageList:"0"==e.hrefParams.getMessageList?e.imageListNew:e.imageList,onClose:t[6]||(t[6]=t=>e.showImagePreview=!1)},null,8,["currentImage","imageList"])):Object(U["createCommentVNode"])("",!0)]),("expert"!==e.hrefParams.isSpecialized&&e.getDisabled(e.conversation)||"expert"===e.hrefParams.isSpecialized&&e.getDisabled(e.conversation)&&(null===(s=e.conversation)||void 0===s||!s.isEnd))&&"0"!=e.hrefParams.getMessageList?(Object(U["openBlock"])(),Object(U["createElementBlock"])("div",{key:1,class:Object(U["normalizeClass"])(["TUIChat-footer",[e.isMute&&"disabled",e.env.isH5&&"TUIChat-H5-footer"]])},[Object(U["createElementVNode"])("div",z,[Object(U["createElementVNode"])("main",K,[e.getDisabled(e.conversation)?Object(U["createCommentVNode"])("",!0):(Object(U["openBlock"])(),Object(U["createElementBlock"])("div",Y)),(Object(U["openBlock"])(!0),Object(U["createElementBlock"])(U["Fragment"],null,Object(U["renderList"])(e.pluginComponentList,(t,n)=>(Object(U["openBlock"])(),Object(U["createBlock"])(Object(U["resolveDynamicComponent"])(t),{key:n,isMute:e.isMute,isH5:e.env.isH5,conversation:e.conversation,parentID:"func",onSend:e.handleSend},null,40,["isMute","isH5","conversation","onSend"]))),128)),Object(U["createElementVNode"])("div",W,["false"===e.hrefParams.isSpecialized?(Object(U["openBlock"])(),Object(U["createElementBlock"])("span",{key:0,onClick:t[7]||(t[7]=t=>e.forHelpDetail(e.conversation)),style:{margin:"4px 0 0 10px",cursor:"pointer",color:"#0093fe","z-index":"100"}}," 应急详情 ")):Object(U["createCommentVNode"])("",!0)])])]),Object(U["createVNode"])(I,{ref:"messageInput",isDisabled:e.getDisabled(e.conversation),conversation:e.conversation,memberList:e.allMemberList,env:e.env,isGroup:null===(l=e.userInfo)||void 0===l?void 0:l.isGroup,replyOrReference:e.reference,isMute:!1,muteText:e.muteText,placeholder:e.$t("TUIChat.请输入消息"),onSendMessage:e.reportMessageSend,onResetReplyOrReference:e.resetReplyOrReference,onOnTyping:e.handleTyping},null,8,["isDisabled","conversation","memberList","env","isGroup","replyOrReference","muteText","placeholder","onSendMessage","onResetReplyOrReference","onOnTyping"])],2)):Object(U["createCommentVNode"])("",!0),Object(U["withDirectives"])(Object(U["createElementVNode"])("div",{class:"mask",onClick:t[10]||(t[10]=t=>e.showResend=!1)},[Object(U["createElementVNode"])("div",$,[Object(U["createElementVNode"])("header",null,Object(U["toDisplayString"])(e.$t("TUIChat.确认重发该消息?")),1),Object(U["createElementVNode"])("footer",null,[Object(U["createElementVNode"])("p",{onClick:t[8]||(t[8]=t=>e.showResend=!1)},Object(U["toDisplayString"])(e.$t("TUIChat.取消")),1),t[12]||(t[12]=Object(U["createElementVNode"])("i",null,null,-1)),Object(U["createElementVNode"])("p",{onClick:t[9]||(t[9]=(...t)=>e.submit&&e.submit(...t))},Object(U["toDisplayString"])(e.$t("TUIChat.确定")),1)])])],512),[[U["vShow"],e.showResend]])],2)):"system"===e.conversationType?(Object(U["openBlock"])(),Object(U["createElementBlock"])("div",q,[Object(U["createElementVNode"])("header",Q,[Object(U["createElementVNode"])("h1",null,Object(U["toDisplayString"])(e.conversationName),1)]),Object(U["createVNode"])(C,{data:e.messages,types:e.types,onApplication:e.handleApplication},null,8,["data","types","onApplication"])])):e.slotDefault?Object(U["renderSlot"])(e.$slots,"default",{key:2},void 0,!0):Object(U["createCommentVNode"])("",!0)}n("1236");var Z=n("045d"),J=n.n(Z),ee=n("9a73"),te=n.n(ee);const ne={key:0,class:"text-box"},oe=["src"];function ae(e,t,n,o,a,i){return Object(U["openBlock"])(!0),Object(U["createElementBlock"])(U["Fragment"],null,Object(U["renderList"])(e.data.text,(e,t)=>(Object(U["openBlock"])(),Object(U["createElementBlock"])(U["Fragment"],{key:t},["text"===e.name?(Object(U["openBlock"])(),Object(U["createElementBlock"])("span",ne,Object(U["toDisplayString"])(e.text),1)):"img"===e.name?(Object(U["openBlock"])(),Object(U["createElementBlock"])("img",{key:1,class:"text-img",src:e.src},null,8,oe)):Object(U["createCommentVNode"])("",!0)],64))),128)}var ie=Object(U["defineComponent"])({props:{data:{type:Object,default:()=>({})}},setup(e,t){const n=Object(U["reactive"])({data:{}});return Object(U["watchEffect"])(()=>{n.data=e.data}),{...Object(U["toRefs"])(n)}}}),re=(n("05da"),n("6b0d")),se=n.n(re);const le=se()(ie,[["render",ae],["__scopeId","data-v-06e49808"]]);var ce=le,de=n("622e"),ue=n.n(de),pe=n("e435"),me=n.n(pe);const be=["src","width","height"],he={key:0,class:"progress"},ve=["value"],fe={key:0},ge=["src"],Oe={key:0,class:"dialog-box-h5-footer"};function je(e,t,n,o,a,i){var r;return Object(U["openBlock"])(),Object(U["createElementBlock"])("div",{class:"message-image",onClick:t[6]||(t[6]=Object(U["withModifiers"])((...t)=>e.toggleShow&&e.toggleShow(...t),["self"])),ref:"skeleton"},[Object(U["createElementVNode"])("img",{class:"message-img",src:-1===T()(r=e.data.url).call(r,"http")?`${e.hrefParams.urlF.replace("lol","://")}/file/show/${e.data.url}`:e.data.url,width:e.data.width,height:e.data.height,style:Object(U["normalizeStyle"])(e.isH5?{maxWidth:e.data.width?e.data.width+"px":"calc(100vw - 180px)",maxHeight:e.data.height?e.data.height+"px":"calc(100vw - 180px)"}:{}),alt:""},null,12,be),e.data.progress?(Object(U["openBlock"])(),Object(U["createElementBlock"])("div",he,[Object(U["createElementVNode"])("progress",{value:e.data.progress,max:"1"},null,8,ve)])):Object(U["createCommentVNode"])("",!0),e.show?(Object(U["openBlock"])(),Object(U["createElementBlock"])("div",{key:1,class:"dialog",onClick:t[5]||(t[5]=Object(U["withModifiers"])((...t)=>e.toggleShow&&e.toggleShow(...t),["self"]))},[e.isH5?Object(U["createCommentVNode"])("",!0):(Object(U["openBlock"])(),Object(U["createElementBlock"])("header",fe,[Object(U["createElementVNode"])("i",{class:"icon icon-close",onClick:t[0]||(t[0]=Object(U["withModifiers"])((...t)=>e.toggleShow&&e.toggleShow(...t),["stop"]))})])),Object(U["createElementVNode"])("div",{class:Object(U["normalizeClass"])(["dialog-box",[e.isH5?"dialog-box-h5":""]]),onClick:t[4]||(t[4]=Object(U["withModifiers"])((...t)=>e.toggleShow&&e.toggleShow(...t),["self"]))},[Object(U["createElementVNode"])("img",{class:Object(U["normalizeClass"])([e.isWidth?"isWidth":"isHeight"]),src:e.data.message.payload.imageInfoArray[0].url,onClick:t[1]||(t[1]=Object(U["withModifiers"])((...t)=>e.toggleShow&&e.toggleShow(...t),["self"]))},null,10,ge),e.isH5?(Object(U["openBlock"])(),Object(U["createElementBlock"])("div",Oe,[Object(U["createElementVNode"])("p",{onClick:t[2]||(t[2]=(...t)=>e.toggleShow&&e.toggleShow(...t))},[...t[7]||(t[7]=[Object(U["createElementVNode"])("img",{src:ue.a},null,-1)])]),Object(U["createElementVNode"])("p",{onClick:t[3]||(t[3]=Object(U["withModifiers"])(t=>e.downloadImage(e.data.message),["stop"]))},[...t[8]||(t[8]=[Object(U["createElementVNode"])("img",{src:me.a},null,-1)])])])):Object(U["createCommentVNode"])("",!0)],2)])):Object(U["createCommentVNode"])("",!0)],512)}var ye=n("05f2"),Ie=n.n(ye),Ce=n("48d5"),Ee=Object(U["defineComponent"])({methods:{},props:{data:{type:Object,default:()=>({})},isH5:{type:Boolean,default:!1}},emits:["uploading","previewImage"],setup(e,t){const n=Object(U["reactive"])({data:{progress:0},show:!1}),o=Object(U["ref"])(),a=Object(U["computed"])(()=>{var e;const{width:t=0,height:o=0}=null===(e=n.data)||void 0===e||null===(e=e.message)||void 0===e||null===(e=e.payload)||void 0===e?void 0:e.imageInfoArray[0];return t>=o});Object(U["watchEffect"])(()=>{n.data=e.data,n.data&&Object(U["nextTick"])(()=>{if(n.data.progress)t.emit("uploading");else{var a,i,r;const{width:t=0,height:s=0}=n.data;if(0===t||0===s)return;const l=(null===(a=document.getElementById("app"))||void 0===a?void 0:a.clientWidth)||0,c=e.isH5?Math.min(l-180,300):300,d=Object(D["q"])(t,s,c,c);(null===o||void 0===o||null===(i=o.value)||void 0===i?void 0:i.style)&&(o.value.style.width=d.width+"px"),(null===o||void 0===o||null===(r=o.value)||void 0===r?void 0:r.style)&&(o.value.style.height=d.height+"px")}})});const i=()=>{n.data.progress||t.emit("previewImage",n.data.message)},r=e=>{const t=document.createElement("a"),n=e.payload.imageInfoArray[0].instanceID;t.setAttribute("download",n);const o=new Image;o.src=e.payload.imageInfoArray[0].url,o.setAttribute("crossOrigin","Anonymous"),o.onload=()=>{t.href=s(o),t.click()}},s=e=>{var t;const n=document.createElement("canvas");n.width=e.width,n.height=e.height;const o=n.getContext("2d");null===o||void 0===o||o.drawImage(e,0,0,e.width,e.height);const a=e.src.substring(Ie()(t=e.src).call(t,".")+1).toLowerCase();return n.toDataURL("image/"+a,1)};return{...Object(U["toRefs"])(n),toggleShow:i,skeleton:o,isWidth:a,downloadImage:r,hrefParams:Ce["a"]}}});n("aa66");const ke=se()(Ee,[["render",je],["__scopeId","data-v-24e80348"]]);var we=ke;const _e={class:"message-video"},Se=["src"],Te=["src","poster"],Le=["src","poster"],Ae={key:3,class:"progress"},De=["value"],Ne=["src"];function Ue(e,t,n,o,a,i){var r,s,l;return Object(U["openBlock"])(),Object(U["createElementBlock"])("div",_e,[Object(U["createElementVNode"])("div",{class:Object(U["normalizeClass"])(["message-video-box",[!e.data.progress&&"success"===e.data.message.status&&e.isH5&&"message-video-cover"]]),onClick:t[0]||(t[0]=(...t)=>e.toggleShow&&e.toggleShow(...t)),ref:"skeleton"},[e.data.progress&&e.poster||e.isH5&&e.poster?(Object(U["openBlock"])(),Object(U["createElementBlock"])("img",{key:0,class:Object(U["normalizeClass"])(["message-img",[e.isWidth?"isWidth":"isHeight"]]),src:e.poster},null,10,Se)):e.isH5?(Object(U["openBlock"])(),Object(U["createElementBlock"])("video",{key:1,class:"message-img video-h5-uploading",src:-1===T()(r=e.data.url).call(r,"http")?`${e.hrefParams.urlF.replace("lol","://")}/file/show/${e.data.url}`:e.data.url+"#t=0.1",poster:-1===T()(s=e.data.url).call(s,"http")?`${e.hrefParams.urlF.replace("lol","://")}/file/show/${e.data.url}`:e.data.url,preload:"auto",muted:"",ref:"video"},null,8,Te)):e.data.progress||e.isH5?Object(U["createCommentVNode"])("",!0):(Object(U["openBlock"])(),Object(U["createElementBlock"])("video",{key:2,class:"message-img video-web",src:-1===T()(l=e.data.url).call(l,"http")?`${e.hrefParams.urlF.replace("lol","://")}/file/show/${e.data.url}`:e.data.url,controls:"",preload:"metadata",poster:e.poster,ref:"video"},null,8,Le)),e.data.progress?(Object(U["openBlock"])(),Object(U["createElementBlock"])("div",Ae,[Object(U["createElementVNode"])("progress",{value:e.data.progress,max:"1"},null,8,De)])):Object(U["createCommentVNode"])("",!0)],2),e.show&&e.isH5?(Object(U["openBlock"])(),Object(U["createElementBlock"])("div",{key:0,class:"dialog-video",onClick:t[3]||(t[3]=Object(U["withModifiers"])((...t)=>e.toggleShow&&e.toggleShow(...t),["self"]))},[Object(U["createElementVNode"])("header",null,[Object(U["createElementVNode"])("i",{class:"icon icon-close",onClick:t[1]||(t[1]=Object(U["withModifiers"])((...t)=>e.toggleShow&&e.toggleShow(...t),["stop"]))})]),Object(U["createElementVNode"])("div",{class:Object(U["normalizeClass"])(["dialog-video-box",[e.isH5?"dialog-video-h5":""]]),onClick:t[2]||(t[2]=Object(U["withModifiers"])((...t)=>e.toggleShow&&e.toggleShow(...t),["self"]))},[Object(U["createElementVNode"])("video",{class:Object(U["normalizeClass"])([e.isWidth?"isWidth":"isHeight"]),src:e.data.url,controls:"",autoplay:""},null,10,Ne)],2)])):Object(U["createCommentVNode"])("",!0)])}var Be=Object(U["defineComponent"])({props:{data:{type:Object,default:()=>({})},isH5:{type:Boolean,default:!1}},setup(e,t){const n=Object(U["reactive"])({data:{},show:!1,poster:"",posterWidth:0,posterHeight:0}),o=Object(U["ref"])(),a=Object(U["ref"])(),i=Object(U["computed"])(()=>{var e;const{snapshotWidth:t=0,snapshotHeight:o=0}=null===(e=n.data)||void 0===e||null===(e=e.message)||void 0===e?void 0:e.payload;return t>=o}),r="https://web.sdk.qcloud.com/im/assets/images/transparent.png",s=()=>{n.data.progress||(n.show=!n.show)},l=e=>new f.a((function(t,o){let a="",i=document.createElement("video");i.setAttribute("crossOrigin","anonymous"),i.setAttribute("src",e),i.setAttribute("preload","auto"),i.addEventListener("loadeddata",(function(){let e=document.createElement("canvas"),o=i.videoWidth,r=i.videoHeight;e.width=o,e.height=r,e.getContext("2d").drawImage(i,0,0,o,r),a=e.toDataURL("image/jpeg"),n.posterWidth=o,n.posterHeight=r,t(a)}),{once:!0})})),c=async e=>{return e?e.progress?await l(e.url):e.snapshotUrl!==r&&e.snapshotUrl||(null===e||void 0===e||null===(t=e.message)||void 0===t||null===(t=t.payload)||void 0===t?void 0:t.snapshotUrl)!==r&&(null===e||void 0===e||null===(n=e.message)||void 0===n||null===(n=n.payload)||void 0===n?void 0:n.snapshotUrl)||(null===e||void 0===e||null===(o=e.message)||void 0===o||null===(o=o.payload)||void 0===o?void 0:o.thumbUrl)!==r&&(null===e||void 0===e||null===(a=e.message)||void 0===a||null===(a=a.payload)||void 0===a?void 0:a.thumbUrl)||await l(e.url):"";var t,n,o,a};return Object(U["watchEffect"])(async()=>{n.data=e.data,n.data&&(n.poster=await c(n.data),Object(U["nextTick"])(async()=>{var i;const s=(null===(i=document.getElementById("messageEle"))||void 0===i?void 0:i.clientWidth)||0,l=e.isH5?Math.min(s-172,300):300;let c;if(n.data.progress)t.emit("uploading");else{var d,u;let{snapshotWidth:t=0,snapshotHeight:i=0,snapshotUrl:s}=n.data;if(0===t||0===i)return;var p,m;if(s===r&&(t=n.posterWidth,i=n.posterHeight),c=Object(D["q"])(t,i,l,l),(null===o||void 0===o||null===(d=o.value)||void 0===d?void 0:d.style)&&(o.value.style.width=c.width+"px"),(null===o||void 0===o||null===(u=o.value)||void 0===u?void 0:u.style)&&(o.value.style.height=c.height+"px"),!e.isH5)(null===a||void 0===a||null===(p=a.value)||void 0===p?void 0:p.style)&&(a.value.style.width=c.width+"px"),(null===a||void 0===a||null===(m=a.value)||void 0===m?void 0:m.style)&&(a.value.style.height=c.height+"px")}}))}),Object(U["watch"])(()=>{var e;return null===(e=n.data)||void 0===e?void 0:e.progress},(e,n)=>{!e&&n&&t.emit("uploading")}),{...Object(U["toRefs"])(n),toggleShow:s,isWidth:i,getVideoBase64:l,handlePosterUrl:c,skeleton:o,video:a,hrefParams:Ce["a"]}}});n("2929");const Me=se()(Be,[["render",Ue],["__scopeId","data-v-71441a3b"]]);var Ve=Me;const Re=["src"];function xe(e,t,n,o,a,i){var r,s;return Object(U["openBlock"])(),Object(U["createElementBlock"])("div",{class:Object(U["normalizeClass"])(["message-audio",["out"===e.data.message.flow&&"reserve"]]),onClick:t[0]||(t[0]=Object(U["withModifiers"])((...t)=>e.play&&e.play(...t),["stop"])),style:Object(U["normalizeStyle"])(`width: ${10*(null===(r=e.data)||void 0===r?void 0:r.second)+40}px`)},[Object(U["createElementVNode"])("i",{class:Object(U["normalizeClass"])(["icon icon-voice",["out"===e.data.message.flow&&"icon-reserve"]])},null,2),Object(U["createElementVNode"])("label",null,Object(U["toDisplayString"])(e.data.second)+"s",1),Object(U["createElementVNode"])("audio",{ref:"audio",src:-1===T()(s=e.data.url).call(s,"http")?`${e.hrefParams.urlF.replace("lol","://")}/file/show/${e.data.url}`:e.data.url},null,8,Re)],6)}var Pe=Object(U["defineComponent"])({props:{data:{type:Object,default:()=>({})}},setup(e,t){const n=Object(U["reactive"])({data:{},show:!1}),o=Object(U["ref"])(null);Object(U["watch"])(()=>e.data,()=>{n.data=e.data},{deep:!0,immediate:!0});const a=()=>{const e=document.getElementsByTagName("audio");for(const n of e)n.paused||(n.pause(),n.load());const t=o.value;t.paused?(t.play(),n.show=!0):(t.pause(),t.load(),n.show=!1)};return{...Object(U["toRefs"])(n),audio:o,play:a,hrefParams:Ce["a"]}}});n("736b");const Ge=se()(Pe,[["render",xe],["__scopeId","data-v-3b58416c"]]);var Fe=Ge;const He={class:"message-file"},ze=["title"],Ke={class:"message-file-content"},Ye=["value"];function We(e,t,n,o,a,i){return Object(U["openBlock"])(),Object(U["createElementBlock"])("div",He,[Object(U["createElementVNode"])("div",{class:"box",onClick:t[0]||(t[0]=(...t)=>e.download&&e.download(...t)),title:e.$t("TUIChat.单击下载")},[t[1]||(t[1]=Object(U["createElementVNode"])("i",{class:"icon icon-files"},null,-1)),Object(U["createElementVNode"])("div",Ke,[Object(U["createElementVNode"])("label",null,Object(U["toDisplayString"])(e.data.name),1),Object(U["createElementVNode"])("span",null,Object(U["toDisplayString"])(e.data.size),1)])],8,ze),e.data.progress?(Object(U["openBlock"])(),Object(U["createElementBlock"])("progress",{key:0,value:e.data.progress,max:"1"},null,8,Ye)):Object(U["createCommentVNode"])("",!0)])}var $e=n("47c7"),qe=n.n($e),Qe=Object(U["defineComponent"])({props:{data:{type:Object,default:()=>({})}},setup(e,t){const n=Object(U["reactive"])({data:{}});Object(U["watchEffect"])(()=>{n.data=e.data});const o=()=>{const e=n.data,t={mode:"cors",headers:new Headers({"Content-Type":"application/x-www-form-urlencoded"})};if(window.fetch)fetch(e.url,t).then(e=>e.blob()).then(t=>{const n=document.createElement("a"),o=qe.a.createObjectURL(t);n.href=o,n.download=e.name,n.click()});else{const t=document.createElement("a");t.href=e.url,t.target="_blank",t.download=e.name,t.click()}};return{...Object(U["toRefs"])(n),download:o}}});n("7c02");const Xe=se()(Qe,[["render",We],["__scopeId","data-v-3f9a76df"]]);var Ze=Xe;const Je={class:"message-image",ref:"skeleton"},et=["src"];function tt(e,t,n,o,a,i){return Object(U["openBlock"])(),Object(U["createElementBlock"])("div",Je,[Object(U["createElementVNode"])("img",{class:"message-img",src:e.data.url,style:Object(U["normalizeStyle"])(e.isH5?{maxWidth:e.data.width?e.data.width+"px":"calc(100vw - 180px)",maxHeight:e.data.height?e.data.height+"px":"calc(100vw - 180px)"}:{})},null,12,et)],512)}var nt=Object(U["defineComponent"])({props:{data:{type:Object,default:()=>({})},isH5:{type:Boolean,default:!1}},setup(e,t){const n=Object(U["reactive"])({data:{}}),o=Object(U["ref"])();return Object(U["watchEffect"])(()=>{n.data=e.data,n.data&&Object(U["nextTick"])(()=>{var t,n,a;const i=(null===(t=document.getElementById("messageEle"))||void 0===t?void 0:t.clientWidth)||0,r=e.isH5?Math.min(i-172,300):300,s=Object(D["q"])(240,240,r,r);(null===o||void 0===o||null===(n=o.value)||void 0===n?void 0:n.style)&&(o.value.style.width=s.width+"px"),(null===o||void 0===o||null===(a=o.value)||void 0===a?void 0:a.style)&&(o.value.style.height=s.height+"px")})}),{...Object(U["toRefs"])(n),skeleton:o}}});n("e5cf");const ot=se()(nt,[["render",tt],["__scopeId","data-v-ec7124a2"]]);var at=ot;const it=["href"],rt={class:"el-icon-location-outline"},st=["src"];function lt(e,t,n,o,a,i){return Object(U["openBlock"])(),Object(U["createElementBlock"])("a",{class:"message-location",href:e.data.href,target:"_blank",title:"点击查看详情"},[Object(U["createElementVNode"])("span",rt,Object(U["toDisplayString"])(e.data.description),1),Object(U["createElementVNode"])("img",{src:e.data.url},null,8,st)],8,it)}var ct=Object(U["defineComponent"])({props:{data:{type:Object,default:()=>({})}},setup(e,t){const n=Object(U["reactive"])({data:{}});return Object(U["watchEffect"])(()=>{n.data=e.data}),{...Object(U["toRefs"])(n)}}});n("e157");const dt=se()(ct,[["render",lt],["__scopeId","data-v-2ee98c02"]]);var ut=dt;const pt={class:"message-merger"},mt=["data-value"],bt={class:"merger-title"};function ht(e,t,n,o,a,i){return Object(U["openBlock"])(),Object(U["createElementBlock"])("div",pt,[Object(U["createElementVNode"])("div",{class:"merger-box","data-value":e.data.message},[Object(U["createElementVNode"])("p",bt,Object(U["toDisplayString"])(e.data.title),1),(Object(U["openBlock"])(!0),Object(U["createElementBlock"])(U["Fragment"],null,Object(U["renderList"])(e.data.abstractList,(e,t)=>(Object(U["openBlock"])(),Object(U["createElementBlock"])("p",{class:"merger-text",key:t},Object(U["toDisplayString"])(e),1))),128))],8,mt),t[0]||(t[0]=Object(U["createElementVNode"])("span",{class:"merger-label"}," 聊天记录",-1))])}var vt=Object(U["defineComponent"])({props:{data:{type:Object,default:()=>({})}},setup(e,t){const n=Object(U["reactive"])({data:{}});return Object(U["watchEffect"])(()=>{n.data=e.data}),{...Object(U["toRefs"])(n)}}});n("1182");const ft=se()(vt,[["render",ht],["__scopeId","data-v-a9c3fbce"]]);var gt=ft,Ot=n("34bb"),jt=n.n(Ot);const yt={class:"custom"},It={key:0},Ct=["href"],Et={key:0},kt=["href"],wt={key:1},_t={key:1,class:"evaluate"},St=["src"],Tt={key:3,class:"textLink"},Lt=["href"],At={key:5,style:{display:"flex"}},Dt={style:{height:"25px","line-height":"25px"}},Nt={style:{color:"#7d7d7dff","font-size":"12px","margin-bottom":"5px"}},Ut={style:{display:"flex","flex-wrap":"wrap"}},Bt=["src"],Mt={key:6,class:"business-type",style:{cursor:"pointer"}},Vt={style:{"padding-left":"10px",height:"25px","line-height":"25px"}},Rt={style:{"padding-left":"10px",height:"25px",color:"#7d7d7dff","font-size":"12px"}},xt={key:7,class:"business-type",style:{cursor:"pointer"}},Pt={style:{"padding-left":"10px",height:"25px","line-height":"25px"}},Gt=["src"],Ft={style:{"padding-left":"10px",height:"25px",color:"#7d7d7dff","font-size":"12px"}},Ht={key:8,style:{cursor:"pointer","min-width":"180px"}},zt={class:"business-type"},Kt={style:{"padding-left":"10px",height:"30px","line-height":"35px"}},Yt={style:{color:"#7d7d7dff","font-size":"14px"}},Wt={style:{"padding-left":"10px",height:"30px",color:"#7d7d7dff","font-size":"12px"}},$t=["innerHTML"];function qt(e,t,n,o,a,i){var s,c,d,u,p,m,b,h,v,f,g,O,j,y,I,C,E,k,w,_,S,L,A,D,N,B;const M=Object(U["resolveComponent"])("el-image"),V=Object(U["resolveComponent"])("el-input"),R=Object(U["resolveComponent"])("el-form-item"),x=Object(U["resolveComponent"])("el-form"),P=Object(U["resolveComponent"])("el-dialog");return Object(U["openBlock"])(),Object(U["createElementBlock"])("div",yt,[e.isCustom===e.constant.typeService?(Object(U["openBlock"])(),Object(U["createElementBlock"])("div",It,[Object(U["createElementVNode"])("h1",null,[Object(U["createElementVNode"])("label",null,Object(U["toDisplayString"])(e.extension.title),1),e.extension.hyperlinks_text?(Object(U["openBlock"])(),Object(U["createElementBlock"])("a",{key:0,href:e.extension.hyperlinks_text.value,target:"view_window"},Object(U["toDisplayString"])(e.extension.hyperlinks_text.key),9,Ct)):Object(U["createCommentVNode"])("",!0)]),e.extension.item&&e.extension.item.length>0?(Object(U["openBlock"])(),Object(U["createElementBlock"])("ul",Et,[(Object(U["openBlock"])(!0),Object(U["createElementBlock"])(U["Fragment"],null,Object(U["renderList"])(e.extension.item,(t,n)=>(Object(U["openBlock"])(),Object(U["createElementBlock"])("li",{key:n},[e.isUrl(t.value)?(Object(U["openBlock"])(),Object(U["createElementBlock"])("a",{key:0,href:t.value,target:"view_window"},Object(U["toDisplayString"])(t.key),9,kt)):(Object(U["openBlock"])(),Object(U["createElementBlock"])("p",wt,Object(U["toDisplayString"])(t.key),1))]))),128))])):Object(U["createCommentVNode"])("",!0),Object(U["createElementVNode"])("article",null,Object(U["toDisplayString"])(e.extension.description),1)])):e.isCustom.businessID===e.constant.typeEvaluate?(Object(U["openBlock"])(),Object(U["createElementBlock"])("div",_t,[Object(U["createElementVNode"])("h1",null,Object(U["toDisplayString"])(e.$t("message.custom.对本次服务评价")),1),Object(U["createElementVNode"])("ul",null,[(Object(U["openBlock"])(!0),Object(U["createElementBlock"])(U["Fragment"],null,Object(U["renderList"])(~~e.isCustom.score,(e,n)=>(Object(U["openBlock"])(),Object(U["createElementBlock"])("li",{class:"evaluate-list-item",key:n},[...t[10]||(t[10]=[Object(U["createElementVNode"])("i",{class:"icon icon-star-light"},null,-1)])]))),128))]),Object(U["createElementVNode"])("article",null,Object(U["toDisplayString"])(e.isCustom.comment),1)])):e.isCustom.businessID===e.constant.typeOrder?(Object(U["openBlock"])(),Object(U["createElementBlock"])("div",{key:2,class:"order",onClick:t[0]||(t[0]=t=>e.openLink(e.isCustom.link))},[Object(U["createElementVNode"])("img",{src:e.isCustom.imageUrl,alt:""},null,8,St),Object(U["createElementVNode"])("main",null,[Object(U["createElementVNode"])("h1",null,Object(U["toDisplayString"])(e.isCustom.title),1),Object(U["createElementVNode"])("p",null,Object(U["toDisplayString"])(e.isCustom.description),1),Object(U["createElementVNode"])("span",null,Object(U["toDisplayString"])(e.isCustom.price),1)])])):e.isCustom.businessID===e.constant.typeTextLink?(Object(U["openBlock"])(),Object(U["createElementBlock"])("div",Tt,[Object(U["createElementVNode"])("p",null,Object(U["toDisplayString"])(e.isCustom.text),1),Object(U["createElementVNode"])("a",{href:e.isCustom.link,target:"view_window"},Object(U["toDisplayString"])(e.$t("message.custom.查看详情>>")),9,Lt)])):e.isCustom.businessID===e.constant.TYPE_CALL_MESSAGE?(Object(U["openBlock"])(),Object(U["createElementBlock"])("div",{key:4,class:Object(U["normalizeClass"])(["call","call-"+(null===(s=e.data)||void 0===s||null===(s=s.message)||void 0===s?void 0:s.conversationType)]),onClick:t[1]||(t[1]=(...t)=>e.handleCallAgain&&e.handleCallAgain(...t))},[Object(U["createElementVNode"])("i",{class:Object(U["normalizeClass"])(["icon",e.handleCallMessageIcon()])},null,2),Object(U["createElementVNode"])("span",null,Object(U["toDisplayString"])(e.data.custom.substring(0,T()(c=e.data.custom).call(c,'"'))+e.data.custom.substring(Ie()(d=e.data.custom).call(d,'"')+1,e.data.custom.length)),1)],2)):e.isCustom.businessID===e.constant.typeArchives?(Object(U["openBlock"])(),Object(U["createElementBlock"])("div",At,[Object(U["createElementVNode"])("div",{class:"img-list",style:{cursor:"pointer"},onClick:t[2]||(t[2]=(...t)=>e.showDialog&&e.showDialog(...t))},[Object(U["createElementVNode"])("div",Dt,Object(U["toDisplayString"])((null===(u=e.isCustom)||void 0===u?void 0:u.name)+" "+(null===(p=e.isCustom)||void 0===p?void 0:p.gender)+" 丨 "+(null===(m=e.isCustom)||void 0===m?void 0:m.age)),1),Object(U["createElementVNode"])("div",Nt,Object(U["toDisplayString"])("病症描述:"+(null===(b=e.isCustom)||void 0===b?void 0:b.symptomDescription)),1),Object(U["createElementVNode"])("div",Ut,[(Object(U["openBlock"])(!0),Object(U["createElementBlock"])(U["Fragment"],null,Object(U["renderList"])(null===(h=e.isCustom)||void 0===h?void 0:h.imageList,(e,t)=>(Object(U["openBlock"])(),Object(U["createElementBlock"])("div",{style:{padding:"0 5px 5px"},key:"imageList"+t},[Object(U["createElementVNode"])("img",{src:e.bigImageUrl,alt:""},null,8,Bt)]))),128))])])])):e.isCustom.businessID===e.constant.typeMedicalExaminationReport?(Object(U["openBlock"])(),Object(U["createElementBlock"])("div",Mt,[Object(U["createElementVNode"])("div",null,[Object(U["createElementVNode"])("div",Vt,Object(U["toDisplayString"])((null===(v=e.isCustom)||void 0===v?void 0:v.name)+"-"+((null===(f=e.isCustom)||void 0===f?void 0:f.gender)||(null===(g=e.isCustom)||void 0===g?void 0:g.sex))+"-"+(null===(O=e.isCustom)||void 0===O?void 0:O.age)),1),Object(U["createElementVNode"])("div",Rt,Object(U["toDisplayString"])((null===(j=e.isCustom)||void 0===j?void 0:j.hospital)+"-"+(null===(y=e.isCustom)||void 0===y?void 0:y.createTime)),1)])])):e.isCustom.businessID===e.constant.typeSystem?(Object(U["openBlock"])(),Object(U["createElementBlock"])("div",xt,[Object(U["createElementVNode"])("div",null,[Object(U["createElementVNode"])("div",Pt,Object(U["toDisplayString"])(null===(I=e.isCustom)||void 0===I?void 0:I.title),1),null!==(C=e.isCustom)&&void 0!==C&&C.messageImageUrl?(Object(U["openBlock"])(),Object(U["createElementBlock"])("img",{key:0,src:null===(E=e.isCustom)||void 0===E?void 0:E.messageImageUrl,alt:"",style:{margin:"5px 10px"}},null,8,Gt)):Object(U["createCommentVNode"])("",!0),Object(U["createElementVNode"])("div",Ft,Object(U["toDisplayString"])(null===(k=e.isCustom)||void 0===k?void 0:k.content),1)])])):e.isCustom.businessID===e.constant.typeBusinessCard?(Object(U["openBlock"])(),Object(U["createElementBlock"])("div",Ht,[Object(U["createElementVNode"])("div",zt,[Object(U["createElementVNode"])("div",null,[Object(U["createVNode"])(M,{style:{width:"60px",height:"60px","border-radius":"10px"},src:null===(w=e.isCustom)||void 0===w?void 0:w.doctorHeadImg},{error:Object(U["withCtx"])(()=>[...t[11]||(t[11]=[Object(U["createElementVNode"])("div",null,[Object(U["createElementVNode"])("img",{style:{width:"60px",height:"60px","border-radius":"10px"},src:jt.a,alt:""})],-1)])]),_:1},8,["src"])]),Object(U["createElementVNode"])("div",null,[Object(U["createElementVNode"])("div",Kt,[Object(U["createTextVNode"])(Object(U["toDisplayString"])(""+(null===(_=e.isCustom)||void 0===_?void 0:_.doctorName))+" ( ",1),Object(U["createElementVNode"])("span",Yt,Object(U["toDisplayString"])(""+(null===(S=e.isCustom)||void 0===S?void 0:S.doctorTitle)),1),t[12]||(t[12]=Object(U["createTextVNode"])(" ) ",-1))]),Object(U["createElementVNode"])("div",Wt,Object(U["toDisplayString"])(`${null!==(L=e.isCustom)&&void 0!==L&&L.organization?null===(A=e.isCustom)||void 0===A?void 0:A.organization:""}-${null!==(D=e.isCustom)&&void 0!==D&&D.departmentName?null===(N=e.isCustom)||void 0===N?void 0:N.departmentName:""}`),1)])]),t[13]||(t[13]=Object(U["createElementVNode"])("div",{style:{color:"#7d7d7dff","font-size":"12px","margin-top":"5px","border-top":"1px solid #7d7d7dff","padding-top":"1px"}}," 个人名片 ",-1))])):(Object(U["openBlock"])(),Object(U["createElementBlock"])("span",{key:9,innerHTML:e.data.custom},null,8,$t)),Object(U["createVNode"])(P,{modelValue:e.visible,"onUpdate:modelValue":t[9]||(t[9]=t=>e.visible=t),title:(null===(B=e.isCustom)||void 0===B?void 0:B.name)+"档案",width:"60%",onOpen:e.openDialog},{default:Object(U["withCtx"])(()=>[t[14]||(t[14]=Object(U["createElementVNode"])("span",{style:{"font-size":"18px","font-weight":"bold",color:"#000000","margin-bottom":"10px"}},"咨询档案",-1)),Object(U["createVNode"])(x,{modelValue:e.archives,"onUpdate:modelValue":t[8]||(t[8]=t=>e.archives=t),"label-width":"100px"},{default:Object(U["withCtx"])(()=>[Object(U["createVNode"])(R,{label:"档案名称:"},{default:Object(U["withCtx"])(()=>[Object(U["createVNode"])(V,{disabled:"",modelValue:e.archives.recordsName,"onUpdate:modelValue":t[3]||(t[3]=t=>e.archives.recordsName=t)},null,8,["modelValue"])]),_:1}),Object(U["createVNode"])(R,{label:"患病时长:"},{default:Object(U["withCtx"])(()=>[Object(U["createVNode"])(V,{disabled:"",modelValue:e.archives.haveTime_dictText,"onUpdate:modelValue":t[4]||(t[4]=t=>e.archives.haveTime_dictText=t)},null,8,["modelValue"])]),_:1}),Object(U["createVNode"])(R,{label:"问题描述:"},{default:Object(U["withCtx"])(()=>[Object(U["createVNode"])(V,{disabled:"",modelValue:e.archives.medicalDescribe,"onUpdate:modelValue":t[5]||(t[5]=t=>e.archives.medicalDescribe=t),rows:3,type:"textarea"},null,8,["modelValue"])]),_:1}),Object(U["createVNode"])(R,{label:"就诊医院:"},{default:Object(U["withCtx"])(()=>[Object(U["createVNode"])(V,{disabled:"",modelValue:e.archives.lookOffice,"onUpdate:modelValue":t[6]||(t[6]=t=>e.archives.lookOffice=t)},null,8,["modelValue"])]),_:1}),Object(U["createVNode"])(R,{label:"病情资料:"},{default:Object(U["withCtx"])(()=>{var t;return[(Object(U["openBlock"])(!0),Object(U["createElementBlock"])(U["Fragment"],null,Object(U["renderList"])(null===(t=e.archives)||void 0===t?void 0:t.imageList,(t,n)=>(Object(U["openBlock"])(),Object(U["createElementBlock"])("div",{style:{padding:"0 5px 5px",width:"100px",height:"100px"},key:"imageList"+n},[Object(U["createVNode"])(M,{style:{width:"100px",height:"100px"},src:`${e.hrefParams.urlF.replace("lol","://")}/file/show/${t}`,"zoom-rate":1.2,"preview-src-list":[`${e.hrefParams.urlF.replace("lol","://")}file/show/${t}`],"initial-index":0,"hide-on-click-modal":!0,fit:"cover"},null,8,["src","preview-src-list"])]))),128))]}),_:1}),Object(U["createVNode"])(R,{label:"期望帮助:"},{default:Object(U["withCtx"])(()=>[Object(U["createVNode"])(V,{disabled:"",modelValue:e.archives.desire,"onUpdate:modelValue":t[7]||(t[7]=t=>e.archives.desire=t),rows:3,type:"textarea"},null,8,["modelValue"])]),_:1})]),_:1},8,["modelValue"]),t[15]||(t[15]=Object(U["createElementVNode"])("span",{style:{"font-size":"18px","font-weight":"bold",color:"#000000",margin:"10px 0"}},"健康信息",-1)),Object(U["createVNode"])(x,{"label-width":"100px",inline:!0},{default:Object(U["withCtx"])(()=>[(Object(U["openBlock"])(!0),Object(U["createElementBlock"])(U["Fragment"],null,Object(U["renderList"])(r()(l()(e.archives)),(t,n)=>(Object(U["openBlock"])(),Object(U["createBlock"])(R,{key:"item"+n,label:t+":"},{default:Object(U["withCtx"])(()=>[Object(U["createVNode"])(V,{modelValue:l()(e.archives)[t],"onUpdate:modelValue":n=>l()(e.archives)[t]=n,disabled:""},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1032,["label"]))),128))]),_:1})]),_:1},8,["modelValue","title","onOpen"])])}var Qt=n("2e20");class Xt{constructor(e){Object(c["a"])(this,"aegis",void 0),Object(c["a"])(this,"options",{}),Object(c["a"])(this,"aegisOptions",[]),e?this.aegis=e:this.init(()=>{var e;(this.aegis=new window.Aegis({id:"iHWefAYqTgxNuvtAjr",uin:"",reportApiSpeed:!0,reportAssetSpeed:!0,spa:!0}),this.aegisOptions.length>0)&&(l()(e=this.aegisOptions).call(e,e=>(this.reportEvent(e),e)),this.aegisOptions=[])})}install(e){e.config.globalProperties.$TUIAegis=Xt.getInstance()}static getInstance(){return Xt.instance||(Xt.instance=new Xt(window.$Aegis)),Xt.instance}setAegisOptions(e){this.options=e}reportEvent(e){if(this.aegis){var t;if((null===e||void 0===e||!e.ext3)&&(null===(t=this.options)||void 0===t||!t.ext3))return;this.aegis.reportEvent({...e,...this.options})}else this.aegisOptions=[...this.aegisOptions,e]}init(e){if(!Xt.instance){const t=document.createElement("script");t.type="text/javascript",t.src="https://tam.cdn-go.cn/aegis-sdk/latest/aegis.min.js",document.getElementsByTagName("head")[0].appendChild(t),t.onload=e}}}Object(c["a"])(Xt,"instance",void 0);var Zt=Xt,Jt=n("5502"),en=Object(U["defineComponent"])({props:{data:{type:Object,default:()=>({})}},setup(e,t){var n;const o=(null===(n=window)||void 0===n||null===(n=n.TUIKitTUICore)||void 0===n?void 0:n.isOfficial)&&Jt["c"]&&Object(Jt["c"])()||{},a=Object(U["reactive"])({data:{},extension:{},isCustom:"",constant:Qt["a"],visible:!1,archives:{recordsName:"",medicalDescribe:"",image:"",imageList:[],haveTime_dictText:"",desire:"",lookOffice:"",map:{}}});Object(U["watchEffect"])(()=>{a.data=e.data;const{message:{payload:t}}=e.data;a.isCustom=t.data||" ",a.isCustom=Object(D["a"])(t.data),t.data===Qt["a"].typeService&&(a.extension=Object(D["a"])(t.extension))});const i=e=>{window.open(e)},r=()=>{var e,t,n;const o=null===(e=JSON.parse(null===(t=JSON.parse(null===a||void 0===a||null===(n=a.data)||void 0===n||null===(n=n.message)||void 0===n||null===(n=n.payload)||void 0===n?void 0:n.data))||void 0===t?void 0:t.data))||void 0===e?void 0:e.call_type;let i="";switch(o){case 1:i="icon-call-voice";break;case 2:i="icon-call-video";break;default:break}return i},s=async()=>{var t,n,i,r,s,l;const c=null===(t=JSON.parse(null===(n=JSON.parse(null===e||void 0===e||null===(i=e.data)||void 0===i||null===(i=i.message)||void 0===i||null===(i=i.payload)||void 0===i?void 0:i.data))||void 0===n?void 0:n.data))||void 0===t?void 0:t.call_type;switch(Zt.getInstance().reportEvent({name:"callOptions",ext1:"clickCall"}),null===a||void 0===a||null===(r=a.data)||void 0===r||null===(r=r.message)||void 0===r?void 0:r.conversationType){case window.TUIKitTUICore.TIM.TYPES.CONV_C2C:const{flow:e,to:t,from:n}=null===a||void 0===a||null===(s=a.data)||void 0===s?void 0:s.message;if(t===n)break;try{var d,u;await(null===(d=window)||void 0===d||null===(d=d.TUIKitTUICore)||void 0===d||null===(d=d.TUIServer)||void 0===d||null===(d=d.TUICallKit)||void 0===d?void 0:d.call({userID:"out"===e?t:n,type:c})),(null===(u=window)||void 0===u||null===(u=u.TUIKitTUICore)||void 0===u?void 0:u.isOfficial)&&(null===o||void 0===o?void 0:o.commit)&&(null===o||void 0===o||o.commit("handleTask",6))}catch(p){console.warn(p)}null!==(l=window)&&void 0!==l&&null!==(l=l.TUIKitTUICore)&&void 0!==l&&null!==(l=l.TUIServer)&&void 0!==l&&l.TUICallKit&&(Zt.getInstance().reportEvent({name:"callOptions",ext1:"clickCall-success"}),Zt.getInstance().reportEvent({name:"callOptions",ext1:"call-c2c"}));break;case window.TUIKitTUICore.TIM.TYPES.CONV_GROUP:break;default:break}},l=()=>{var e,t;window.parent.postMessage(h()({code:"showConsultation",archivesId:null===(e=a.isCustom)||void 0===e?void 0:e.archivesId,archivesName:null===(t=a.isCustom)||void 0===t?void 0:t.name}),"*")},c=async()=>{var e,t;window.parent.postMessage(h()({code:"showConsultation",archivesId:null===(e=a.isCustom)||void 0===e?void 0:e.archivesId,archivesName:null===(t=a.isCustom)||void 0===t?void 0:t.name}),"*")};return{showDialog:l,openDialog:c,...Object(U["toRefs"])(a),isUrl:D["w"],openLink:i,handleCallMessageIcon:r,handleCallAgain:s,hrefParams:Ce["a"]}}});n("22f6");const tn=se()(en,[["render",qt],["__scopeId","data-v-6e029b71"]]);var nn=tn;const on={class:"message-tip"};function an(e,t,n,o,a,i){var r;return Object(U["openBlock"])(),Object(U["createElementBlock"])("div",on,[Object(U["createElementVNode"])("span",null,Object(U["toDisplayString"])(null===(r=e.message)||void 0===r?void 0:r.text),1)])}var rn=Object(U["defineComponent"])({props:{data:{type:Object,default:()=>({})}},setup(e,t){const n=Object(U["reactive"])({message:{}});return Object(U["watchEffect"])(()=>{n.message=e.data}),{...Object(U["toRefs"])(n)}}});n("a6a0");const sn=se()(rn,[["render",an],["__scopeId","data-v-54b2b3c4"]]);var ln=sn;const cn=["src"],dn={class:"message-area"},un={key:0,class:"name"},pn={key:1,ref:"dropdownRef",class:"dropdown-inner"};function mn(e,t,n,o,a,i){var r,s,l,c,d,u,p,m;const b=Object(U["resolveComponent"])("MessageReference"),h=Object(U["resolveComponent"])("MessageEmojiReact");return Object(U["openBlock"])(),Object(U["createElementBlock"])(U["Fragment"],null,[Object(U["createElementVNode"])("div",{class:Object(U["normalizeClass"])(["message-bubble",["in"===e.message.flow?"":"reverse"]]),ref:"htmlRefHook"},[Object(U["createElementVNode"])("img",{class:"avatar",src:e.avatarError?e.defaultAvatar:(null===(r=e.message)||void 0===r?void 0:r.avatar)||e.defaultAvatar,onError:t[0]||(t[0]=(...t)=>e.onAvatarError&&e.onAvatarError(...t)),alt:""},null,40,cn),Object(U["createElementVNode"])("main",dn,["in"===e.message.flow&&"GROUP"===e.message.conversationType?(Object(U["openBlock"])(),Object(U["createElementBlock"])("label",un,Object(U["toDisplayString"])(e.message.nameCard||e.message.nick||e.message.from),1)):Object(U["createCommentVNode"])("",!0),Object(U["createElementVNode"])("div",{class:Object(U["normalizeClass"])(e.handleImageOrVideoBubbleStyle(e.message)),onContextmenu:t[3]||(t[3]=Object(U["withModifiers"])((...t)=>e.toggleDialog&&e.toggleDialog(...t),["prevent","right"]))},[null!==(s=e.message)&&void 0!==s&&s.cloudCustomData&&e.referenceMessage&&null!==(l=e.referenceMessage)&&void 0!==l&&l.messageRootID?(Object(U["openBlock"])(),Object(U["createElementBlock"])("div",{key:0,class:Object(U["normalizeClass"])(["message-replie-area",["in"===(null===(c=e.message)||void 0===c?void 0:c.flow)?"":"message-replies-area-reverse"]]),onClick:t[1]||(t[1]=t=>e.showRepliesDialog(e.message,!1))},[Object(U["createVNode"])(b,{message:e.message,referenceMessage:e.referenceMessage,referenceForShow:e.referenceForShow,url:e.url,face:e.face,allMessageID:e.allMessageID,type:"reply"},null,8,["message","referenceMessage","referenceForShow","url","face","allMessageID"])],2)):Object(U["createCommentVNode"])("",!0),Object(U["renderSlot"])(e.$slots,"default",{},void 0,!0),e.dropdown?(Object(U["openBlock"])(),Object(U["createElementBlock"])("div",pn,[Object(U["createElementVNode"])("div",{class:Object(U["normalizeClass"])(["dialog",["in"===e.message.flow?"":"dialog-right"]]),onClick:t[2]||(t[2]=t=>e.dropdown=!1)},[Object(U["renderSlot"])(e.$slots,"dialog",{},void 0,!0)],2)],512)):Object(U["createCommentVNode"])("",!0),e.needEmojiReact&&e.isEmojiReactionInMessage(e.message)?(Object(U["openBlock"])(),Object(U["createBlock"])(h,{key:2,message:e.message,type:"content"},null,8,["message"])):Object(U["createCommentVNode"])("",!0)],34)]),"fail"===e.message.status?(Object(U["openBlock"])(),Object(U["createElementBlock"])("label",{key:0,class:"message-label fail",onClick:t[4]||(t[4]=t=>e.resendMessage(e.message))},"!")):Object(U["createCommentVNode"])("",!0)],2),null===(d=e.message)||void 0===d||!d.cloudCustomData||!e.referenceMessage||null!==(u=e.referenceMessage)&&void 0!==u&&u.messageRootID?Object(U["createCommentVNode"])("",!0):(Object(U["openBlock"])(),Object(U["createElementBlock"])("div",{key:0,class:Object(U["normalizeClass"])(["message-reference-area",["in"===e.message.flow?"":"message-reference-area-reverse"]]),onClick:t[5]||(t[5]=t=>e.jumpToAim(e.referenceMessage))},[Object(U["createVNode"])(b,{message:e.message,referenceMessage:e.referenceMessage,referenceForShow:e.referenceForShow,url:e.url,face:e.face,allMessageID:e.allMessageID,type:"reference"},null,8,["message","referenceMessage","referenceForShow","url","face","allMessageID"])],2)),null!==(p=e.replies)&&void 0!==p&&p.length?(Object(U["openBlock"])(),Object(U["createElementBlock"])("label",{key:1,class:Object(U["normalizeClass"])(["message-replies",["in"===e.message.flow?"":"message-replies-reverse"]]),onClick:t[6]||(t[6]=t=>e.showRepliesDialog(e.message,!0))},[t[7]||(t[7]=Object(U["createElementVNode"])("i",{class:"icon icon-msg-replies"},null,-1)),Object(U["createElementVNode"])("span",null,Object(U["toDisplayString"])((null===(m=e.replies)||void 0===m?void 0:m.length)+e.$t("TUIChat.条回复")),1)],2)):Object(U["createCommentVNode"])("",!0)],64)}var bn=n("b05a"),hn=n("2c28"),vn=n("4176");const fn={class:"message-reference-user"},gn={class:"nick"},On={class:"colon"},jn={key:0,class:"face-box"},yn={key:0,class:"text-box"},In=["src"],Cn={key:1},En=["src"],kn={key:3,class:"message-video-cover"},wn=["src"],_n=["src"],Sn={key:5};function Tn(e,t,n,o,a,i){var r,s,l,c,d,u,p;return null!==(r=e.referenceMessage)&&void 0!==r&&r.messageID&&-1!==T()(s=e.allMessageID).call(s,e.referenceMessage.messageID)?(Object(U["openBlock"])(),Object(U["createElementBlock"])("div",{key:0,class:Object(U["normalizeClass"])(`${e.type} ${"in"===e.message.flow&&e.type+"-reverse"}`)},[Object(U["createElementVNode"])("p",fn,[Object(U["createElementVNode"])("span",gn,Object(U["toDisplayString"])(e.referenceForShow.nick||e.referenceForShow.from),1),Object(U["createElementVNode"])("span",On,Object(U["toDisplayString"])("reference"===e.type?":":""),1)]),e.referenceMessage.messageType===e.constant.typeText?(Object(U["openBlock"])(),Object(U["createElementBlock"])("div",jn,[(Object(U["openBlock"])(!0),Object(U["createElementBlock"])(U["Fragment"],null,Object(U["renderList"])(e.face,(e,t)=>(Object(U["openBlock"])(),Object(U["createElementBlock"])("div",{key:t},["text"===e.name?(Object(U["openBlock"])(),Object(U["createElementBlock"])("span",yn,Object(U["toDisplayString"])(e.text),1)):"img"===e.name?(Object(U["openBlock"])(),Object(U["createElementBlock"])("img",{key:1,class:"text-img",src:e.src},null,8,In)):Object(U["createCommentVNode"])("",!0)]))),128))])):Object(U["createCommentVNode"])("",!0),e.referenceMessage.messageType===e.constant.typeCustom?(Object(U["openBlock"])(),Object(U["createElementBlock"])("span",Cn,Object(U["toDisplayString"])(e.referenceMessage.messageAbstract),1)):Object(U["createCommentVNode"])("",!0),e.referenceMessage.messageType===e.constant.typeImage?(Object(U["openBlock"])(),Object(U["createElementBlock"])("img",{key:2,class:"message-img",src:e.referenceForShow.payload.imageInfoArray[1].url},null,8,En)):Object(U["createCommentVNode"])("",!0),e.referenceMessage.messageType===e.constant.typeVideo?(Object(U["openBlock"])(),Object(U["createElementBlock"])("div",kn,[Object(U["createElementVNode"])("img",{class:"message-videoimg",src:(null===(l=e.referenceForShow)||void 0===l||null===(l=l.payload)||void 0===l?void 0:l.snapshotUrl)||(null===(c=e.referenceForShow)||void 0===c||null===(c=c.payload)||void 0===c?void 0:c.thumbUrl)},null,8,wn)])):Object(U["createCommentVNode"])("",!0),e.referenceMessage.messageType===e.constant.typeFace?(Object(U["openBlock"])(),Object(U["createElementBlock"])("img",{key:4,class:"message-img",src:e.url},null,8,_n)):Object(U["createCommentVNode"])("",!0),e.referenceMessage.messageType===e.constant.typeFile||e.referenceMessage.messageType===e.constant.typeAudio?(Object(U["openBlock"])(),Object(U["createElementBlock"])("span",Sn,Object(U["toDisplayString"])(null===(d=e.referenceMessage)||void 0===d?void 0:d.messageAbstract),1)):Object(U["createCommentVNode"])("",!0)],2)):(Object(U["openBlock"])(),Object(U["createElementBlock"])("div",{key:1,class:Object(U["normalizeClass"])(`${e.type} ${"in"===e.message.flow&&e.type+"-reverse"}`)},[Object(U["createElementVNode"])("p",null,Object(U["toDisplayString"])(null===(u=e.referenceMessage)||void 0===u?void 0:u.messageSender),1),Object(U["createElementVNode"])("span",null,Object(U["toDisplayString"])(null===(p=e.referenceMessage)||void 0===p?void 0:p.messageAbstract),1)],2))}const Ln=Object(U["defineComponent"])({props:{message:{type:Object,default:{}},referenceMessage:{type:Object,default:()=>({})},referenceForShow:{type:Object,default:()=>({})},face:{type:Array,default:()=>[]},url:{type:String,default:""},allMessageID:{type:String,default:""},type:{type:String,deafault:""}},setup(e,t){const n=Object(U["reactive"])({message:{},referenceMessage:{},referenceForShow:{},allMessageID:"",face:[],url:"",type:""});return Object(U["watchEffect"])(()=>{n.message=e.message,n.referenceMessage=e.referenceMessage,n.referenceForShow=e.referenceForShow,n.face=e.face,n.url=e.url,n.allMessageID=e.allMessageID,n.type=e.type}),Object(U["watch"])(()=>e.referenceForShow,()=>{n.referenceForShow=e.referenceForShow},{deep:!0}),{...Object(U["toRefs"])(n),constant:Qt["a"]}}});var An=Ln;n("3b1e");const Dn=se()(An,[["render",Tn],["__scopeId","data-v-06f7d624"]]);var Nn=Dn,Un=n("dd44"),Bn=n.n(Un);const Mn={class:"face-list collapse"},Vn={class:"face-list-collapse"},Rn=["onClick"],xn=["src"],Pn={class:"face-list face-list-expand"},Gn=["onClick"],Fn=["src"],Hn={key:1,class:"emoji-content"},zn={class:"emoji-react",ref:"container"},Kn=["onClick"],Yn=["src"],Wn={class:"emoji-react-item-content"};function $n(e,t,n,o,a,i){var r;return Object(U["openBlock"])(),Object(U["createElementBlock"])(U["Fragment"],null,["dropdown"===e.type?(Object(U["openBlock"])(),Object(U["createElementBlock"])("div",{key:0,class:Object(U["normalizeClass"])(["dialog-emoji",null!==(r=e.env)&&void 0!==r&&r.isH5?"dialog-emoji-h5":""])},[Object(U["createElementVNode"])("div",Mn,[Object(U["createElementVNode"])("ul",Vn,[(Object(U["openBlock"])(!0),Object(U["createElementBlock"])(U["Fragment"],null,Object(U["renderList"])(e.emojiCollapseList,(t,n)=>(Object(U["openBlock"])(),Object(U["createElementBlock"])("li",{class:"face-list-item",key:n,onClick:Object(U["withModifiers"])(n=>e.select(t),["stop"])},[Object(U["createElementVNode"])("img",{src:e.emojiUrl+e.emojiMap[t]},null,8,xn)],8,Rn))),128))]),Object(U["createElementVNode"])("div",{class:"face-list-button",onClick:t[0]||(t[0]=Object(U["withModifiers"])(t=>e.isCollapse=!e.isCollapse,["stop"]))},[Object(U["createElementVNode"])("i",{class:Object(U["normalizeClass"])(["icon",[e.isCollapse?"icon-expand":"icon-collapse"]])},null,2)])]),Object(U["withDirectives"])(Object(U["createElementVNode"])("ul",Pn,[(Object(U["openBlock"])(!0),Object(U["createElementBlock"])(U["Fragment"],null,Object(U["renderList"])(e.emojiExpandList,(t,n)=>(Object(U["openBlock"])(),Object(U["createElementBlock"])("li",{class:"face-list-item",key:n,onClick:Object(U["withModifiers"])(n=>e.select(t),["stop"])},[Object(U["createElementVNode"])("img",{src:e.emojiUrl+e.emojiMap[t]},null,8,Fn)],8,Gn))),128))],512),[[U["vShow"],!e.isCollapse]])],2)):Object(U["createCommentVNode"])("",!0),"content"===e.type?(Object(U["openBlock"])(),Object(U["createElementBlock"])("div",Hn,[Object(U["createElementVNode"])("ul",zn,[(Object(U["openBlock"])(!0),Object(U["createElementBlock"])(U["Fragment"],null,Object(U["renderList"])(e.handleEmojiReact(e.message),(t,n)=>Object(U["withDirectives"])((Object(U["openBlock"])(),Object(U["createElementBlock"])("li",{class:"emoji-react-item",key:n,onClick:Object(U["withModifiers"])(t=>e.select(n),["stop"])},[Object(U["createElementVNode"])("img",{src:e.emojiUrl+e.emojiMap[n]},null,8,Yn),Object(U["createElementVNode"])("div",Wn,[Object(U["createElementVNode"])("span",null,Object(U["toDisplayString"])(e.handleEmojiReactItem(t)),1)])],8,Kn)),[[U["vShow"],t&&(null===t||void 0===t?void 0:t.length)]])),128))],512)])):Object(U["createCommentVNode"])("",!0)],64)}var qn=n("52da"),Qn=n.n(qn),Xn=n("c959"),Zn=n("17da"),Jn=Object(U["defineComponent"])({props:{message:{type:Object,default:()=>({})},emojiList:{type:Array,default:()=>[]},type:{type:String,default:""}},emits:["handleCollapse"],setup(e,t){const{TUIServer:n}=ns,o=Object(U["reactive"])({message:{},emojiUrl:Zn["d"],emojiMap:Zn["b"],emojiName:Zn["c"],isCollapse:!0,types:Xn["a"].TYPES,env:n.TUICore.TUIEnv,type:e.type,emojiReacts:{},allMemberList:[]}),i=Object(U["ref"])({}),r=Object(U["computed"])(()=>{var e;return Qn()(e=o.emojiName).call(e,0,6)}),s=Object(U["computed"])(()=>{var e;return Qn()(e=o.emojiName).call(e,6)}),l=e=>{n.emojiReact(o.message,e)},c=e=>{try{var t;if(null===e||void 0===e||!e.cloudCustomData)return;const n=null===(t=Object(D["a"])(null===e||void 0===e?void 0:e.cloudCustomData))||void 0===t||null===(t=t.messageReact)||void 0===t?void 0:t.reacts;if(!n)return;return o.emojiReacts=n,n}catch(n){console.warn(n)}},d=e=>{let t="";return null===e||void 0===e||a()(e).call(e,(e,n)=>{var a;const i=null===(a=o.allMemberList)||void 0===a?void 0:C()(a).call(a,t=>t.userID===e);t=t+(i?null===i||void 0===i?void 0:i.nick:e)+", "}),t.length&&(t=t.substring(0,Ie()(t).call(t,","))),t},u=e=>{var t,a,i,r,s;const l=null===n||void 0===n?void 0:n.currentStore;switch(null===e||void 0===e?void 0:e.conversationType){case Xn["a"].TYPES.CONV_C2C:o.allMemberList=[{userID:null===l||void 0===l||null===(t=l.conversation)||void 0===t||null===(t=t.userProfile)||void 0===t?void 0:t.userID,nick:null===l||void 0===l||null===(a=l.conversation)||void 0===a||null===(a=a.userProfile)||void 0===a?void 0:a.nick},{userID:null===l||void 0===l||null===(i=l.selfInfo)||void 0===i?void 0:i.userID,nick:null===l||void 0===l||null===(r=l.selfInfo)||void 0===r?void 0:r.nick}];break;case Xn["a"].TYPES.CONV_GROUP:o.allMemberList=null===l||void 0===l||null===(s=l.allMemberList)||void 0===s?void 0:s.memberList;break;default:break}};return Object(U["watch"])(()=>e.message,(t,n)=>{o.message=e.message,(null===t||void 0===t?void 0:t.conversationID)!==(null===n||void 0===n?void 0:n.conversationID)&&u(t)},{deep:!0,immediate:!0}),Object(U["watch"])(()=>o.isCollapse,(e,n)=>{var a;e!==n&&null!==o&&void 0!==o&&null!==(a=o.env)&&void 0!==a&&a.isH5&&t.emit("handleCollapse",e)}),{...Object(U["toRefs"])(o),emojiCollapseList:r,emojiExpandList:s,select:l,handleEmojiReact:c,handleEmojiReactItem:d,container:i}}});n("7af0");const eo=se()(Jn,[["render",$n],["__scopeId","data-v-3266b21c"]]);var to=eo;const no=Object(U["defineComponent"])({props:{data:{type:Object,default:()=>({})},messagesList:{type:Array,default:()=>[]},isH5:{type:Boolean,default:!1},needGroupReceipt:{type:Boolean,default:!1},needReplies:{type:Boolean,default:!0},flow:{type:String,default:""},needEmojiReact:{type:Boolean,default:!1}},emits:["jumpID","resendMessage","showReadReceiptDialog","showRepliesDialog","dropDownOpen"],components:{MessageReference:Nn,MessageEmojiReact:to},setup(e,t){const{t:n}=window.TUIKitTUICore.config.i18n.useI18n(),{TUIServer:o}=ns,a=Object(U["reactive"])({env:Object(L["b"])(),message:{},messagesList:[],show:!1,type:{},referenceMessage:{},referenceForShow:{},allMessageID:"",needGroupReceipt:!1,needReplies:!0,replies:[],face:[],url:"",needEmojiReact:!1}),i=Object(U["ref"])(!1);Object(U["watch"])(()=>{var t;return null===(t=e.data)||void 0===t?void 0:t.ID},()=>{i.value=!1});const s=()=>{i.value=!0};Object(U["watchEffect"])(()=>{var t;if(a.type=Qt["a"],a.messagesList=e.messagesList,a.needEmojiReact=e.needEmojiReact,a.message=Object(D["b"])((null===(t=a.messagesList)||void 0===t?void 0:C()(t).call(t,t=>{var n;return(null===t||void 0===t?void 0:t.ID)===(null===(n=e.message)||void 0===n?void 0:n.ID)}))||e.data),a.needGroupReceipt=e.needGroupReceipt,a.needReplies=e.needReplies,a.message.cloudCustomData){var n;const e=[],t=Object(D["a"])(a.message.cloudCustomData);a.replies=(null===t||void 0===t||null===(n=t.messageReplies)||void 0===n?void 0:n.replies)||[],a.referenceMessage=t.messageReply?t.messageReply:"";for(let n=0;n{c.value=!c.value,c.value&&(t.emit("dropDownOpen",d),Object(U["nextTick"])(()=>{var t,n,o,i,r,s,l,c,u,p,m;const b=null===d||void 0===d||null===(t=d.value)||void 0===t?void 0:t.children[0],h=document.getElementsByClassName("dialog-item")[0],v=null===d||void 0===d||null===(n=d.value)||void 0===n?void 0:n.offsetParent,f=Object(hn["useElementBounding"])(v),g=document.getElementById("messageEle"),O=Object(hn["useElementBounding"])(g),j=null===O||void 0===O||null===(o=O.left)||void 0===o?void 0:o.value,y=(null===O||void 0===O||null===(i=O.left)||void 0===i?void 0:i.value)+g.clientWidth-b.clientWidth+76,I=null===O||void 0===O||null===(r=O.top)||void 0===r?void 0:r.value,C=(null===O||void 0===O||null===(s=O.top)||void 0===s?void 0:s.value)+g.clientHeight-b.clientHeight,{clientX:E,clientY:k}=e;if(null!==a&&void 0!==a&&null!==(l=a.env)&&void 0!==l&&l.isH5){var w,_,S,T;(null===f||void 0===f||null===(w=f.top)||void 0===w?void 0:w.value)<=(null===h||void 0===h?void 0:h.clientHeight)?b.style.bottom=`-${null===h||void 0===h?void 0:h.clientHeight}px`:"in"===(null===a||void 0===a||null===(T=a.message)||void 0===T?void 0:T.flow)?b.style.top=`-${(null===h||void 0===h?void 0:h.clientHeight)-20}px`:b.style.top=`-${null===h||void 0===h?void 0:h.clientHeight}px`;const e=(null===f||void 0===f||null===(_=f.left)||void 0===_?void 0:_.value)+(null===f||void 0===f||null===(S=f.width)||void 0===S?void 0:S.value)/2;e>h.clientWidth/2&&e<(null===g||void 0===g?void 0:g.clientWidth)-h.clientWidth/2?b.style.left="calc(50% - 135px)":e<=h.clientWidth/2?b.style.left="-20px":b.style.left=`-${h.clientWidth/2+10}px`}else{switch(!0){case E>j&&E=y:b.style.right=Math.max((null===f||void 0===f||null===(u=f.left)||void 0===u?void 0:u.value)+(null===v||void 0===v?void 0:v.clientWidth)-e.clientX-256,-10)+"px";break}switch(!0){case k>I&&k=C:b.style.bottom=(null===f||void 0===f||null===(m=f.top)||void 0===m?void 0:m.value)+(null===v||void 0===v?void 0:v.clientHeight)-e.clientY+"px",b.style.cssText+="align-items:end;";break}}}))},p=o=>{var i,r,s;if(null!==(i=a.referenceMessage)&&void 0!==i&&i.messageID&&te()(r=a.allMessageID).call(r,null===(s=a.referenceMessage)||void 0===s?void 0:s.messageID))t.emit("jumpID",a.referenceMessage.messageID);else{const t=n("TUIChat.无法定位到原消息");Object(vn["b"])(t,e)}};Object(hn["onClickOutside"])(d,()=>{c.value=!1});const m=e=>{var t;null!==a&&void 0!==a&&null!==(t=a.env)&&void 0!==t&&t.isH5&&u(e)};Object(hn["onLongPress"])(l,m);const b=e=>{t.emit("resendMessage",e)},v=e=>!("out"!==e.flow||"success"!==e.status||!e.needReadReceipt||"GROUP"===e.conversationType),f=e=>{var t,n,o;return null!==e&&void 0!==e&&null!==(t=e.readReceiptInfo)&&void 0!==t&&t.isPeerRead||void 0===(null===e||void 0===e||null===(n=e.readReceiptInfo)||void 0===n?void 0:n.isPeerRead)&&null!==e&&void 0!==e&&e.isPeerRead||0===(null===e||void 0===e||null===(o=e.readReceiptInfo)||void 0===o?void 0:o.unreadCount)?"":"unRead"},g=e=>{var t,a;switch(console.log(e.conversationType),e.conversationType){case o.TUICore.TIM.TYPES.CONV_C2C:return null!==e&&void 0!==e&&null!==(t=e.readReceiptInfo)&&void 0!==t&&t.isPeerRead||void 0===(null===e||void 0===e||null===(a=e.readReceiptInfo)||void 0===a?void 0:a.isPeerRead)&&null!==e&&void 0!==e&&e.isPeerRead?n("TUIChat.已读"):n("TUIChat.未读");case o.TUICore.TIM.TYPES.CONV_GROUP:return 0===e.readReceiptInfo.unreadCount?n("TUIChat.全部已读"):0===e.readReceiptInfo.readCount||void 0===e.readReceiptInfo.unreadCount&&void 0===e.readReceiptInfo.readCount?n("TUIChat.未读"):""+(e.readReceiptInfo.readCount+n("TUIChat.人已读"));default:return""}},O=e=>{t.emit("showReadReceiptDialog",e,"receipt")},j=(o,i)=>{var r;if(i)t.emit("showRepliesDialog",o,"replies");else if(null!==(r=a.referenceMessage)&&void 0!==r&&r.messageRootID){var s;const o=null===(s=a.messagesList)||void 0===s?void 0:C()(s).call(s,e=>{var t;return e.ID===(null===(t=a.referenceMessage)||void 0===t?void 0:t.messageRootID)});if(o)return void t.emit("showRepliesDialog",o,"replies");{const t=n("TUIChat.无法定位到原消息");Object(vn["b"])(t,e)}}},y=e=>{const t=["content"];return e?(t.push("content-"+a.message.flow),a.message.type!==Xn["a"].TYPES.MSG_IMAGE||I(e)||t.push("content-image"),a.message.type!==Xn["a"].TYPES.MSG_VIDEO||I(e)||t.push("content-video"),t):t},I=e=>{try{var t;if(null===e||void 0===e||!e.cloudCustomData)return;const n=null===(t=Object(D["a"])(null===e||void 0===e?void 0:e.cloudCustomData))||void 0===t||null===(t=t.messageReact)||void 0===t?void 0:t.reacts;return!(!n||0===r()(n).length)}catch(n){return console.warn(n),!1}},E=e=>{let t=null===e||void 0===e?void 0:e.avatar.split("/");return null!==e&&void 0!==e&&e.avatar&&t[t.length-1]?null===e||void 0===e?void 0:e.avatar:""};return{getSrc:E,defaultAvatar:Bn.a,avatarError:i,onAvatarError:s,...Object(U["toRefs"])(a),toggleDialog:u,htmlRefHook:l,jumpToAim:p,dropdown:c,dropdownRef:d,resendMessage:b,showReadReceiptTag:v,readReceiptStyle:f,readReceiptCont:g,showReadReceiptDialog:O,showRepliesDialog:j,handleImageOrVideoBubbleStyle:y,isEmojiReactionInMessage:I,TIM:Xn["a"]}}});var oo=no;n("d814");const ao=se()(oo,[["render",mn],["__scopeId","data-v-0aa7479d"]]);var io=ao;const ro={class:"revoke"},so={key:0},lo={key:1};function co(e,t,n,o,a,i){return Object(U["openBlock"])(),Object(U["createElementBlock"])("div",ro,["in"===e.message.flow?(Object(U["openBlock"])(),Object(U["createElementBlock"])("label",so,Object(U["toDisplayString"])(e.message.nick||e.message.from),1)):(Object(U["openBlock"])(),Object(U["createElementBlock"])("label",lo,Object(U["toDisplayString"])(e.$t("TUIChat.您")),1)),Object(U["createElementVNode"])("span",null,Object(U["toDisplayString"])(e.$t("TUIChat.撤回了一条消息")),1),"out"===e.message.flow&&e.isEdit?(Object(U["openBlock"])(),Object(U["createElementBlock"])("span",{key:2,class:"edit",onClick:t[0]||(t[0]=(...t)=>e.edit&&e.edit(...t))},Object(U["toDisplayString"])(e.$t("TUIChat.重新编辑")),1)):Object(U["createCommentVNode"])("",!0)])}var uo=Object(U["defineComponent"])({props:{data:{type:Object,default:()=>({})},isEdit:{type:Boolean,default:()=>!1}},setup(e,t){const n=Object(U["reactive"])({message:{},isEdit:!1});Object(U["watchEffect"])(()=>{n.message=e.data,n.isEdit=e.isEdit});const o=()=>{t.emit("edit",n.message)};return{...Object(U["toRefs"])(n),edit:o}}});n("29ef");const po=se()(uo,[["render",co],["__scopeId","data-v-dedd5890"]]);var mo=po;const bo={class:"message-system"},ho={class:"list"},vo={key:0,class:"btn-box"},fo=["onClick"],go=["onClick"];function Oo(e,t,n,o,a,i){return Object(U["openBlock"])(),Object(U["createElementBlock"])("div",bo,[Object(U["createElementVNode"])("ul",ho,[(Object(U["openBlock"])(!0),Object(U["createElementBlock"])(U["Fragment"],null,Object(U["renderList"])(e.messageList,(n,o)=>{var a;return Object(U["openBlock"])(),Object(U["createElementBlock"])("li",{key:o},[n.type===e.types.MSG_GRP_TIP||n.type===e.types.MSG_GRP_SYS_NOTICE?(Object(U["openBlock"])(),Object(U["createElementBlock"])(U["Fragment"],{key:0},[t[0]||(t[0]=Object(U["createElementVNode"])("i",{class:"icon icon-system"},null,-1)),Object(U["createElementVNode"])("span",null,Object(U["toDisplayString"])(e.translateGroupSystemNotice(n)),1),1===(null===n||void 0===n||null===(a=n.payload)||void 0===a?void 0:a.operationType)?(Object(U["openBlock"])(),Object(U["createElementBlock"])("div",vo,[Object(U["createElementVNode"])("button",{class:"btn btn-default",onClick:t=>e.handleApplication("Agree",n)},"接受",8,fo),Object(U["createElementVNode"])("button",{class:"btn btn-cancel",onClick:t=>e.handleApplication("Reject",n)},"拒绝",8,go)])):Object(U["createCommentVNode"])("",!0)],64)):Object(U["createCommentVNode"])("",!0)])}),128))])])}var jo=Object(U["defineComponent"])({props:{data:{type:Array,default:()=>[]},types:{type:Object,default:()=>({})}},setup(e,t){const n=Object(U["reactive"])({messageList:[],types:{}});Object(U["watchEffect"])(()=>{n.messageList=e.data,n.types=e.types});const o=(e,n)=>{const o={handleAction:e,message:n};t.emit("application",o)};return{...Object(U["toRefs"])(n),translateGroupSystemNotice:D["x"],handleApplication:o}}});n("181e");const yo=se()(jo,[["render",Oo],["__scopeId","data-v-55c508aa"]]);var Io=yo;function Co(e,t,n,o,a,i){var r,s,l;const c=Object(U["resolveComponent"])("MessageEmojiReact");return Object(U["openBlock"])(),Object(U["createElementBlock"])("div",{class:Object(U["normalizeClass"])(["dialog-item",null!==(r=e.env)&&void 0!==r&&r.isH5?"dialog-item-h5":"dialog-item-web"])},[null!==(s=e.env)&&void 0!==s&&s.isH5&&e.needEmojiReact?(Object(U["openBlock"])(),Object(U["createBlock"])(c,{key:0,message:e.message,type:"dropdown",onHandleCollapse:e.handleCollapse},null,8,["message","onHandleCollapse"])):Object(U["createCommentVNode"])("",!0),Object(U["withDirectives"])(Object(U["createElementVNode"])("ul",{class:Object(U["normalizeClass"])(["dialog-item-list",null!==(l=e.env)&&void 0!==l&&l.isH5?"dialog-item-list-h5":"dialog-item-list-web"])},[e.message.type!==e.types.MSG_FILE&&e.message.type!==e.types.MSG_VIDEO&&e.message.type!==e.types.MSG_IMAGE||e.env.isH5?Object(U["createCommentVNode"])("",!0):(Object(U["openBlock"])(),Object(U["createElementBlock"])("li",{key:0,onClick:t[0]||(t[0]=t=>e.openMessage(e.message))},[t[7]||(t[7]=Object(U["createElementVNode"])("i",{class:"icon icon-msg-copy"},null,-1)),Object(U["createElementVNode"])("span",null,Object(U["toDisplayString"])(e.$t("TUIChat.打开")),1)])),e.message.type===e.types.MSG_TEXT?(Object(U["openBlock"])(),Object(U["createElementBlock"])("li",{key:1,onClick:t[1]||(t[1]=t=>e.handleMessage(e.message,e.constant.handleMessage.copy))},[t[8]||(t[8]=Object(U["createElementVNode"])("i",{class:"icon icon-msg-copy"},null,-1)),Object(U["createElementVNode"])("span",null,Object(U["toDisplayString"])(e.$t("TUIChat.复制")),1)])):Object(U["createCommentVNode"])("",!0),"success"===e.message.status?(Object(U["openBlock"])(),Object(U["createElementBlock"])("li",{key:2,onClick:t[2]||(t[2]=t=>e.handleMessage(e.message,e.constant.handleMessage.forward))},[t[9]||(t[9]=Object(U["createElementVNode"])("i",{class:"icon icon-msg-forward"},null,-1)),Object(U["createElementVNode"])("span",null,Object(U["toDisplayString"])(e.$t("TUIChat.转发")),1)])):Object(U["createCommentVNode"])("",!0),"success"===e.message.status?(Object(U["openBlock"])(),Object(U["createElementBlock"])("li",{key:3,onClick:t[3]||(t[3]=t=>e.handleMessage(e.message,e.constant.handleMessage.reference))},[t[10]||(t[10]=Object(U["createElementVNode"])("i",{class:"icon icon-msg-quote"},null,-1)),Object(U["createElementVNode"])("span",null,Object(U["toDisplayString"])(e.$t("TUIChat.引用")),1)])):Object(U["createCommentVNode"])("",!0),"success"===e.message.status?(Object(U["openBlock"])(),Object(U["createElementBlock"])("li",{key:4,onClick:t[4]||(t[4]=t=>e.handleMessage(e.message,e.constant.handleMessage.reply))},[t[11]||(t[11]=Object(U["createElementVNode"])("i",{class:"icon icon-msg-reply"},null,-1)),Object(U["createElementVNode"])("span",null,Object(U["toDisplayString"])(e.$t("TUIChat.回复")),1)])):Object(U["createCommentVNode"])("",!0),"out"===e.message.flow&&"success"===e.message.status&&e.message.type!==e.types.MSG_CUSTOM?(Object(U["openBlock"])(),Object(U["createElementBlock"])("li",{key:5,onClick:t[5]||(t[5]=t=>e.handleMessage(e.message,e.constant.handleMessage.revoke))},[t[12]||(t[12]=Object(U["createElementVNode"])("i",{class:"icon icon-msg-revoke"},null,-1)),Object(U["createElementVNode"])("span",null,Object(U["toDisplayString"])(e.$t("TUIChat.撤回")),1)])):Object(U["createCommentVNode"])("",!0),"success"===e.message.status?(Object(U["openBlock"])(),Object(U["createElementBlock"])("li",{key:6,onClick:t[6]||(t[6]=t=>e.handleMessage(e.message,e.constant.handleMessage.delete))},[t[13]||(t[13]=Object(U["createElementVNode"])("i",{class:"icon icon-msg-del"},null,-1)),Object(U["createElementVNode"])("span",null,Object(U["toDisplayString"])(e.$t("TUIChat.删除")),1)])):Object(U["createCommentVNode"])("",!0)],2),[[U["vShow"],e.showToolList]])],2)}var Eo=n("a019"),ko=Object(U["defineComponent"])({props:{message:{type:Object,default:()=>({})},needEmojiReact:{type:Boolean,default:!1}},components:{MessageEmojiReact:to},setup(e,t){var n,o;const a=null===(n=window)||void 0===n||null===(n=n.TUIKitTUICore)||void 0===n||null===(n=n.TUIServer)||void 0===n?void 0:n.TUIChat,i=(null===(o=window)||void 0===o||null===(o=o.TUIKitTUICore)||void 0===o?void 0:o.isOfficial)&&Jt["c"]&&Object(Jt["c"])()||{},r=Object(U["reactive"])({message:{},show:!1,types:Xn["a"].TYPES,env:a.TUICore.TUIEnv,showToolList:!0,needEmojiReact:!1});Object(U["watchEffect"])(()=>{r.needEmojiReact=e.needEmojiReact}),Object(U["watch"])(()=>e.message,()=>{r.message=e.message},{deep:!0,immediate:!0});const s=e=>{let t="";switch(e.type){case r.types.MSG_FILE:t=e.payload.fileUrl;break;case r.types.MSG_VIDEO:t=e.payload.remoteVideoUrl;break;case r.types.MSG_IMAGE:t=e.payload.imageInfoArray[0].url;break}window.open(t,"_blank")},l=async(e,n)=>{switch(n){case Qt["a"].handleMessage.revoke:try{var o;await a.revokeMessage(e),Zt.getInstance().reportEvent({name:"messageOptions",ext1:"messageRevoke"}),(null===(o=window)||void 0===o||null===(o=o.TUIKitTUICore)||void 0===o?void 0:o.isOfficial)&&(null===i||void 0===i?void 0:i.commit)&&(null===i||void 0===i||i.commit("handleTask",1))}catch(c){Object(vn["b"])(c,r.env)}break;case Qt["a"].handleMessage.copy:try{var s;if((null===e||void 0===e?void 0:e.type)===r.types.MSG_TEXT&&null!==e&&void 0!==e&&null!==(s=e.payload)&&void 0!==s&&s.text){var l;const{toClipboard:t}=Object(Eo["a"])();await t(null===e||void 0===e||null===(l=e.payload)||void 0===l?void 0:l.text)}}catch(c){Object(vn["b"])(c,r.env)}break;case Qt["a"].handleMessage.delete:await a.deleteMessage([e]),Zt.getInstance().reportEvent({name:"messageOptions",ext1:"messageDelete"});break;case Qt["a"].handleMessage.forward:Zt.getInstance().reportEvent({name:"messageOptions",ext1:"messageForward"}),t.emit("handleMessage",e,Qt["a"].handleMessage.forward);break;case Qt["a"].handleMessage.reference:t.emit("handleMessage",e,Qt["a"].handleMessage.reference);break;case Qt["a"].handleMessage.reply:t.emit("handleMessage",e,Qt["a"].handleMessage.reply);break}},c=e=>{var t;null!==r&&void 0!==r&&null!==(t=r.env)&&void 0!==t&&t.isH5&&(r.showToolList=e)};return{...Object(U["toRefs"])(r),openMessage:s,handleMessage:l,constant:Qt["a"],handleCollapse:c}}});n("d5f0");const wo=se()(ko,[["render",Co],["__scopeId","data-v-638a1c2f"]]);var _o=wo;const So={class:"message-item"};var To=Object(U["defineComponent"])({__name:"index",props:{message:{type:Object,default:()=>({})},beforeMessage:{type:Object,default:()=>({})},types:{type:Object,default:()=>({})},env:{type:Object,default:()=>({})},messageList:{type:Array,default:()=>[]},displayGroupMessageReadReceipt:{type:Boolean,default:!0},displayEmojiReactions:{type:Boolean,default:!0}},emits:["handleEditor","showDialog","uploading","jumpID","resendMessage"],setup(e,{emit:t}){const n=e,o=t,{message:a,types:i,env:r,messageList:s,displayGroupMessageReadReceipt:l,displayEmojiReactions:c}=Object(U["toRefs"])(n),d=e=>{o("handleEditor",e,"reedit")},u=(e,t)=>{if(e&&t)switch(t){case Qt["a"].handleMessage.forward:o("showDialog",e,Qt["a"].handleMessage.forward);break;case Qt["a"].handleMessage.reference:o("handleEditor",e,Qt["a"].handleMessage.reference);break;case Qt["a"].handleMessage.reply:o("handleEditor",e,Qt["a"].handleMessage.reply);break;default:break}},p=e=>{e&&o("showDialog",e,"previewImage")},m=e=>{e&&o("showDialog",e,"receipt")},b=e=>{e&&o("showDialog",e,"replies")},h=()=>{o("uploading")},v=e=>{e&&o("resendMessage",e)};return(e,t)=>(Object(U["openBlock"])(),Object(U["createElementBlock"])("div",So,[Object(U["unref"])(D["u"])(Object(U["unref"])(a))&&Object(U["unref"])(a).type!==Object(U["unref"])(i).MSG_CUSTOM?(Object(U["openBlock"])(),Object(U["createBlock"])(ln,{key:0,data:Object(U["unref"])(D["s"])(Object(U["unref"])(a))},null,8,["data"])):Object(U["unref"])(a).isRevoked?(Object(U["openBlock"])(),Object(U["createBlock"])(mo,{key:2,isEdit:Object(U["unref"])(a).type===Object(U["unref"])(i).MSG_TEXT,data:Object(U["unref"])(a),onEdit:t[0]||(t[0]=e=>d(Object(U["unref"])(a)))},null,8,["isEdit","data"])):(Object(U["openBlock"])(),Object(U["createBlock"])(io,{key:1,style:{background:"#f5f5f5 !important"},data:Object(U["unref"])(a),isH5:Object(U["unref"])(r).isH5,types:Object(U["unref"])(i),messagesList:Object(U["unref"])(s),needGroupReceipt:Object(U["unref"])(l),needReplies:!0,needEmojiReact:Object(U["unref"])(c),onResendMessage:v,onShowReadReceiptDialog:m,onShowRepliesDialog:b},{dialog:Object(U["withCtx"])(()=>{var e;return[Object(U["createVNode"])(_o,{message:Object(U["unref"])(a),needEmojiReact:Object(U["unref"])(c),onHandleMessage:u},null,8,["message","needEmojiReact"]),null!==(e=Object(U["unref"])(r))&&void 0!==e&&e.isH5||!Object(U["unref"])(c)?Object(U["createCommentVNode"])("",!0):(Object(U["openBlock"])(),Object(U["createBlock"])(to,{key:0,message:Object(U["unref"])(a),type:"dropdown"},null,8,["message"]))]}),default:Object(U["withCtx"])(()=>[Object(U["unref"])(a).type===Object(U["unref"])(i).MSG_TEXT?(Object(U["openBlock"])(),Object(U["createBlock"])(ce,{key:0,data:Object(U["unref"])(D["r"])(Object(U["unref"])(a))},null,8,["data"])):Object(U["createCommentVNode"])("",!0),Object(U["unref"])(a).type===Object(U["unref"])(i).MSG_IMAGE?(Object(U["openBlock"])(),Object(U["createBlock"])(we,{key:1,isH5:Object(U["unref"])(r).isH5,data:Object(U["unref"])(D["j"])(Object(U["unref"])(a)),onUploading:h,onPreviewImage:p},null,8,["isH5","data"])):Object(U["createCommentVNode"])("",!0),Object(U["unref"])(a).type===Object(U["unref"])(i).MSG_VIDEO?(Object(U["openBlock"])(),Object(U["createBlock"])(Ve,{key:2,isH5:Object(U["unref"])(r).isH5,data:Object(U["unref"])(D["t"])(Object(U["unref"])(a)),onUploading:h},null,8,["isH5","data"])):Object(U["createCommentVNode"])("",!0),Object(U["unref"])(a).type===Object(U["unref"])(i).MSG_AUDIO?(Object(U["openBlock"])(),Object(U["createBlock"])(Fe,{key:3,data:Object(U["unref"])(D["e"])(Object(U["unref"])(a))},null,8,["data"])):Object(U["createCommentVNode"])("",!0),Object(U["unref"])(a).type===Object(U["unref"])(i).MSG_FILE?(Object(U["openBlock"])(),Object(U["createBlock"])(Ze,{key:4,data:Object(U["unref"])(D["i"])(Object(U["unref"])(a))},null,8,["data"])):Object(U["createCommentVNode"])("",!0),Object(U["unref"])(a).type===Object(U["unref"])(i).MSG_FACE?(Object(U["openBlock"])(),Object(U["createBlock"])(at,{key:5,data:Object(U["unref"])(D["h"])(Object(U["unref"])(a)),isH5:Object(U["unref"])(r).isH5},null,8,["data","isH5"])):Object(U["createCommentVNode"])("",!0),Object(U["unref"])(a).type===Object(U["unref"])(i).MSG_LOCATION?(Object(U["openBlock"])(),Object(U["createBlock"])(ut,{key:6,data:Object(U["unref"])(D["k"])(Object(U["unref"])(a))},null,8,["data"])):Object(U["createCommentVNode"])("",!0),Object(U["unref"])(a).type===Object(U["unref"])(i).MSG_CUSTOM?(Object(U["openBlock"])(),Object(U["createBlock"])(nn,{key:7,data:Object(U["unref"])(D["g"])(Object(U["unref"])(a))},null,8,["data"])):Object(U["createCommentVNode"])("",!0),Object(U["unref"])(a).type===Object(U["unref"])(i).MSG_MERGER?(Object(U["openBlock"])(),Object(U["createBlock"])(gt,{key:8,data:Object(U["unref"])(D["l"])(Object(U["unref"])(a))},null,8,["data"])):Object(U["createCommentVNode"])("",!0)]),_:1},8,["data","isH5","types","messagesList","needGroupReceipt","needEmojiReact"]))]))}});n("5e50");const Lo=se()(To,[["__scopeId","data-v-1f1c862e"]]);var Ao=Lo,Do=Object(U["defineComponent"])({__name:"message-timestamp",props:{currTime:{type:Number,default:0},prevTime:{type:Number,default:0}},setup(e){var t;const n=e,{t:o}=null===(t=window)||void 0===t||null===(t=t.TUIKitTUICore)||void 0===t||null===(t=t.config)||void 0===t||null===(t=t.i18n)||void 0===t?void 0:t.useI18n(),{currTime:a,prevTime:i}=Object(U["toRefs"])(n),r=Object(U["ref"])(!1),s=Object(U["ref"])(""),l=(e,t)=>{if(r.value=!1,e<=0)return"";if(!t||t<=0)return r.value=!0,c(1e3*e);{const n=600,o=e-t;if(o>=n)return r.value=!0,c(1e3*e)}return""};function c(e){const t=(new Date).setHours(0,0,0,0),n=new Date((new Date).getFullYear(),0,1,0,0,0,0).getTime(),a=new Date(e),i=864e5,r=7*i,s=t-a.getTime();function l(e){return e<10?"0"+e:e.toString()}if(s<=0)return`${l(a.getHours())}:${l(a.getMinutes())}`;if(s<=i)return`${o("time.昨天")} ${l(a.getHours())}:${l(a.getMinutes())}`;if(s<=r-i){const e=["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],t=e[a.getDay()];return`${o("time."+t)} ${l(a.getHours())}:${l(a.getMinutes())}`}return a.getTime()>=n?`${a.getMonth()+1}/${a.getDate()} ${l(a.getHours())}:${l(a.getMinutes())}`:`${a.getFullYear()}/${a.getMonth()+1}/${a.getDate()} ${l(a.getHours())}:${l(a.getMinutes())}`}return Object(U["watch"])(()=>[a.value,i.value],(e,t)=>{(null===e||void 0===e?void 0:e.toString())!==(null===t||void 0===t?void 0:t.toString())&&(s.value=l(a.value,i.value))},{immediate:!0}),(e,t)=>Object(U["withDirectives"])((Object(U["openBlock"])(),Object(U["createElementBlock"])("div",{class:"message-timestamp"},Object(U["toDisplayString"])(s.value),513)),[[U["vShow"],r.value]])}});n("944d");const No=se()(Do,[["__scopeId","data-v-673faa2b"]]);var Uo=No;const Bo={class:"manage-header"},Mo={class:"manage-header-left"},Vo={key:0,class:"main"},Ro={class:"userInfo space-top"},xo=["onClick"],Po=["src"],Go={key:0},Fo={key:1},Ho={class:"groupID"},zo=["title"],Ko=["src"],Yo={class:"footer space-top"},Wo={key:4,class:"admin"},$o={key:0,class:"admin-list"},qo=["src"],Qo={key:1,class:"admin-content space-top"},Xo={key:2,class:"admin-list last"},Zo=["src"],Jo={key:0,class:"delDialog-title"},ea={key:1,class:"delDialog-title"};function ta(e,t,n,o,a,i){var r,s,l;const c=Object(U["resolveComponent"])("ManageName"),d=Object(U["resolveComponent"])("ManageMember"),u=Object(U["resolveComponent"])("MemeberProfile"),p=Object(U["resolveComponent"])("ManageNotification"),m=Object(U["resolveComponent"])("Slider"),b=Object(U["resolveComponent"])("Transfer"),h=Object(U["resolveComponent"])("Mask"),v=Object(U["resolveComponent"])("Dialog");return Object(U["openBlock"])(),Object(U["createElementBlock"])("div",null,[Object(U["createElementVNode"])("i",{class:"icon icon-chat-setting",onClick:t[0]||(t[0]=(...t)=>e.toggleShow&&e.toggleShow(...t))}),e.show?(Object(U["openBlock"])(),Object(U["createElementBlock"])("div",{key:0,class:Object(U["normalizeClass"])(["manage",[e.isH5?"manage-h5":""]]),ref:"dialog"},[Object(U["createElementVNode"])("header",Bo,[e.isH5&&!e.currentTab?(Object(U["openBlock"])(),Object(U["createElementBlock"])("i",{key:0,class:"icon icon-back",onClick:t[1]||(t[1]=(...t)=>e.toggleShow&&e.toggleShow(...t))})):Object(U["createCommentVNode"])("",!0),Object(U["createElementVNode"])("aside",Mo,[e.currentTab?(Object(U["openBlock"])(),Object(U["createElementBlock"])("i",{key:0,class:"icon icon-back",onClick:t[2]||(t[2]=t=>e.setTab(""))})):Object(U["createCommentVNode"])("",!0),Object(U["createElementVNode"])("main",null,[Object(U["createElementVNode"])("h1",null,Object(U["toDisplayString"])(e.$t("TUIChat.manage."+e.TabName)),1)])]),Object(U["createElementVNode"])("span",null,[e.isH5?Object(U["createCommentVNode"])("",!0):(Object(U["openBlock"])(),Object(U["createElementBlock"])("i",{key:0,class:"icon icon-close",onClick:t[3]||(t[3]=(...t)=>e.toggleShow&&e.toggleShow(...t))}))])]),e.currentTab?"member"===e.currentTab?(Object(U["openBlock"])(),Object(U["createBlock"])(d,{key:1,self:e.conversation.groupProfile.selfInfo,list:e.userInfo.list,total:~~e.conversation.groupProfile.memberCount,isShowDel:"Owner"===e.conversation.groupProfile.selfInfo.role,onMore:t[14]||(t[14]=t=>e.getMember("more")),onDel:e.submit,onHandleMemberProfileShow:e.handleMemberProfileShow},null,8,["self","list","total","isShowDel","onDel","onHandleMemberProfileShow"])):"profile"===e.currentTab?(Object(U["openBlock"])(),Object(U["createBlock"])(u,{key:2,userInfo:e.currentMember},null,8,["userInfo"])):"notification"===e.currentTab?(Object(U["openBlock"])(),Object(U["createBlock"])(p,{key:3,isAuth:e.isAuth,data:e.conversation.groupProfile,onUpdate:e.updateProfile},null,8,["isAuth","data","onUpdate"])):"admin"===e.currentTab?(Object(U["openBlock"])(),Object(U["createElementBlock"])("main",Wo,[e.isAdmin?(Object(U["openBlock"])(),Object(U["createElementBlock"])("div",$o,[Object(U["createElementVNode"])("label",null,Object(U["toDisplayString"])(e.$t("TUIChat.manage.群管理员")),1),Object(U["createElementVNode"])("ol",null,[(Object(U["openBlock"])(!0),Object(U["createElementBlock"])(U["Fragment"],null,Object(U["renderList"])(e.member.admin,(e,t)=>(Object(U["openBlock"])(),Object(U["createElementBlock"])("dl",{key:t},[Object(U["createElementVNode"])("dt",null,[Object(U["createElementVNode"])("img",{class:"avatar",src:(null===e||void 0===e?void 0:e.avatar)||"https://web.sdk.qcloud.com/component/TUIKit/assets/avatar_21.png",onerror:"this.src='https://web.sdk.qcloud.com/component/TUIKit/assets/avatar_21.png'"},null,8,qo)]),Object(U["createElementVNode"])("dd",null,Object(U["toDisplayString"])((null===e||void 0===e?void 0:e.nick)||(null===e||void 0===e?void 0:e.userID)),1)]))),128)),Object(U["createElementVNode"])("dl",null,[Object(U["createElementVNode"])("dt",{class:"avatar",onClick:t[15]||(t[15]=t=>e.toggleMask("addAdmin"))},"+")]),Object(U["createElementVNode"])("dl",null,[e.member.admin.length>0?(Object(U["openBlock"])(),Object(U["createElementBlock"])("dt",{key:0,class:"avatar",onClick:t[16]||(t[16]=t=>e.toggleMask("removeAdmin"))},"-")):Object(U["createCommentVNode"])("",!0)])])])):Object(U["createCommentVNode"])("",!0),e.isSetMuteTime?(Object(U["openBlock"])(),Object(U["createElementBlock"])("div",Qo,[Object(U["createElementVNode"])("aside",null,[Object(U["createElementVNode"])("label",null,Object(U["toDisplayString"])(e.$t("TUIChat.manage.全员禁言")),1),Object(U["createElementVNode"])("p",null,Object(U["toDisplayString"])(e.$t("TUIChat.manage.全员禁言开启后,只允许群主和管理员发言。")),1)]),Object(U["createVNode"])(m,{open:e.conversation.groupProfile.muteAllMembers,onChange:e.setAllMuteTime},null,8,["open","onChange"])])):Object(U["createCommentVNode"])("",!0),e.isSetMuteTime?(Object(U["openBlock"])(),Object(U["createElementBlock"])("div",Xo,[Object(U["createElementVNode"])("label",null,Object(U["toDisplayString"])(e.$t("TUIChat.manage.单独禁言人员")),1),Object(U["createElementVNode"])("ol",null,[(Object(U["openBlock"])(!0),Object(U["createElementBlock"])(U["Fragment"],null,Object(U["renderList"])(e.member.muteMember,(e,t)=>(Object(U["openBlock"])(),Object(U["createElementBlock"])("dl",{key:t},[Object(U["createElementVNode"])("dt",null,[Object(U["createElementVNode"])("img",{class:"avatar",src:(null===e||void 0===e?void 0:e.avatar)||"https://web.sdk.qcloud.com/component/TUIKit/assets/avatar_21.png",onerror:"this.src='https://web.sdk.qcloud.com/component/TUIKit/assets/avatar_21.png'"},null,8,Zo)]),Object(U["createElementVNode"])("dd",null,Object(U["toDisplayString"])((null===e||void 0===e?void 0:e.nick)||(null===e||void 0===e?void 0:e.userID)),1)]))),128)),Object(U["createElementVNode"])("dl",null,[Object(U["createElementVNode"])("dt",{class:"avatar",onClick:t[17]||(t[17]=t=>e.toggleMask("addMute"))},"+")]),Object(U["createElementVNode"])("dl",null,[e.member.muteMember.length>0?(Object(U["openBlock"])(),Object(U["createElementBlock"])("dt",{key:0,class:"avatar",onClick:t[18]||(t[18]=t=>e.toggleMask("removeMute"))},"- ")):Object(U["createCommentVNode"])("",!0)])])])):Object(U["createCommentVNode"])("",!0)])):Object(U["createCommentVNode"])("",!0):(Object(U["openBlock"])(),Object(U["createElementBlock"])("main",Vo,[Object(U["createVNode"])(c,{class:"space-top",isAuth:e.isAuth,isH5:e.isH5,data:e.conversation.groupProfile,onUpdate:e.updateProfile},null,8,["isAuth","isH5","data","onUpdate"]),Object(U["createElementVNode"])("div",Ro,[Object(U["createElementVNode"])("header",{class:"userInfo-header",onClick:t[4]||(t[4]=t=>e.setTab("member"))},[Object(U["createElementVNode"])("label",null,Object(U["toDisplayString"])(e.$t("TUIChat.manage.群成员")),1),Object(U["createElementVNode"])("p",null,[Object(U["createElementVNode"])("span",null,Object(U["toDisplayString"])(e.conversation.groupProfile.memberCount)+Object(U["toDisplayString"])(e.$t("TUIChat.manage.人")),1),t[22]||(t[22]=Object(U["createElementVNode"])("i",{class:"icon icon-right"},null,-1))])]),Object(U["createElementVNode"])("ol",null,[(Object(U["openBlock"])(!0),Object(U["createElementBlock"])(U["Fragment"],null,Object(U["renderList"])(null===(r=e.userInfo)||void 0===r||null===(r=r.list)||void 0===r?void 0:Qn()(r).call(r,0,e.showUserNum),(t,n)=>(Object(U["openBlock"])(),Object(U["createElementBlock"])("dl",{key:n},[Object(U["createElementVNode"])("dt",{onClick:n=>e.handleMemberProfileShow(t)},[Object(U["createElementVNode"])("img",{class:"avatar",src:(null===t||void 0===t?void 0:t.avatar)||"https://web.sdk.qcloud.com/component/TUIKit/assets/avatar_21.png",onerror:"this.src='https://web.sdk.qcloud.com/component/TUIKit/assets/avatar_21.png'"},null,8,Po)],8,xo),Object(U["createElementVNode"])("dd",null,Object(U["toDisplayString"])((null===t||void 0===t?void 0:t.nick)||(null===t||void 0===t?void 0:t.userID)),1)]))),128)),e.isShowAddMember?(Object(U["openBlock"])(),Object(U["createElementBlock"])("dl",Go,[Object(U["createElementVNode"])("dt",{class:"avatar",onClick:t[5]||(t[5]=t=>e.toggleMask("add"))},"+")])):Object(U["createCommentVNode"])("",!0),"Owner"===e.conversation.groupProfile.selfInfo.role?(Object(U["openBlock"])(),Object(U["createElementBlock"])("dl",Fo,[Object(U["createElementVNode"])("dt",{class:"avatar",onClick:t[6]||(t[6]=t=>e.toggleMask("remove"))},"-")])):Object(U["createCommentVNode"])("",!0)])]),Object(U["createElementVNode"])("ul",{class:"content space-top",onClick:t[10]||(t[10]=t=>e.editLableName="")},[Object(U["createElementVNode"])("li",{onClick:t[7]||(t[7]=Object(U["withModifiers"])(t=>e.setTab("notification"),["stop"]))},[Object(U["createElementVNode"])("aside",null,[Object(U["createElementVNode"])("label",null,Object(U["toDisplayString"])(e.$t("TUIChat.manage.群公告")),1),Object(U["createElementVNode"])("article",null,Object(U["toDisplayString"])(e.conversation.groupProfile.notification),1)]),t[23]||(t[23]=Object(U["createElementVNode"])("i",{class:"icon icon-right end"},null,-1))]),e.isAdmin&&e.isSetMuteTime?(Object(U["openBlock"])(),Object(U["createElementBlock"])("li",{key:0,onClick:t[8]||(t[8]=Object(U["withModifiers"])(t=>e.setTab("admin"),["stop"]))},[Object(U["createElementVNode"])("label",null,Object(U["toDisplayString"])(e.$t("TUIChat.manage.群管理")),1),t[24]||(t[24]=Object(U["createElementVNode"])("i",{class:"icon icon-right"},null,-1))])):Object(U["createCommentVNode"])("",!0),Object(U["createElementVNode"])("li",null,[Object(U["createElementVNode"])("label",null,Object(U["toDisplayString"])(e.$t("TUIChat.manage.群ID")),1),Object(U["createElementVNode"])("div",Ho,[Object(U["createElementVNode"])("span",null,Object(U["toDisplayString"])(e.conversation.groupProfile.groupID),1),Object(U["createElementVNode"])("i",{class:"icon icon-msg-copy",onClick:t[9]||(t[9]=(...t)=>e.handleGroupIDCopy&&e.handleGroupIDCopy(...t)),title:e.$t("TUIChat.复制")},null,8,zo)])]),Object(U["createElementVNode"])("li",null,[Object(U["createElementVNode"])("label",null,Object(U["toDisplayString"])(e.$t("TUIChat.manage.群头像")),1),Object(U["createElementVNode"])("img",{class:"avatar",src:(null===(s=e.conversation)||void 0===s||null===(s=s.groupProfile)||void 0===s?void 0:s.avatar)||"https://web.sdk.qcloud.com/im/demo/TUIkit/web/img/constomer.svg",onerror:"this.src='https://web.sdk.qcloud.com/im/demo/TUIkit/web/img/constomer.svg'"},null,8,Ko)]),Object(U["createElementVNode"])("li",null,[Object(U["createElementVNode"])("label",null,Object(U["toDisplayString"])(e.$t("TUIChat.manage.群类型")),1),Object(U["createElementVNode"])("span",null,Object(U["toDisplayString"])(e.$t("TUIChat.manage."+e.typeName[e.conversation.groupProfile.type])),1)]),Object(U["createElementVNode"])("li",null,[Object(U["createElementVNode"])("label",null,Object(U["toDisplayString"])(e.$t("TUIChat.manage.加群方式")),1),Object(U["createElementVNode"])("span",null,Object(U["toDisplayString"])(e.$t("TUIChat.manage."+e.typeName[e.conversation.groupProfile.joinOption])),1)])]),Object(U["createElementVNode"])("ul",Yo,["Owner"===e.conversation.groupProfile.selfInfo.role&&(null===(l=e.userInfo)||void 0===l?void 0:l.list.length)>1?(Object(U["openBlock"])(),Object(U["createElementBlock"])("li",{key:0,onClick:t[11]||(t[11]=Object(U["withModifiers"])(t=>e.toggleMask("changeOwner"),["stop"]))},Object(U["toDisplayString"])(e.$t("TUIChat.manage.转让群组")),1)):Object(U["createCommentVNode"])("",!0),e.isDismissGroupAuth?(Object(U["openBlock"])(),Object(U["createElementBlock"])("li",{key:1,onClick:t[12]||(t[12]=Object(U["withModifiers"])(t=>e.dismiss(e.conversation.groupProfile),["stop"]))},Object(U["toDisplayString"])(e.$t("TUIChat.manage.解散群聊")),1)):(Object(U["openBlock"])(),Object(U["createElementBlock"])("li",{key:2,onClick:t[13]||(t[13]=Object(U["withModifiers"])(t=>e.quit(e.conversation.groupProfile),["stop"]))},Object(U["toDisplayString"])(e.$t("TUIChat.manage.退出群组")),1))])])),Object(U["createVNode"])(h,{show:e.mask,"onUpdate:show":t[19]||(t[19]=t=>e.mask=t)},{default:Object(U["withCtx"])(()=>[Object(U["createVNode"])(b,{title:e.$t("TUIChat.manage."+e.transferTitle),list:e.transferList,isSearch:e.isSearch,isRadio:e.isRadio,selectedList:e.selectedList,onSubmit:e.submit,onCancel:e.cancel,onSearch:e.handleSearchMember,isH5:e.isH5},null,8,["title","list","isSearch","isRadio","selectedList","onSubmit","onCancel","onSearch","isH5"])]),_:1},8,["show"]),Object(U["createVNode"])(v,{title:e.$t("TUIChat.manage.删除成员"),show:e.delDialogShow,isH5:e.isH5,center:!0,isHeaderShow:!e.isH5,onSubmit:t[20]||(t[20]=t=>e.handleManage(e.userList,"remove")),"onUpdate:show":t[21]||(t[21]=t=>e.delDialogShow=t)},{default:Object(U["withCtx"])(()=>[1===e.userList.length?(Object(U["openBlock"])(),Object(U["createElementBlock"])("p",Jo,Object(U["toDisplayString"])(e.$t("TUIChat.manage.确定从群聊中删除该成员?")),1)):Object(U["createCommentVNode"])("",!0),e.userList.length>1?(Object(U["openBlock"])(),Object(U["createElementBlock"])("p",ea,Object(U["toDisplayString"])(e.$t("TUIChat.manage.确定从群聊中删除所选成员?")),1)):Object(U["createCommentVNode"])("",!0)]),_:1},8,["title","show","isH5","isHeaderShow"])],2)):Object(U["createCommentVNode"])("",!0)])}var na=n("c52e"),oa=n.n(na);function aa(e,t,n,o,a,i){return e.show?(Object(U["openBlock"])(),Object(U["createElementBlock"])("div",{key:0,class:"mask",onClick:t[0]||(t[0]=Object(U["withModifiers"])((...t)=>e.toggleView&&e.toggleView(...t),["self"]))},[Object(U["renderSlot"])(e.$slots,"default",{},void 0,!0)])):Object(U["createCommentVNode"])("",!0)}var ia=Object(U["defineComponent"])({props:{show:{type:Boolean,default:()=>!1}},setup(e,t){const n=Object(U["reactive"])({show:!1});Object(U["watchEffect"])(()=>{n.show=e.show});const o=()=>{n.show=!n.show,t.emit("update:show",n.show)};return{...Object(U["toRefs"])(n),toggleView:o}}});n("1848");const ra=se()(ia,[["render",aa],["__scopeId","data-v-5acb611d"]]);var sa=ra;const la={key:0,class:"transfer-h5-header"},ca={class:"title"},da={class:"main"},ua={class:"left"},pa={key:0},ma={style:{display:"flex","flex-direction":"column",overflow:"hidden"}},ba={class:"all"},ha={style:{flex:"1",overflow:"auto"},class:"list"},va=["onClick"],fa=["src"],ga={class:"name"},Oa={key:0},ja={class:"right"},ya={key:0},Ia={class:"list"},Ca={key:0},Ea=["src"],ka={key:0},wa=["onClick"],_a={key:1,class:"btn btn-no"};function Sa(e,t,n,o,a,i){const r=Object(U["resolveComponent"])("el-input"),s=Object(U["resolveComponent"])("el-button");return Object(U["openBlock"])(),Object(U["createElementBlock"])("div",{class:Object(U["normalizeClass"])(["transfer",[e.isH5?"transfer-h5":""]])},[e.isH5?(Object(U["openBlock"])(),Object(U["createElementBlock"])("header",la,[Object(U["createElementVNode"])("i",{class:"icon icon-back",onClick:t[0]||(t[0]=(...t)=>e.cancel&&e.cancel(...t))}),Object(U["createElementVNode"])("span",ca,Object(U["toDisplayString"])(e.title),1)])):Object(U["createCommentVNode"])("",!0),Object(U["createElementVNode"])("main",da,[Object(U["createElementVNode"])("div",ua,[e.isSearch?(Object(U["openBlock"])(),Object(U["createElementBlock"])("header",pa,[Object(U["createVNode"])(r,{modelValue:e.inputVal,"onUpdate:modelValue":t[1]||(t[1]=t=>e.inputVal=t),placeholder:"请输入姓名"},null,8,["modelValue"])])):Object(U["createCommentVNode"])("",!0),Object(U["createElementVNode"])("main",ma,[Object(U["createElementVNode"])("ul",null,[e.optional.length>1&&!e.isRadio?(Object(U["openBlock"])(),Object(U["createElementBlock"])("li",{key:0,class:"list-item",onClick:t[2]||(t[2]=(...t)=>e.selectedAll&&e.selectedAll(...t))},[Object(U["createElementVNode"])("i",{class:Object(U["normalizeClass"])(["icon",[e.selectedList.length===e.optional.length?"icon-selected":"icon-unselected"]])},null,2),Object(U["createElementVNode"])("span",ba,Object(U["toDisplayString"])(e.$t("component.全选")),1)])):Object(U["createCommentVNode"])("",!0)]),Object(U["createElementVNode"])("ul",ha,[(Object(U["openBlock"])(!0),Object(U["createElementBlock"])(U["Fragment"],null,Object(U["renderList"])(e.list,(t,n)=>{var o;return Object(U["openBlock"])(),Object(U["createElementBlock"])("li",{class:"list-item",key:n,onClick:n=>e.selected(t)},[Object(U["createElementVNode"])("i",{class:Object(U["normalizeClass"])(["icon",[(null===t||void 0===t?void 0:t.isDisabled)&&"disabled",T()(o=e.selectedList).call(o,t)>-1?"icon-selected":"icon-unselected"]])},null,2),e.isCustomItem?Object(U["renderSlot"])(e.$slots,"left",{key:1,data:t},void 0,!0):(Object(U["openBlock"])(),Object(U["createElementBlock"])(U["Fragment"],{key:0},[Object(U["createElementVNode"])("img",{class:"avatar",src:(null===t||void 0===t?void 0:t.avatar)||"https://web.sdk.qcloud.com/component/TUIKit/assets/avatar_21.png",onerror:"this.src='https://web.sdk.qcloud.com/component/TUIKit/assets/avatar_21.png'"},null,8,fa),Object(U["createElementVNode"])("span",ga,Object(U["toDisplayString"])((null===t||void 0===t?void 0:t.nick)||(null===t||void 0===t?void 0:t.userID)),1),null!==t&&void 0!==t&&t.isDisabled?(Object(U["openBlock"])(),Object(U["createElementBlock"])("span",Oa,"("+Object(U["toDisplayString"])(e.$t("component.已在群聊中"))+")",1)):Object(U["createCommentVNode"])("",!0)],64))],8,va)}),128))])])]),Object(U["createElementVNode"])("div",ja,[e.isH5?Object(U["createCommentVNode"])("",!0):(Object(U["openBlock"])(),Object(U["createElementBlock"])("header",ya,Object(U["toDisplayString"])(e.title),1)),Object(U["withDirectives"])(Object(U["createElementVNode"])("ul",Ia,[e.selectedList.length>0&&!e.isH5?(Object(U["openBlock"])(),Object(U["createElementBlock"])("p",Ca,Object(U["toDisplayString"])(e.$t("component.已选中"))+Object(U["toDisplayString"])(e.selectedList.length)+Object(U["toDisplayString"])(e.$t("component.人")),1)):Object(U["createCommentVNode"])("",!0),(Object(U["openBlock"])(!0),Object(U["createElementBlock"])(U["Fragment"],null,Object(U["renderList"])(e.selectedList,(t,n)=>(Object(U["openBlock"])(),Object(U["createElementBlock"])("li",{class:"list-item space-between",key:n},[Object(U["createElementVNode"])("aside",null,[e.isCustomItem?Object(U["renderSlot"])(e.$slots,"right",{key:1,data:t},void 0,!0):(Object(U["openBlock"])(),Object(U["createElementBlock"])(U["Fragment"],{key:0},[Object(U["createElementVNode"])("img",{class:"avatar",src:(null===t||void 0===t?void 0:t.avatar)||"https://web.sdk.qcloud.com/component/TUIKit/assets/avatar_21.png",onerror:"this.src='https://web.sdk.qcloud.com/component/TUIKit/assets/avatar_21.png'"},null,8,Ea),e.isH5?Object(U["createCommentVNode"])("",!0):(Object(U["openBlock"])(),Object(U["createElementBlock"])("span",ka,Object(U["toDisplayString"])(t.nick||t.userID),1))],64))]),e.isH5?Object(U["createCommentVNode"])("",!0):(Object(U["openBlock"])(),Object(U["createElementBlock"])("i",{key:0,class:"icon icon-cancel",onClick:n=>e.selected(t)},null,8,wa))]))),128))],512),[[U["vShow"],e.resultShow]]),Object(U["createElementVNode"])("footer",null,[Object(U["createElementVNode"])("button",{class:"btn btn-cancel",onClick:t[3]||(t[3]=(...t)=>e.cancel&&e.cancel(...t))},Object(U["toDisplayString"])(e.$t("component.取消")),1),e.selectedList.length>0?(Object(U["openBlock"])(),Object(U["createBlock"])(s,{key:0,loading:e.submitLoading,style:{background:"#3370ff !important",border:"0 solid #2f80ed !important"},class:"btn",onClick:e.submit},{default:Object(U["withCtx"])(()=>[Object(U["createTextVNode"])(Object(U["toDisplayString"])(e.$t("component.完成")),1)]),_:1},8,["loading","onClick"])):(Object(U["openBlock"])(),Object(U["createElementBlock"])("button",_a,Object(U["toDisplayString"])(e.$t("component.完成")),1))])])])],2)}var Ta=n("0613"),La=n("8d06"),Aa=Object(U["defineComponent"])({props:{list:{type:Array,default:()=>[]},selectedList:{type:Array,default:()=>[]},isSearch:{type:Boolean,default:()=>!0},isRadio:{type:Boolean,default:()=>!1},isCustomItem:{type:Boolean,default:()=>!1},title:{type:String,default:()=>""},type:{type:String,default:()=>""},groupId:{type:String,default:()=>""},isH5:{type:Boolean,default:()=>!1},resultShow:{type:Boolean,default:()=>!0}},setup(e,t){const n=Object(U["reactive"])({type:"",list:[],initList:[],selectedList:[],isSearch:!0,isCustomItem:!1,title:"",inputVal:"",submitLoading:!1}),o=()=>{Object(La["a"])("/health-emergency/api/emergency/order/getGroupMemberList",{sessionId:Ta["a"].getters.getSessionId}).then(e=>{var t;200===e.code&&(n.list=l()(t=e.result||[]).call(t,e=>({userID:null===e||void 0===e?void 0:e.userId,nick:null===e||void 0===e?void 0:e.userName,avatar:null===e||void 0===e?void 0:e.avatar,isGroup:null===e||void 0===e?void 0:e.isGroupMember})),n.initList=JSON.parse(h()(n.list)))}).catch(e=>{console.log(e)})};o(),Object(U["watchEffect"])(()=>{n.selectedList=e.selectedList,n.isSearch=e.isSearch,n.isCustomItem=e.isCustomItem,n.title=e.title,n.type=e.type});const a=Object(U["computed"])(()=>{var e;return y()(e=n.list).call(e,e=>!e.isDisabled)}),i=e=>{t.emit("search",e.target.value)},r=t=>{if(t.isDisabled)return;let o=n.selectedList;const a=T()(o).call(o,t);var i;if(a>-1)return _()(i=n.selectedList).call(i,a,1);e.isRadio&&(o=[]),o.push(t),n.selectedList=o},s=()=>{n.selectedList.length===a.value.length?n.selectedList=[]:n.selectedList=[...a.value]},c=()=>{var o;n.submitLoading=!0,Object(La["b"])("/health-emergency/api/emergency/addGroupUser",{groupId:e.groupId,orderId:Ta["a"].getters.getOrderId,memberList:l()(o=n.selectedList).call(o,e=>null===e||void 0===e?void 0:e.userID)}).then(e=>{200===e.code?t.emit("submit",n.selectedList):window.parent.postMessage(h()({code:"message",type:"warning",msg:"发起聊天失败"}),"*"),n.submitLoading=!1}).catch(e=>{n.submitLoading=!1,console.log(e)})},d=()=>{t.emit("cancel")};return Object(U["watch"])(()=>n.inputVal,e=>{var t;n.list=y()(t=n.initList).call(t,t=>{var n;return T()(n=t.nick).call(n,e)>-1||!e})}),{...Object(U["toRefs"])(n),optional:a,handleInput:i,selected:r,selectedAll:s,submit:c,cancel:d}}});n("04b9");const Da=se()(Aa,[["render",Sa],["__scopeId","data-v-67066f4e"]]);var Na=Da;function Ua(e,t,n,o,a,i){return Object(U["openBlock"])(),Object(U["createElementBlock"])("div",{class:Object(U["normalizeClass"])(["slider-box",[e.open&&"slider-open"]]),onClick:t[0]||(t[0]=(...t)=>e.toggle&&e.toggle(...t))},[...t[1]||(t[1]=[Object(U["createElementVNode"])("span",{class:"slider-block"},null,-1)])],2)}var Ba=Object(U["defineComponent"])({props:{open:{type:Boolean,default:()=>!1}},setup(e,t){const n=Object(U["reactive"])({open:!1});Object(U["watchEffect"])(()=>{n.open=e.open});const o=()=>{n.open=!n.open,t.emit("change",n.open)};return{...Object(U["toRefs"])(n),toggle:o}}});n("2b91");const Ma=se()(Ba,[["render",Ua],["__scopeId","data-v-759db46f"]]);var Va=Ma;const Ra={class:"name"},xa={key:0,class:"edit-h5-header"},Pa={class:"left"},Ga={class:"input-box"},Fa={key:1},Ha={key:1,class:"edit-h5-footer"},za=["disabled"],Ka={key:0,class:"icon icon-edit"};function Ya(e,t,n,o,a,i){return Object(U["openBlock"])(),Object(U["createElementBlock"])("div",Ra,[Object(U["createElementVNode"])("label",null,Object(U["toDisplayString"])(e.$t("TUIChat.manage.群名称")),1),e.isEdit?(Object(U["openBlock"])(),Object(U["createElementBlock"])("div",{key:0,class:Object(U["normalizeClass"])([e.isH5?"edit-h5":""]),ref:"dialog"},[Object(U["createElementVNode"])("main",null,[e.isH5?(Object(U["openBlock"])(),Object(U["createElementBlock"])("header",xa,[Object(U["createElementVNode"])("aside",Pa,[Object(U["createElementVNode"])("h1",null,Object(U["toDisplayString"])(e.$t("TUIChat.manage.修改群聊名称")),1),Object(U["createElementVNode"])("span",null,Object(U["toDisplayString"])(e.$t("TUIChat.manage.修改群聊名称后,将在群内通知其他成员")),1)]),Object(U["createElementVNode"])("span",{class:"close",onClick:t[0]||(t[0]=(...t)=>e.toggleEdit&&e.toggleEdit(...t))},Object(U["toDisplayString"])(e.$t("关闭")),1)])):Object(U["createCommentVNode"])("",!0),Object(U["createElementVNode"])("div",Ga,[e.isEdit?Object(U["withDirectives"])((Object(U["openBlock"])(),Object(U["createElementBlock"])("input",{key:0,class:"input","onUpdate:modelValue":t[1]||(t[1]=t=>e.input=t),type:"text",onKeyup:t[2]||(t[2]=Object(U["withKeys"])((...t)=>e.updateProfile&&e.updateProfile(...t),["enter"]))},null,544)),[[U["vModelText"],e.input]]):Object(U["createCommentVNode"])("",!0),e.isH5?(Object(U["openBlock"])(),Object(U["createElementBlock"])("span",Fa,Object(U["toDisplayString"])(e.$t("TUIChat.manage.仅限中文、字母、数字和下划线,2-20个字")),1)):Object(U["createCommentVNode"])("",!0)]),e.isH5?(Object(U["openBlock"])(),Object(U["createElementBlock"])("footer",Ha,[Object(U["createElementVNode"])("button",{class:"btn",disabled:!e.input,onClick:t[3]||(t[3]=(...t)=>e.updateProfile&&e.updateProfile(...t))},Object(U["toDisplayString"])(e.$t("确认")),9,za)])):Object(U["createCommentVNode"])("",!0)])],2)):Object(U["createCommentVNode"])("",!0),!e.isEdit||e.isH5?(Object(U["openBlock"])(),Object(U["createElementBlock"])("p",{key:1,onClick:t[4]||(t[4]=(...t)=>e.toggleEdit&&e.toggleEdit(...t))},[Object(U["createElementVNode"])("span",null,Object(U["toDisplayString"])(e.groupProfile.name),1),e.isAuth?(Object(U["openBlock"])(),Object(U["createElementBlock"])("i",Ka)):Object(U["createCommentVNode"])("",!0)])):Object(U["createCommentVNode"])("",!0)])}const Wa=Object(U["defineComponent"])({props:{data:{type:Object,default:()=>({})},isAuth:{type:Boolean,default:!1},isH5:{type:Boolean,default:!1}},setup(e,t){const n=Object(U["reactive"])({groupProfile:{},input:"",isEdit:!1});Object(U["watchEffect"])(()=>{n.groupProfile=e.data});const o=Object(U["ref"])();Object(hn["onClickOutside"])(o,()=>{n.isEdit=!1});const a=async()=>{n.input&&n.input!==n.groupProfile.name&&(t.emit("update",{key:"name",value:n.input}),n.groupProfile.name=n.input,n.input=""),i()},i=async()=>{e.isAuth&&(n.isEdit=!n.isEdit),n.isEdit&&(n.input=n.groupProfile.name)};return{...Object(U["toRefs"])(n),updateProfile:a,toggleEdit:i,dialog:o}}});var $a=Wa;n("ae10");const qa=se()($a,[["render",Ya],["__scopeId","data-v-33cc130c"]]);var Qa=qa;const Xa={class:"notification"},Za={key:1},Ja={key:0},ei={key:1},ti={key:2};function ni(e,t,n,o,a,i){return Object(U["openBlock"])(),Object(U["createElementBlock"])("main",Xa,[e.isEdit?Object(U["withDirectives"])((Object(U["openBlock"])(),Object(U["createElementBlock"])("textarea",{key:0,"onUpdate:modelValue":t[0]||(t[0]=t=>e.input=t),onKeyup:t[1]||(t[1]=Object(U["withKeys"])((...t)=>e.updateProfile&&e.updateProfile(...t),["enter"]))},null,544)),[[U["vModelText"],e.input]]):(Object(U["openBlock"])(),Object(U["createElementBlock"])("section",Za,[e.groupProfile.notification?(Object(U["openBlock"])(),Object(U["createElementBlock"])("article",ei,Object(U["toDisplayString"])(e.groupProfile.notification),1)):(Object(U["openBlock"])(),Object(U["createElementBlock"])("p",Ja,Object(U["toDisplayString"])(e.$t("TUIChat.manage.暂无公告")),1))])),e.isAuth?(Object(U["openBlock"])(),Object(U["createElementBlock"])("footer",ti,[e.isEdit?(Object(U["openBlock"])(),Object(U["createElementBlock"])("button",{key:0,class:"btn",onClick:t[2]||(t[2]=(...t)=>e.updateProfile&&e.updateProfile(...t))},Object(U["toDisplayString"])(e.$t("TUIChat.manage.发布")),1)):(Object(U["openBlock"])(),Object(U["createElementBlock"])("button",{key:1,class:"btn",onClick:t[3]||(t[3]=t=>e.isEdit=!e.isEdit)},Object(U["toDisplayString"])(e.$t("TUIChat.manage.编辑")),1))])):Object(U["createCommentVNode"])("",!0)])}const oi=Object(U["defineComponent"])({props:{data:{type:Object,default:()=>({})},isAuth:{type:Boolean,default:!1}},setup(e,t){const n=Object(U["reactive"])({groupProfile:{},input:"",isEdit:!1});Object(U["watchEffect"])(()=>{n.groupProfile=e.data,n.input=n.groupProfile.notification});const o=async()=>{n.input&&n.input!==n.groupProfile.notification&&(t.emit("update",{key:"notification",value:n.input}),n.groupProfile.notification=n.input,n.input=""),n.isEdit=!n.isEdit};return{...Object(U["toRefs"])(n),updateProfile:o}}});var ai=oi;n("c548");const ii=se()(ai,[["render",ni],["__scopeId","data-v-30b370b1"]]);var ri=ii;const si={class:"member"},li={class:"list"},ci=["onClick"],di=["src"],ui={class:"name"},pi=["onClick"];function mi(e,t,n,o,a,i){return Object(U["openBlock"])(),Object(U["createElementBlock"])("main",si,[Object(U["createElementVNode"])("ul",li,[(Object(U["openBlock"])(!0),Object(U["createElementBlock"])(U["Fragment"],null,Object(U["renderList"])(e.list,(t,n)=>(Object(U["openBlock"])(),Object(U["createElementBlock"])("li",{class:"list-item",key:n},[Object(U["createElementVNode"])("aside",{onClick:n=>e.handleMemberProfileShow(t)},[Object(U["createElementVNode"])("img",{class:"avatar",src:(null===t||void 0===t?void 0:t.avatar)||"https://web.sdk.qcloud.com/component/TUIKit/assets/avatar_21.png",onerror:"this.src='https://web.sdk.qcloud.com/component/TUIKit/assets/avatar_21.png'"},null,8,di),Object(U["createElementVNode"])("span",ui,Object(U["toDisplayString"])((null===t||void 0===t?void 0:t.nick)||(null===t||void 0===t?void 0:t.userID)),1),Object(U["createElementVNode"])("span",null,Object(U["toDisplayString"])(e.handleRoleName(t)),1)],8,ci),"Owner"!==t.role&&e.isShowDel?(Object(U["openBlock"])(),Object(U["createElementBlock"])("i",{key:0,class:"icon icon-del",onClick:n=>e.submit(t)},null,8,pi)):Object(U["createCommentVNode"])("",!0)]))),128)),e.list.lengthe.getMore&&e.getMore(...t))},Object(U["toDisplayString"])(e.$t("TUIChat.manage.查看更多")),1)):Object(U["createCommentVNode"])("",!0)])])}var bi=n("e23e"),hi=n.n(bi);const vi=Object(U["defineComponent"])({components:{},props:{list:{type:Array,default:()=>[]},total:{type:Number,default:()=>0},isShowDel:{type:Boolean,default:()=>!1},self:{type:Object,default:()=>({})}},setup(e,t){const n=hi.a.TYPES,o=Object(U["reactive"])({total:0,list:[],isShowDel:!1,self:{}});Object(U["watchEffect"])(()=>{o.total=e.total,o.isShowDel=e.isShowDel,o.list=e.list,o.self=e.self});const a=e=>{const{t:t}=window.TUIKitTUICore.config.i18n.useI18n();let a="";switch(null===e||void 0===e?void 0:e.role){case n.GRP_MBR_ROLE_ADMIN:a=t("TUIChat.manage.管理员");break;case n.GRP_MBR_ROLE_OWNER:a=t("TUIChat.manage.群主");break}return a&&(a=`(${a})`),e.userID===o.self.userID&&(a+=` (${t("TUIChat.manage.我")})`),a},i=()=>{t.emit("more")},r=e=>{t.emit("del",[e])},s=e=>{t.emit("handleMemberProfileShow",e)};return{...Object(U["toRefs"])(o),getMore:i,submit:r,handleRoleName:a,handleMemberProfileShow:s}}});var fi=vi;n("cb8a");const gi=se()(fi,[["render",mi],["__scopeId","data-v-806f1058"]]);var Oi=gi;const ji={class:"memeber-profile"},yi={class:"memeber-profile-main"},Ii=["src"],Ci={class:"list"},Ei={class:"memeber-profile-footer"};function ki(e,t,n,o,a,i){var r,s,l,c,d;return Object(U["openBlock"])(),Object(U["createElementBlock"])("div",ji,[Object(U["createElementVNode"])("div",yi,[Object(U["createElementVNode"])("img",{class:"avatar",src:(null===(r=e.userInfo)||void 0===r?void 0:r.avatar)||"https://web.sdk.qcloud.com/component/TUIKit/assets/avatar_21.png",onerror:"this.src='https://web.sdk.qcloud.com/component/TUIKit/assets/avatar_21.png'"},null,8,Ii),Object(U["createElementVNode"])("ul",Ci,[Object(U["createElementVNode"])("h1",null,Object(U["toDisplayString"])((null===(s=e.userInfo)||void 0===s?void 0:s.nick)||(null===(l=e.userInfo)||void 0===l?void 0:l.userID)),1),Object(U["createElementVNode"])("li",null,[t[1]||(t[1]=Object(U["createElementVNode"])("label",null,"ID:",-1)),Object(U["createElementVNode"])("span",null,Object(U["toDisplayString"])(null===(c=e.userInfo)||void 0===c?void 0:c.userID),1)]),Object(U["createElementVNode"])("li",null,[Object(U["createElementVNode"])("label",null,Object(U["toDisplayString"])(e.$t("TUIContact.个性签名"))+":",1),Object(U["createElementVNode"])("span",null,Object(U["toDisplayString"])(null===(d=e.userInfo)||void 0===d?void 0:d.selfSignature),1)])])]),Object(U["createElementVNode"])("div",Ei,[e.showEnter()?(Object(U["openBlock"])(),Object(U["createElementBlock"])("div",{key:0,class:"button",onClick:t[0]||(t[0]=t=>{var n;return e.enter(null===(n=e.userInfo)||void 0===n?void 0:n.userID,"C2C")})},Object(U["toDisplayString"])(e.$t("TUIContact.发送消息")),1)):Object(U["createCommentVNode"])("",!0)])])}const wi=Object(U["defineComponent"])({props:{userInfo:{type:Object,default:()=>({})}},setup(e,t){const n=null===Pi||void 0===Pi?void 0:Pi.TUIServer,o=Object(U["reactive"])({isFriendShip:!1,userInfo:{},self:{}});Object(U["watchEffect"])(()=>{o.self=e.self}),Object(U["watch"])(()=>e.userInfo,async(t,a)=>{var r;if(t===a)return;const s=await n.getUserProfile([null===e||void 0===e||null===(r=e.userInfo)||void 0===r?void 0:r.userID]);o.userInfo=null===s||void 0===s?void 0:s.data[0],i()},{deep:!0,immediate:!0});const a=async(e,t)=>{const o=`${t}${e}`;n.TUICore.TUIServer.TUIConversation.getConversationProfile(o).then(e=>{n.TUICore.TUIServer.TUIConversation.handleCurrentConversation(e.data.conversation)})},i=async()=>{if(!o.userInfo.userID)return;const e=await n.checkFriend(o.userInfo.userID,Xn["a"].TYPES.SNS_CHECK_TYPE_BOTH);o.isFriendShip=e===Xn["a"].TYPES.SNS_TYPE_BOTH_WAY},r=()=>{var e;return o.isFriendShip||!(null!==n&&void 0!==n&&null!==(e=n.TUICore)&&void 0!==e&&e.isOfficial)};return{...Object(U["toRefs"])(o),enter:a,showEnter:r}}});var _i=wi;n("fe1e");const Si=se()(_i,[["render",ki],["__scopeId","data-v-29f6ea36"]]);var Ti=Si;const Li={key:0},Ai={class:"dialog-main-content"},Di={key:1};function Ni(e,t,n,o,a,i){return e.show?(Object(U["openBlock"])(),Object(U["createElementBlock"])("div",{key:0,class:Object(U["normalizeClass"])(["dialog",[e.isH5?"dialog-h5":"",e.center?"center":""]]),onClick:t[3]||(t[3]=Object(U["withModifiers"])((...t)=>e.toggleView&&e.toggleView(...t),["self"]))},[Object(U["createElementVNode"])("main",{class:"dialog-main",style:Object(U["normalizeStyle"])(!e.background&&{background:"none"})},[e.isHeaderShow?(Object(U["openBlock"])(),Object(U["createElementBlock"])("header",Li,[Object(U["createElementVNode"])("h1",null,Object(U["toDisplayString"])(e.title),1),Object(U["createElementVNode"])("i",{class:"icon icon-close",onClick:t[0]||(t[0]=(...t)=>e.toggleView&&e.toggleView(...t))})])):Object(U["createCommentVNode"])("",!0),Object(U["createElementVNode"])("div",Ai,[Object(U["renderSlot"])(e.$slots,"default",{},void 0,!0)]),e.isFooterShow?(Object(U["openBlock"])(),Object(U["createElementBlock"])("footer",Di,[Object(U["createElementVNode"])("button",{class:"btn btn-cancel",onClick:t[1]||(t[1]=(...t)=>e.toggleView&&e.toggleView(...t))},Object(U["toDisplayString"])(e.$t("component.取消")),1),Object(U["createElementVNode"])("button",{class:"btn btn-default",onClick:t[2]||(t[2]=(...t)=>e.submit&&e.submit(...t))},Object(U["toDisplayString"])(e.$t("component.确定")),1)])):Object(U["createCommentVNode"])("",!0)],4)],2)):Object(U["createCommentVNode"])("",!0)}var Ui=Object(U["defineComponent"])({props:{show:{type:Boolean,default:()=>!1},isHeaderShow:{type:Boolean,default:()=>!0},isFooterShow:{type:Boolean,default:()=>!0},background:{type:Boolean,default:()=>!0},title:{type:String,default:()=>""},isH5:{type:Boolean,default:()=>!1},center:{type:Boolean,default:()=>!1}},setup(e,t){const n=Object(U["reactive"])({show:!1,isHeaderShow:!0,isFooterShow:!0,background:!0,title:""});Object(U["watchEffect"])(()=>{n.show=e.show,n.title=e.title,n.isHeaderShow=e.isHeaderShow,n.isFooterShow=e.isFooterShow,n.background=e.background});const o=()=>{n.show=!n.show,t.emit("update:show",n.show)},a=()=>{t.emit("submit"),o()};return{...Object(U["toRefs"])(n),toggleView:o,submit:a}}});n("606b");const Bi=se()(Ui,[["render",Ni],["__scopeId","data-v-087d9968"]]);var Mi=Bi;const Vi=Object(U["defineComponent"])({components:{Mask:sa,Transfer:Na,Slider:Va,ManageName:Qa,ManageNotification:ri,ManageMember:Oi,MemeberProfile:Ti,Dialog:Mi},props:{userInfo:{type:Object,default:()=>({isGroup:!1,list:[]})},conversation:{type:Object,default:()=>({})},show:{type:Boolean,default:()=>!1},isH5:{type:Boolean,default:()=>!1}},setup(e,t){var n;const o=Vi.TUIServer.TUICore.TIM.TYPES,{GroupServer:a}=Vi,{t:i}=Vi.TUIServer.TUICore.config.i18n.useI18n(),r=Object(U["reactive"])({conversation:{},userInfo:{isGroup:!1,list:[]},isShowMuteTimeInput:!1,editLableName:"",mask:!1,currentTab:"",transferType:"",isSearch:!1,isRadio:!1,transferList:[],selectedList:[],isMuteTime:!1,show:!1,typeName:{[o.GRP_WORK]:"好友工作群",[o.GRP_PUBLIC]:"陌生人社交群",[o.GRP_MEETING]:"临时会议群",[o.GRP_AVCHATROOM]:"直播群",[o.JOIN_OPTIONS_FREE_ACCESS]:"自由加入",[o.JOIN_OPTIONS_NEED_PERMISSION]:"需要验证",[o.JOIN_OPTIONS_DISABLE_APPLY]:"禁止加群"},delDialogShow:!1,userList:[],transferTitle:"",member:{admin:[],member:[],muteMember:[]},currentMember:{}}),s=Object(U["ref"])();Object(U["watchEffect"])(()=>{r.conversation=e.conversation,r.userInfo=e.userInfo,r.show=e.show});const c=(null===(n=window)||void 0===n||null===(n=n.TUIKitTUICore)||void 0===n?void 0:n.isOfficial)&&(null===Jt["b"]||void 0===Jt["b"]?void 0:Jt["b"].useStore())||{},d=Object(U["computed"])(()=>{let e="";switch(r.currentTab){case"notification":e="群公告";break;case"member":e="群成员";break;case"profile":e="群成员";break;default:e="群管理";break}return e});Object(U["watch"])(()=>r.userInfo.list,(e,t)=>{r.member={admin:[],member:[],muteMember:[]},l()(e).call(e,e=>{switch(null===e||void 0===e?void 0:e.role){case o.GRP_MBR_ROLE_ADMIN:r.member.admin.push(e);break;case o.GRP_MBR_ROLE_MEMBER:r.member.member.push(e);break;default:break}return e});const n=(new Date).getTime();r.member.muteMember=y()(e).call(e,e=>1e3*(null===e||void 0===e?void 0:e.muteUntil)-n>0)},{deep:!0});const u=Object(U["computed"])(()=>{var e,t;const{conversation:n}=r,a=null===n||void 0===n||null===(e=n.groupProfile)||void 0===e?void 0:e.selfInfo.role,i=null===n||void 0===n||null===(t=n.groupProfile)||void 0===t?void 0:t.type,s=a===o.GRP_MBR_ROLE_OWNER,l=i===o.GRP_WORK;return s&&!l}),p=Object(U["computed"])(()=>{var e;const{conversation:t}=r,n=null===t||void 0===t||null===(e=t.groupProfile)||void 0===e?void 0:e.type,a=n===o.GRP_WORK;return!!a}),m=Object(U["computed"])(()=>{let e=3;return p.value||(e+=1),"Owner"!==r.conversation.groupProfile.selfInfo.role&&(e+=1),e}),b=Object(U["computed"])(()=>{var e;const{conversation:t}=r,n=null===t||void 0===t||null===(e=t.groupProfile)||void 0===e?void 0:e.selfInfo.role,a=n===o.GRP_MBR_ROLE_OWNER,i=n===o.GRP_MBR_ROLE_ADMIN;return a||i}),h=Object(U["computed"])(()=>{var e,t;const{conversation:n}=r,a=null===n||void 0===n||null===(e=n.groupProfile)||void 0===e?void 0:e.type,i=null===n||void 0===n||null===(t=n.groupProfile)||void 0===t?void 0:t.selfInfo.role,s=i===o.GRP_MBR_ROLE_OWNER,l=a===o.GRP_WORK,c=a===o.GRP_AVCHATROOM;return!(l||c||!s)}),v=Object(U["computed"])(()=>{var e;const{conversation:t}=r,n=null===t||void 0===t||null===(e=t.groupProfile)||void 0===e?void 0:e.type,a=n===o.GRP_WORK;return!(a||!b.value)}),f=e=>{var t;const{conversation:n}=r,o={groupID:null===n||void 0===n||null===(t=n.groupProfile)||void 0===t?void 0:t.groupID,count:100,offset:e&&"more"===e?r.userInfo.list.length:0};a.getGroupMemberList(o).then(t=>{r.userInfo.list=e&&"more"===e?[...r.userInfo.list,...t.data.memberList]:t.data.memberList})},g=async e=>{const{conversation:t}=r,n={groupID:t.groupProfile.groupID,userIDList:e};await a.addGroupMember(n),f("More")},O=e=>{const{conversation:t}=r,n={groupID:t.groupProfile.groupID,userIDList:[e.userID]};a.deleteGroupMember(n)},j=async e=>{const t={groupID:r.conversation.groupProfile.groupID,newOwnerID:e},n=await a.changeGroupOwner(t);r.conversation.groupProfile={},r.conversation.groupProfile=n.data.group},I=async e=>{await a.quitGroup(e.groupID),Vi.TUIServer.store.conversation={}},C=async e=>{var t;await a.dismissGroup(e.groupID),Vi.TUIServer.store.conversation={},(null===(t=window)||void 0===t||null===(t=t.TUIKitTUICore)||void 0===t?void 0:t.isOfficial)&&(null===c||void 0===c?void 0:c.commit)&&(null===c||void 0===c||c.commit("handleTask",5))},E=async e=>{const{conversation:t}=r;let n="";switch(e.role){case o.GRP_MBR_ROLE_ADMIN:n=o.GRP_MBR_ROLE_MEMBER;break;case o.GRP_MBR_ROLE_MEMBER:n=o.GRP_MBR_ROLE_ADMIN;break}const i={groupID:t.groupProfile.groupID,userID:e.userID,role:n};await a.setGroupMemberRole(i),f()},k=async(e,t)=>{const{conversation:n}=r,o={groupID:n.groupProfile.groupID,userID:e,muteTime:"add"===t?2592e3:0};var i;(await a.setGroupMemberMuteTime(o),"add"===t)&&((null===(i=window)||void 0===i||null===(i=i.TUIKitTUICore)||void 0===i?void 0:i.isOfficial)&&(null===c||void 0===c?void 0:c.commit)&&(null===c||void 0===c||c.commit("handleTask",4)));f()},w=async e=>{const{conversation:t}=r,n={groupID:t.groupProfile.groupID,userIDList:e,reason:""};await a.deleteGroupMember(n),f()},_=e=>{r.editLableName=e},S=async e=>{const{key:t,value:n}=e,o={groupID:r.conversation.groupProfile.groupID,[t]:n},i=await a.updateGroupProfile(o),{conversation:s}=Vi.TUIServer.store;s.groupProfile=i.data.group,Vi.TUIServer.store.conversation={},Vi.TUIServer.store.conversation=s,r.editLableName=""},T=e=>{r.currentTab=e,r.editLableName="","member"===r.currentTab&&(r.transferType="remove"),r.currentTab||(r.transferType="")},L=async t=>{let n={},o={};const s={groupID:r.conversation.groupProfile.groupID,userIDList:[t]};switch(r.transferType){case"add":try{var c,d,u;if(o=await a.getGroupMemberProfile(s),r.transferList=y()(c=r.transferList).call(c,e=>{var t;return e.userID!==(null===(t=n.data[0])||void 0===t?void 0:t.userID)}),r.transferList=[...r.transferList,...n.data],(null===(d=o)||void 0===d||null===(d=d.data)||void 0===d?void 0:d.memberList.length)>0)r.transferList=l()(u=r.transferList).call(u,e=>{var t;return e.userID===(null===(t=o)||void 0===t||null===(t=t.data)||void 0===t?void 0:t.memberList[0].userID)&&(e.isDisabled=!0),e})}catch(b){const t=i("TUIChat.manage.该用户不存在");Object(vn["b"])(t,e)}break;case"remove":try{var p,m;if(n=await a.getGroupMemberProfile(s),0===n.data.memberList.length){const t=i("TUIChat.manage.该用户不在群组内");return Object(vn["b"])(t,e)}r.transferList=y()(p=r.transferList).call(p,e=>{var t;return e.userID!==(null===(t=n)||void 0===t||null===(t=t.data)||void 0===t||null===(t=t.memberList[0])||void 0===t?void 0:t.userID)}),r.transferList=[...r.transferList,...null===(m=n)||void 0===m||null===(m=m.data)||void 0===m?void 0:m.memberList]}catch(b){const t=i("TUIChat.manage.该用户不存在");Object(vn["b"])(t,e)}break;default:break}},A=e=>{"remove"===r.transferType?(r.userList=e,r.delDialogShow=!r.delDialogShow):R(e,r.transferType),r.mask=!1},D=async()=>{var e;const t=await Vi.TUIServer.getFriendList(),n=l()(e=t.data).call(e,e=>null===e||void 0===e?void 0:e.profile);return y()(n).call(n,e=>{var t;return!oa()(t=r.userInfo.list).call(t,t=>t.userID===e.userID)})},N=()=>{B()},B=async e=>{var t;switch(r.selectedList=[],e){case"add":r.isRadio=!1,r.transferList=await D(),r.transferTitle="添加成员";break;case"remove":r.isRadio=!1,r.transferList=y()(t=r.userInfo.list).call(t,e=>{var t;return e.userID!==(null===(t=r.conversation)||void 0===t||null===(t=t.groupProfile)||void 0===t?void 0:t.selfInfo.userID)}),r.transferTitle="删除成员";break;case"addAdmin":r.isRadio=!0,r.transferList=r.member.member,r.transferTitle="新增管理员";break;case"removeAdmin":r.isRadio=!0,r.transferList=r.member.admin,r.transferTitle="移除管理员";break;case"changeOwner":r.isRadio=!0,r.transferList=[...r.member.admin,...r.member.member],r.transferTitle="转让群组";break;case"addMute":r.isRadio=!0,r.transferList=r.member.member,"Owner"===r.conversation.groupProfile.selfInfo.role&&(r.transferList=[...r.member.admin,...r.member.member]),r.transferTitle="新增禁言用户";break;case"removeMute":r.isRadio=!0,r.transferList=r.member.muteMember,r.transferTitle="移除禁言用户";break;default:break}r.transferType=e,r.mask=!r.mask};Object(hn["onClickOutside"])(s,()=>{r.show=!1});const M=()=>{if(!a){const t=i("TUIChat.manage.请先注册 TUIGroup 模块");return Object(vn["b"])(t,e)}r.show=!r.show,r.show||(r.currentTab=""),r.show&&(f(),Zt.getInstance().reportEvent({name:"showGroupManage",ext1:"showGroupManage"}))},V=e=>{var t;S({key:"muteAllMembers",value:e}),(null===(t=window)||void 0===t||null===(t=t.TUIKitTUICore)||void 0===t?void 0:t.isOfficial)&&(null===c||void 0===c?void 0:c.commit)&&(null===c||void 0===c||c.commit("handleTask",4))},R=(e,t)=>{const n=[];switch(l()(e).call(e,e=>(n.push(e.userID),e)),Zt.getInstance().reportEvent({name:"groupOptions",ext1:"groupOptions"}),t){case"add":g(n),Zt.getInstance().reportEvent({name:"groupOptions",ext1:"groupAddMember"});break;case"remove":w(n),Zt.getInstance().reportEvent({name:"groupOptions",ext1:"groupRemoveMember"});break;case"addAdmin":E(e[0]),Zt.getInstance().reportEvent({name:"groupOptions",ext1:"groupAddAdmin"});break;case"removeAdmin":E(e[0]),Zt.getInstance().reportEvent({name:"groupOptions",ext1:"groupRemoveAdmin"});break;case"changeOwner":j(n[0]),Zt.getInstance().reportEvent({name:"groupOptions",ext1:"groupChangeOwner"});break;case"addMute":k(n[0],"add"),Zt.getInstance().reportEvent({name:"groupOptions",ext1:"groupAddMute"});break;case"removeMute":k(n[0],"remove"),Zt.getInstance().reportEvent({name:"groupOptions",ext1:"groupRemoveMute"});break;default:break}},x=async()=>{try{var e;const{toClipboard:t}=Object(Eo["a"])();await t(null===r||void 0===r||null===(e=r.conversation)||void 0===e||null===(e=e.groupProfile)||void 0===e?void 0:e.groupID)}catch(t){Object(vn["b"])(t,r.env)}},P=e=>{r.currentMember=e,T("profile")};return{...Object(U["toRefs"])(r),isDismissGroupAuth:u,isShowAddMember:p,isSetMuteTime:v,isAdmin:h,isAuth:b,addMember:g,deleteMember:O,changeOwner:j,quit:I,dismiss:C,handleAdmin:E,setMemberMuteTime:k,kickedOut:w,edit:_,updateProfile:S,setTab:T,TabName:d,getMember:f,handleSearchMember:L,submit:A,cancel:N,toggleMask:B,toggleShow:M,setAllMuteTime:V,handleManage:R,showUserNum:m,dialog:s,handleGroupIDCopy:x,handleMemberProfileShow:P}}});var Ri=Vi;n("d42b");const xi=se()(Ri,[["render",ta],["__scopeId","data-v-6c0f83d2"]]);var Pi=xi;const Gi={product:{label:"产品文档",url:"https://cloud.tencent.com/document/product/269/1499#.E7.BE.A4.E7.BB.84.E5.8A.9F.E8.83.BD"},customMessage:{label:"自定义消息",url:"https://web.sdk.qcloud.com/im/doc/zh-cn/SDK.html#createCustomMessage"},complaint:{label:"点此投诉",url:"https://cloud.tencent.com/apply/p/xc3oaubi98g"},implement:{label:"集成TUICallKit",url:"https://cloud.tencent.com/document/product/269/79861"},purchase:{label:"开通腾讯实时音视频服务",url:"https://cloud.tencent.com/document/product/1640/79968"}};var Fi=Gi,Hi=n("505e"),zi=n.n(Hi),Ki=n("a4fc"),Yi=n.n(Ki),Wi=n("5202"),$i=n("41b5"),qi=n("ec4e"),Qi=n("600a"),Xi=n("2c34"),Zi=n("cfd7"),Ji=n("36f7"),er=n("1ad4"),tr=Ji["a"].extend({name:"custom-image",addAttributes(){return{...Ji["a"].config.addAttributes(),class:{default:"image",rendered:!1}}},addCommands(){return{setImage:e=>({tr:t,commands:n})=>{var o;return"custom-image"==(null===(o=t.selection)||void 0===o||null===(o=o.node)||void 0===o||null===(o=o.type)||void 0===o?void 0:o.name)?n.updateAttributes("custom-image",e):n.insertContent({type:this.name,attrs:e})}}},renderHTML({node:e,HTMLAttributes:t}){return t.class="custom-image-"+e.attrs.class,["img",Object(er["k"])(this.options.HTMLAttributes,t)]}});const nr={class:"memberList",ref:"dialog"},or={key:0,class:"memberList-title"},ar={class:"title"},ir={class:"memberList-box"},rr=["onClick"],sr=["src"];function lr(e,t,n,o,a,i){return e.showAtList?(Object(U["openBlock"])(),Object(U["createElementBlock"])("div",{key:0,class:Object(U["normalizeClass"])(["message-input-at",[e.isH5&&"message-input-at-h5"]]),ref:"MessageInputAt"},[Object(U["createElementVNode"])("div",nr,[e.isH5?(Object(U["openBlock"])(),Object(U["createElementBlock"])("header",or,[Object(U["createElementVNode"])("span",ar,Object(U["toDisplayString"])(e.$t("TUIChat.选择提醒的人")),1),Object(U["createElementVNode"])("i",{class:"icon icon-close close",onClick:t[0]||(t[0]=(...t)=>e.closeAt&&e.closeAt(...t))})])):Object(U["createCommentVNode"])("",!0),Object(U["createElementVNode"])("ul",ir,[(Object(U["openBlock"])(!0),Object(U["createElementBlock"])(U["Fragment"],null,Object(U["renderList"])(e.showMemberList,(t,n)=>(Object(U["openBlock"])(),Object(U["createElementBlock"])("li",{class:Object(U["normalizeClass"])(["memberList-box-body",[n===e.selectedIndex&&"selected"]]),key:n,onClick:t=>e.selectItem(n),ref_for:!0,ref:"memberListItems"},[Object(U["createElementVNode"])("img",{src:(null===t||void 0===t?void 0:t.avatar)||"https://web.sdk.qcloud.com/component/TUIKit/assets/avatar_21.png"},null,8,sr),Object(U["createElementVNode"])("span",null,Object(U["toDisplayString"])(null!==t&&void 0!==t&&t.nick?null===t||void 0===t?void 0:t.nick:null===t||void 0===t?void 0:t.userID),1)],10,rr))),128))])],512)],2)):Object(U["createCommentVNode"])("",!0)}var cr=n("703d"),dr=n.n(cr);const ur=Object(U["ref"])(),pr=Object(U["ref"])(!1),mr=Object(U["ref"])(),br=Object(U["ref"])(),hr=Object(U["ref"])({left:0,top:0}),vr=Object(U["ref"])(),fr=Object(U["ref"])(0),gr=Object(U["ref"])(),Or=Object(U["ref"])(!1),jr=()=>({allowedPrefixes:null,items:e=>{var t;const n=null===mr||void 0===mr||null===(t=mr.value)||void 0===t?void 0:y()(t).call(t,t=>{var n,o,a,i;return(null===t||void 0===t||null===(n=t.nick)||void 0===n||null===(n=n.toLowerCase())||void 0===n?void 0:Yi()(n).call(n,null===e||void 0===e||null===(o=e.query)||void 0===o?void 0:o.toLowerCase()))||(null===t||void 0===t||null===(a=t.userID)||void 0===a||null===(a=a.toLowerCase())||void 0===a?void 0:Yi()(a).call(a,null===e||void 0===e||null===(i=e.query)||void 0===i?void 0:i.toLowerCase()))});return br.value=null!==n&&void 0!==n&&n.length?n:mr.value,br.value},render:()=>({onStart:e=>{if(pr.value=!0,null===e||void 0===e||!e.clientRect)return;const t=null===e||void 0===e?void 0:e.clientRect();null!==t&&void 0!==t&&t.left&&null!==t&&void 0!==t&&t.top&&!Or.value&&(hr.value={left:null===t||void 0===t?void 0:t.left,top:null===t||void 0===t?void 0:t.top}),vr.value=e.command},onUpdate(e){if(null===e||void 0===e||!e.clientRect)return;const t=null===e||void 0===e?void 0:e.clientRect();null!==t&&void 0!==t&&t.left&&null!==t&&void 0!==t&&t.top&&!Or.value&&(hr.value={left:null===t||void 0===t?void 0:t.left,top:null===t||void 0===t?void 0:t.top})},onKeyDown(e){var t,n;"Enter"===e.event.key&&(null===(t=e.event)||void 0===t||t.stopPropagation(),null===(n=e.event)||void 0===n||n.preventDefault());return"Escape"===e.event.key?(pr.value=!1,br.value=mr.value,!0):"ArrowUp"===(null===e||void 0===e?void 0:e.event.key)?(yr(),!0):"ArrowDown"===(null===e||void 0===e?void 0:e.event.key)?(Ir(),!0):"Enter"===(null===e||void 0===e?void 0:e.event.key)&&(Cr(),!0)},onExit(e){pr.value=!1,br.value=mr.value,hr.value={left:0,top:0}}})}),yr=()=>{var e,t,n,o;null!==br&&void 0!==br&&null!==(e=br.value)&&void 0!==e&&e.length&&(fr.value=(fr.value+(null===br||void 0===br||null===(t=br.value)||void 0===t?void 0:t.length)-1)%(null===br||void 0===br||null===(n=br.value)||void 0===n?void 0:n.length),null===gr||void 0===gr||null===(o=gr.value[fr.value])||void 0===o||o.scrollIntoView(!1))},Ir=()=>{var e,t,n;null!==br&&void 0!==br&&null!==(e=br.value)&&void 0!==e&&e.length&&(fr.value=(fr.value+1)%(null===br||void 0===br||null===(t=br.value)||void 0===t?void 0:t.length),null===gr||void 0===gr||null===(n=gr.value[fr.value])||void 0===n||n.scrollIntoView(!1))},Cr=()=>{Er(fr.value)},Er=e=>{var t;if(null===mr||void 0===mr||null===(t=mr.value)||void 0===t||!t.length)return;const n=null===mr||void 0===mr?void 0:mr.value[e];n&&vr.value&&vr.value({id:null===n||void 0===n?void 0:n.userID,label:(null===n||void 0===n?void 0:n.nick)||(null===n||void 0===n?void 0:n.userID)})},kr=Object(U["defineComponent"])({props:{memberList:{type:Array,default:()=>[]},isGroup:{type:Boolean,default:!1},selfInfo:{type:Object,default:()=>({})},isH5:{type:Boolean,default:!1}},setup(e){const{memberList:t,isGroup:n,selfInfo:o}=Object(U["toRefs"])(e),a={userID:Xn["a"].TYPES.MSG_AT_ALL,nick:"所有人",isAll:!0,avatar:dr.a},i=Object(U["ref"])();Object(U["watchEffect"])(()=>{pr.value=pr.value&&n.value,Or.value=e.isH5}),Object(U["watch"])(()=>t.value,()=>{var e,n,i;null!==t&&void 0!==t&&null!==(e=t.value[0])&&void 0!==e&&e.isAll||(null===t||void 0===t||null===(i=t.value)||void 0===i||i.unshift(a));const r=null===t||void 0===t||null===(n=t.value)||void 0===n?void 0:y()(n).call(n,e=>{var t;return(null===e||void 0===e?void 0:e.userID)!==(null===o||void 0===o||null===(t=o.value)||void 0===t?void 0:t.userID)});mr.value=r,br.value=r},{deep:!0,immediate:!0}),Object(U["watch"])(()=>[hr.value,null===ur||void 0===ur?void 0:ur.value],()=>{var e;!Or.value&&null!==ur&&void 0!==ur&&ur.value&&null!==ur&&void 0!==ur&&null!==(e=ur.value)&&void 0!==e&&e.style&&(ur.value.style.left=hr.value.left+"px",ur.value.style.top=hr.value.top-ur.value.clientHeight+"px")},{deep:!0,immediate:!0});const r=()=>{pr.value=!1,br.value=mr.value,hr.value={left:0,top:0}};return Object(hn["onClickOutside"])(i,()=>{r()}),{selectedIndex:fr,selectItem:Er,showAtList:pr,closeAt:r,showMemberList:br,allMemberList:mr,MessageInputAt:ur,memberListItems:gr,dialog:i}}});var wr=kr;n("4712");const _r=se()(wr,[["render",lr],["__scopeId","data-v-29169fdf"]]);var Sr=_r,Tr=Object(U["defineComponent"])({__name:"message-input-editor",props:{placeholder:{type:String,default:"this is placeholder"},replayOrReferenceMessage:{type:Object,default:()=>({})},isMute:{type:Boolean,default:!0},muteText:{type:String,default:""},enableInput:{type:Boolean,default:!0},enableAt:{type:Boolean,default:!0},enableDragUpload:{type:Boolean,default:!0},enableTyping:{type:Boolean,default:!0},isH5:{type:Boolean,default:!0},isGroup:{type:Boolean,default:!1}},emits:["sendMessage","onTyping"],setup(e,{expose:t,emit:n}){const o=e,i=n,{placeholder:r,isH5:s,enableAt:l,enableDragUpload:c,isGroup:d,enableTyping:u}=Object(U["toRefs"])(o),p=Object(U["ref"])(!0),m=Object(U["ref"])(!0),b=Object(Wi["b"])({extensions:[$i["a"],qi["a"],Xi["a"],Qi["a"].configure({emptyEditorClass:"is-editor-empty",placeholder:r.value}),Zi["a"].configure({HTMLAttributes:{class:"mention"},suggestion:l.value&&jr()}),tr.configure({inline:!0,allowBase64:!0,HTMLAttributes:{class:"custom-image"}})],autofocus:!0,editable:!0,injectCSS:!1,onUpdate({editor:e,transaction:t}){var n;u.value&&!d.value&&(m.value=!e.isFocused,(null===t||void 0===t||null===(n=t.doc)||void 0===n||null===(n=n.content)||void 0===n?void 0:n.size)>2?p.value=!1:p.value=!0,i("onTyping",p.value,m.value))},onFocus(){var e;if(s.value&&null!==(e=document)&&void 0!==e&&null!==(e=e.getElementById("app"))&&void 0!==e&&e.style){const e=document.body.scrollHeight-window.innerHeight;document.getElementById("app").style.marginBottom=e+"px",document.getElementById("app").style.height=`calc(100% - ${e}px)`}u.value&&!d.value&&(m.value=!0,i("onTyping",p.value,m.value))},onBlur(){var e;s.value&&null!==(e=document)&&void 0!==e&&null!==(e=e.getElementById("app"))&&void 0!==e&&e.style&&(document.getElementById("app").style.marginBottom="",document.getElementById("app").style.height="100%"),u.value&&!d.value&&(m.value=!0,i("onTyping",p.value,m.value))}}),h=Object(U["ref"])(),v=e=>{var t;null!==s&&void 0!==s&&s.value||(null===e||void 0===e||e.preventDefault(),null===e||void 0===e||e.stopPropagation(),13===e.keyCode&&e.ctrlKey?null===b||void 0===b||null===(t=b.value)||void 0===t||null===(t=t.commands)||void 0===t||t.insertContent("

"):13===e.keyCode&&i("sendMessage"))},g=new zi.a,j=async(e,t)=>{if(e.preventDefault(),e.stopPropagation(),!s.value&&(null!==c&&void 0!==c&&c.value||"drop"!==t)&&("drop"===t&&e.dataTransfer||"paste"===t&&e.clipboardData)){var n,o;const r="drop"===t?null===e||void 0===e||null===(n=e.dataTransfer)||void 0===n?void 0:n.files:null===e||void 0===e||null===(o=e.clipboardData)||void 0===o?void 0:o.files;for(let e=0;e{var e,t;null===b||void 0===b||null===(e=b.value)||void 0===e||null===(e=e.commands)||void 0===e||e.focus("end"),null===b||void 0===b||null===(t=b.value)||void 0===t||null===(t=t.commands)||void 0===t||t.scrollIntoView()},10)}}},y=new zi.a,I=(e,t)=>new f.a((n,o)=>{if(y.has(t))n(y.get(t));else{let a=new Image;a.crossOrigin="anonymous",a.onload=()=>{y.set(t,a),n(a)},a.onerror=o,a.src=e}}),C=async e=>{const{name:t,type:n}=e,o=document.createElement("canvas");let a=160,i=50;o.style.width=a+"px",o.style.height=i+"px";var r=window.devicePixelRatio;o.width=Math.floor(a*r),o.height=Math.floor(i*r);const s=o.getContext("2d");if(!s)return"";s.scale(r,r);const{iconSrc:l,iconType:c}=E(n),d=await I(l,c);null===s||void 0===s||s.drawImage(d,10,10,30,30);const u=k(t);s.fillText(u,45,22);const p=o.toDataURL();return p},E=e=>{const t="https://web.sdk.qcloud.com/component/TUIKit/assets/file-",n=["image","pdf","text","ppt","presentation","sheet","zip","word","video","unknown"];let o="",i="";return a()(n).call(n,n=>{te()(e).call(e,n)&&(o=t+n+".svg",i=n)}),{iconSrc:o||t+"unknown.svg",iconType:i||"unknown"}},k=e=>{if(!e)return e;let t="",n=0;for(let o=0;o<(null===e||void 0===e?void 0:e.length);o++){if(n>16){t+="...";break}t+=e[o],/[a-z]|[0-9]|[,;.!@#-+/\\$%^*()<>?:"'{}~]/i.test(e[o])?n+=1:n+=2}return t},w=()=>_(),_=()=>{var e;const t=null===b||void 0===b||null===(e=b.value)||void 0===e?void 0:e.getJSON(),n=[],o=e=>{var t;e&&e.type&&("text"===e.type||"custom-image"===e.type||"mention"===e.type?i(e):("paragraph"===e.type&&i(e),e.content&&e.content.length&&a()(t=e.content).call(t,e=>{o(e)})))},i=e=>{var t,o,a,i;if("paragraph"===e.type)n.length>0&&n[n.length-1]&&"text"===(null===(i=n[n.length-1])||void 0===i?void 0:i.type)&&(n[n.length-1].payload.text+="\n");else if("text"===e.type||"custom-image"===e.type&&"emoji"===(null===e||void 0===e||null===(t=e.attrs)||void 0===t?void 0:t.class)){var r,s;const t="text"===e.type?null===e||void 0===e?void 0:e.text:null===e||void 0===e||null===(r=e.attrs)||void 0===r?void 0:r.alt;n.length>0&&n[n.length-1]&&"text"===(null===(s=n[n.length-1])||void 0===s?void 0:s.type)?n[n.length-1].payload.text+=t:n.push({type:"text",payload:{text:t}})}else if("custom-image"===e.type&&"normal"===(null===e||void 0===e||null===(o=e.attrs)||void 0===o?void 0:o.class)){var l;n.push({type:"image",payload:{file:null===g||void 0===g?void 0:g.get(null===e||void 0===e||null===(l=e.attrs)||void 0===l?void 0:l.src)}})}else if("custom-image"===e.type&&"file"===(null===e||void 0===e||null===(a=e.attrs)||void 0===a?void 0:a.class)){var c,d;const t=null===g||void 0===g?void 0:g.get(null===e||void 0===e||null===(c=e.attrs)||void 0===c?void 0:c.src);n.push({type:null!==t&&void 0!==t&&null!==(d=t.type)&&void 0!==d&&te()(d).call(d,"video")?"video":"file",payload:{file:t}})}else if("mention"===e.type){var u,p,m;const t="@"+(null===e||void 0===e||null===(u=e.attrs)||void 0===u?void 0:u.label)+" ";var b,h,v;if(n.length>0&&n[n.length-1]&&"text"===(null===(p=n[n.length-1])||void 0===p?void 0:p.type)?n[n.length-1].payload.text+=t:n.push({type:"text",payload:{text:t}}),null!==(m=n[n.length-1])&&void 0!==m&&null!==(m=m.payload)&&void 0!==m&&m.atUserList)null===(b=n[n.length-1])||void 0===b||null===(b=b.payload)||void 0===b||null===(b=b.atUserList)||void 0===b||b.push(null===e||void 0===e||null===(h=e.attrs)||void 0===h?void 0:h.id);else n[n.length-1].payload.atUserList=[null===e||void 0===e||null===(v=e.attrs)||void 0===v?void 0:v.id]}};return o(t),n},S=e=>{var t,n,o;null===b||void 0===b||null===(t=b.value)||void 0===t||null===(t=t.commands)||void 0===t||t.insertContent({type:"custom-image",attrs:{src:null===e||void 0===e?void 0:e.url,alt:null===e||void 0===e?void 0:e.name,title:null===e||void 0===e?void 0:e.name,class:"emoji"}}),null===b||void 0===b||null===(n=b.value)||void 0===n||n.commands.focus("end"),null===b||void 0===b||null===(o=b.value)||void 0===o||null===(o=o.commands)||void 0===o||o.scrollIntoView()},T=()=>{var e,t;null===b||void 0===b||null===(e=b.value)||void 0===e||null===(e=e.commands)||void 0===e||e.clearContent(!0),null===g||void 0===g||g.clear(),null===b||void 0===b||null===(t=b.value)||void 0===t||null===(t=t.commands)||void 0===t||t.focus("end"),m.value=!0,p.value=!0},L=e=>{var t;null===b||void 0===b||null===(t=b.value)||void 0===t||null===(t=t.commands)||void 0===t||t.insertContent(e)};return t({getEditorContent:w,addEmoji:S,resetEditor:T,setEditorContent:L}),(t,n)=>(Object(U["openBlock"])(),Object(U["createElementBlock"])("div",{class:Object(U["normalizeClass"])(["message-input-container",Object(U["unref"])(s)&&"message-input-container-h5"])},[Object(U["withDirectives"])(Object(U["createElementVNode"])("div",{class:"message-input-mute"},Object(U["toDisplayString"])(t.$t("TUIChat."+e.muteText)),513),[[U["vShow"],e.isMute]]),Object(U["withDirectives"])(Object(U["createVNode"])(Object(U["unref"])(Wi["a"]),{editor:Object(U["unref"])(b),class:"message-input-area",ref_key:"editorContainer",ref:h,onDrop:n[0]||(n[0]=e=>j(e,"drop")),onPaste:n[1]||(n[1]=e=>j(e,"paste")),onKeydown:Object(U["withKeys"])(v,["enter"])},null,8,["editor"]),[[U["vShow"],!e.isMute&&e.enableInput]])],2))}});n("3a39c"),n("7d94");const Lr=se()(Tr,[["__scopeId","data-v-712924cc"]]);var Ar=Lr;const Dr={class:"message-input-button-hover"};var Nr=Object(U["defineComponent"])({__name:"message-input-button",props:{enableSend:{type:Boolean,default:!0},messages:{type:Array,default:()=>[]},isH5:{type:Boolean,default:!0}},emits:["sendMessage"],setup(e,{emit:t}){const n=e,{enableSend:o}=Object(U["toRefs"])(n),a=t,i=()=>{a("sendMessage")};return(t,n)=>(Object(U["openBlock"])(),Object(U["createElementBlock"])("div",{class:Object(U["normalizeClass"])(["message-input-button",e.isH5&&"message-input-button-h5"])},[Object(U["unref"])(o)?(Object(U["openBlock"])(),Object(U["createElementBlock"])("button",{key:0,class:"message-input-button-cont","data-type":"text",onClick:i,disabled:!1},[Object(U["createElementVNode"])("p",Dr,Object(U["toDisplayString"])(t.$t("TUIChat.按Enter发送,Ctrl+Enter换行")),1),Object(U["createTextVNode"])(" "+Object(U["toDisplayString"])(t.$t("发送")),1)])):Object(U["createCommentVNode"])("",!0)],2))}});n("3e72");const Ur=se()(Nr,[["__scopeId","data-v-58e1a202"]]);var Br=Ur;const Mr={key:0,class:"reference"},Vr={class:"reference-box"},Rr={class:"reference-box-show"},xr={class:"reference-box-show-name"},Pr={key:1,class:"reply"},Gr={class:"reply-box"},Fr={class:"reply-box-show"};var Hr=Object(U["defineComponent"])({__name:"message-input-reference-or-reply",props:{replyOrReference:{type:Object,default:()=>({})},isH5:{type:Boolean,default:!1}},emits:["resetReplyOrReference"],setup(e,{emit:t}){const n=e,o=t,{replyOrReference:a,isH5:i}=Object(U["toRefs"])(n),r=()=>{o("resetReplyOrReference")};return(e,t)=>{var n,o,s,l,c,d,u,p,m,b,h,v,f,g,O;return null!==(n=Object(U["unref"])(a))&&void 0!==n&&n.show?(Object(U["openBlock"])(),Object(U["createElementBlock"])("div",{key:0,class:Object(U["normalizeClass"])(["reference"===(null===(o=Object(U["unref"])(a))||void 0===o?void 0:o.show)&&"message-input-reference","reply"===(null===(s=Object(U["unref"])(a))||void 0===s?void 0:s.show)&&"message-input-reply",Object(U["unref"])(i)&&"reference"===(null===(l=Object(U["unref"])(a))||void 0===l?void 0:l.show)&&"message-input-reference-h5",Object(U["unref"])(i)&&"reply"===(null===(c=Object(U["unref"])(a))||void 0===c?void 0:c.show)&&"message-input-reply-h5"])},["reference"===(null===(d=Object(U["unref"])(a))||void 0===d?void 0:d.show)?(Object(U["openBlock"])(),Object(U["createElementBlock"])("div",Mr,[Object(U["createElementVNode"])("div",Vr,[Object(U["createElementVNode"])("div",Rr,[Object(U["createElementVNode"])("span",xr,Object(U["toDisplayString"])(null!==(u=Object(U["unref"])(a))&&void 0!==u&&null!==(u=u.message)&&void 0!==u&&u.nick?null===(p=Object(U["unref"])(a))||void 0===p||null===(p=p.message)||void 0===p?void 0:p.nick:null===(m=Object(U["unref"])(a))||void 0===m||null===(m=m.message)||void 0===m?void 0:m.from)+": ",1),Object(U["createElementVNode"])("span",null,Object(U["toDisplayString"])(null===(b=Object(U["unref"])(a))||void 0===b?void 0:b.content),1)]),Object(U["createElementVNode"])("label",{class:"icon icon-cancel",onClick:r})])])):"reply"===(null===(h=Object(U["unref"])(a))||void 0===h?void 0:h.show)?(Object(U["openBlock"])(),Object(U["createElementBlock"])("div",Pr,[Object(U["createElementVNode"])("div",Gr,[t[0]||(t[0]=Object(U["createElementVNode"])("i",null,null,-1)),Object(U["createElementVNode"])("div",Fr,[Object(U["createElementVNode"])("span",null,Object(U["toDisplayString"])(null!==(v=Object(U["unref"])(a))&&void 0!==v&&null!==(v=v.message)&&void 0!==v&&v.nick?null===(f=Object(U["unref"])(a))||void 0===f||null===(f=f.message)||void 0===f?void 0:f.nick:null===(g=Object(U["unref"])(a))||void 0===g||null===(g=g.message)||void 0===g?void 0:g.from)+Object(U["toDisplayString"])(Object(U["unref"])(i)?":":""),1),Object(U["createElementVNode"])("span",null,Object(U["toDisplayString"])(null===(O=Object(U["unref"])(a))||void 0===O?void 0:O.content),1)]),Object(U["createElementVNode"])("label",{class:"icon icon-cancel",onClick:r})])])):Object(U["createCommentVNode"])("",!0)],2)):Object(U["createCommentVNode"])("",!0)}}});n("aeac");const zr=se()(Hr,[["__scopeId","data-v-1333615b"]]);var Kr=zr,Yr=Object(U["defineComponent"])({__name:"index",props:{placeholder:{type:String,default:"this is placeholder"},conversation:{type:Object,default:()=>({})},isDisabled:{type:Boolean,default:()=>!0},replyOrReference:{type:Object,default:()=>({})},isGroup:{type:Boolean,default:!1},memberList:{type:Array,default:()=>[]},isMute:{type:Boolean,default:!0},muteText:{type:String,default:""},enableInput:{type:Boolean,default:!0},enableAt:{type:Boolean,default:!0},enableDragUpload:{type:Boolean,default:!0},enableTyping:{type:Boolean,default:!0},env:{type:Object,default:()=>({})}},emits:["sendMessage","resetReplyOrReference","onTyping"],setup(e,{expose:t,emit:n}){var o;const i=e,r=n,{placeholder:s,isGroup:l,memberList:c,conversation:d,replyOrReference:u,env:p,enableTyping:m}=Object(U["toRefs"])(i),b=Object(U["ref"])(),v=Object(U["ref"])(null===i||void 0===i||null===(o=i.env)||void 0===o?void 0:o.isH5);Object(U["watch"])(()=>d.value,(e,t)=>{var n;(null===e||void 0===e?void 0:e.conversationID)!==(null===t||void 0===t?void 0:t.conversationID)&&(null===b||void 0===b||null===(n=b.value)||void 0===n||n.resetEditor())},{immediate:!0});const f=async()=>{var e,t,n;const o=null===(e=window)||void 0===e||null===(e=e.TUIKitTUICore)||void 0===e||null===(e=e.TUIServer)||void 0===e?void 0:e.TUIChat,i=null===b||void 0===b||null===(t=b.value)||void 0===t?void 0:t.getEditorContent(),s=u.value;await(null===i||void 0===i?void 0:a()(i).call(i,async e=>{var t,n,a,i;try{let p,m;switch(p=O(p),null===e||void 0===e?void 0:e.type){case"text":var l,c,d,u;if(p=j(p),null!==e&&void 0!==e&&null!==(t=e.payload)&&void 0!==t&&t.atUserList)m=await(null===o||void 0===o?void 0:o.sendTextAtMessage({text:JSON.parse(h()(null===e||void 0===e||null===(l=e.payload)||void 0===l?void 0:l.text)),atUserList:null===e||void 0===e||null===(c=e.payload)||void 0===c?void 0:c.atUserList},p));else m=await(null===o||void 0===o?void 0:o.sendTextMessage(JSON.parse(h()(null===e||void 0===e||null===(d=e.payload)||void 0===d?void 0:d.text)),p));if("reply"===(null===s||void 0===s?void 0:s.show))await o.replyMessage(null===(u=m)||void 0===u||null===(u=u.data)||void 0===u?void 0:u.message);break;case"image":await(null===o||void 0===o?void 0:o.sendImageMessage(null===e||void 0===e||null===(n=e.payload)||void 0===n?void 0:n.file));break;case"video":await(null===o||void 0===o?void 0:o.sendVideoMessage(null===e||void 0===e||null===(a=e.payload)||void 0===a?void 0:a.file));break;case"file":await(null===o||void 0===o?void 0:o.sendFileMessage(null===e||void 0===e||null===(i=e.payload)||void 0===i?void 0:i.file));break;default:break}r("sendMessage")}catch(m){Object(vn["b"])(m,p.value)}})),null===b||void 0===b||null===(n=b.value)||void 0===n||n.resetEditor(),C()},g=(e,t)=>{r("onTyping",e,t)},O=e=>(m.value&&(e||(e={}),e.messageFeature={needTyping:1,version:1}),e),j=e=>{var t,n,o,a,i,r,s,l;if("reply"!==(null===u||void 0===u||null===(t=u.value)||void 0===t?void 0:t.show)&&"reference"!==(null===u||void 0===u||null===(n=u.value)||void 0===n?void 0:n.show))return e;if(e||(e={}),e.messageReply={messageAbstract:null===u||void 0===u||null===(o=u.value)||void 0===o?void 0:o.content,messageSender:(null===u||void 0===u||null===(a=u.value)||void 0===a||null===(a=a.message)||void 0===a?void 0:a.nick)||(null===u||void 0===u||null===(i=u.value)||void 0===i||null===(i=i.message)||void 0===i?void 0:i.from),messageID:null===u||void 0===u||null===(r=u.value)||void 0===r||null===(r=r.message)||void 0===r?void 0:r.ID,messageType:null===u||void 0===u||null===(s=u.value)||void 0===s?void 0:s.type,version:1},"reply"===(null===u||void 0===u||null===(l=u.value)||void 0===l?void 0:l.show))try{var c,d;if(e.messageReply.messageRootID=null===u||void 0===u||null===(c=u.value)||void 0===c||null===(c=c.message)||void 0===c?void 0:c.ID,null!==u&&void 0!==u&&null!==(d=u.value)&&void 0!==d&&null!==(d=d.message)&&void 0!==d&&d.cloudCustomData){var p,m,b;const t=Object(D["a"])(null===u||void 0===u||null===(p=u.value)||void 0===p||null===(p=p.message)||void 0===p?void 0:p.cloudCustomData);e.messageReply.messageRootID=(null===t||void 0===t||null===(m=t.messageReply)||void 0===m?void 0:m.messageRootID)||(null===u||void 0===u||null===(b=u.value)||void 0===b||null===(b=b.message)||void 0===b?void 0:b.ID)}}catch(h){console.warn(h)}return e},I=e=>{var t;null===b||void 0===b||null===(t=b.value)||void 0===t||t.addEmoji(e)},C=()=>{r("resetReplyOrReference")},E=e=>{var t,n;null===b||void 0===b||null===(t=b.value)||void 0===t||t.resetEditor(),C(),null===b||void 0===b||null===(n=b.value)||void 0===n||n.setEditorContent(e)};return t({addEmoji:I,reEdit:E}),(t,n)=>{var o,a;return Object(U["openBlock"])(),Object(U["createElementBlock"])("div",{class:Object(U["normalizeClass"])(["message-input",v.value&&"message-input-h5"])},[e.isDisabled?(Object(U["openBlock"])(),Object(U["createElementBlock"])(U["Fragment"],{key:0},[Object(U["createVNode"])(Ar,{ref_key:"editor",ref:b,isH5:v.value,placeholder:Object(U["unref"])(s),isGroup:Object(U["unref"])(l),isMute:e.isMute,muteText:e.muteText,enableInput:e.enableInput,enableAt:e.enableAt,enableTyping:Object(U["unref"])(m),enableDragUpload:e.enableDragUpload,onSendMessage:f,onOnTyping:g},null,8,["isH5","placeholder","isGroup","isMute","muteText","enableInput","enableAt","enableTyping","enableDragUpload"]),e.isMute?Object(U["createCommentVNode"])("",!0):(Object(U["openBlock"])(),Object(U["createBlock"])(Br,{key:0,isH5:v.value,onSendMessage:f},null,8,["isH5"])),e.enableAt?(Object(U["openBlock"])(),Object(U["createBlock"])(Sr,{key:1,memberList:y()(o=Object(U["unref"])(c)).call(o,e=>{var t;return-1===(null===e||void 0===e?void 0:T()(t=e.userID).call(t,"admin"))}),isGroup:Object(U["unref"])(l),selfInfo:null===(a=Object(U["unref"])(d))||void 0===a||null===(a=a.groupProfile)||void 0===a?void 0:a.selfInfo,isH5:v.value},null,8,["memberList","isGroup","selfInfo","isH5"])):Object(U["createCommentVNode"])("",!0),Object(U["createVNode"])(Kr,{replyOrReference:Object(U["unref"])(u),isH5:v.value,onResetReplyOrReference:C},null,8,["replyOrReference","isH5"])],64)):Object(U["createCommentVNode"])("",!0)],2)}}});n("7a54");const Wr=se()(Yr,[["__scopeId","data-v-030d6bb0"]]);var $r=Wr,qr=$r,Qr=n("fdc9"),Xr=n("c9a1"),Zr=n("3ef4");const Jr=Object(U["defineComponent"])({name:"TUIChat",methods:{handleMergerMessageShowContext:D["l"],handleCustomMessageShowContext:D["g"],handleLocationMessageShowContext:D["k"],handleFaceMessageShowContext:D["h"],handleFileMessageShowContext:D["i"],handleAudioMessageShowContext:D["e"],handleVideoMessageShowContext:D["t"]},components:{MessageMerger:gt,MessageVideo:Ve,MessageFile:Ze,MessageLocation:ut,MessageCustom:nn,MessageFace:at,MessageAudio:Fe,MessageImage:we,MessageText:ce,MessageSystem:Io,MessageTimestamp:Uo,Manage:Pi,MessageInput:qr,MessageItem:Ao},props:{isMsgNeedReadReceipt:{type:Boolean,default:!1},isNeedTyping:{type:Boolean,default:!0},isNeedEmojiReact:{type:Boolean,default:!0}},setup(e,t){var n,o,i,s;const{TUIServer:c}=Jr,d=(null===c||void 0===c||null===(n=c.TUICore)||void 0===n||null===(n=n.TUIServer)||void 0===n||n.TUIGroup,null===c||void 0===c||null===(o=c.TUICore)||void 0===o||null===(o=o.TUIServer)||void 0===o||o.TUIProfile,c.TUICore.isOfficial&&Jt["c"]&&Object(Jt["c"])()||{}),{t:p}=window.TUIKitTUICore.config.i18n.useI18n(),m=Object(U["reactive"])({messageList:[],conversation:{},text:"",atText:"",types:c.TUICore.TIM.TYPES,currentMessage:{},dialogID:"",forwardStatus:!1,receiptDialogStatus:!1,repliesDialogStatus:!1,showImagePreview:!1,currentImagePreview:{},isCompleted:!1,userInfoView:!1,userInfo:{isGroup:!1,list:[]},selfInfo:{},messageComponents:Zc("message"),isShow:!1,muteText:"您已被管理员禁言",isFirstSend:!0,isFirstRender:!0,showGroupMemberList:!1,reference:{message:{},content:"",type:0,show:""},historyReference:!1,referenceID:"",allMemberList:[],env:c.TUICore.TUIEnv,showResend:!1,resendMessage:{},inputBlur:!1,inputComposition:!1,inputCompositionCont:"",needTyping:e.isNeedTyping,needReadReceipt:!1,peerNeedReceipt:!1,needToBottom:!1,toBottomTipCont:"",messageInView:[],readSet:new J.a,isUserAction:!1,scroll:{scrollTop:0,scrollHeight:0,scrollTopMin:1/0,scrollTopMax:0},isMsgNeedReadReceipt:!1,isNeedEmojiReact:!1,dropDownRef:null,typingRef:null,upTabIndex:"0",hrefParams:{}}),b=!!Object(U["useSlots"])().default,v=async e=>{var t;e&&await(null===c||void 0===c||null===(t=c.TUICore)||void 0===t||null===(t=t.TUIServer)||void 0===t||null===(t=t.TUIConversation)||void 0===t?void 0:t.setMessageRead(e))},f=async e=>{var t;const n=y()(e).call(e,e=>"in"===(null===e||void 0===e?void 0:e.flow)&&(null===e||void 0===e?void 0:e.needReadReceipt)&&!m.readSet.has(null===e||void 0===e?void 0:e.ID));n.length&&await(null===c||void 0===c?void 0:c.sendMessageReadReceipt(n).then(()=>{a()(n).call(n,e=>m.readSet.add(null===e||void 0===e?void 0:e.ID))})),await v(null===m||void 0===m||null===(t=m.conversation)||void 0===t?void 0:t.conversationID)},g=[];a()(i=r()(Zc("send"))).call(i,e=>{"Call"===e&&"expert"===Ce["a"].isSpecialized||"Evaluate"===e||"Words"===e||g.push(e)}),Pi.TUIServer=c,Pi.GroupServer=null===c||void 0===c||null===(s=c.TUICore)||void 0===s||null===(s=s.TUIServer)||void 0===s?void 0:s.TUIGroup;const j=Object(U["ref"])(),I=Object(U["ref"])(),E=Object(U["ref"])(),k=Object(U["ref"])(),w=Object(U["ref"])();u()(c).call(c,m);const _={list:[],handleAvatar:D["f"],handleName:D["m"]},S=Object(U["ref"])();Object(hn["onClickOutside"])(S,()=>{m.showGroupMemberList=!1});const L=Object(U["computed"])(()=>{const{conversation:e}=m;return null!==e&&void 0!==e&&e.conversationID?(null===e||void 0===e?void 0:e.type)===c.TUICore.TIM.TYPES.CONV_SYSTEM?"system":"chat":""}),A=Object(U["computed"])(()=>{const{conversation:e}=m;if((null===e||void 0===e?void 0:e.type)===c.TUICore.TIM.TYPES.CONV_GROUP){var t,n,o;const a=null===e||void 0===e||null===(t=e.groupProfile)||void 0===t?void 0:t.selfInfo.role,i=a===c.TUICore.TIM.TYPES.GRP_MBR_ROLE_MEMBER;if(i&&null!==e&&void 0!==e&&null!==(n=e.groupProfile)&&void 0!==n&&n.muteAllMembers)return!0;const r=(new Date).getTime();if(1e3*(null===(o=m.selfInfo)||void 0===o?void 0:o.muteUntil)-r>0)return!0}return!1});Object(U["watchEffect"])(()=>{m.isMsgNeedReadReceipt=e.isMsgNeedReadReceipt,m.needReadReceipt=m.isMsgNeedReadReceipt,m.needTyping=e.isNeedTyping,m.isNeedEmojiReact=e.isNeedEmojiReact}),Object(U["watch"])(()=>{var e;return null===m||void 0===m||null===(e=m.conversation)||void 0===e?void 0:e.conversationID},(e,t)=>{e!==t&&(m.scroll.scrollTop=0,m.scroll.scrollHeight=0,m.scroll.scrollTopMin=1/0,m.scroll.scrollTopMax=0,m.text="",m.atText="",m.reference={message:{},content:"",type:0,show:""})},{deep:!0}),Object(U["watch"])(A,(e,t)=>{const{conversation:n}=m;if(e&&(null===n||void 0===n?void 0:n.type)===c.TUICore.TIM.TYPES.CONV_GROUP){var o,a,i;const e=null===n||void 0===n||null===(o=n.groupProfile)||void 0===o?void 0:o.selfInfo.role,t=e===c.TUICore.TIM.TYPES.GRP_MBR_ROLE_MEMBER;t&&null!==n&&void 0!==n&&null!==(a=n.groupProfile)&&void 0!==a&&a.muteAllMembers&&(m.muteText="管理员开启全员禁言");const r=(new Date).getTime();1e3*(null===(i=m.selfInfo)||void 0===i?void 0:i.muteUntil)-r>0&&(m.muteText="您已被管理员禁言")}});const N=Object(U["computed"])(()=>{const{conversation:e}=m;return Object(D["m"])(e)}),B=Object(U["computed"])(()=>{var e;return console.log("data.messageList===================================="),console.log(m.messageList),y()(e=m.messageList).call(e,e=>!e.isDeleted&&!Object(D["v"])(e))}),M=Object(U["computed"])(()=>{var e;return null===B||void 0===B||null===(e=B.value)||void 0===e?void 0:y()(e).call(e,e=>!e.isRevoked&&e.type===m.types.MSG_IMAGE)}),V=Object(U["ref"])([]),R=Object(U["ref"])([]),x=Object(U["ref"])("");function P(e){let t={};for(let n in e){let o=n.substring(0,1).toLowerCase()+n.substring(1);if(t[o]=e[n],"imageInfoArray"===o){for(let e=0;e{var t;200==e.code?(V.value=l()(t=e.result).call(t,e=>{var t,n;e["ID"]=e.id;let o=e.msgcontent;return"1"==Ce["a"].isOvertime&&(o=h()(JSON.parse(e.msgcontent).MsgBody)),e["payload"]=o&&JSON.parse(o).length>0?P(null===(t=JSON.parse(o)[0])||void 0===t?void 0:t.MsgContent):"",e.contenttype===m.types.MSG_IMAGE&&(null===(n=R.value)||void 0===n||n.push(e)),e}),x.value=V.value.length>0?"":"暂无数据"):(V.value=[],R.value=[],x.value="暂无数据")}).catch(e=>{console.log(e),x.value="暂无数据"});const G=Object(U["computed"])(()=>{const{conversation:e,needReadReceipt:t}=m;return!((null===e||void 0===e?void 0:e.type)!==c.TUICore.TIM.TYPES.CONV_C2C&&!t)});Object(U["watch"])(B,(e,t)=>{if(Object(U["nextTick"])(()=>{var n,o;const a=(null===(n=e[e.length-1])||void 0===n?void 0:n.ID)===(null===(o=t[t.length-1])||void 0===o?void 0:o.ID);0===e.length||a||ce()}),m.currentMessage){var n;const t=null===(n=m.currentMessage)||void 0===n?void 0:n.ID,o=C()(e).call(e,e=>e.ID===t);o&&(m.currentMessage=Object(D["b"])(o))}if(m.historyReference&&B.value){for(let e=0;em.scroll.scrollTop,e=>{O()(()=>{var t;e===(null===j||void 0===j||null===(t=j.value)||void 0===t?void 0:t.scrollTop)&&(m.scroll.scrollTopMin!==1/0&&0!==m.scroll.scrollTopMax&&be("scroll"),m.scroll.scrollTopMin=1/0,m.scroll.scrollTopMax=0)},20)},{deep:!0}),Object(U["onMounted"])(()=>{Object(U["watch"])(()=>null===j||void 0===j?void 0:j.value,()=>{null!==j&&void 0!==j&&j.value&&j.value.addEventListener("scroll",pe)},{deep:!0}),m.hrefParams=Ee()});const F=e=>{var t;null===w||void 0===w||null===(t=w.value)||void 0===t||t.addEmoji(e)},H=async e=>{m.isFirstSend&&(Zt.getInstance().reportEvent({name:"sendMessage",ext1:"sendMessage-success"}),m.isFirstSend=!1),m.reference.show="",c.TUICore.isOfficial&&(null===d||void 0===d?void 0:d.commit)&&(null===d||void 0===d||d.commit("handleTask",0))};function z(e,t){var n,o,a;let i=null!==t&&void 0!==t&&null!==(n=t.lastMessage)&&void 0!==n&&n.payload.hasOwnProperty("data")?JSON.parse(null===t||void 0===t||null===(o=t.lastMessage)||void 0===o||null===(o=o.payload)||void 0===o?void 0:o.data):{};"system"===(null===i||void 0===i?void 0:i.businessID)&&te()(a=[1,2]).call(a,null===i||void 0===i?void 0:i.type)||c.sendCustomMessage({data:e}).then(e=>{console.log(e)})}window.onmessage=e=>{const t=null!==e&&void 0!==e&&e.data?JSON.parse(null===e||void 0===e?void 0:e.data):{},{consultType:n,consultStatus:o}=Ta["a"].getters.getConsultInfo;let a=!1;"C2C"===n&&(a=1*o>=5),"GROUP"===n&&(a=1*o>=4),a||"custom"===t.code&&z(t.data,m.conversation)};const K=e=>{m.currentMessage=e,m.dialogID=e.ID},Y=e=>{m.env.isH5?(m.showResend=!0,m.resendMessage=e):(c.resendMessage(e).catch(e=>{Object(vn["b"])(e,m.env)}),Zt.getInstance().reportEvent({name:"messageOptions",ext1:"messageResend"}))},W=e=>{m.currentMessage=e,_.list=c.TUICore.getStore().TUIConversation.conversationList,m.forwardStatus=!0},$=(e,t)=>{let n=Object(D["o"])(e);m.reference={message:e,content:null===n||void 0===n?void 0:n.referenceMessageForShow,type:null===n||void 0===n?void 0:n.referenceMessageType,show:t}},q=()=>{c.resendMessage(m.resendMessage).then(()=>{m.showResend=!1}).catch(e=>{Object(vn["b"])(e,m.env),m.showResend=!1}),Zt.getInstance().reportEvent({name:"messageOptions",ext1:"messageResend"})},Q=e=>{var t,n,o;null!==e&&void 0!==e&&null!==(t=e.payload)&&void 0!==t&&t.text&&(null===w||void 0===w||null===(n=w.value)||void 0===n||n.reEdit(null===e||void 0===e||null===(o=e.payload)||void 0===o?void 0:o.text))},X=e=>{c.handleGroupApplication(e)},Z=e=>{e.clipboardData.files[0]&&c.sendImageMessage(e.clipboardData.files[0])},ee=async()=>{await c.getHistoryMessageList().then(()=>{var e;de("target",null===j||void 0===j||null===(e=j.value)||void 0===e?void 0:e.firstElementChild)})},ne=e=>{m.referenceID=e;const t=[];if(B.value)for(let a=0;a{E.value[a].getElementsByClassName("content")[0].classList.add("reference-content")}))}-1===T()(t).call(t,e)&&c.getHistoryMessageList().then(()=>{m.historyReference=!0})},oe=()=>{m.showGroupMemberList=!m.showGroupMemberList},ae=()=>{c.TUICore.TUIServer.TUIConversation.handleCurrentConversation()},ie=e=>{window.open(e.url),Zt.getInstance().reportEvent({name:"openLink",ext1:e.label})},re=(e,t)=>{var n;if(e&&t)switch(t){case"reference":$(e,t);break;case"reply":$(e,t);break;case"reedit":var o,a;if(null!==e&&void 0!==e&&null!==(n=e.payload)&&void 0!==n&&n.text)null===w||void 0===w||null===(o=w.value)||void 0===o||o.reEdit(null===e||void 0===e||null===(a=e.payload)||void 0===a?void 0:a.text);break;default:break}},se=async(e,t)=>{var n;if(null!==e&&void 0!==e&&e.ID&&t)switch(t){case"receipt":if(e.conversationType!==c.TUICore.TIM.TYPES.CONV_GROUP||0===(null===(n=e.readReceiptInfo)||void 0===n?void 0:n.unreadCount))return;m.currentMessage=e,m.receiptDialogStatus=!0;break;case"replies":m.currentMessage=e,m.repliesDialogStatus=!0;break;case"forward":m.currentMessage=e,_.list=c.TUICore.getStore().TUIConversation.conversationList,m.forwardStatus=!0;break;case"previewImage":m.showImagePreview=!m.showImagePreview,m.currentImagePreview=e;break;default:break}},le=async e=>{if(e)switch(e){case"receipt":m.currentMessage={},m.receiptDialogStatus=!1;break;case"replies":m.currentMessage={},m.repliesDialogStatus=!1;break;default:break}},ce=()=>{if(m.isFirstRender)return m.needToBottom=!1,de("bottom"),void(m.isFirstRender=!1);if(j.value&&B.value){var e;const{scrollHeight:t,scrollTop:n,clientHeight:o}=j.value;t-(n+o)<=o||"out"===(null===(e=B.value[B.value.length-1])||void 0===e?void 0:e.flow)?de("bottom"):me(!0)}},de=(e,t)=>{var n;switch(null===j||void 0===j||null===(n=j.value)||void 0===n||n.removeEventListener("scroll",pe),m.isUserAction=!0,e){case Qt["a"].scrollType.toBottom:m.needToBottom=!1,Object(U["nextTick"])(()=>{var e,t;null!==m&&void 0!==m&&null!==(e=m.env)&&void 0!==e&&e.isH5?ue():null===j||void 0===j||null===(t=j.value)||void 0===t||null===(t=t.lastElementChild)||void 0===t||t.scrollIntoView(!1);Object(D["c"])(null===j||void 0===j?void 0:j.value,"message-img",async()=>{var e,t;null!==m&&void 0!==m&&null!==(e=m.env)&&void 0!==e&&e.isH5?ue():null===j||void 0===j||null===(t=j.value)||void 0===t||null===(t=t.lastElementChild)||void 0===t||t.scrollIntoView(!1);j.value.addEventListener("scroll",pe),await be("page")})});break;case Qt["a"].scrollType.toTarget:Object(U["nextTick"])(()=>{null===t||void 0===t||t.scrollIntoView(!1),Object(D["c"])(null===j||void 0===j?void 0:j.value,"message-img",async()=>{null===t||void 0===t||t.scrollIntoView(!1),j.value.addEventListener("scroll",pe),await be("page")})});break;default:break}},ue=()=>{var e;null!==(e=document)&&void 0!==e&&null!==(e=e.getElementById("app"))&&void 0!==e&&e.style&&(document.getElementById("app").style.marginBottom="",document.getElementById("app").style.height="100%"),j.value.scrollTop=j.value.scrollHeight},pe=()=>{const{scrollHeight:e,scrollTop:t,clientHeight:n}=j.value;G.value&&(m.scroll.scrollHeight=e,m.scroll.scrollTop=t,m.scroll.scrollTopMin=m.isUserAction?m.scroll.scrollTopMin:Math.min(m.scroll.scrollTopMin,m.scroll.scrollTop),m.scroll.scrollTopMax=m.isUserAction?m.scroll.scrollTopMax:Math.max(m.scroll.scrollTopMax,m.scroll.scrollTop)),me(e-(t+n)>n),m.isUserAction=!1},me=e=>{var t,n;switch(e){case!0:var o;if(m.needToBottom=!0,null!==m&&void 0!==m&&null!==(t=m.conversation)&&void 0!==t&&t.unreadCount&&(null===m||void 0===m||null===(n=m.conversation)||void 0===n?void 0:n.unreadCount)>0)m.toBottomTipCont=`${null===m||void 0===m||null===(o=m.conversation)||void 0===o?void 0:o.unreadCount} ${p("TUIChat.条新消息")}`;else m.toBottomTipCont=p("TUIChat.回到最新位置");break;case!1:m.needToBottom=!1;break;default:m.needToBottom=!1;break}},be=async e=>{var t,n,o;if(!G.value)return void v(null===m||void 0===m||null===(o=m.conversation)||void 0===o?void 0:o.conversationID);m.messageInView.length&&(m.messageInView=[]);let a=0,i=0;switch(e){case Qt["a"].inViewType.page:a=m.scroll.scrollTop,i=m.scroll.scrollTop+(null===j||void 0===j||null===(t=j.value)||void 0===t?void 0:t.clientHeight);break;case Qt["a"].inViewType.scroll:a=m.scroll.scrollTopMin,i=m.scroll.scrollTopMax+(null===j||void 0===j||null===(n=j.value)||void 0===n?void 0:n.clientHeight);break;default:break}if(null!==E&&void 0!==E&&E.value&&B.value)for(let s=0;s<(null===E||void 0===E||null===(r=E.value)||void 0===r?void 0:r.length);s++){var r;if(he(e,null===E||void 0===E?void 0:E.value[s],a,i)){const e=B.value[s];m.messageInView.push(e)}}await f(m.messageInView)},he=(e,t,n,o)=>{const a=j.value.getBoundingClientRect().top,i=j.value.getBoundingClientRect().bottom,{top:r,bottom:s}=t.getBoundingClientRect(),{offsetTop:l,clientHeight:c}=t;switch(e){case Qt["a"].inViewType.page:return Math.round(r)>=Math.round(a)&&Math.round(s)<=Math.round(i);case Qt["a"].inViewType.scroll:return Math.round(l)>=Math.round(n)&&Math.round(l+c)<=Math.round(o);default:return!1}},ve=e=>{m.dropDownRef&&m.dropDownRef.removeChild(m.dropDownRef.children[0]),m.dropDownRef=e},fe=()=>{de("bottom")},ge=e=>{m.showImagePreview=!m.showImagePreview,m.currentImagePreview=e},Oe=()=>{m.reference={message:{},content:"",type:0,show:""}},je=(e,t)=>{var n;null===m||void 0===m||null===(n=m.typingRef)||void 0===n||n.onTyping(e,t)},ye=e=>{Qr["a"].emit("forHelp",e)},Ie=e=>{var t;Qr["a"].emit("forHelpDetail",null===e||void 0===e||null===(t=e.children)||void 0===t?void 0:t.orderId)},Ee=()=>{var e,t,n;const o=window.location.href.substring(T()(e=window.location.href).call(e,"?")+1,T()(t=window.location.href).call(t,"#/")),i={};return a()(n=o.split("&")).call(n,e=>{const t=e.substring(0,T()(e).call(e,"=")),n=e.substring(T()(e).call(e,"=")+1);i[t]=n}),i},ke=e=>{Xr["a"].confirm("是否结束当前咨询","提示",{confirmButtonText:"是",cancelButtonText:"否",type:"warning"}).then(()=>{var t;Object(La["a"])("/health-consultation/api/consult/conSession/finishSession",{id:null===e||void 0===e||null===(t=e.children)||void 0===t?void 0:t.id}).then(t=>{200===t.code?Object(Zr["a"])({message:"当前咨询已结束",type:"success"}):Object(Zr["a"])({message:t.message,type:"warning"}),Qr["a"].emit("endConsult",e.conversationID)}).catch(e=>{console.log(e)})}).catch(()=>{})};function we(e){var t,n,o;if(console.log(e),null===e||void 0===e||null===(t=e.lastMessage)||void 0===t||!t.payload)return!0;let a=null!==e&&void 0!==e&&null!==(n=e.lastMessage)&&void 0!==n&&n.payload.hasOwnProperty("data")?JSON.parse(null===e||void 0===e||null===(o=e.lastMessage)||void 0===o||null===(o=o.payload)||void 0===o?void 0:o.data):{};var i;if("expert"!==Ce["a"].isSpecialized)return"system"!==(null===a||void 0===a?void 0:a.businessID)||!te()(i=[1,2]).call(i,null===a||void 0===a?void 0:a.type);{var r;if("system"===(null===a||void 0===a?void 0:a.businessID)&&te()(r=[1,2]).call(r,null===a||void 0===a?void 0:a.type))return!1;const{consultType:e,consultStatus:t}=Ta["a"].getters.getConsultInfo;return"C2C"===e?!(1*t>=5):!(1*t>=4)}}function _e(e){var t;return e.avatar&&T()(t=e.avatar).call(t,",")===e.avatar.length-1&&(e.avatar=e.avatar.substring(0,e.avatar.length-1)),e}const Se=e=>{e&&se(e,"previewImage")};return{previewImage:Se,getDisabled:we,forHelp:ye,forHelpDetail:Ie,...Object(U["toRefs"])(m),conversationType:L,messages:B,messageEle:j,inputEle:I,messageInput:w,messageAimID:E,conversationData:_,conversationName:N,constant:Qt["a"],reportMessageSend:H,handleTyping:je,handleItem:K,handleEdit:Q,handleEditor:re,getHistoryMessageList:ee,handleApplication:X,pluginComponentList:g,handleSend:F,closeDialog:le,isMute:A,pasting:Z,setMessageRead:v,sendMessageReadReceipt:f,dialog:S,jumpID:ne,back:ae,slotDefault:b,toggleshowGroupMemberList:oe,resendMessage:Y,submit:q,Link:Fi,openLink:ie,readReceiptDialog:k,scrollToTarget:de,needGroupReceipt:G,handleDropDownOpen:ve,isMessageTip:D["u"],showDialog:se,forwardMessage:W,referOrReplyMessage:$,handleUploadingImageOrVideo:fe,handleImagePreview:ge,imageList:M,resetReplyOrReference:Oe,endConsult:ke,getSrc:_e,messagesNew:V,imageListNew:R,messagesIsNull:x,handleAvatar:D["f"],handleName:D["m"],getImgLoad:D["c"],isTypingMessage:D["v"],deepCopy:D["b"],handleReferenceForShow:D["o"],handleTextMessageShowContext:D["r"],handleImageMessageShowContext:D["j"]}}});var es=Jr;n("81cb"),n("42fe");const ts=se()(es,[["render",X],["__scopeId","data-v-71cccb50"]]);var ns=ts;const os={class:"face",id:"face"},as=["onClick"],is=["src"],rs=["src"],ss={class:"face-tab"},ls=["onClick"],cs=["src"];function ds(e,t,n,o,a,i){return Object(U["openBlock"])(),Object(U["createElementBlock"])("div",os,[Object(U["createElementVNode"])("i",{class:"icon icon-face",title:"表情",onClick:t[0]||(t[0]=(...t)=>e.toggleShow&&e.toggleShow(...t))}),Object(U["withDirectives"])(Object(U["createElementVNode"])("main",{class:Object(U["normalizeClass"])(["face-main",[e.isH5&&"face-H5-main"]]),ref:"dialog"},[(Object(U["openBlock"])(!0),Object(U["createElementBlock"])(U["Fragment"],null,Object(U["renderList"])(e.list,(t,n)=>Object(U["withDirectives"])((Object(U["openBlock"])(),Object(U["createElementBlock"])("ul",{class:"face-list",key:n},[(Object(U["openBlock"])(!0),Object(U["createElementBlock"])(U["Fragment"],null,Object(U["renderList"])(t,(t,o)=>(Object(U["openBlock"])(),Object(U["createElementBlock"])("li",{class:"face-list-item",key:o,onClick:n=>e.select(t,o)},[0===n?(Object(U["openBlock"])(),Object(U["createElementBlock"])("img",{key:0,src:e.emojiUrl+e.emojiMap[t]},null,8,is)):(Object(U["openBlock"])(),Object(U["createElementBlock"])("img",{key:1,class:"face-img",src:e.faceUrl+t+"@2x.png"},null,8,rs))],8,as))),128))])),[[U["vShow"],e.currentIndex===n]])),128)),Object(U["createElementVNode"])("ul",ss,[Object(U["createElementVNode"])("li",{class:"face-tab-item",onClick:t[1]||(t[1]=t=>e.selectFace(0))},[...t[2]||(t[2]=[Object(U["createElementVNode"])("i",{class:"icon icon-face"},null,-1)])]),(Object(U["openBlock"])(!0),Object(U["createElementBlock"])(U["Fragment"],null,Object(U["renderList"])(e.bigEmojiList,(t,n)=>(Object(U["openBlock"])(),Object(U["createElementBlock"])("li",{class:"face-tab-item",key:n,onClick:t=>e.selectFace(n+1)},[Object(U["createElementVNode"])("img",{src:e.faceUrl+t.list[0]+"@2x.png"},null,8,cs)],8,ls))),128))])],2),[[U["vShow"],e.show]])])}const us=Object(U["defineComponent"])({props:{show:{type:Boolean,default:()=>!1},isMute:{type:Boolean,default:()=>!1},isH5:{type:Boolean,default:()=>!1},parentID:{type:String,default:()=>""}},setup(e,t){var n;const o=Object(U["reactive"])({emojiUrl:Zn["d"],emojiMap:Zn["b"],emojiName:Zn["c"],faceUrl:Zn["e"],bigEmojiList:(null===(n=window)||void 0===n||null===(n=n.TUIKitTUICore)||void 0===n?void 0:n.isOfficial)&&Zn["a"]||[],show:!1,currentIndex:0,isMute:!1,transDom:!1}),a=Object(U["ref"])();Object(U["watchEffect"])(()=>{o.show=e.show,o.isMute=e.isMute});const i=()=>{const e=document.getElementsByClassName("face-main")[0];o.isMute||(e.style.display="none"===e.style.display?"flex":"none"),"none"===e.style.display&&c(0),r()},r=()=>{const t=document.getElementById(e.parentID),n=document.getElementsByClassName("face-H5-main")[0];e.isH5&&(null===t||void 0===t||t.appendChild(n))};Object(hn["onClickOutside"])(a,()=>{const e=document.getElementsByClassName("face-main")[0];e&&(e.style.display="none")});const s=async(n,a)=>{const r={name:n};if(0===o.currentIndex)return r.type="emo",r.url=Zn["d"]+Zn["b"][n],r.template=``,e.isH5||i(),t.emit("send",r);try{await us.TUIServer.sendFaceMessage({index:o.bigEmojiList[o.currentIndex-1].icon,data:o.bigEmojiList[o.currentIndex-1].list[a]}),Zt.getInstance().reportEvent({name:"messageType",ext1:"typeFace"})}catch(s){Object(vn["b"])(s,e)}e.isH5||i()},l=Object(U["computed"])(()=>{const e=[o.emojiName];for(let t=0;t{o.currentIndex=e};return{...Object(U["toRefs"])(o),toggleShow:i,select:s,selectFace:c,list:l,dialog:a}}});var ps=us;n("77ea");const ms=se()(ps,[["render",ds],["__scopeId","data-v-6807ca3c"]]);var bs=ms,hs=bs;const vs={class:"upload-btn icon icon-image"};function fs(e,t,n,o,a,i){return Object(U["openBlock"])(),Object(U["createElementBlock"])("span",vs,[e.isMute?Object(U["createCommentVNode"])("",!0):(Object(U["openBlock"])(),Object(U["createElementBlock"])("input",{key:0,title:"图片",type:"file","data-type":"image",accept:"image/*",onChange:t[0]||(t[0]=(...t)=>e.sendUploadMessage&&e.sendUploadMessage(...t))},null,32)),Object(U["renderSlot"])(e.$slots,"default",{},void 0,!0)])}const gs=Object(U["defineComponent"])({props:{show:{type:Boolean,default:()=>!1},isMute:{type:Boolean,default:()=>!1},isH5:{type:Boolean,default:()=>!1}},setup(e,t){const n=Object(U["reactive"])({isMute:!1});Object(U["watchEffect"])(()=>{n.isMute=e.isMute});const o=async t=>{if(t.target.files.length>0)try{await gs.TUIServer.sendImageMessage(t.target),Zt.getInstance().reportEvent({name:"messageType",ext1:"typeImage"})}catch(n){Object(vn["b"])(n,e)}t.target.value=""};return{...Object(U["toRefs"])(n),sendUploadMessage:o}}});var Os=gs;n("b77c");const js=se()(Os,[["render",fs],["__scopeId","data-v-04b8e378"]]);var ys=js,Is=ys;const Cs={class:"upload-btn icon icon-video"};function Es(e,t,n,o,a,i){return Object(U["openBlock"])(),Object(U["createElementBlock"])("span",Cs,[e.isMute?Object(U["createCommentVNode"])("",!0):(Object(U["openBlock"])(),Object(U["createElementBlock"])("input",{key:0,title:"视频",type:"file","data-type":"video",accept:"video/*",onChange:t[0]||(t[0]=(...t)=>e.sendUploadMessage&&e.sendUploadMessage(...t))},null,32)),Object(U["renderSlot"])(e.$slots,"default",{},void 0,!0)])}const ks=Object(U["defineComponent"])({props:{show:{type:Boolean,default:()=>!1},isMute:{type:Boolean,default:()=>!1},isH5:{type:Boolean,default:()=>!1}},setup(e,t){const n=Object(U["reactive"])({isMute:!1});Object(U["watchEffect"])(()=>{n.isMute=e.isMute});const o=async t=>{if(t.target.files.length>0)try{await ks.TUIServer.sendVideoMessage(t.target),Zt.getInstance().reportEvent({name:"messageType",ext1:"typeVideo"})}catch(n){Object(vn["b"])(n,e)}t.target.value=""};return{...Object(U["toRefs"])(n),sendUploadMessage:o}}});var ws=ks;n("6e04");const _s=se()(ws,[["render",Es],["__scopeId","data-v-0b03faf8"]]);var Ss=_s,Ts=Ss;const Ls={class:"upload-btn icon icon-files"};function As(e,t,n,o,a,i){return Object(U["openBlock"])(),Object(U["createElementBlock"])("span",Ls,[e.isMute?Object(U["createCommentVNode"])("",!0):(Object(U["openBlock"])(),Object(U["createElementBlock"])("input",{key:0,title:"文件",type:"file","data-type":"file",accept:"*",onChange:t[0]||(t[0]=(...t)=>e.sendUploadMessage&&e.sendUploadMessage(...t))},null,32)),Object(U["renderSlot"])(e.$slots,"default",{},void 0,!0)])}const Ds=Object(U["defineComponent"])({props:{show:{type:Boolean,default:()=>!1},isMute:{type:Boolean,default:()=>!1},isH5:{type:Boolean,default:()=>!1}},setup(e,t){const n=Object(U["reactive"])({isMute:!1});Object(U["watchEffect"])(()=>{n.isMute=e.isMute});const o=async t=>{if(t.target.files.length>0)try{await Ds.TUIServer.sendFileMessage(t.target),Zt.getInstance().reportEvent({name:"messageType",ext1:"typeFile"})}catch(n){Object(vn["b"])(n,e)}t.target.value=""};return{...Object(U["toRefs"])(n),sendUploadMessage:o}}});var Ns=Ds;n("6a25");const Us=se()(Ns,[["render",As],["__scopeId","data-v-3082f8e4"]]);var Bs=Us,Ms=Bs;function Vs(e,t,n,o,a,i){const r=Object(U["resolveComponent"])("Transfer");return Object(U["openBlock"])(),Object(U["createElementBlock"])("div",null,[e.show?(Object(U["openBlock"])(),Object(U["createElementBlock"])("div",{key:0,class:Object(U["normalizeClass"])(["forward",[e.isH5?"forward-h5":""]]),ref:"dialog"},[Object(U["createVNode"])(r,{title:"转发",list:e.list,isSearch:!1,isH5:e.isH5,isCustomItem:!0,resultShow:!0,onSubmit:e.handleForWordMessage,onCancel:e.toggleShow},{left:Object(U["withCtx"])(({data:t})=>[Object(U["renderSlot"])(e.$slots,"left",{data:t},void 0,!0)]),right:Object(U["withCtx"])(({data:t})=>[Object(U["renderSlot"])(e.$slots,"right",{data:t},void 0,!0)]),_:3},8,["list","isH5","onSubmit","onCancel"])],2)):Object(U["createCommentVNode"])("",!0)])}const Rs=Object(U["defineComponent"])({components:{Transfer:Na},name:"转发",props:{list:{type:Array,default:()=>[]},message:{type:Object,default:()=>({})},show:{type:Boolean,default:()=>!1},isH5:{type:Boolean,default:()=>!1}},setup(e,t){const n=Object(U["reactive"])({list:[],show:!1,to:-1}),o=Object(U["ref"])();Object(U["watchEffect"])(()=>{n.list=e.list,n.show=e.show});const a=()=>{n.show=!n.show,n.show||(t.emit("update:show",n.show),n.to=-1)};Object(hn["onClickOutside"])(o,()=>{n.show=!1,t.emit("update:show",n.show),n.to=-1});const i=async t=>{l()(t).call(t,async t=>{try{await Rs.TUIServer.forwardMessage(e.message,t)}catch(n){Object(vn["b"])(n,e)}}),a()};return{...Object(U["toRefs"])(n),toggleShow:a,handleForWordMessage:i,dialog:o}}});var xs=Rs;n("8617");const Ps=se()(xs,[["render",Vs],["__scopeId","data-v-f4db8228"]]);var Gs=Ps,Fs=Gs;const Hs={class:"words-main-content",ref:"dialog"},zs={class:"words-list"},Ks=["onClick"];function Ys(e,t,n,o,a,i){return Object(U["openBlock"])(),Object(U["createElementBlock"])("div",{class:Object(U["normalizeClass"])(["words",[e.isH5?"words-H5":""]])},[Object(U["createElementVNode"])("i",{class:"icon icon-words",title:"快速回复",onClick:t[0]||(t[0]=(...t)=>e.toggleShow&&e.toggleShow(...t))}),Object(U["withDirectives"])(Object(U["createElementVNode"])("main",{class:Object(U["normalizeClass"])(["words-main",[e.isH5?"words-H5-main":""]])},[Object(U["createElementVNode"])("div",Hs,[Object(U["createElementVNode"])("header",null,[Object(U["createElementVNode"])("aside",null,[Object(U["createElementVNode"])("h1",null,Object(U["toDisplayString"])(e.$t("Words.常用语-快捷回复工具")),1)]),e.isH5?(Object(U["openBlock"])(),Object(U["createElementBlock"])("span",{key:0,class:"close",onClick:t[1]||(t[1]=(...t)=>e.toggleShow&&e.toggleShow(...t))},"关闭")):Object(U["createCommentVNode"])("",!0)]),Object(U["createElementVNode"])("ul",zs,[(Object(U["openBlock"])(!0),Object(U["createElementBlock"])(U["Fragment"],null,Object(U["renderList"])(e.list,(t,n)=>(Object(U["openBlock"])(),Object(U["createElementBlock"])("li",{class:"words-list-item",key:n,onClick:n=>e.select(t)},[Object(U["createElementVNode"])("label",null,Object(U["toDisplayString"])(t.value),1)],8,Ks))),128))])],512)],2),[[U["vShow"],e.show&&!e.isMute]])],2)}var Ws=n("c7e2");const $s=Object(U["defineComponent"])({type:"custom",props:{show:{type:Boolean,default:()=>!1},isMute:{type:Boolean,default:()=>!1},isH5:{type:Boolean,default:()=>!1}},setup(e,t){const{t:n}=window.TUIKitTUICore.config.i18n.useI18n(),o=[{value:"在吗?在吗?在吗?重要的话说三遍。"},{value:"好久没聊天了,快来和我说说话~"},{value:"好的,就这么说定了。"},{value:"感恩的心,感谢有你。"},{value:"糟糕!是心动的感觉!"},{value:"心疼地抱抱自己,我太难了!"},{value:"没关系,别在意,事情过去就过去了。"},{value:"早上好,今天也是让人期待的一天呢!"},{value:"熬夜有什么用,又没人陪你聊天,早点休息吧。"}],a=Object(U["reactive"])({list:[],show:!1,isMute:!1,locale:Object(Ws["b"])()}),i=Object(U["ref"])();Object(U["watch"])(()=>a.locale,(e,t)=>{a.list=l()(o).call(o,e=>({value:n("Words."+e.value)}))}),Object(U["watchEffect"])(()=>{a.show=e.show,a.isMute=e.isMute});const r=()=>{a.show=!a.show,a.show&&(a.list=l()(o).call(o,e=>({value:n("Words."+e.value)})))};Object(hn["onClickOutside"])(i,()=>{a.show=!1});const s=(e,t)=>{const n=e.value;r(),$s.TUIServer.sendTextMessage(n)};return{...Object(U["toRefs"])(a),toggleShow:r,select:s,dialog:i}}});var qs=$s;n("ae69");const Qs=se()(qs,[["render",Ys],["__scopeId","data-v-dfa99d56"]]);var Xs=Qs,Zs=Xs;const Js={key:0,class:"evaluate-main"},el={class:"evaluate-main-content",ref:"dialog"},tl={key:0},nl={class:"evaluate-content"},ol={class:"evaluate-list"},al=["onClick"],il={key:0,class:"icon icon-star-light"},rl={key:1,class:"icon icon-star"},sl={class:"evaluate-main-footer"},ll={key:0};function cl(e,t,n,o,a,i){return Object(U["openBlock"])(),Object(U["createElementBlock"])("div",{class:Object(U["normalizeClass"])(["evaluate",[e.isH5&&"evaluate-H5"]])},[Object(U["createElementVNode"])("i",{class:"icon icon-evaluate",title:"服务评价",onClick:t[0]||(t[0]=Object(U["withModifiers"])((...t)=>e.toggleShow&&e.toggleShow(...t),["stop"]))}),e.show&&!e.isMute?(Object(U["openBlock"])(),Object(U["createElementBlock"])("main",Js,[Object(U["createElementVNode"])("div",el,[Object(U["createElementVNode"])("header",null,[Object(U["createElementVNode"])("aside",null,[Object(U["createElementVNode"])("h1",null,Object(U["toDisplayString"])(e.$t("Evaluate.请对本次服务进行评价")),1),e.isH5?(Object(U["openBlock"])(),Object(U["createElementBlock"])("p",tl,[Object(U["createTextVNode"])(Object(U["toDisplayString"])(e.$t("Evaluate.服务评价工具"))+"("+Object(U["toDisplayString"])(e.$t("Evaluate.使用")),1),Object(U["createElementVNode"])("a",{onClick:t[1]||(t[1]=t=>e.openLink(e.Link.customMessage))},Object(U["toDisplayString"])(e.$t("Evaluate."+e.Link.customMessage.label)),1),Object(U["createTextVNode"])(Object(U["toDisplayString"])(e.$t("Evaluate.搭建"))+") ",1)])):Object(U["createCommentVNode"])("",!0)]),e.isH5?(Object(U["openBlock"])(),Object(U["createElementBlock"])("span",{key:0,class:"close",onClick:t[2]||(t[2]=Object(U["withModifiers"])((...t)=>e.toggleShow&&e.toggleShow(...t),["stop"]))},"关闭")):Object(U["createCommentVNode"])("",!0)]),Object(U["createElementVNode"])("div",nl,[Object(U["createElementVNode"])("ul",ol,[(Object(U["openBlock"])(!0),Object(U["createElementBlock"])(U["Fragment"],null,Object(U["renderList"])(e.list,(t,n)=>(Object(U["openBlock"])(),Object(U["createElementBlock"])("li",{class:Object(U["normalizeClass"])(["evaluate-list-item",[ne.select(t,n),["stop"])},[ne.options.data.comment=t)},null,512),[[U["vModelText"],e.options.data.comment]]),Object(U["createElementVNode"])("div",sl,[Object(U["createElementVNode"])("button",{class:"btn",onClick:t[4]||(t[4]=(...t)=>e.submit&&e.submit(...t))},Object(U["toDisplayString"])(e.$t("Evaluate.提交评价")),1)])]),e.isH5?Object(U["createCommentVNode"])("",!0):(Object(U["openBlock"])(),Object(U["createElementBlock"])("footer",ll,[Object(U["createTextVNode"])(Object(U["toDisplayString"])(e.$t("Evaluate.服务评价工具"))+"("+Object(U["toDisplayString"])(e.$t("Evaluate.使用")),1),Object(U["createElementVNode"])("a",{onClick:t[5]||(t[5]=t=>e.openLink(e.Link.customMessage))},Object(U["toDisplayString"])(e.$t("Evaluate."+e.Link.customMessage.label)),1),Object(U["createTextVNode"])(Object(U["toDisplayString"])(e.$t("Evaluate.搭建"))+") ",1)]))],512)])):Object(U["createCommentVNode"])("",!0)],2)}const dl=Object(U["defineComponent"])({type:"custom",props:{show:{type:Boolean,default:()=>!1},isMute:{type:Boolean,default:()=>!1},isH5:{type:Boolean,default:()=>!1}},setup(e,t){const n=Object(U["reactive"])({link:"https://web.sdk.qcloud.com/im/doc/zh-cn//SDK.html#createCustomMessage",list:5,show:!1,isMute:!1,options:{data:{businessID:Qt["a"].typeEvaluate,version:1,score:"",comment:""},description:"对本次的服务评价",extension:"对本次的服务评价"},num:0}),o=Object(U["ref"])();Object(hn["onClickOutside"])(o,()=>{n.show=!1}),Object(U["watchEffect"])(()=>{n.show=e.show,n.isMute=e.isMute});const a=()=>{n.show=!n.show,n.show&&(n.options={data:{...Object(D["n"])(Qt["a"].typeEvaluate,1,{score:"",comment:""})},description:"对本次的服务评价",extension:"对本次的服务评价"},n.num=0)},i=(e,t)=>{n.num=t+1,n.options.data.score=""+n.num},r=()=>{dl.TUIServer.sendCustomMessage(n.options),Zt.getInstance().reportEvent({name:"messageType",ext1:"typeCustom"}),a()},s=e=>{window.open(e.url),Zt.getInstance().reportEvent({name:"openLink",ext1:e.label})};return{...Object(U["toRefs"])(n),toggleShow:a,select:i,submit:r,dialog:o,Link:Fi,openLink:s}}});var ul=dl;n("a94d");const pl=se()(ul,[["render",cl],["__scopeId","data-v-5e2a1c9e"]]);var ml=pl,bl=ml;const hl={style:{display:"flex"}},vl={key:0,style:{display:"flex","justify-content":"center","padding-top":"5px"}};function fl(e,t,n,o,a,i){var r;return Object(U["openBlock"])(),Object(U["createElementBlock"])("div",hl,[Object(U["createElementVNode"])("div",null,[Object(U["createElementVNode"])("h1",null,Object(U["toDisplayString"])("对方正在输入"===e.title?e.$t("TUIChat.对方正在输入"):e.title),1),e.doctorName&&"1"==(null===(r=e.conversation)||void 0===r||null===(r=r.children)||void 0===r?void 0:r.sessionType)?(Object(U["openBlock"])(),Object(U["createElementBlock"])("div",vl," 专家:"+Object(U["toDisplayString"])(e.doctorName),1)):Object(U["createCommentVNode"])("",!0)]),"expert"!==e.hrefParams.isSpecialized&&e.hrefParams.isSpecialized&&"0"===e.upTabIndex?(Object(U["openBlock"])(),Object(U["createElementBlock"])("div",{key:0,class:"adv",onClick:t[0]||(t[0]=(...t)=>e.forHelp&&e.forHelp(...t))}," 救助意见 ")):Object(U["createCommentVNode"])("",!0),"expert"!==e.hrefParams.isSpecialized&&"false"===e.hrefParams.isSpecialized&&"0"===e.upTabIndex&&e.isEnd()?(Object(U["openBlock"])(),Object(U["createElementBlock"])("div",{key:1,class:"adv",onClick:t[1]||(t[1]=(...t)=>e.endStatus&&e.endStatus(...t))}," 结束应急 ")):Object(U["createCommentVNode"])("",!0)])}const gl=Object(U["defineComponent"])({props:{needTyping:{type:Boolean,default:!1},conversation:{type:Object,default:()=>({})},messageList:{type:Array,default:()=>[]},upTabIndex:{type:String,default:()=>"0"},isDisabled:{type:Boolean,default:!0}},setup(e,t){const n=Object(U["reactive"])({hrefParams:{},messageList:[],conversation:{},title:"",timeValid:0,myTypingStatus:0,otherTypingStatus:0,needTyping:!1,lastOtherMessageTime:0,lastMyTypingTime:0,lastOtherTypingTime:0,options:{data:{businessID:Qt["a"].typeUserTyping,typingStatus:0,version:1,userAction:0,actionParam:Qt["a"].typeInputStatusEnd},description:"",extension:""},chooseTab:"0"}),o=()=>{var e,t,n;const o=window.location.href.substring(T()(e=window.location.href).call(e,"?")+1,T()(t=window.location.href).call(t,"#/")),i={};return a()(n=o.split("&")).call(n,e=>{const t=e.substring(0,T()(e).call(e,"=")),n=e.substring(T()(e).call(e,"=")+1);i[t]=n}),i};n.hrefParams=o();const i=()=>{Qr["a"].emit("forHelpDetail")},r=()=>{Qr["a"].emit("forHelp",e.isDisabled)},s=()=>{window.parent.postMessage(h()({code:"endStatus",orderInfo:n.conversation["children"]}),"*")},l=()=>{Qr["a"].emit("bigInformation")};Object(U["watchEffect"])(()=>{n.messageList=e.messageList,n.conversation=e.conversation,n.needTyping=e.needTyping});const c=Object(U["computed"])(()=>{const{conversation:e}=n;return null!==e&&void 0!==e&&e.conversationID?e.conversationID:""}),d=Object(U["computed"])(()=>{const{conversation:e}=n;return Object(D["m"])(e)}),u=Object(U["computed"])(()=>{const{conversation:e}=n;return null!==e&&void 0!==e&&e.type?null===e||void 0===e?void 0:e.type:""}),p=Object(U["computed"])(()=>n.needTyping&&n.otherTypingStatus?"对方正在输入":Ta["a"].getters.getTitleName),m=Object(U["computed"])(()=>n.needTyping&&n.otherTypingStatus?"":Ta["a"].getters.getDoctorName),b=(e,t)=>{if(n.needTyping&&"C2C"===u.value&&((new Date).getTime()/1e3-n.lastOtherMessageTime<30&&(n.timeValid=1),n.timeValid))if(e||t)n.myTypingStatus=0,n.lastMyTypingTime=0,f(n.myTypingStatus);else{n.myTypingStatus=1;const e=(new Date).getTime();e-n.lastMyTypingTime>4e3&&(n.lastMyTypingTime=e,f(n.myTypingStatus))}};Object(U["watch"])(c,(e,t)=>{e!==t&&(n.needTyping=!1,n.timeValid=0)}),Object(U["watch"])(()=>n.needTyping,(e,t)=>{e||(n.myTypingStatus=0,n.otherTypingStatus=0,n.lastOtherMessageTime=0)}),Object(U["watch"])(()=>n.messageList,(e,t)=>{Object(U["nextTick"])(()=>{var t,o;0!==e.length&&"C2C"===u.value&&(n.lastOtherMessageTime=g(e),"in"===(null===(t=e[e.length-1])||void 0===t?void 0:t.flow)&&(Object(D["v"])(e[e.length-1])?(n.otherTypingStatus=v(e[e.length-1]),y()):(n.lastOtherMessageTime=null===(o=e[e.length-1])||void 0===o?void 0:o.time,n.otherTypingStatus=0)))})},{deep:!0});const v=e=>{try{var t;const{typingStatus:n,actionParam:o}=Object(D["a"])(null===e||void 0===e||null===(t=e.payload)||void 0===t?void 0:t.data);return 1===n&&o===Qt["a"].typeInputStatusIng?1:0}catch{return 0}},f=e=>{n.options={data:{businessID:Qt["a"].typeUserTyping,typingStatus:e?1:0,version:1,userAction:e?14:0,actionParam:e?Qt["a"].typeInputStatusIng:Qt["a"].typeInputStatusEnd},description:"",extension:""},gl.TUIServer.sendTypingMessage(n.options),Zt.getInstance().reportEvent({name:"messageType",ext1:"typeCustom"})},g=e=>{if(!e)return 0;for(let t=e.length-1;t>=0;t--)if(!Object(D["v"])(e[t])&&"in"===e[t].flow)return e[t].time;return 0},j=(e,t=2e3)=>{let n;return function(){n&&clearTimeout(n),n=O()(e,t)}},y=j(()=>{n.otherTypingStatus=0},5e3);function I(){var e;if(null!==(e=n.conversation)&&void 0!==e&&null!==(e=e.lastMessage)&&void 0!==e&&null!==(e=e.payload)&&void 0!==e&&e.data)try{var t,o;let e=JSON.parse(null===(t=(null===(o=n.conversation)||void 0===o?void 0:o.lastMessage)||{})||void 0===t||null===(t=t.payload)||void 0===t?void 0:t.data);if("system"===(null===e||void 0===e?void 0:e.businessID)&&"应急单"===(null===e||void 0===e?void 0:e.title)&&"1"==(null===e||void 0===e?void 0:e.type)&&"该应急单已结束"===(null===e||void 0===e?void 0:e.content))return!1}catch(a){console.log(a)}return!0}return{...Object(U["toRefs"])(n),conversationID:c,conversationName:d,conversationType:u,title:p,doctorName:m,isTypingMessage:D["v"],sendTypingMessage:f,handleTypingMessageStatus:v,getLastOtherMessageTime:g,debounce:j,waitTypingEnd:y,onTyping:b,forHelpDetail:i,forHelp:r,endStatus:s,bigInformation:l,data:n,isEnd:I}}});var Ol=gl;n("2497");const jl=se()(Ol,[["render",fl],["__scopeId","data-v-4d67c791"]]);var yl=jl,Il=yl;const Cl={class:"header"},El={class:"header-back"},kl={class:"header-title"},wl={class:"header-close"},_l={class:"body"},Sl={key:0,class:"body-message"},Tl={class:"message"},Ll={class:"message-info"},Al={class:"message-cont"},Dl=["src"],Nl={key:1},Ul={class:"body-tab"},Bl=["onClick"],Ml={class:"tab-item-title"},Vl={class:"tab-item-count"},Rl={class:"body-list"},xl=["src"],Pl={class:"name"};function Gl(e,t,n,o,a,i){return e.show?(Object(U["openBlock"])(),Object(U["createElementBlock"])("div",{key:0,class:Object(U["normalizeClass"])(["read-receipt",[e.isH5?"read-receipt-H5":"",e.isMenuOpen?"read-receipt-menu-open":""]]),ref:"dialog"},[Object(U["createElementVNode"])("div",Cl,[Object(U["createElementVNode"])("div",El,[e.isH5?(Object(U["openBlock"])(),Object(U["createElementBlock"])("i",{key:0,class:"icon icon-back",onClick:t[0]||(t[0]=(...t)=>e.toggleShow&&e.toggleShow(...t))})):Object(U["createCommentVNode"])("",!0)]),Object(U["createElementVNode"])("div",kl,[Object(U["createElementVNode"])("span",null,Object(U["toDisplayString"])(e.$t("TUIChat.消息详情")),1)]),Object(U["createElementVNode"])("div",wl,[e.isH5?Object(U["createCommentVNode"])("",!0):(Object(U["openBlock"])(),Object(U["createElementBlock"])("i",{key:0,class:"icon icon-close",onClick:t[1]||(t[1]=(...t)=>e.toggleShow&&e.toggleShow(...t))}))])]),Object(U["createElementVNode"])("div",_l,[e.isH5?(Object(U["openBlock"])(),Object(U["createElementBlock"])("div",Sl,[Object(U["createElementVNode"])("div",Tl,[Object(U["createElementVNode"])("div",Ll,[Object(U["createElementVNode"])("span",null,Object(U["toDisplayString"])(e.message.from),1),Object(U["createElementVNode"])("span",null,Object(U["toDisplayString"])(e.caculateTimeago(1e3*e.message.time)),1)]),Object(U["createElementVNode"])("div",Al,[e.messageInfo.isImg?(Object(U["openBlock"])(),Object(U["createElementBlock"])("img",{key:0,class:"message-cont-img",src:e.messageInfo.content},null,8,Dl)):(Object(U["openBlock"])(),Object(U["createElementBlock"])("p",Nl,Object(U["toDisplayString"])(e.messageInfo.content),1))])])])):Object(U["createCommentVNode"])("",!0),Object(U["createElementVNode"])("div",Ul,[(Object(U["openBlock"])(!0),Object(U["createElementBlock"])(U["Fragment"],null,Object(U["renderList"])(e.readReceiptList,(t,n)=>(Object(U["openBlock"])(),Object(U["createElementBlock"])(U["Fragment"],null,[t.show?(Object(U["openBlock"])(),Object(U["createElementBlock"])("div",{class:Object(U["normalizeClass"])(["tab-item",n===e.showListNow&&"tab-item-now"]),key:n,onClick:t=>e.showListNow=n},[Object(U["createElementVNode"])("div",Ml,Object(U["toDisplayString"])(null===t||void 0===t?void 0:t.label),1),Object(U["createElementVNode"])("div",Vl,Object(U["toDisplayString"])(null===t||void 0===t?void 0:t.count),1)],10,Bl)):Object(U["createCommentVNode"])("",!0)],64))),256))]),Object(U["createElementVNode"])("div",Rl,[Object(U["createElementVNode"])("ul",null,[(Object(U["openBlock"])(!0),Object(U["createElementBlock"])(U["Fragment"],null,Object(U["renderList"])(e.readReceiptList[e.showListNow].userList,(e,t)=>(Object(U["openBlock"])(),Object(U["createElementBlock"])("li",{key:t,class:"body-list-item"},[Object(U["createElementVNode"])("img",{class:"avatar",src:(null===e||void 0===e?void 0:e.avatar)||"https://web.sdk.qcloud.com/component/TUIKit/assets/avatar_21.png",onerror:"this.src='https://web.sdk.qcloud.com/component/TUIKit/assets/avatar_21.png'"},null,8,xl),Object(U["createElementVNode"])("div",Pl,Object(U["toDisplayString"])((null===e||void 0===e?void 0:e.nick)||(null===e||void 0===e?void 0:e.userID)),1)]))),128))]),e.readReceiptList[e.showListNow].isCompleted?Object(U["createCommentVNode"])("",!0):(Object(U["openBlock"])(),Object(U["createElementBlock"])("div",{key:0,class:"more",onClick:t[2]||(t[2]=(...t)=>e.getMoreList&&e.getMoreList(...t))},"查看更多"))])])],2)):Object(U["createCommentVNode"])("",!0)}const Fl=Object(U["defineComponent"])({type:"custom",props:{message:{type:Object,default:()=>({})},isH5:{type:Boolean,default:!1},show:{type:Boolean,default:()=>!1}},setup(e,t){const{t:n}=window.TUIKitTUICore.config.i18n.useI18n(),o=Object(U["reactive"])({message:{},isGroup:!1,show:!1,isH5:!1,messageInfo:{isImg:!1,content:""},readReceiptList:[{label:e.isH5?n("TUIChat.人已读"):n("TUIChat.已读"),count:0,userList:[],isCompleted:!0,cursor:"",show:!0},{label:e.isH5?n("TUIChat.人未读"):n("TUIChat.未读"),count:0,userList:[],isCompleted:!0,cursor:"",show:!0},{label:e.isH5?n("TUIChat.人关闭阅读状态"):n("TUIChat.关闭阅读状态"),count:0,userList:[],isCompleted:!0,cursor:"",show:!1}],showListNow:0,isMenuOpen:!0,env:Object(L["b"])()}),i=Object(U["ref"])();Object(U["watchEffect"])(()=>{o.show=e.show,o.isH5=e.isH5}),Object(U["watch"])(()=>{e.message,o.show},async()=>{var t,n;o.show&&(h(),o.message=e.message,u(),b(),o.readReceiptList[0].count=(null===(t=o.message)||void 0===t||null===(t=t.readReceiptInfo)||void 0===t?void 0:t.readCount)||o.readReceiptList[0].count,o.readReceiptList[1].count=(null===(n=o.message)||void 0===n||null===(n=n.readReceiptInfo)||void 0===n?void 0:n.unreadCount)||o.readReceiptList[1].count,l(),c())},{deep:!0});const s=()=>{o.show=!o.show,o.show||(t.emit("closeDialog","receipt"),m())};Object(hn["onClickOutside"])(i,()=>{o.show=!1,t.emit("closeDialog","receipt"),m()});const l=async(e=!1)=>{if(o.isGroup&&o.message&&0!==r()(o.message).length)try{var t,a;const n=await Fl.TUIServer.getGroupReadMemberList(o.message,e?o.readReceiptList[0].cursor:"");o.readReceiptList[0].isCompleted=null===n||void 0===n||null===(t=n.data)||void 0===t?void 0:t.isCompleted,o.readReceiptList[0].cursor=(null===n||void 0===n||null===(a=n.data)||void 0===a?void 0:a.cursor)||"";const i=n.data.readUserIDList,r=await d(i);o.readReceiptList[0].userList=e?[...o.readReceiptList[0].userList,...r]:r}catch(i){if(i&&10062===(null===i||void 0===i?void 0:i.code)){const e=n("TUIChat.您当前购买使用的套餐包暂未开通群消息已读回执功能");Object(vn["b"])(e,o.env),console.warn(e)}}},c=async(e=!1)=>{var t;if(!o.isGroup||!o.message||0===r()(o.message).length)return;const n=await Fl.TUIServer.getGroupUnreadMemberList(o.message,e?o.readReceiptList[1].cursor:"");o.readReceiptList[1].isCompleted=null===n||void 0===n?void 0:n.data.isCompleted,o.readReceiptList[1].cursor=(null===n||void 0===n||null===(t=n.data)||void 0===t?void 0:t.cursor)||"";const a=n.data.unreadUserIDList,i=await d(a);o.readReceiptList[1].userList=e?[...o.readReceiptList[1].userList,...i]:i},d=async e=>{const t=[];if(e.length&&o.isGroup){const n=await Fl.TUIServer.getUserProfile(e),o=n.data;a()(o).call(o,e=>{t.push({nick:null===e||void 0===e?void 0:e.nick,avatar:null===e||void 0===e?void 0:e.avatar,userID:null===e||void 0===e?void 0:e.userID})})}return t},u=()=>{var e;(null===(e=o.message)||void 0===e?void 0:e.conversationType)===Fl.TUIServer.TUICore.TIM.TYPES.CONV_GROUP?o.isGroup=!0:o.isGroup=!1},p=()=>{switch(o.showListNow){case 0:l(!0);break;case 1:c(!0);break;default:break}},m=()=>{o.message={},o.readReceiptList=[{label:e.isH5?n("TUIChat.人已读"):n("TUIChat.已读"),count:0,userList:[],isCompleted:!0,cursor:"",show:!0},{label:e.isH5?n("TUIChat.人未读"):n("TUIChat.未读"),count:0,userList:[],isCompleted:!0,cursor:"",show:!0},{label:e.isH5?n("TUIChat.人关闭阅读状态"):n("TUIChat.关闭阅读状态"),count:0,userList:[],isCompleted:!0,cursor:"",show:!1}],o.showListNow=0,o.messageInfo={isImg:!1,content:""}},b=()=>{var e,t,a,i,r;if(o.message&&o.isH5)switch(o.message.type){case Fl.TUIServer.TUICore.TIM.TYPES.MSG_TEXT:o.messageInfo.content=null===(e=o.message)||void 0===e||null===(e=e.payload)||void 0===e?void 0:e.text,o.messageInfo.isImg=!1;break;case Fl.TUIServer.TUICore.TIM.TYPES.MSG_CUSTOM:o.messageInfo.content=n("TUIChat.自定义"),o.messageInfo.isImg=!1;break;case Fl.TUIServer.TUICore.TIM.TYPES.MSG_IMAGE:o.messageInfo.content=null===(t=Object(D["j"])(o.message))||void 0===t?void 0:t.url,o.messageInfo.isImg=!0;break;case Fl.TUIServer.TUICore.TIM.TYPES.MSG_AUDIO:o.messageInfo.content=n("TUIChat.语音"),o.messageInfo.isImg=!1;break;case Fl.TUIServer.TUICore.TIM.TYPES.MSG_VIDEO:o.messageInfo.content=null===(a=Object(D["t"])(o.message))||void 0===a?void 0:a.snapshotUrl,o.messageInfo.isImg=!0;break;case Fl.TUIServer.TUICore.TIM.TYPES.MSG_FILE:o.messageInfo.content=n("TUIChat.文件")+(null===(i=o.message)||void 0===i||null===(i=i.payload)||void 0===i?void 0:i.fileName),o.messageInfo.isImg=!1;break;case Fl.TUIServer.TUICore.TIM.TYPES.MSG_FACE:o.messageInfo.content=null===(r=Object(D["h"])(o.message))||void 0===r?void 0:r.url,o.messageInfo.isImg=!0;break}},h=()=>{var e;o.isMenuOpen=!(null===(e=document)||void 0===e||null===(e=e.getElementsByClassName("home-menu"))||void 0===e||!e.length)};return{...Object(U["toRefs"])(o),dialog:i,toggleShow:s,getReadList:l,getUnreadList:c,isGroup:u,handleAvatarAndName:d,close:m,getMoreList:p,showMessage:b,caculateTimeago:vn["a"],handleDialogPosition:h}}});var Hl=Fl;n("01ce");const zl=se()(Hl,[["render",Gl],["__scopeId","data-v-103b5294"]]);var Kl=zl,Yl=Kl;const Wl={class:"header"},$l={class:"header-back"},ql={class:"header-title"},Ql={class:"header-close"},Xl={class:"body"},Zl={class:"body-message"},Jl={class:"body-list"};function ec(e,t,n,o,a,i){const r=Object(U["resolveComponent"])("RepliesItem");return e.show?(Object(U["openBlock"])(),Object(U["createElementBlock"])("div",{key:0,class:Object(U["normalizeClass"])(["replies",[e.isH5?"replies-H5":"",e.isMenuOpen?"replies-menu-open":""]]),ref:"dialog"},[Object(U["createElementVNode"])("div",Wl,[Object(U["createElementVNode"])("div",$l,[e.isH5?(Object(U["openBlock"])(),Object(U["createElementBlock"])("i",{key:0,class:"icon icon-back",onClick:t[0]||(t[0]=(...t)=>e.toggleShow&&e.toggleShow(...t))})):Object(U["createCommentVNode"])("",!0)]),Object(U["createElementVNode"])("div",ql,[Object(U["createElementVNode"])("span",null,Object(U["toDisplayString"])(e.$t("TUIChat.回复详情")),1)]),Object(U["createElementVNode"])("div",Ql,[e.isH5?Object(U["createCommentVNode"])("",!0):(Object(U["openBlock"])(),Object(U["createElementBlock"])("i",{key:0,class:"icon icon-close",onClick:t[1]||(t[1]=(...t)=>e.toggleShow&&e.toggleShow(...t))}))])]),Object(U["createElementVNode"])("div",Xl,[Object(U["createElementVNode"])("div",Zl,[Object(U["createVNode"])(r,{message:e.message,isH5:e.isH5,isRoot:!0},null,8,["message","isH5"])]),Object(U["createElementVNode"])("div",Jl,[Object(U["createElementVNode"])("ul",null,[(Object(U["openBlock"])(!0),Object(U["createElementBlock"])(U["Fragment"],null,Object(U["renderList"])(e.replies,(t,n)=>(Object(U["openBlock"])(),Object(U["createElementBlock"])("li",{key:n,class:"body-list-item"},[Object(U["createVNode"])(r,{message:t,isH5:e.isH5,isRoot:!1},null,8,["message","isH5"])]))),128))])])])],2)):Object(U["createCommentVNode"])("",!0)}const tc={class:"message-bubble",ref:"htmlRefHook"},nc=["src"],oc={class:"message-area"},ac={class:"message-area-title"},ic={class:"name"},rc={class:"time"},sc={class:"content content-in"},lc={key:1},cc=["src"],dc={key:4,class:"message-video-cover"},uc=["src"],pc=["src"],mc={key:6,class:"message-file"},bc={class:"message-file-content"};function hc(e,t,n,o,a,i){var r,s,l,c,d,u,p,m,b,h,v,f,g;const O=Object(U["resolveComponent"])("MessageText"),j=Object(U["resolveComponent"])("MessageEmojiReact");return Object(U["openBlock"])(),Object(U["createElementBlock"])("div",{class:Object(U["normalizeClass"])(["replies-item",e.isRoot?"":"replies-item-normal"])},[Object(U["createElementVNode"])("div",tc,[Object(U["createElementVNode"])("img",{class:"avatar",src:(null===(r=e.message)||void 0===r?void 0:r.avatar)||"https://web.sdk.qcloud.com/component/TUIKit/assets/avatar_21.png",onerror:"this.src='https://web.sdk.qcloud.com/component/TUIKit/assets/avatar_21.png'"},null,8,nc),Object(U["createElementVNode"])("main",oc,[Object(U["createElementVNode"])("div",ac,[Object(U["createElementVNode"])("label",ic,Object(U["toDisplayString"])(e.isRoot?e.message.nameCard||e.message.nick||e.message.from:e.message.messageSender),1),Object(U["createElementVNode"])("label",rc,Object(U["toDisplayString"])(e.caculateTimeago(1e3*(e.isRoot?null===(s=e.message)||void 0===s?void 0:s.time:null===(l=e.message)||void 0===l?void 0:l.messageTime))),1)]),Object(U["createElementVNode"])("div",sc,[e.message.messageType!==e.constant.typeText&&e.message.type!==e.TIM.TYPES.MSG_TEXT&&e.isRoot?Object(U["createCommentVNode"])("",!0):(Object(U["openBlock"])(),Object(U["createBlock"])(O,{key:0,data:e.handleTextMessageShowContext(e.isRoot?e.message:{payload:{text:null===(c=e.message)||void 0===c?void 0:c.messageAbstract}})},null,8,["data"])),e.message.messageType===e.constant.typeCustom||e.message.type===e.TIM.TYPES.MSG_CUSTOM?(Object(U["openBlock"])(),Object(U["createElementBlock"])("span",lc,Object(U["toDisplayString"])(null===(d=e.handleCustomMessageShowContext(e.message))||void 0===d?void 0:d.custom),1)):Object(U["createCommentVNode"])("",!0),e.message.messageType===e.constant.typeImage||e.message.type===e.TIM.TYPES.MSG_IMAGE?(Object(U["openBlock"])(),Object(U["createElementBlock"])("img",{key:2,class:"message-img",src:null===(u=e.message)||void 0===u||null===(u=u.payload)||void 0===u?void 0:u.imageInfoArray[1].url},null,8,cc)):Object(U["createCommentVNode"])("",!0),e.message.messageType===e.constant.typeAudio||e.message.type===e.TIM.TYPES.MSG_AUDIO?(Object(U["openBlock"])(),Object(U["createElementBlock"])("div",{key:3,class:"message-audio",style:Object(U["normalizeStyle"])(`width: ${10*(null===(p=e.message)||void 0===p||null===(p=p.payload)||void 0===p?void 0:p.second)+40}px`)},[t[0]||(t[0]=Object(U["createElementVNode"])("i",{class:"icon icon-voice"},null,-1)),Object(U["createElementVNode"])("label",null,Object(U["toDisplayString"])(null===(m=e.message)||void 0===m||null===(m=m.payload)||void 0===m?void 0:m.second)+"s",1)],4)):Object(U["createCommentVNode"])("",!0),e.message.messageType===e.constant.typeVideo||e.message.type===e.TIM.TYPES.MSG_VIDEO?(Object(U["openBlock"])(),Object(U["createElementBlock"])("div",dc,[Object(U["createElementVNode"])("img",{class:"message-videoimg",src:(null===(b=e.message)||void 0===b||null===(b=b.payload)||void 0===b?void 0:b.snapshotUrl)||(null===(h=e.message)||void 0===h||null===(h=h.payload)||void 0===h?void 0:h.thumbUrl)},null,8,uc)])):Object(U["createCommentVNode"])("",!0),e.message.messageType===e.constant.typeFace||e.message.type===e.TIM.TYPES.MSG_FACE?(Object(U["openBlock"])(),Object(U["createElementBlock"])("img",{key:5,class:"message-img",src:e.url},null,8,pc)):Object(U["createCommentVNode"])("",!0),e.message.messageType===e.constant.typeFile||e.message.type===e.TIM.TYPES.MSG_FILE?(Object(U["openBlock"])(),Object(U["createElementBlock"])("div",mc,[t[1]||(t[1]=Object(U["createElementVNode"])("i",{class:"icon icon-files"},null,-1)),Object(U["createElementVNode"])("div",bc,[Object(U["createElementVNode"])("label",null,Object(U["toDisplayString"])(null===(v=e.message)||void 0===v||null===(v=v.payload)||void 0===v?void 0:v.fileName),1),Object(U["createElementVNode"])("span",null,Object(U["toDisplayString"])((null===(f=e.handleFileMessageShowContext(e.message))||void 0===f?void 0:f.size)||(null===(g=e.message)||void 0===g||null===(g=g.payload)||void 0===g?void 0:g.fileSize)),1)])])):Object(U["createCommentVNode"])("",!0),Object(U["createVNode"])(j,{message:e.message,type:"content"},null,8,["message"])])])],512)],2)}const vc=Object(U["defineComponent"])({props:{message:{type:Object,default:()=>({})},isH5:{type:Boolean,default:!1},isRoot:{type:Boolean,default:!1}},components:{MessageText:ce,MessageEmojiReact:to},setup(e,t){const n=Object(U["reactive"])({message:{},isH5:!1,url:"",isRoot:!1,constant:Qt["a"],TIM:Xn["a"]});return Object(U["watchEffect"])(()=>{var t;(n.message=e.message,n.isH5=e.isH5,n.isRoot=e.isRoot,n.message.type===Xn["a"].TYPES.MSG_FACE)&&(n.url=`https://web.sdk.qcloud.com/im/assets/face-elem/${null===(t=n.message)||void 0===t||null===(t=t.payload)||void 0===t?void 0:t.data}@2x.png`)}),{...Object(U["toRefs"])(n),handleTextMessageShowContext:D["r"],handleCustomMessageShowContext:D["g"],handleFileMessageShowContext:D["i"],caculateTimeago:vn["a"]}}});var fc=vc;n("3910");const gc=se()(fc,[["render",hc],["__scopeId","data-v-c1a2ea1e"]]);var Oc=gc;const jc=Object(U["defineComponent"])({type:"custom",components:{RepliesItem:Oc},props:{message:{type:Object,default:()=>({})},isH5:{type:Boolean,default:!1},show:{type:Boolean,default:()=>!1},url:{type:String,default:""},messageList:{type:Array,default:()=>[]}},setup(e,t){const n=Object(U["reactive"])({message:{},isGroup:!1,show:!1,isH5:!1,url:"",showListNow:0,isMenuOpen:!0,replies:[],messageList:[],TIM:Xn["a"]}),o=Object(U["ref"])();Object(U["watchEffect"])(()=>{n.message=e.message,n.show=e.show,n.isH5=e.isH5,n.url=e.url,n.messageList=e.messageList}),Object(U["watch"])(()=>{n.message,n.messageList},()=>{n.message=e.message,n.messageList=e.messageList,r(n.message)},{deep:!0});const i=()=>{n.show=!n.show,n.show||(t.emit("closeDialog","replies"),s())};Object(hn["onClickOutside"])(o,()=>{n.show=!1,t.emit("closeDialog","replies"),s()});const r=e=>{try{var t,o;const{cloudCustomData:i}=e;if(!i)return;const r=Object(D["a"])(i);n.replies=null===r||void 0===r||null===(t=r.messageReplies)||void 0===t?void 0:t.replies,null===n||void 0===n||null===(o=n.replies)||void 0===o||a()(o).call(o,e=>{var t;const{messageID:o,messageSender:a}=e,i=C()(t=n.messageList).call(t,e=>e.ID===o||e.from===a);e.avatar=i?null===i||void 0===i?void 0:i.avatar:""})}catch(i){console.log(i)}},s=()=>{n.message={}},l=()=>{var e;n.isMenuOpen=!(null===(e=document)||void 0===e||null===(e=e.getElementsByClassName("home-menu"))||void 0===e||!e.length)};return{...Object(U["toRefs"])(n),dialog:o,toggleShow:i,close:s,caculateTimeago:vn["a"],handleDialogPosition:l}}});var yc=jc;n("d45a");const Ic=se()(yc,[["render",ec],["__scopeId","data-v-43000c27"]]);var Cc=Ic,Ec=Cc;const kc={key:0,class:"call",id:"call"},wc={class:"call-main-content",ref:"dialog"},_c={key:0,class:"icon icon-call-voice"},Sc={key:0,class:"icon icon-call-video"},Tc={class:"uncall-dialog-body"};function Lc(e,t,n,o,a,i){const s=Object(U["resolveComponent"])("Transfer"),l=Object(U["resolveComponent"])("Dialog");return e.handleShowCallIcon(e.conversation,e.isH5)?(Object(U["openBlock"])(),Object(U["createElementBlock"])("div",kc,[Object(U["createElementVNode"])("div",{class:"call-icon",onClick:t[0]||(t[0]=(...t)=>e.toggleShowSelectDialog&&e.toggleShowSelectDialog(...t))},[...t[7]||(t[7]=[Object(U["createElementVNode"])("i",{class:"icon icon-call",title:"通话"},null,-1),Object(U["createElementVNode"])("i",{class:"icon icon-down-arrow",title:"通话"},null,-1)])]),Object(U["withDirectives"])(Object(U["createElementVNode"])("div",{class:Object(U["normalizeClass"])(["call-main",[e.isH5&&"call-main-h5"]])},[Object(U["createElementVNode"])("div",wc,[Object(U["createElementVNode"])("div",{class:"call-main-voice",onClick:t[1]||(t[1]=t=>e.onClickCall(1))},[e.isH5?(Object(U["openBlock"])(),Object(U["createElementBlock"])("i",_c)):Object(U["createCommentVNode"])("",!0),Object(U["createTextVNode"])(" "+Object(U["toDisplayString"])(e.$t("TUIChat.语音通话")),1)]),Object(U["createElementVNode"])("div",{class:"call-main-video",onClick:t[2]||(t[2]=t=>e.onClickCall(2))},[e.isH5?(Object(U["openBlock"])(),Object(U["createElementBlock"])("i",Sc)):Object(U["createCommentVNode"])("",!0),Object(U["createTextVNode"])(" "+Object(U["toDisplayString"])(e.$t("TUIChat.视频通话")),1)]),Object(U["createElementVNode"])("footer",null,[e.isH5?(Object(U["openBlock"])(),Object(U["createElementBlock"])("span",{key:0,class:"close",onClick:t[3]||(t[3]=Object(U["withModifiers"])(t=>e.showSelectDialog=!1,["stop"]))},Object(U["toDisplayString"])(e.$t("TUIChat.取消")),1)):Object(U["createCommentVNode"])("",!0)])],512)],2),[[U["vShow"],e.showSelectDialog]]),Object(U["createVNode"])(l,{show:e.showGroupUserDialog,isH5:e.isH5,isHeaderShow:!1,isFooterShow:!1,background:!1,"onUpdate:show":t[4]||(t[4]=t=>e.showGroupUserDialog=t)},{default:Object(U["withCtx"])(()=>{var t,n;return[Object(U["createVNode"])(s,{isSearch:!0,title:e.showTitle,list:e.searchUserList,isH5:e.isH5,isRadio:"isC2C"===(null===(t=e.conversation)||void 0===t?void 0:t.type),groupId:null===(n=e.conversation)||void 0===n||null===(n=n.groupProfile)||void 0===n?void 0:n.groupID,onSearch:e.handleSearch,onSubmit:e.submit,onCancel:e.cancle},null,8,["title","list","isH5","isRadio","groupId","onSearch","onSubmit","onCancel"])]}),_:1},8,["show","isH5"]),Object(U["createVNode"])(l,{show:e.showUnsupportDialog,isH5:e.isH5,isHeaderShow:!0,isFooterShow:!0,background:!0,title:e.$t("TUIChat.欢迎使用TUICallKit"),"onUpdate:show":t[6]||(t[6]=t=>e.showUnsupportDialog=t)},{default:Object(U["withCtx"])(()=>{var n;return[Object(U["createElementVNode"])("div",null,[Object(U["createElementVNode"])("div",Tc,[Object(U["createElementVNode"])("p",null,Object(U["toDisplayString"])(e.errorContent),1),Object(U["withDirectives"])(Object(U["createElementVNode"])("p",null,[Object(U["createTextVNode"])(Object(U["toDisplayString"])(e.$t("TUIChat.请点击"))+" ",1),Object(U["createElementVNode"])("a",{onClick:t[5]||(t[5]=t=>{var n;return e.openLink(null===(n=e.errorLink)||void 0===n?void 0:n.url)})},Object(U["toDisplayString"])(e.$t("TUIChat."+(null===(n=e.errorLink)||void 0===n?void 0:n.label))),1),Object(U["createTextVNode"])(" "+Object(U["toDisplayString"])(e.$t("TUIChat.进行体验")),1)],512),[[U["vShow"],r()(e.errorLink).length>0]])])])]}),_:1},8,["show","isH5","title"])])):Object(U["createCommentVNode"])("",!0)}var Ac=Mi,Dc=Na;const Nc=Object(U["defineComponent"])({props:{show:{type:Boolean,default:()=>!1},isMute:{type:Boolean,default:()=>!1},isH5:{type:Boolean,default:()=>!1},conversation:{type:Object,default:()=>({})}},components:{Dialog:Ac,Transfer:Dc},setup(e,t){var n;const{t:o}=Nc.TUIServer.TUICore.config.i18n.useI18n(),a=(null===(n=window)||void 0===n||null===(n=n.TUIKitTUICore)||void 0===n?void 0:n.isOfficial)&&Jt["c"]&&Object(Jt["c"])()||{},i=Object(U["reactive"])({showSelectDialog:!1,showCall:!1,showGroupUserDialog:!1,isH5:!1,isMute:!1,isHomeMenuOpen:!1,conversation:{},showTitle:"",searchUserList:[],memberList:[],mediaType:0,showUnsupportDialog:!1,errorContent:"",errorLink:{}}),r=Object(U["ref"])();Object(U["watchEffect"])(()=>{i.showSelectDialog=e.show,i.isMute=e.isMute,i.isH5=e.isH5,i.conversation=e.conversation}),Object(U["watch"])(()=>i.showCall,(e,t)=>{e!==t&&i.showCall&&c()});const s=()=>{i.isMute||(i.showSelectDialog=!0)};Object(hn["onClickOutside"])(r,()=>{i.showSelectDialog=!1});const c=()=>{var e;i.isHomeMenuOpen=!(null===(e=document)||void 0===e||null===(e=e.getElementsByClassName("home-menu"))||void 0===e||!e.length)},d=e=>{var t,n,o;if(i.showSelectDialog=!1,i.mediaType=e,null===Nc||void 0===Nc||null===(t=Nc.TUIServer)||void 0===t||null===(t=t.TUICore)||void 0===t||null===(t=t.TUIServer)||void 0===t||!t.TUICallKit)return g(),void Zt.getInstance().reportEvent({name:"callOptions",ext1:"call-uninstall"});switch(Zt.getInstance().reportEvent({name:"callOptions",ext1:"clickCall-success"}),(null===(n=window)||void 0===n||null===(n=n.TUIKitTUICore)||void 0===n?void 0:n.isOfficial)&&(null===a||void 0===a?void 0:a.commit)&&(null===a||void 0===a||a.commit("handleTask",6)),null===(o=i.conversation)||void 0===o?void 0:o.type){case Nc.TUIServer.TUICore.TIM.TYPES.CONV_C2C:u(i.conversation,e),Zt.getInstance().reportEvent({name:"callOptions",ext1:"call-c2c"});break;case Nc.TUIServer.TUICore.TIM.TYPES.CONV_GROUP:m(e),Zt.getInstance().reportEvent({name:"callOptions",ext1:"call-group"});break;default:break}},u=async(e,t,n=[])=>{const o=e.type;switch(o){case Nc.TUIServer.TUICore.TIM.TYPES.CONV_C2C:try{var a;await Nc.TUIServer.TUICore.TUIServer.TUICallKit.call({userID:null===e||void 0===e||null===(a=e.userProfile)||void 0===a?void 0:a.userID,type:t})}catch(r){g(r)}break;case Nc.TUIServer.TUICore.TIM.TYPES.CONV_GROUP:try{var i;await Nc.TUIServer.TUICore.TUIServer.TUICallKit.groupCall({userIDList:n,groupID:null===e||void 0===e||null===(i=e.groupProfile)||void 0===i?void 0:i.groupID,type:t})}catch(r){g(r)}break;default:break}},p=(e,t)=>{var n,o;return(e.type!==Nc.TUIServer.TUICore.TIM.TYPES.CONV_C2C||(null===e||void 0===e||null===(n=e.userProfile)||void 0===n?void 0:n.userID)!==(null===Nc||void 0===Nc||null===(o=Nc.TUIServer)||void 0===o||null===(o=o.TUICore)||void 0===o||null===(o=o.TUIServer)||void 0===o||null===(o=o.TUIProfile)||void 0===o||null===(o=o.currentStore)||void 0===o||null===(o=o.profile)||void 0===o?void 0:o.userID))&&(Zt.getInstance().reportEvent({name:"callOptions",ext1:"clickCall"}),!0)},m=e=>{var t,n;i.showGroupUserDialog=!0,i.showTitle=o(1===e?"TUIChat.发起群语音":"TUIChat.发起群视频");const a={groupID:null===i||void 0===i||null===(t=i.conversation)||void 0===t||null===(t=t.groupProfile)||void 0===t?void 0:t.groupID,count:100,offset:0};null===Nc||void 0===Nc||null===(n=Nc.TUIServer)||void 0===n||null===(n=n.TUICore)||void 0===n||null===(n=n.TUIServer)||void 0===n||null===(n=n.TUIGroup)||void 0===n||null===(n=n.getGroupMemberList(a))||void 0===n||n.then(e=>{var t,n,o;const a=null===(t=i.conversation)||void 0===t||null===(t=t.groupProfile)||void 0===t||null===(t=t.selfInfo)||void 0===t?void 0:t.userID;let r=[];if(null!==i&&void 0!==i&&null!==(n=i.conversation)&&void 0!==n&&null!==(n=n.groupProfile)&&void 0!==n&&n.muteAllMembers)r=[];else{var s;const t=(new Date).getTime();r=y()(s=e.data.memberList).call(s,e=>(null===e||void 0===e?void 0:e.userID)!==a&&(!(1e3*(null===e||void 0===e?void 0:e.muteUntil)-t>0)&&e))}null!==i&&void 0!==i&&null!==(o=i.conversation)&&void 0!==o&&null!==(o=o.groupProfile)&&void 0!==o&&o.muteAllMembers&&(r=[]),i.memberList=r,i.searchUserList=r})},b=async e=>{var t;const n=null===(t=i.memberList)||void 0===t?void 0:y()(t).call(t,t=>(null===t||void 0===t?void 0:t.userID)===e);i.searchUserList=null!==n&&void 0!==n&&n.length?n:i.memberList},h=e=>{i.searchUserList=i.memberList,i.showGroupUserDialog=!1;const t=null===e||void 0===e?void 0:l()(e).call(e,e=>null===e||void 0===e?void 0:e.userID);u(i.conversation,i.mediaType,t)},v=()=>{i.showGroupUserDialog=!1,i.mediaType=0},f=e=>{e&&(window.open(e),Zt.getInstance().reportEvent({name:"openLink",ext1:"callkit-doc"}))},g=e=>{var t;e?(null===e||void 0===e||null===(t=e.message)||void 0===t?void 0:T()(t).call(t,"The package you purchased does not support this ability."))>=0?(i.showUnsupportDialog=!0,i.errorContent=o("TUIChat.您当前购买使用的套餐包暂未开通此功能"),i.errorLink=Fi.purchase):(i.errorContent=(null===e||void 0===e?void 0:e.message)||e,i.showUnsupportDialog=!1,i.errorLink={}):(i.showUnsupportDialog=!0,i.errorContent=o("TUIChat.检测到您暂未集成TUICallKit,无法体验音视频通话功能"),i.errorLink=Fi.implement)};return{...Object(U["toRefs"])(i),toggleShowSelectDialog:s,dialog:r,onClickCall:d,handleCallDialogPosition:c,handleCall:u,handleGroupDialog:m,handleSearch:b,submit:h,cancle:v,handleShowCallIcon:p,openLink:f,handleUnsupportDialog:g}}});var Uc=Nc;n("8522");const Bc=se()(Uc,[["render",Lc],["__scopeId","data-v-4e77884d"]]);var Mc=Bc,Vc=Mc,Rc=n("1eaf"),xc=n.n(Rc),Pc=n("6ba3"),Gc=n("3654");const Fc=["src"],Hc={class:"actions-bar"},zc={class:"image-counter"};var Kc=Object(U["defineComponent"])({__name:"imagePreviewer",props:{imageList:{type:Array,default:()=>[]},currentImage:{type:Object,default:()=>({})}},emits:["close"],setup(e,{emit:t}){const n=e,o=t,a=Object(U["ref"])(1),i=Object(U["ref"])(0),r=Object(U["ref"])(.1),s=Object(U["ref"])(0),l=Object(U["ref"])(),c=Object(U["ref"])(),{isH5:d}=Object(Pc["a"])();let u=0,p={},m=!1,b=!1,h=null;Object(U["watchEffect"])(()=>{var e;s.value=k()(e=n.imageList).call(e,e=>e.ID===n.currentImage.ID)});const v=e=>{e.preventDefault(),I(e),C(e)},f=e=>{e.preventDefault(),m=!0,e.touches&&2===e.touches.length&&(b=!0,E(e))},g=e=>{var t;e.preventDefault();let n=0,o=0;if(b)h||(b=!1,delete p.pageX2,delete p.pageY2,h=O()(()=>{h=null},200));else if(null===h){switch(m){case!0:n=null===e||void 0===e||null===(t=e.changedTouches[0])||void 0===t?void 0:t.pageX,o=n-u,o>100?B():o<-100&&N();break;case!1:L();break}h=O()(()=>{h=null},200)}},j=e=>{b=!1,delete p.pageX1,delete p.pageY1},y=e=>{if(e.preventDefault(),0!==Math.abs(e.deltaX)&&0!==Math.abs(e.deltaY))return;let t=a.value;t+=e.deltaY*(e.ctrlKey?-.01:.002),t=Math.min(Math.max(.125,t),4),a.value=t},I=e=>{var t;u=null===e||void 0===e||null===(t=e.changedTouches[0])||void 0===t?void 0:t.pageX,m=!1},C=e=>{let t=null===e||void 0===e?void 0:e.touches[0],n=null===e||void 0===e?void 0:e.touches[1];p.pageX1=null===t||void 0===t?void 0:t.pageX,p.pageY1=null===t||void 0===t?void 0:t.pageY,n&&(p.pageX2=null===n||void 0===n?void 0:n.pageX,p.pageY2=null===n||void 0===n?void 0:n.pageY)},E=e=>{let t=null===e||void 0===e?void 0:e.touches[0],n=null===e||void 0===e?void 0:e.touches[1];n&&(Object(Gc["isNumber"])(p.pageX2)||(p.pageX2=n.pageX),Object(Gc["isNumber"])(p.pageY2)||(p.pageY2=n.pageY));const o=(e,t,n,o)=>xc()(n-e,o-t);if(!Object(Gc["isNumber"])(p.pageX1)||!Object(Gc["isNumber"])(p.pageY1)||!Object(Gc["isNumber"])(p.pageX2)||!Object(Gc["isNumber"])(p.pageY2))return;let i=o(t.pageX,t.pageY,n.pageX,n.pageY)/o(p.pageX1,p.pageY1,p.pageX2,p.pageY2);a.value=Math.min(Math.max(.5,a.value*i),4)};Object(U["onMounted"])(()=>{var e,t,n,o,a,i;null===l||void 0===l||null===(e=l.value)||void 0===e||e.addEventListener("touchstart",v),null===l||void 0===l||null===(t=l.value)||void 0===t||t.addEventListener("touchmove",f),null===l||void 0===l||null===(n=l.value)||void 0===n||n.addEventListener("touchend",g),null===l||void 0===l||null===(o=l.value)||void 0===o||o.addEventListener("touchcancel;",j),null===l||void 0===l||null===(a=l.value)||void 0===a||a.addEventListener("wheel",y),null===(i=document)||void 0===i||i.addEventListener("keydown",w)});const w=e=>{e.preventDefault(),27===(null===e||void 0===e?void 0:e.keyCode)&&L()},_=()=>{a.value+=.1},S=()=>{a.value=a.value-.1>r.value?a.value-.1:r.value},L=()=>{o("close")},A=()=>{i.value-=90},D=()=>{i.value+=90},N=()=>{c.value.style.transition="0.5s",s.value{c.value.style.transition="0.5s",s.value>0&&s.value--,M()},M=()=>{a.value=1,i.value=0};return Object(U["onUnmounted"])(()=>{var e,t,n,o,a,i;null===l||void 0===l||null===(e=l.value)||void 0===e||e.removeEventListener("touchstart",v),null===l||void 0===l||null===(t=l.value)||void 0===t||t.removeEventListener("touchmove",f),null===l||void 0===l||null===(n=l.value)||void 0===n||n.removeEventListener("touchend",g),null===l||void 0===l||null===(o=l.value)||void 0===o||o.removeEventListener("touchcancel;",j),null===l||void 0===l||null===(a=l.value)||void 0===a||a.removeEventListener("wheel",y),null===(i=document)||void 0===i||i.removeEventListener("keydown",w)}),(t,n)=>{var o;return Object(U["openBlock"])(),Object(U["createElementBlock"])("div",{class:Object(U["normalizeClass"])(["image-previewer",[Object(U["unref"])(d)&&"image-previewer-h5"]])},[Object(U["createElementVNode"])("div",{class:"image-wrapper",ref_key:"image",ref:l},[Object(U["createElementVNode"])("ul",{class:"image-list",style:Object(U["normalizeStyle"])({width:100*e.imageList.length+"%",transform:`translateX(-${100*s.value/e.imageList.length}%)`}),ref_key:"ul",ref:c},[(Object(U["openBlock"])(!0),Object(U["createElementBlock"])(U["Fragment"],null,Object(U["renderList"])(e.imageList,(e,t)=>{var n,o,r,s;return Object(U["openBlock"])(),Object(U["createElementBlock"])("li",{class:"image-item",key:t},[Object(U["createElementVNode"])("img",{class:"image-preview",style:Object(U["normalizeStyle"])({transform:`scale(${a.value}) rotate(${i.value}deg)`}),src:-1===(null===e||void 0===e||null===(n=e.payload)||void 0===n||null===(n=n.imageInfoArray[0])||void 0===n?void 0:T()(o=n.url).call(o,"http"))?`${Object(U["unref"])(Ce["a"]).urlF.replace("lol","://")}/file/show/${null===e||void 0===e||null===(r=e.payload)||void 0===r||null===(r=r.imageInfoArray[0])||void 0===r?void 0:r.url}`:null===e||void 0===e||null===(s=e.payload)||void 0===s||null===(s=s.imageInfoArray[0])||void 0===s?void 0:s.url,alt:""},null,12,Fc)])}),128))],4)],512),Object(U["withDirectives"])(Object(U["createElementVNode"])("i",{class:"icon icon-close",onClick:L},null,512),[[U["vShow"],!Object(U["unref"])(d)]]),Object(U["withDirectives"])(Object(U["createElementVNode"])("div",{class:"image-button image-button-left",onClick:B},[...n[0]||(n[0]=[Object(U["createElementVNode"])("i",{class:"icon icon-left-arrow"},null,-1)])],512),[[U["vShow"],!Object(U["unref"])(d)&&s.value>0]]),Object(U["withDirectives"])(Object(U["createElementVNode"])("div",{class:"image-button image-button-right",onClick:N},[...n[1]||(n[1]=[Object(U["createElementVNode"])("i",{class:"icon icon-right-arrow"},null,-1)])],512),[[U["vShow"],!Object(U["unref"])(d)&&s.value<(null===(o=e.imageList)||void 0===o?void 0:o.length)-1]]),Object(U["createElementVNode"])("div",Hc,[Object(U["createElementVNode"])("i",{class:"icon icon-zoom-in",onClick:_}),Object(U["createElementVNode"])("i",{class:"icon icon-zoom-out",onClick:S}),Object(U["createElementVNode"])("i",{class:"icon icon-refresh-left",onClick:A}),Object(U["createElementVNode"])("i",{class:"icon icon-refresh-right",onClick:D}),Object(U["createElementVNode"])("span",zc,Object(U["toDisplayString"])(s.value+1)+" / "+Object(U["toDisplayString"])(e.imageList.length),1)])],2)}}});n("9444");const Yc=se()(Kc,[["__scopeId","data-v-dc0100bc"]]);var Wc=Yc,$c=Wc;let qc={Face:hs,Image:Is,Video:Ts,File:Ms,Evaluate:bl,Words:Zs,Call:Vc};const Qc={Forward:Fs},Xc={TypingHeader:Il,ReadReceiptDialog:Yl,Replies:Ec,ImagePreviewer:$c,MessageInput:qr};function Zc(e){let t={};switch(e){case"send":t=qc;break;case"message":t=Qc;break;case"other":t=Xc;break;default:break}return t}const Jc=e=>{var t;const n={...qc,...Qc,...Xc};a()(t=r()(n)).call(t,e=>{n[e].TUIServer=od.server}),ns.TUIServer=od.server,ns.components={...ns.components,...n},e.component(od.name,ns)},ed=e=>(od.server=new N(e),e.component(od.name,od),od),td=e=>{qc={...qc,...e}},nd=e=>{l()(e).call(e,e=>(delete qc[e],e))},od={name:"TUIChat",component:ns,server:N,sendComponents:qc,messageComponents:Qc,otherComponents:Xc,install:Jc,plugin:ed,setPluginComponents:td,removePluginComponents:nd};var ad=od;class id extends A{constructor(e){var t;super(),Object(c["a"])(this,"TUICore",void 0),Object(c["a"])(this,"store",void 0),Object(c["a"])(this,"currentStore",{}),Object(c["a"])(this,"storeCallback",void 0),this.TUICore=e,this.bindTIMEvent(),this.store=e.setComponentStore("TUIConversation",{},u()(t=this.updateStore).call(t,this))}destroyed(){this.unbindTIMEvent()}updateStore(e,t){var n,o,a;null!==this&&void 0!==this&&null!==(n=this.currentStore)&&void 0!==n&&n.conversationData&&(this.currentStore.conversationData.list=e.conversationList,this.currentStore.userIDList=null===(o=this.currentStore.conversationData.list)||void 0===o?void 0:l()(a=y()(o).call(o,e=>{var t;return null===e||void 0===e||null===(t=e.userProfile)||void 0===t?void 0:t.userID})).call(a,e=>{var t;return null===e||void 0===e||null===(t=e.userProfile)||void 0===t?void 0:t.userID}))}handlePromiseCallback(e){return new f.a((t,n)=>{const o={TUIName:"TUIConversation",callback:()=>{e&&e(t,n)}};this.TUICore.setAwaitFunc(o.TUIName,o.callback)})}bindTIMEvent(){this.TUICore.tim.on(this.TUICore.TIM.EVENT.CONVERSATION_LIST_UPDATED,this.handleConversationListUpdate,this),this.TUICore.tim.on(this.TUICore.TIM.EVENT.NET_STATE_CHANGE,this.handleNetStateChange,this)}unbindTIMEvent(){this.TUICore.tim.off(this.TUICore.TIM.EVENT.CONVERSATION_LIST_UPDATED,this.handleConversationListUpdate),this.TUICore.tim.off(this.TUICore.TIM.EVENT.NET_STATE_CHANGE,this.handleNetStateChange)}handleConversationListUpdate(e){this.listUpdate(e.data.length),this.handleFilterSystem(e.data)}listUpdate(e){this.currentStore.listLength=e}handleNetStateChange(e){var t;this.currentStore.netWork=(null===e||void 0===e||null===(t=e.data)||void 0===t?void 0:t.state)||""}handleFilterSystem(e){console.log(e);const t={allConversationList:e,conversationList:[]},n=y()(e).call(e,e=>{var t;return(null===e||void 0===e?void 0:e.conversationID)===(null===this||void 0===this||null===(t=this.currentStore)||void 0===t?void 0:t.currentConversationID)});return 0===n.length&&this.handleCurrentConversation({}),t.conversationList=y()(e).call(e,e=>e.type!==this.TUICore.TIM.TYPES.CONV_SYSTEM),this.store.allConversationList=t.allConversationList,this.store.conversationList=t.conversationList,t}async setMessageRead(e){return this.handlePromiseCallback(async(t,n)=>{try{const n=await this.TUICore.tim.setMessageRead({conversationID:e});t(n)}catch(o){n(o)}})}async deleteConversation(e){return this.handlePromiseCallback(async(t,n)=>{try{const n=await this.TUICore.tim.deleteConversation(e);t(n)}catch(o){n(o)}})}async pinConversation(e){return this.handlePromiseCallback(async(t,n)=>{try{const n=await this.TUICore.tim.pinConversation(e);t(n)}catch(o){n(o)}})}async muteConversation(e){return this.handlePromiseCallback(async(t,n)=>{try{const n=await this.TUICore.tim.setMessageRemindType(e);t(n)}catch(o){n(o)}})}async getConversationProfile(e){return this.handlePromiseCallback(async(t,n)=>{try{const n=await this.TUICore.tim.getConversationProfile(e);t(n)}catch(o){n(o)}})}async getConversationList(){return this.handlePromiseCallback(async(e,t)=>{try{const t=await this.TUICore.tim.getConversationList();console.log("imResponse============================"),console.log(t),this.handleFilterSystem(t.data.conversationList),e(await this.getGroupList())}catch(n){t(n)}})}async getGroupList(){return this.handlePromiseCallback(async(e,t)=>{try{var n;const t=await this.TUICore.tim.getGroupList();a()(n=t.data.groupList).call(n,e=>{e["conversationID"]="GROUP"+e["groupID"]}),console.log("imResponseGroup============================"),console.log(t),e(t)}catch(o){t(o)}})}async getUserProfile(e){return this.handlePromiseCallback(async(t,n)=>{try{const n=await this.TUICore.tim.getUserProfile({userIDList:e});t(n)}catch(o){n(o)}})}async bind(e){return this.currentStore=e,await this.getConversationList(),this.currentStore}handleCurrentConversation(e){this.TUICore.getStore().TUIChat.conversation=e||{},null!==e&&void 0!==e&&e.conversationID?(this.currentStore.currentConversationID===(null===e||void 0===e?void 0:e.conversationID)&&(this.currentStore.currentConversationID=""),this.currentStore.currentConversationID&&this.setMessageRead(this.currentStore.currentConversationID),this.currentStore.currentConversationID=null===e||void 0===e?void 0:e.conversationID,this.setMessageRead(e.conversationID)):this.currentStore.currentConversationID=""}}const rd={class:"TUI-conversation",style:{background:"#f2f2f2"}},sd={key:0,class:"network"},ld={class:"TUI-conversation-list",style:{height:"100%",width:"100%",overflow:"hidden"}},cd={style:{background:"#ffffff",height:"80px","margin-bottom":"8px"}},dd={style:{height:"35px","line-height":"35px","padding-left":"20px","font-size":"20px","font-weight":"bold",display:"flex","justify-content":"space-between"}},ud={style:{display:"flex"}},pd=["src"],md=["src"],bd={key:0,style:{display:"flex"}},hd={key:1};function vd(e,t,n,o,a,i){var r,s,l;const c=Object(U["resolveComponent"])("el-input"),d=Object(U["resolveComponent"])("el-checkbox"),u=Object(U["resolveComponent"])("TUIConversationList");return Object(U["openBlock"])(),Object(U["createElementBlock"])("div",rd,[e.isNetwork?(Object(U["openBlock"])(),Object(U["createElementBlock"])("div",sd,[t[6]||(t[6]=Object(U["createElementVNode"])("i",{class:"icon icon-error"},"!",-1)),Object(U["createElementVNode"])("p",null,"️"+Object(U["toDisplayString"])(e.$t("TUIConversation.网络异常,请您检查网络设置")),1)])):Object(U["createCommentVNode"])("",!0),Object(U["createElementVNode"])("main",ld,[Object(U["createElementVNode"])("div",cd,[Object(U["createElementVNode"])("div",dd,[Object(U["createTextVNode"])(Object(U["toDisplayString"])(e.title)+" ",1),Object(U["createElementVNode"])("div",ud,[e.playStatus?(Object(U["openBlock"])(),Object(U["createElementBlock"])("div",{key:1,onClick:t[1]||(t[1]=(...t)=>e.changePlayStatus&&e.changePlayStatus(...t))},[Object(U["createElementVNode"])("img",{class:"play-or-mute-img",src:e.muteImage,alt:""},null,8,md)])):(Object(U["openBlock"])(),Object(U["createElementBlock"])("div",{key:0,onClick:t[0]||(t[0]=(...t)=>e.changePlayStatus&&e.changePlayStatus(...t))},[Object(U["createElementVNode"])("img",{class:"play-or-mute-img",src:e.playImage,alt:""},null,8,pd)]))])]),Object(U["createVNode"])(c,{modelValue:e.searchInfo,"onUpdate:modelValue":t[2]||(t[2]=t=>e.searchInfo=t),style:{width:"calc(100% - 40px)","margin-left":"20px"},placeholder:"输入姓名搜索当前咨询用户"},null,8,["modelValue"])]),"expert"===e.hrefParams.isSpecialized?(Object(U["openBlock"])(),Object(U["createElementBlock"])("div",{key:0,style:Object(U["normalizeStyle"])([{height:""+(e.checkedExpert?"50px":"QH"!==(null===(r=e.hrefParams)||void 0===r?void 0:r.vitePlatform)?"73px":"33px")},{padding:"0 10px"}])},["QH"!==(null===(s=e.hrefParams)||void 0===s?void 0:s.vitePlatform)?(Object(U["openBlock"])(),Object(U["createElementBlock"])("div",bd,[Object(U["createElementVNode"])("div",{class:Object(U["normalizeClass"])(["checkedPro",[e.checkedExpert?"":"expert"]]),onClick:t[3]||(t[3]=t=>e.clickExpert(!1))}," 员工咨询 ",2),Object(U["createElementVNode"])("div",{class:Object(U["normalizeClass"])(["checkedPro",[e.checkedExpert?"expert":""]]),onClick:t[4]||(t[4]=t=>e.clickExpert(!0)),style:{"margin-left":"10px"}}," 专家咨询 ",2)])):Object(U["createCommentVNode"])("",!0),e.checkedExpert?Object(U["createCommentVNode"])("",!0):(Object(U["openBlock"])(),Object(U["createElementBlock"])("div",hd,[Object(U["createVNode"])(d,{modelValue:e.tfReply,"onUpdate:modelValue":t[5]||(t[5]=t=>e.tfReply=t)},{default:Object(U["withCtx"])(()=>[...t[7]||(t[7]=[Object(U["createTextVNode"])("专家待回复",-1)])]),_:1},8,["modelValue"])]))],4)):Object(U["createCommentVNode"])("",!0),Object(U["createVNode"])(u,{style:Object(U["normalizeStyle"])({height:"expert"===e.hrefParams.isSpecialized&&"QH"!==(null===(l=e.hrefParams)||void 0===l?void 0:l.vitePlatform)?`calc(100% - ${e.checkedExpert?"148px":"171px"})`:`calc(100% - ${e.checkedExpert?"98px":"131px"})`}),currentID:e.currentConversationID,data:e.conversationData,onHandleItem:e.handleCurrentConversation,isH5:e.env.isH5,displayOnlineStatus:e.displayOnlineStatus,userStatusList:e.userStatusList,checkedExpert:e.checkedExpert,tfReply:e.tfReply,searchInfo:e.searchInfo},null,8,["style","currentID","data","onHandleItem","isH5","displayOnlineStatus","userStatusList","checkedExpert","tfReply","searchInfo"])])])}var fd=n("82ec"),gd=n.n(fd);function Od(e,t,n,o,a,i){const r=Object(U["resolveComponent"])("LiteItem");return Object(U["openBlock"])(),Object(U["createElementBlock"])("ul",{class:Object(U["normalizeClass"])(["TUI-conversation-list",[e.isH5?"list-h5":""]]),ref:"list",onMousewheel:t[0]||(t[0]=(...t)=>e.scrollChange&&e.scrollChange(...t)),onScroll:t[1]||(t[1]=(...t)=>e.scrollChange&&e.scrollChange(...t)),style:{padding:"10px 10px 0",width:"calc(100% - 20px)",height:"calc(100% - 100px)",overflow:"auto"}},[(Object(U["openBlock"])(!0),Object(U["createElementBlock"])(U["Fragment"],null,Object(U["renderList"])(e.listData,(t,n)=>(Object(U["openBlock"])(),Object(U["createElementBlock"])(U["Fragment"],{key:"liteItem"+n},[null!==t&&void 0!==t&&t.children?(Object(U["openBlock"])(),Object(U["createElementBlock"])(U["Fragment"],{key:0},[t.flag===e.checkedExpert&&(e.tfReply&&0==t.children.tfReply&&"1"==t.children.sessionType||!e.tfReply)&&"expert"===e.hrefParams.isSpecialized&&!1===(null===t||void 0===t?void 0:t.isEnd)||"expert"!==e.hrefParams.isSpecialized?(Object(U["openBlock"])(),Object(U["createBlock"])(r,{key:0,isH5:e.isH5,currentID:e.currentID,conversation:t,toggleID:e.toggleID,handleConversation:{avator:e.data.handleItemAvator,name:e.data.handleItemName,showAt:e.data.handleShowAt,showMessage:e.data.handleShowMessage,time:e.data.handleItemTime,userID:e.data.handleItemUserID},displayOnlineStatus:e.displayOnlineStatus,userStatusList:e.userStatusList,onToggle:e.handleToggleListItem,onOpen:e.handleListItem,onHandle:e.handleItem,types:e.types},null,8,["isH5","currentID","conversation","toggleID","handleConversation","displayOnlineStatus","userStatusList","onToggle","onOpen","onHandle","types"])):Object(U["createCommentVNode"])("",!0)],64)):Object(U["createCommentVNode"])("",!0)],64))),128))],34)}var jd=n("5066"),yd=n.n(jd),Id=n("2757"),Cd=n.n(Id);const Ed={key:0,src:yd.a,alt:"",style:{position:"absolute",top:"0",left:"0"}},kd={style:{width:"60px",display:"flex","align-items":"center","justify-content":"center"}},wd={key:0,src:Bn.a,alt:"",style:{width:"36px",height:"36px"}},_d={key:1,src:Cd.a,alt:"",style:{width:"36px",height:"36px"}},Sd={style:{"font-size":"16px","white-space":"nowrap","text-overflow":"ellipsis",overflow:"hidden"}},Td={style:{width:"100px"}},Ld={style:{"text-align":"center",transform:"scale(0.8)","margin-top":"10px"}},Ad={key:0,class:"num_n"},Dd={style:{width:"60px",display:"flex","align-items":"center","justify-content":"center"}},Nd={style:{"font-size":"16px","white-space":"nowrap","text-overflow":"ellipsis",overflow:"hidden"}},Ud={style:{width:"100px"}},Bd={style:{"text-align":"center",transform:"scale(0.8)","margin-top":"10px"}},Md={key:0,class:"num_n"};function Vd(e,t,n,o,a,i){var r,s,l,c,d,u,p,m,b,h,v,f,g,O,j,y;const I=Object(U["resolveComponent"])("el-image");return Object(U["openBlock"])(),Object(U["createElementBlock"])("div",{style:{display:"flex",width:"100%","margin-bottom":"10px",padding:"10px 0","border-radius":"10px",cursor:"pointer",position:"relative"},class:Object(U["normalizeClass"])([e.currentID===e.conversation.conversationID?"bg_o":"bg_t"]),onClick:t[0]||(t[0]=Object(U["withModifiers"])(t=>e.handleListItem(e.conversation),["prevent","stop"]))},["1"===(null===(r=e.conversation)||void 0===r?void 0:r.children.sessionType)?(Object(U["openBlock"])(),Object(U["createElementBlock"])("img",Ed)):Object(U["createCommentVNode"])("",!0),"expert"===e.hrefParams.isSpecialized?(Object(U["openBlock"])(),Object(U["createElementBlock"])(U["Fragment"],{key:1},[Object(U["createElementVNode"])("div",kd,[Object(U["createVNode"])(I,{style:{width:"36px",height:"36px"},src:e.getSrc(null===(s=e.conversation)||void 0===s?void 0:s.children.toAccountHead)},{error:Object(U["withCtx"])(()=>{var t;return[Object(U["createElementVNode"])("div",null,["男"===(null===(t=e.conversation)||void 0===t||null===(t=t.children)||void 0===t?void 0:t.memberSex)?(Object(U["openBlock"])(),Object(U["createElementBlock"])("img",wd)):(Object(U["openBlock"])(),Object(U["createElementBlock"])("img",_d))])]}),_:1},8,["src"])]),Object(U["createElementVNode"])("div",{style:Object(U["normalizeStyle"])([{width:"calc(100% - 160px)"},{color:e.currentID===e.conversation.conversationID?"#ffffff":"#000000"}])},[Object(U["createElementVNode"])("div",Sd,Object(U["toDisplayString"])(e.preG(`${e.conversation.children.toAccountName||""}-${e.conversation.children.memberSex||""}-${e.conversation.children.memberAge||""}`)),1),Object(U["createElementVNode"])("div",{style:Object(U["normalizeStyle"])([{color:"#666666","font-size":"16px","white-space":"nowrap","text-overflow":"ellipsis",overflow:"hidden"},{color:e.currentID===e.conversation.conversationID?"#ffffff":"#666666"}])},Object(U["toDisplayString"])(null===(l=e.handleConversation)||void 0===l?void 0:l.showMessage(e.conversation).substring((null===(c=e.handleConversation)||void 0===c?void 0:T()(d=c.showMessage(e.conversation)).call(d,":"))+1)),5)],4),Object(U["createElementVNode"])("div",Td,[Object(U["createElementVNode"])("div",{style:Object(U["normalizeStyle"])([{"text-align":"center",color:"#999999"},{color:e.currentID===e.conversation.conversationID?"#ffffff":"#999999"}])},Object(U["toDisplayString"])(null===(u=e.handleConversation)||void 0===u?void 0:u.time(null===(p=e.conversation)||void 0===p||null===(p=p.lastMessage)||void 0===p?void 0:p.lastTime)),5),Object(U["createElementVNode"])("div",Ld,[e.conversation.unreadCount>0&&"AcceptNotNotify"!==e.conversation.messageRemindType?(Object(U["openBlock"])(),Object(U["createElementBlock"])("span",Ad,Object(U["toDisplayString"])(e.conversation.unreadCount>99?"99+":e.conversation.unreadCount),1)):Object(U["createCommentVNode"])("",!0)])])],64)):(Object(U["openBlock"])(),Object(U["createElementBlock"])(U["Fragment"],{key:2},[Object(U["createElementVNode"])("div",Dd,[Object(U["createVNode"])(I,{style:{width:"36px",height:"36px"},src:e.getSrc(null===(m=e.conversation)||void 0===m||null===(m=m.children)||void 0===m?void 0:m.avatar)},{error:Object(U["withCtx"])(()=>[...t[1]||(t[1]=[Object(U["createElementVNode"])("div",null,[Object(U["createElementVNode"])("img",{src:Bn.a,alt:"",style:{width:"36px",height:"36px"}})],-1)])]),_:1},8,["src"])]),Object(U["createElementVNode"])("div",{style:Object(U["normalizeStyle"])([{width:"calc(100% - 160px)"},{color:e.currentID===e.conversation.conversationID?"#ffffff":"#000000"}])},[Object(U["createElementVNode"])("div",Nd,Object(U["toDisplayString"])(`${(null===(b=e.conversation)||void 0===b||null===(b=b.children)||void 0===b?void 0:b.userName)||""}-${(null===(h=e.conversation)||void 0===h||null===(h=h.children)||void 0===h?void 0:h.sex_dictText)||""}-${(null===(v=e.conversation)||void 0===v||null===(v=v.children)||void 0===v?void 0:v.age)||""}`),1),Object(U["createElementVNode"])("div",{style:Object(U["normalizeStyle"])([{color:"#666666","font-size":"16px","white-space":"nowrap","text-overflow":"ellipsis",overflow:"hidden"},{color:e.currentID===e.conversation.conversationID?"#ffffff":"#666666"}])},Object(U["toDisplayString"])(null===(f=e.handleConversation)||void 0===f?void 0:f.showMessage(e.conversation).substring((null===(g=e.handleConversation)||void 0===g?void 0:T()(O=g.showMessage(e.conversation)).call(O,":"))+1)),5)],4),Object(U["createElementVNode"])("div",Ud,[Object(U["createElementVNode"])("div",{style:Object(U["normalizeStyle"])([{"text-align":"center",color:"#999999"},{color:e.currentID===e.conversation.conversationID?"#ffffff":"#999999"}])},Object(U["toDisplayString"])(null===(j=e.handleConversation)||void 0===j?void 0:j.time(null===(y=e.conversation)||void 0===y||null===(y=y.lastMessage)||void 0===y?void 0:y.lastTime)),5),Object(U["createElementVNode"])("div",Bd,[e.conversation.unreadCount>0&&"AcceptNotNotify"!==e.conversation.messageRemindType?(Object(U["openBlock"])(),Object(U["createElementBlock"])("span",Md,Object(U["toDisplayString"])(e.conversation.unreadCount>99?"99+":e.conversation.unreadCount),1)):Object(U["createCommentVNode"])("",!0)])])],64))],2)}var Rd=n("c1df"),xd=n.n(Rd);const Pd=Object(U["defineComponent"])({props:{conversation:{type:Object,default:()=>({})},handleConversation:{type:Object,default:()=>({})},currentID:{type:String,default:()=>""},toggleID:{type:String,default:()=>""},isH5:{type:Boolean,default:()=>!1},displayOnlineStatus:{type:Boolean,default:()=>!1},userStatusList:{type:zi.a,default:()=>new zi.a},types:{type:Object,default:()=>({})}},setup(e,t){const n=Object(U["reactive"])({conversation:{},currentID:"",currentConversation:{},toggle:!1,currentuserID:"",conversationType:"",loop:0,displayOnlineStatus:!1,userStatusList:new zi.a});function o(e){e&&T()(e).call(e,",")===e.length-1&&(e=e.substring(0,e.length-1));const t=Ce["a"].urlF;return e?`${t.replace("lol","://")}/file/show/${e}`:""}Ce["a"].hasOwnProperty("sessionId")&&Object(U["nextTick"])(()=>{n.currentID="GROUP"+Ce["a"].sessionId});const a=Object(U["ref"])(),i=Object(U["ref"])();Object(hn["onClickOutside"])(i,()=>{!0===n.toggle&&t.emit("toggle","")}),Object(U["watchEffect"])(()=>{n.conversation=e.conversation,n.currentID=e.currentID,console.log(n.currentID),n.toggle=!1,n.displayOnlineStatus=e.displayOnlineStatus,n.userStatusList=e.userStatusList,e.toggleID===e.conversation.conversationID&&(n.toggle=!0)}),Object(U["watch"])(()=>n.toggle,e=>{e&&Object(U["nextTick"])(()=>{var e;const t=Object(hn["useElementBounding"])(a),n=null===i||void 0===i||null===(e=i.value)||void 0===e?void 0:e.offsetParent,o=Object(hn["useElementBounding"])(n);t.top.value-o.top.value-t.height.value-30>0&&(a.value.style.top="auto",a.value.style.bottom="30px")})});const r=e=>xd()(e).format("HH:mm"),s=e=>{t.emit("open",e),t.emit("toggle","")},l=e=>{var o;null!==e&&void 0!==e&&null!==(o=e.target)&&void 0!==o&&o.oncontextmenu&&(e.target.oncontextmenu=function(){return!1}),t.emit("toggle",n.conversation.conversationID)},c=e=>{t.emit("handle",{name:e,conversation:n.conversation}),t.emit("toggle","")},d=()=>{var t;return!(!n.displayOnlineStatus||(null===(t=n.conversation)||void 0===t?void 0:t.type)!==e.types.CONV_C2C)};function u(e){return e=e.replace(/--/g,"-"),0===T()(e).call(e,"-")&&(e=e.substring(1)),-1!==Ie()(e).call(e,"-")&&(e=e.substring(0,Ie()(e).call(e,"-"))),e}return{preG:u,...Object(U["toRefs"])(n),handleListItem:s,handleItem:c,dialog:a,content:i,toggleDialog:l,showUserOnlineStatus:d,getTime:r,hrefParams:Ce["a"],getSrc:o}}});var Gd=Pd;n("9151");const Fd=se()(Gd,[["render",Vd],["__scopeId","data-v-4ee7130d"]]);var Hd=Fd;const zd=Object(U["defineComponent"])({props:{data:{type:Object,default:()=>({})},currentID:{type:String,default:()=>""},isH5:{type:Boolean,default:()=>!1},displayOnlineStatus:{type:Boolean,default:()=>!1},userStatusList:{type:zi.a,default:()=>new zi.a},checkedExpert:{type:Boolean,default:()=>!1},tfReply:{type:Boolean,default:()=>!1},searchInfo:{type:String,default:()=>""}},components:{LiteItem:Hd},setup(e,t){const n=null===zd||void 0===zd?void 0:zd.TUIServer,o=Object(U["reactive"])({data:{},currentID:"",toggleID:"",displayOnlineStatus:!1,userStatusList:new zi.a,types:n.TUICore.TIM.TYPES,listData:[]});Object(U["watchEffect"])(()=>{var t,n,a;(o.data=e.data,console.log(e.data),o.listData=y()(t=e.data.list).call(t,t=>{var n,o;return(null===(n=t.children)||void 0===n?void 0:n.toAccountName)&&-1!==T()(o=t.children.toAccountName).call(o,e.searchInfo)||!e.searchInfo}),"expert"===Ce["a"].isSpecialized)?o.listData=y()(n=e.data.list).call(n,t=>{var n,o;return(null===(n=t.children)||void 0===n?void 0:n.toAccountName)&&-1!==T()(o=t.children.toAccountName).call(o,e.searchInfo)||!e.searchInfo}):o.listData=y()(a=e.data.list).call(a,t=>{var n,o;return(null===(n=t.children)||void 0===n?void 0:n.userName)&&-1!==T()(o=t.children.userName).call(o,e.searchInfo)||!e.searchInfo});o.currentID=e.currentID,o.displayOnlineStatus=e.displayOnlineStatus,o.userStatusList=e.userStatusList}),Object(U["watch"])(()=>e.userStatusList,()=>{o.userStatusList=e.userStatusList},{deep:!0}),Object(U["watch"])(()=>e.searchInfo,e=>{if("expert"===Ce["a"].isSpecialized){let t=JSON.parse(h()(o.data.list));o.listData=y()(t).call(t,t=>{var n,o;return(null===(n=t.children)||void 0===n?void 0:n.toAccountName)&&-1!==T()(o=t.children.toAccountName).call(o,e)||!e})}else{let t=JSON.parse(h()(o.data.list));o.listData=y()(t).call(t,t=>{var n,o;return(null===(n=t.children)||void 0===n?void 0:n.userName)&&-1!==T()(o=t.children.userName).call(o,e)||!e})}});const a=e=>{var n;Ta["a"].commit("setOrderId",e.children.orderId),Ta["a"].commit("setSessionId",e.children.sessionId),Ta["a"].commit("setConsultInfo",{consultType:e.type,consultStatus:null===e||void 0===e||null===(n=e.children)||void 0===n?void 0:n.contentStatus});try{window.parent.postMessage(h()({code:"sessionChanged",orderId:e.children.orderId,sessionId:e.children.sessionId}),"*")}catch(r){console.log(r)}const o=e.children;"expert"===Ce["a"].isSpecialized?Ta["a"].commit("setTitleName",i(`${(null===o||void 0===o?void 0:o.toAccountName)||""}-${(null===o||void 0===o?void 0:o.memberSex)||""}-${(null===o||void 0===o?void 0:o.memberAge)||""}-${(null===o||void 0===o?void 0:o.orgCode)||""}`)):Ta["a"].commit("setTitleName",i(`${(null===o||void 0===o?void 0:o.userName)||""}-${(null===o||void 0===o?void 0:o.sex_dictText)||""}-${(null===o||void 0===o?void 0:o.age)||""}-${(null===o||void 0===o?void 0:o.depart)||""}`));const a=(null===o||void 0===o?void 0:o.doctorInfo)||{};Ta["a"].commit("setDoctorName",null!==o&&void 0!==o&&o.doctorInfo?i(`${(null===a||void 0===a?void 0:a.doctorName)||""}-${(null===a||void 0===a?void 0:a.doctorTitle_dictText)||""}-${(null===a||void 0===a?void 0:a.departmentName)||""}-${(null===a||void 0===a?void 0:a.resourceName)||""}`):""),t.emit("handleItem",e)};function i(e){return e=e.replace(/--/g,"-"),0===T()(e).call(e,"-")&&(e=e.substring(1)),"-"===e.substring(e.length-1)&&(e=e.substring(0,e.length-1)),e}const r=e=>{const{name:t,conversation:n}=e;switch(Zt.getInstance().reportEvent({name:"conversationOptions",ext1:"conversationOptions"}),t){case"delete":s(n);break;case"ispinned":l(t,n);break;case"dispinned":l(t,n);break;case"mute":c(t,n);break;case"notMute":c(t,n);break}},s=e=>{n.deleteConversation(e.conversationID).then(e=>{Zt.getInstance().reportEvent({name:"conversationOptions",ext1:"conversationDelete"});const{conversationID:t}=e.data,{conversation:o}=n.TUICore.getStore().TUIChat;o.conversationID===t&&(n.TUICore.getStore().TUIChat.conversation={conversationID:""})})},l=(e,t)=>{const o={conversationID:t.conversationID,isPinned:!0};"dispinned"===e&&(o.isPinned=!1),console.log("dispinned",o),n.pinConversation(o)},c=(e,t)=>{const o={messageRemindType:n.TUICore.TIM.TYPES.MSG_REMIND_ACPT_NOT_NOTE};t.type===n.TUICore.TIM.TYPES.CONV_C2C?o.userIDList=[t.userProfile.userID]:t.type===n.TUICore.TIM.TYPES.CONV_GROUP&&(o.groupID=t.groupProfile.groupID),"notMute"===e&&(o.messageRemindType=n.TUICore.TIM.TYPES.MSG_REMIND_ACPT_AND_NOTE),n.muteConversation(o)},d=e=>{o.toggleID=e},u=()=>{o.toggleID&&(o.toggleID="")};return{...Object(U["toRefs"])(o),handleListItem:a,handleItem:r,handleToggleListItem:d,scrollChange:u,hrefParams:Ce["a"]}}});var Kd=zd;n("6b89");const Yd=se()(Kd,[["render",Od],["__scopeId","data-v-992abc7e"]]);var Wd=Yd,$d=Wd,qd=n("d35b"),Qd=n.n(qd);const Xd=["id"],Zd={class:"left"},Jd=["src"],eu={key:1,class:"num"},tu={key:2,class:"num-notify"},nu={class:"content"},ou={class:"content-header"},au={class:"name"},iu={class:"middle-box"},ru={key:0,class:"middle-box-at"},su={class:"content-footer"},lu={class:"time"},cu={key:0,class:"mute-icon",src:Qd.a},du={key:0,class:"dialog dialog-item",ref:"dialog"};function uu(e,t,n,o,a,i){var r,s,l,c,d,u,p;const m=Object(U["resolveDirective"])("TUILongPress");return Object(U["openBlock"])(),Object(U["createElementBlock"])("li",{ref:"content",class:Object(U["normalizeClass"])(["TUI-conversation-content",[e.currentID===e.conversation.conversationID&&"selected",e.conversation.isPinned&&"pinned",e.isH5?"list-item-h5":""]]),id:e.conversation.conversationID},[Object(U["withDirectives"])((Object(U["openBlock"])(),Object(U["createElementBlock"])("div",{class:"TUI-conversation-item",onClick:t[0]||(t[0]=Object(U["withModifiers"])(t=>e.handleListItem(e.conversation),["prevent","stop"])),onContextmenu:t[1]||(t[1]=Object(U["withModifiers"])((...t)=>e.toggleDialog&&e.toggleDialog(...t),["prevent","right"]))},[Object(U["createElementVNode"])("aside",Zd,[Object(U["createElementVNode"])("img",{class:"avatar",src:null===(r=e.handleConversation)||void 0===r?void 0:r.avator(e.conversation)},null,8,Jd),e.showUserOnlineStatus()?(Object(U["openBlock"])(),Object(U["createElementBlock"])("div",{key:0,class:Object(U["normalizeClass"])(["online-status",1===(null===(s=e.userStatusList)||void 0===s||null===(s=s.get(null===(l=e.conversation)||void 0===l||null===(l=l.userProfile)||void 0===l?void 0:l.userID))||void 0===s?void 0:s.statusType)?"online-status-online":"online-status-offline"])},null,2)):Object(U["createCommentVNode"])("",!0),e.conversation.unreadCount>0&&"AcceptNotNotify"!==e.conversation.messageRemindType?(Object(U["openBlock"])(),Object(U["createElementBlock"])("span",eu,Object(U["toDisplayString"])(e.conversation.unreadCount>99?"99+":e.conversation.unreadCount),1)):Object(U["createCommentVNode"])("",!0),e.conversation.unreadCount>0&&"AcceptNotNotify"===e.conversation.messageRemindType?(Object(U["openBlock"])(),Object(U["createElementBlock"])("span",tu)):Object(U["createCommentVNode"])("",!0)]),Object(U["createElementVNode"])("div",nu,[Object(U["createElementVNode"])("div",ou,[Object(U["createElementVNode"])("label",null,[Object(U["createElementVNode"])("p",au,Object(U["toDisplayString"])(null===(c=e.handleConversation)||void 0===c?void 0:c.name(e.conversation)),1)]),Object(U["createElementVNode"])("div",iu,["GROUP"===e.conversation.type&&e.conversation.groupAtInfoList.length>0?(Object(U["openBlock"])(),Object(U["createElementBlock"])("span",ru,Object(U["toDisplayString"])(null===(d=e.handleConversation)||void 0===d?void 0:d.showAt(e.conversation)),1)):Object(U["createCommentVNode"])("",!0),Object(U["createElementVNode"])("p",null,Object(U["toDisplayString"])(null===(u=e.handleConversation)||void 0===u?void 0:u.showMessage(e.conversation)),1)])]),Object(U["createElementVNode"])("div",su,[Object(U["createElementVNode"])("span",lu,Object(U["toDisplayString"])(null===(p=e.handleConversation)||void 0===p?void 0:p.time(e.conversation.lastMessage.lastTime)),1),"AcceptNotNotify"===e.conversation.messageRemindType?(Object(U["openBlock"])(),Object(U["createElementBlock"])("img",cu)):Object(U["createCommentVNode"])("",!0),t[7]||(t[7]=Object(U["createElementVNode"])("i",null,null,-1))])])],32)),[[m,e.toggleDialog,void 0,{self:!0}]]),e.toggle?(Object(U["openBlock"])(),Object(U["createElementBlock"])("div",du,[Object(U["createElementVNode"])("p",{class:"conversation-options",onClick:t[2]||(t[2]=Object(U["withModifiers"])(t=>e.handleItem("delete"),["stop"]))},Object(U["toDisplayString"])(e.$t("TUIConversation.删除会话")),1),e.conversation.isPinned?Object(U["createCommentVNode"])("",!0):(Object(U["openBlock"])(),Object(U["createElementBlock"])("p",{key:0,class:"conversation-options",onClick:t[3]||(t[3]=Object(U["withModifiers"])(t=>e.handleItem("ispinned"),["stop"]))},Object(U["toDisplayString"])(e.$t("TUIConversation.置顶会话")),1)),e.conversation.isPinned?(Object(U["openBlock"])(),Object(U["createElementBlock"])("p",{key:1,class:"conversation-options",onClick:t[4]||(t[4]=Object(U["withModifiers"])(t=>e.handleItem("dispinned"),["stop"]))},Object(U["toDisplayString"])(e.$t("TUIConversation.取消置顶")),1)):Object(U["createCommentVNode"])("",!0),""===e.conversation.messageRemindType||"AcceptAndNotify"===e.conversation.messageRemindType?(Object(U["openBlock"])(),Object(U["createElementBlock"])("p",{key:2,class:"conversation-options",onClick:t[5]||(t[5]=Object(U["withModifiers"])(t=>e.handleItem("mute"),["stop"]))},Object(U["toDisplayString"])(e.$t("TUIConversation.消息免打扰")),1)):Object(U["createCommentVNode"])("",!0),"AcceptNotNotify"===e.conversation.messageRemindType?(Object(U["openBlock"])(),Object(U["createElementBlock"])("p",{key:3,class:"conversation-options",onClick:t[6]||(t[6]=Object(U["withModifiers"])(t=>e.handleItem("notMute"),["stop"]))},Object(U["toDisplayString"])(e.$t("TUIConversation.取消免打扰")),1)):Object(U["createCommentVNode"])("",!0)],512)):Object(U["createCommentVNode"])("",!0)],10,Xd)}const pu=Object(U["defineComponent"])({props:{conversation:{type:Object,default:()=>({})},handleConversation:{type:Object,default:()=>({})},currentID:{type:String,default:()=>""},toggleID:{type:String,default:()=>""},isH5:{type:Boolean,default:()=>!1},displayOnlineStatus:{type:Boolean,default:()=>!1},userStatusList:{type:zi.a,default:()=>new zi.a},types:{type:Object,default:()=>({})}},setup(e,t){const n=Object(U["reactive"])({conversation:{},currentID:"",currentConversation:{},toggle:!1,currentuserID:"",conversationType:"",loop:0,displayOnlineStatus:!1,userStatusList:new zi.a});Ce["a"].hasOwnProperty("sessionId")&&Object(U["nextTick"])(()=>{n.currentID="GROUP"+Ce["a"].sessionId});const o=Object(U["ref"])(),a=Object(U["ref"])();Object(hn["onClickOutside"])(a,()=>{!0===n.toggle&&t.emit("toggle","")}),Object(U["watchEffect"])(()=>{n.conversation=e.conversation,n.currentID=e.currentID,n.toggle=!1,n.displayOnlineStatus=e.displayOnlineStatus,n.userStatusList=e.userStatusList,e.toggleID===e.conversation.conversationID&&(n.toggle=!0)}),Object(U["watch"])(()=>n.toggle,e=>{e&&Object(U["nextTick"])(()=>{var e;const t=Object(hn["useElementBounding"])(o),n=null===a||void 0===a||null===(e=a.value)||void 0===e?void 0:e.offsetParent,i=Object(hn["useElementBounding"])(n);t.top.value-i.top.value-t.height.value-30>0&&(o.value.style.top="auto",o.value.style.bottom="30px")})});const i=e=>{t.emit("open",e),t.emit("toggle","")},r=e=>{var o;null!==e&&void 0!==e&&null!==(o=e.target)&&void 0!==o&&o.oncontextmenu&&(e.target.oncontextmenu=function(){return!1}),t.emit("toggle",n.conversation.conversationID)},s=e=>{t.emit("handle",{name:e,conversation:n.conversation}),t.emit("toggle","")},l=()=>{var t;return!(!n.displayOnlineStatus||(null===(t=n.conversation)||void 0===t?void 0:t.type)!==e.types.CONV_C2C)};return{...Object(U["toRefs"])(n),handleListItem:i,handleItem:s,dialog:o,content:a,toggleDialog:r,showUserOnlineStatus:l}}});var mu=pu;n("77d5");const bu=se()(mu,[["render",uu],["__scopeId","data-v-102ec99c"]]);var hu=bu,vu=hu,fu=n("409e"),gu=n.n(fu),Ou=n("14ed"),ju=n.n(Ou);const yu=Object(U["defineComponent"])({name:"TUIConversation",components:{LiteItem:vu,TUIConversationList:$d},props:{displayOnlineStatus:{type:Boolean,default:!1}},setup(e,t){const n=null===yu||void 0===yu?void 0:yu.TUIServer,o=Object(U["reactive"])({currentConversationID:"",conversationData:{list:[],expertListDataO:[],expertListDataT:[],listData:[],handleItemAvator:e=>Object(D["f"])(e),handleItemName:e=>Object(D["m"])(e),handleShowAt:e=>Object(D["d"])(e),handleShowMessage:e=>Object(D["p"])(e),handleItemTime:e=>e&&e>0?Object(vn["a"])(1e3*e):""},listLength:0,initLength:0,userIDList:[],netWork:"",env:n.TUICore.TUIEnv,displayOnlineStatus:!1,userStatusList:new zi.a,title:"expert"!==Ce["a"].isSpecialized?"正在应急":"正在咨询",searchInfo:"",initListData:[],checkedExpert:!1,tfReply:!1,playStatus:!0});function i(){console.log("body"),r(!0),o.playStatus=!1,document.body.removeEventListener("click",i)}function r(e){const t=new Audio("13203.wav");t.muted=e,t.play()}async function s(){"expert"===Ce["a"].isSpecialized?await m():await d()}u()(n).call(n,o),Object(U["watch"])(()=>o.listLength,async e=>{e!==o.initLength&&("expert"===Ce["a"].isSpecialized?await m():await d()),o.initLength=e},{immediate:!0}),$d.TUIServer=n,n.TUICore.tim.on(n.TUICore.TIM.EVENT.GROUP_LIST_UPDATED,s),document.body.addEventListener("click",i),n.TUICore.tim.on(n.TUICore.TIM.EVENT.MESSAGE_RECEIVED,()=>{window.parent.postMessage(h()({code:"newMessage"}),"*"),r(o.playStatus)}),Object(U["watch"])(()=>o.currentConversationID,e=>{t.emit("current",e),Ce["a"].hasOwnProperty("sessionId")&&null!==Ce["a"]&&void 0!==Ce["a"]&&Ce["a"].sessionId&&Object(U["nextTick"])(()=>{for(const e of o.conversationData.list)if(e["conversationID"]===e["type"]+Ce["a"].sessionId)return c(e)})},{deep:!0}),Object(U["watch"])(()=>e.displayOnlineStatus,async(e,t)=>{e!==t&&(o.displayOnlineStatus=e,n.TUICore.TUIServer.TUIContact.handleUserStatus(o.displayOnlineStatus,[...o.userIDList]))},{immediate:!0}),Object(U["watch"])(()=>[...o.userIDList],async(e,t)=>{Object(vn["d"])(e,t)||n.TUICore.TUIServer.TUIContact.handleUserStatus(o.displayOnlineStatus,[...o.userIDList])},{deep:!0});const l=Object(U["computed"])(()=>{const e=o.netWork===n.TUICore.TIM.TYPES.NET_STATE_DISCONNECTED,t=o.netWork===n.TUICore.TIM.TYPES.NET_STATE_CONNECTING;return e||t}),c=e=>{n.handleCurrentConversation(e)};async function d(){var e;let t=[];a()(e=o.conversationData.list).call(e,e=>{t.push(null===e||void 0===e?void 0:e.conversationID.replace("GROUP","").toString())}),await Object(La["b"])("/health-emergency/api/emergency/order/listSession",{sessions:t,type:"false"===Ce["a"].isSpecialized?"0":"1"}).then(e=>{200===e.code?o.conversationData.listData=e.result:t.length>0&&Object(Zr["a"])({message:e.message,type:"warning"})}).catch(e=>{console.log(e)}),p()}function p(){var e,t;o.conversationData.list=gd()(e=o.conversationData.list).call(e,(e,t)=>{var n,o;return new Date(1e3*(null===(n=t.lastMessage)||void 0===n?void 0:n.lastTime)).getTime()-new Date(1e3*(null===(o=e.lastMessage)||void 0===o?void 0:o.lastTime)).getTime()}),o.conversationData.list.length>0&&a()(t=o.conversationData.list).call(t,e=>{var t;o.conversationData.listData.length>0&&a()(t=o.conversationData.listData).call(t,t=>{e.conversationID.replace("C2C","").replace("GROUP","")===t.sessionId&&(e["children"]=t)})})}async function m(){var e;let t=[];a()(e=o.conversationData.list).call(e,e=>{var n;-1!==(null===e||void 0===e?void 0:T()(n=e.conversationID).call(n,"GROUP"))&&t.push(null===e||void 0===e?void 0:e.conversationID.replace("GROUP",""))}),await Object(La["b"])("/health-consultation/consultation/conSession/companySessionList",{imIds:t}).then(e=>{200===e.code&&(o.conversationData.expertListDataO=e.result)}).catch(e=>{console.log(e)}),await Object(La["b"])("/health-consultation/consultation/conSession/professorSessionList",{imIds:t}).then(e=>{200===e.code&&(o.conversationData.expertListDataT=e.result)}).catch(e=>{console.log(e)}),b()}function b(){var e;o.conversationData.list.length>0&&a()(e=o.conversationData.list).call(e,e=>{var t,n;o.conversationData.expertListDataO.length>0&&a()(t=o.conversationData.expertListDataO).call(t,t=>{t.imId?e.conversationID.replace("C2C","").replace("GROUP","")===t.imId&&(e["isEnd"]=!1,e["children"]=t,e["flag"]=!1):e.conversationID.replace("C2C","").replace("GROUP","")===t.fromAccount&&(e["isEnd"]=!1,e["children"]=t,e["flag"]=!1)}),o.conversationData.expertListDataT.length>0&&a()(n=o.conversationData.expertListDataT).call(n,t=>{t.imId?e.conversationID.replace("C2C","").replace("GROUP","")===t.imId&&(e["isEnd"]=!1,e["children"]=t,e["flag"]=!0):e.conversationID.replace("C2C","").replace("GROUP","")===t.fromAccount&&(e["isEnd"]=!1,e["children"]=t,e["flag"]=!0)})})}Ce["a"].hasOwnProperty("sessionId")&&null!==Ce["a"]&&void 0!==Ce["a"]&&Ce["a"].sessionId&&Object(U["nextTick"])(()=>{for(const e of o.conversationData.list)if(e["conversationID"]===e["type"]+Ce["a"].sessionId)return c(e)}),Ce["a"].hasOwnProperty("checkedExpert")&&null!==Ce["a"]&&void 0!==Ce["a"]&&Ce["a"].checkedExpert&&Object(U["nextTick"])(()=>{o.checkedExpert="0"===(null===Ce["a"]||void 0===Ce["a"]?void 0:Ce["a"].checkedExpert)}),Qr["a"].on("endConsult",e=>{var t;o.conversationData.list.length>0&&a()(t=o.conversationData.list).call(t,t=>{if(e===t["conversationID"])return t["isEnd"]=!0,void(t["conversationID"]="")})});const v=e=>{e!==o.checkedExpert&&(o.checkedExpert=e,t.emit("checkedExpert",o.checkedExpert))},f=()=>{t.emit("changeReply",o.tfReply)};function g(){console.log("change"),r(!0),o.playStatus=!o.playStatus}return{...Object(U["toRefs"])(o),handleCurrentConversation:c,isNetwork:l,clickExpert:v,changeReply:f,hrefParams:Ce["a"],playImage:gu.a,muteImage:ju.a,changePlayStatus:g}}});var Iu=yu;n("2857"),n("dce0");const Cu=se()(Iu,[["render",vd],["__scopeId","data-v-c6fe208e"]]);var Eu=Cu;const ku=e=>{Eu.TUIServer=_u.server,e.component(_u.name,Eu)},wu=e=>(_u.server=new id(e),e.component(_u.name,_u),_u),_u={name:"TUIConversation",component:Eu,server:id,install:ku,plugin:wu};var Su=_u;const Tu={profile:{}};class Lu extends A{constructor(e){var t;super(),Object(c["a"])(this,"TUICore",void 0),Object(c["a"])(this,"store",void 0),Object(c["a"])(this,"currentStore",{}),this.TUICore=e,this.bindTIMEvent(),this.store=e.setComponentStore("TUIProfile",Tu,u()(t=this.updateStore).call(t,this)),this.getMyProfile()}destroyed(){this.unbindTIMEvent()}updateStore(e,t){this.currentStore.profile=JSON.parse(h()(e.profile))}bindTIMEvent(){this.TUICore.tim.on(this.TUICore.TIM.EVENT.PROFILE_UPDATED,this.handleProfileUpdated,this)}unbindTIMEvent(){this.TUICore.tim.off(this.TUICore.TIM.EVENT.PROFILE_UPDATED,this.handleProfileUpdated)}handleProfileUpdated(e){var t;l()(t=e.data).call(t,e=>(e.userID===this.store.profile.userID&&(this.store.profile={},this.store.profile=e),e))}handlePromiseCallback(e){return new f.a((t,n)=>{const o={TUIName:"TUIProfile",callback:()=>{e&&e(t,n)}};this.TUICore.setAwaitFunc(o.TUIName,o.callback)})}async getMyProfile(){return this.handlePromiseCallback(async(e,t)=>{try{const t=await this.TUICore.tim.getMyProfile();this.store.profile=t.data,this.currentStore.profile=JSON.parse(h()(this.store.profile)),e(t)}catch(n){t(n)}})}async getUserProfile(e){return this.handlePromiseCallback(async(t,n)=>{try{const n=await this.TUICore.tim.getUserProfile({userIDList:e});t(n)}catch(o){n(o)}})}async updateMyProfile(e){return this.handlePromiseCallback(async(t,n)=>{try{const n=await this.TUICore.tim.updateMyProfile(e);this.store.profile=n.data,t(n)}catch(o){n(o)}})}async bind(e){return this.currentStore=e,this.getMyProfile(),this.currentStore}setEdit(e){return this.currentStore.isEdit=e,this.currentStore.isEdit}}const Au={class:"profile-header"},Du={class:"profile-avatar"},Nu=["src"],Uu={class:"profile-main"},Bu={class:"profile-main-item"},Mu={class:"profile-main-name"},Vu={key:0,class:"gender"},Ru={class:"profile-main-item"},xu={class:"profile-main-label"},Pu={key:0,class:"profile-main-item"},Gu={class:"profile-main-label"},Fu={key:0,class:"profile-main"},Hu={class:"profile-main-item"},zu={class:"profile-main-label"},Ku={class:"profile-main-item"},Yu={class:"profile-main-label"},Wu={key:1,class:"icon icon-right"};function $u(e,t,n,o,a,i){const r=Object(U["resolveComponent"])("TUIProfileEdit");return Object(U["openBlock"])(),Object(U["createElementBlock"])("div",{class:Object(U["normalizeClass"])(["TUI-profile",[e.env.isH5?"TUI-profile-h5":""]])},[e.isEdit?(Object(U["openBlock"])(),Object(U["createBlock"])(r,{key:1,userInfo:e.profile,isH5:e.env.isH5,onSubmit:e.submit,onCancel:e.cancel},null,8,["userInfo","isH5","onSubmit","onCancel"])):(Object(U["openBlock"])(),Object(U["createElementBlock"])("div",{key:0,class:"profile",onClick:t[0]||(t[0]=(...t)=>e.toggleEdit&&e.toggleEdit(...t))},[Object(U["createElementVNode"])("header",Au,[Object(U["createElementVNode"])("aside",Du,[Object(U["createElementVNode"])("img",{class:"avatar",src:e.profile.avatar?e.profile.avatar:"https://web.sdk.qcloud.com/component/TUIKit/assets/avatar_21.png",onerror:"this.src='https://web.sdk.qcloud.com/component/TUIKit/assets/avatar_21.png'"},null,8,Nu)]),Object(U["createElementVNode"])("ul",Uu,[Object(U["createElementVNode"])("li",Bu,[Object(U["createElementVNode"])("h1",Mu,Object(U["toDisplayString"])(e.profile.nick||"-"),1),e.env.isH5?Object(U["createCommentVNode"])("",!0):(Object(U["openBlock"])(),Object(U["createElementBlock"])("p",Vu,Object(U["toDisplayString"])(e.profile.gender?e.$t("TUIProfile."+e.genderLabel[e.profile.gender]):""),1))]),Object(U["createElementVNode"])("li",Ru,[Object(U["createElementVNode"])("label",xu,Object(U["toDisplayString"])(e.$t("TUIProfile.用户ID"))+":",1),Object(U["createElementVNode"])("span",null,Object(U["toDisplayString"])(e.profile.userID),1)]),e.env.isH5?(Object(U["openBlock"])(),Object(U["createElementBlock"])("li",Pu,[Object(U["createElementVNode"])("label",Gu,Object(U["toDisplayString"])(e.$t("TUIProfile.个性签名"))+":",1),Object(U["createElementVNode"])("span",null,Object(U["toDisplayString"])(e.profile.selfSignature||e.$t("TUIProfile.暂未设置")),1)])):Object(U["createCommentVNode"])("",!0)])]),e.env.isH5?Object(U["createCommentVNode"])("",!0):(Object(U["openBlock"])(),Object(U["createElementBlock"])("ul",Fu,[Object(U["createElementVNode"])("li",Hu,[Object(U["createElementVNode"])("label",zu,Object(U["toDisplayString"])(e.$t("TUIProfile.个性签名")),1),Object(U["createElementVNode"])("span",null,Object(U["toDisplayString"])(e.profile.selfSignature||e.$t("TUIProfile.暂未设置")),1)]),Object(U["createElementVNode"])("li",Ku,[Object(U["createElementVNode"])("label",Yu,Object(U["toDisplayString"])(e.$t("TUIProfile.出生年月")),1),Object(U["createElementVNode"])("span",null,Object(U["toDisplayString"])(e.profile.birthday?e.profile.birthday:e.$t("TUIProfile.暂未设置")),1)])])),e.env.isH5?(Object(U["openBlock"])(),Object(U["createElementBlock"])("i",Wu)):Object(U["createCommentVNode"])("",!0)]))],2)}const qu={class:"edit-header"},Qu={class:"edit-header-title"},Xu={class:"edit-list"},Zu={class:"edit-list-item space-top"},Ju={key:0},ep=["src"],tp={key:1,class:"avatar-list"},np=["onClick"],op=["src"],ap={key:0,class:"icon icon-right"},ip={class:"edit-list-item space-top"},rp={key:0},sp={key:0,class:"icon icon-right"},lp={class:"edit-list-item"},cp={class:"edit-list-item-content"},dp={class:"edit-list-item space-top"},up={key:0},pp={key:0,class:"icon icon-right"},mp={class:"edit-list-item"},bp={key:0},hp={key:1,class:"gender-list"},vp=["onClick"],fp={class:"name"},gp={key:0,class:"icon icon-right"},Op={class:"edit-list-item"},jp={key:0},yp={key:0,class:"icon icon-right"},Ip={key:0,class:"edit-footer"},Cp={class:"mask-main"},Ep={class:"edit-h5-header"},kp={class:"edit-h5-main"},wp={key:0,class:"list"},_p=["onClick"],Sp=["src"],Tp={key:1,class:"input"},Lp=["placeholder"],Ap=["type","placeholder"],Dp={key:2},Np={class:"edit-h5-footer"},Up=["disabled"];function Bp(e,t,n,o,a,i){const r=Object(U["resolveComponent"])("Datepicker");return Object(U["openBlock"])(),Object(U["createElementBlock"])("div",{class:Object(U["normalizeClass"])(["edit",[e.isH5?"edit-h5":""]])},[Object(U["createElementVNode"])("header",qu,[e.isH5?(Object(U["openBlock"])(),Object(U["createElementBlock"])("i",{key:0,class:"icon icon-back",onClick:t[0]||(t[0]=(...t)=>e.cancel&&e.cancel(...t))})):Object(U["createCommentVNode"])("",!0),Object(U["createElementVNode"])("h1",Qu,Object(U["toDisplayString"])(e.$t("TUIProfile.资料设置")),1)]),Object(U["createElementVNode"])("ul",Xu,[Object(U["createElementVNode"])("li",Zu,[Object(U["createElementVNode"])("main",{class:"edit-list-item-content",onClick:t[1]||(t[1]=t=>e.setProfile("avatar"))},[Object(U["createElementVNode"])("label",null,Object(U["toDisplayString"])(e.$t("TUIProfile.头像")),1),e.isH5?(Object(U["openBlock"])(),Object(U["createElementBlock"])("span",Ju,[Object(U["createElementVNode"])("img",{src:e.profile.avatar?e.profile.avatar:"https://web.sdk.qcloud.com/component/TUIKit/assets/avatar_21.png",onerror:"this.src='https://web.sdk.qcloud.com/component/TUIKit/assets/avatar_21.png'"},null,8,ep)])):(Object(U["openBlock"])(),Object(U["createElementBlock"])("ul",tp,[(Object(U["openBlock"])(!0),Object(U["createElementBlock"])(U["Fragment"],null,Object(U["renderList"])(e.avatarList,(t,n)=>(Object(U["openBlock"])(),Object(U["createElementBlock"])("li",{class:"avatar-list-item",key:n,onClick:n=>e.chooseAvatar(t)},[Object(U["createElementVNode"])("img",{class:Object(U["normalizeClass"])([e.profile.avatar===t.avatar&&"selected"]),src:t.avatar},null,10,op)],8,np))),128))]))]),e.isH5?(Object(U["openBlock"])(),Object(U["createElementBlock"])("i",ap)):Object(U["createCommentVNode"])("",!0)]),Object(U["createElementVNode"])("li",ip,[Object(U["createElementVNode"])("main",{class:"edit-list-item-content",onClick:t[3]||(t[3]=t=>e.setProfile("nick"))},[Object(U["createElementVNode"])("label",null,Object(U["toDisplayString"])(e.$t("TUIProfile.昵称")),1),e.isH5?(Object(U["openBlock"])(),Object(U["createElementBlock"])("span",rp,Object(U["toDisplayString"])(e.profile.nick),1)):Object(U["withDirectives"])((Object(U["openBlock"])(),Object(U["createElementBlock"])("input",{key:1,type:"text","onUpdate:modelValue":t[2]||(t[2]=t=>e.profile.nick=t)},null,512)),[[U["vModelText"],e.profile.nick]])]),e.isH5?(Object(U["openBlock"])(),Object(U["createElementBlock"])("i",sp)):Object(U["createCommentVNode"])("",!0)]),Object(U["createElementVNode"])("li",lp,[Object(U["createElementVNode"])("main",cp,[Object(U["createElementVNode"])("label",null,Object(U["toDisplayString"])(e.$t("TUIProfile.账号")),1),Object(U["createElementVNode"])("span",null,Object(U["toDisplayString"])(e.profile.userID),1)])]),Object(U["createElementVNode"])("li",dp,[Object(U["createElementVNode"])("main",{class:"edit-list-item-content",onClick:t[5]||(t[5]=t=>e.setProfile("selfSignature"))},[Object(U["createElementVNode"])("label",null,Object(U["toDisplayString"])(e.$t("TUIProfile.个性签名")),1),e.isH5?(Object(U["openBlock"])(),Object(U["createElementBlock"])("span",up,Object(U["toDisplayString"])(e.profile.selfSignature),1)):Object(U["withDirectives"])((Object(U["openBlock"])(),Object(U["createElementBlock"])("input",{key:1,type:"text","onUpdate:modelValue":t[4]||(t[4]=t=>e.profile.selfSignature=t)},null,512)),[[U["vModelText"],e.profile.selfSignature]])]),e.isH5?(Object(U["openBlock"])(),Object(U["createElementBlock"])("i",pp)):Object(U["createCommentVNode"])("",!0)]),Object(U["createElementVNode"])("li",mp,[Object(U["createElementVNode"])("main",{class:"edit-list-item-content",onClick:t[6]||(t[6]=t=>e.setProfile("gender"))},[Object(U["createElementVNode"])("label",null,Object(U["toDisplayString"])(e.$t("TUIProfile.性别")),1),e.isH5?(Object(U["openBlock"])(),Object(U["createElementBlock"])("span",bp,Object(U["toDisplayString"])(e.profile.gender?e.$t("TUIProfile."+e.genderLabel[e.profile.gender]):""),1)):(Object(U["openBlock"])(),Object(U["createElementBlock"])("ul",hp,[(Object(U["openBlock"])(!0),Object(U["createElementBlock"])(U["Fragment"],null,Object(U["renderList"])(e.type,(t,n)=>(Object(U["openBlock"])(),Object(U["createElementBlock"])("li",{class:"gender-list-item",key:n,onClick:n=>e.showChooseGender(t)},[Object(U["createElementVNode"])("i",{class:Object(U["normalizeClass"])(["gender",[e.profile.gender===t.type&&"gender-selected"]])},null,2),Object(U["createElementVNode"])("p",fp,Object(U["toDisplayString"])(e.$t("TUIProfile."+t.label)),1)],8,vp))),128))]))]),e.isH5?(Object(U["openBlock"])(),Object(U["createElementBlock"])("i",gp)):Object(U["createCommentVNode"])("",!0)]),Object(U["createElementVNode"])("li",Op,[Object(U["createElementVNode"])("main",{class:"edit-list-item-content",onClick:t[7]||(t[7]=t=>e.setProfile("birthday"))},[Object(U["createElementVNode"])("label",null,Object(U["toDisplayString"])(e.$t("TUIProfile.出生年月")),1),e.isH5?(Object(U["openBlock"])(),Object(U["createElementBlock"])("span",jp,Object(U["toDisplayString"])(e.profile.birthday),1)):(Object(U["openBlock"])(),Object(U["createBlock"])(r,{key:1,placeholder:e.$t("TUIProfile.请选择出生日期"),enableTimePicker:!1,format:e.format,previewFormat:e.format,modelValue:e.birthday,"onUpdate:modelValue":e.showBirthday},null,8,["placeholder","format","previewFormat","modelValue","onUpdate:modelValue"]))]),e.isH5?(Object(U["openBlock"])(),Object(U["createElementBlock"])("i",yp)):Object(U["createCommentVNode"])("",!0)])]),e.isH5?Object(U["createCommentVNode"])("",!0):(Object(U["openBlock"])(),Object(U["createElementBlock"])("footer",Ip,[Object(U["createElementVNode"])("button",{class:"btn-default",onClick:t[8]||(t[8]=(...t)=>e.cancel&&e.cancel(...t))},Object(U["toDisplayString"])(e.$t("TUIProfile.取消")),1),Object(U["createElementVNode"])("button",{class:"btn-submit",onClick:t[9]||(t[9]=(...t)=>e.submit&&e.submit(...t))},Object(U["toDisplayString"])(e.$t("TUIProfile.保存")),1)])),e.setName&&e.isH5?(Object(U["openBlock"])(),Object(U["createElementBlock"])("div",{key:1,class:"mask",onClick:t[14]||(t[14]=Object(U["withModifiers"])((...t)=>e.closeMask&&e.closeMask(...t),["self"]))},[Object(U["createElementVNode"])("div",Cp,[Object(U["createElementVNode"])("header",Ep,[Object(U["createElementVNode"])("h1",null,Object(U["toDisplayString"])(e.$t("TUIProfile."+e.editConfig.title)),1),Object(U["createElementVNode"])("span",{class:"close",onClick:t[10]||(t[10]=(...t)=>e.closeMask&&e.closeMask(...t))},Object(U["toDisplayString"])(e.$t("关闭")),1)]),Object(U["createElementVNode"])("main",kp,["select"===e.editConfig.type?(Object(U["openBlock"])(),Object(U["createElementBlock"])("ul",wp,[(Object(U["openBlock"])(!0),Object(U["createElementBlock"])(U["Fragment"],null,Object(U["renderList"])(e.editConfig.list,(t,n)=>(Object(U["openBlock"])(),Object(U["createElementBlock"])("li",{class:"list-item",key:n,onClick:n=>e.choose(t)},[null!==t&&void 0!==t&&t.avatar?(Object(U["openBlock"])(),Object(U["createElementBlock"])("img",{key:0,class:Object(U["normalizeClass"])([e.editConfig.value===t.avatar&&"selected"]),src:t.avatar},null,10,Sp)):(Object(U["openBlock"])(),Object(U["createElementBlock"])("span",{key:1,class:Object(U["normalizeClass"])([e.editConfig.value===t.type&&"selected"])},Object(U["toDisplayString"])(e.$t("TUIProfile."+t.label)),3))],8,_p))),128))])):(Object(U["openBlock"])(),Object(U["createElementBlock"])("div",Tp,["textarea"===e.editConfig.type?Object(U["withDirectives"])((Object(U["openBlock"])(),Object(U["createElementBlock"])("textarea",{key:0,placeholder:e.editConfig.placeholder,"onUpdate:modelValue":t[11]||(t[11]=t=>e.editConfig.value=t)},null,8,Lp)),[[U["vModelText"],e.editConfig.value]]):"date"===e.editConfig.type?(Object(U["openBlock"])(),Object(U["createBlock"])(r,{key:1,class:"datePicker",placeholder:e.$t("TUIProfile.请选择出生日期"),enableTimePicker:!1,format:e.format,previewFormat:e.format,modelValue:e.birthday,"onUpdate:modelValue":e.showBirthday},null,8,["placeholder","format","previewFormat","modelValue","onUpdate:modelValue"])):Object(U["withDirectives"])((Object(U["openBlock"])(),Object(U["createElementBlock"])("input",{key:2,type:e.editConfig.type,placeholder:e.$t("TUIProfile."+e.editConfig.placeholder),"onUpdate:modelValue":t[12]||(t[12]=t=>e.editConfig.value=t)},null,8,Ap)),[[U["vModelDynamic"],e.editConfig.value]])])),e.editConfig.subText?(Object(U["openBlock"])(),Object(U["createElementBlock"])("sub",Dp,Object(U["toDisplayString"])(e.$t("TUIProfile."+e.editConfig.subText)),1)):Object(U["createCommentVNode"])("",!0)]),Object(U["createElementVNode"])("footer",Np,[Object(U["createElementVNode"])("button",{class:"btn btn-submit",disabled:!e.editConfig.value,onClick:t[13]||(t[13]=(...t)=>e.submit&&e.submit(...t))},Object(U["toDisplayString"])(e.$t("确定")),9,Up)])])])):Object(U["createCommentVNode"])("",!0)],2)}var Mp=n("5141");n("1465");const Vp=Object(U["defineComponent"])({props:{userInfo:{type:Object,default:()=>({})},isH5:{type:Boolean,default:()=>!1}},components:{Datepicker:Mp["a"]},setup(e,t){const n=null===Vp||void 0===Vp?void 0:Vp.TUIServer,o=Object(U["reactive"])({profile:{},isEdit:!1,avatarList:[{name:"avatar_01",avatar:" https://im.sdk.qcloud.com/download/tuikit-resource/avatar/avatar_1.png"},{name:"avatar_02",avatar:" https://im.sdk.qcloud.com/download/tuikit-resource/avatar/avatar_2.png"},{name:"avatar_03",avatar:" https://im.sdk.qcloud.com/download/tuikit-resource/avatar/avatar_3.png"},{name:"avatar_04",avatar:" https://im.sdk.qcloud.com/download/tuikit-resource/avatar/avatar_4.png"},{name:"avatar_05",avatar:" https://im.sdk.qcloud.com/download/tuikit-resource/avatar/avatar_5.png"},{name:"avatar_06",avatar:" https://im.sdk.qcloud.com/download/tuikit-resource/avatar/avatar_6.png"}],type:[{label:"男",type:n.TUICore.TIM.TYPES.GENDER_MALE},{label:"女",type:n.TUICore.TIM.TYPES.GENDER_FEMALE}],genderLabel:{[n.TUICore.TIM.TYPES.GENDER_MALE]:"男",[n.TUICore.TIM.TYPES.GENDER_FEMALE]:"女",[n.TUICore.TIM.TYPES.GENDER_UNKNOWN]:"不显示"},setName:"",editConfig:{title:"",list:[],type:"",subText:"",placeholder:"",value:""}}),a=e=>{const t=e.getDate()>9?e.getDate():"0"+e.getDate(),n=e.getMonth()>8?e.getMonth()+1:"0"+(e.getMonth()+1),o=e.getFullYear();return`${o}${n}${t}`};Object(U["watchEffect"])(()=>{o.profile=JSON.parse(h()(e.userInfo))});const i=Object(U["computed"])(()=>{let t=o.profile.birthday;return"birthday"===o.setName&&e.isH5&&(t=o.editConfig.value),r(t)}),r=e=>{const t=""+e;if(8===t.length){const e=Qn()(t).call(t,0,4),n=Qn()(t).call(t,4,6),o=Qn()(t).call(t,-2);return`${e}-${n}-${o}`}return""},s=e=>{o.profile.gender=e.type},l=e=>{o.profile.avatar=e.avatar},c=t=>{e.isH5?o.editConfig.value=t?Number(a(t)):0:o.profile.birthday=t?Number(a(t)):0},d=()=>{e.isH5&&(o.profile[o.setName]=o.editConfig.value,b()),t.emit("submit",o.profile)},u=()=>{t.emit("cancel",o.profile)},p=e=>{switch(o.editConfig.value=""+o.profile[e],o.setName=e,e){case"avatar":o.editConfig.title="选择头像",o.editConfig.list=o.avatarList,o.editConfig.type="select";break;case"nick":o.editConfig.title="设置昵称",o.editConfig.subText="仅限中文、字母、数字和下划线,2-20个字",o.editConfig.placeholder="请输入昵称",o.editConfig.type="text";break;case"gender":o.editConfig.title="性别选择",o.editConfig.list=o.type,o.editConfig.type="select";break;case"selfSignature":o.editConfig.title="个性签名",o.editConfig.type="textarea",o.editConfig.placeholder="请输入内容";break;case"birthday":o.editConfig.title="出生年月",o.editConfig.type="date",o.editConfig.placeholder="请选择出生日期";break;default:break}},m=e=>{o.editConfig.value=(null===e||void 0===e?void 0:e.avatar)||(null===e||void 0===e?void 0:e.type)},b=()=>{o.setName="",o.editConfig={title:"",list:[],type:"",subText:"",placeholder:"",value:""}};return{...Object(U["toRefs"])(o),showChooseGender:s,chooseAvatar:l,showBirthday:c,birthday:i,submit:d,cancel:u,setProfile:p,choose:m,closeMask:b,format:a}}});var Rp=Vp;n("d4db");const xp=se()(Rp,[["render",Bp],["__scopeId","data-v-25fbecd0"]]);var Pp=xp,Gp=Pp;const Fp=Object(U["defineComponent"])({name:"TUIProfile",components:{TUIProfileEdit:Gp},setup(e,t){var n;const o=null===Fp||void 0===Fp?void 0:Fp.TUIServer,a=Object(U["reactive"])({profile:{},isEdit:!1,genderLabel:{[o.TUICore.TIM.TYPES.GENDER_MALE]:"男",[o.TUICore.TIM.TYPES.GENDER_FEMALE]:"女",[o.TUICore.TIM.TYPES.GENDER_UNKNOWN]:"不显示"},env:o.TUICore.TUIEnv});Gp.TUIServer=o,u()(o).call(o,a);const i=(null===(n=window)||void 0===n||null===(n=n.TUIKitTUICore)||void 0===n?void 0:n.isOfficial)&&Jt["c"]&&Object(Jt["c"])()||{},r=async e=>{const t={nick:e.nick,avatar:e.avatar,gender:e.gender||o.TUICore.TIM.TYPES.GENDER_UNKNOWN,selfSignature:e.selfSignature,birthday:e.birthday};var n;o.TUICore.getStore().TUIProfile.profile.nick!==e.nick&&((null===(n=window)||void 0===n||null===(n=n.TUIKitTUICore)||void 0===n?void 0:n.isOfficial)&&(null===i||void 0===i?void 0:i.commit)&&(null===i||void 0===i||i.commit("handleTask",2)));try{await o.updateMyProfile(t),Zt.getInstance().reportEvent({name:"changeProfile",ext1:"changeProfile"})}catch(r){console.log(r)}a.env.isH5||s()},s=()=>{a.env.isH5?a.isEdit=!1:l()},l=()=>{t.emit("changeStatus")},c=()=>{a.env.isH5&&(a.isEdit=!0)};return{...Object(U["toRefs"])(a),submit:r,cancel:s,changeStatus:l,toggleEdit:c}}});var Hp=Fp;n("a1b5");const zp=se()(Hp,[["render",$u],["__scopeId","data-v-462cde4b"]]);var Kp=zp;const Yp=e=>{Kp.TUIServer=$p.server,e.component($p.name,Kp)},Wp=e=>($p.server=new Lu(e),e.component($p.name,$p),$p),$p={name:"TUIProfile",component:Kp,server:Lu,install:Yp,plugin:Wp};var qp=$p;const Qp={};class Xp extends A{constructor(e){var t;super(),Object(c["a"])(this,"TUICore",void 0),Object(c["a"])(this,"store",void 0),Object(c["a"])(this,"currentStore",{}),Object(c["a"])(this,"storeCallback",void 0),this.TUICore=e,this.bindTIMEvent(),this.store=e.setComponentStore("TUIGroup",Qp,u()(t=this.updateStore).call(t,this))}destroyed(){this.unbindTIMEvent()}updateStore(e,t){this.currentStore.groupList=e.groupList,this.currentStore.searchGroup=e.searchGroup}bindTIMEvent(){this.TUICore.tim.on(this.TUICore.TIM.EVENT.GROUP_LIST_UPDATED,this.handleGroupListUpdated,this),this.TUICore.tim.on(this.TUICore.TIM.EVENT.GROUP_ATTRIBUTES_UPDATED,this.handleGroupAttributesUpdated,this)}unbindTIMEvent(){this.TUICore.tim.off(this.TUICore.TIM.EVENT.GROUP_LIST_UPDATED,this.handleGroupListUpdated),this.TUICore.tim.off(this.TUICore.TIM.EVENT.GROUP_ATTRIBUTES_UPDATED,this.handleGroupAttributesUpdated)}handleGroupListUpdated(e){this.store.groupList=e.data}handleGroupAttributesUpdated(e){const{groupID:t,groupAttributes:n}=e.data;console.log(t,n)}handlePromiseCallback(e){return new f.a((t,n)=>{const o={TUIName:"TUIGroup",callback:()=>{e&&e(t,n)}};this.TUICore.setAwaitFunc(o.TUIName,o.callback)})}async getGroupList(e){return this.handlePromiseCallback(async(t,n)=>{try{let n={};n=e?await this.TUICore.tim.getGroupList(e):await this.TUICore.tim.getGroupList(),this.store.groupList=n.data.groupList,t(n)}catch(o){n(o)}})}getGroupProfile(e){return this.handlePromiseCallback(async(t,n)=>{try{const n=await this.TUICore.tim.getGroupProfile(e);this.store.groupList=n.data.groupList,t(n)}catch(o){n(o)}})}createGroup(e){return this.handlePromiseCallback(async(t,n)=>{try{const n=await this.TUICore.tim.createGroup(e);t(n)}catch(o){n(o)}})}dismissGroup(e){return this.handlePromiseCallback(async(t,n)=>{try{const n=await this.TUICore.tim.dismissGroup(e);this.store.groupProfile=n.data.group,t(n)}catch(o){n(o)}})}updateGroupProfile(e){return this.handlePromiseCallback(async(t,n)=>{try{const n=await this.TUICore.tim.updateGroupProfile(e);this.store.groupProfile=n.data.group,t(n)}catch(o){n(o)}})}joinGroup(e){return this.handlePromiseCallback(async(t,n)=>{try{const n=await this.TUICore.tim.joinGroup(e);t(n)}catch(o){n(o)}})}quitGroup(e){return this.handlePromiseCallback(async(t,n)=>{try{const n=await this.TUICore.tim.quitGroup(e);t(n)}catch(o){n(o)}})}searchGroupByID(e){return this.handlePromiseCallback(async(t,n)=>{try{const n=await this.TUICore.tim.searchGroupByID(e);this.store.searchGroup=n.data.group,t(n)}catch(o){n(o)}})}getGroupOnlineMemberCount(e){return this.handlePromiseCallback(async(t,n)=>{try{const n=await this.TUICore.tim.getGroupOnlineMemberCount(e);t(n)}catch(o){n(o)}})}changeGroupOwner(e){return this.handlePromiseCallback(async(t,n)=>{try{const n=await this.TUICore.tim.changeGroupOwner(e);t(n)}catch(o){n(o)}})}handleGroupApplication(e){return this.handlePromiseCallback(async(t,n)=>{try{const n=await this.TUICore.tim.handleGroupApplication(e);t(n)}catch(o){n(o)}})}initGroupAttributes(e){return this.handlePromiseCallback(async(t,n)=>{try{const n=await this.TUICore.tim.initGroupAttributes(e);t(n)}catch(o){n(o)}})}setGroupAttributes(e){return this.handlePromiseCallback(async(t,n)=>{try{const n=await this.TUICore.tim.setGroupAttributes(e);t(n)}catch(o){n(o)}})}deleteGroupAttributes(e){return this.handlePromiseCallback(async(t,n)=>{try{const n=await this.TUICore.tim.deleteGroupAttributes(e);t(n)}catch(o){n(o)}})}getGroupAttributes(e){return this.handlePromiseCallback(async(t,n)=>{try{const n=await this.TUICore.tim.getGroupAttributes(e);t(n)}catch(o){n(o)}})}getGroupMemberList(e){return this.handlePromiseCallback(async(t,n)=>{try{const n=await this.TUICore.tim.getGroupMemberList(e);t(n)}catch(o){n(o)}})}addGroupMember(e){return this.handlePromiseCallback(async(t,n)=>{try{const n=await this.TUICore.tim.addGroupMember(e);t(n)}catch(o){n(o)}})}deleteGroupMember(e){return this.handlePromiseCallback(async(t,n)=>{try{const n=await this.TUICore.tim.deleteGroupMember(e);t(n)}catch(o){n(o)}})}setGroupMemberMuteTime(e){return this.handlePromiseCallback(async(t,n)=>{try{const n=await this.TUICore.tim.setGroupMemberMuteTime(e);t(n)}catch(o){n(o)}})}setGroupMemberRole(e){return this.handlePromiseCallback(async(t,n)=>{try{const n=await this.TUICore.tim.setGroupMemberRole(e);t(n)}catch(o){n(o)}})}setGroupMemberNameCard(e){return this.handlePromiseCallback(async(t,n)=>{try{const n=await this.TUICore.tim.setGroupMemberNameCard(e);t(n)}catch(o){n(o)}})}getGroupMemberProfile(e){return this.handlePromiseCallback(async(t,n)=>{try{const n=await this.TUICore.tim.getGroupMemberProfile(e);t(n)}catch(o){n(o)}})}async bind(e){return this.currentStore=e,await this.getGroupList(),this.currentStore}}const Zp={class:"TUI-group"};function Jp(e,t,n,o,a,i){return Object(U["openBlock"])(),Object(U["createElementBlock"])("div",Zp,"TUIGroup")}const em=Object(U["defineComponent"])({name:"TUIGroup",components:{},setup(e){const t=em.TUIServer,n=Object(U["reactive"])({groupList:[],searchGroup:[],searchID:"",currentGroup:null});return u()(t).call(t,n),{...Object(U["toRefs"])(n)}}});var tm=em;n("b23d");const nm=se()(tm,[["render",Jp],["__scopeId","data-v-f2d329c8"]]);var om=nm;const am=e=>{om.TUIServer=rm.server,e.component(rm.name,om)},im=e=>(rm.server=new Xp(e),e.component(rm.name,rm),rm),rm={name:"TUIGroup",component:om,server:Xp,install:am,plugin:im};var sm=rm;const lm={};class cm extends A{constructor(e){var t;super(),Object(c["a"])(this,"TUICore",void 0),Object(c["a"])(this,"store",void 0),Object(c["a"])(this,"currentStore",{}),Object(c["a"])(this,"storeCallback",void 0),this.TUICore=e,this.bindTIMEvent(),this.store=e.setComponentStore("TUIContact",lm,u()(t=this.updateStore).call(t,this))}destroyed(){this.unbindTIMEvent()}updateStore(e,t){this.currentStore.groupList=e.groupList,this.currentStore.searchGroup=e.searchGroup,this.currentStore.systemConversation=e.systemConversation,this.currentStore.systemMessageList=e.systemMessageList}bindTIMEvent(){this.TUICore.tim.on(this.TUICore.TIM.EVENT.GROUP_LIST_UPDATED,this.handleGroupListUpdated,this),this.TUICore.tim.on(this.TUICore.TIM.EVENT.GROUP_ATTRIBUTES_UPDATED,this.handleGroupAttributesUpdated,this),this.TUICore.tim.on(this.TUICore.TIM.EVENT.CONVERSATION_LIST_UPDATED,this.handleConversationListUpdate,this),this.TUICore.tim.on(this.TUICore.TIM.EVENT.FRIEND_LIST_UPDATED,this.handleFriendListUpdated,this),this.TUICore.tim.on(this.TUICore.TIM.EVENT.USER_STATUS_UPDATED,this.handleUserStatusUpdated,this)}unbindTIMEvent(){this.TUICore.tim.off(this.TUICore.TIM.EVENT.GROUP_LIST_UPDATED,this.handleGroupListUpdated),this.TUICore.tim.off(this.TUICore.TIM.EVENT.GROUP_ATTRIBUTES_UPDATED,this.handleGroupAttributesUpdated),this.TUICore.tim.off(this.TUICore.TIM.EVENT.CONVERSATION_LIST_UPDATED,this.handleConversationListUpdate),this.TUICore.tim.off(this.TUICore.TIM.EVENT.FRIEND_LIST_UPDATED,this.handleFriendListUpdated),this.TUICore.tim.off(this.TUICore.TIM.EVENT.USER_STATUS_UPDATED,this.handleUserStatusUpdated)}handleGroupListUpdated(e){this.store.groupList=e.data}handleGroupAttributesUpdated(e){const{groupID:t,groupAttributes:n}=e.data}handleConversationListUpdate(e){this.handleFilterSystem(e.data)}handleFriendListUpdated(e){var t;this.currentStore.friendList=e.data,this.currentStore.userIDList=l()(t=this.currentStore.friendList).call(t,e=>e.userID)}handleUserStatusUpdated(e){const t=e.data;a()(t).call(t,e=>{var t,n;const{userID:o,statusType:a,customStatus:i}=e;null===(t=this.currentStore)||void 0===t||null===(t=t.userStatusList)||void 0===t||t.set(o,{statusType:a,customStatus:i}),null===(n=this.TUICore)||void 0===n||null===(n=n.TUIServer)||void 0===n||null===(n=n.TUIConversation)||void 0===n||null===(n=n.currentStore)||void 0===n||null===(n=n.userStatusList)||void 0===n||n.set(o,{statusType:a,customStatus:i})})}handlePromiseCallback(e){return new f.a((t,n)=>{const o={TUIName:"TUIContact",callback:()=>{e&&e(t,n)}};this.TUICore.setAwaitFunc(o.TUIName,o.callback)})}handleFilterSystem(e){const t={allConversationList:e,systemConversationList:[]};t.systemConversationList=y()(e).call(e,e=>e.type===this.TUICore.TIM.TYPES.CONV_SYSTEM),this.store.allConversationList=t.allConversationList,this.store.systemConversationList=t.systemConversationList;const[n]=t.systemConversationList;return this.store.systemConversation=n,t}async getConversationList(){return this.handlePromiseCallback(async(e,t)=>{try{const t=await this.TUICore.tim.getConversationList();this.handleFilterSystem(t.data.conversationList),e(t)}catch(n){t(n)}})}async getSystemMessageList(){const e={conversationID:this.store.systemConversation.conversationID,count:15};return this.handlePromiseCallback(async(t,n)=>{try{const n=await this.TUICore.tim.getMessageList(e);this.store.systemMessageList=n.data.messageList,t(n)}catch(o){n(o)}})}async setMessageRead(){return this.handlePromiseCallback(async(e,t)=>{try{const t=await this.TUICore.tim.setMessageRead({conversationID:this.store.systemConversation.conversationID});e(t)}catch(n){t(n)}})}async getGroupList(e){return this.handlePromiseCallback(async(t,n)=>{try{let n={};n=e?await this.TUICore.tim.getGroupList(e):await this.TUICore.tim.getGroupList(),this.store.groupList=n.data.groupList,t(n)}catch(o){n(o)}})}getGroupProfile(e){return this.handlePromiseCallback(async(t,n)=>{try{const n=await this.TUICore.tim.getGroupProfile(e);this.store.groupList=n.data.groupList,t(n)}catch(o){n(o)}})}dismissGroup(e){return this.handlePromiseCallback(async(t,n)=>{try{const n=await this.TUICore.tim.dismissGroup(e);this.store.groupProfile=n.data.group,t(n)}catch(o){n(o)}})}updateGroupProfile(e){return this.handlePromiseCallback(async(t,n)=>{try{const n=await this.TUICore.tim.updateGroupProfile(e);this.store.groupProfile=n.data.group,t(n)}catch(o){n(o)}})}joinGroup(e){return this.handlePromiseCallback(async(t,n)=>{try{const n=await this.TUICore.tim.joinGroup(e);t(n)}catch(o){n(o)}})}quitGroup(e){return this.handlePromiseCallback(async(t,n)=>{try{const n=await this.TUICore.tim.quitGroup(e);t(n)}catch(o){n(o)}})}searchGroupByID(e){return this.handlePromiseCallback(async(t,n)=>{try{const n=await this.TUICore.tim.searchGroupByID(e);this.store.searchGroup=n.data.group,t(n)}catch(o){this.store.searchGroup={},n(o)}})}handleGroupApplication(e){return this.handlePromiseCallback(async(t,n)=>{try{const n=await this.TUICore.tim.handleGroupApplication(e);t(n)}catch(o){n(o)}})}async getFriendList(){return this.handlePromiseCallback(async(e,t)=>{try{var n;const t=await this.TUICore.tim.getFriendList();this.currentStore.friendList=t.data,this.currentStore.userIDList=l()(n=this.currentStore.friendList).call(n,e=>e.userID)||[],e(t)}catch(o){t(o)}})}async getUserStatus(e){return this.handlePromiseCallback(async(t,n)=>{try{var o;if(!e.length)return;const n=await this.TUICore.tim.getUserStatus({userIDList:e});null===n||void 0===n||null===(o=n.data)||void 0===o||null===(o=o.successUserList)||void 0===o||a()(o).call(o,e=>{var t,n;e&&null!==e&&void 0!==e&&e.userID&&(null===(t=this.currentStore)||void 0===t||null===(t=t.userStatusList)||void 0===t||t.set(null===e||void 0===e?void 0:e.userID,{statusType:null===e||void 0===e?void 0:e.statusType,customStatus:null===e||void 0===e?void 0:e.customStatus}),null===(n=this.TUICore)||void 0===n||null===(n=n.TUIServer)||void 0===n||null===(n=n.TUIConversation)||void 0===n||null===(n=n.currentStore)||void 0===n||null===(n=n.userStatusList)||void 0===n||n.set(null===e||void 0===e?void 0:e.userID,{statusType:null===e||void 0===e?void 0:e.statusType,customStatus:null===e||void 0===e?void 0:e.customStatus}))}),t(n)}catch(i){n(i)}})}async subscribeUserStatus(e){return this.handlePromiseCallback(async(t,n)=>{try{if(!e.length)return;const n=await this.TUICore.tim.subscribeUserStatus({userIDList:e});t(n)}catch(o){n(o)}})}async unsubscribeUserStatus(e){return this.handlePromiseCallback(async(t,n)=>{try{var o;if(e&&!e.length)return;const n=await this.TUICore.tim.unsubscribeUserStatus({userIDList:e});null===(o=this.currentStore)||void 0===o||null===(o=o.userStatusList)||void 0===o||o.clear(),t(n)}catch(a){n(a)}})}async handleUserStatus(e,t){return this.handlePromiseCallback(async(n,o)=>{try{O()(async()=>{e?(await this.subscribeUserStatus(t),await this.getUserStatus(t)):await this.unsubscribeUserStatus(t)},1e3)}catch(a){o(a)}})}async bind(e){return this.currentStore=e,await this.getGroupList(),await this.getConversationList(),await this.getFriendList(),this.currentStore}}const dm={class:"TUI-contact-left"},um={class:"TUI-contact-left-header"},pm={class:"search"},mm={key:1,class:"search-box"},bm={class:"input-box"},hm=["placeholder"],vm={key:0,class:"TUI-contact-column"},fm={class:"TUI-contact-column-item"},gm={key:0,class:"num"},Om={key:0,class:"TUI-contact-list"},jm={class:"TUI-contact-list-item selected not-aside"},ym={key:0,class:"num"},Im={class:"TUI-contact-column-item"},Cm={class:"TUI-contact-list"},Em=["onClick"],km={class:"left"},wm=["src"],_m={class:"content"},Sm={class:"name"},Tm={class:"ID"},Lm={class:"type"},Am={class:"TUI-contact-column-item"},Dm={class:"TUI-contact-list"},Nm=["onClick"],Um={class:"left"},Bm=["src"],Mm={class:"content"},Vm={class:"name"},Rm={key:1,class:"TUI-contact-list"},xm={class:"left"},Pm=["src"],Gm={class:"content"},Fm={class:"name"},Hm={class:"ID"},zm={class:"type"},Km={class:"TUI-contact-main"},Ym={key:0,class:"TUI-contact-main-h5-title"},Wm={key:1,class:"TUI-contact-main-info"},$m={class:"TUI-contact-main-info-header"},qm={class:"list"},Qm=["src"],Xm={key:0,class:"TUI-contact-main-info-main"},Zm=["disabled"],Jm={class:"TUI-contact-main-info-footer"},eb={key:0},tb={key:1},nb={key:2,class:"TUI-contact-main-info"},ob={class:"TUI-contact-main-info-header"},ab={class:"list"},ib=["src"],rb={class:"TUI-contact-main-info-footer"},sb={key:3,class:"TUI-contact-system"},lb={key:0,class:"TUI-contact-system-header"};function cb(e,t,n,o,a,i){const r=Object(U["resolveComponent"])("MessageSystem");return Object(U["openBlock"])(),Object(U["createBlock"])(U["Transition"],{onBeforeLeave:e.init},{default:Object(U["withCtx"])(()=>{var n,o,a,i,s,l,c,d,u,p,m,b,h,v,f,g,O,j,y,I,C;return[Object(U["createElementVNode"])("div",{class:Object(U["normalizeClass"])(["TUI-contact",[e.env.isH5?"TUI-contact-H5":""]])},[Object(U["createElementVNode"])("aside",dm,[Object(U["createElementVNode"])("header",um,[Object(U["createElementVNode"])("div",pm,[e.isSearch?(Object(U["openBlock"])(),Object(U["createElementBlock"])("div",mm,[Object(U["createElementVNode"])("div",bm,[Object(U["withDirectives"])(Object(U["createElementVNode"])("input",{type:"text","onUpdate:modelValue":t[1]||(t[1]=t=>e.searchID=t),placeholder:e.$t("TUIContact.输入群ID,按回车搜索"),onKeyup:t[2]||(t[2]=Object(U["withKeys"])((...t)=>e.handleSearchGroup&&e.handleSearchGroup(...t),["enter"])),enterkeyhint:"search"},null,40,hm),[[U["vModelText"],e.searchID]]),e.searchID?(Object(U["openBlock"])(),Object(U["createElementBlock"])("i",{key:0,class:"icon icon-cancel",onClick:t[3]||(t[3]=t=>e.searchID="")})):Object(U["createCommentVNode"])("",!0)]),Object(U["createElementVNode"])("span",{class:"search-cancel",onClick:t[4]||(t[4]=(...t)=>e.toggleSearch&&e.toggleSearch(...t))},Object(U["toDisplayString"])(e.$t("取消")),1)])):(Object(U["openBlock"])(),Object(U["createElementBlock"])("div",{key:0,class:"search-box",onClick:t[0]||(t[0]=(...t)=>e.toggleSearch&&e.toggleSearch(...t))},[t[17]||(t[17]=Object(U["createElementVNode"])("i",{class:"plus"},null,-1)),Object(U["createElementVNode"])("h1",null,Object(U["toDisplayString"])(e.$t("TUIContact.添加群聊")),1)]))])]),e.isSearch?(Object(U["openBlock"])(),Object(U["createElementBlock"])("ul",Rm,[null!==(n=e.searchGroup)&&void 0!==n&&n.groupID?(Object(U["openBlock"])(),Object(U["createElementBlock"])("li",{key:0,class:Object(U["normalizeClass"])(["TUI-contact-list-item",[(null===(o=e.currentGroup)||void 0===o?void 0:o.groupID)===(null===(a=e.searchGroup)||void 0===a?void 0:a.groupID)&&"selected"]]),onClick:t[8]||(t[8]=t=>e.handleListItem(e.searchGroup))},[Object(U["createElementVNode"])("aside",xm,[Object(U["createElementVNode"])("img",{class:"avatar",src:(null===(i=e.searchGroup)||void 0===i?void 0:i.avatar)||"https://web.sdk.qcloud.com/im/demo/TUIkit/web/img/constomer.svg",onerror:"this.src='https://web.sdk.qcloud.com/im/demo/TUIkit/web/img/constomer.svg'"},null,8,Pm)]),Object(U["createElementVNode"])("main",Gm,[Object(U["createElementVNode"])("ul",null,[Object(U["createElementVNode"])("li",Fm,Object(U["toDisplayString"])(null===(s=e.searchGroup)||void 0===s?void 0:s.name),1),Object(U["createElementVNode"])("li",Hm,[t[19]||(t[19]=Object(U["createElementVNode"])("label",null,"ID:",-1)),Object(U["createElementVNode"])("span",null,Object(U["toDisplayString"])(null===(l=e.searchGroup)||void 0===l?void 0:l.groupID),1)])]),Object(U["createElementVNode"])("span",zm,Object(U["toDisplayString"])(null===(c=e.searchGroup)||void 0===c?void 0:c.type),1)])],2)):Object(U["createCommentVNode"])("",!0)])):(Object(U["openBlock"])(),Object(U["createElementBlock"])("ul",vm,[Object(U["createElementVNode"])("li",fm,[Object(U["createElementVNode"])("header",{onClick:t[5]||(t[5]=t=>e.select("system"))},[Object(U["createElementVNode"])("i",{class:Object(U["normalizeClass"])(["icon icon-right",["system"===e.columnName&&"icon-down"]])},null,2),Object(U["createElementVNode"])("main",null,[Object(U["createElementVNode"])("label",null,Object(U["toDisplayString"])(e.$t("TUIContact.群聊通知")),1),e.systemConversation&&e.systemConversation.unreadCount>0?(Object(U["openBlock"])(),Object(U["createElementBlock"])("span",gm,Object(U["toDisplayString"])(e.systemConversation.unreadCount),1)):Object(U["createCommentVNode"])("",!0)])]),"system"===e.columnName?(Object(U["openBlock"])(),Object(U["createElementBlock"])("ul",Om,[Object(U["createElementVNode"])("li",jm,[Object(U["createElementVNode"])("label",null,Object(U["toDisplayString"])(e.$t("TUIContact.系统通知")),1),e.systemConversation&&e.systemConversation.unreadCount>0?(Object(U["openBlock"])(),Object(U["createElementBlock"])("span",ym,Object(U["toDisplayString"])(e.systemConversation.unreadCount),1)):Object(U["createCommentVNode"])("",!0)])])):Object(U["createCommentVNode"])("",!0)]),Object(U["createElementVNode"])("li",Im,[Object(U["createElementVNode"])("header",{onClick:t[6]||(t[6]=t=>e.select("group"))},[Object(U["createElementVNode"])("i",{class:Object(U["normalizeClass"])(["icon icon-right",["group"===e.columnName&&"icon-down"]])},null,2),Object(U["createElementVNode"])("main",null,[Object(U["createElementVNode"])("label",null,Object(U["toDisplayString"])(e.$t("TUIContact.我的群聊")),1)])]),Object(U["withDirectives"])(Object(U["createElementVNode"])("ul",Cm,[(Object(U["openBlock"])(!0),Object(U["createElementBlock"])(U["Fragment"],null,Object(U["renderList"])(e.groupList,(n,o)=>{var a;return Object(U["openBlock"])(),Object(U["createElementBlock"])("li",{class:Object(U["normalizeClass"])(["TUI-contact-list-item",[(null===(a=e.currentGroup)||void 0===a?void 0:a.groupID)===(null===n||void 0===n?void 0:n.groupID)&&"selected"]]),key:o,onClick:t=>e.handleListItem(n)},[Object(U["createElementVNode"])("aside",km,[Object(U["createElementVNode"])("img",{class:"avatar",src:(null===n||void 0===n?void 0:n.avatar)||"https://web.sdk.qcloud.com/im/demo/TUIkit/web/img/constomer.svg",onerror:"this.src='https://web.sdk.qcloud.com/im/demo/TUIkit/web/img/constomer.svg'"},null,8,wm)]),Object(U["createElementVNode"])("main",_m,[Object(U["createElementVNode"])("ul",null,[Object(U["createElementVNode"])("li",Sm,Object(U["toDisplayString"])(null===n||void 0===n?void 0:n.name),1),Object(U["createElementVNode"])("li",Tm,[t[18]||(t[18]=Object(U["createElementVNode"])("label",null,"ID:",-1)),Object(U["createElementVNode"])("span",null,Object(U["toDisplayString"])(null===n||void 0===n?void 0:n.groupID),1)])]),Object(U["createElementVNode"])("span",Lm,Object(U["toDisplayString"])(null===n||void 0===n?void 0:n.type),1)])],10,Em)}),128))],512),[[U["vShow"],"group"===e.columnName]])]),Object(U["createElementVNode"])("li",Am,[Object(U["createElementVNode"])("header",{onClick:t[7]||(t[7]=t=>e.select("friend"))},[Object(U["createElementVNode"])("i",{class:Object(U["normalizeClass"])(["icon icon-right",["friend"===e.columnName&&"icon-down"]])},null,2),Object(U["createElementVNode"])("main",null,[Object(U["createElementVNode"])("label",null,Object(U["toDisplayString"])(e.$t("TUIContact.我的好友")),1)])]),Object(U["withDirectives"])(Object(U["createElementVNode"])("ul",Dm,[(Object(U["openBlock"])(!0),Object(U["createElementBlock"])(U["Fragment"],null,Object(U["renderList"])(e.friendList,(t,n)=>{var o,a,i,r;return Object(U["openBlock"])(),Object(U["createElementBlock"])("li",{class:Object(U["normalizeClass"])(["TUI-contact-list-item",[(null===(o=e.currentFriend)||void 0===o?void 0:o.userID)===(null===t||void 0===t?void 0:t.userID)&&"selected"]]),key:n,onClick:n=>e.handleListItem(t)},[Object(U["createElementVNode"])("aside",Um,[Object(U["createElementVNode"])("img",{class:"avatar",src:(null===t||void 0===t||null===(a=t.profile)||void 0===a?void 0:a.avatar)||"https://web.sdk.qcloud.com/component/TUIKit/assets/avatar_21.png",onerror:"this.src='https://web.sdk.qcloud.com/component/TUIKit/assets/avatar_21.png'"},null,8,Bm),e.displayOnlineStatus?(Object(U["openBlock"])(),Object(U["createElementBlock"])("div",{key:0,class:Object(U["normalizeClass"])(["online-status",1===(null===(i=e.userStatusList.get(null===t||void 0===t?void 0:t.userID))||void 0===i?void 0:i.statusType)?"online-status-online":"online-status-offline"])},null,2)):Object(U["createCommentVNode"])("",!0)]),Object(U["createElementVNode"])("main",Mm,[Object(U["createElementVNode"])("ul",null,[Object(U["createElementVNode"])("li",Vm,Object(U["toDisplayString"])((null===t||void 0===t||null===(r=t.profile)||void 0===r?void 0:r.nick)||(null===t||void 0===t?void 0:t.userID)),1)])])],10,Nm)}),128))],512),[[U["vShow"],"friend"===e.columnName]])])]))]),Object(U["withDirectives"])(Object(U["createElementVNode"])("main",Km,[e.env.isH5?(Object(U["openBlock"])(),Object(U["createElementBlock"])("header",Ym,[Object(U["createElementVNode"])("i",{class:"icon icon-back",onClick:t[9]||(t[9]=(...t)=>e.back&&e.back(...t))}),Object(U["createElementVNode"])("h1",null,Object(U["toDisplayString"])((null===(d=e.currentGroup)||void 0===d?void 0:d.name)||e.$t("TUIContact.系统通知")),1)])):Object(U["createCommentVNode"])("",!0),null!==(u=e.currentGroup)&&void 0!==u&&u.groupID?(Object(U["openBlock"])(),Object(U["createElementBlock"])("div",Wm,[Object(U["createElementVNode"])("header",$m,[Object(U["createElementVNode"])("ul",qm,[Object(U["createElementVNode"])("h1",null,Object(U["toDisplayString"])(null===(p=e.currentGroup)||void 0===p?void 0:p.name),1),Object(U["createElementVNode"])("li",null,[Object(U["createElementVNode"])("label",null,Object(U["toDisplayString"])(e.$t("TUIContact.群ID"))+":",1),Object(U["createElementVNode"])("span",null,Object(U["toDisplayString"])(null===(m=e.currentGroup)||void 0===m?void 0:m.groupID),1)]),Object(U["createElementVNode"])("li",null,[Object(U["createElementVNode"])("label",null,Object(U["toDisplayString"])(e.$t("TUIContact.群类型"))+":",1),Object(U["createElementVNode"])("span",null,Object(U["toDisplayString"])(null===(b=e.currentGroup)||void 0===b?void 0:b.type),1)])]),Object(U["createElementVNode"])("img",{class:"avatar",src:(null===(h=e.currentGroup)||void 0===h?void 0:h.avatar)||"https://web.sdk.qcloud.com/component/TUIKit/assets/group_avatar.png",onerror:"this.src='https://web.sdk.qcloud.com/im/demo/TUIkit/web/img/constomer.svg'"},null,8,Qm)]),e.isNeedPermission?(Object(U["openBlock"])(),Object(U["createElementBlock"])("main",Xm,[Object(U["createElementVNode"])("label",null,Object(U["toDisplayString"])(e.$t("TUIContact.请填写验证信息")),1),Object(U["withDirectives"])(Object(U["createElementVNode"])("textarea",{"onUpdate:modelValue":t[10]||(t[10]=t=>e.currentGroup.applyMessage=t),disabled:e.currentGroup.apply},null,8,Zm),[[U["vModelText"],e.currentGroup.applyMessage]])])):Object(U["createCommentVNode"])("",!0),Object(U["createElementVNode"])("footer",Jm,[e.currentGroup.apply&&"AVChatRoom"===e.currentGroup.type?(Object(U["openBlock"])(),Object(U["createElementBlock"])("p",eb,Object(U["toDisplayString"])(e.$t("TUIContact.已加入")),1)):e.currentGroup.apply?(Object(U["openBlock"])(),Object(U["createElementBlock"])("p",tb,Object(U["toDisplayString"])(e.$t("TUIContact.已申请")),1)):e.isNeedPermission?(Object(U["openBlock"])(),Object(U["createElementBlock"])("button",{key:2,class:"btn btn-default",onClick:t[11]||(t[11]=t=>e.join(e.currentGroup))},Object(U["toDisplayString"])(e.$t("TUIContact.申请加入")),1)):e.currentGroup.selfInfo.userID?e.currentGroup.selfInfo.userID&&"Owner"===e.currentGroup.selfInfo.role&&"Private"!==e.currentGroup.type?(Object(U["openBlock"])(),Object(U["createElementBlock"])("button",{key:4,class:"btn btn-cancel",onClick:t[13]||(t[13]=t=>e.dismiss(e.currentGroup))},Object(U["toDisplayString"])(e.$t("TUIContact.解散群聊")),1)):(Object(U["openBlock"])(),Object(U["createElementBlock"])("button",{key:5,class:"btn btn-cancel",onClick:t[14]||(t[14]=t=>e.quit(e.currentGroup))},Object(U["toDisplayString"])(e.$t("TUIContact.退出群聊")),1)):(Object(U["openBlock"])(),Object(U["createElementBlock"])("button",{key:3,class:"btn btn-default",onClick:t[12]||(t[12]=t=>e.join(e.currentGroup))},Object(U["toDisplayString"])(e.$t("TUIContact.加入群聊")),1)),e.currentGroup.selfInfo.userID?(Object(U["openBlock"])(),Object(U["createElementBlock"])("button",{key:6,class:"btn btn-default",onClick:t[15]||(t[15]=t=>e.enter(e.currentGroup.groupID,"GROUP"))},Object(U["toDisplayString"])(e.$t("TUIContact.进入群聊")),1)):Object(U["createCommentVNode"])("",!0)])])):null!==(v=e.currentFriend)&&void 0!==v&&v.userID&&"friend"===e.columnName?(Object(U["openBlock"])(),Object(U["createElementBlock"])("div",nb,[Object(U["createElementVNode"])("header",ob,[Object(U["createElementVNode"])("ul",ab,[Object(U["createElementVNode"])("h1",null,Object(U["toDisplayString"])((null===(f=e.currentFriend)||void 0===f||null===(f=f.profile)||void 0===f?void 0:f.nick)||(null===(g=e.currentFriend)||void 0===g?void 0:g.userID)),1),Object(U["createElementVNode"])("li",null,[t[20]||(t[20]=Object(U["createElementVNode"])("label",null,"ID:",-1)),Object(U["createElementVNode"])("span",null,Object(U["toDisplayString"])(null===(O=e.currentFriend)||void 0===O||null===(O=O.profile)||void 0===O?void 0:O.userID),1)]),Object(U["createElementVNode"])("li",null,[Object(U["createElementVNode"])("label",null,Object(U["toDisplayString"])(e.$t("TUIContact.个性签名"))+":",1),Object(U["createElementVNode"])("span",null,Object(U["toDisplayString"])(null===(j=e.currentFriend)||void 0===j||null===(j=j.profile)||void 0===j?void 0:j.selfSignature),1)])]),Object(U["createElementVNode"])("img",{class:"avatar",src:(null===(y=e.currentFriend)||void 0===y||null===(y=y.profile)||void 0===y?void 0:y.avatar)||"https://web.sdk.qcloud.com/component/TUIKit/assets/avatar_21.png",onerror:"this.src='https://web.sdk.qcloud.com/component/TUIKit/assets/avatar_21.png'"},null,8,ib)]),Object(U["createElementVNode"])("footer",rb,[Object(U["createElementVNode"])("button",{class:"btn btn-default",onClick:t[16]||(t[16]=t=>e.enter(e.currentFriend.userID,"C2C"))},Object(U["toDisplayString"])(e.$t("TUIContact.发送消息")),1)])])):"system"===e.columnName?(Object(U["openBlock"])(),Object(U["createElementBlock"])("div",sb,[e.env.isH5?Object(U["createCommentVNode"])("",!0):(Object(U["openBlock"])(),Object(U["createElementBlock"])("header",lb,[Object(U["createElementVNode"])("h1",null,Object(U["toDisplayString"])(e.$t("TUIContact.系统通知")),1)])),Object(U["createVNode"])(r,{isH5:e.env.isH5,data:e.systemMessageList,types:e.types,onApplication:e.handleGroupApplication},null,8,["isH5","data","types","onApplication"])])):Object(U["renderSlot"])(e.$slots,"default",{key:4},void 0,!0)],512),[[U["vShow"],!(null===(I=e.currentGroup)||void 0===I||!I.groupID)||!(null===(C=e.currentFriend)||void 0===C||!C.userID)||"system"===e.columnName]])],2)]}),_:3},8,["onBeforeLeave"])}var db=n("44a4"),ub=n.n(db);const pb={class:"list"},mb={key:0,class:"btn-box"},bb=["onClick"],hb=["onClick"],vb={key:2};function fb(e,t,n,o,a,i){return Object(U["openBlock"])(),Object(U["createElementBlock"])("div",{class:Object(U["normalizeClass"])(["message-system",[e.isH5?"message-system-h5":""]])},[Object(U["createElementVNode"])("ul",pb,[(Object(U["openBlock"])(!0),Object(U["createElementBlock"])(U["Fragment"],null,Object(U["renderList"])(e.messageList,(n,o)=>{var a;return Object(U["openBlock"])(),Object(U["createElementBlock"])("li",{key:o},[n.type===e.types.MSG_GRP_TIP||n.type===e.types.MSG_GRP_SYS_NOTICE?(Object(U["openBlock"])(),Object(U["createElementBlock"])(U["Fragment"],{key:0},[t[0]||(t[0]=Object(U["createElementVNode"])("i",{class:"icon icon-system"},null,-1)),Object(U["createElementVNode"])("span",null,Object(U["toDisplayString"])(e.translateGroupSystemNotice(n)),1),1===(null===n||void 0===n||null===(a=n.payload)||void 0===a?void 0:a.operationType)?(Object(U["openBlock"])(),Object(U["createElementBlock"])("div",mb,[n.isHandle?Object(U["createCommentVNode"])("",!0):(Object(U["openBlock"])(),Object(U["createElementBlock"])("button",{key:0,class:"btn btn-default",onClick:t=>e.handleApplication("Agree",n)},Object(U["toDisplayString"])(e.$t("TUIContact.接受")),9,bb)),n.isHandle?(Object(U["openBlock"])(),Object(U["createElementBlock"])("span",vb,Object(U["toDisplayString"])(e.$t("TUIContact.已处理")),1)):(Object(U["openBlock"])(),Object(U["createElementBlock"])("button",{key:1,class:"btn btn-cancel",onClick:t=>e.handleApplication("Reject",n)},Object(U["toDisplayString"])(e.$t("TUIContact.拒绝")),9,hb))])):Object(U["createCommentVNode"])("",!0)],64)):Object(U["createCommentVNode"])("",!0)])}),128))])],2)}var gb=Object(U["defineComponent"])({props:{data:{type:Array,default:()=>[]},types:{type:Object,default:()=>({})},isH5:{type:Boolean,default:!1}},setup(e,t){const n=Object(U["reactive"])({messageList:[],types:{},isHandle:!1});Object(U["watchEffect"])(()=>{n.messageList=e.data,n.types=e.types});const o=(e,n)=>{const o={handleAction:e,message:n};t.emit("application",o),n.isHandle=!0};return{...Object(U["toRefs"])(n),translateGroupSystemNotice:vn["e"],handleApplication:o}}});n("10d3");const Ob=se()(gb,[["render",fb],["__scopeId","data-v-4cbbc4fe"]]);var jb=Ob;const yb=Object(U["defineComponent"])({name:"TUIContact",components:{MessageSystem:jb},props:{displayOnlineStatus:{type:Boolean,default:!1}},setup(e,t){const n=yb.TUIServer,{t:o}=n.TUICore.config.i18n.useI18n(),a=Object(U["reactive"])({groupList:[],searchGroup:{},searchID:"",currentGroup:null,systemConversation:{unreadCount:0},systemMessageList:[],columnName:"",types:n.TUICore.TIM.TYPES,isSearch:!1,env:n.TUICore.TUIEnv,friendList:[],userIDList:[],currentFriend:{},displayOnlineStatus:!1,onlineStatus:!1,userStatusList:new zi.a});u()(n).call(n,a),Object(U["watch"])(()=>e.displayOnlineStatus,async(e,t)=>{e!==t&&(a.displayOnlineStatus=e,n.handleUserStatus(a.displayOnlineStatus,a.userIDList))},{immediate:!0}),Object(U["watch"])(()=>a.userIDList,(e,t)=>{Object(vn["d"])(e,t)||n.handleUserStatus(a.displayOnlineStatus,a.userIDList)});const i=Object(U["computed"])(()=>{const e=a.currentGroup.selfInfo.userID,t=a.currentGroup.joinOption===n.TUICore.TIM.TYPES.JOIN_OPTIONS_NEED_PERMISSION;return!e&&t}),r=async e=>{switch(a.columnName){case"group":a.currentGroup=e;break;case"friend":a.currentFriend=e;break}a.isSearch&&(a.currentGroup=e)},s=async e=>{var t;if(a.currentGroup=null,ub()(t=a.searchID).call(t))try{var i;await n.searchGroupByID(ub()(i=a.searchID).call(i))}catch(r){const e=o("TUIContact.该群组不存在");Object(vn["b"])(e,a.env)}},l=async e=>{const t={groupID:e.groupID,applyMessage:e.applyMessage||o("TUIContact.加群"),type:null===e||void 0===e?void 0:e.type};await n.joinGroup(t),a.currentGroup.apply=!0},c=async e=>{await n.quitGroup(e.groupID),a.currentGroup=null},d=async(e,t)=>{const o=`${t}${e}`;n.TUICore.TUIServer.TUIConversation.getConversationProfile(o).then(e=>{n.TUICore.TUIServer.TUIConversation.handleCurrentConversation(e.data.conversation),f()})},p=e=>{n.dismissGroup(e.groupID),a.currentGroup=null},m=async e=>{var t;"system"!==a.columnName&&"system"===e&&null!==(t=a.systemConversation)&&void 0!==t&&t.conversationID&&(await n.getSystemMessageList(),await n.setMessageRead()),a.currentGroup={},"group"===a.columnName||"group"!==e||a.env.isH5?a.currentGroup={}:a.currentGroup=a.groupList[0],a.searchID="",a.columnName=a.columnName===e?"":e},b=()=>{a.isSearch=!a.isSearch,a.columnName="",a.searchID="",a.searchGroup={},a.currentGroup={}},h=()=>{a.isSearch=!1,a.columnName="",a.searchID="",a.searchGroup={},a.currentGroup={}},v=e=>{n.handleGroupApplication(e)},f=()=>{a.currentGroup={},a.currentFriend={},a.columnName=""},g=e=>{n.TUICore.getUserStatusList(e)};return{...Object(U["toRefs"])(a),handleListItem:r,handleSearchGroup:s,join:l,quit:c,dismiss:p,isNeedPermission:i,select:m,handleGroupApplication:v,toggleSearch:b,init:h,back:f,enter:d,getUserStatusList:g}}});var Ib=yb;n("448c");const Cb=se()(Ib,[["render",cb],["__scopeId","data-v-47374bc9"]]);var Eb=Cb;const kb=e=>{Eb.TUIServer=_b.server,e.component(_b.name,Eb)},wb=e=>(_b.server=new cm(e),e.component(_b.name,_b),_b),_b={name:"TUIContact",component:Eb,server:cm,install:kb,plugin:wb};var Sb=_b;class Tb extends A{constructor(e){var t;super(),Object(c["a"])(this,"TUICore",void 0),Object(c["a"])(this,"store",void 0),Object(c["a"])(this,"currentStore",{}),Object(c["a"])(this,"storeCallback",void 0),this.TUICore=e,this.bindTIMEvent(),this.store=e.setComponentStore("TUISearch",{},u()(t=this.updateStore).call(t,this))}destroyed(){this.unbindTIMEvent()}updateStore(e,t){var n;null!==this&&void 0!==this&&null!==(n=this.currentStore)&&void 0!==n&&null!==(n=n.conversationData)&&void 0!==n&&n.list&&(this.currentStore.conversationData.list=e.conversationList)}handlePromiseCallback(e){return new f.a((t,n)=>{const o={TUIName:"TUISearch",callback:()=>{e&&e(t,n)}};this.TUICore.setAwaitFunc(o.TUIName,o.callback)})}bindTIMEvent(){this.TUICore.tim.on(this.TUICore.TIM.EVENT.FRIEND_LIST_UPDATED,this.handleFriendListUpdated,this)}unbindTIMEvent(){this.TUICore.tim.off(this.TUICore.TIM.EVENT.FRIEND_LIST_UPDATED,this.handleFriendListUpdated)}handleFriendListUpdated(e){var t,n;this.currentStore.searchUserList=l()(t=e.data).call(t,e=>null===e||void 0===e?void 0:e.profile),this.currentStore.allUserList=l()(n=e.data).call(n,e=>null===e||void 0===e?void 0:e.profile)}async getConversationProfile(e){return this.handlePromiseCallback(async(t,n)=>{try{const n=await this.TUICore.tim.getConversationProfile(e);t(n)}catch(o){n(o)}})}async getUserProfile(e){return this.handlePromiseCallback(async(t,n)=>{try{const n=await this.TUICore.tim.getUserProfile({userIDList:e});t(n)}catch(o){n(o)}})}async getFriendList(){return this.handlePromiseCallback(async(e,t)=>{try{var n,o;const t=await this.TUICore.tim.getFriendList();this.currentStore.searchUserList=l()(n=t.data).call(n,e=>null===e||void 0===e?void 0:e.profile),this.currentStore.allUserList=l()(o=t.data).call(o,e=>null===e||void 0===e?void 0:e.profile),e(t)}catch(a){t(a)}})}async bind(e){return this.currentStore=e,await this.getFriendList(),this.currentStore}}const Lb={key:0},Ab={key:0,class:"icon icon-c2c"};function Db(e,t,n,o,a,i){const r=Object(U["resolveComponent"])("Transfer"),s=Object(U["resolveComponent"])("CreateGroup"),l=Object(U["resolveComponent"])("Dialog");return Object(U["openBlock"])(),Object(U["createElementBlock"])("div",{class:Object(U["normalizeClass"])(["TUI-search",[e.env.isH5?"TUI-search-H5":""]]),ref:"dialog"},[Object(U["createElementVNode"])("header",{onClick:t[2]||(t[2]=(...t)=>e.toggleOptionalShow&&e.toggleOptionalShow(...t))},[t[5]||(t[5]=Object(U["createElementVNode"])("i",{class:"plus"},null,-1)),e.env.isH5?(Object(U["openBlock"])(),Object(U["createElementBlock"])("h1",Lb,Object(U["toDisplayString"])(e.$t("TUISearch.发起会话")),1)):Object(U["createCommentVNode"])("",!0),Object(U["withDirectives"])(Object(U["createElementVNode"])("ul",null,[Object(U["createElementVNode"])("li",null,[e.env.isH5?(Object(U["openBlock"])(),Object(U["createElementBlock"])("i",Ab)):Object(U["createCommentVNode"])("",!0),Object(U["createElementVNode"])("h1",{onClick:t[0]||(t[0]=t=>e.showOpen("isC2C"))},Object(U["toDisplayString"])(e.$t("TUISearch.发起单聊")),1)]),Object(U["createElementVNode"])("li",null,[t[4]||(t[4]=Object(U["createElementVNode"])("i",{class:"icon icon-group"},null,-1)),Object(U["createElementVNode"])("h1",{onClick:t[1]||(t[1]=t=>e.showOpen("isGroup"))},Object(U["toDisplayString"])(e.$t("TUISearch.发起群聊")),1)])],512),[[U["vShow"],e.optionalShow]])]),Object(U["createVNode"])(l,{show:e.open,isH5:e.env.isH5,isHeaderShow:!1,isFooterShow:!1,background:!1,"onUpdate:show":t[3]||(t[3]=t=>e.open=t)},{default:Object(U["withCtx"])(()=>[1===e.step?(Object(U["openBlock"])(),Object(U["createBlock"])(r,{key:0,isSearch:e.needSearch,title:e.showTitle,list:e.searchUserList,isH5:e.env.isH5,isRadio:"isC2C"===e.createConversationType,onSearch:e.handleSearch,onSubmit:e.submit,onCancel:e.toggleOpen},null,8,["isSearch","title","list","isH5","isRadio","onSearch","onSubmit","onCancel"])):(Object(U["openBlock"])(),Object(U["createBlock"])(s,{key:1,onSubmit:e.create,onCancel:e.toggleOpen,isH5:e.env.isH5},null,8,["onSubmit","onCancel","isH5"]))]),_:1},8,["show","isH5"])],2)}const Nb={class:"group-box"},Ub={key:0},Bb={key:1},Mb={key:0,class:"group-list"},Vb={class:"group-list-item"},Rb=["src"],xb={class:"group-list-item"},Pb={class:"content"},Gb={class:"group-list-item"},Fb={class:"content"},Hb={class:"group-list-introduction"},zb={class:"group-list-item"},Kb={key:0,class:"select"},Yb=["onClick"],Wb={class:"select-item-header"},$b={class:"left"},qb=["src"],Qb={class:"select-item-label"},Xb={key:0,class:"icon icon-selected"},Zb={class:"select-item-detail"},Jb=["href"],eh={class:"content"},th={key:0,class:"group-h5-list-item-introduction"},nh={class:"introduction-name"},oh={class:"introduction-detail"},ah=["href"],ih={key:1,class:"group-list group-list-edit"},rh=["placeholder"],sh={key:1,class:"select"},lh=["onClick"],ch={class:"select-item-header"},dh={class:"left"},uh=["src"],ph={class:"select-item-label"},mh={key:0,class:"icon icon-selected"},bh={class:"select-item-detail"},hh=["href"],vh={class:"group-profile-footer"},fh=["disabled"];function gh(e,t,n,o,a,i){return Object(U["openBlock"])(),Object(U["createElementBlock"])("div",{class:Object(U["normalizeClass"])(["group",[e.isH5?"group-h5":""]])},[Object(U["createElementVNode"])("div",Nb,[Object(U["createElementVNode"])("header",null,[e.isEdit?(Object(U["openBlock"])(),Object(U["createElementBlock"])("h1",Bb,Object(U["toDisplayString"])(e.$t("TUISearch."+e.editConfig.title)),1)):(Object(U["openBlock"])(),Object(U["createElementBlock"])("h1",Ub,Object(U["toDisplayString"])(e.$t("TUISearch.发起群聊")),1)),Object(U["createElementVNode"])("i",{class:Object(U["normalizeClass"])(["icon",[e.isH5?"icon-back":"icon-close"]]),onClick:t[0]||(t[0]=(...t)=>e.cancel&&e.cancel(...t))},null,2)]),e.isEdit?(Object(U["openBlock"])(),Object(U["createElementBlock"])("div",ih,["input"===e.editConfig.type?Object(U["withDirectives"])((Object(U["openBlock"])(),Object(U["createElementBlock"])("input",{key:0,type:"text","onUpdate:modelValue":t[6]||(t[6]=t=>e.editConfig.value=t),placeholder:e.$t("TUISearch."+e.editConfig.placeholder)},null,8,rh)),[[U["vModelText"],e.editConfig.value]]):(Object(U["openBlock"])(),Object(U["createElementBlock"])("ul",sh,[(Object(U["openBlock"])(!0),Object(U["createElementBlock"])(U["Fragment"],null,Object(U["renderList"])(e.type,(t,n)=>(Object(U["openBlock"])(),Object(U["createElementBlock"])("li",{class:Object(U["normalizeClass"])(["select-item",[e.editConfig.value===t.type&&"selected"]]),key:n,onClick:n=>e.selectedEdit(t)},[Object(U["createElementVNode"])("main",null,[Object(U["createElementVNode"])("div",ch,[Object(U["createElementVNode"])("aside",dh,[Object(U["createElementVNode"])("img",{class:"icon",src:t.icon},null,8,uh),Object(U["createElementVNode"])("span",ph,Object(U["toDisplayString"])(t.label),1)]),e.editConfig.value===t.type?(Object(U["openBlock"])(),Object(U["createElementBlock"])("i",mh)):Object(U["createCommentVNode"])("",!0)]),Object(U["createElementVNode"])("span",bh,Object(U["toDisplayString"])(e.$t("TUISearch."+t.detail)),1),Object(U["createElementVNode"])("a",{href:e.Link.product.url,target:"view_window"},Object(U["toDisplayString"])(e.$t("TUISearch."+t.src)),9,hh)])],10,lh))),128))]))])):(Object(U["openBlock"])(),Object(U["createElementBlock"])("ul",Mb,[Object(U["createElementVNode"])("li",Vb,[Object(U["createElementVNode"])("label",null,Object(U["toDisplayString"])(e.$t("TUISearch.群头像")),1),Object(U["createElementVNode"])("img",{class:"icon",src:e.profile.avatar},null,8,Rb)]),Object(U["createElementVNode"])("ul",null,[Object(U["createElementVNode"])("li",xb,[Object(U["createElementVNode"])("label",null,Object(U["toDisplayString"])(e.$t("TUISearch.群名称")),1),e.isH5?(Object(U["openBlock"])(),Object(U["createElementBlock"])("span",{key:1,class:"group-h5-list-item-content",onClick:t[2]||(t[2]=t=>e.edit("name"))},[Object(U["createElementVNode"])("p",Pb,Object(U["toDisplayString"])(e.profile.name),1),t[9]||(t[9]=Object(U["createElementVNode"])("i",{class:"icon icon-right"},null,-1))])):Object(U["withDirectives"])((Object(U["openBlock"])(),Object(U["createElementBlock"])("input",{key:0,type:"text","onUpdate:modelValue":t[1]||(t[1]=t=>e.profile.name=t),placeholder:"请输入群名称"},null,512)),[[U["vModelText"],e.profile.name]])]),Object(U["createElementVNode"])("li",Gb,[Object(U["createElementVNode"])("label",null,[Object(U["createTextVNode"])(Object(U["toDisplayString"])(e.$t("TUISearch.群ID")),1),Object(U["createElementVNode"])("text",null,"("+Object(U["toDisplayString"])(e.$t("TUISearch.选填"))+")",1)]),e.isH5?(Object(U["openBlock"])(),Object(U["createElementBlock"])("span",{key:1,class:"group-h5-list-item-content",onClick:t[4]||(t[4]=t=>e.edit("groupID"))},[Object(U["createElementVNode"])("p",Fb,Object(U["toDisplayString"])(e.profile.groupID),1),t[10]||(t[10]=Object(U["createElementVNode"])("i",{class:"icon icon-right"},null,-1))])):Object(U["withDirectives"])((Object(U["openBlock"])(),Object(U["createElementBlock"])("input",{key:0,type:"text","onUpdate:modelValue":t[3]||(t[3]=t=>e.profile.groupID=t)},null,512)),[[U["vModelText"],e.profile.groupID]])]),Object(U["createElementVNode"])("li",Hb,[Object(U["createElementVNode"])("div",zb,[Object(U["createElementVNode"])("label",null,Object(U["toDisplayString"])(e.$t("TUISearch.群类型")),1),e.isH5?(Object(U["openBlock"])(),Object(U["createElementBlock"])("span",{key:1,class:"group-h5-list-item-content",onClick:t[5]||(t[5]=t=>e.edit("type"))},[Object(U["createElementVNode"])("p",eh,Object(U["toDisplayString"])(e.groupTypeDetail.label),1),t[11]||(t[11]=Object(U["createElementVNode"])("i",{class:"icon icon-right"},null,-1))])):(Object(U["openBlock"])(),Object(U["createElementBlock"])("ul",Kb,[(Object(U["openBlock"])(!0),Object(U["createElementBlock"])(U["Fragment"],null,Object(U["renderList"])(e.type,(t,n)=>(Object(U["openBlock"])(),Object(U["createElementBlock"])("li",{class:Object(U["normalizeClass"])(["select-item",[e.profile.type===t.type&&"selected"]]),key:n,onClick:n=>e.selected(t)},[Object(U["createElementVNode"])("main",null,[Object(U["createElementVNode"])("div",Wb,[Object(U["createElementVNode"])("aside",$b,[Object(U["createElementVNode"])("img",{class:"icon",src:t.icon},null,8,qb),Object(U["createElementVNode"])("span",Qb,Object(U["toDisplayString"])(t.label),1)]),e.profile.type===t.type?(Object(U["openBlock"])(),Object(U["createElementBlock"])("i",Xb)):Object(U["createCommentVNode"])("",!0)]),Object(U["createElementVNode"])("span",Zb,Object(U["toDisplayString"])(e.$t("TUISearch."+t.detail)),1),Object(U["createElementVNode"])("a",{href:e.Link.product.url,target:"view_window"},Object(U["toDisplayString"])(e.$t("TUISearch."+t.src)),9,Jb)])],10,Yb))),128))]))]),e.isH5?(Object(U["openBlock"])(),Object(U["createElementBlock"])("article",th,[Object(U["createElementVNode"])("label",nh,Object(U["toDisplayString"])(e.groupTypeDetail.label)+":",1),Object(U["createElementVNode"])("span",oh,Object(U["toDisplayString"])(e.$t("TUISearch."+e.groupTypeDetail.detail)),1),Object(U["createElementVNode"])("a",{href:e.Link.product.url,target:"view_window"},Object(U["toDisplayString"])(e.$t("TUISearch."+e.groupTypeDetail.src)),9,ah)])):Object(U["createCommentVNode"])("",!0)])])])),Object(U["createElementVNode"])("footer",vh,[e.isEdit||e.isH5?Object(U["createCommentVNode"])("",!0):(Object(U["openBlock"])(),Object(U["createElementBlock"])("button",{key:0,class:"btn-default",onClick:t[7]||(t[7]=(...t)=>e.cancel&&e.cancel(...t))},Object(U["toDisplayString"])(e.$t("TUISearch.取消")),1)),Object(U["createElementVNode"])("button",{class:"btn-submit",onClick:t[8]||(t[8]=t=>e.submit(e.profile)),disabled:""===e.profile.name&&!e.isEdit},Object(U["toDisplayString"])(e.$t("TUISearch.创建")),9,fh)])])],2)}const Oh=Object(U["defineComponent"])({name:"group",props:{isH5:{type:Boolean,default:()=>!1}},setup(e,t){const n=Object(U["reactive"])({profile:{groupID:"",name:"",type:"",avatar:"",introduction:"",notification:"",joinOption:""},editConfig:{title:"",value:"",key:"",type:"",placeholder:""},isEdit:!1,type:[{icon:"https://web.sdk.qcloud.com/im/assets/images/Public.svg",label:"陌生人社交群(Public)",type:Oh.TUIServer.TUICore.TIM.TYPES.GRP_PUBLIC,detail:"类似 QQ 群,创建后群主可以指定群管理员,用户搜索群 ID 发起加群申请后,需要群主或管理员审批通过才能入群。详见",src:"产品文档"},{icon:"https://web.sdk.qcloud.com/im/assets/images/Meeting.svg",label:"临时会议群(Meeting)",type:Oh.TUIServer.TUICore.TIM.TYPES.GRP_MEETING,detail:"创建后可以随意进出,且支持查看入群前消息;适合用于音视频会议场景、在线教育场景等与实时音视频产品结合的场景。详见",src:"产品文档"},{icon:"https://web.sdk.qcloud.com/im/assets/images/Work.svg",label:"好友工作群(Work)",type:Oh.TUIServer.TUICore.TIM.TYPES.GRP_WORK,detail:"类似普通微信群,创建后仅支持已在群内的好友邀请加群,且无需被邀请方同意或群主神奇。详见",src:"产品文档"},{icon:"https://web.sdk.qcloud.com/im/assets/images/AVChatroom.svg",label:"直播群(AVChatroom)",type:Oh.TUIServer.TUICore.TIM.TYPES.GRP_AVCHATROOM,detail:"创建后可以随意进出,没有群成员数量上限,但不支持历史消息存储;适合与直播产品结合,用于弹幕聊天场景。详见",src:"产品文档"}]});n.profile.type=n.type[0].type,n.profile.avatar=n.type[0].icon;const o=Object(U["computed"])(()=>{var e;return y()(e=n.type).call(e,e=>e.type===n.profile.type)[0]}),a=e=>{n.profile.type!==e.type&&(n.profile.type=e.type,n.profile.avatar=e.icon)},i=e=>{if(n.isEdit)return n.profile[n.editConfig.key]=n.editConfig.value,n.isEdit=!n.isEdit;const o={name:e.name,type:e.type,groupID:e.groupID,avatar:e.avatar};t.emit("submit",o)},r=()=>{if(n.isEdit)return n.isEdit=!n.isEdit;t.emit("cancel")},s=e=>{switch(n.isEdit=!n.isEdit,n.editConfig.key=e,n.editConfig.value=n.profile[e],e){case"name":n.editConfig.title="设置群名称",n.editConfig.placeholder="请输入群名称",n.editConfig.type="input";break;case"groupID":n.editConfig.title="设置群ID",n.editConfig.placeholder="请输入群ID",n.editConfig.type="input";break;case"type":n.editConfig.title="选择群类型",n.editConfig.type="select";break}},l=e=>{n.editConfig.value!==e.type&&(n.editConfig.value=e.type)};return{...Object(U["toRefs"])(n),selected:a,submit:i,cancel:r,Link:Fi,edit:s,selectedEdit:l,groupTypeDetail:o}}});var jh=Oh;n("18c1");const yh=se()(jh,[["render",gh],["__scopeId","data-v-279f8f91"]]);var Ih=yh,Ch=Ih;const Eh=Object(U["defineComponent"])({name:"TUISearch",components:{Transfer:Na,Dialog:Mi,CreateGroup:Ch},setup(e){var t,n;const o=null===Eh||void 0===Eh?void 0:Eh.TUIServer,{t:a}=o.TUICore.config.i18n.useI18n(),i=Object(U["reactive"])({open:!1,searchUserID:"",selectedList:[],allUserList:[],searchUserList:[],step:1,group:{groupID:"",name:"",type:"",avatar:"",introduction:"",notification:"",joinOption:"",memberList:[{userID:""}]},showTitle:"",createConversationType:"",env:o.TUICore.TUIEnv,optionalShow:!o.TUICore.TUIEnv.isH5,needSearch:!o.TUICore.isOfficial});u()(o).call(o,i);const r=null===o||void 0===o||null===(t=o.TUICore)||void 0===t||null===(t=t.TUIServer)||void 0===t?void 0:t.TUIGroup;Ch.TUIServer=o;const s=(null===(n=window)||void 0===n||null===(n=n.TUIKitTUICore)||void 0===n?void 0:n.isOfficial)&&Jt["c"]&&Object(Jt["c"])()||{},c=Object(U["ref"])();Object(hn["onClickOutside"])(c,()=>{i.env.isH5&&(i.optionalShow=!1,i.searchUserList=[...i.allUserList])});const d=()=>{i.group={groupID:"",name:"",type:"",avatar:"",introduction:"",notification:"",joinOption:"",memberList:[{userID:""}]}},p=()=>{i.open=!i.open,i.open||(i.searchUserID="",i.step=1,d())},m=e=>{if(i.createConversationType===Qt["a"].typeC2C){const{userID:t}=e[0];h(t,"C2C"),p()}else{if(!Ch.TUIServer){const e=a("TUISearch.创建群聊,请注册 TUIGroup 模块");Object(vn["b"])(e,i.env)}d(),i.group.memberList=l()(e).call(e,e=>({userID:e.userID})),i.step=2}i.searchUserList=[...i.allUserList]},b=async e=>{e.type===o.TUICore.TIM.TYPES.GRP_PUBLIC&&(i.group.joinOption=o.TUICore.TIM.TYPES.JOIN_OPTIONS_NEED_PERMISSION);const t={...i.group,...e};e.type===o.TUICore.TIM.TYPES.GRP_AVCHATROOM&&(delete t.memberList,delete t.joinOption);try{var n;const l=await r.createGroup(t),c=a("TUISearch.创建成功");Object(vn["c"])(c,i.env),(null===(n=window)||void 0===n||null===(n=n.TUIKitTUICore)||void 0===n?void 0:n.isOfficial)&&(null===s||void 0===s?void 0:s.commit)&&(null===s||void 0===s||s.commit("handleTask",3)),p(),e.type===o.TUICore.TIM.TYPES.GRP_AVCHATROOM&&r.joinGroup({groupID:l.data.group.groupID,applyMessage:"",type:l.data.group.type}),h(l.data.group.groupID,"GROUP")}catch(l){Object(vn["b"])(l,i.env)}},h=(e,t)=>{const n=`${t}${e}`;o.getConversationProfile(n).then(e=>{o.TUICore.TUIServer.TUIConversation.handleCurrentConversation(e.data.conversation),Zt.getInstance().reportEvent({name:"conversationType",ext1:"C2C"===t?"TypeC2C-success":"TypeGroup-success"})})},v=e=>{switch(i.open=!0,Zt.getInstance().reportEvent({name:"conversationType",ext1:"createConversation"}),i.searchUserList=[...i.allUserList],e){case"isC2C":return i.createConversationType=Qt["a"].typeC2C,i.showTitle=a("TUISearch.发起单聊"),Zt.getInstance().reportEvent({name:"conversationType",ext1:"createConversation-c2c"}),i.showTitle;case"isGroup":return i.createConversationType=Qt["a"].typeGroup,i.showTitle=a("TUISearch.发起群聊"),Zt.getInstance().reportEvent({name:"conversationType",ext1:"createConversation-group"}),i.showTitle}},f=()=>{i.env.isH5&&(i.optionalShow=!i.optionalShow)},g=async e=>{try{var t;const n=await o.getUserProfile([e]);if(!n.data.length)return Object(vn["b"])(a("TUISearch.该用户不存在"),i.env),void(i.searchUserList=[...i.allUserList]);i.searchUserList=n.data;const r=y()(t=i.allUserList).call(t,e=>e.userID===n.data[0].userID);i.allUserList=r.length?i.allUserList:[...i.allUserList,...i.searchUserList]}catch(n){return Object(vn["b"])(a("TUISearch.该用户不存在"),i.env),void(i.searchUserList=[...i.allUserList])}};return{...Object(U["toRefs"])(i),toggleOpen:p,handleSearch:g,submit:m,create:b,showOpen:v,toggleOptionalShow:f,dialog:c}}});var kh=Eh;n("23f8");const wh=se()(kh,[["render",Db],["__scopeId","data-v-8aa810f4"]]);var _h=wh;const Sh=e=>{_h.TUIServer=Lh.server,e.component(Lh.name,_h)},Th=e=>(Lh.server=new Tb(e),e.component(Lh.name,Lh),Lh),Lh={name:"TUISearch",component:_h,server:Tb,install:Sh,plugin:Th};var Ah=Lh;const Dh=[ad,Su,qp,sm,Sb,Ah],Nh=e=>{a()(Dh).call(Dh,t=>{t.install(e)})},Uh=e=>{a()(Dh).call(Dh,t=>{t.plugin(e)})},Bh={name:"TUIComponents",version:"1.0.0",TUIChat:ad,TUIConversation:Su,TUIProfile:qp,TUIGroup:sm,TUIContact:Sb,TUISearch:Ah,install:Nh,plugin:Uh};var Mh=Bh,Vh=n("3581"),Rh=n.n(Vh),xh=n("de21"),Ph=n.n(xh);class Gh{static init(e){}install(e){}getInstance(){}login(e){return new f.a((e,t)=>{})}destroyed(){}component(e,t){}use(e,t){}setAwaitFunc(e,t){}setCommonStore(e){}setComponentStore(e,t,n){}getStore(){}storeCommonListener(e,t){}}n("d9e2");var Fh=n("c651"),Hh=n.n(Fh);class zh{setCommonStore(e){}setComponentStore(e,t,n){}storeCommonListener(e,t){}}class Kh extends zh{constructor(){super(),Object(c["a"])(this,"store",void 0),Object(c["a"])(this,"storeListener",void 0),this.storeListener={keys:[],callback:()=>{}},this.store={};const e={};this.store.common=new Proxy(e,{get:(e,t)=>e[t],set:(e,t,n)=>{var o;const a={};return m()(a,e),e[t]=n,e[t]!==a[t]&&T()(o=Hh()(this.storeListener)).call(o,t)>=0&&this.storeListener.callback(e[t],a[t]),e[t]}})}setCommonStore(e){var t;return a()(t=r()(e)).call(t,t=>{if(t in this.store.common)return new Error(t+" 在公共数据已存在,请重新设置");this.store.common[t]=e[t]}),this.store}setComponentStore(e,t,n){return e in this.store?new Error(e+" 该数据模块已存在,请重新设置"):this.store[e]=new Proxy(t,{get:(e,t)=>e[t],set:(e,t,o)=>{const a={};return m()(a,e),e[t]=o,e[t]!==a[t]&&n&&n(e,a),e}})}storeCommonListener(e,t){this.storeListener={keys:e,callback:t}}}Object.prototype.toString;const{isArray:Yh}=Array,Wh=e=>"function"===typeof e;class $h extends Gh{constructor(e){super(),Object(c["a"])(this,"isOfficial",!1),Object(c["a"])(this,"isIntl",!1),Object(c["a"])(this,"tim",void 0),Object(c["a"])(this,"TIM",void 0),Object(c["a"])(this,"isSDKReady",!1),Object(c["a"])(this,"store",void 0),Object(c["a"])(this,"TUIEnv",void 0),Object(c["a"])(this,"SDKAppID",void 0),Object(c["a"])(this,"installedPlugins",new J.a),Object(c["a"])(this,"config",{}),Object(c["a"])(this,"TUIServer",void 0),Object(c["a"])(this,"TUIComponents",new J.a),Object(c["a"])(this,"loginResolveRejectCache",void 0),this.loginResolveRejectCache=[],this.SDKAppID=e.SDKAppID,this.TUIServer={},this.store=new Kh,this.TIM=Xn["a"],window.TIM=Xn["a"],e.tim?window.TUIKit=e.tim:window.TUIKit=Xn["a"].create({SDKAppID:this.SDKAppID}),this.tim=window.TUIKit,this.tim.registerPlugin({"tim-upload-plugin":Rh.a}),this.tim.registerPlugin({"tim-profanity-filter-plugin":Ph.a}),this.bindTIMEvent(),this.TUIEnv=Object(L["b"])(),this.isOfficial=1400187352===this.SDKAppID||1400188366===this.SDKAppID}static init(e){const t=Zt.getInstance();$h.instance||($h.instance=new $h(e));const{isH5:n}=Object(L["b"])();return t.reportEvent({name:"SDKAppID",ext1:n?"IMTUIKitH5External":"IMTUIKitWebExternal",ext2:n?"IMTUIKitH5External":"IMTUIKitWebExternal",ext3:e.SDKAppID}),t.reportEvent({name:"time",ext1:"firstRunTime"}),window.TUIKitTUICore=$h.instance,$h.instance.use(L["d"]),$h.instance.use(L["e"]),$h.instance}install(e){var t,n;e.config.globalProperties.$TUIKit=this.getInstance();let o=!0;a()(t=this.installedPlugins).call(t,t=>{e.use(t),"TUIComponents"===t.name&&(o=!1)}),o&&a()(n=this.TUIComponents).call(n,t=>{e.component(t.name,t.component)}),Object(L["a"])(e)}getInstance(){return $h.instance}login(e){return new f.a((t,n)=>{this.tim.login(e).then(()=>{var o,a;return this.loginResolveRejectCache.push({resolve:t,reject:n}),$h.isLogin=!0,window._isTIMCallKit=!0,null===$h||void 0===$h||null===(o=$h.instance)||void 0===o||null===(o=o.TUIServer)||void 0===o||null===(o=o.TUICallKit)||void 0===o||o.init({SDKAppID:this.SDKAppID,userID:e.userID,userSig:e.userSig,tim:this.tim}),null!==$h&&void 0!==$h&&null!==(a=$h.instance)&&void 0!==a&&null!==(a=a.TUIServer)&&void 0!==a&&a.TUICallKit&&Zt.getInstance().reportEvent({name:"SDKAppID",ext1:"IMTUIKitWebExternal-call",ext2:"IMTUIKitWebExternal-call",ext3:this.SDKAppID}),null}).catch(e=>{n(e)})})}logout(){return new f.a((e,t)=>{this.tim.logout().then(t=>{this.isSDKReady=!1,$h.isLogin=!1,e(t)}).catch(e=>{t(e)})})}bindTIMEvent(){this.tim.on(Xn["a"].EVENT.SDK_READY,this.handleSDKReady,this)}unbindTIMEvent(){this.tim.off(Xn["a"].EVENT.SDK_READY,this.handleSDKReady)}handleSDKReady(){var e;this.isSDKReady=!0,this.handelAwaitFunc($h.TUIServerFunMap),a()(e=this.loginResolveRejectCache).call(e,({resolve:e})=>{e({msg:"登录成功,且SDK Ready"})})}handelAwaitFunc(e){const t=r()(this.TUIServer);for(let n=0;n0&&l()(o).call(o,e=>e()),null===e||void 0===e||e.delete(t[n])}return e}destroyed(){this.unbindTIMEvent(),this.isSDKReady=!1}component(e,t){const n=this.getInstance();return this.TUIServer||(this.TUIServer={}),this.TUIServer[e]=t.server,this.TUIComponents.has(t)?console.warn(e+" component has already been applied to target TUICore."):this.TUIComponents.add(t),n}use(e,t){const n=this.getInstance();return this.installedPlugins.has(e)?console.warn("Plugin has already been applied to target TUICore."):e&&Wh(null===e||void 0===e?void 0:e.plugin)?(this.installedPlugins.add(e),null===e||void 0===e||e.plugin(n,t)):Wh(e)?(this.installedPlugins.add(e),e(n,t)):console.warn('A plugin must either be a function or an object with an "plugin" function.'),n}usePlugin(e){var t;let n={};return a()(t=this.installedPlugins).call(t,t=>{t.name===e&&(n=t)}),n}setAwaitFunc(e,t){if(this.isSDKReady)t();else{$h.TUIServerFunMap||($h.TUIServerFunMap=new zi.a);const n=$h.TUIServerFunMap.get(e)||[];n.push(t),$h.TUIServerFunMap.set(e,n)}}setCommonStore(e){return this.store.setCommonStore(e)}setComponentStore(e,t,n){return this.store.setComponentStore(e,t,n)}getStore(){return this.store.store}storeCommonListener(e,t){return this.store.storeCommonListener(e,t)}}Object(c["a"])($h,"instance",void 0),Object(c["a"])($h,"isLogin",!1),Object(c["a"])($h,"TUIServerFunMap",void 0);var qh=n("bbb6");qh["b"]},fdc9:function(e,t,n){"use strict";var o=n("1344");const a=Object(o["a"])();t["a"]=a},fe1e:function(e,t,n){"use strict";n("a2b3")}});