hx-live-client-plus 1.0.48 → 1.0.49
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -61267,7 +61267,7 @@ const Fx = "/assets/img/meeting/share.png", H$ = "/assets/img/meeting/chat.png",
|
|
61267
61267
|
]);
|
61268
61268
|
};
|
61269
61269
|
}
|
61270
|
-
}, kq = /* @__PURE__ */ Qt(Tq, [["__scopeId", "data-v-68022380"]]), Cn = (i) => (hn("data-v-
|
61270
|
+
}, kq = /* @__PURE__ */ Qt(Tq, [["__scopeId", "data-v-68022380"]]), Cn = (i) => (hn("data-v-1f5f0060"), i = i(), fn(), i), Sq = {
|
61271
61271
|
class: /* @__PURE__ */ Ze(["meeting-room-top-bar"])
|
61272
61272
|
}, Cq = { class: "bar-group" }, xq = /* @__PURE__ */ Cn(() => /* @__PURE__ */ P("div", { class: "meeting-theme" }, [
|
61273
61273
|
/* @__PURE__ */ P("div", { class: "meeting-theme-logo" }),
|
@@ -63642,7 +63642,7 @@ const Fx = "/assets/img/meeting/share.png", H$ = "/assets/img/meeting/chat.png",
|
|
63642
63642
|
be(kq, { onUpdateNameConfirm: Qh })
|
63643
63643
|
], 512));
|
63644
63644
|
}
|
63645
|
-
}, Tu = /* @__PURE__ */ Qt(mz, [["__scopeId", "data-v-
|
63645
|
+
}, Tu = /* @__PURE__ */ Qt(mz, [["__scopeId", "data-v-1f5f0060"]]), qm = {
|
63646
63646
|
__name: "LiveMulti",
|
63647
63647
|
props: {
|
63648
63648
|
isEnterDialogShow: {
|
@@ -325,7 +325,7 @@ a=extmap-allow-mixed`)!==-1){var r=n.sdp.split(`
|
|
325
325
|
会议ID:${e.meetingNum}
|
326
326
|
会议链接:${e.meetingH5Link}
|
327
327
|
小程序链接:${e.meetingWXLink}
|
328
|
-
会议发起人:${e.meetingCreator}`;navigator.clipboard.writeText(s).then(()=>{t.message("success","已复制到剪贴板")}).catch(a=>{t.message("error","复制失败,请重试")})}else t.message("warning","当前浏览器不支持复制内容")};return(s,a)=>(l.openBlock(),l.createElementBlock("div",{class:"dialog",style:l.normalizeStyle(e.position)},[l.createElementVNode("div",TU,[l.createElementVNode("div",kU,[SU,l.createElementVNode("div",CU,[l.createElementVNode("span",null,l.toDisplayString(i.meetingName),1)])]),l.createElementVNode("div",xU,[EU,l.createElementVNode("div",wU,[l.createElementVNode("span",DU,l.toDisplayString(i.meetingNum),1),l.createElementVNode("div",AU,[l.createElementVNode("img",{src:_U,alt:"",onClick:a[0]||(a[0]=o=>n("meeting-num"))})])])]),l.createElementVNode("div",NU,[PU,l.createElementVNode("div",IU,l.toDisplayString(i.meetingCreator),1)]),l.createElementVNode("div",{class:"dialog-inner-foot"},[l.createElementVNode("div",{class:"dialog-inner-foot-btn",onClick:r},"一键复制")])])],4))}},[["__scopeId","data-v-445aafba"]]),DC=i=>(l.pushScopeId("data-v-c7fcde8d"),i=i(),l.popScopeId(),i),MU={class:"dialog-inner"},RU={class:"mark-list"},LU=DC(()=>l.createElementVNode("div",{class:"mark-list-title"},"网络质量",-1)),BU={class:"mark-list-value"},UU={class:"mark-list"},FU=DC(()=>l.createElementVNode("div",{class:"mark-list-title"},"通话延迟",-1)),VU={class:"mark-list-value"},jU=Mt({__name:"NetworkDetect",props:{position:{type:Object,default:()=>({left:"0px",top:"25px"})},meetingQuality:{type:String},meetingTTL:{type:[String,Number]}},setup(i){const e=i;return(t,n)=>(l.openBlock(),l.createElementBlock("div",{class:"dialog",style:l.normalizeStyle(e.position)},[l.createElementVNode("div",MU,[l.createElementVNode("div",RU,[LU,l.createElementVNode("div",BU,[l.createElementVNode("span",null,l.toDisplayString(i.meetingQuality),1)])]),l.createElementVNode("div",UU,[FU,l.createElementVNode("div",VU,[l.createElementVNode("span",null,l.toDisplayString(i.meetingTTL)+"ms",1)])])])],4))}},[["__scopeId","data-v-c7fcde8d"]]),$U=i=>(l.pushScopeId("data-v-75b60137"),i=i(),l.popScopeId(),i),HU={class:"dialog-inner"},qU=["onClick"],zU=$U(()=>l.createElementVNode("div",{class:"icon"},null,-1)),GU={class:"title"},WU=Mt({__name:"LayoutSwitch",props:{position:{type:Object,default:()=>({right:"0px",top:"25px"})},currentLayout:{type:String},layoutList:{type:Array},layoutLabels:{type:Array},currentRoomMode:{type:String}},emits:["setLayout"],setup(i,{emit:e}){const t=new En,n=i,r=e,s=a=>{n.currentRoomMode==="normal"?r("setLayout",a):t.message("info","点调模式下无法切换布局,请切换到会议模式后重试")};return(a,o)=>(l.openBlock(),l.createElementBlock("div",{class:"dialog",style:l.normalizeStyle(n.position)},[l.createElementVNode("div",HU,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(i.layoutList,(c,u)=>(l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(["layout-list",i.currentLayout===c?"layout-list-"+c+"-active":"layout-list-"+c]),key:c,onClick:d=>s(c)},[zU,l.createElementVNode("div",GU,l.toDisplayString(i.layoutLabels[u]),1)],10,qU))),128))])],4))}},[["__scopeId","data-v-75b60137"]]),tg="/assets/img/index/avatar.png",AC="/assets/img/meeting/mic-off-small.png",NC="/assets/img/meeting/camera-off-small.png",si=i=>(l.pushScopeId("data-v-381cc0c1"),i=i(),l.popScopeId(),i),KU={class:"member-manage"},XU={class:"member-manage-head"},YU={class:"member-manage-head-left"},JU=si(()=>l.createElementVNode("div",{class:"logo"},null,-1)),QU=si(()=>l.createElementVNode("div",{class:"title"},"成员管理",-1)),ZU={class:"tab-content"},eF=si(()=>l.createElementVNode("div",{class:"input-suffix-icon"},null,-1)),tF={class:"member-list"},nF={class:"member-list-item-group"},iF=si(()=>l.createElementVNode("img",{class:"avatar",src:tg,alt:""},null,-1)),rF={class:"name"},sF={key:0,class:"host"},aF={class:"member-list-item-group"},oF=["onClick"],lF=["onClick"],cF=["onClick"],uF={class:"tab-content-foot"},dF=[si(()=>l.createElementVNode("img",{class:"btn-icon",src:AC,alt:""},null,-1)),si(()=>l.createElementVNode("span",null,"全员静音",-1))],hF=[si(()=>l.createElementVNode("img",{class:"btn-icon",src:NC,alt:""},null,-1)),si(()=>l.createElementVNode("span",null,"全员关闭摄像头",-1))],fF={class:"tab-content"},pF=si(()=>l.createElementVNode("div",{class:"input-suffix-icon"},null,-1)),mF={class:"member-list"},gF={class:"member-list-item-group"},vF=si(()=>l.createElementVNode("img",{class:"avatar",src:tg,alt:""},null,-1)),yF={class:"name"},bF={key:0,class:"host"},_F={class:"member-list-item-group"},TF=["onClick"],kF=["onClick"],SF={class:"tab-content-foot"},CF=[si(()=>l.createElementVNode("img",{class:"btn-icon",src:AC,alt:""},null,-1)),si(()=>l.createElementVNode("span",null,"全员静音",-1))],xF=[si(()=>l.createElementVNode("img",{class:"btn-icon",src:NC,alt:""},null,-1)),si(()=>l.createElementVNode("span",null,"全员关闭摄像头",-1))],EF=Mt({__name:"MemberManage",props:{joinedList:{type:Array},participants:{type:Array},localIdentity:{type:String},tempInvitedList:{type:Array},inviteList:{type:Array},meetingNum:{type:String},meetingName:{type:String},meetingHost:{type:Object}},emits:["close","participantCameraSwitch","participantMicrophoneSwitch","allCameraClose","allMicrophoneClose","openMoreDialog","closeMoreDialog","appendMemberInvite","removeUnjoinItem","filterJoinedList"],setup(i,{emit:e}){const t=i,n=e,r=l.ref("joined"),s=l.ref(""),a=l.ref(""),o=l.ref([]),c=l.computed(()=>t.participants.length),u=l.computed(()=>t.tempInvitedList.length);function d(w){return t.meetingHost.ownerId===w}function h(w){if(c.value>0){let P=t.participants.findIndex(C=>C.identity===w);return P>=0?P:-1}else return-1}const _=(w,P)=>{n("participantCameraSwitch",{identity:w,isMute:P})},v=(w,P)=>{n("participantMicrophoneSwitch",{identity:w,isMute:P})},b=(w,P)=>{n("openMoreDialog",{identity:w,clientX:P.clientX,clientY:P.clientY})},g=w=>{console.log("点击事件",w.target.className),w.target.className.includes("icon-btn-option")||w.target.className.includes("more-icon")||n("closeMoreDialog")},f=()=>{window.addEventListener("click",g)},p=()=>{window.removeEventListener("click",g)},y=(w,P)=>{console.log("tab点击",w,P)},T=w=>{u.value>0?c.value>0?(o.value=[],t.tempInvitedList.forEach(P=>{h(P.mobile)<0&&P.userName.includes(w)&&o.value.push(P)})):o.value=t.tempInvitedList.filter(P=>P.userName.includes(w)):o.value=[]},D=w=>{n("removeUnjoinItem",w)},E=w=>{n("appendMemberInvite",w)},A=()=>{n("close")};return l.watch(()=>s.value,w=>{n("filterJoinedList",w)}),l.watch(()=>t.meetingHost.ownerId,w=>{n("filterJoinedList",s.value)}),l.watch(()=>c.value,w=>{T(a.value)}),l.watch(()=>u.value,w=>{T(a.value)}),l.watch(()=>a.value,w=>{T(w)}),l.onMounted(()=>{T(a.value),f()}),l.onBeforeUnmount(()=>{p()}),(w,P)=>{const C=l.resolveComponent("el-input"),I=l.resolveComponent("el-tab-pane"),F=l.resolveComponent("el-tabs");return l.openBlock(),l.createElementBlock("div",KU,[l.createElementVNode("div",XU,[l.createElementVNode("div",YU,[JU,QU,l.withDirectives(l.createElementVNode("div",{class:"num"},l.toDisplayString(c.value),513),[[l.vShow,c.value>0]])]),l.createElementVNode("div",{class:"close",onClick:A})]),l.createVNode(F,{modelValue:r.value,"onUpdate:modelValue":P[6]||(P[6]=$=>r.value=$),class:"member-manage-contain",onTabClick:y},{default:l.withCtx(()=>[l.createVNode(I,{label:"会议中",name:"joined"},{default:l.withCtx(()=>[l.createElementVNode("div",ZU,[l.createVNode(C,{modelValue:s.value,"onUpdate:modelValue":P[0]||(P[0]=$=>s.value=$),placeholder:"请输入名称查询"},{suffix:l.withCtx(()=>[eF]),_:1},8,["modelValue"]),l.createElementVNode("div",tF,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(i.joinedList,$=>(l.openBlock(),l.createElementBlock("div",{class:"member-list-item",key:$.identity},[l.createElementVNode("div",nF,[iF,l.createElementVNode("span",rF,l.toDisplayString($.name),1),d($.identity)?(l.openBlock(),l.createElementBlock("span",sF,"主持人")):l.createCommentVNode("",!0)]),l.createElementVNode("div",aF,[l.createElementVNode("div",{class:l.normalizeClass(["icon-btn",$.isMicrophoneEnabled?"icon-btn-mic-on":"icon-btn-mic-off"]),onClick:Y=>v($.identity,$.isMicrophoneEnabled)},null,10,oF),l.createElementVNode("div",{class:l.normalizeClass(["icon-btn",$.isCameraEnabled?"icon-btn-cam-on":"icon-btn-cam-off"]),onClick:Y=>_($.identity,$.isCameraEnabled)},null,10,lF),l.createElementVNode("div",{class:"icon-btn icon-btn-option",onClick:Y=>b($.identity,Y)},null,8,cF)])]))),128))]),l.createElementVNode("div",uF,[l.createElementVNode("div",{class:"tab-content-foot-btn",onClick:P[1]||(P[1]=$=>n("allMicrophoneClose"))},dF),l.createElementVNode("div",{class:"tab-content-foot-btn",onClick:P[2]||(P[2]=$=>n("allCameraClose"))},hF)])])]),_:1}),d(i.localIdentity)?(l.openBlock(),l.createBlock(I,{key:0,label:"未入会",name:"unJoin"},{default:l.withCtx(()=>[l.createElementVNode("div",fF,[l.createVNode(C,{modelValue:a.value,"onUpdate:modelValue":P[3]||(P[3]=$=>a.value=$),placeholder:"请输入名称查询"},{suffix:l.withCtx(()=>[pF]),_:1},8,["modelValue"]),l.createElementVNode("div",mF,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(o.value,$=>(l.openBlock(),l.createElementBlock("div",{class:"member-list-item",key:$.mobile},[l.createElementVNode("div",gF,[vF,l.createElementVNode("span",yF,l.toDisplayString($.userName),1),d($.mobile)?(l.openBlock(),l.createElementBlock("span",bF,"主持人")):l.createCommentVNode("",!0)]),l.createElementVNode("div",_F,[l.createElementVNode("div",{class:"text-btn text-btn-remove",onClick:Y=>D($)},"移除",8,TF),l.createElementVNode("div",{class:"text-btn text-btn-invite",onClick:Y=>E($)},"邀请",8,kF)])]))),128))]),l.createElementVNode("div",SF,[l.createElementVNode("div",{class:"tab-content-foot-btn",onClick:P[4]||(P[4]=$=>n("allMicrophoneClose"))},CF),l.createElementVNode("div",{class:"tab-content-foot-btn",onClick:P[5]||(P[5]=$=>n("allCameraClose"))},xF)])])]),_:1})):l.createCommentVNode("",!0)]),_:1},8,["modelValue"])])}}},[["__scopeId","data-v-381cc0c1"]]),wF=[{codes:"1F600",char:"😀",name:"grinning face"},{codes:"1F603",char:"😃",name:"grinning face with big eyes"},{codes:"1F604",char:"😄",name:"grinning face with smiling eyes"},{codes:"1F601",char:"😁",name:"beaming face with smiling eyes"},{codes:"1F606",char:"😆",name:"grinning squinting face"},{codes:"1F605",char:"😅",name:"grinning face with sweat"},{codes:"1F923",char:"🤣",name:"rolling on the floor laughing"},{codes:"1F602",char:"😂",name:"face with tears of joy"},{codes:"1F642",char:"🙂",name:"slightly smiling face"},{codes:"1F643",char:"🙃",name:"upside-down face"},{codes:"1F609",char:"😉",name:"winking face"},{codes:"1F60A",char:"😊",name:"smiling face with smiling eyes"},{codes:"1F607",char:"😇",name:"smiling face with halo"},{codes:"1F970",char:"🥰",name:"smiling face with hearts"},{codes:"1F60D",char:"😍",name:"smiling face with heart-eyes"},{codes:"1F929",char:"🤩",name:"star-struck"},{codes:"1F618",char:"😘",name:"face blowing a kiss"},{codes:"1F617",char:"😗",name:"kissing face"},{codes:"1F61A",char:"😚",name:"kissing face with closed eyes"},{codes:"1F619",char:"😙",name:"kissing face with smiling eyes"},{codes:"1F44B",char:"👋",name:"waving hand"},{codes:"1F91A",char:"🤚",name:"raised back of hand"},{codes:"1F590",char:"🖐",name:"hand with fingers splayed"},{codes:"270B",char:"✋",name:"raised hand"},{codes:"1F596",char:"🖖",name:"vulcan salute"},{codes:"1F44C",char:"👌",name:"OK hand"},{codes:"1F90F",char:"🤏",name:"pinching hand"},{codes:"270C",char:"✌",name:"victory hand"},{codes:"1F91E",char:"🤞",name:"crossed fingers"},{codes:"1F91F",char:"🤟",name:"love-you gesture"},{codes:"1F918",char:"🤘",name:"sign of the horns"},{codes:"1F919",char:"🤙",name:"call me hand"},{codes:"1F448",char:"👈",name:"backhand index pointing left"},{codes:"1F449",char:"👉",name:"backhand index pointing right"},{codes:"1F446",char:"👆",name:"backhand index pointing up"},{codes:"1F595",char:"🖕",name:"middle finger"},{codes:"1F447",char:"👇",name:"backhand index pointing down"},{codes:"261D FE0F",char:"☝️",name:"index pointing up"},{codes:"1F44D",char:"👍",name:"thumbs up"},{codes:"1F44E",char:"👎",name:"thumbs down"},{codes:"270A",char:"✊",name:"raised fist"},{codes:"1F44A",char:"👊",name:"oncoming fist"},{codes:"1F91B",char:"🤛",name:"left-facing fist"},{codes:"1F91C",char:"🤜",name:"right-facing fist"}],Vl=i=>(l.pushScopeId("data-v-5dd4cec6"),i=i(),l.popScopeId(),i),DF={class:"chat"},AF=Vl(()=>l.createElementVNode("div",{class:"chat-head-left"},[l.createElementVNode("div",{class:"logo"}),l.createElementVNode("div",{class:"title"},"聊天")],-1)),NF={class:"chat-content",id:"chat-content"},PF={class:"message-item-content"},IF={class:"message-item-content-top"},OF={class:"name"},MF=["src"],RF={key:1,class:"message-item-content-value"},LF=Vl(()=>l.createElementVNode("img",{class:"message-item-avatar",src:ho,alt:""},null,-1)),BF=Vl(()=>l.createElementVNode("img",{class:"message-item-avatar",src:ho,alt:""},null,-1)),UF={class:"message-item-content"},FF={class:"message-item-content-top"},VF={class:"name"},jF=["src"],$F={key:1,class:"message-item-content-value"},HF={class:"chat-foot"},qF={class:"prefix-btns"},zF={class:"emotion-list"},GF=["onClick"],WF=Vl(()=>l.createElementVNode("div",{class:"btn btn-emoji"},null,-1)),KF=Vl(()=>l.createElementVNode("div",{class:"btn"},null,-1)),XF=Mt({__name:"ChatArea",props:{localIdentity:{type:String},messageList:{type:Array},fileUploadUrl:{type:String},imgUrl:{type:String}},emits:["close","messageSend"],setup(i,{expose:e,emit:t}){const n=i,r=t,s=new En,a=l.ref(""),o=l.ref([]),c=l.ref(),u=l.ref(),d=l.computed(()=>n.messageList.length),h=()=>{a.value=""},_=async()=>{await l.nextTick();let T=document.getElementById("chat-content");if(!T){console.error("不存在消息队列容器");return}T.scrollTop=T.scrollHeight+180},v=()=>{r("close")},b=T=>{T.length<=0?s.message("error","不能发送空白消息"):r("messageSend",T)},g=T=>/\.(jpg|jpeg|png|gif|bmp)$/i.test(T),f=async T=>{var E,A;console.log("emoji",T);let D="";if(await l.nextTick(),(A=(E=window.getSelection().anchorNode)==null?void 0:E.className)!=null&&A.includes("el-input")){let P=document.getElementById("inputEle").selectionStart;D=a.value.substring(0,P)+T+a.value.substring(P)}else D=a.value+T;a.value=D,c.value.focus()},p=(T,D)=>{if(T.url){const E=n.imgUrl+T.url.substring(T.url.indexOf("/equipmentphoto"));b(E)}},y=T=>g(T.name)?T.size>20*1024*1024?(s.message("error","文件大小不得超过20M"),!1):!0:(s.message("error","请上传图片"),!1);return l.watch(()=>d.value,T=>{_()}),l.onMounted(()=>{wF.forEach(T=>{o.value.push(T.char)})}),e({clearInputContent:h}),(T,D)=>{const E=l.resolveComponent("el-popover"),A=l.resolveComponent("el-upload"),w=l.resolveComponent("el-input");return l.openBlock(),l.createElementBlock("div",DF,[l.createElementVNode("div",{class:"chat-head"},[AF,l.createElementVNode("div",{class:"close",onClick:v})]),l.createElementVNode("div",NF,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(i.messageList,(P,C)=>(l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(["message-item",P.origin===i.localIdentity?"message-item-local":"message-item-other"]),key:"m"+C},[P.origin===i.localIdentity?(l.openBlock(),l.createElementBlock(l.Fragment,{key:0},[l.createElementVNode("div",PF,[l.createElementVNode("div",IF,[l.createElementVNode("span",OF,l.toDisplayString(P.fromName),1),l.createElementVNode("span",null,l.toDisplayString(P.timestamp),1)]),g(P.content)?(l.openBlock(),l.createElementBlock("img",{key:0,class:"message-image",src:P.content,alt:""},null,8,MF)):l.createCommentVNode("",!0),g(P.content)?l.createCommentVNode("",!0):(l.openBlock(),l.createElementBlock("div",RF,[l.createElementVNode("span",null,l.toDisplayString(P.content),1)]))]),LF],64)):(l.openBlock(),l.createElementBlock(l.Fragment,{key:1},[BF,l.createElementVNode("div",UF,[l.createElementVNode("div",FF,[l.createElementVNode("span",VF,l.toDisplayString(P.fromName),1),l.createElementVNode("span",null,l.toDisplayString(P.timestamp),1)]),g(P.content)?(l.openBlock(),l.createElementBlock("img",{key:0,class:"message-image",src:P.content,alt:""},null,8,jF)):l.createCommentVNode("",!0),g(P.content)?l.createCommentVNode("",!0):(l.openBlock(),l.createElementBlock("div",$F,[l.createElementVNode("span",null,l.toDisplayString(P.content),1)]))])],64))],2))),128))]),l.createElementVNode("div",HF,[l.createVNode(w,{ref_key:"inputRef",ref:c,id:"inputEle",modelValue:a.value,"onUpdate:modelValue":D[1]||(D[1]=P=>a.value=P),placeholder:"开始聊天",onKeyup:D[2]||(D[2]=l.withKeys(P=>b(a.value),["enter"]))},{prefix:l.withCtx(()=>[l.createElementVNode("div",qF,[l.createVNode(E,{placement:"top",width:"200",trigger:"hover","popper-class":"custom-popover"},{reference:l.withCtx(()=>[WF]),default:l.withCtx(()=>[l.createElementVNode("div",zF,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(o.value,(P,C)=>(l.openBlock(),l.createElementBlock("a",{href:"javascript:void(0);",onClick:I=>f(P),key:C,class:"emotion-item"},l.toDisplayString(P),9,GF))),128))])]),_:1}),l.createVNode(A,{ref_key:"uploadRef",ref:u,action:i.fileUploadUrl,multiple:!1,"on-success":p,"before-upload":y},{default:l.withCtx(()=>[KF]),_:1},8,["action"])])]),suffix:l.withCtx(()=>[l.createElementVNode("div",{class:"btn btn-send",onClick:D[0]||(D[0]=P=>b(a.value))})]),_:1},8,["modelValue"])])])}}},[["__scopeId","data-v-5dd4cec6"]]),YF={class:"check-dialog-inner"},JF={class:"control-list"},QF=["onClick"],ZF=Mt({__name:"LeaveOptionDialog",props:{position:{type:Object,default:()=>({left:"0px",bottom:"40px"})},otherOptionList:{type:Array,default:()=>["结束会议","离开会议"]}},emits:["cancelMeeting","leaveMeeting","optionClose"],setup(i,{emit:e}){const t=i,n=e,r=s=>{switch(s){case"结束会议":n("cancelMeeting");break;case"离开会议":n("leaveMeeting");break}n("optionClose")};return(s,a)=>(l.openBlock(),l.createElementBlock("div",{class:"check-dialog",style:l.normalizeStyle(t.position)},[l.createElementVNode("div",YF,[l.createElementVNode("div",JF,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(t.otherOptionList,o=>(l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(["control-list-item"]),key:o.value,onClick:c=>r(o)},l.toDisplayString(o),9,QF))),128))])])],4))}},[["__scopeId","data-v-e06551cc"]]),PC=i=>(l.pushScopeId("data-v-d94e806c"),i=i(),l.popScopeId(),i),eV={class:"appoint-dialog-title"},tV={class:"member-list"},nV=["onClick"],iV=PC(()=>l.createElementVNode("img",{class:"member-item-avatar",src:tg,alt:""},null,-1)),rV={class:"member-item-name"},sV=PC(()=>l.createElementVNode("div",{class:"member-item-check"},null,-1)),aV=Mt({__name:"AppointDialog",props:{position:{type:Object,default:()=>({right:"127px",bottom:"84px"})},title:{type:String,default:"指定主持人"},participants:{type:Array},meetingHost:{type:Object}},emits:["appointHost","closeDialog"],setup(i,{emit:e}){const t=new En,n=i,r=l.ref([]),s=l.ref(null),a=e,o=computed(()=>n.participants.length);function c(h){return n.meetingHost.ownerId===h}const u=()=>{if(c(s.value.ownerId)){t.message("info","当前与会者为已存在的会议主持人,无法更改");return}a("appointHost",s.value),a("closeDialog")},d=h=>{s.value={ownerId:h.identity,ownerName:h.name}};return l.watchEffect(()=>{o.value>0?r.value.length>0?(r.value=r.value.filter(h=>n.participants.findIndex(_=>_.identity===h.identity)>-1),n.participants.forEach(h=>{r.value.findIndex(_=>_.identity===h.identity)<=-1&&r.value.push({identity:h.identity,name:h.name})})):r.value=n.participants.map(h=>({identity:h.identity,name:h.name})):r.value=[]}),l.onMounted(()=>{s.value=n.meetingHost}),(h,_)=>(l.openBlock(),l.createElementBlock("div",{class:"appoint-dialog",style:l.normalizeStyle(n.position)},[l.createElementVNode("div",eV,l.toDisplayString(n.title),1),l.createElementVNode("div",tV,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(r.value,(v,b)=>(l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(["member-item",{"member-item-checked":s.value.ownerId===v.identity}]),key:"p"+b,onClick:g=>d(v)},[iV,l.createElementVNode("span",rV,l.toDisplayString(v.name),1),sV],10,nV))),128))]),l.createElementVNode("div",{class:"appoint-dialog-foot"},[l.createElementVNode("div",{class:"foot-btn",onClick:u},"指定并离开")])],4))}},[["__scopeId","data-v-d94e806c"]]),oV=["onClick"],lV=Mt({__name:"MoreOptionDialog",props:{curBlur:{type:String,default:""},identity:{type:String,default:""},optionDialogOffset:{type:Object,default:{left:"0px",top:"0px"}},localIdentity:{type:String},meetingHost:{type:Object},participants:{type:Array}},emits:["close","setToBlur","removeFromBlur","closeMicro","closeCamera","setToHost","setToDeafness","cancelDeafness","updateName","remove","distributeScreen"],setup(i,{emit:e}){const t=i,n=e,r=l.computed(()=>{if(a(t.localIdentity)){if(o(t.identity))return[t.curBlur===t.identity?"取消设为主屏":"设为主屏","关闭麦克风","分发画面","修改名称","移出会议"]}else return t.curBlur===t.identity?t.identity===t.localIdentity?["取消设为主屏","修改名称"]:["取消设为主屏"]:t.identity===t.localIdentity?["设为主屏","修改名称"]:["设为主屏"]}),s=l.computed(()=>t.participants.length);function a(u){return t.meetingHost.ownerId===u}function o(u){if(s.value>0){const d=t.participants.findIndex(h=>h.identity===u);return d>-1?t.participants[d]:null}else return null}const c=u=>{switch(u){case"设为主屏":n("setToBlur",t.identity);break;case"取消设为主屏":n("removeFromBlur",t.identity);break;case"关闭麦克风":n("closeMicro",t.identity);break;case"分发画面":n("distributeScreen",t.identity);break;case"关闭摄像头":n("closeCamera",t.identity);break;case"设为主持人":n("setToHost",t.identity);break;case"置聋":n("setToDeafness",t.identity);break;case"取消置聋":n("cancelDeafness",t.identity);break;case"修改名称":n("updateName",t.identity);break;case"移出会议":n("remove",t.identity);break}n("close")};return l.onMounted(()=>{}),(u,d)=>(l.openBlock(),l.createElementBlock("div",{class:"more-option",style:l.normalizeStyle(t.optionDialogOffset)},[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(r.value,(h,_)=>(l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(["more-option-item",{"more-option-item-danger":h==="移出会议"}]),key:"o"+_,onClick:v=>c(h)},l.toDisplayString(h),11,oV))),128))],4))}},[["__scopeId","data-v-c1250e2b"]]),cV="/assets/img/meeting/close.png",ng=i=>(l.pushScopeId("data-v-d78ab697"),i=i(),l.popScopeId(),i),uV={class:"call-board-title"},dV=ng(()=>l.createElementVNode("span",null,"拨号盘",-1)),hV={class:"call-board-list"},fV=["onClick"],pV={class:"call-board-foot"},mV=[ng(()=>l.createElementVNode("div",{class:"btn-icon"},null,-1))],gV=[ng(()=>l.createElementVNode("div",{class:"btn-icon"},null,-1))],vV=Mt({__name:"CallBoard",props:{position:{type:Object,default:()=>({right:"127px",bottom:"84px"})},defaultCallingMethod:{type:Array,default:()=>["voice","video","mini"]}},emits:["closeCallBoard","phoneCall","miniCall"],setup(i,{emit:e}){const t=new En,n=i,r=e,s=l.ref(""),a=d=>/^[\d#*]+$/.test(d),o=d=>{s.value+=d},c=()=>{s.value?a(s.value)?r("phoneCall",s.value):t.message("error","手机号中包含不合法字符"):t.message("error","联系方式不能为空")},u=()=>{s.value?r("miniCall",s.value):t.message("error","联系方式不能为空")};return(d,h)=>{const _=l.resolveComponent("el-input");return l.openBlock(),l.createElementBlock("div",{class:"call-board",style:l.normalizeStyle(n.position)},[l.createElementVNode("div",uV,[dV,l.createElementVNode("img",{class:"title-close-icon",src:cV,alt:"",onClick:h[0]||(h[0]=v=>r("closeCallBoard"))})]),l.createVNode(_,{modelValue:s.value,"onUpdate:modelValue":h[1]||(h[1]=v=>s.value=v),type:"mobile",clearable:""},null,8,["modelValue"]),l.createElementVNode("div",hV,[(l.openBlock(),l.createElementBlock(l.Fragment,null,l.renderList("123456789*0#",(v,b)=>l.createElementVNode("div",{class:"call-board-list-item",key:b,onClick:g=>o(v)},l.toDisplayString(v),9,fV)),64))]),l.createElementVNode("div",pV,[i.defaultCallingMethod.includes("video")?(l.openBlock(),l.createElementBlock("div",{key:0,class:"call-board-foot-btn call-btn",onClick:c},mV)):l.createCommentVNode("",!0),i.defaultCallingMethod.includes("mini")?(l.openBlock(),l.createElementBlock("div",{key:1,class:"call-board-foot-btn mini-btn",onClick:u},gV)):l.createCommentVNode("",!0)])],4)}}},[["__scopeId","data-v-d78ab697"]]),yV=i=>(l.pushScopeId("data-v-d493db42"),i=i(),l.popScopeId(),i),bV={class:"chat-wrap"},_V={class:"chat-content",id:"chat-content"},TV=yV(()=>l.createElementVNode("div",{class:"chat-message"},[l.createElementVNode("span",{class:"msg-content"},"您已进入会议,可以开始聊天了")],-1)),kV={class:"msg-origin"},SV={class:"msg-content"},CV=Mt({__name:"InstantMessage",props:{messageList:{type:Array}},emits:["messageSend"],setup(i,{expose:e,emit:t}){const n=l.ref(""),r=t,s=i,a=l.computed(()=>s.messageList.length);l.watch(()=>a.value,h=>{o()});const o=()=>{let h=document.getElementById("chat-content");if(!h){console.error("不存在对应元素");return}h.scrollTop=h.scrollHeight},c=()=>{n.value.length?r("messageSend",n.value):ElMessage({message:"不能发送空白消息",type:"warning"})},u=h=>/\.(jpg|jpeg|png|gif|bmp)$/i.test(h);return e({clearInput:()=>{n.value=""}}),(h,_)=>{const v=l.resolveComponent("el-input");return l.openBlock(),l.createElementBlock("div",bV,[l.createElementVNode("div",_V,[TV,(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(i.messageList,(b,g)=>(l.openBlock(),l.createElementBlock("div",{class:"chat-message",key:"a"+g},[l.createElementVNode("span",kV,l.toDisplayString(b.fromName)+":",1),l.createElementVNode("span",SV,l.toDisplayString(u(b.content)?"[图片消息]请点击下方聊天按钮查看":b.content),1)]))),128))]),l.createElementVNode("div",null,[l.createVNode(v,{modelValue:n.value,"onUpdate:modelValue":_[0]||(_[0]=b=>n.value=b),placeholder:"说点什么。。。。",clearable:"",onKeyup:l.withKeys(c,["enter"])},null,8,["modelValue"])])])}}},[["__scopeId","data-v-d493db42"]]),xV=i=>(l.pushScopeId("data-v-68022380"),i=i(),l.popScopeId(),i),EV={class:"CustomHeader"},wV=xV(()=>l.createElementVNode("div",{class:"ivits"},"修改与会者名称",-1)),DV={class:"contentsinit"},AV=Mt({__name:"UpdateNameDialog",emits:["updateNameCancel","updateNameConfirm"],setup(i,{emit:e}){const t=e,n=l.ref(!1),r=l.ref(),s=l.reactive({name:"",sort:1}),a=l.ref(""),o=l.reactive({name:[{required:!0,message:"请输入名称",trigger:"blur"},{min:1,max:10,message:"与会者名称不应超过10个字符",trigger:"blur"}]});at.on("updateName",d=>{n.value=!0,a.value=d.identity});const c=()=>{t("updateNameCancel"),n.value=!1},u=async()=>{await l.nextTick(),r.value.validate(d=>{console.log("valid",d),d?(t("updateNameConfirm",{name:s.name,identity:a.value}),n.value=!1):console.log("表单校验不通过")})};return l.watch(()=>n.value,d=>{d&&(s.name="")}),(d,h)=>{const _=l.resolveComponent("el-input"),v=l.resolveComponent("el-form-item"),b=l.resolveComponent("el-form"),g=l.resolveComponent("el-dialog");return l.openBlock(),l.createElementBlock("div",null,[l.createVNode(g,{modelValue:n.value,"onUpdate:modelValue":h[2]||(h[2]=f=>n.value=f),"show-close":!1,class:"telephoneInvit",width:"460"},{header:l.withCtx(()=>[l.createElementVNode("div",EV,[wV,l.createElementVNode("div",{class:"close",onClick:h[0]||(h[0]=f=>n.value=!1)})])]),default:l.withCtx(()=>[l.createElementVNode("div",DV,[l.createVNode(b,{model:s,"hide-required-asterisk":"",ref_key:"createForm",ref:r,rules:o,"label-width":"100",class:"customForm"},{default:l.withCtx(()=>[l.createVNode(v,{label:"与会者名称",prop:"name"},{default:l.withCtx(()=>[l.createVNode(_,{modelValue:s.name,"onUpdate:modelValue":h[1]||(h[1]=f=>s.name=f)},null,8,["modelValue"])]),_:1}),l.createVNode(v,{"label-width":"110"},{default:l.withCtx(()=>[l.createElementVNode("div",{class:"isokmul"},[l.createElementVNode("div",{onClick:c},"取消"),l.createElementVNode("div",{onClick:u},"确定")])]),_:1})]),_:1},8,["model","rules"])])]),_:1},8,["modelValue"])])}}},[["__scopeId","data-v-68022380"]]),tn=i=>(l.pushScopeId("data-v-240dc5a5"),i=i(),l.popScopeId(),i),NV={class:l.normalizeClass(["meeting-room-top-bar"])},PV={class:"bar-group"},IV=tn(()=>l.createElementVNode("div",{class:"meeting-theme"},[l.createElementVNode("div",{class:"meeting-theme-logo"}),l.createElementVNode("span",{style:{"white-space":"nowrap"}},"会议主题")],-1)),OV={class:"meeting-name-text"},MV=tn(()=>l.createElementVNode("div",{class:"meeting-name-icon"},null,-1)),RV={class:"meeting-duration"},LV=tn(()=>l.createElementVNode("div",{class:"meeting-duration-logo"},null,-1)),BV={class:"bar-group"},UV={class:"meeting-room-contain"},FV={class:"bar-group"},VV={class:"custom-select"},jV=[tn(()=>l.createElementVNode("div",{class:"arrow-icon"},null,-1))],$V={class:"custom-select"},HV=[tn(()=>l.createElementVNode("div",{class:"arrow-icon"},null,-1))],qV={class:"bar-group"},zV={key:0,class:"custom-select"},GV=tn(()=>l.createElementVNode("div",{class:"theme-icon"},null,-1)),WV=tn(()=>l.createElementVNode("div",{class:"theme-text"},"会议模式",-1)),KV=[tn(()=>l.createElementVNode("div",{class:"arrow-icon"},null,-1))],XV=[tn(()=>l.createElementVNode("img",{class:"t-btn-icon",src:EC,alt:""},null,-1)),tn(()=>l.createElementVNode("span",null,"共享屏幕",-1))],YV=[tn(()=>l.createElementVNode("img",{class:"t-btn-icon",src:EC,alt:""},null,-1)),tn(()=>l.createElementVNode("span",null,"结束共享",-1))],JV=[tn(()=>l.createElementVNode("img",{class:"t-btn-icon",src:vU,alt:""},null,-1)),tn(()=>l.createElementVNode("span",null,"聊天",-1))],QV=[tn(()=>l.createElementVNode("img",{class:"t-btn-icon",src:wC,alt:""},null,-1)),tn(()=>l.createElementVNode("span",null,"录制",-1))],ZV=[tn(()=>l.createElementVNode("img",{class:"t-btn-icon",src:wC,alt:""},null,-1)),tn(()=>l.createElementVNode("span",null,"结束录制",-1))],ej=[tn(()=>l.createElementVNode("img",{class:"t-btn-icon",src:yU,alt:""},null,-1)),tn(()=>l.createElementVNode("span",null,"成员管理",-1))],tj=[tn(()=>l.createElementVNode("span",null,"一键VOLTE",-1))],nj=[tn(()=>l.createElementVNode("img",{class:"t-btn-icon",src:bU,alt:""},null,-1))],ij=tn(()=>l.createElementVNode("img",{class:"t-btn-icon",src:y_,alt:""},null,-1)),rj={class:"meeting-room-contain-right"},ia=`
|
328
|
+
会议发起人:${e.meetingCreator}`;navigator.clipboard.writeText(s).then(()=>{t.message("success","已复制到剪贴板")}).catch(a=>{t.message("error","复制失败,请重试")})}else t.message("warning","当前浏览器不支持复制内容")};return(s,a)=>(l.openBlock(),l.createElementBlock("div",{class:"dialog",style:l.normalizeStyle(e.position)},[l.createElementVNode("div",TU,[l.createElementVNode("div",kU,[SU,l.createElementVNode("div",CU,[l.createElementVNode("span",null,l.toDisplayString(i.meetingName),1)])]),l.createElementVNode("div",xU,[EU,l.createElementVNode("div",wU,[l.createElementVNode("span",DU,l.toDisplayString(i.meetingNum),1),l.createElementVNode("div",AU,[l.createElementVNode("img",{src:_U,alt:"",onClick:a[0]||(a[0]=o=>n("meeting-num"))})])])]),l.createElementVNode("div",NU,[PU,l.createElementVNode("div",IU,l.toDisplayString(i.meetingCreator),1)]),l.createElementVNode("div",{class:"dialog-inner-foot"},[l.createElementVNode("div",{class:"dialog-inner-foot-btn",onClick:r},"一键复制")])])],4))}},[["__scopeId","data-v-445aafba"]]),DC=i=>(l.pushScopeId("data-v-c7fcde8d"),i=i(),l.popScopeId(),i),MU={class:"dialog-inner"},RU={class:"mark-list"},LU=DC(()=>l.createElementVNode("div",{class:"mark-list-title"},"网络质量",-1)),BU={class:"mark-list-value"},UU={class:"mark-list"},FU=DC(()=>l.createElementVNode("div",{class:"mark-list-title"},"通话延迟",-1)),VU={class:"mark-list-value"},jU=Mt({__name:"NetworkDetect",props:{position:{type:Object,default:()=>({left:"0px",top:"25px"})},meetingQuality:{type:String},meetingTTL:{type:[String,Number]}},setup(i){const e=i;return(t,n)=>(l.openBlock(),l.createElementBlock("div",{class:"dialog",style:l.normalizeStyle(e.position)},[l.createElementVNode("div",MU,[l.createElementVNode("div",RU,[LU,l.createElementVNode("div",BU,[l.createElementVNode("span",null,l.toDisplayString(i.meetingQuality),1)])]),l.createElementVNode("div",UU,[FU,l.createElementVNode("div",VU,[l.createElementVNode("span",null,l.toDisplayString(i.meetingTTL)+"ms",1)])])])],4))}},[["__scopeId","data-v-c7fcde8d"]]),$U=i=>(l.pushScopeId("data-v-75b60137"),i=i(),l.popScopeId(),i),HU={class:"dialog-inner"},qU=["onClick"],zU=$U(()=>l.createElementVNode("div",{class:"icon"},null,-1)),GU={class:"title"},WU=Mt({__name:"LayoutSwitch",props:{position:{type:Object,default:()=>({right:"0px",top:"25px"})},currentLayout:{type:String},layoutList:{type:Array},layoutLabels:{type:Array},currentRoomMode:{type:String}},emits:["setLayout"],setup(i,{emit:e}){const t=new En,n=i,r=e,s=a=>{n.currentRoomMode==="normal"?r("setLayout",a):t.message("info","点调模式下无法切换布局,请切换到会议模式后重试")};return(a,o)=>(l.openBlock(),l.createElementBlock("div",{class:"dialog",style:l.normalizeStyle(n.position)},[l.createElementVNode("div",HU,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(i.layoutList,(c,u)=>(l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(["layout-list",i.currentLayout===c?"layout-list-"+c+"-active":"layout-list-"+c]),key:c,onClick:d=>s(c)},[zU,l.createElementVNode("div",GU,l.toDisplayString(i.layoutLabels[u]),1)],10,qU))),128))])],4))}},[["__scopeId","data-v-75b60137"]]),tg="/assets/img/index/avatar.png",AC="/assets/img/meeting/mic-off-small.png",NC="/assets/img/meeting/camera-off-small.png",si=i=>(l.pushScopeId("data-v-381cc0c1"),i=i(),l.popScopeId(),i),KU={class:"member-manage"},XU={class:"member-manage-head"},YU={class:"member-manage-head-left"},JU=si(()=>l.createElementVNode("div",{class:"logo"},null,-1)),QU=si(()=>l.createElementVNode("div",{class:"title"},"成员管理",-1)),ZU={class:"tab-content"},eF=si(()=>l.createElementVNode("div",{class:"input-suffix-icon"},null,-1)),tF={class:"member-list"},nF={class:"member-list-item-group"},iF=si(()=>l.createElementVNode("img",{class:"avatar",src:tg,alt:""},null,-1)),rF={class:"name"},sF={key:0,class:"host"},aF={class:"member-list-item-group"},oF=["onClick"],lF=["onClick"],cF=["onClick"],uF={class:"tab-content-foot"},dF=[si(()=>l.createElementVNode("img",{class:"btn-icon",src:AC,alt:""},null,-1)),si(()=>l.createElementVNode("span",null,"全员静音",-1))],hF=[si(()=>l.createElementVNode("img",{class:"btn-icon",src:NC,alt:""},null,-1)),si(()=>l.createElementVNode("span",null,"全员关闭摄像头",-1))],fF={class:"tab-content"},pF=si(()=>l.createElementVNode("div",{class:"input-suffix-icon"},null,-1)),mF={class:"member-list"},gF={class:"member-list-item-group"},vF=si(()=>l.createElementVNode("img",{class:"avatar",src:tg,alt:""},null,-1)),yF={class:"name"},bF={key:0,class:"host"},_F={class:"member-list-item-group"},TF=["onClick"],kF=["onClick"],SF={class:"tab-content-foot"},CF=[si(()=>l.createElementVNode("img",{class:"btn-icon",src:AC,alt:""},null,-1)),si(()=>l.createElementVNode("span",null,"全员静音",-1))],xF=[si(()=>l.createElementVNode("img",{class:"btn-icon",src:NC,alt:""},null,-1)),si(()=>l.createElementVNode("span",null,"全员关闭摄像头",-1))],EF=Mt({__name:"MemberManage",props:{joinedList:{type:Array},participants:{type:Array},localIdentity:{type:String},tempInvitedList:{type:Array},inviteList:{type:Array},meetingNum:{type:String},meetingName:{type:String},meetingHost:{type:Object}},emits:["close","participantCameraSwitch","participantMicrophoneSwitch","allCameraClose","allMicrophoneClose","openMoreDialog","closeMoreDialog","appendMemberInvite","removeUnjoinItem","filterJoinedList"],setup(i,{emit:e}){const t=i,n=e,r=l.ref("joined"),s=l.ref(""),a=l.ref(""),o=l.ref([]),c=l.computed(()=>t.participants.length),u=l.computed(()=>t.tempInvitedList.length);function d(w){return t.meetingHost.ownerId===w}function h(w){if(c.value>0){let P=t.participants.findIndex(C=>C.identity===w);return P>=0?P:-1}else return-1}const _=(w,P)=>{n("participantCameraSwitch",{identity:w,isMute:P})},v=(w,P)=>{n("participantMicrophoneSwitch",{identity:w,isMute:P})},b=(w,P)=>{n("openMoreDialog",{identity:w,clientX:P.clientX,clientY:P.clientY})},g=w=>{console.log("点击事件",w.target.className),w.target.className.includes("icon-btn-option")||w.target.className.includes("more-icon")||n("closeMoreDialog")},f=()=>{window.addEventListener("click",g)},p=()=>{window.removeEventListener("click",g)},y=(w,P)=>{console.log("tab点击",w,P)},T=w=>{u.value>0?c.value>0?(o.value=[],t.tempInvitedList.forEach(P=>{h(P.mobile)<0&&P.userName.includes(w)&&o.value.push(P)})):o.value=t.tempInvitedList.filter(P=>P.userName.includes(w)):o.value=[]},D=w=>{n("removeUnjoinItem",w)},E=w=>{n("appendMemberInvite",w)},A=()=>{n("close")};return l.watch(()=>s.value,w=>{n("filterJoinedList",w)}),l.watch(()=>t.meetingHost.ownerId,w=>{n("filterJoinedList",s.value)}),l.watch(()=>c.value,w=>{T(a.value)}),l.watch(()=>u.value,w=>{T(a.value)}),l.watch(()=>a.value,w=>{T(w)}),l.onMounted(()=>{T(a.value),f()}),l.onBeforeUnmount(()=>{p()}),(w,P)=>{const C=l.resolveComponent("el-input"),I=l.resolveComponent("el-tab-pane"),F=l.resolveComponent("el-tabs");return l.openBlock(),l.createElementBlock("div",KU,[l.createElementVNode("div",XU,[l.createElementVNode("div",YU,[JU,QU,l.withDirectives(l.createElementVNode("div",{class:"num"},l.toDisplayString(c.value),513),[[l.vShow,c.value>0]])]),l.createElementVNode("div",{class:"close",onClick:A})]),l.createVNode(F,{modelValue:r.value,"onUpdate:modelValue":P[6]||(P[6]=$=>r.value=$),class:"member-manage-contain",onTabClick:y},{default:l.withCtx(()=>[l.createVNode(I,{label:"会议中",name:"joined"},{default:l.withCtx(()=>[l.createElementVNode("div",ZU,[l.createVNode(C,{modelValue:s.value,"onUpdate:modelValue":P[0]||(P[0]=$=>s.value=$),placeholder:"请输入名称查询"},{suffix:l.withCtx(()=>[eF]),_:1},8,["modelValue"]),l.createElementVNode("div",tF,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(i.joinedList,$=>(l.openBlock(),l.createElementBlock("div",{class:"member-list-item",key:$.identity},[l.createElementVNode("div",nF,[iF,l.createElementVNode("span",rF,l.toDisplayString($.name),1),d($.identity)?(l.openBlock(),l.createElementBlock("span",sF,"主持人")):l.createCommentVNode("",!0)]),l.createElementVNode("div",aF,[l.createElementVNode("div",{class:l.normalizeClass(["icon-btn",$.isMicrophoneEnabled?"icon-btn-mic-on":"icon-btn-mic-off"]),onClick:Y=>v($.identity,$.isMicrophoneEnabled)},null,10,oF),l.createElementVNode("div",{class:l.normalizeClass(["icon-btn",$.isCameraEnabled?"icon-btn-cam-on":"icon-btn-cam-off"]),onClick:Y=>_($.identity,$.isCameraEnabled)},null,10,lF),l.createElementVNode("div",{class:"icon-btn icon-btn-option",onClick:Y=>b($.identity,Y)},null,8,cF)])]))),128))]),l.createElementVNode("div",uF,[l.createElementVNode("div",{class:"tab-content-foot-btn",onClick:P[1]||(P[1]=$=>n("allMicrophoneClose"))},dF),l.createElementVNode("div",{class:"tab-content-foot-btn",onClick:P[2]||(P[2]=$=>n("allCameraClose"))},hF)])])]),_:1}),d(i.localIdentity)?(l.openBlock(),l.createBlock(I,{key:0,label:"未入会",name:"unJoin"},{default:l.withCtx(()=>[l.createElementVNode("div",fF,[l.createVNode(C,{modelValue:a.value,"onUpdate:modelValue":P[3]||(P[3]=$=>a.value=$),placeholder:"请输入名称查询"},{suffix:l.withCtx(()=>[pF]),_:1},8,["modelValue"]),l.createElementVNode("div",mF,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(o.value,$=>(l.openBlock(),l.createElementBlock("div",{class:"member-list-item",key:$.mobile},[l.createElementVNode("div",gF,[vF,l.createElementVNode("span",yF,l.toDisplayString($.userName),1),d($.mobile)?(l.openBlock(),l.createElementBlock("span",bF,"主持人")):l.createCommentVNode("",!0)]),l.createElementVNode("div",_F,[l.createElementVNode("div",{class:"text-btn text-btn-remove",onClick:Y=>D($)},"移除",8,TF),l.createElementVNode("div",{class:"text-btn text-btn-invite",onClick:Y=>E($)},"邀请",8,kF)])]))),128))]),l.createElementVNode("div",SF,[l.createElementVNode("div",{class:"tab-content-foot-btn",onClick:P[4]||(P[4]=$=>n("allMicrophoneClose"))},CF),l.createElementVNode("div",{class:"tab-content-foot-btn",onClick:P[5]||(P[5]=$=>n("allCameraClose"))},xF)])])]),_:1})):l.createCommentVNode("",!0)]),_:1},8,["modelValue"])])}}},[["__scopeId","data-v-381cc0c1"]]),wF=[{codes:"1F600",char:"😀",name:"grinning face"},{codes:"1F603",char:"😃",name:"grinning face with big eyes"},{codes:"1F604",char:"😄",name:"grinning face with smiling eyes"},{codes:"1F601",char:"😁",name:"beaming face with smiling eyes"},{codes:"1F606",char:"😆",name:"grinning squinting face"},{codes:"1F605",char:"😅",name:"grinning face with sweat"},{codes:"1F923",char:"🤣",name:"rolling on the floor laughing"},{codes:"1F602",char:"😂",name:"face with tears of joy"},{codes:"1F642",char:"🙂",name:"slightly smiling face"},{codes:"1F643",char:"🙃",name:"upside-down face"},{codes:"1F609",char:"😉",name:"winking face"},{codes:"1F60A",char:"😊",name:"smiling face with smiling eyes"},{codes:"1F607",char:"😇",name:"smiling face with halo"},{codes:"1F970",char:"🥰",name:"smiling face with hearts"},{codes:"1F60D",char:"😍",name:"smiling face with heart-eyes"},{codes:"1F929",char:"🤩",name:"star-struck"},{codes:"1F618",char:"😘",name:"face blowing a kiss"},{codes:"1F617",char:"😗",name:"kissing face"},{codes:"1F61A",char:"😚",name:"kissing face with closed eyes"},{codes:"1F619",char:"😙",name:"kissing face with smiling eyes"},{codes:"1F44B",char:"👋",name:"waving hand"},{codes:"1F91A",char:"🤚",name:"raised back of hand"},{codes:"1F590",char:"🖐",name:"hand with fingers splayed"},{codes:"270B",char:"✋",name:"raised hand"},{codes:"1F596",char:"🖖",name:"vulcan salute"},{codes:"1F44C",char:"👌",name:"OK hand"},{codes:"1F90F",char:"🤏",name:"pinching hand"},{codes:"270C",char:"✌",name:"victory hand"},{codes:"1F91E",char:"🤞",name:"crossed fingers"},{codes:"1F91F",char:"🤟",name:"love-you gesture"},{codes:"1F918",char:"🤘",name:"sign of the horns"},{codes:"1F919",char:"🤙",name:"call me hand"},{codes:"1F448",char:"👈",name:"backhand index pointing left"},{codes:"1F449",char:"👉",name:"backhand index pointing right"},{codes:"1F446",char:"👆",name:"backhand index pointing up"},{codes:"1F595",char:"🖕",name:"middle finger"},{codes:"1F447",char:"👇",name:"backhand index pointing down"},{codes:"261D FE0F",char:"☝️",name:"index pointing up"},{codes:"1F44D",char:"👍",name:"thumbs up"},{codes:"1F44E",char:"👎",name:"thumbs down"},{codes:"270A",char:"✊",name:"raised fist"},{codes:"1F44A",char:"👊",name:"oncoming fist"},{codes:"1F91B",char:"🤛",name:"left-facing fist"},{codes:"1F91C",char:"🤜",name:"right-facing fist"}],Vl=i=>(l.pushScopeId("data-v-5dd4cec6"),i=i(),l.popScopeId(),i),DF={class:"chat"},AF=Vl(()=>l.createElementVNode("div",{class:"chat-head-left"},[l.createElementVNode("div",{class:"logo"}),l.createElementVNode("div",{class:"title"},"聊天")],-1)),NF={class:"chat-content",id:"chat-content"},PF={class:"message-item-content"},IF={class:"message-item-content-top"},OF={class:"name"},MF=["src"],RF={key:1,class:"message-item-content-value"},LF=Vl(()=>l.createElementVNode("img",{class:"message-item-avatar",src:ho,alt:""},null,-1)),BF=Vl(()=>l.createElementVNode("img",{class:"message-item-avatar",src:ho,alt:""},null,-1)),UF={class:"message-item-content"},FF={class:"message-item-content-top"},VF={class:"name"},jF=["src"],$F={key:1,class:"message-item-content-value"},HF={class:"chat-foot"},qF={class:"prefix-btns"},zF={class:"emotion-list"},GF=["onClick"],WF=Vl(()=>l.createElementVNode("div",{class:"btn btn-emoji"},null,-1)),KF=Vl(()=>l.createElementVNode("div",{class:"btn"},null,-1)),XF=Mt({__name:"ChatArea",props:{localIdentity:{type:String},messageList:{type:Array},fileUploadUrl:{type:String},imgUrl:{type:String}},emits:["close","messageSend"],setup(i,{expose:e,emit:t}){const n=i,r=t,s=new En,a=l.ref(""),o=l.ref([]),c=l.ref(),u=l.ref(),d=l.computed(()=>n.messageList.length),h=()=>{a.value=""},_=async()=>{await l.nextTick();let T=document.getElementById("chat-content");if(!T){console.error("不存在消息队列容器");return}T.scrollTop=T.scrollHeight+180},v=()=>{r("close")},b=T=>{T.length<=0?s.message("error","不能发送空白消息"):r("messageSend",T)},g=T=>/\.(jpg|jpeg|png|gif|bmp)$/i.test(T),f=async T=>{var E,A;console.log("emoji",T);let D="";if(await l.nextTick(),(A=(E=window.getSelection().anchorNode)==null?void 0:E.className)!=null&&A.includes("el-input")){let P=document.getElementById("inputEle").selectionStart;D=a.value.substring(0,P)+T+a.value.substring(P)}else D=a.value+T;a.value=D,c.value.focus()},p=(T,D)=>{if(T.url){const E=n.imgUrl+T.url.substring(T.url.indexOf("/equipmentphoto"));b(E)}},y=T=>g(T.name)?T.size>20*1024*1024?(s.message("error","文件大小不得超过20M"),!1):!0:(s.message("error","请上传图片"),!1);return l.watch(()=>d.value,T=>{_()}),l.onMounted(()=>{wF.forEach(T=>{o.value.push(T.char)})}),e({clearInputContent:h}),(T,D)=>{const E=l.resolveComponent("el-popover"),A=l.resolveComponent("el-upload"),w=l.resolveComponent("el-input");return l.openBlock(),l.createElementBlock("div",DF,[l.createElementVNode("div",{class:"chat-head"},[AF,l.createElementVNode("div",{class:"close",onClick:v})]),l.createElementVNode("div",NF,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(i.messageList,(P,C)=>(l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(["message-item",P.origin===i.localIdentity?"message-item-local":"message-item-other"]),key:"m"+C},[P.origin===i.localIdentity?(l.openBlock(),l.createElementBlock(l.Fragment,{key:0},[l.createElementVNode("div",PF,[l.createElementVNode("div",IF,[l.createElementVNode("span",OF,l.toDisplayString(P.fromName),1),l.createElementVNode("span",null,l.toDisplayString(P.timestamp),1)]),g(P.content)?(l.openBlock(),l.createElementBlock("img",{key:0,class:"message-image",src:P.content,alt:""},null,8,MF)):l.createCommentVNode("",!0),g(P.content)?l.createCommentVNode("",!0):(l.openBlock(),l.createElementBlock("div",RF,[l.createElementVNode("span",null,l.toDisplayString(P.content),1)]))]),LF],64)):(l.openBlock(),l.createElementBlock(l.Fragment,{key:1},[BF,l.createElementVNode("div",UF,[l.createElementVNode("div",FF,[l.createElementVNode("span",VF,l.toDisplayString(P.fromName),1),l.createElementVNode("span",null,l.toDisplayString(P.timestamp),1)]),g(P.content)?(l.openBlock(),l.createElementBlock("img",{key:0,class:"message-image",src:P.content,alt:""},null,8,jF)):l.createCommentVNode("",!0),g(P.content)?l.createCommentVNode("",!0):(l.openBlock(),l.createElementBlock("div",$F,[l.createElementVNode("span",null,l.toDisplayString(P.content),1)]))])],64))],2))),128))]),l.createElementVNode("div",HF,[l.createVNode(w,{ref_key:"inputRef",ref:c,id:"inputEle",modelValue:a.value,"onUpdate:modelValue":D[1]||(D[1]=P=>a.value=P),placeholder:"开始聊天",onKeyup:D[2]||(D[2]=l.withKeys(P=>b(a.value),["enter"]))},{prefix:l.withCtx(()=>[l.createElementVNode("div",qF,[l.createVNode(E,{placement:"top",width:"200",trigger:"hover","popper-class":"custom-popover"},{reference:l.withCtx(()=>[WF]),default:l.withCtx(()=>[l.createElementVNode("div",zF,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(o.value,(P,C)=>(l.openBlock(),l.createElementBlock("a",{href:"javascript:void(0);",onClick:I=>f(P),key:C,class:"emotion-item"},l.toDisplayString(P),9,GF))),128))])]),_:1}),l.createVNode(A,{ref_key:"uploadRef",ref:u,action:i.fileUploadUrl,multiple:!1,"on-success":p,"before-upload":y},{default:l.withCtx(()=>[KF]),_:1},8,["action"])])]),suffix:l.withCtx(()=>[l.createElementVNode("div",{class:"btn btn-send",onClick:D[0]||(D[0]=P=>b(a.value))})]),_:1},8,["modelValue"])])])}}},[["__scopeId","data-v-5dd4cec6"]]),YF={class:"check-dialog-inner"},JF={class:"control-list"},QF=["onClick"],ZF=Mt({__name:"LeaveOptionDialog",props:{position:{type:Object,default:()=>({left:"0px",bottom:"40px"})},otherOptionList:{type:Array,default:()=>["结束会议","离开会议"]}},emits:["cancelMeeting","leaveMeeting","optionClose"],setup(i,{emit:e}){const t=i,n=e,r=s=>{switch(s){case"结束会议":n("cancelMeeting");break;case"离开会议":n("leaveMeeting");break}n("optionClose")};return(s,a)=>(l.openBlock(),l.createElementBlock("div",{class:"check-dialog",style:l.normalizeStyle(t.position)},[l.createElementVNode("div",YF,[l.createElementVNode("div",JF,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(t.otherOptionList,o=>(l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(["control-list-item"]),key:o.value,onClick:c=>r(o)},l.toDisplayString(o),9,QF))),128))])])],4))}},[["__scopeId","data-v-e06551cc"]]),PC=i=>(l.pushScopeId("data-v-d94e806c"),i=i(),l.popScopeId(),i),eV={class:"appoint-dialog-title"},tV={class:"member-list"},nV=["onClick"],iV=PC(()=>l.createElementVNode("img",{class:"member-item-avatar",src:tg,alt:""},null,-1)),rV={class:"member-item-name"},sV=PC(()=>l.createElementVNode("div",{class:"member-item-check"},null,-1)),aV=Mt({__name:"AppointDialog",props:{position:{type:Object,default:()=>({right:"127px",bottom:"84px"})},title:{type:String,default:"指定主持人"},participants:{type:Array},meetingHost:{type:Object}},emits:["appointHost","closeDialog"],setup(i,{emit:e}){const t=new En,n=i,r=l.ref([]),s=l.ref(null),a=e,o=computed(()=>n.participants.length);function c(h){return n.meetingHost.ownerId===h}const u=()=>{if(c(s.value.ownerId)){t.message("info","当前与会者为已存在的会议主持人,无法更改");return}a("appointHost",s.value),a("closeDialog")},d=h=>{s.value={ownerId:h.identity,ownerName:h.name}};return l.watchEffect(()=>{o.value>0?r.value.length>0?(r.value=r.value.filter(h=>n.participants.findIndex(_=>_.identity===h.identity)>-1),n.participants.forEach(h=>{r.value.findIndex(_=>_.identity===h.identity)<=-1&&r.value.push({identity:h.identity,name:h.name})})):r.value=n.participants.map(h=>({identity:h.identity,name:h.name})):r.value=[]}),l.onMounted(()=>{s.value=n.meetingHost}),(h,_)=>(l.openBlock(),l.createElementBlock("div",{class:"appoint-dialog",style:l.normalizeStyle(n.position)},[l.createElementVNode("div",eV,l.toDisplayString(n.title),1),l.createElementVNode("div",tV,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(r.value,(v,b)=>(l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(["member-item",{"member-item-checked":s.value.ownerId===v.identity}]),key:"p"+b,onClick:g=>d(v)},[iV,l.createElementVNode("span",rV,l.toDisplayString(v.name),1),sV],10,nV))),128))]),l.createElementVNode("div",{class:"appoint-dialog-foot"},[l.createElementVNode("div",{class:"foot-btn",onClick:u},"指定并离开")])],4))}},[["__scopeId","data-v-d94e806c"]]),oV=["onClick"],lV=Mt({__name:"MoreOptionDialog",props:{curBlur:{type:String,default:""},identity:{type:String,default:""},optionDialogOffset:{type:Object,default:{left:"0px",top:"0px"}},localIdentity:{type:String},meetingHost:{type:Object},participants:{type:Array}},emits:["close","setToBlur","removeFromBlur","closeMicro","closeCamera","setToHost","setToDeafness","cancelDeafness","updateName","remove","distributeScreen"],setup(i,{emit:e}){const t=i,n=e,r=l.computed(()=>{if(a(t.localIdentity)){if(o(t.identity))return[t.curBlur===t.identity?"取消设为主屏":"设为主屏","关闭麦克风","分发画面","修改名称","移出会议"]}else return t.curBlur===t.identity?t.identity===t.localIdentity?["取消设为主屏","修改名称"]:["取消设为主屏"]:t.identity===t.localIdentity?["设为主屏","修改名称"]:["设为主屏"]}),s=l.computed(()=>t.participants.length);function a(u){return t.meetingHost.ownerId===u}function o(u){if(s.value>0){const d=t.participants.findIndex(h=>h.identity===u);return d>-1?t.participants[d]:null}else return null}const c=u=>{switch(u){case"设为主屏":n("setToBlur",t.identity);break;case"取消设为主屏":n("removeFromBlur",t.identity);break;case"关闭麦克风":n("closeMicro",t.identity);break;case"分发画面":n("distributeScreen",t.identity);break;case"关闭摄像头":n("closeCamera",t.identity);break;case"设为主持人":n("setToHost",t.identity);break;case"置聋":n("setToDeafness",t.identity);break;case"取消置聋":n("cancelDeafness",t.identity);break;case"修改名称":n("updateName",t.identity);break;case"移出会议":n("remove",t.identity);break}n("close")};return l.onMounted(()=>{}),(u,d)=>(l.openBlock(),l.createElementBlock("div",{class:"more-option",style:l.normalizeStyle(t.optionDialogOffset)},[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(r.value,(h,_)=>(l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(["more-option-item",{"more-option-item-danger":h==="移出会议"}]),key:"o"+_,onClick:v=>c(h)},l.toDisplayString(h),11,oV))),128))],4))}},[["__scopeId","data-v-c1250e2b"]]),cV="/assets/img/meeting/close.png",ng=i=>(l.pushScopeId("data-v-d78ab697"),i=i(),l.popScopeId(),i),uV={class:"call-board-title"},dV=ng(()=>l.createElementVNode("span",null,"拨号盘",-1)),hV={class:"call-board-list"},fV=["onClick"],pV={class:"call-board-foot"},mV=[ng(()=>l.createElementVNode("div",{class:"btn-icon"},null,-1))],gV=[ng(()=>l.createElementVNode("div",{class:"btn-icon"},null,-1))],vV=Mt({__name:"CallBoard",props:{position:{type:Object,default:()=>({right:"127px",bottom:"84px"})},defaultCallingMethod:{type:Array,default:()=>["voice","video","mini"]}},emits:["closeCallBoard","phoneCall","miniCall"],setup(i,{emit:e}){const t=new En,n=i,r=e,s=l.ref(""),a=d=>/^[\d#*]+$/.test(d),o=d=>{s.value+=d},c=()=>{s.value?a(s.value)?r("phoneCall",s.value):t.message("error","手机号中包含不合法字符"):t.message("error","联系方式不能为空")},u=()=>{s.value?r("miniCall",s.value):t.message("error","联系方式不能为空")};return(d,h)=>{const _=l.resolveComponent("el-input");return l.openBlock(),l.createElementBlock("div",{class:"call-board",style:l.normalizeStyle(n.position)},[l.createElementVNode("div",uV,[dV,l.createElementVNode("img",{class:"title-close-icon",src:cV,alt:"",onClick:h[0]||(h[0]=v=>r("closeCallBoard"))})]),l.createVNode(_,{modelValue:s.value,"onUpdate:modelValue":h[1]||(h[1]=v=>s.value=v),type:"mobile",clearable:""},null,8,["modelValue"]),l.createElementVNode("div",hV,[(l.openBlock(),l.createElementBlock(l.Fragment,null,l.renderList("123456789*0#",(v,b)=>l.createElementVNode("div",{class:"call-board-list-item",key:b,onClick:g=>o(v)},l.toDisplayString(v),9,fV)),64))]),l.createElementVNode("div",pV,[i.defaultCallingMethod.includes("video")?(l.openBlock(),l.createElementBlock("div",{key:0,class:"call-board-foot-btn call-btn",onClick:c},mV)):l.createCommentVNode("",!0),i.defaultCallingMethod.includes("mini")?(l.openBlock(),l.createElementBlock("div",{key:1,class:"call-board-foot-btn mini-btn",onClick:u},gV)):l.createCommentVNode("",!0)])],4)}}},[["__scopeId","data-v-d78ab697"]]),yV=i=>(l.pushScopeId("data-v-d493db42"),i=i(),l.popScopeId(),i),bV={class:"chat-wrap"},_V={class:"chat-content",id:"chat-content"},TV=yV(()=>l.createElementVNode("div",{class:"chat-message"},[l.createElementVNode("span",{class:"msg-content"},"您已进入会议,可以开始聊天了")],-1)),kV={class:"msg-origin"},SV={class:"msg-content"},CV=Mt({__name:"InstantMessage",props:{messageList:{type:Array}},emits:["messageSend"],setup(i,{expose:e,emit:t}){const n=l.ref(""),r=t,s=i,a=l.computed(()=>s.messageList.length);l.watch(()=>a.value,h=>{o()});const o=()=>{let h=document.getElementById("chat-content");if(!h){console.error("不存在对应元素");return}h.scrollTop=h.scrollHeight},c=()=>{n.value.length?r("messageSend",n.value):ElMessage({message:"不能发送空白消息",type:"warning"})},u=h=>/\.(jpg|jpeg|png|gif|bmp)$/i.test(h);return e({clearInput:()=>{n.value=""}}),(h,_)=>{const v=l.resolveComponent("el-input");return l.openBlock(),l.createElementBlock("div",bV,[l.createElementVNode("div",_V,[TV,(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(i.messageList,(b,g)=>(l.openBlock(),l.createElementBlock("div",{class:"chat-message",key:"a"+g},[l.createElementVNode("span",kV,l.toDisplayString(b.fromName)+":",1),l.createElementVNode("span",SV,l.toDisplayString(u(b.content)?"[图片消息]请点击下方聊天按钮查看":b.content),1)]))),128))]),l.createElementVNode("div",null,[l.createVNode(v,{modelValue:n.value,"onUpdate:modelValue":_[0]||(_[0]=b=>n.value=b),placeholder:"说点什么。。。。",clearable:"",onKeyup:l.withKeys(c,["enter"])},null,8,["modelValue"])])])}}},[["__scopeId","data-v-d493db42"]]),xV=i=>(l.pushScopeId("data-v-68022380"),i=i(),l.popScopeId(),i),EV={class:"CustomHeader"},wV=xV(()=>l.createElementVNode("div",{class:"ivits"},"修改与会者名称",-1)),DV={class:"contentsinit"},AV=Mt({__name:"UpdateNameDialog",emits:["updateNameCancel","updateNameConfirm"],setup(i,{emit:e}){const t=e,n=l.ref(!1),r=l.ref(),s=l.reactive({name:"",sort:1}),a=l.ref(""),o=l.reactive({name:[{required:!0,message:"请输入名称",trigger:"blur"},{min:1,max:10,message:"与会者名称不应超过10个字符",trigger:"blur"}]});at.on("updateName",d=>{n.value=!0,a.value=d.identity});const c=()=>{t("updateNameCancel"),n.value=!1},u=async()=>{await l.nextTick(),r.value.validate(d=>{console.log("valid",d),d?(t("updateNameConfirm",{name:s.name,identity:a.value}),n.value=!1):console.log("表单校验不通过")})};return l.watch(()=>n.value,d=>{d&&(s.name="")}),(d,h)=>{const _=l.resolveComponent("el-input"),v=l.resolveComponent("el-form-item"),b=l.resolveComponent("el-form"),g=l.resolveComponent("el-dialog");return l.openBlock(),l.createElementBlock("div",null,[l.createVNode(g,{modelValue:n.value,"onUpdate:modelValue":h[2]||(h[2]=f=>n.value=f),"show-close":!1,class:"telephoneInvit",width:"460"},{header:l.withCtx(()=>[l.createElementVNode("div",EV,[wV,l.createElementVNode("div",{class:"close",onClick:h[0]||(h[0]=f=>n.value=!1)})])]),default:l.withCtx(()=>[l.createElementVNode("div",DV,[l.createVNode(b,{model:s,"hide-required-asterisk":"",ref_key:"createForm",ref:r,rules:o,"label-width":"100",class:"customForm"},{default:l.withCtx(()=>[l.createVNode(v,{label:"与会者名称",prop:"name"},{default:l.withCtx(()=>[l.createVNode(_,{modelValue:s.name,"onUpdate:modelValue":h[1]||(h[1]=f=>s.name=f)},null,8,["modelValue"])]),_:1}),l.createVNode(v,{"label-width":"110"},{default:l.withCtx(()=>[l.createElementVNode("div",{class:"isokmul"},[l.createElementVNode("div",{onClick:c},"取消"),l.createElementVNode("div",{onClick:u},"确定")])]),_:1})]),_:1},8,["model","rules"])])]),_:1},8,["modelValue"])])}}},[["__scopeId","data-v-68022380"]]),tn=i=>(l.pushScopeId("data-v-1f5f0060"),i=i(),l.popScopeId(),i),NV={class:l.normalizeClass(["meeting-room-top-bar"])},PV={class:"bar-group"},IV=tn(()=>l.createElementVNode("div",{class:"meeting-theme"},[l.createElementVNode("div",{class:"meeting-theme-logo"}),l.createElementVNode("span",{style:{"white-space":"nowrap"}},"会议主题")],-1)),OV={class:"meeting-name-text"},MV=tn(()=>l.createElementVNode("div",{class:"meeting-name-icon"},null,-1)),RV={class:"meeting-duration"},LV=tn(()=>l.createElementVNode("div",{class:"meeting-duration-logo"},null,-1)),BV={class:"bar-group"},UV={class:"meeting-room-contain"},FV={class:"bar-group"},VV={class:"custom-select"},jV=[tn(()=>l.createElementVNode("div",{class:"arrow-icon"},null,-1))],$V={class:"custom-select"},HV=[tn(()=>l.createElementVNode("div",{class:"arrow-icon"},null,-1))],qV={class:"bar-group"},zV={key:0,class:"custom-select"},GV=tn(()=>l.createElementVNode("div",{class:"theme-icon"},null,-1)),WV=tn(()=>l.createElementVNode("div",{class:"theme-text"},"会议模式",-1)),KV=[tn(()=>l.createElementVNode("div",{class:"arrow-icon"},null,-1))],XV=[tn(()=>l.createElementVNode("img",{class:"t-btn-icon",src:EC,alt:""},null,-1)),tn(()=>l.createElementVNode("span",null,"共享屏幕",-1))],YV=[tn(()=>l.createElementVNode("img",{class:"t-btn-icon",src:EC,alt:""},null,-1)),tn(()=>l.createElementVNode("span",null,"结束共享",-1))],JV=[tn(()=>l.createElementVNode("img",{class:"t-btn-icon",src:vU,alt:""},null,-1)),tn(()=>l.createElementVNode("span",null,"聊天",-1))],QV=[tn(()=>l.createElementVNode("img",{class:"t-btn-icon",src:wC,alt:""},null,-1)),tn(()=>l.createElementVNode("span",null,"录制",-1))],ZV=[tn(()=>l.createElementVNode("img",{class:"t-btn-icon",src:wC,alt:""},null,-1)),tn(()=>l.createElementVNode("span",null,"结束录制",-1))],ej=[tn(()=>l.createElementVNode("img",{class:"t-btn-icon",src:yU,alt:""},null,-1)),tn(()=>l.createElementVNode("span",null,"成员管理",-1))],tj=[tn(()=>l.createElementVNode("span",null,"一键VOLTE",-1))],nj=[tn(()=>l.createElementVNode("img",{class:"t-btn-icon",src:bU,alt:""},null,-1))],ij=tn(()=>l.createElementVNode("img",{class:"t-btn-icon",src:y_,alt:""},null,-1)),rj={class:"meeting-room-contain-right"},ia=`
|
329
329
|
<div class="board">
|
330
330
|
<div class="board-icon"></div>
|
331
331
|
</div>
|
@@ -381,4 +381,4 @@ a=extmap-allow-mixed`)!==-1){var r=n.sdp.split(`
|
|
381
381
|
</div>
|
382
382
|
`,G},ug=(M,G,re)=>{if(F.value==="pointTurn"){let oe=document.querySelector("#room .point-turn-top"),ce=document.querySelector("#room .point-turn-center"),Ne=document.querySelector("#room .point-turn-bottom"),De=document.querySelector("#room .point-turn-other");if(oe||(oe=document.createElement("div"),oe.className="point-turn-top",M.insertBefore(oe,M.firstChild??null)),ce||(ce=document.createElement("div"),ce.className="point-turn-center",M.appendChild(ce)),Ne||(Ne=document.createElement("div"),Ne.className="point-turn-bottom",M.appendChild(Ne)),De||(De=document.createElement("div"),De.className="point-turn-other",M.appendChild(De)),ue.value===re.identity)if(ce.hasChildNodes()){let ge=document.querySelectorAll(".point-turn-center .participant");ge.length>0?ge.length===1?ce.insertBefore(G,ce.firstChild??null):ge[0].id?(document.querySelectorAll(".point-turn-top .participant").length>=5?document.querySelectorAll(".point-turn-bottom .participant").length>=5?De.appendChild(ge[0]):Ne.appendChild(ge[0]):oe.appendChild(ge[0]),ce.insertBefore(G,ce.firstChild??null)):(ce.removeChild(ge[0]),ce.insertBefore(G,ce.firstChild??null)):ce.insertBefore(G,ce.firstChild??null)}else ce.appendChild(G);else if(ae.value===re.identity)if(ce.hasChildNodes()){let ge=document.querySelectorAll(".point-turn-center .participant");ge.length>0?ge.length===1?ce.appendChild(G):ge[1].id?(document.querySelectorAll(".point-turn-top .participant").length>=5?document.querySelectorAll(".point-turn-bottom .participant").length>=5?De.appendChild(ge[1]):Ne.appendChild(ge[1]):oe.appendChild(ge[1]),ce.appendChild(G)):(ce.removeChild(ge[1]),ce.appendChild(G)):ce.appendChild(G)}else ce.appendChild(G);else document.querySelectorAll(".point-turn-top .participant").length>=5?document.querySelectorAll(".point-turn-bottom .participant").length>=5?De.appendChild(G):Ne.appendChild(G):oe.appendChild(G)}else if(I.value==="grid")re.isLocal?M.insertBefore(G,M.firstChild??null):M.appendChild(G);else if(I.value==="rightSide"){let oe=document.querySelector("#room .layout-rightside"),ce=document.querySelector("#room .layout-leftside");ce||(ce=document.createElement("div"),ce.className="layout-leftside",M.insertBefore(ce,M.firstChild??null)),oe||(oe=document.createElement("div"),oe.className="layout-rightside",M.appendChild(oe)),ae.value&&ae.value===re.identity?ce.hasChildNodes()&&(oe.insertBefore(ce.firstChild,oe.firstChild??null),ce.appendChild(G)):re.isLocal?(ce.hasChildNodes()&&oe.insertBefore(ce.firstChild,oe.firstChild??null),ce.appendChild(G)):oe.appendChild(G)}return M},bo=M=>{I.value=M},kr=M=>{console.log(`与会者渲染 ${M.identity}`,M),M.isLocal&&(g.value=M.identity,f.value=M.name,Ce.value=M.isCameraEnabled,me.value=M.isMicrophoneEnabled,se.value=M.isScreenShareEnabled),!ue.value&&Yt(M.identity)&&!M.remove&&(ue.value=M.identity);let G=document.getElementById("room");if(!G){dt.message("error","会议容器不存在");return}let re=document.getElementById(`participant-${M.identity}`);if(!re&&!M.remove&&(M.audioTrack||M.videoTrack)){if(re=Bd(M),G=ug(G,re,M),li(M),d.value.length>0){const vt=d.value.findIndex(hn=>hn.classify!=="人员"&&"sip_"+hn.mobile===M.identity);vt!==-1&&Be.updateParticipantName(M.identity,d.value[vt].userName)}if(u.value.length>0){const vt=u.value.findIndex(hn=>hn.mobile==M.identity);vt!==-1&&Be.updateParticipantName(M.identity,u.value[vt].userName)}u.value.forEach(vt=>{console.log("静音监控"),vt.mobile==M.identity&&vt.type=="监控/监控1"&&Be.changeParticipantMicrophoneStatus(M.identity,!0)})}let oe=document.getElementById(`video-${M.identity}`),ce=document.getElementById(`board-${M.identity}`),Ne=document.getElementById(`microphone-${M.identity}`),De=document.getElementById(`signal-${M.identity}`),ge=document.getElementById(`more-${M.identity}`);const be=async()=>{console.log("micro click -> mute (true)",M.identity),Be.changeParticipantMicrophoneStatus(M.identity,!0);try{const vt={owner:"administrators",org:"default",room:o.value,identity:M.identity,input:1,cmd:!0};await po(vt,{baseUrl:n.meetingUrl,token:n.token})}catch(vt){console.error("muteParticipant (unableMicrophone) error:",vt)}},tt=async()=>{console.log("micro click -> unmute (false)",M.identity),Be.changeParticipantMicrophoneStatus(M.identity,!1);try{const vt={owner:"administrators",org:"default",room:o.value,identity:M.identity,input:1,cmd:!1};await po(vt,{baseUrl:n.meetingUrl,token:n.token})}catch(vt){console.error("muteParticipant (enableMicrophone) error:",vt)}},Qe=()=>{De&&(De.style.visibility="visible"),ge&&(ge.style.visibility="visible")},Tt=()=>{De&&(De.style.visibility="hidden"),ge&&(ge.style.visibility="hidden")},Sr=vt=>{te.value={left:vt.clientX-400+"px",top:vt.clientY+5+"px"},ze.value===M.identity&&$e.value?$e.value=!1:($e.value=!1,ze.value=M.identity,$e.value=!0)};Ne&&M.isMicrophoneEnabled?(Ne.className="microphone microphone-active",Ne.onclick=be):Ne&&!M.isMicrophoneEnabled&&(Ne.className="microphone microphone-inactive",Ne.onclick=tt),re&&(re.onmouseenter=Qe,re.onmouseleave=Tt),ge&&(ge.onclick=Sr),De&&(M.connectionQuality==="excellent"||M.connectionQuality==="good"?De.className="signal-icon signal-icon-good":De.className="signal-icon signal-icon-poor");let Jt=document.getElementById(`screenshare-${M.identity}`);if(M.isScreenShareEnabled)Jt||(Jt=document.createElement("div"),Jt.id=`screenshare-${M.identity}`,Jt.className="screen-share-suspension",Jt.innerHTML=`${M.name} 正在共享屏幕`,re.appendChild(Jt)),ce&&(re.removeChild(ce),ce=null),De&&(re.removeChild(De),De=null),ge&&(re.removeChild(ge),ge=null);else if(M.isCameraEnabled)Jt&&(re.removeChild(Jt),Jt=null),ce&&(re.removeChild(ce),ce=null),De||(De=document.createElement("div"),De.id=`signal-${M.identity}`,M.connectionQuality==="excellent"||M.connectionQuality==="good"?De.className="signal-icon signal-icon-good":De.className="signal-icon signal-icon-poor",re.appendChild(De)),ge||(ge=document.createElement("div"),ge.id=`more-${M.identity}`,ge.className="more-icon",re.appendChild(ge));else{if(!ce){ce=document.createElement("div"),ce.id=`board-${M.identity}`,ce.className="board";let vt=document.createElement("div");vt.className="board-icon",ce.appendChild(vt),re&&(re==null||re.appendChild(ce))}Jt&&(re.removeChild(Jt),Jt=null)}if(M.remove){if(oe&&(oe.srcObject=null,oe.src="",oe.remove()),re&&re.remove(),Vt(M.identity),Si(),F.value==="pointTurn")if(M.identity===ue.value){const vt=document.querySelector("#room .point-turn-center"),hn=document.createElement("div");hn.className="participant",hn.innerHTML=ia,vt.insertBefore(hn,vt.firstChild??null),ue.value===ae.value?ue.value=ae.value=null:ue.value=null}else if(M.identity===ae.value){let vt=document.createElement("div"),hn=document.querySelector("#room .point-turn-center");vt.className="participant",vt.innerHTML=ia,hn.appendChild(vt),ae.value=null}else{let vt=document.querySelector("#room .point-turn-top"),hn=document.querySelector("#room .point-turn-bottom"),Gr=document.querySelector("#room .point-turn-other"),No=vt.children.length,Yd=hn.children.length,Xl=Gr.children.length;No<5?Yd>0?vt.appendChild(hn.firstElementChild):Xl>0&&vt.appendChild(Gr.firstChild):Yd<5&&Xl>0&&hn.appendChild(Gr.firstChild)}else I.value==="rightSide"&&ae.value&&ae.value===M.identity&&bo("grid"),ae.value===M.identity&&(ue.value===ae.value?ue.value=ae.value=null:ae.value=null);M.videoTrack&&M.videoTrack.detach(),M.audioTrack&&M.audioTrack.detach();return}if(M.isScreenShareEnabled&&F.value!=="pointTurn"){if(I.value==="grid")Nd(M.identity)!==-1||(ki.value=!0,ai.value=I.value,ae.value=M.identity,bo("rightSide"));else if(I.value==="rightSide"&&Nd(M.identity)===-1){ki.value=!0,ai.value=I.value,ae.value=M.identity;const vt=document.querySelector("#room .layout-rightside"),hn=document.querySelector("#room .layout-leftside");if(re&&hn){let Gr=null;for(;Gr=hn.firstChild;)Gr&&vt&&vt.appendChild(Gr);hn.insertBefore(re,hn.firstChild??null)}}}Ld(),M.videoTrack&&M.videoTrack.attach(oe),M.isLocal||M.audioTrack&&M.audioTrack.attach(oe);let Mn=document.getElementById(M.identity);if(Mn&&(Mn.innerHTML=M.isLocal?M.name+"(我)":M.name),li(M),Si(),F.value==="normal"&&He===-1&&ki.value&&(bo(ai.value),ki.value=!1),z.value>=1){const vt=JSON.parse(Be.room.metadata);St.value&&(Yn&&(clearInterval(Yn),Yn=null),Yn=setInterval(()=>{new Date(vt.roomStartTime).getTime()>0?(ee.value=Math.floor((Date.now()-new Date(vt.roomStartTime).getTime())/1e3),St.value=!1):ee.value++},1e3))}},_o=()=>{if(!Be){dt.message("error","liveClient初始化失败");return}Be.on("errorPush",M=>{rn("errorPush"),console.error("出错位置"+M.type+":",M.message),dt.message("error",M.message)}),Be.on("socketOpen",()=>{rn("socketOpen"),dt.message("success","链接建立成功")}),Be.on("roomCreatedSuccess",async M=>{rn("roomCreatedSuccess"),dt.message("success","会议房间创建成功"),o.value=M,await bs()}),Be.on("roomCreatedFail",M=>{rn("roomCreatedFail"),dt.message("error","会议房间创建失败")}),Be.on("joinRoomError",M=>{rn("joinRoomError"),console.error("加入房间失败",M),Te.value=!1,dt.message("error","加入房间失败")}),Be.on("roomConnected",async M=>{var G,re,oe,ce;if(rn("roomConnected"),Be.room){const Ne=JSON.parse(Be.room.metadata);console.log("metadata222:",Ne,Ne.owner),a.value=Ne.roomAlias,c.value=Ne.creator??"暂无",b.value=Ne.owner}(G=n.userData)!=null&&G.username&&Be.updateParticipantName(n.userData.mobile,n.userData.username),In=setInterval(()=>{y.value=navigator.connection.rtt},1e3),P.value=`${n.h5Url}?roomNum=${o.value}&tenantId=${n.org}&userName=${n.userData.username}&mobile=${n.userData.mobile}`,console.log("joinType",n.joinType);try{const Ne=await Jv(o.value,{baseUrl:n.baseUrl,token:n.token});((re=Ne==null?void 0:Ne.data)==null?void 0:re.code)===0&&Array.isArray((oe=Ne==null?void 0:Ne.data)==null?void 0:oe.data)&&u.value.push(...Ne.data.data)}catch(Ne){console.error("queryConfSitesStatus error",Ne)}if(ko(),n.joinType==="launch"){if(u.value=n.tempInviteList,ne.value>0){const Ne=u.value.filter(be=>(be==null?void 0:be.classify)==="人员"),De=u.value.filter(be=>(be==null?void 0:be.classify)!=="人员");if(Ne.length>0){if(n.wxOfficial)for(let be=0;be<Ne.length;be++)Do(Ne[be]);else if(n.isCustomizeMiniInvitations)r("inviteMessageSend",{inviteUserList:Ne,meetingName:a.value,meetingNum:o.value,fromUser:n.userData.username});else for(let be=0;be<Ne.length;be++){if(n.defaultInviteWay==="mini")try{const tt=await Kl(Ne[be].userName,Ne[be].mobile),Qe=await Hh([{roomName:a.value,userName:Ne[be].userName,phone:Ne[be].mobile,message:tt.messageTemplate}],{baseUrl:n.baseUrl,token:n.token});console.log("成功发送短信链接与语音播报",tt,Qe)}catch(tt){console.error("发送语音播报失败",tt)}else wo(Ne[be].mobile);be>0&&(be+1)%10===0&&await oa(500)}Ne.forEach(be=>{oi(be)})}qr(De);const ge=u.value.map(be=>(be==null?void 0:be.classify)==="人员"?{roomName:o.value,roomAlias:a.value,userId:be.userId,userName:be.userName,officeName:be==null?void 0:be.officeName,metadata:JSON.stringify({classify:be==null?void 0:be.classify,phone:be==null?void 0:be.mobile})}:{roomName:o.value,roomAlias:a.value,userId:be.userId,userName:be.userName,officeName:be==null?void 0:be.officeName,metadata:JSON.stringify({phone:"",classify:be==null?void 0:be.classify,equipmentCode:be==null?void 0:be.mobile,equipmentPassword:be==null?void 0:be.equipmentPassword,equipmentType:be==null?void 0:be.equipmentType})});n.joinType==="launch"&&ge.findIndex(tt=>tt.userId===n.userData.userId)<0&&ge.push({roomName:o.value,roomAlias:a.value,userId:n.userData.userId,userName:n.userData.username,officeName:(ce=n.userData)==null?void 0:ce.officeName,metadata:JSON.stringify({classify:"人员",phone:n.userData.mobile})}),Fc(ge,{baseUrl:n.baseUrl,token:n.token}).then(be=>{console.log("储存已邀请用户",be)})}}else sa();Te.value=!0}),Be.on("setHostSuccess",async M=>{if(rn("setHostSuccess"),console.log("主持人添加成功",M),ci(M),ue.value!==b.value.ownerId){await l.nextTick();let G=l.toValue(ue);ue.value=b.value.ownerId,console.log("修改前主持人",G),console.log("修改后主持人",ue.value);let re=document.getElementById(`participant-${ue.value}`);if(F.value==="pointTurn"){const oe=document.querySelector("#room .point-turn-top"),ce=document.querySelector("#room .point-turn-center"),Ne=document.querySelector("#room .point-turn-bottom"),De=document.querySelector("#room .point-turn-other");let ge=oe.children.length,be=Ne.children.length,tt=De.children.length;if(ce.hasChildNodes()){let Qe=ce.children;if(console.log("childNodes",Qe),ue.value===ae.value)if(Qe[0].id){document.querySelectorAll(".point-turn-top .participant").length>=5?document.querySelectorAll(".point-turn-bottom .participant").length>=5?De.appendChild(Qe[0]):Ne.appendChild(Qe[0]):oe.appendChild(Qe[0]),ce.insertBefore(re,ce.firstElementChild??null);let Tt=document.createElement("div");Tt.className="participant",Tt.innerHTML=ia,ce.appendChild(Tt)}else ce.insertBefore(re,ce.firstElementChild??null);else Qe[0].id?(document.querySelectorAll(".point-turn-top .participant").length>=5?document.querySelectorAll(".point-turn-bottom .participant").length>=5?De.appendChild(Qe[0]):Ne.appendChild(Qe[0]):oe.appendChild(Qe[0]),ce.insertBefore(re,ce.firstElementChild??null)):(ce.removeChild(Qe[0]),ce.insertBefore(re,ce.firstElementChild??null))}else{ce.insertBefore(re,ce.firstElementChild??null);let Qe=document.createElement("div");Qe.className="participant",Qe.innerHTML=ia,ce.appendChild(Qe)}ge<5?be>0?oe.appendChild(Ne.firstElementChild):tt>0&&oe.appendChild(De.firstChild):be<5&&tt>0&&Ne.appendChild(De.firstChild)}}}),Be.on("roomMetadataChanged",M=>{console.log("roomMetadataChanged",M,JSON.parse(M))}),Be.on("roomDisconnected",()=>{rn("roomDisconnected"),dt.message("info","房间链接已断开"),Te.value=!1,ag(),og(),Fe.value?Be.deleteRoom(n.userData.mobile).then(()=>{Hr()}).catch(M=>{Hr()}):Hr()}),Be.on("localCameraChange",M=>{rn("localCameraChange"),Ce.value=M,Ce.value?dt.message("success","摄像头已开启"):dt.message("success","摄像头已关闭")}),Be.on("localMicrophoneChange",M=>{rn("localMicrophoneChange"),me.value=M,me.value?dt.message("success","麦克风已开启"):dt.message("success","麦克风已关闭")}),Be.on("localScreenShareChange",M=>{rn("localScreenShareChange"),se.value=M,se.value?dt.message("success","屏幕共享已开启"):dt.message("success","屏幕共享已关闭")}),Be.on("startRecording",M=>{rn("startRecording"),xe.value=!0,Ae.value=M,dt.message("success","开始录制")}),Be.on("stopRecording",M=>{rn("stopRecording"),xe.value=!1,dt.message("success","结束录制")}),Be.on("requestDeviceOpen",M=>{rn("requestDeviceOpen"),M.input=="1"?dt.message("info","房主请求您开启麦克风"):M.input=="2"&&dt.message("info","房主请求您开启摄像头")}),Be.on("mediaDeviceChange",M=>{rn("mediaDeviceChange"),dt.message("success","设备切换成功"),console.log("设备类型"+M.kind,M.deviceId),M.kind=="audioinput"?A.audioInputDevice=M.deviceId:M.kind=="videoinput"?A.videoDevice=M.deviceId:A.audioOutputDevice=M.deviceId}),Be.on("sendTextFailed",M=>{rn("sendTextFailed"),dt.message("error","e")}),Be.on("sendTextSuccess",async M=>{rn("sendTextSuccess"),await l.nextTick(),Ji.value&&Ji.value.clearInputContent(),console.log("instantRef.value",Sn.value),Sn.value&&Sn.value.clearInput()}),Be.on("messageReceived",M=>{rn("sendTextSuccess"),M.timestamp=Qn().format("HH:mm"),mo(M)}),Be.on("videoCallRender",M=>{console.log(M,"e11"),rn("videoCallRender"),kr(M)}),Be.on("activeSpeakerChange",M=>{if(rn("activeSpeakerChange"),M.length>0){let G=0,re=-1;if(M.forEach((oe,ce)=>{oe.audioLevel>G&&(G=oe.audioLevel,re=ce)}),re>=0){const oe=M[re];cg(oe);try{const{setVoiceActivatedIdentity:ce}=require("../utils/autoPolling.js");typeof ce=="function"&&ce(oe.identity)}catch{}try{at.emit("voiceActivated",oe)}catch(ce){console.warn("emit voiceActivated failed",ce)}}}}),Be.on("makeCallSuccess",()=>{rn("makeCallSuccess"),dt.message("success","外呼邀请发送成功"),bt.value=!1})},Ud=()=>{Be=window.liveClient,_o()},$l=async()=>{Be&&await Be.createRoom()},Hl=async()=>{await Be.startRecord()},Ci=async()=>{await Be.stopRecord()},dg=()=>{at.emit("getaddressBookUserForMeeting",{isInner:!0})},To=()=>{at.emit("getaddressBookUserForMeeting",{isInner:!0,isVolte:!0})},zr=async(M=[])=>{if(n.isCustomizeMiniInvitations)r("inviteMessageSend",{inviteUserList:M,meetingName:a.value,meetingNum:o.value,fromUser:n.userData.username});else for(let G=0;G<M.length;G++){if(n.defaultInviteWay==="mini")try{const re=await Kl(M[G].userName,M[G].mobile),oe=await Hh([{roomName:a.value,userName:M[G].userName,phone:M[G].mobile,message:re.messageTemplate}],{baseUrl:n.baseUrl,token:n.token});console.log("成功发送短信链接与语音播报",re,oe)}catch(re){console.error("发送语音播报失败",re)}else wo(M[G].mobile);G>0&&(G+1)%10===0&&await oa(500)}M.forEach(G=>{oi(G)})},ko=async()=>{var M;try{const G=await Qv(o.value,{baseUrl:n.baseUrl,token:n.token}),re=(M=G==null?void 0:G.data)==null?void 0:M.msg;console.log(re,"dnis"),re&&qh({dnis:re,mute:!0,name:"重庆市卫健委",org:"default",room:o.value,type:6},{baseUrl:n.meetingUrl,token:n.token})}catch(G){console.error("getScheduleConfCode error",G)}},_s=async M=>{var De;u.value=M;let G=[],re=-1;u.value.forEach(ge=>{pe.value>0?(re=d.value.findIndex(be=>be.mobile===ge.mobile),re<0&&G.push(ge)):G.push(ge)}),console.log("本次追加邀请人员",G);const oe=G.filter(ge=>(ge==null?void 0:ge.classify)==="人员"),ce=G.filter(ge=>ge&&ge.uri),Ne=G.filter(ge=>(ge==null?void 0:ge.classify)!=="人员"&&!(ge!=null&&ge.uri));if(oe.length>0&&zr(oe),qr(Ne),ce.length>0&&await ra(ce),ne.value>0){const be=u.value.filter(tt=>!(tt!=null&&tt.uri)).map(tt=>(tt==null?void 0:tt.classify)==="人员"?{roomName:o.value,roomAlias:a.value,userId:tt.userId,userName:tt.userName,officeName:tt.officeName,metadata:JSON.stringify({classify:tt.classify,phone:tt.mobile})}:{roomName:o.value,roomAlias:a.value,userId:tt.userId,userName:tt.userName,officeName:tt.officeName,metadata:JSON.stringify({phone:"",classify:tt==null?void 0:tt.classify,equipmentCode:tt==null?void 0:tt.mobile,equipmentPassword:tt==null?void 0:tt.equipmentPassword,equipmentType:tt==null?void 0:tt.equipmentType})});n.joinType==="launch"&&be.findIndex(Qe=>Qe.userId===n.userData.userId)<0&&be.push({roomName:o.value,roomAlias:a.value,userId:n.userData.userId,userName:n.userData.username,officeName:(De=n.userData)==null?void 0:De.officeName,metadata:JSON.stringify({classify:"人员",phone:n.userData.mobile})}),Fc(be,{baseUrl:n.baseUrl,token:n.token}).then(tt=>{console.log("储存已邀请用户",tt)})}},ql=M=>{zr([M])},So=async(M,G)=>{if(!G){dt("error","设备id不存在");return}if(M=="audioinput")await Be.changeAudioDevice(G);else if(M=="audiooutput")await Be.changeOutputDevice(G);else if(M=="videoinput")await Be.changeVideoDevice(G);else return},zl=async M=>{await So("audioinput",M),V.value=!1},hg=async M=>{await So("audiooutput",M),V.value=!1},fg=async M=>{await So("videoinput",M),B.value=!1},pg=async()=>{Ue.value||(Ue.value=!0,await l.nextTick(),await l.nextTick()),at.emit("getDeviceSetter",{type:0,tempActive:A})},Co=M=>{F.value=M,ie.value=!1},Fd=async()=>{await Be.changeCameraStatus();try{const M={owner:"administrators",org:"default",room:o.value,identity:g.value,input:2,cmd:!Ce.value};await po(M,{baseUrl:n.meetingUrl,token:n.token})}catch(M){console.error("调用muteParticipant接口失败:",M)}},mg=async()=>{await Be.changeMicrophoneStatus(),await new Promise(M=>setTimeout(M,100));try{const M={owner:"administrators",org:"default",room:o.value,identity:g.value,input:1,cmd:!me.value},G=await po(M,{baseUrl:n.meetingUrl,token:n.token})}catch(M){console.error("调用muteParticipant接口失败:",M)}},Gl=async()=>{await Be.changeScreenShareStatus()},Vd=M=>{Be.sendMessage(M,f.value)},jd=()=>{h.value=[],Ce.value=n.tempCameraStatus,me.value=n.tempMicroStatus},$d=async M=>{if(Be){Be.changeParticipantCameraStatus(M.identity,M.isMute);try{const G={owner:"administrators",org:"default",room:o.value,identity:M.identity,input:2,cmd:M.isMute};await po(G,{baseUrl:n.meetingUrl,token:n.token})}catch(G){console.error("调用muteParticipant接口失败:",G)}}},aa=async M=>{if(Be){Be.changeParticipantMicrophoneStatus(M.identity,M.isMute);try{const G={owner:"administrators",org:"default",room:o.value,identity:M.identity,input:1,cmd:M.isMute};await po(G,{baseUrl:n.meetingUrl,token:n.token})}catch(G){console.error("调用muteParticipant接口失败:",G)}}},xo=()=>{z.value>0&&h.value.forEach(M=>{Yt(M.identity)||M.isCameraEnabled&&$d({identity:M.identity,isMute:!0})})},Hd=async()=>{z.value>0&&h.value.forEach(M=>{Yt(M.identity)||M.isMicrophoneEnabled&&aa({identity:M.identity,isMute:!0})})},gg=async M=>{if(F.value==="pointTurn"){if(ue.value&&ue.value===M){dt.message("info","当前与会者已被设置为主持人,暂无法设为焦点");return}if(ae.value&&ae.value===M){dt.message("info","当前与会者已被设置为焦点");return}ae.value=M,await l.nextTick();const G=document.querySelector("#room .point-turn-center"),re=document.getElementById(`participant-${ae.value}`);let oe=null;if(re&&(oe=re.parentElement,console.log("焦点元素的父元素",oe,oe.className),G)){if(G.children.length<2){if(G.appendChild(re),oe&&oe.className!=="point-turn-other"){const ce=document.querySelector("#room .point-turn-other");ce&&ce.children.length>0&&oe.appendChild(ce.firstChild)}}else if(G.lastChild.id)oe&&(oe.appendChild(G.lastChild),G.appendChild(re));else if(G.removeChild(G.lastChild),G.appendChild(re),oe&&oe.className!=="point-turn-other"){const ce=document.querySelector("#room .point-turn-other");ce&&ce.children.length>0&&oe.appendChild(re)}}}else if(I.value==="rightSide"){if(ae.value&&ae.value===M){dt.message("info","当前与会者已被设置为焦点");return}ae.value=M;const G=document.querySelector("#room .layout-rightside"),re=document.querySelector("#room .layout-leftside"),oe=document.getElementById(`participant-${ae.value}`);if(oe&&re){let ce=null;for(;ce=re.firstChild;)ce&&G&&G.appendChild(ce);re.insertBefore(oe,re.firstChild??null)}}else I.value==="grid"&&(ae.value&&ae.value===M?dt.message("info","当前与会者已被设置为焦点"):ae.value=M,bo("rightSide"))},vg=()=>{const M=document.getElementById(`participant-${ae.value}`);if(F.value==="pointTurn"){if(M){const G=document.querySelector("#room .point-turn-top"),re=document.querySelector("#room .point-turn-center"),oe=document.querySelector("#room .point-turn-bottom"),ce=document.querySelector("#room .point-turn-other");G.children.length>=5?oe.children.length>=5?ce.appendChild(M):oe.appendChild(M):G.appendChild(M);const Ne=document.createElement("div");Ne.className="participant",Ne.innerHTML=ia,re.appendChild(Ne)}}else if(I.value==="rightSide"){const G=document.querySelector("#room .layout-rightside"),re=document.querySelector("#room .layout-leftside");if(M){let oe=null;for(;oe=re.firstChild;)oe&&G&&G.appendChild(oe)}}ae.value=null},qd=M=>{Be&&Be.changeParticipantMicrophoneStatus(M,!0)},zd=M=>{Be&&Be.changeParticipantCameraStatus(M,!0)},yg=M=>{var G;Yt(M)||Be.setParticipantToHost(M,(G=vs(M))==null?void 0:G.name)},Gd=async M=>{Be&&await Be.setParticipantDeafness(M)},bg=async M=>{Be&&await Be.cancelParticipantDeafness(M)},_g=M=>{at.emit("updateName",{identity:M})},Tg=async M=>{Be&&await Be.updateParticipantName(M.identity,M.name)},kg=async M=>{if(Be){await Be.moveoutParticipant(M);try{const G=vs(M);if(G&&(G.uri||G.metadata&&/"equipmentCode"|"equipmentType"/i.test(G.metadata))&&o.value){const oe=G.uri?{uri:G.uri}:{};await A8(o.value,oe,{baseUrl:n.baseUrl,token:n.token})}}catch(G){console.error("disconnectSites error",G)}}},Sg=async()=>{document.fullscreenElement||document.msFullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement?document.exitFullscreen?document.exitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitCancelFullScreen?document.webkitCancelFullScreen():document.msExitFullscreen&&document.msExitFullscreen():(await l.nextTick(),s.value.requestFullscreen&&s.value.requestFullscreen())},Wd=(M=3,G)=>{Pe.value=M,et.value=!0,yn&&clearInterval(yn),yn=setInterval(()=>{Pe.value>0&&Pe.value--},1e3)},Wl=()=>{console.log("点击",yn),yn&&clearInterval(yn),et.value=!0},Kd=M=>{M.target.className.includes("meeting-name")||(H.value=!1),M.target.className.includes("exit-btn")||M.target.className.includes("close-meeting-icon")||(Le.value=!1),M.target.className.includes("member-item")||M.target.className.includes("appoint-dialog")||M.target.className.includes("member-list")||M.target.className.includes("control-list-item")||(nt.value=!1),M.target.className.includes("icon-btn-option")||M.target.className.includes("more-icon")||($e.value=!1)},Xd=M=>{ye.value||M.preventDefault()},Eo=()=>{window.addEventListener("click",Kd),window.addEventListener("beforeunload",Xd),document.addEventListener("fullscreenchange",Ts)},Cg=()=>{window.removeEventListener("click",Kd),document.removeEventListener("fullscreenchange",Ts)},xg=M=>{bt.value?bt.value=!1:(bt.value=!0,zt.value={bottom:M.target.offsetTop+50+"px",left:M.target.clientLeft-122+"px"})};function wo(M){const G=Be||window.liveClient;if(!G||typeof G.makeCall!="function"){console.error("liveClient 未就绪,无法发起外呼"),dt.message("error","外呼服务未就绪,请稍后再试");return}G.makeCall(M,"0"+M)}const Eg=async M=>{if(n.isCustomizeMiniInvitations)r("miniInviteSend",{inviteMobile:M,fromUser:n.userData.username,meetingName:a.value,meetingNum:o.value});else try{const G=await Kl(M,M),re=await Hh([{roomName:a.value,userName:M,phone:M,message:G.messageTemplate}],{baseUrl:n.baseUrl,token:n.token});dt.message("success","成功发送短信链接与语音播报"),bt.value=!1}catch(G){console.error("发送语音播报失败",G)}};function Kl(M,G){return new Promise((re,oe)=>{E8({path:n.miniPagePath,query:`roomNum=${o.value}&tenantId=${n.org}&userName=${M}&mobile=${G}&joinType=join&cameraStatus=trueµphoneStatus=true}`},{baseUrl:n.baseUrl,token:n.token}).then(ce=>{if(console.log("生成小程序链接地址",ce),ce.data.code==0){const Ne=ce.data.msg,De=`【鸿信翼联视频会议】 邀请您参加视频会议。
|
383
383
|
会议主题:${a.value}
|
384
|
-
微信小程序参会链接:${Ne}`;re({meetingWXLink:Ne,messageTemplate:De})}else oe(ce.data.msg)})})}function oa(M){return new Promise(G=>setTimeout(G,M))}function la(M){var oe;let G=[],re=-1;if(M&&M.length>0){M.forEach(De=>{pe.value>0?(re=d.value.findIndex(ge=>ge.mobile===De.mobile),re<0&&G.push(De)):G.push(De),ui(De)}),console.log("本次追加邀请人员",G);const ce=G.filter(De=>(De==null?void 0:De.classify)==="人员"),Ne=G.filter(De=>(De==null?void 0:De.classify)!=="人员");if(ce.length>0&&zr(ce),qr(Ne),ne.value>0){const De=u.value.map(ge=>(ge==null?void 0:ge.classify)==="人员"?{roomName:o.value,roomAlias:a.value,userId:ge.userId,userName:ge.userName,officeName:ge.officeName,metadata:JSON.stringify({classify:ge.classify,phone:ge.mobile})}:{roomName:o.value,roomAlias:a.value,userId:ge.userId,userName:ge.userName,officeName:ge.officeName,metadata:JSON.stringify({phone:"",classify:ge==null?void 0:ge.classify,equipmentCode:ge==null?void 0:ge.mobile,equipmentPassword:ge==null?void 0:ge.equipmentPassword,equipmentType:ge==null?void 0:ge.equipmentType})});n.joinType==="launch"&&De.findIndex(be=>be.userId===n.userData.userId)<0&&De.push({roomName:o.value,roomAlias:a.value,userId:n.userData.userId,userName:n.userData.username,officeName:(oe=n.userData)==null?void 0:oe.officeName,metadata:JSON.stringify({classify:"人员",phone:n.userData.mobile})}),Fc(De,{baseUrl:n.baseUrl,token:n.token}).then(ge=>{console.log("储存已邀请用户",ge)})}}}function Ts(){document.fullscreenElement?Tr.value=!0:Tr.value=!1}const Do=async M=>{try{const G=await w8({orgcode:"500103014",username:"dianxintest",password:"abcd@1234",template_id:"qke0p5vGp_PAyEV-p620NbjwvjZ9xCNmkqKvv_jtmBE",url:`${n.h5Url}index?roomNum=${o.value}&userName=${M.label}&mobile=${M.mobile}&tenantId=${n.org}`,client_msg_id:"",firstvalue:"",keyword1value:`请参加会议!会议号:${o.value}`,keyword2value:xi(new Date),remark:""},{baseUrl:n.baseUrl,token:n.token});console.log("成功发送微信通知",G,result)}catch(G){console.error("发送语音播报失败",G)}},xi=M=>{const G=M.getFullYear(),re=String(M.getMonth()+1).padStart(2,"0"),oe=String(M.getDate()).padStart(2,"0"),ce=String(M.getHours()).padStart(2,"0"),Ne=String(M.getMinutes()).padStart(2,"0"),De=String(M.getSeconds()).padStart(2,"0");return`${G}-${re}-${oe} ${ce}:${Ne}:${De}`};l.watch(()=>Pe.value,M=>{M<=0&&(et.value=!1,yn&&clearInterval(yn))}),l.watch(()=>z.value,(M,G)=>{M!==G&&gl()}),l.watch(()=>I.value,async(M,G)=>{if(console.log("新布局",M),console.log("旧布局",G),await l.nextTick(),F.value=="normal"){let re=document.getElementById("room");if(re){if(G==="grid"&&M==="rightSide"){let oe=document.querySelector("#room .layout-rightside"),ce=document.querySelector("#room .layout-leftside");if(ce||(ce=document.createElement("div"),ce.className="layout-leftside"),oe||(oe=document.createElement("div"),oe.className="layout-rightside"),ae.value){let Ne=vs(ae.value);if(Ne){const De=document.getElementById(`participant-${Ne.identity}`);if(De){if(ce.hasChildNodes()){let ge;for(;ge=ce.firstChild;)ge&&oe.appendChild(ge)}if(ce.appendChild(De),re.hasChildNodes()){let ge;for(;ge=re.firstElementChild;)ge&&oe.appendChild(ge)}}}else if(Ne=Pd(),Ne){const De=document.getElementById(`participant-${Ne.identity}`);if(De){if(ce.hasChildNodes()){let ge;for(;ge=ce.firstChild;)ge&&oe.appendChild(ge)}if(ce.appendChild(De),re.hasChildNodes()){let ge;for(;ge=re.firstElementChild;)ge&&oe.appendChild(ge)}}}}else{let Ne=Pd();if(Ne){const De=document.getElementById(`participant-${Ne.identity}`);if(De){if(ce.hasChildNodes()){let ge;for(;ge=ce.firstChild;)ge&&oe.appendChild(ge)}if(ce.appendChild(De),re.hasChildNodes()){let ge;for(;ge=re.firstChild;)ge&&oe.appendChild(ge)}}}}re.insertBefore(ce,re.firstChild??null),re.appendChild(oe)}if(G==="rightSide"&&M==="grid"){let oe=document.querySelector("#room .layout-rightside"),ce=document.querySelector("#room .layout-leftside");console.log("layoutSideEle",oe,ce);const Ne=document.createDocumentFragment();if(oe){if(oe.hasChildNodes()){let De;for(;De=oe.firstChild;)Ne.appendChild(De)}re.removeChild(oe)}if(ce){if(ce.hasChildNodes()){let De;for(;De=ce.firstChild;)console.log("layoutLeftSideEleChild",ce,De),re.insertBefore(De,re.firstChild??null)}re.removeChild(ce)}re.appendChild(Ne)}}}gl()}),l.watch(()=>F.value,async M=>{console.log("当前会议模式",M),await l.nextTick();let G=document.getElementById("room");if(M==="pointTurn"){let re=document.createElement("div");re.className="point-turn-top";let oe=document.createElement("div");oe.className="point-turn-center";let ce=document.createElement("div");ce.className="point-turn-bottom";let Ne=document.createElement("div");Ne.className="point-turn-other";let De=document.createElement("div"),ge=document.createElement("div");if(De.className="participant",De.innerHTML=ia,ge.className="participant",ge.innerHTML=ia,oe.appendChild(De),oe.appendChild(ge),I.value==="grid"){let be=null;for(;be=G.firstChild;)be&&(ue.value&&be.id===`participant-${ue.value}`&&(oe.removeChild(De),oe.insertBefore(be,oe.firstChild??null)),ae.value&&be.id===`participant-${ae.value}`&&(ae.value===ue.value||(oe.removeChild(ge),oe.appendChild(be))),(!ue.value&&!ae.value||!(be.id===`participant-${ue.value}`||be.id===`participant-${ae.value}`))&&(re.children.length>=5?ce.children.length>=5?Ne.appendChild(be):ce.appendChild(be):re.appendChild(be)))}if(I.value==="rightSide"){let be=document.querySelector("#room .layout-rightside"),tt=document.querySelector("#room .layout-leftside");if(tt){let Qe=null;for(;Qe=tt.firstChild;)Qe&&(ue.value&&Qe.id===`participant-${ue.value}`&&(oe.removeChild(De),oe.insertBefore(Qe,oe.firstChild??null)),ae.value&&Qe.id===`participant-${ae.value}`&&(ae.value===ue.value||(oe.removeChild(ge),oe.appendChild(Qe))),(!ue.value&&!ae.value||!(Qe.id===`participant-${ue.value}`||Qe.id===`participant-${ae.value}`))&&(re.children.length>=5?ce.children.length>=5?Ne.appendChild(Qe):ce.appendChild(Qe):re.appendChild(Qe)));G.removeChild(tt)}if(be){let Qe=null;for(;Qe=be.firstChild;)Qe&&(ue.value&&Qe.id===`participant-${ue.value}`&&(oe.removeChild(De),oe.insertBefore(Qe,oe.firstChild??null)),ae.value&&Qe.id===`participant-${ae.value}`&&(ae.value===ue.value||(oe.removeChild(ge),oe.appendChild(Qe))),(!ue.value&&!ae.value||!(Qe.id===`participant-${ue.value}`||Qe.id===`participant-${ae.value}`))&&(re.children.length>=5?ce.children.length>=5?Ne.appendChild(Qe):ce.appendChild(Qe):re.appendChild(Qe)));G.removeChild(be)}}G.insertBefore(re,G.firstChild??null),G.appendChild(oe),G.appendChild(ce),G.appendChild(Ne)}else{let re=document.querySelector("#room .point-turn-top"),oe=document.querySelector("#room .point-turn-center"),ce=document.querySelector("#room .point-turn-bottom"),Ne=document.querySelector("#room .point-turn-other");if(console.log("currentLayout",I.value),I.value==="grid"){if(re){if(re.children.length>0){let De=null;for(;De=re.firstChild;)De&&G.appendChild(De)}G.removeChild(re)}if(oe){if(oe.children.length>0){let De=null;for(;De=oe.firstChild;)De&&(De.id?G.appendChild(De):De.remove())}G.removeChild(oe)}if(ce){if(ce.children.length>0){let De=null;for(;De=ce.firstChild;)De&&G.appendChild(De)}G.removeChild(ce)}if(Ne){if(Ne.children.length>0){let De=null;for(;De=Ne.firstChild;)De&&G.appendChild(De)}G.removeChild(Ne)}}if(I.value==="rightSide"){let De=document.createElement("div");De.className="layout-leftside";let ge=document.createElement("div");if(ge.className="layout-rightside",!ae.value&&ue.value&&(ae.value=ue.value),re){if(re.children.length>0){let be=null;for(;be=re.firstChild;)be&&(ae.value&&be.id===`participant-${ae.value}`?De.appendChild(be):ge.appendChild(be))}G.removeChild(re)}if(oe){if(oe.children.length>0){let be=null;for(;be=oe.firstChild;)be&&(be.id?ae.value&&be.id===`participant-${ae.value}`?De.appendChild(be):ge.appendChild(be):be.remove())}G.removeChild(oe)}if(ce){if(ce.children.length>0){let be=null;for(;be=ce.firstChild;)be&&(ae.value&&be.id===`participant-${ae.value}`?De.appendChild(be):ge.appendChild(be))}G.removeChild(ce)}if(Ne){if(Ne.children.length>0){let be=null;for(;be=Ne.firstChild;)be&&(ae.value&&be.id===`participant-${ae.value}`?De.appendChild(be):ge.appendChild(be))}G.removeChild(Ne)}G.appendChild(De),G.appendChild(ge)}}try{const re=localStorage.getItem("hx_device_setter_settings");if(re){const oe=JSON.parse(re);oe&&typeof oe.isAutoPolling=="boolean"&&Uu(oe.isAutoPolling)}}catch(re){console.warn("读取本地轮询开关失败",re)}gl()}),l.onMounted(async()=>{await go(),jd();let M=5e3;try{const G=localStorage.getItem("hx_device_setter_settings");if(G){const re=JSON.parse(G);re&&typeof re.pollingIntervalMs=="number"&&re.pollingIntervalMs>0&&(M=re.pollingIntervalMs)}}catch(G){console.warn("读取本地轮询设置失败",G)}try{const G=localStorage.getItem("hx_device_setter_settings");if(G){const re=JSON.parse(G);if(re&&typeof re.isAutoPolling=="boolean")try{Uu(re.isAutoPolling)}catch(oe){console.warn("同步本地轮询开关到 manager 失败",oe)}}}catch(G){console.warn("读取本地轮询设置失败",G)}DI({getParticipants:()=>h.value,getCurrentLayout:()=>I.value,getCurrentRoomMode:()=>F.value,pollingIntervalMs:M,getHostIdentity:()=>ue.value}),window.liveClient||await new Promise(G=>{const re=()=>{window.removeEventListener("liveClientReady",re),G()};window.addEventListener("liveClientReady",re,{once:!0}),setTimeout(()=>{window.removeEventListener("liveClientReady",re),G()},3e3)}),n.joinType==="launch"?(Ud(),Be.roomName=n.tempMeetingName,await $l()):(Ud(),o.value=n.tempMeetingNum,await bs()),Wd(5),Eo(),at.on("getmeetingMembers",Ao),at.on("startVideoCall",Qi),at.on("updateVisibleParticipants",G=>{G&&Array.isArray(G.participants)&&I.value==="rightSide"&&xt(G.participants)}),at.on("pointTurnPolling",G=>{if(!G||!Array.isArray(G.participants)||F.value!=="pointTurn")return;const re=document.querySelector("#room .point-turn-top"),oe=document.querySelector("#room .point-turn-bottom"),ce=document.querySelector("#room .point-turn-center");if(!re||!oe||!ce)return;const Ne=G.participants.filter(Qe=>{const Tt=Qe&&Qe.identity;return!(!Tt||Tt===ue.value||Tt===ae.value)}),De=5,ge=5,be=Ne.slice(0,De),tt=Ne.slice(De,De+ge);be.forEach(Qe=>{const Tt=document.getElementById(`participant-${Qe.identity}`);Tt&&Tt!==ce.firstChild&&Tt!==ce.lastChild&&re.appendChild(Tt)}),tt.forEach(Qe=>{const Tt=document.getElementById(`participant-${Qe.identity}`);Tt&&Tt!==ce.firstChild&&Tt!==ce.lastChild&&oe.appendChild(Tt)})}),gl()}),l.onBeforeUnmount(()=>{Od(),Cg(),Be=null,f_()}),e({appendInvite:la});const Qi=M=>{console.log("Received start video call for mobile:",M),wo(M)},Ao=()=>{console.log("Getting meeting members...")};return(M,G)=>(l.openBlock(),l.createElementBlock("div",{class:"meeting-room",ref_key:"rootElm",ref:s},[l.createElementVNode("div",NV,[l.createElementVNode("div",PV,[IV,l.createElementVNode("div",{class:"meeting-name",onClick:G[0]||(G[0]=re=>H.value=!H.value)},[l.createElementVNode("span",OV,l.toDisplayString(a.value),1),MV,H.value?(l.openBlock(),l.createBlock(OU,{key:0,meetingName:a.value,meetingNum:o.value,meetingH5Link:P.value,meetingWXLink:C.value,meetingCreator:c.value},null,8,["meetingName","meetingNum","meetingH5Link","meetingWXLink","meetingCreator"])):l.createCommentVNode("",!0)]),l.createElementVNode("div",{class:"meeting-signal",onMouseenterCapture:G[3]||(G[3]=re=>j.value=!0),onMouseleave:G[4]||(G[4]=re=>j.value=!1)},[j.value?(l.openBlock(),l.createBlock(jU,{key:0,meetingQuality:p.value,meetingTTL:y.value,onMouseenter:G[1]||(G[1]=re=>j.value=!0),onMouseleave:G[2]||(G[2]=re=>j.value=!1)},null,8,["meetingQuality","meetingTTL"])):l.createCommentVNode("",!0)],32)]),l.createElementVNode("div",RV,[LV,l.createElementVNode("span",null,l.toDisplayString(U.value),1)]),l.createElementVNode("div",BV,[l.createElementVNode("div",{class:l.normalizeClass(["btn",L.value?"layout-active":"layout"]),onMouseenterCapture:G[7]||(G[7]=re=>L.value=!0),onMouseleave:G[8]||(G[8]=re=>L.value=!1)},[L.value?(l.openBlock(),l.createBlock(WU,{key:0,currentLayout:I.value,layoutList:$.value,layoutLabels:Y.value,currentRoomMode:F.value,onSetLayout:qn,onMouseenter:G[5]||(G[5]=re=>L.value=!0),onMouseleave:G[6]||(G[6]=re=>L.value=!1)},null,8,["currentLayout","layoutList","layoutLabels","currentRoomMode"])):l.createCommentVNode("",!0)],34),l.createElementVNode("div",{class:"btn full-screen",onClick:G[9]||(G[9]=re=>Sg())}),l.createElementVNode("div",{class:"btn close-meeting-icon",onClick:G[10]||(G[10]=re=>Te.value?lg(re):Hr())})])]),l.createElementVNode("div",UV,[l.createElementVNode("div",{class:l.normalizeClass(["meeting-room-contain-left",{"meeting-room-contain-left-slide":K.value||q.value}])},[l.createElementVNode("div",{class:l.normalizeClass(["meeting",st.value]),id:"room",onMousemove:G[11]||(G[11]=re=>Wd(5))},null,34),l.createVNode(CV,{"message-list":w.value,ref_key:"instantRef",ref:Sn,onMessageSend:Vd},null,8,["message-list"]),l.createElementVNode("div",{class:l.normalizeClass(["meeting-control-bar",{"meeting-control-bar-show":et.value}]),onMousemove:Wl},[l.createElementVNode("div",FV,[l.createElementVNode("div",VV,[l.createElementVNode("div",{class:l.normalizeClass(["custom-select-btn",me.value?"mic-on":"mic-off"]),onClick:mg},null,2),l.createElementVNode("div",{class:"custom-select-right",onClick:G[12]||(G[12]=re=>V.value=!V.value)},jV),V.value?(l.openBlock(),l.createBlock(Ll,{key:0,dialogType:"audio",audioDevices:T.value,outputDevices:E.value,activeDevice:A,onChooseAudioInputDevice:zl,onChooseAudioOutputDevice:hg},null,8,["audioDevices","outputDevices","activeDevice"])):l.createCommentVNode("",!0)]),l.createElementVNode("div",$V,[l.createElementVNode("div",{class:l.normalizeClass(["custom-select-btn",Ce.value?"cam-on":"cam-off"]),onClick:Fd},null,2),l.createElementVNode("div",{class:"custom-select-right",onClick:G[13]||(G[13]=re=>B.value=!B.value)},HV),B.value?(l.openBlock(),l.createBlock(Ll,{key:0,videoDevices:D.value,activeDevice:A,dialogType:"video",onChooseVideoDevice:fg},null,8,["videoDevices","activeDevice"])):l.createCommentVNode("",!0)])]),l.createElementVNode("div",qV,[c.value===g.value?(l.openBlock(),l.createElementBlock("div",zV,[GV,WV,l.createElementVNode("div",{class:"custom-select-right",onClick:G[14]||(G[14]=re=>ie.value=!ie.value)},KV),ie.value?(l.openBlock(),l.createBlock(Ll,{key:0,currentRoomMode:F.value,dialogType:"other",onChooseOtherItem:Co},null,8,["currentRoomMode"])):l.createCommentVNode("",!0)])):l.createCommentVNode("",!0),se.value?(l.openBlock(),l.createElementBlock("div",{key:2,class:"t-btn",onClick:Gl},YV)):(l.openBlock(),l.createElementBlock("div",{key:1,class:"t-btn",onClick:Gl},XV)),l.createElementVNode("div",{class:"t-btn",onClick:G[15]||(G[15]=re=>q.value=!q.value)},JV),xe.value?(l.openBlock(),l.createElementBlock("div",{key:4,class:"t-btn",onClick:Ci},ZV)):(l.openBlock(),l.createElementBlock("div",{key:3,class:"t-btn",onClick:Hl},QV)),l.createElementVNode("div",{class:"t-btn",onClick:G[16]||(G[16]=re=>K.value=!K.value)},ej),i.meetingVideo?(l.openBlock(),l.createElementBlock("div",{key:5,class:"t-btn",onClick:To},tj)):l.createCommentVNode("",!0),l.createElementVNode("div",{class:"t-btn",onClick:dg},nj),c.value===g.value?(l.openBlock(),l.createElementBlock("div",{key:6,class:"t-btn t-btn-qtm",onClick:G[18]||(G[18]=l.withModifiers(re=>xg(re),["self"]))},[bt.value?(l.openBlock(),l.createBlock(vV,{key:0,position:zt.value,defaultCallingMethod:i.defaultCallingMethod,onCloseCallBoard:G[17]||(G[17]=re=>bt.value=!1),onPhoneCall:wo,onMiniCall:Eg},null,8,["position","defaultCallingMethod"])):l.createCommentVNode("",!0)])):l.createCommentVNode("",!0),l.createElementVNode("div",{class:"t-btn",onClick:pg},[ij,Ue.value?(l.openBlock(),l.createBlock(Zm,{key:0,tempActiveDevice:{audioInputDevice:A.audioInputDevice,audioOutputDevice:A.audioOutputDevice,videoDevice:A.videoDevice}},null,8,["tempActiveDevice"])):l.createCommentVNode("",!0)])]),l.createElementVNode("div",{class:"exit-btn",onClick:G[19]||(G[19]=re=>Te.value?Md(re):Hr())}," 结束会议 ")],34),nt.value?(l.openBlock(),l.createBlock(aV,{key:0,participants:h.value,meetingHost:b.value,onAppointHost:yo,onCloseDialog:G[20]||(G[20]=re=>nt.value=!1)},null,8,["participants","meetingHost"])):l.createCommentVNode("",!0)],2),l.createElementVNode("div",rj,[K.value?(l.openBlock(),l.createBlock(EF,{key:0,ref_key:"memeberManageRef",ref:Yi,joinedList:_.value,participants:h.value,localIdentity:g.value,tempInvitedList:d.value,inviteList:u.value,meetingNum:o.value,meetingName:a.value,meetingHost:b.value,onClose:G[21]||(G[21]=re=>{K.value=!1,$e.value=!1}),onCloseMoreDialog:Id,onParticipantCameraSwitch:$d,onParticipantMicrophoneSwitch:aa,onAllCameraClose:xo,onAllMicrophoneClose:Hd,onOpenMoreDialog:$r,onAppendMemberInvite:ql,onRemoveUnjoinItem:qt,onFilterJoinedList:jr},null,8,["joinedList","participants","localIdentity","tempInvitedList","inviteList","meetingNum","meetingName","meetingHost"])):l.createCommentVNode("",!0),q.value?(l.openBlock(),l.createBlock(XF,{key:1,ref_key:"chatAreaRef",ref:Ji,localIdentity:g.value,messageList:w.value,fileUploadUrl:i.fileUploadUrl,imgUrl:i.imgUrl,onClose:G[22]||(G[22]=re=>q.value=!1),onMessageSend:Vd},null,8,["localIdentity","messageList","fileUploadUrl","imgUrl"])):l.createCommentVNode("",!0)])]),Le.value?(l.openBlock(),l.createBlock(ZF,{key:0,position:Je.value,onCancelMeeting:Rd,onLeaveMeeting:vo,onOptionClose:G[23]||(G[23]=re=>Le.value=!1)},null,8,["position"])):l.createCommentVNode("",!0),$e.value?(l.openBlock(),l.createBlock(lV,{key:1,curBlur:ae.value,identity:ze.value,optionDialogOffset:te.value,localIdentity:g.value,meetingHost:b.value,participants:h.value,onClose:G[24]||(G[24]=re=>$e.value=!1),onSetToBlur:gg,onRemoveFromBlur:vg,onCloseMicro:qd,onCloseCamera:zd,onSetToHost:yg,onSetToDeafness:Gd,onCancelDeafness:bg,onUpdateName:_g,onRemove:kg,onDistributeScreen:gn},null,8,["curBlur","identity","optionDialogOffset","localIdentity","meetingHost","participants"])):l.createCommentVNode("",!0),l.createVNode(Up,{baseUrl:i.baseUrl,token:i.token,inviteList:u.value,componentType:"meeting",onAppendInvitePeople:_s},null,8,["baseUrl","token","inviteList"]),l.createVNode(AV,{onUpdateNameConfirm:Tg})],512))}},[["__scopeId","data-v-240dc5a5"]]),ig={__name:"LiveMulti",props:{isEnterDialogShow:{type:Boolean,default:!1},baseUrl:{type:String,default:""},meetingUrl:{type:String,default:""},userData:{type:Object,default:()=>({})},meetingVideo:{type:Boolean,default:!1},org:{type:String,default:"default"},token:{type:String,default:""},fileUploadUrl:{type:String,default:""},imgUrl:{type:String,default:""},h5Url:{type:String,default:""},isCustomizeMiniInvitations:{type:Boolean,default:!1},miniPagePath:{type:String,default:""},defaultInviteWay:{type:String,default:"mini"},wxOfficial:{type:Boolean,default:!1},defaultCallingMethod:{type:Array,default:()=>["voice","video","mini"]},meetingTitle:{type:String,default:"调度会议"}},emits:["enterDialogClose","miniInviteSend","inviteMessageSend"],setup(i,{emit:e}){const t=i,n=e,r=l.ref(null),s=l.computed(()=>r.value||t.token),a=l.ref(null),o=l.ref(!1),c=l.ref({roomName:"",roomNum:"",cameraStatus:!0,microphoneStatus:!0,audioInputDevice:"",audioOutputDevice:"",videoDevice:"",inviteList:[],joinType:"launch"});function u(f){c.value={roomName:f.roomName,roomNum:"",cameraStatus:f.cameraStatus,microphoneStatus:f.microphoneStatus,audioInputDevice:f.audioInputDevice,audioOutputDevice:f.audioOutputDevice,videoDevice:f.videoDevice,inviteList:f.inviteList,joinType:"launch"},o.value=!0}function d(f){c.value={roomName:f.roomName,roomNum:"",cameraStatus:f.cameraStatus,microphoneStatus:f.microphoneStatus,audioInputDevice:f.audioInputDevice,audioOutputDevice:f.audioOutputDevice,videoDevice:f.videoDevice,inviteList:f.inviteList,joinType:"launch"},o.value=!0}function h(f){c.value={roomName:"",roomNum:f.roomNum,cameraStatus:f.cameraStatus,microphoneStatus:f.microphoneStatus,audioInputDevice:f.audioInputDevice,audioOutputDevice:f.audioOutputDevice,videoDevice:f.videoDevice,inviteList:f.inviteList,joinType:"join"},o.value=!0}function _(){o.value=!1}function v(f){n("miniInviteSend",f)}function b(f){n("inviteMessageSend",f)}async function g(){const f=localStorage.getItem("xtoken");if(f&&t.baseUrl)try{const y=await(await fetch(`${t.baseUrl}/api/systemUserJwt/sso-login?xtoken=${f}`,{method:"POST",headers:{"Content-Type":"application/json"}})).json();y.code===0?(r.value=y.data.tokenValue,a.value.getUserAndOrgTreeData(r.value),a.value.getPreviewMeetingList(r.value)):console.error("Component LiveMulti: Failed to fetch token:",y.message)}catch(p){console.error("Component LiveMulti: Error fetching token:",p)}else a.value.getUserAndOrgTreeData(),a.value.getPreviewMeetingList()}return l.onMounted(()=>{localStorage.getItem("xtoken")?g():(a.value.getUserAndOrgTreeData(),a.value.getPreviewMeetingList())}),(f,p)=>(l.openBlock(),l.createElementBlock("div",null,[(l.openBlock(),l.createBlock(l.Teleport,{to:"body"},[l.withDirectives(l.createVNode(Fl,{onEnterDialogClose:p[0]||(p[0]=y=>f.$emit("enterDialogClose")),baseUrl:i.baseUrl,userData:i.userData,org:i.org,token:s.value,meetingTitle:i.meetingTitle,onQuickLaunch:u,onLaunchMeeting:d,onJoinMeeting:h,meetingVideo:i.meetingVideo,ref_key:"addressBookRef",ref:a},null,8,["baseUrl","userData","org","token","meetingTitle","meetingVideo"]),[[l.vShow,i.isEnterDialogShow]])])),(l.openBlock(),l.createBlock(l.Teleport,{to:"body"},[o.value?(l.openBlock(),l.createBlock(jl,{key:0,baseUrl:i.baseUrl,token:s.value,meetingUrl:i.meetingUrl,org:i.org,userData:i.userData,tempMeetingName:c.value.roomName,tempMeetingNum:c.value.roomNum,tempCameraStatus:c.value.cameraStatus,tempMicroStatus:c.value.microphoneStatus,tempActiveDevice:{audioInputDevice:c.value.audioInputDevice,audioOutputDevice:c.value.audioOutputDevice,videoDevice:c.value.videoDevice},joinType:c.value.joinType,tempInviteList:c.value.inviteList,fileUploadUrl:i.fileUploadUrl,imgUrl:i.imgUrl,h5Url:i.h5Url,isCustomizeMiniInvitations:i.isCustomizeMiniInvitations,wxOfficial:i.wxOfficial,miniPagePath:i.miniPagePath,defaultCallingMethod:i.defaultCallingMethod,defaultInviteWay:i.defaultInviteWay,onMultiMeetingClose:_,onMiniInviteSend:v,onInviteMessageSend:b,meetingVideo:i.meetingVideo},null,8,["baseUrl","token","meetingUrl","org","userData","tempMeetingName","tempMeetingNum","tempCameraStatus","tempMicroStatus","tempActiveDevice","joinType","tempInviteList","fileUploadUrl","imgUrl","h5Url","isCustomizeMiniInvitations","wxOfficial","miniPagePath","defaultCallingMethod","defaultInviteWay","meetingVideo"])):l.createCommentVNode("",!0)]))]))}};ig.install=function(i){i.component("LiveMulti",ig)},jl.install=function(i){i.component("LiveMultipleMeeting",jl)};const rg={__name:"LiveMultipersonMeeting",props:{isEnterDialogShow:{type:Boolean,default:!1},dialogType:{type:String,default:"launch"},tempRoomNum:{type:String,default:""},inviteList:{type:Array,default:()=>[]},baseUrl:{type:String,default:""},meetingUrl:{type:String,default:""},userData:{type:Object,default:()=>({})},org:{type:String,default:"default"},token:{type:String,default:""},fileUploadUrl:{type:String,default:""},imgUrl:{type:String,default:""},h5Url:{type:String,default:""},isCustomizeMiniInvitations:{type:Boolean,default:!1},miniPagePath:{type:String,default:""},defaultInviteWay:{type:String,default:"mini"}},emits:["enterDialogClose","miniInviteSend","inviteMessageSend"],setup(i,{expose:e,emit:t}){const n=i,r=t,s=l.ref(),a=l.ref(null),o=l.computed(()=>a.value||n.token),c=l.ref(!1),u=l.ref({roomName:"",roomNum:"",cameraStatus:!0,microphoneStatus:!0,audioInputDevice:"",audioOutputDevice:"",videoDevice:"",joinType:"launch"});function d(T){u.value={...T,roomNum:"",joinType:"launch"},c.value=!0}function h(T){u.value={...T,roomName:"",joinType:"join"},c.value=!0}function _(){u.value={roomName:n.userData.username+"的视频会议",roomNum:"",cameraStatus:!0,microphoneStatus:!0,audioInputDevice:"",audioOutputDevice:"",videoDevice:"",joinType:"launch"},c.value=!0}function v(){r("enterDialogClose")}function b(){c.value=!1}function g(T){r("miniInviteSend",T)}function f(T){r("inviteMessageSend",T)}async function p(T){await l.nextTick(),s.value&&s.value.appendInvite(T)}async function y(){const T=localStorage.getItem("xtoken");if(T&&n.baseUrl)try{const E=await(await fetch(`${n.baseUrl}/api/systemUserJwt/sso-login?xtoken=${T}`,{method:"POST",headers:{"Content-Type":"application/json"}})).json();E.code===0?a.value=E.data.tokenValue:console.error("Component LiveMultipersonMeeting: Failed to fetch token:",E.message)}catch(D){console.error("Component LiveMultipersonMeeting: Error fetching token:",D)}else console.warn("Component LiveMultipersonMeeting: Cannot fetch token. xtoken not found in localStorage or baseUrl prop is missing.")}return l.onMounted(()=>{localStorage.getItem("xtoken")&&y()}),e({quickLaunch:_,launchMeeting:d,joinMeeting:h,appendInvite:p}),(T,D)=>(l.openBlock(),l.createElementBlock("div",null,[(l.openBlock(),l.createBlock(l.Teleport,{to:"body"},[i.isEnterDialogShow?(l.openBlock(),l.createBlock(CC,{key:0,dialogType:i.dialogType,tempRoomNum:i.tempRoomNum,onLaunchMeeting:d,onJoinMeeting:h,onClose:v},null,8,["dialogType","tempRoomNum"])):l.createCommentVNode("",!0)])),(l.openBlock(),l.createBlock(l.Teleport,{to:"body"},[c.value?(l.openBlock(),l.createBlock(jl,{key:0,ref_key:"liveMultipleMeetingRef",ref:s,baseUrl:i.baseUrl,token:o.value,meetingUrl:i.meetingUrl,org:i.org,userData:i.userData,tempMeetingName:u.value.roomName,tempMeetingNum:u.value.roomNum,tempCameraStatus:u.value.cameraStatus,tempMicroStatus:u.value.microphoneStatus,tempActiveDevice:{audioInputDevice:u.value.audioInputDevice,audioOutputDevice:u.value.audioOutputDevice,videoDevice:u.value.videoDevice},joinType:u.value.joinType,tempInviteList:i.inviteList,fileUploadUrl:i.fileUploadUrl,imgUrl:i.imgUrl,h5Url:i.h5Url,isCustomizeMiniInvitations:i.isCustomizeMiniInvitations,miniPagePath:i.miniPagePath,defaultInviteWay:i.defaultInviteWay,onMultiMeetingClose:b,onMiniInviteSend:g,onInviteMessageSend:f},null,8,["baseUrl","token","meetingUrl","org","userData","tempMeetingName","tempMeetingNum","tempCameraStatus","tempMicroStatus","tempActiveDevice","joinType","tempInviteList","fileUploadUrl","imgUrl","h5Url","isCustomizeMiniInvitations","miniPagePath","defaultInviteWay"])):l.createCommentVNode("",!0)]))]))}};rg.install=function(i){i.component("LiveMultipersonMeeting",rg)};const sj="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAzCAYAAADVY1sUAAAAAXNSR0IArs4c6QAAAaZJREFUaEPt2ettwzAMBGByso7SxyJNJkm7STdjIcAqDMMWSenOcAP5b6zHp5MtS1F5kkufxCETcrUkZyIzEdIIzKlFGtjuakOJmNmbiLyIyI+qfne3liiYbdOFLBU+Vn24qeo90af0rWZ2E5HPpaCJyLs3gBHIl4i8bnpDw2wQtdmHqn60RiQCKdNqnUitD445QGASKb0+aKD8BMM02riraplqzctNpJZmYkYRpY9hCCsZBCINQWNQiC4ICoNEdENGMWjEEKQXw0AMQ7IYFgICiWLMrHxy7K0HoXUCto54FbXWmaUsDQFLJLBo7o0DJIlacWpB9FJxptm6OBQBTySYDBzBhBw92OVLtkDg+xnG1DpC/AXGwEAhjVfs9vGCJwODtNaJRVG3rpRkIJDIYtfY/UGemWFIBOG8zSDTbAiSQbAx3ZAeBBPTBRlBsDBpCALBwKQgSAQaE4YwEEhMCMJEoDAuZOcQu7YN/4qlHpma2d4hNhzhJEM5xKYhDjDQQ+z//0dPZHt7hXvch/0KnYz0YUIio3TmPTORM0c70tZMJDJKZ97zCzEUP0NhkckVAAAAAElFTkSuQmCC",IC="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAYAAADhAJiYAAAAAXNSR0IArs4c6QAAArFJREFUWEfFmI1RFUEQhGcy0AwkA81AMoAIxAiUCIQIhAiECMQIJAMwAs1AMmjvu9q92jvuZ+ZelUzV1nsF+9PbOz29+9x2hqQvZnZmZq9KqzM9mtm9mV26+1N2es8OoL+kr2b2eWPsvbsfZ+dPA5L0xsx+Bxc6dnfYCsceQDcdoA/BFdIspQCVvLkIgqndLtz9MjpmFpCkt2ZG+1Ma3z91yfo+OvGkH4l+ZWa/yt/7ueeO8xkgSd/N7GTnwtlh5Ndpq8YRoKB6sotu9b9y9/PaaQAkCVZg5yViUGMLCCkj6ZeIQY09IElU3G8vgaRZs2epAvp5oIJQEeyiHqxkT/xw95MKKHtceNQ1Up76VWEbn8seP2XgqALKSJ3aBL18LkZnMZmKzjwjhtjNQ5DuoxaMJIol45/c/a5FKCmaCjD+jnlbleHeuPha3Lj7xyIEcgVm2+oNaxQ6cgqx8D9AbcW5u1PJbVoY/26wxC7qYktHwm5hsb8LBViC2dcV8RTQGsXDQEmwA/ilGHbc9WXn+OBSjG4EGUC9CsqukTc5txTt0XI7QHW7AK0dWYahsw78bQG/xdD8kUmC1j6xVmLwnJWjGJUFSTAJo2sxTurEtXRw5pJHbKC9PU5VtnW0FeRY9sk70KC0Jp/qZe6xrdySMg6w2zo2K3Vhj5qGaUdjt3XUBVDP7dRCSjHk5pD1sl7+1cuiFXVutxRKcoDaBIi9bt8rs7WOqO9EjyDTb6hxLaBDWMosPtcX/+uNeVqpt4rYoQvPjb/ulDk8y+eeQf8T1J27n7Yolx6KJCetXsL4joSjT+gpE7y/sBI+69zUrP7msAlo6VwkRe5M0+H8LBN+fqfe9qUyZ66mg+tHk28PoIwaRzYTAZUGlGBppJ4ImGeyjw4qoGqSt28xKjYNSwnnTbvuP+syQDSUk68hAAAAAElFTkSuQmCC",aj="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAAAsFJREFUWEfdmOtVFEEQhasycDMQI5AIlAw0AiEC0QBQIxAiECJQIxAjkAwgA8mg8JvT1adn7Jczs+5q/4Fzpqb79q3HvbMqe750z/HJ/wXQzB6JyAsReSYijwP79yJyLSJfVfVu7Yx0MRiAvRaRUxEBZGkB9GRNoE2AZgZT3xLGekh6o6rnHpgwD8P3qnrTswkxVYAzwfnZEWQA+CO5JEAvReRCVSmR4moBhLnnvbfNxB06W2ZGeXycxAD0qFYSRYBmdiwinxaA49VrVT3in8DibaaGYZCLZBusBnApe343GKJ5AElaX2UufaOqhzkysgDDbX8uZM9f/6Cq7wPAXJo97lhVr6ZnlgBSdzC4xmI+MjthkL+fC5vGckiflwCuUX9+TlqHtYszfja9DO4CINgOps1SYvCpiDC31li9KeaszXQu1rqYJqnJWi/4WPxmRrO8K7zYn+JQ0EgV+rt0xbSZWW10XarqSVcNBoBoMIN1yULKGC10cGu/OC+bXewBBXnqBYwyoBCD1laGNI+z7PGgx83MSfVIYxvs4WxgL2samgDD7WvFPWV05AkzTiaNRzlOa46mC2BSQwDNaSkhACNVI7kK6oHp8IkAu8ReuUbXaqYbYLqJmaEIqeVH7Fe3+1012NsR24prGVZYcqbmYIDZUfGHmsQwpPsSQ7NQHt9V1fyw3wCaGTLHtCeNaygJB5+ntdloHDzjW1Ud7N4IoJmhHPFjZw5llXcA+tJrNRBR0vvogCJAM4O1wVhucY1m3i8mazN20PABYIcMrYk5ddg11zSw6ABL3wprAvO9aAgMhEsgaQZobm0cIKZgSbf+6UX49QFSyF4tzQf6l9PrF0nTXJPRnQGM7qVhYvcG4FmhRp7sKsUpgzRIqUm+7Bxgq7sc4NLfYGrnRF1NgvjSu2iB+/fdTM8Ntx0zy7BuG1S6/wPgWUXGlCU/owAAAABJRU5ErkJggg==",Dd=i=>(l.pushScopeId("data-v-f64ae524"),i=i(),l.popScopeId(),i),oj={class:"dialog"},lj=Dd(()=>l.createElementVNode("div",{style:{display:"flex",height:"100%","align-items":"center","margin-top":"-14px"}},[l.createElementVNode("div",{class:"title-text"},"语音播报"),l.createElementVNode("div",{class:"text"},"指令查询")],-1)),cj={class:"dialog-content","element-loading-text":"视频合成中","element-loading-background":"rgba(0, 0, 0, 0.6)"},uj={class:"main-content"},dj={class:"form-top"},hj={class:"num-picker"},fj={class:"picker-num"},pj={class:"textarea-wrapper"},mj={class:"voice-detect-btn-outter"},gj={class:"synthesis-settings"},vj=Dd(()=>l.createElementVNode("div",{class:"settings-title"},[l.createElementVNode("img",{src:IC,alt:"",style:{width:"18px",height:"18px","margin-right":"10px"}}),l.createElementVNode("span",null,"合成设置")],-1)),yj={class:"form-top"},bj={class:"num-picker"},_j={class:"picker-num"},Tj={class:"success-area"},kj={class:"success-content"},Sj={key:0,class:"success-title"},Cj={key:1,class:"success-title"},xj={class:"audio-list"},Ej={class:"custom-video-player"},wj=["src"],Dj={class:"controls"},Aj={key:0},Nj={key:1},Pj={class:"time"},Ij=["max"],Oj={class:"receiver-area"},Mj={class:"receiver-title"},Rj=Dd(()=>l.createElementVNode("img",{src:IC,style:{width:"18px",height:"18px","margin-right":"10px"}},null,-1)),Lj=Dd(()=>l.createElementVNode("span",null,"接收人:",-1)),Bj={class:"receiver-count"},Uj={class:"receiver-list"},Fj=["onClick"],Vj={class:"success-btns"},Ad=Mt({__name:"VoiceBroadcast",props:{baseUrl:{type:String,default:""},token:{type:String,default:""},org:{type:String,default:"default"}},emits:["dialogClose","taskCreated"],setup(i,{expose:e,emit:t}){const n=i,r=t,s=l.ref(null),a=l.computed(()=>s.value||n.token),o=new En,c=l.ref(),u=l.reactive({title:[{required:!0,message:"请输入指令标题",trigger:"blur"}],deadlineTime:[{type:"date",required:!0,message:"请选择呼叫截止时间",trigger:"change"}]}),d=l.reactive({title:"",speechRate:"1",callNum:1,deadlineTime:""}),h=l.ref([{label:"1.0x(默认)",value:"1"},{label:"0.5x",value:"0.5"},{label:"1.5x",value:"1.5"},{label:"2.0x",value:"2.0"}]),_=l.ref(!1);l.ref([]);const v=l.ref(""),b=l.ref(!1),g=l.ref(""),f=l.ref(!1),p=l.ref([]);l.computed(()=>p.value.length);async function y(fe){if(Array.isArray(fe)){const we=new Map;fe.forEach(ze=>{we.has(ze.userId)||we.set(ze.userId,{userName:ze.userName||ze.label||ze.userId,userId:ze.userId,phone:ze.phone})});const Ke=Array.from(we.values());Y.value=Ke,p.value=Ke}console.log(Y.value,"2222")}const T=()=>{I(),$.value="",Y.value=[],p.value=[],E.value="",F.value="edit",f.value=!1,r("dialogClose")},D=async()=>{if(b.value)try{(await fetch("https://10.227.1.31:8442/ylapi/api/v1/stopAudioToWS",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({room:L.value||(j==null?void 0:j.roomNumber)||"",identity:localStorage.getItem("userId")||"admin"})})).ok?(console.log("语音识别停止成功"),b.value=!1):console.warn("停止语音识别API调用失败")}catch(fe){console.error("停止语音识别失败:",fe)}else try{const fe=await fetch("https://10.227.1.31:8442/ylapi/api/v1/startAudioToWS",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({room:L.value||(j==null?void 0:j.roomNumber)||"",identity:localStorage.getItem("userId")||"admin"})});if(fe.ok){const we=await fe.json();console.log("语音识别启动成功:",we),b.value=!0}else o.message("error","启动语音识别失败")}catch(fe){console.error("语音识别启动失败:",fe),o.message("error","启动语音识别服务失败")}},E=l.ref(""),A=async()=>{_.value=!0;try{const fe=await fetch("https://10.227.1.31:8442/ytapi/ai/api/v1/video/notice/querySynthesizeTask",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({org:n.org,taskId:E.value})});if(fe.ok){const we=await fe.json();we.data&&(typeof we.data=="string"&&we.data||typeof we.data=="object"&&Object.keys(we.data).length>0)?($.value=we.data,o.message("success",we.msg)):o.message("warning",we.msg),F.value="success"}else o.message("error","查询合成任务状态失败")}catch{o.message("error","查询合成任务状态失败")}finally{_.value=!1}},w=()=>{c.value&&c.value.validate(async fe=>{if(fe){if(!g.value){o.message("warning","请输入通知内容");return}_.value=!0;try{const we=await fetch("https://10.227.1.31:8442/ytapi/ai/api/v1/video/notice/synthesizeVideo",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({org:n.org,videoBackground:"https://10.227.1.31:8442/assets/loginbg-DG29K9gD.png",text:g.value})});if(we.ok){const Ke=await we.json();console.log("视频合成成功:",Ke),Ke.code==200?(E.value=Ke.data,v.value=g.value,o.message("success",Ke.msg||"合成任务已提交"),await A()):o.message("error",Ke.msg||"音频合成失败")}else o.message("error","音频合成失败");F.value="success"}catch(we){console.error("视频合成失败:",we),o.message("error","音频合成接口异常")}finally{_.value=!1}}})};function P(){d.callNum>1&&d.callNum--}function C(){d.callNum++}function I(){d.title="",g.value="",d.callNum=1,d.speechRate="1",d.deadlineTime=""}const F=l.ref("edit"),$=l.ref(""),Y=l.ref([]);function ee(){at.emit("getaddressBookUserForVoiceBroadcast")}function K(fe){Y.value.splice(fe,1),p.value.splice(fe,1)}function q(fe){return fe.getTime()<Date.now()-60*1e3}async function H(){if(!d.title){o.message("warning","请输入指令标题");return}if(!g.value){o.message("warning","请输入通知内容");return}if(!d.deadlineTime||new Date(d.deadlineTime).getTime()<Date.now()-60*1e3){o.message("warning","呼叫截止时间不能早于当前时间");return}if($.value===""||typeof $.value=="object"&&!Array.isArray($.value)&&Object.keys($.value).length===0){if(E.value)try{const fe=await fetch("https://10.227.1.31:8442/ytapi/ai/api/v1/video/notice/querySynthesizeTask",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({org:n.org,taskId:E.value})});if(fe.ok){const we=await fe.json();$.value=we.data,console.log(we.data,"2323"),typeof we.data=="object"&&o.message("warning","语音合成中")}else{o.message("error","查询合成任务失败");return}}catch{o.message("error","查询合成任务失败");return}if($.value===""||typeof $.value=="object"&&!Array.isArray($.value)&&Object.keys($.value).length===0)return}if(!Y.value.length){o.message("warning","请选择接收人");return}try{const fe=await fetch("https://10.227.1.31:8442/ytapi/ai/api/v1/video/notice/createVideoCallTask",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({org:n.org,taskId:E.value,cyclesNumber:d.callNum,deadlineTime:d.deadlineTime,title:d.title,sendIdentityId:localStorage.getItem("userId")||"",sendIdentityName:localStorage.getItem("userName")||localStorage.getItem("userId"),videoUrl:$.value||"",callObjects:Y.value.map(we=>({callName:we.userName,callIdentity:we.userId,phoneNumber:we.phone||"",callDepartment:we.department||""}))})});if(fe.ok){const we=await fe.json(),{code:Ke,msg:ze}=we;Ke==200?(o.message("success",ze),r("taskCreated",{code:Ke,msg:ze}),I(),$.value="",Y.value=[],p.value=[],E.value="",F.value="edit",T()):o.message("error",ze||"下发失败")}else o.message("error","下发失败")}catch{o.message("error","下发接口异常")}}let j=null;const L=l.ref(""),V=()=>{j=window.liveClient};async function B(){if(j||V(),!j){console.error("liveClient初始化失败");return}try{const fe=await j.createRoom();fe&&(j.roomNumber=fe,L.value=fe)}catch(fe){console.error("创建房间失败",fe)}}const ie=l.ref(null),me=l.ref(!1),Ce=l.ref(0),se=l.ref(0);function xe(){ie.value&&(me.value?ie.value.pause():ie.value.play())}function Ae(){me.value=!0}function qe(){me.value=!1}function Ve(fe){Ce.value=fe.target.currentTime}function ae(fe){se.value=fe.target.duration}function ue(){ie.value&&(ie.value.currentTime=Number(Ce.value))}function $e(fe){fe=Math.floor(fe);const we=String(Math.floor(fe/60)).padStart(1,"0"),Ke=String(fe%60).padStart(2,"0");return`${we}:${Ke}`}function te(fe){if(f.value=!0,B(),fe&&fe.length>0){const we=fe.filter(Ke=>Ke.classify==="人员").map(Ke=>({userName:Ke.userName||Ke.label||Ke.userId,userId:Ke.userId,phone:Ke.phone}));Y.value=we,p.value=we}else Y.value=[],p.value=[]}async function Ue(){const fe=localStorage.getItem("xtoken");if(fe&&n.baseUrl)try{const Ke=await(await fetch(`${n.baseUrl}/api/systemUserJwt/sso-login?xtoken=${fe}`,{method:"POST",headers:{"Content-Type":"application/json"}})).json();Ke.code==0?s.value=Ke.data.tokenValue:console.error("Component VoiceBroadcast: Failed to fetch token:",Ke.message)}catch(we){console.error("Component VoiceBroadcast: Error fetching token:",we)}else console.warn("Component VoiceBroadcast: Cannot fetch token. xtoken not found in localStorage or baseUrl prop is missing.")}return l.onMounted(()=>{localStorage.getItem("xtoken")&&Ue(),V(),at.on("inviteListUpdate",fe=>{if(Array.isArray(fe)){const we=new Map;Y.value.forEach(ze=>we.set(ze.userId,ze)),fe.forEach(ze=>we.set(ze.userId,{userName:ze.userName||ze.label||ze.userId,userId:ze.userId,phone:ze.phone}));const Ke=Array.from(we.values());Y.value=Ke,p.value=Ke}})}),e({openDialog:te}),(fe,we)=>{const Ke=l.resolveComponent("el-input"),ze=l.resolveComponent("el-form-item"),et=l.resolveComponent("el-date-picker"),Pe=l.resolveComponent("el-form"),Te=l.resolveComponent("el-option"),Fe=l.resolveComponent("el-select"),ye=l.resolveComponent("el-dialog"),Le=l.resolveDirective("loading");return l.openBlock(),l.createElementBlock("div",null,[l.createElementVNode("div",oj,[l.createVNode(ye,{modelValue:f.value,"onUpdate:modelValue":we[8]||(we[8]=Je=>f.value=Je),overflow:"","close-on-press-escape":!1,draggable:"","close-on-click-modal":!0,"show-close":!1,modal:!0,"align-center":""},{header:l.withCtx(()=>[l.createElementVNode("div",{class:"title"},[lj,l.createElementVNode("img",{src:sj,alt:"",onClick:T})])]),default:l.withCtx(()=>[l.withDirectives((l.openBlock(),l.createElementBlock("div",cj,[l.createElementVNode("div",uj,[F.value==="edit"?(l.openBlock(),l.createElementBlock(l.Fragment,{key:0},[l.createVNode(Pe,{ref_key:"mainFormRef",ref:c,model:d,class:"main-form",rules:u},{default:l.withCtx(()=>[l.createElementVNode("div",dj,[l.createVNode(ze,{label:"指令标题:",prop:"title"},{default:l.withCtx(()=>[l.createVNode(Ke,{modelValue:d.title,"onUpdate:modelValue":we[0]||(we[0]=Je=>d.title=Je),placeholder:"请输入"},null,8,["modelValue"])]),_:1}),l.createVNode(ze,{label:"循环呼叫次数:"},{default:l.withCtx(()=>[l.createElementVNode("div",hj,[l.createElementVNode("div",{class:"picker-btn picker-btn-sub",onClick:P}),l.createElementVNode("div",fj,l.toDisplayString(d.callNum),1),l.createElementVNode("div",{class:"picker-btn picker-btn-plus",onClick:C})])]),_:1}),l.createVNode(ze,{label:"呼叫截止时间:",prop:"deadlineTime"},{default:l.withCtx(()=>[l.createVNode(et,{modelValue:d.deadlineTime,"onUpdate:modelValue":we[1]||(we[1]=Je=>d.deadlineTime=Je),type:"datetime",placeholder:"请选择呼叫截止时间",format:"YYYY-MM-DD HH:mm:ss","date-format":"MMM DD, YYYY","time-format":"HH:mm:ss","disabled-date":q},null,8,["modelValue"])]),_:1})]),l.createElementVNode("div",pj,[l.createVNode(Ke,{class:"voice-detect-content",type:"textarea",modelValue:g.value,"onUpdate:modelValue":we[2]||(we[2]=Je=>g.value=Je),placeholder:"请输入通知内容(200字以内)",rows:8,resize:"none",maxlength:"200"},null,8,["modelValue"]),l.createElementVNode("div",mj,[l.createElementVNode("div",{class:"btn",onClick:D},l.toDisplayString(b.value?"停止识别":"语音识别"),1)])])]),_:1},8,["model","rules"]),l.createElementVNode("div",gj,[vj,l.createVNode(Pe,{model:d},{default:l.withCtx(()=>[l.createVNode(ze,{label:"调节语速:"},{default:l.withCtx(()=>[l.createVNode(Fe,{modelValue:d.speechRate,"onUpdate:modelValue":we[3]||(we[3]=Je=>d.speechRate=Je),placeholder:"1.0x(默认)"},{default:l.withCtx(()=>[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(h.value,Je=>(l.openBlock(),l.createBlock(Te,{key:Je.value,label:Je.label,value:Je.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["model"])]),l.createElementVNode("div",{class:"generate-button-wrapper"},[l.createElementVNode("div",{class:"btn",onClick:w},"开始合成")])],64)):F.value==="success"?(l.openBlock(),l.createElementBlock(l.Fragment,{key:1},[l.createVNode(Pe,{ref_key:"mainFormRef",ref:c,model:d,class:"main-form",rules:u},{default:l.withCtx(()=>[l.createElementVNode("div",yj,[l.createVNode(ze,{label:"指令标题:",prop:"title"},{default:l.withCtx(()=>[l.createVNode(Ke,{modelValue:d.title,"onUpdate:modelValue":we[4]||(we[4]=Je=>d.title=Je),placeholder:"请输入"},null,8,["modelValue"])]),_:1}),l.createVNode(ze,{label:"循环呼叫次数:"},{default:l.withCtx(()=>[l.createElementVNode("div",bj,[l.createElementVNode("div",{class:"picker-btn picker-btn-sub",onClick:P}),l.createElementVNode("div",_j,l.toDisplayString(d.callNum),1),l.createElementVNode("div",{class:"picker-btn picker-btn-plus",onClick:C})])]),_:1}),l.createVNode(ze,{label:"呼叫截止时间:",prop:"deadlineTime"},{default:l.withCtx(()=>[l.createVNode(et,{modelValue:d.deadlineTime,"onUpdate:modelValue":we[5]||(we[5]=Je=>d.deadlineTime=Je),type:"datetime",placeholder:"请选择呼叫截止时间",format:"YYYY-MM-DD HH:mm:ss","date-format":"MMM DD, YYYY","time-format":"HH:mm:ss","disabled-date":q},null,8,["modelValue"])]),_:1})])]),_:1},8,["model","rules"]),l.createElementVNode("div",Tj,[l.createElementVNode("div",kj,[$.value&&$.value.length>0?(l.openBlock(),l.createElementBlock("div",Sj," 语音文件生成成功 ")):(l.openBlock(),l.createElementBlock("div",Cj,"语音文件生成中...")),l.createElementVNode("div",xj,[l.createElementVNode("div",Ej,[l.createElementVNode("video",{ref_key:"videoRef",ref:ie,src:$.value,onTimeupdate:Ve,onLoadedmetadata:ae,onPlay:Ae,onPause:qe,style:{display:"none"}},null,40,wj),l.createElementVNode("div",Dj,[l.createElementVNode("button",{onClick:xe,class:"play-btn"},[me.value?(l.openBlock(),l.createElementBlock("span",Nj,"⏸️")):(l.openBlock(),l.createElementBlock("span",Aj,"▶️"))]),l.createElementVNode("span",Pj,l.toDisplayString($e(Ce.value))+" / "+l.toDisplayString($e(se.value)),1),l.withDirectives(l.createElementVNode("input",{type:"range",min:"0",max:se.value,step:"0.1","onUpdate:modelValue":we[6]||(we[6]=Je=>Ce.value=Je),onInput:ue,class:"progress-bar"},null,40,Ij),[[l.vModelText,Ce.value]])])])])]),l.createElementVNode("div",Oj,[l.createElementVNode("div",Mj,[Rj,Lj,l.createElementVNode("span",Bj,l.toDisplayString(Y.value.length),1),l.createElementVNode("img",{src:aj,style:{width:"18px",height:"18px","margin-left":"11px",cursor:"pointer"},onClick:ee})]),l.createElementVNode("div",Uj,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(Y.value,(Je,nt)=>(l.openBlock(),l.createElementBlock("span",{class:"receiver-tag",key:Je.userId},[l.createTextVNode(l.toDisplayString(Je.userName)+" ",1),l.createElementVNode("span",{class:"receiver-remove",onClick:bt=>K(nt)},"×",8,Fj)]))),128))])]),l.createElementVNode("div",Vj,[l.createElementVNode("div",{class:"btn btn-back",onClick:we[7]||(we[7]=Je=>F.value="edit")}," 返回上一步 "),l.createElementVNode("div",{class:"btn btn-cancel",onClick:T},"取消"),l.createElementVNode("div",{class:"btn btn-send",onClick:H}," 下发 ")])])],64)):l.createCommentVNode("",!0)])])),[[Le,_.value]])]),_:1},8,["modelValue"])]),l.createVNode(Up,{inviteList:p.value,baseUrl:i.baseUrl,token:a.value,componentType:"voiceBroadcast",onInviteListUpdate:y},null,8,["inviteList","baseUrl","token"])])}}},[["__scopeId","data-v-f64ae524"]]);Ad.install=function(i){i.component("VoiceBroadcast",Ad)};const jj=[ju,vl,yl,Fl,ig,jl,rg,Ad,Zm],sg=i=>{sg.installed||jj.forEach(e=>{i.use(e)})},$j={install:sg};hi.LiveAddressBook=Fl,hi.LiveCallBoard=vl,hi.LivePoint=ju,hi.LivePointMeeting=yl,hi.VoiceBroadcast=Ad,hi.default=$j,hi.install=sg,Object.defineProperties(hi,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
384
|
+
微信小程序参会链接:${Ne}`;re({meetingWXLink:Ne,messageTemplate:De})}else oe(ce.data.msg)})})}function oa(M){return new Promise(G=>setTimeout(G,M))}function la(M){var oe;let G=[],re=-1;if(M&&M.length>0){M.forEach(De=>{pe.value>0?(re=d.value.findIndex(ge=>ge.mobile===De.mobile),re<0&&G.push(De)):G.push(De),ui(De)}),console.log("本次追加邀请人员",G);const ce=G.filter(De=>(De==null?void 0:De.classify)==="人员"),Ne=G.filter(De=>(De==null?void 0:De.classify)!=="人员");if(ce.length>0&&zr(ce),qr(Ne),ne.value>0){const De=u.value.map(ge=>(ge==null?void 0:ge.classify)==="人员"?{roomName:o.value,roomAlias:a.value,userId:ge.userId,userName:ge.userName,officeName:ge.officeName,metadata:JSON.stringify({classify:ge.classify,phone:ge.mobile})}:{roomName:o.value,roomAlias:a.value,userId:ge.userId,userName:ge.userName,officeName:ge.officeName,metadata:JSON.stringify({phone:"",classify:ge==null?void 0:ge.classify,equipmentCode:ge==null?void 0:ge.mobile,equipmentPassword:ge==null?void 0:ge.equipmentPassword,equipmentType:ge==null?void 0:ge.equipmentType})});n.joinType==="launch"&&De.findIndex(be=>be.userId===n.userData.userId)<0&&De.push({roomName:o.value,roomAlias:a.value,userId:n.userData.userId,userName:n.userData.username,officeName:(oe=n.userData)==null?void 0:oe.officeName,metadata:JSON.stringify({classify:"人员",phone:n.userData.mobile})}),Fc(De,{baseUrl:n.baseUrl,token:n.token}).then(ge=>{console.log("储存已邀请用户",ge)})}}}function Ts(){document.fullscreenElement?Tr.value=!0:Tr.value=!1}const Do=async M=>{try{const G=await w8({orgcode:"500103014",username:"dianxintest",password:"abcd@1234",template_id:"qke0p5vGp_PAyEV-p620NbjwvjZ9xCNmkqKvv_jtmBE",url:`${n.h5Url}index?roomNum=${o.value}&userName=${M.label}&mobile=${M.mobile}&tenantId=${n.org}`,client_msg_id:"",firstvalue:"",keyword1value:`请参加会议!会议号:${o.value}`,keyword2value:xi(new Date),remark:""},{baseUrl:n.baseUrl,token:n.token});console.log("成功发送微信通知",G,result)}catch(G){console.error("发送语音播报失败",G)}},xi=M=>{const G=M.getFullYear(),re=String(M.getMonth()+1).padStart(2,"0"),oe=String(M.getDate()).padStart(2,"0"),ce=String(M.getHours()).padStart(2,"0"),Ne=String(M.getMinutes()).padStart(2,"0"),De=String(M.getSeconds()).padStart(2,"0");return`${G}-${re}-${oe} ${ce}:${Ne}:${De}`};l.watch(()=>Pe.value,M=>{M<=0&&(et.value=!1,yn&&clearInterval(yn))}),l.watch(()=>z.value,(M,G)=>{M!==G&&gl()}),l.watch(()=>I.value,async(M,G)=>{if(console.log("新布局",M),console.log("旧布局",G),await l.nextTick(),F.value=="normal"){let re=document.getElementById("room");if(re){if(G==="grid"&&M==="rightSide"){let oe=document.querySelector("#room .layout-rightside"),ce=document.querySelector("#room .layout-leftside");if(ce||(ce=document.createElement("div"),ce.className="layout-leftside"),oe||(oe=document.createElement("div"),oe.className="layout-rightside"),ae.value){let Ne=vs(ae.value);if(Ne){const De=document.getElementById(`participant-${Ne.identity}`);if(De){if(ce.hasChildNodes()){let ge;for(;ge=ce.firstChild;)ge&&oe.appendChild(ge)}if(ce.appendChild(De),re.hasChildNodes()){let ge;for(;ge=re.firstElementChild;)ge&&oe.appendChild(ge)}}}else if(Ne=Pd(),Ne){const De=document.getElementById(`participant-${Ne.identity}`);if(De){if(ce.hasChildNodes()){let ge;for(;ge=ce.firstChild;)ge&&oe.appendChild(ge)}if(ce.appendChild(De),re.hasChildNodes()){let ge;for(;ge=re.firstElementChild;)ge&&oe.appendChild(ge)}}}}else{let Ne=Pd();if(Ne){const De=document.getElementById(`participant-${Ne.identity}`);if(De){if(ce.hasChildNodes()){let ge;for(;ge=ce.firstChild;)ge&&oe.appendChild(ge)}if(ce.appendChild(De),re.hasChildNodes()){let ge;for(;ge=re.firstChild;)ge&&oe.appendChild(ge)}}}}re.insertBefore(ce,re.firstChild??null),re.appendChild(oe)}if(G==="rightSide"&&M==="grid"){let oe=document.querySelector("#room .layout-rightside"),ce=document.querySelector("#room .layout-leftside");console.log("layoutSideEle",oe,ce);const Ne=document.createDocumentFragment();if(oe){if(oe.hasChildNodes()){let De;for(;De=oe.firstChild;)Ne.appendChild(De)}re.removeChild(oe)}if(ce){if(ce.hasChildNodes()){let De;for(;De=ce.firstChild;)console.log("layoutLeftSideEleChild",ce,De),re.insertBefore(De,re.firstChild??null)}re.removeChild(ce)}re.appendChild(Ne)}}}gl()}),l.watch(()=>F.value,async M=>{console.log("当前会议模式",M),await l.nextTick();let G=document.getElementById("room");if(M==="pointTurn"){let re=document.createElement("div");re.className="point-turn-top";let oe=document.createElement("div");oe.className="point-turn-center";let ce=document.createElement("div");ce.className="point-turn-bottom";let Ne=document.createElement("div");Ne.className="point-turn-other";let De=document.createElement("div"),ge=document.createElement("div");if(De.className="participant",De.innerHTML=ia,ge.className="participant",ge.innerHTML=ia,oe.appendChild(De),oe.appendChild(ge),I.value==="grid"){let be=null;for(;be=G.firstChild;)be&&(ue.value&&be.id===`participant-${ue.value}`&&(oe.removeChild(De),oe.insertBefore(be,oe.firstChild??null)),ae.value&&be.id===`participant-${ae.value}`&&(ae.value===ue.value||(oe.removeChild(ge),oe.appendChild(be))),(!ue.value&&!ae.value||!(be.id===`participant-${ue.value}`||be.id===`participant-${ae.value}`))&&(re.children.length>=5?ce.children.length>=5?Ne.appendChild(be):ce.appendChild(be):re.appendChild(be)))}if(I.value==="rightSide"){let be=document.querySelector("#room .layout-rightside"),tt=document.querySelector("#room .layout-leftside");if(tt){let Qe=null;for(;Qe=tt.firstChild;)Qe&&(ue.value&&Qe.id===`participant-${ue.value}`&&(oe.removeChild(De),oe.insertBefore(Qe,oe.firstChild??null)),ae.value&&Qe.id===`participant-${ae.value}`&&(ae.value===ue.value||(oe.removeChild(ge),oe.appendChild(Qe))),(!ue.value&&!ae.value||!(Qe.id===`participant-${ue.value}`||Qe.id===`participant-${ae.value}`))&&(re.children.length>=5?ce.children.length>=5?Ne.appendChild(Qe):ce.appendChild(Qe):re.appendChild(Qe)));G.removeChild(tt)}if(be){let Qe=null;for(;Qe=be.firstChild;)Qe&&(ue.value&&Qe.id===`participant-${ue.value}`&&(oe.removeChild(De),oe.insertBefore(Qe,oe.firstChild??null)),ae.value&&Qe.id===`participant-${ae.value}`&&(ae.value===ue.value||(oe.removeChild(ge),oe.appendChild(Qe))),(!ue.value&&!ae.value||!(Qe.id===`participant-${ue.value}`||Qe.id===`participant-${ae.value}`))&&(re.children.length>=5?ce.children.length>=5?Ne.appendChild(Qe):ce.appendChild(Qe):re.appendChild(Qe)));G.removeChild(be)}}G.insertBefore(re,G.firstChild??null),G.appendChild(oe),G.appendChild(ce),G.appendChild(Ne)}else{let re=document.querySelector("#room .point-turn-top"),oe=document.querySelector("#room .point-turn-center"),ce=document.querySelector("#room .point-turn-bottom"),Ne=document.querySelector("#room .point-turn-other");if(console.log("currentLayout",I.value),I.value==="grid"){if(re){if(re.children.length>0){let De=null;for(;De=re.firstChild;)De&&G.appendChild(De)}G.removeChild(re)}if(oe){if(oe.children.length>0){let De=null;for(;De=oe.firstChild;)De&&(De.id?G.appendChild(De):De.remove())}G.removeChild(oe)}if(ce){if(ce.children.length>0){let De=null;for(;De=ce.firstChild;)De&&G.appendChild(De)}G.removeChild(ce)}if(Ne){if(Ne.children.length>0){let De=null;for(;De=Ne.firstChild;)De&&G.appendChild(De)}G.removeChild(Ne)}}if(I.value==="rightSide"){let De=document.createElement("div");De.className="layout-leftside";let ge=document.createElement("div");if(ge.className="layout-rightside",!ae.value&&ue.value&&(ae.value=ue.value),re){if(re.children.length>0){let be=null;for(;be=re.firstChild;)be&&(ae.value&&be.id===`participant-${ae.value}`?De.appendChild(be):ge.appendChild(be))}G.removeChild(re)}if(oe){if(oe.children.length>0){let be=null;for(;be=oe.firstChild;)be&&(be.id?ae.value&&be.id===`participant-${ae.value}`?De.appendChild(be):ge.appendChild(be):be.remove())}G.removeChild(oe)}if(ce){if(ce.children.length>0){let be=null;for(;be=ce.firstChild;)be&&(ae.value&&be.id===`participant-${ae.value}`?De.appendChild(be):ge.appendChild(be))}G.removeChild(ce)}if(Ne){if(Ne.children.length>0){let be=null;for(;be=Ne.firstChild;)be&&(ae.value&&be.id===`participant-${ae.value}`?De.appendChild(be):ge.appendChild(be))}G.removeChild(Ne)}G.appendChild(De),G.appendChild(ge)}}try{const re=localStorage.getItem("hx_device_setter_settings");if(re){const oe=JSON.parse(re);oe&&typeof oe.isAutoPolling=="boolean"&&Uu(oe.isAutoPolling)}}catch(re){console.warn("读取本地轮询开关失败",re)}gl()}),l.onMounted(async()=>{await go(),jd();let M=5e3;try{const G=localStorage.getItem("hx_device_setter_settings");if(G){const re=JSON.parse(G);re&&typeof re.pollingIntervalMs=="number"&&re.pollingIntervalMs>0&&(M=re.pollingIntervalMs)}}catch(G){console.warn("读取本地轮询设置失败",G)}try{const G=localStorage.getItem("hx_device_setter_settings");if(G){const re=JSON.parse(G);if(re&&typeof re.isAutoPolling=="boolean")try{Uu(re.isAutoPolling)}catch(oe){console.warn("同步本地轮询开关到 manager 失败",oe)}}}catch(G){console.warn("读取本地轮询设置失败",G)}DI({getParticipants:()=>h.value,getCurrentLayout:()=>I.value,getCurrentRoomMode:()=>F.value,pollingIntervalMs:M,getHostIdentity:()=>ue.value}),window.liveClient||await new Promise(G=>{const re=()=>{window.removeEventListener("liveClientReady",re),G()};window.addEventListener("liveClientReady",re,{once:!0}),setTimeout(()=>{window.removeEventListener("liveClientReady",re),G()},3e3)}),n.joinType==="launch"?(Ud(),Be.roomName=n.tempMeetingName,await $l()):(Ud(),o.value=n.tempMeetingNum,await bs()),Wd(5),Eo(),at.on("getmeetingMembers",Ao),at.on("startVideoCall",Qi),at.on("updateVisibleParticipants",G=>{G&&Array.isArray(G.participants)&&I.value==="rightSide"&&xt(G.participants)}),at.on("pointTurnPolling",G=>{if(!G||!Array.isArray(G.participants)||F.value!=="pointTurn")return;const re=document.querySelector("#room .point-turn-top"),oe=document.querySelector("#room .point-turn-bottom"),ce=document.querySelector("#room .point-turn-center");if(!re||!oe||!ce)return;const Ne=G.participants.filter(Qe=>{const Tt=Qe&&Qe.identity;return!(!Tt||Tt===ue.value||Tt===ae.value)}),De=5,ge=5,be=Ne.slice(0,De),tt=Ne.slice(De,De+ge);be.forEach(Qe=>{const Tt=document.getElementById(`participant-${Qe.identity}`);Tt&&Tt!==ce.firstChild&&Tt!==ce.lastChild&&re.appendChild(Tt)}),tt.forEach(Qe=>{const Tt=document.getElementById(`participant-${Qe.identity}`);Tt&&Tt!==ce.firstChild&&Tt!==ce.lastChild&&oe.appendChild(Tt)})}),gl()}),l.onBeforeUnmount(()=>{Od(),Cg(),Be=null,f_()}),e({appendInvite:la});const Qi=M=>{console.log("Received start video call for mobile:",M),wo(M)},Ao=()=>{console.log("Getting meeting members...")};return(M,G)=>(l.openBlock(),l.createElementBlock("div",{class:"meeting-room",ref_key:"rootElm",ref:s},[l.createElementVNode("div",NV,[l.createElementVNode("div",PV,[IV,l.createElementVNode("div",{class:"meeting-name",onClick:G[0]||(G[0]=re=>H.value=!H.value)},[l.createElementVNode("span",OV,l.toDisplayString(a.value),1),MV,H.value?(l.openBlock(),l.createBlock(OU,{key:0,meetingName:a.value,meetingNum:o.value,meetingH5Link:P.value,meetingWXLink:C.value,meetingCreator:c.value},null,8,["meetingName","meetingNum","meetingH5Link","meetingWXLink","meetingCreator"])):l.createCommentVNode("",!0)]),l.createElementVNode("div",{class:"meeting-signal",onMouseenterCapture:G[3]||(G[3]=re=>j.value=!0),onMouseleave:G[4]||(G[4]=re=>j.value=!1)},[j.value?(l.openBlock(),l.createBlock(jU,{key:0,meetingQuality:p.value,meetingTTL:y.value,onMouseenter:G[1]||(G[1]=re=>j.value=!0),onMouseleave:G[2]||(G[2]=re=>j.value=!1)},null,8,["meetingQuality","meetingTTL"])):l.createCommentVNode("",!0)],32)]),l.createElementVNode("div",RV,[LV,l.createElementVNode("span",null,l.toDisplayString(U.value),1)]),l.createElementVNode("div",BV,[l.createElementVNode("div",{class:l.normalizeClass(["btn",L.value?"layout-active":"layout"]),onMouseenterCapture:G[7]||(G[7]=re=>L.value=!0),onMouseleave:G[8]||(G[8]=re=>L.value=!1)},[L.value?(l.openBlock(),l.createBlock(WU,{key:0,currentLayout:I.value,layoutList:$.value,layoutLabels:Y.value,currentRoomMode:F.value,onSetLayout:qn,onMouseenter:G[5]||(G[5]=re=>L.value=!0),onMouseleave:G[6]||(G[6]=re=>L.value=!1)},null,8,["currentLayout","layoutList","layoutLabels","currentRoomMode"])):l.createCommentVNode("",!0)],34),l.createElementVNode("div",{class:"btn full-screen",onClick:G[9]||(G[9]=re=>Sg())}),l.createElementVNode("div",{class:"btn close-meeting-icon",onClick:G[10]||(G[10]=re=>Te.value?lg(re):Hr())})])]),l.createElementVNode("div",UV,[l.createElementVNode("div",{class:l.normalizeClass(["meeting-room-contain-left",{"meeting-room-contain-left-slide":K.value||q.value}])},[l.createElementVNode("div",{class:l.normalizeClass(["meeting",st.value]),id:"room",onMousemove:G[11]||(G[11]=re=>Wd(5))},null,34),l.createVNode(CV,{"message-list":w.value,ref_key:"instantRef",ref:Sn,onMessageSend:Vd},null,8,["message-list"]),l.createElementVNode("div",{class:l.normalizeClass(["meeting-control-bar",{"meeting-control-bar-show":et.value}]),onMousemove:Wl},[l.createElementVNode("div",FV,[l.createElementVNode("div",VV,[l.createElementVNode("div",{class:l.normalizeClass(["custom-select-btn",me.value?"mic-on":"mic-off"]),onClick:mg},null,2),l.createElementVNode("div",{class:"custom-select-right",onClick:G[12]||(G[12]=re=>V.value=!V.value)},jV),V.value?(l.openBlock(),l.createBlock(Ll,{key:0,dialogType:"audio",audioDevices:T.value,outputDevices:E.value,activeDevice:A,onChooseAudioInputDevice:zl,onChooseAudioOutputDevice:hg},null,8,["audioDevices","outputDevices","activeDevice"])):l.createCommentVNode("",!0)]),l.createElementVNode("div",$V,[l.createElementVNode("div",{class:l.normalizeClass(["custom-select-btn",Ce.value?"cam-on":"cam-off"]),onClick:Fd},null,2),l.createElementVNode("div",{class:"custom-select-right",onClick:G[13]||(G[13]=re=>B.value=!B.value)},HV),B.value?(l.openBlock(),l.createBlock(Ll,{key:0,videoDevices:D.value,activeDevice:A,dialogType:"video",onChooseVideoDevice:fg},null,8,["videoDevices","activeDevice"])):l.createCommentVNode("",!0)])]),l.createElementVNode("div",qV,[c.value===g.value?(l.openBlock(),l.createElementBlock("div",zV,[GV,WV,l.createElementVNode("div",{class:"custom-select-right",onClick:G[14]||(G[14]=re=>ie.value=!ie.value)},KV),ie.value?(l.openBlock(),l.createBlock(Ll,{key:0,currentRoomMode:F.value,dialogType:"other",onChooseOtherItem:Co},null,8,["currentRoomMode"])):l.createCommentVNode("",!0)])):l.createCommentVNode("",!0),se.value?(l.openBlock(),l.createElementBlock("div",{key:2,class:"t-btn",onClick:Gl},YV)):(l.openBlock(),l.createElementBlock("div",{key:1,class:"t-btn",onClick:Gl},XV)),l.createElementVNode("div",{class:"t-btn",onClick:G[15]||(G[15]=re=>q.value=!q.value)},JV),xe.value?(l.openBlock(),l.createElementBlock("div",{key:4,class:"t-btn",onClick:Ci},ZV)):(l.openBlock(),l.createElementBlock("div",{key:3,class:"t-btn",onClick:Hl},QV)),l.createElementVNode("div",{class:"t-btn",onClick:G[16]||(G[16]=re=>K.value=!K.value)},ej),i.meetingVideo?(l.openBlock(),l.createElementBlock("div",{key:5,class:"t-btn",onClick:To},tj)):l.createCommentVNode("",!0),l.createElementVNode("div",{class:"t-btn",onClick:dg},nj),c.value===g.value?(l.openBlock(),l.createElementBlock("div",{key:6,class:"t-btn t-btn-qtm",onClick:G[18]||(G[18]=l.withModifiers(re=>xg(re),["self"]))},[bt.value?(l.openBlock(),l.createBlock(vV,{key:0,position:zt.value,defaultCallingMethod:i.defaultCallingMethod,onCloseCallBoard:G[17]||(G[17]=re=>bt.value=!1),onPhoneCall:wo,onMiniCall:Eg},null,8,["position","defaultCallingMethod"])):l.createCommentVNode("",!0)])):l.createCommentVNode("",!0),l.createElementVNode("div",{class:"t-btn",onClick:pg},[ij,Ue.value?(l.openBlock(),l.createBlock(Zm,{key:0,tempActiveDevice:{audioInputDevice:A.audioInputDevice,audioOutputDevice:A.audioOutputDevice,videoDevice:A.videoDevice}},null,8,["tempActiveDevice"])):l.createCommentVNode("",!0)])]),l.createElementVNode("div",{class:"exit-btn",onClick:G[19]||(G[19]=re=>Te.value?Md(re):Hr())}," 结束会议 ")],34),nt.value?(l.openBlock(),l.createBlock(aV,{key:0,participants:h.value,meetingHost:b.value,onAppointHost:yo,onCloseDialog:G[20]||(G[20]=re=>nt.value=!1)},null,8,["participants","meetingHost"])):l.createCommentVNode("",!0)],2),l.createElementVNode("div",rj,[K.value?(l.openBlock(),l.createBlock(EF,{key:0,ref_key:"memeberManageRef",ref:Yi,joinedList:_.value,participants:h.value,localIdentity:g.value,tempInvitedList:d.value,inviteList:u.value,meetingNum:o.value,meetingName:a.value,meetingHost:b.value,onClose:G[21]||(G[21]=re=>{K.value=!1,$e.value=!1}),onCloseMoreDialog:Id,onParticipantCameraSwitch:$d,onParticipantMicrophoneSwitch:aa,onAllCameraClose:xo,onAllMicrophoneClose:Hd,onOpenMoreDialog:$r,onAppendMemberInvite:ql,onRemoveUnjoinItem:qt,onFilterJoinedList:jr},null,8,["joinedList","participants","localIdentity","tempInvitedList","inviteList","meetingNum","meetingName","meetingHost"])):l.createCommentVNode("",!0),q.value?(l.openBlock(),l.createBlock(XF,{key:1,ref_key:"chatAreaRef",ref:Ji,localIdentity:g.value,messageList:w.value,fileUploadUrl:i.fileUploadUrl,imgUrl:i.imgUrl,onClose:G[22]||(G[22]=re=>q.value=!1),onMessageSend:Vd},null,8,["localIdentity","messageList","fileUploadUrl","imgUrl"])):l.createCommentVNode("",!0)])]),Le.value?(l.openBlock(),l.createBlock(ZF,{key:0,position:Je.value,onCancelMeeting:Rd,onLeaveMeeting:vo,onOptionClose:G[23]||(G[23]=re=>Le.value=!1)},null,8,["position"])):l.createCommentVNode("",!0),$e.value?(l.openBlock(),l.createBlock(lV,{key:1,curBlur:ae.value,identity:ze.value,optionDialogOffset:te.value,localIdentity:g.value,meetingHost:b.value,participants:h.value,onClose:G[24]||(G[24]=re=>$e.value=!1),onSetToBlur:gg,onRemoveFromBlur:vg,onCloseMicro:qd,onCloseCamera:zd,onSetToHost:yg,onSetToDeafness:Gd,onCancelDeafness:bg,onUpdateName:_g,onRemove:kg,onDistributeScreen:gn},null,8,["curBlur","identity","optionDialogOffset","localIdentity","meetingHost","participants"])):l.createCommentVNode("",!0),l.createVNode(Up,{baseUrl:i.baseUrl,token:i.token,inviteList:u.value,componentType:"meeting",onAppendInvitePeople:_s},null,8,["baseUrl","token","inviteList"]),l.createVNode(AV,{onUpdateNameConfirm:Tg})],512))}},[["__scopeId","data-v-1f5f0060"]]),ig={__name:"LiveMulti",props:{isEnterDialogShow:{type:Boolean,default:!1},baseUrl:{type:String,default:""},meetingUrl:{type:String,default:""},userData:{type:Object,default:()=>({})},meetingVideo:{type:Boolean,default:!1},org:{type:String,default:"default"},token:{type:String,default:""},fileUploadUrl:{type:String,default:""},imgUrl:{type:String,default:""},h5Url:{type:String,default:""},isCustomizeMiniInvitations:{type:Boolean,default:!1},miniPagePath:{type:String,default:""},defaultInviteWay:{type:String,default:"mini"},wxOfficial:{type:Boolean,default:!1},defaultCallingMethod:{type:Array,default:()=>["voice","video","mini"]},meetingTitle:{type:String,default:"调度会议"}},emits:["enterDialogClose","miniInviteSend","inviteMessageSend"],setup(i,{emit:e}){const t=i,n=e,r=l.ref(null),s=l.computed(()=>r.value||t.token),a=l.ref(null),o=l.ref(!1),c=l.ref({roomName:"",roomNum:"",cameraStatus:!0,microphoneStatus:!0,audioInputDevice:"",audioOutputDevice:"",videoDevice:"",inviteList:[],joinType:"launch"});function u(f){c.value={roomName:f.roomName,roomNum:"",cameraStatus:f.cameraStatus,microphoneStatus:f.microphoneStatus,audioInputDevice:f.audioInputDevice,audioOutputDevice:f.audioOutputDevice,videoDevice:f.videoDevice,inviteList:f.inviteList,joinType:"launch"},o.value=!0}function d(f){c.value={roomName:f.roomName,roomNum:"",cameraStatus:f.cameraStatus,microphoneStatus:f.microphoneStatus,audioInputDevice:f.audioInputDevice,audioOutputDevice:f.audioOutputDevice,videoDevice:f.videoDevice,inviteList:f.inviteList,joinType:"launch"},o.value=!0}function h(f){c.value={roomName:"",roomNum:f.roomNum,cameraStatus:f.cameraStatus,microphoneStatus:f.microphoneStatus,audioInputDevice:f.audioInputDevice,audioOutputDevice:f.audioOutputDevice,videoDevice:f.videoDevice,inviteList:f.inviteList,joinType:"join"},o.value=!0}function _(){o.value=!1}function v(f){n("miniInviteSend",f)}function b(f){n("inviteMessageSend",f)}async function g(){const f=localStorage.getItem("xtoken");if(f&&t.baseUrl)try{const y=await(await fetch(`${t.baseUrl}/api/systemUserJwt/sso-login?xtoken=${f}`,{method:"POST",headers:{"Content-Type":"application/json"}})).json();y.code===0?(r.value=y.data.tokenValue,a.value.getUserAndOrgTreeData(r.value),a.value.getPreviewMeetingList(r.value)):console.error("Component LiveMulti: Failed to fetch token:",y.message)}catch(p){console.error("Component LiveMulti: Error fetching token:",p)}else a.value.getUserAndOrgTreeData(),a.value.getPreviewMeetingList()}return l.onMounted(()=>{localStorage.getItem("xtoken")?g():(a.value.getUserAndOrgTreeData(),a.value.getPreviewMeetingList())}),(f,p)=>(l.openBlock(),l.createElementBlock("div",null,[(l.openBlock(),l.createBlock(l.Teleport,{to:"body"},[l.withDirectives(l.createVNode(Fl,{onEnterDialogClose:p[0]||(p[0]=y=>f.$emit("enterDialogClose")),baseUrl:i.baseUrl,userData:i.userData,org:i.org,token:s.value,meetingTitle:i.meetingTitle,onQuickLaunch:u,onLaunchMeeting:d,onJoinMeeting:h,meetingVideo:i.meetingVideo,ref_key:"addressBookRef",ref:a},null,8,["baseUrl","userData","org","token","meetingTitle","meetingVideo"]),[[l.vShow,i.isEnterDialogShow]])])),(l.openBlock(),l.createBlock(l.Teleport,{to:"body"},[o.value?(l.openBlock(),l.createBlock(jl,{key:0,baseUrl:i.baseUrl,token:s.value,meetingUrl:i.meetingUrl,org:i.org,userData:i.userData,tempMeetingName:c.value.roomName,tempMeetingNum:c.value.roomNum,tempCameraStatus:c.value.cameraStatus,tempMicroStatus:c.value.microphoneStatus,tempActiveDevice:{audioInputDevice:c.value.audioInputDevice,audioOutputDevice:c.value.audioOutputDevice,videoDevice:c.value.videoDevice},joinType:c.value.joinType,tempInviteList:c.value.inviteList,fileUploadUrl:i.fileUploadUrl,imgUrl:i.imgUrl,h5Url:i.h5Url,isCustomizeMiniInvitations:i.isCustomizeMiniInvitations,wxOfficial:i.wxOfficial,miniPagePath:i.miniPagePath,defaultCallingMethod:i.defaultCallingMethod,defaultInviteWay:i.defaultInviteWay,onMultiMeetingClose:_,onMiniInviteSend:v,onInviteMessageSend:b,meetingVideo:i.meetingVideo},null,8,["baseUrl","token","meetingUrl","org","userData","tempMeetingName","tempMeetingNum","tempCameraStatus","tempMicroStatus","tempActiveDevice","joinType","tempInviteList","fileUploadUrl","imgUrl","h5Url","isCustomizeMiniInvitations","wxOfficial","miniPagePath","defaultCallingMethod","defaultInviteWay","meetingVideo"])):l.createCommentVNode("",!0)]))]))}};ig.install=function(i){i.component("LiveMulti",ig)},jl.install=function(i){i.component("LiveMultipleMeeting",jl)};const rg={__name:"LiveMultipersonMeeting",props:{isEnterDialogShow:{type:Boolean,default:!1},dialogType:{type:String,default:"launch"},tempRoomNum:{type:String,default:""},inviteList:{type:Array,default:()=>[]},baseUrl:{type:String,default:""},meetingUrl:{type:String,default:""},userData:{type:Object,default:()=>({})},org:{type:String,default:"default"},token:{type:String,default:""},fileUploadUrl:{type:String,default:""},imgUrl:{type:String,default:""},h5Url:{type:String,default:""},isCustomizeMiniInvitations:{type:Boolean,default:!1},miniPagePath:{type:String,default:""},defaultInviteWay:{type:String,default:"mini"}},emits:["enterDialogClose","miniInviteSend","inviteMessageSend"],setup(i,{expose:e,emit:t}){const n=i,r=t,s=l.ref(),a=l.ref(null),o=l.computed(()=>a.value||n.token),c=l.ref(!1),u=l.ref({roomName:"",roomNum:"",cameraStatus:!0,microphoneStatus:!0,audioInputDevice:"",audioOutputDevice:"",videoDevice:"",joinType:"launch"});function d(T){u.value={...T,roomNum:"",joinType:"launch"},c.value=!0}function h(T){u.value={...T,roomName:"",joinType:"join"},c.value=!0}function _(){u.value={roomName:n.userData.username+"的视频会议",roomNum:"",cameraStatus:!0,microphoneStatus:!0,audioInputDevice:"",audioOutputDevice:"",videoDevice:"",joinType:"launch"},c.value=!0}function v(){r("enterDialogClose")}function b(){c.value=!1}function g(T){r("miniInviteSend",T)}function f(T){r("inviteMessageSend",T)}async function p(T){await l.nextTick(),s.value&&s.value.appendInvite(T)}async function y(){const T=localStorage.getItem("xtoken");if(T&&n.baseUrl)try{const E=await(await fetch(`${n.baseUrl}/api/systemUserJwt/sso-login?xtoken=${T}`,{method:"POST",headers:{"Content-Type":"application/json"}})).json();E.code===0?a.value=E.data.tokenValue:console.error("Component LiveMultipersonMeeting: Failed to fetch token:",E.message)}catch(D){console.error("Component LiveMultipersonMeeting: Error fetching token:",D)}else console.warn("Component LiveMultipersonMeeting: Cannot fetch token. xtoken not found in localStorage or baseUrl prop is missing.")}return l.onMounted(()=>{localStorage.getItem("xtoken")&&y()}),e({quickLaunch:_,launchMeeting:d,joinMeeting:h,appendInvite:p}),(T,D)=>(l.openBlock(),l.createElementBlock("div",null,[(l.openBlock(),l.createBlock(l.Teleport,{to:"body"},[i.isEnterDialogShow?(l.openBlock(),l.createBlock(CC,{key:0,dialogType:i.dialogType,tempRoomNum:i.tempRoomNum,onLaunchMeeting:d,onJoinMeeting:h,onClose:v},null,8,["dialogType","tempRoomNum"])):l.createCommentVNode("",!0)])),(l.openBlock(),l.createBlock(l.Teleport,{to:"body"},[c.value?(l.openBlock(),l.createBlock(jl,{key:0,ref_key:"liveMultipleMeetingRef",ref:s,baseUrl:i.baseUrl,token:o.value,meetingUrl:i.meetingUrl,org:i.org,userData:i.userData,tempMeetingName:u.value.roomName,tempMeetingNum:u.value.roomNum,tempCameraStatus:u.value.cameraStatus,tempMicroStatus:u.value.microphoneStatus,tempActiveDevice:{audioInputDevice:u.value.audioInputDevice,audioOutputDevice:u.value.audioOutputDevice,videoDevice:u.value.videoDevice},joinType:u.value.joinType,tempInviteList:i.inviteList,fileUploadUrl:i.fileUploadUrl,imgUrl:i.imgUrl,h5Url:i.h5Url,isCustomizeMiniInvitations:i.isCustomizeMiniInvitations,miniPagePath:i.miniPagePath,defaultInviteWay:i.defaultInviteWay,onMultiMeetingClose:b,onMiniInviteSend:g,onInviteMessageSend:f},null,8,["baseUrl","token","meetingUrl","org","userData","tempMeetingName","tempMeetingNum","tempCameraStatus","tempMicroStatus","tempActiveDevice","joinType","tempInviteList","fileUploadUrl","imgUrl","h5Url","isCustomizeMiniInvitations","miniPagePath","defaultInviteWay"])):l.createCommentVNode("",!0)]))]))}};rg.install=function(i){i.component("LiveMultipersonMeeting",rg)};const sj="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAzCAYAAADVY1sUAAAAAXNSR0IArs4c6QAAAaZJREFUaEPt2ettwzAMBGByso7SxyJNJkm7STdjIcAqDMMWSenOcAP5b6zHp5MtS1F5kkufxCETcrUkZyIzEdIIzKlFGtjuakOJmNmbiLyIyI+qfne3liiYbdOFLBU+Vn24qeo90af0rWZ2E5HPpaCJyLs3gBHIl4i8bnpDw2wQtdmHqn60RiQCKdNqnUitD445QGASKb0+aKD8BMM02riraplqzctNpJZmYkYRpY9hCCsZBCINQWNQiC4ICoNEdENGMWjEEKQXw0AMQ7IYFgICiWLMrHxy7K0HoXUCto54FbXWmaUsDQFLJLBo7o0DJIlacWpB9FJxptm6OBQBTySYDBzBhBw92OVLtkDg+xnG1DpC/AXGwEAhjVfs9vGCJwODtNaJRVG3rpRkIJDIYtfY/UGemWFIBOG8zSDTbAiSQbAx3ZAeBBPTBRlBsDBpCALBwKQgSAQaE4YwEEhMCMJEoDAuZOcQu7YN/4qlHpma2d4hNhzhJEM5xKYhDjDQQ+z//0dPZHt7hXvch/0KnYz0YUIio3TmPTORM0c70tZMJDJKZ97zCzEUP0NhkckVAAAAAElFTkSuQmCC",IC="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAYAAADhAJiYAAAAAXNSR0IArs4c6QAAArFJREFUWEfFmI1RFUEQhGcy0AwkA81AMoAIxAiUCIQIhAiECMQIJAMwAs1AMmjvu9q92jvuZ+ZelUzV1nsF+9PbOz29+9x2hqQvZnZmZq9KqzM9mtm9mV26+1N2es8OoL+kr2b2eWPsvbsfZ+dPA5L0xsx+Bxc6dnfYCsceQDcdoA/BFdIspQCVvLkIgqndLtz9MjpmFpCkt2ZG+1Ma3z91yfo+OvGkH4l+ZWa/yt/7ueeO8xkgSd/N7GTnwtlh5Ndpq8YRoKB6sotu9b9y9/PaaQAkCVZg5yViUGMLCCkj6ZeIQY09IElU3G8vgaRZs2epAvp5oIJQEeyiHqxkT/xw95MKKHtceNQ1Up76VWEbn8seP2XgqALKSJ3aBL18LkZnMZmKzjwjhtjNQ5DuoxaMJIol45/c/a5FKCmaCjD+jnlbleHeuPha3Lj7xyIEcgVm2+oNaxQ6cgqx8D9AbcW5u1PJbVoY/26wxC7qYktHwm5hsb8LBViC2dcV8RTQGsXDQEmwA/ilGHbc9WXn+OBSjG4EGUC9CsqukTc5txTt0XI7QHW7AK0dWYahsw78bQG/xdD8kUmC1j6xVmLwnJWjGJUFSTAJo2sxTurEtXRw5pJHbKC9PU5VtnW0FeRY9sk70KC0Jp/qZe6xrdySMg6w2zo2K3Vhj5qGaUdjt3XUBVDP7dRCSjHk5pD1sl7+1cuiFXVutxRKcoDaBIi9bt8rs7WOqO9EjyDTb6hxLaBDWMosPtcX/+uNeVqpt4rYoQvPjb/ulDk8y+eeQf8T1J27n7Yolx6KJCetXsL4joSjT+gpE7y/sBI+69zUrP7msAlo6VwkRe5M0+H8LBN+fqfe9qUyZ66mg+tHk28PoIwaRzYTAZUGlGBppJ4ImGeyjw4qoGqSt28xKjYNSwnnTbvuP+syQDSUk68hAAAAAElFTkSuQmCC",aj="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAAAsFJREFUWEfdmOtVFEEQhasycDMQI5AIlAw0AiEC0QBQIxAiECJQIxAjkAwgA8mg8JvT1adn7Jczs+5q/4Fzpqb79q3HvbMqe750z/HJ/wXQzB6JyAsReSYijwP79yJyLSJfVfVu7Yx0MRiAvRaRUxEBZGkB9GRNoE2AZgZT3xLGekh6o6rnHpgwD8P3qnrTswkxVYAzwfnZEWQA+CO5JEAvReRCVSmR4moBhLnnvbfNxB06W2ZGeXycxAD0qFYSRYBmdiwinxaA49VrVT3in8DibaaGYZCLZBusBnApe343GKJ5AElaX2UufaOqhzkysgDDbX8uZM9f/6Cq7wPAXJo97lhVr6ZnlgBSdzC4xmI+MjthkL+fC5vGckiflwCuUX9+TlqHtYszfja9DO4CINgOps1SYvCpiDC31li9KeaszXQu1rqYJqnJWi/4WPxmRrO8K7zYn+JQ0EgV+rt0xbSZWW10XarqSVcNBoBoMIN1yULKGC10cGu/OC+bXewBBXnqBYwyoBCD1laGNI+z7PGgx83MSfVIYxvs4WxgL2samgDD7WvFPWV05AkzTiaNRzlOa46mC2BSQwDNaSkhACNVI7kK6oHp8IkAu8ReuUbXaqYbYLqJmaEIqeVH7Fe3+1012NsR24prGVZYcqbmYIDZUfGHmsQwpPsSQ7NQHt9V1fyw3wCaGTLHtCeNaygJB5+ntdloHDzjW1Ud7N4IoJmhHPFjZw5llXcA+tJrNRBR0vvogCJAM4O1wVhucY1m3i8mazN20PABYIcMrYk5ddg11zSw6ABL3wprAvO9aAgMhEsgaQZobm0cIKZgSbf+6UX49QFSyF4tzQf6l9PrF0nTXJPRnQGM7qVhYvcG4FmhRp7sKsUpgzRIqUm+7Bxgq7sc4NLfYGrnRF1NgvjSu2iB+/fdTM8Ntx0zy7BuG1S6/wPgWUXGlCU/owAAAABJRU5ErkJggg==",Dd=i=>(l.pushScopeId("data-v-f64ae524"),i=i(),l.popScopeId(),i),oj={class:"dialog"},lj=Dd(()=>l.createElementVNode("div",{style:{display:"flex",height:"100%","align-items":"center","margin-top":"-14px"}},[l.createElementVNode("div",{class:"title-text"},"语音播报"),l.createElementVNode("div",{class:"text"},"指令查询")],-1)),cj={class:"dialog-content","element-loading-text":"视频合成中","element-loading-background":"rgba(0, 0, 0, 0.6)"},uj={class:"main-content"},dj={class:"form-top"},hj={class:"num-picker"},fj={class:"picker-num"},pj={class:"textarea-wrapper"},mj={class:"voice-detect-btn-outter"},gj={class:"synthesis-settings"},vj=Dd(()=>l.createElementVNode("div",{class:"settings-title"},[l.createElementVNode("img",{src:IC,alt:"",style:{width:"18px",height:"18px","margin-right":"10px"}}),l.createElementVNode("span",null,"合成设置")],-1)),yj={class:"form-top"},bj={class:"num-picker"},_j={class:"picker-num"},Tj={class:"success-area"},kj={class:"success-content"},Sj={key:0,class:"success-title"},Cj={key:1,class:"success-title"},xj={class:"audio-list"},Ej={class:"custom-video-player"},wj=["src"],Dj={class:"controls"},Aj={key:0},Nj={key:1},Pj={class:"time"},Ij=["max"],Oj={class:"receiver-area"},Mj={class:"receiver-title"},Rj=Dd(()=>l.createElementVNode("img",{src:IC,style:{width:"18px",height:"18px","margin-right":"10px"}},null,-1)),Lj=Dd(()=>l.createElementVNode("span",null,"接收人:",-1)),Bj={class:"receiver-count"},Uj={class:"receiver-list"},Fj=["onClick"],Vj={class:"success-btns"},Ad=Mt({__name:"VoiceBroadcast",props:{baseUrl:{type:String,default:""},token:{type:String,default:""},org:{type:String,default:"default"}},emits:["dialogClose","taskCreated"],setup(i,{expose:e,emit:t}){const n=i,r=t,s=l.ref(null),a=l.computed(()=>s.value||n.token),o=new En,c=l.ref(),u=l.reactive({title:[{required:!0,message:"请输入指令标题",trigger:"blur"}],deadlineTime:[{type:"date",required:!0,message:"请选择呼叫截止时间",trigger:"change"}]}),d=l.reactive({title:"",speechRate:"1",callNum:1,deadlineTime:""}),h=l.ref([{label:"1.0x(默认)",value:"1"},{label:"0.5x",value:"0.5"},{label:"1.5x",value:"1.5"},{label:"2.0x",value:"2.0"}]),_=l.ref(!1);l.ref([]);const v=l.ref(""),b=l.ref(!1),g=l.ref(""),f=l.ref(!1),p=l.ref([]);l.computed(()=>p.value.length);async function y(fe){if(Array.isArray(fe)){const we=new Map;fe.forEach(ze=>{we.has(ze.userId)||we.set(ze.userId,{userName:ze.userName||ze.label||ze.userId,userId:ze.userId,phone:ze.phone})});const Ke=Array.from(we.values());Y.value=Ke,p.value=Ke}console.log(Y.value,"2222")}const T=()=>{I(),$.value="",Y.value=[],p.value=[],E.value="",F.value="edit",f.value=!1,r("dialogClose")},D=async()=>{if(b.value)try{(await fetch("https://10.227.1.31:8442/ylapi/api/v1/stopAudioToWS",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({room:L.value||(j==null?void 0:j.roomNumber)||"",identity:localStorage.getItem("userId")||"admin"})})).ok?(console.log("语音识别停止成功"),b.value=!1):console.warn("停止语音识别API调用失败")}catch(fe){console.error("停止语音识别失败:",fe)}else try{const fe=await fetch("https://10.227.1.31:8442/ylapi/api/v1/startAudioToWS",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({room:L.value||(j==null?void 0:j.roomNumber)||"",identity:localStorage.getItem("userId")||"admin"})});if(fe.ok){const we=await fe.json();console.log("语音识别启动成功:",we),b.value=!0}else o.message("error","启动语音识别失败")}catch(fe){console.error("语音识别启动失败:",fe),o.message("error","启动语音识别服务失败")}},E=l.ref(""),A=async()=>{_.value=!0;try{const fe=await fetch("https://10.227.1.31:8442/ytapi/ai/api/v1/video/notice/querySynthesizeTask",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({org:n.org,taskId:E.value})});if(fe.ok){const we=await fe.json();we.data&&(typeof we.data=="string"&&we.data||typeof we.data=="object"&&Object.keys(we.data).length>0)?($.value=we.data,o.message("success",we.msg)):o.message("warning",we.msg),F.value="success"}else o.message("error","查询合成任务状态失败")}catch{o.message("error","查询合成任务状态失败")}finally{_.value=!1}},w=()=>{c.value&&c.value.validate(async fe=>{if(fe){if(!g.value){o.message("warning","请输入通知内容");return}_.value=!0;try{const we=await fetch("https://10.227.1.31:8442/ytapi/ai/api/v1/video/notice/synthesizeVideo",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({org:n.org,videoBackground:"https://10.227.1.31:8442/assets/loginbg-DG29K9gD.png",text:g.value})});if(we.ok){const Ke=await we.json();console.log("视频合成成功:",Ke),Ke.code==200?(E.value=Ke.data,v.value=g.value,o.message("success",Ke.msg||"合成任务已提交"),await A()):o.message("error",Ke.msg||"音频合成失败")}else o.message("error","音频合成失败");F.value="success"}catch(we){console.error("视频合成失败:",we),o.message("error","音频合成接口异常")}finally{_.value=!1}}})};function P(){d.callNum>1&&d.callNum--}function C(){d.callNum++}function I(){d.title="",g.value="",d.callNum=1,d.speechRate="1",d.deadlineTime=""}const F=l.ref("edit"),$=l.ref(""),Y=l.ref([]);function ee(){at.emit("getaddressBookUserForVoiceBroadcast")}function K(fe){Y.value.splice(fe,1),p.value.splice(fe,1)}function q(fe){return fe.getTime()<Date.now()-60*1e3}async function H(){if(!d.title){o.message("warning","请输入指令标题");return}if(!g.value){o.message("warning","请输入通知内容");return}if(!d.deadlineTime||new Date(d.deadlineTime).getTime()<Date.now()-60*1e3){o.message("warning","呼叫截止时间不能早于当前时间");return}if($.value===""||typeof $.value=="object"&&!Array.isArray($.value)&&Object.keys($.value).length===0){if(E.value)try{const fe=await fetch("https://10.227.1.31:8442/ytapi/ai/api/v1/video/notice/querySynthesizeTask",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({org:n.org,taskId:E.value})});if(fe.ok){const we=await fe.json();$.value=we.data,console.log(we.data,"2323"),typeof we.data=="object"&&o.message("warning","语音合成中")}else{o.message("error","查询合成任务失败");return}}catch{o.message("error","查询合成任务失败");return}if($.value===""||typeof $.value=="object"&&!Array.isArray($.value)&&Object.keys($.value).length===0)return}if(!Y.value.length){o.message("warning","请选择接收人");return}try{const fe=await fetch("https://10.227.1.31:8442/ytapi/ai/api/v1/video/notice/createVideoCallTask",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({org:n.org,taskId:E.value,cyclesNumber:d.callNum,deadlineTime:d.deadlineTime,title:d.title,sendIdentityId:localStorage.getItem("userId")||"",sendIdentityName:localStorage.getItem("userName")||localStorage.getItem("userId"),videoUrl:$.value||"",callObjects:Y.value.map(we=>({callName:we.userName,callIdentity:we.userId,phoneNumber:we.phone||"",callDepartment:we.department||""}))})});if(fe.ok){const we=await fe.json(),{code:Ke,msg:ze}=we;Ke==200?(o.message("success",ze),r("taskCreated",{code:Ke,msg:ze}),I(),$.value="",Y.value=[],p.value=[],E.value="",F.value="edit",T()):o.message("error",ze||"下发失败")}else o.message("error","下发失败")}catch{o.message("error","下发接口异常")}}let j=null;const L=l.ref(""),V=()=>{j=window.liveClient};async function B(){if(j||V(),!j){console.error("liveClient初始化失败");return}try{const fe=await j.createRoom();fe&&(j.roomNumber=fe,L.value=fe)}catch(fe){console.error("创建房间失败",fe)}}const ie=l.ref(null),me=l.ref(!1),Ce=l.ref(0),se=l.ref(0);function xe(){ie.value&&(me.value?ie.value.pause():ie.value.play())}function Ae(){me.value=!0}function qe(){me.value=!1}function Ve(fe){Ce.value=fe.target.currentTime}function ae(fe){se.value=fe.target.duration}function ue(){ie.value&&(ie.value.currentTime=Number(Ce.value))}function $e(fe){fe=Math.floor(fe);const we=String(Math.floor(fe/60)).padStart(1,"0"),Ke=String(fe%60).padStart(2,"0");return`${we}:${Ke}`}function te(fe){if(f.value=!0,B(),fe&&fe.length>0){const we=fe.filter(Ke=>Ke.classify==="人员").map(Ke=>({userName:Ke.userName||Ke.label||Ke.userId,userId:Ke.userId,phone:Ke.phone}));Y.value=we,p.value=we}else Y.value=[],p.value=[]}async function Ue(){const fe=localStorage.getItem("xtoken");if(fe&&n.baseUrl)try{const Ke=await(await fetch(`${n.baseUrl}/api/systemUserJwt/sso-login?xtoken=${fe}`,{method:"POST",headers:{"Content-Type":"application/json"}})).json();Ke.code==0?s.value=Ke.data.tokenValue:console.error("Component VoiceBroadcast: Failed to fetch token:",Ke.message)}catch(we){console.error("Component VoiceBroadcast: Error fetching token:",we)}else console.warn("Component VoiceBroadcast: Cannot fetch token. xtoken not found in localStorage or baseUrl prop is missing.")}return l.onMounted(()=>{localStorage.getItem("xtoken")&&Ue(),V(),at.on("inviteListUpdate",fe=>{if(Array.isArray(fe)){const we=new Map;Y.value.forEach(ze=>we.set(ze.userId,ze)),fe.forEach(ze=>we.set(ze.userId,{userName:ze.userName||ze.label||ze.userId,userId:ze.userId,phone:ze.phone}));const Ke=Array.from(we.values());Y.value=Ke,p.value=Ke}})}),e({openDialog:te}),(fe,we)=>{const Ke=l.resolveComponent("el-input"),ze=l.resolveComponent("el-form-item"),et=l.resolveComponent("el-date-picker"),Pe=l.resolveComponent("el-form"),Te=l.resolveComponent("el-option"),Fe=l.resolveComponent("el-select"),ye=l.resolveComponent("el-dialog"),Le=l.resolveDirective("loading");return l.openBlock(),l.createElementBlock("div",null,[l.createElementVNode("div",oj,[l.createVNode(ye,{modelValue:f.value,"onUpdate:modelValue":we[8]||(we[8]=Je=>f.value=Je),overflow:"","close-on-press-escape":!1,draggable:"","close-on-click-modal":!0,"show-close":!1,modal:!0,"align-center":""},{header:l.withCtx(()=>[l.createElementVNode("div",{class:"title"},[lj,l.createElementVNode("img",{src:sj,alt:"",onClick:T})])]),default:l.withCtx(()=>[l.withDirectives((l.openBlock(),l.createElementBlock("div",cj,[l.createElementVNode("div",uj,[F.value==="edit"?(l.openBlock(),l.createElementBlock(l.Fragment,{key:0},[l.createVNode(Pe,{ref_key:"mainFormRef",ref:c,model:d,class:"main-form",rules:u},{default:l.withCtx(()=>[l.createElementVNode("div",dj,[l.createVNode(ze,{label:"指令标题:",prop:"title"},{default:l.withCtx(()=>[l.createVNode(Ke,{modelValue:d.title,"onUpdate:modelValue":we[0]||(we[0]=Je=>d.title=Je),placeholder:"请输入"},null,8,["modelValue"])]),_:1}),l.createVNode(ze,{label:"循环呼叫次数:"},{default:l.withCtx(()=>[l.createElementVNode("div",hj,[l.createElementVNode("div",{class:"picker-btn picker-btn-sub",onClick:P}),l.createElementVNode("div",fj,l.toDisplayString(d.callNum),1),l.createElementVNode("div",{class:"picker-btn picker-btn-plus",onClick:C})])]),_:1}),l.createVNode(ze,{label:"呼叫截止时间:",prop:"deadlineTime"},{default:l.withCtx(()=>[l.createVNode(et,{modelValue:d.deadlineTime,"onUpdate:modelValue":we[1]||(we[1]=Je=>d.deadlineTime=Je),type:"datetime",placeholder:"请选择呼叫截止时间",format:"YYYY-MM-DD HH:mm:ss","date-format":"MMM DD, YYYY","time-format":"HH:mm:ss","disabled-date":q},null,8,["modelValue"])]),_:1})]),l.createElementVNode("div",pj,[l.createVNode(Ke,{class:"voice-detect-content",type:"textarea",modelValue:g.value,"onUpdate:modelValue":we[2]||(we[2]=Je=>g.value=Je),placeholder:"请输入通知内容(200字以内)",rows:8,resize:"none",maxlength:"200"},null,8,["modelValue"]),l.createElementVNode("div",mj,[l.createElementVNode("div",{class:"btn",onClick:D},l.toDisplayString(b.value?"停止识别":"语音识别"),1)])])]),_:1},8,["model","rules"]),l.createElementVNode("div",gj,[vj,l.createVNode(Pe,{model:d},{default:l.withCtx(()=>[l.createVNode(ze,{label:"调节语速:"},{default:l.withCtx(()=>[l.createVNode(Fe,{modelValue:d.speechRate,"onUpdate:modelValue":we[3]||(we[3]=Je=>d.speechRate=Je),placeholder:"1.0x(默认)"},{default:l.withCtx(()=>[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(h.value,Je=>(l.openBlock(),l.createBlock(Te,{key:Je.value,label:Je.label,value:Je.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["model"])]),l.createElementVNode("div",{class:"generate-button-wrapper"},[l.createElementVNode("div",{class:"btn",onClick:w},"开始合成")])],64)):F.value==="success"?(l.openBlock(),l.createElementBlock(l.Fragment,{key:1},[l.createVNode(Pe,{ref_key:"mainFormRef",ref:c,model:d,class:"main-form",rules:u},{default:l.withCtx(()=>[l.createElementVNode("div",yj,[l.createVNode(ze,{label:"指令标题:",prop:"title"},{default:l.withCtx(()=>[l.createVNode(Ke,{modelValue:d.title,"onUpdate:modelValue":we[4]||(we[4]=Je=>d.title=Je),placeholder:"请输入"},null,8,["modelValue"])]),_:1}),l.createVNode(ze,{label:"循环呼叫次数:"},{default:l.withCtx(()=>[l.createElementVNode("div",bj,[l.createElementVNode("div",{class:"picker-btn picker-btn-sub",onClick:P}),l.createElementVNode("div",_j,l.toDisplayString(d.callNum),1),l.createElementVNode("div",{class:"picker-btn picker-btn-plus",onClick:C})])]),_:1}),l.createVNode(ze,{label:"呼叫截止时间:",prop:"deadlineTime"},{default:l.withCtx(()=>[l.createVNode(et,{modelValue:d.deadlineTime,"onUpdate:modelValue":we[5]||(we[5]=Je=>d.deadlineTime=Je),type:"datetime",placeholder:"请选择呼叫截止时间",format:"YYYY-MM-DD HH:mm:ss","date-format":"MMM DD, YYYY","time-format":"HH:mm:ss","disabled-date":q},null,8,["modelValue"])]),_:1})])]),_:1},8,["model","rules"]),l.createElementVNode("div",Tj,[l.createElementVNode("div",kj,[$.value&&$.value.length>0?(l.openBlock(),l.createElementBlock("div",Sj," 语音文件生成成功 ")):(l.openBlock(),l.createElementBlock("div",Cj,"语音文件生成中...")),l.createElementVNode("div",xj,[l.createElementVNode("div",Ej,[l.createElementVNode("video",{ref_key:"videoRef",ref:ie,src:$.value,onTimeupdate:Ve,onLoadedmetadata:ae,onPlay:Ae,onPause:qe,style:{display:"none"}},null,40,wj),l.createElementVNode("div",Dj,[l.createElementVNode("button",{onClick:xe,class:"play-btn"},[me.value?(l.openBlock(),l.createElementBlock("span",Nj,"⏸️")):(l.openBlock(),l.createElementBlock("span",Aj,"▶️"))]),l.createElementVNode("span",Pj,l.toDisplayString($e(Ce.value))+" / "+l.toDisplayString($e(se.value)),1),l.withDirectives(l.createElementVNode("input",{type:"range",min:"0",max:se.value,step:"0.1","onUpdate:modelValue":we[6]||(we[6]=Je=>Ce.value=Je),onInput:ue,class:"progress-bar"},null,40,Ij),[[l.vModelText,Ce.value]])])])])]),l.createElementVNode("div",Oj,[l.createElementVNode("div",Mj,[Rj,Lj,l.createElementVNode("span",Bj,l.toDisplayString(Y.value.length),1),l.createElementVNode("img",{src:aj,style:{width:"18px",height:"18px","margin-left":"11px",cursor:"pointer"},onClick:ee})]),l.createElementVNode("div",Uj,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(Y.value,(Je,nt)=>(l.openBlock(),l.createElementBlock("span",{class:"receiver-tag",key:Je.userId},[l.createTextVNode(l.toDisplayString(Je.userName)+" ",1),l.createElementVNode("span",{class:"receiver-remove",onClick:bt=>K(nt)},"×",8,Fj)]))),128))])]),l.createElementVNode("div",Vj,[l.createElementVNode("div",{class:"btn btn-back",onClick:we[7]||(we[7]=Je=>F.value="edit")}," 返回上一步 "),l.createElementVNode("div",{class:"btn btn-cancel",onClick:T},"取消"),l.createElementVNode("div",{class:"btn btn-send",onClick:H}," 下发 ")])])],64)):l.createCommentVNode("",!0)])])),[[Le,_.value]])]),_:1},8,["modelValue"])]),l.createVNode(Up,{inviteList:p.value,baseUrl:i.baseUrl,token:a.value,componentType:"voiceBroadcast",onInviteListUpdate:y},null,8,["inviteList","baseUrl","token"])])}}},[["__scopeId","data-v-f64ae524"]]);Ad.install=function(i){i.component("VoiceBroadcast",Ad)};const jj=[ju,vl,yl,Fl,ig,jl,rg,Ad,Zm],sg=i=>{sg.installed||jj.forEach(e=>{i.use(e)})},$j={install:sg};hi.LiveAddressBook=Fl,hi.LiveCallBoard=vl,hi.LivePoint=ju,hi.LivePointMeeting=yl,hi.VoiceBroadcast=Ad,hi.default=$j,hi.install=sg,Object.defineProperties(hi,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|