@polyv/chat-ui 2.1.0-rc-20251023.1 → 2.1.0-rc-20251023.2

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.
package/index.es.js CHANGED
@@ -22477,8 +22477,8 @@ const VC = LC.exports, HC = "PolyvChatUI";
22477
22477
  console.log(
22478
22478
  "%c@polyv/chat-ui",
22479
22479
  "background:#409EFF;padding: 2px 6px;border-radius: 3px;color: #fff",
22480
- "[version: 2.1.0-rc-20251023.1]",
22481
- "[buildTime: 2025-10-21 10:21:24]"
22480
+ "[version: 2.1.0-rc-20251023.2]",
22481
+ "[buildTime: 2025-10-22 01:22:27]"
22482
22482
  );
22483
22483
  export {
22484
22484
  zb as BanList,
package/index.umd.js CHANGED
@@ -1031,4 +1031,4 @@ ${Gn(n)}`),r}})}function Nl(t){const e=Object.keys(t),n=e.filter(o=>{var i;retur
1031
1031
  </g>
1032
1032
  </g>
1033
1033
  </svg>
1034
- `),dy=()=>{const{$t:t}=G(),{manageConfig:e}=_e(),{chatTarget:n}=q(),{toast:r}=xe(),{messageBox:o}=wr(),i=u.computed(()=>e.value.clearMsgEnabled);function s(){return P(this,null,function*(){if(!i.value)return;yield o({message:t("manage.clearChatConfirm"),description:t("manage.clearChatConfirmTips"),confirmType:Pt.Delete,confirmButtonText:t("manage.clear")}).$confirm(),(yield n.manage.clearMsg()).success?r.success(t("manage.clearMsgSuccess")):r.error(t("manage.clearMsgFail"))})}return{canClearMsg:i,clearMsg:s}},my=u.defineComponent({__name:"more-panel",emits:{close:H()},setup(t,{emit:e}){const{$t:n}=G(),{canClearMsg:r,clearMsg:o}=dy(),{canOnlySpecialMsg:i,isOnlySpecialMsg:s,toggleOnlySpecialMsg:c}=Jc(),{canAutoTranslate:a,isAutoTranslating:l,toggleAutoTranslate:p}=_c();function f(){p(),e("close")}return{__sfc:!0,emit:e,$t:n,canClearMsg:r,clearMsg:o,canOnlySpecialMsg:i,isOnlySpecialMsg:s,toggleOnlySpecialMsg:c,canAutoTranslate:a,isAutoTranslating:l,toggleAutoTranslate:p,onClickAutoTranslate:f,ChatIconRemove:Od,ChatIconCheckbox:Ed,ChatIconTranslateTwo:nc,ChatIconCancelTranslate:Qd,ChatOriginIconCheckbox:fy}}});var gy=function(){var e=this,n=e._self._c,r=e._self._setupProxy;return n("div",{staticClass:"plv-chat-message-input-section__more-panel"},[r.canAutoTranslate?n("div",{staticClass:"plv-chat-message-input-section__more-panel--auto-translate",on:{click:r.onClickAutoTranslate}},[r.isAutoTranslating?n(r.ChatIconCancelTranslate):n(r.ChatIconTranslateTwo),n("span",[e._v(e._s(r.isAutoTranslating?r.$t("chat.cancelTranslate"):r.$t("chat.translate")))])],1):e._e(),r.canOnlySpecialMsg?n("div",{staticClass:"plv-chat-message-input-section__more-panel--only-special",on:{click:r.toggleOnlySpecialMsg}},[r.isOnlySpecialMsg?n(r.ChatOriginIconCheckbox):n(r.ChatIconCheckbox),n("span",[e._v(e._s(r.$t("chat.onlySpecial")))])],1):e._e(),r.canClearMsg?n("div",{staticClass:"plv-chat-message-input-section__more-panel--clear",on:{click:r.clearMsg}},[n(r.ChatIconRemove),n("span",[e._v(e._s(r.$t("manage.clearChat")))])],1):e._e(),e._t("more-panel")],2)},hy=[],vy=j(my,gy,hy);const _y=vy.exports,wy=u.defineComponent({__name:"chat-message-input-section",props:{defaultHeight:k.number.def(140),showMore:k.bool.def(!0)},setup(t){const e=u.ref(),{chatInputDisabled:n,chatInputPlaceholder:r,maxInputTextLength:o,currentQuoteMsg:i,clearCurrentQuoteMsg:s,onSubmitMessage:c,onClickSendImage:a,onSystemMsg:l}=Wr({quoteMsgCallback:()=>{var E;(E=e.value)==null||E.focusInput()}}),{currentMaskText:p}=Tr(),{$t:f}=G(),{messageConfig:h}=ce(),{canChatSwitch:d,chatRoomIsClosed:v,toggleChatSwitch:g}=fl(),{getEmitter:_}=we(),{checkIntercept:m}=_t(),w=u.ref(),{visible:b,togglePanel:x,hidePanel:C}=cl([w,"[data-more]"]);function Q(){return P(this,null,function*(){(yield m("more-panel"))||x()})}function S(){_().emit(J.AddMessageSize)}function y(){_().emit(J.CheckScrollFoot)}return{__sfc:!0,msgInputBaseRef:e,chatInputDisabled:n,chatInputPlaceholder:r,maxInputTextLength:o,currentQuoteMsg:i,clearCurrentQuoteMsg:s,onSubmitMessage:c,onClickSendImage:a,onSystemMsg:l,currentMaskText:p,$t:f,messageConfig:h,canChatSwitch:d,chatRoomIsClosed:v,toggleChatSwitch:g,getEmitter:_,checkIntercept:m,morePanelRef:w,moreVisible:b,toggleMorePanel:x,hideMorePanel:C,onClickMore:Q,onClickMsgSize:S,onResize:y,PwcIconClose:En,PwcSwitch:Lf,ChatIconFontSize:Pd,SimpleMsgItem:$r,MessageInputBase:py,MorePanel:_y}}});var by=function(){var e=this,n=e._self._c,r=e._self._setupProxy;return n("div",{staticClass:"plv-chat-message-input-section"},[r.currentQuoteMsg?n("div",{staticClass:"plv-chat-message-input-section__quote"},[n(r.SimpleMsgItem,{attrs:{"chat-msg":r.currentQuoteMsg,type:"quote"}}),n(r.PwcIconClose,{staticClass:"plv-chat-message-input-section__quote__close",on:{click:r.clearCurrentQuoteMsg}})],1):e._e(),n(r.MessageInputBase,{ref:"msgInputBaseRef",attrs:{"disabled-input":r.chatInputDisabled,placeholder:r.chatInputPlaceholder,"default-height":e.defaultHeight,"max-input-text-length":r.maxInputTextLength,"show-bottom":!r.currentMaskText},on:{submit:r.onSubmitMessage,"click-send-image":r.onClickSendImage,resize:r.onResize,"system-msg":r.onSystemMsg},scopedSlots:e._u([{key:"panel-suffix",fn:function(){return[n("div",{directives:[{name:"show",rawName:"v-show",value:r.moreVisible,expression:"moreVisible"}],staticClass:"plv-message-input-base__panel--more",attrs:{"data-more":""}},[n(r.MorePanel,{on:{close:r.hideMorePanel},scopedSlots:e._u([{key:"more-panel",fn:function(){return[e._t("more-panel")]},proxy:!0}],null,!0)})],1)]},proxy:!0},r.currentMaskText?{key:"icon-left",fn:function(){return[n("div",{staticClass:"plv-chat-message-input-section__mask-title"},[e._v(e._s(r.$t("input.maskTitle")))])]},proxy:!0}:null,r.currentMaskText?{key:"input",fn:function(){return[n("div",{staticClass:"plv-chat-message-input-section__mask-text"},[e._v(e._s(r.currentMaskText))])]},proxy:!0}:null,{key:"icon-left-suffix",fn:function(){return[r.messageConfig.messageSizeEnabled?n(r.ChatIconFontSize,{staticClass:"plv-message-input-base__icons--msg-size",on:{click:r.onClickMsgSize}}):e._e(),e._t("icon-left-suffix")]},proxy:!0},{key:"icon-right-suffix",fn:function(){return[e._t("icon-right-suffix"),e.showMore?n("div",{staticClass:"plv-message-input-base__icons--more",attrs:{"data-more":""},on:{click:r.onClickMore}},[e._v(" "+e._s(r.$t("chat.more"))+" "),n("span")]):e._e()]},proxy:!0},{key:"bottom-suffix",fn:function(){return[e._t("bottom-suffix"),r.canChatSwitch?n("div",{staticClass:"plv-chat-message-input-section__switch"},[n(r.PwcSwitch,{attrs:{value:r.chatRoomIsClosed,size:"mini"},on:{change:r.toggleChatSwitch}}),n("span",[e._v(e._s(r.$t("manage.closeRoom")))])],1):e._e()]},proxy:!0}],null,!0)})],1)},yy=[],xy=j(wy,by,yy);const Cy=xy.exports,Qy=u.defineComponent({__name:"viewer-input-control",setup(t){const{getEmitter:e}=we(),{chatInputDisabled:n,chatInputPlaceholder:r}=Wr({quotePlaceholder:!1});function o(){n.value||e().emit(J.OpenEmotionFacePicker)}function i(){e().emit(J.FocusInput)}return{__sfc:!0,getEmitter:e,chatInputDisabled:n,chatInputPlaceholder:r,onClickEmotion:o,openInput:i,ChatIconEmotion:ec}}});var ky=function(){var e=this,n=e._self._c,r=e._self._setupProxy;return n("div",{staticClass:"plv-viewer-input-control"},[n("div",{staticClass:"plv-viewer-input-control__body",class:{"is-disabled":r.chatInputDisabled},on:{click:r.openInput}},[n("div",{staticClass:"plv-viewer-input-control__body__text"},[e._v(e._s(r.chatInputPlaceholder))]),e._t("body-suffix",function(){return[n(r.ChatIconEmotion,{staticClass:"plv-viewer-input-control__icon",on:{click:function(o){return o.stopPropagation(),r.onClickEmotion.apply(null,arguments)}}})]})],2),e._t("suffix")],2)},Sy=[],Ey=j(Qy,ky,Sy);const dl=Ey.exports,Ty=u.defineComponent({__name:"manager-input-control",setup(t){const{inputConfig:e}=pt(),{canChatSwitch:n,chatRoomIsClosed:r,toggleChatSwitch:o}=fl(),{onClickSendImage:i}=Wr();return{__sfc:!0,inputConfig:e,canChatSwitch:n,chatRoomIsClosed:r,toggleChatSwitch:o,onClickSendImage:i,ChatIconChatDisabled:kd,ChatIconChatDisabledSuffix:Sd,ChatIconSendImage:zd,ViewerInputControl:dl}}});var Iy=function(){var e=this,n=e._self._c,r=e._self._setupProxy;return n(r.ViewerInputControl,{staticClass:"plv-manager-input-control",scopedSlots:e._u([{key:"suffix",fn:function(){return[r.inputConfig.sendImageEnabled?n("div",{staticClass:"plv-viewer-input-control__btn",on:{click:r.onClickSendImage}},[n(r.ChatIconSendImage)],1):e._e(),r.canChatSwitch?n("div",{staticClass:"plv-viewer-input-control__btn plv-manager-input-control__btn--chat-switch",class:{"is-active":r.chatRoomIsClosed},on:{click:r.toggleChatSwitch}},[n(r.ChatIconChatDisabled),n(r.ChatIconChatDisabledSuffix)],1):e._e()]},proxy:!0}])})},Ly=[],Py=j(Ty,Iy,Ly);const Ay=Py.exports,$y=u.defineComponent({__name:"toping-msg-item",props:{item:k.object().isRequired},emits:["hide","close"],setup(t,{emit:e}){const n=t,{$t:r}=G(),o=u.computed(()=>n.item.chatMsg),{canTopMsg:i,cancelTopMsg:s}=ic({chatMsg:o});return{__sfc:!0,props:n,emit:e,$t:r,chatMsg:o,canTopMsg:i,cancelTopMsg:s,SimpleMsgItem:$r,PwcIconClose:En}}});var Ry=function(){var e=this,n=e._self._c,r=e._self._setupProxy;return n("div",{staticClass:"plv-toping-msg-item"},[n("div",{staticClass:"plv-toping-msg-item__body",class:{"is-show-close":!r.canTopMsg}},[r.canTopMsg?n("div",{staticClass:"plv-toping-msg-item__control"},[n("div",{staticClass:"plv-toping-msg-item__control-actor"},[e._v(e._s(r.$t("manage.topAction"))+e._s(e.item.topActor))]),n("div",{staticClass:"plv-toping-msg-item__control__item",on:{click:r.cancelTopMsg}},[e._v(e._s(r.$t("manage.cancelTop")))]),n("div",{staticClass:"plv-toping-msg-item__control__item",on:{click:function(o){return r.emit("hide")}}},[e._v(e._s(r.$t("manage.hideTop")))])]):n(r.PwcIconClose,{staticClass:"plv-toping-msg-item__close",on:{click:function(o){return r.emit("close")}}}),n(r.SimpleMsgItem,{staticClass:"plv-toping-msg-item__content",attrs:{"chat-msg":e.item.chatMsg,"show-avatar":"",type:"top"}})],1)])},Oy=[],Dy=j($y,Ry,Oy);const zy=Dy.exports,Fy=u.defineComponent({__name:"toping-msg-list",setup(t){const{manageConfig:e}=_e(),{topingMsgs:n}=G1(),{visible:r,show:o,close:i}=vt(!0),s=u.ref(!0);return u.watch(n,()=>{n.value.length&&(o(),s.value=!0)}),{__sfc:!0,manageConfig:e,topingMsgs:n,visible:r,show:o,close:i,canRender:s,PwcSwiper:z1,PwcSwiperSlide:F1,ChatIconTopMsgArrow:Nd,TopingMsgItem:zy}}});var By=function(){var e=this,n=e._self._c,r=e._self._setupProxy;return r.topingMsgs.length&&r.canRender?n("div",{staticClass:"plv-toping-msg-list",style:{height:r.manageConfig.topMsgEnabled?"116px":"90px"}},[r.visible?n(r.PwcSwiper,{staticClass:"plv-toping-msg-list__swiper",attrs:{pagination:{el:".plv-toping-msg-list__indicator",bulletClass:"plv-toping-msg-list__indicator-item",bulletActiveClass:"is-active"}},scopedSlots:e._u([{key:"pagination",fn:function(){return[n("div",{staticClass:"plv-toping-msg-list__indicator",class:{"is-hide":r.topingMsgs.length<=1}})]},proxy:!0}],null,!1,2009145619)},e._l(r.topingMsgs,function(o){return n(r.PwcSwiperSlide,{key:o.id},[n(r.TopingMsgItem,{attrs:{item:o},on:{hide:r.close,close:function(i){r.canRender=!1}}})],1)}),1):e._e(),r.visible?e._e():n("div",{staticClass:"plv-toping-msg-list__arrow",on:{click:r.show}},[n(r.ChatIconTopMsgArrow)],1)],1):e._e()},My=[],Ny=j(Fy,By,My);const Uy=Ny.exports,Hy="PolyvChatUI";K.BanList=el,K.ChatMessageInputPopup=Jb,K.ChatMessageInputSection=Cy,K.ChatMessageList=n_,K.DonateAnimation=C_,K.DonateSvgaAnimation=u_,K.GlobalVariable=Hy,K.KickList=tl,K.ManagerInputControl=Ay,K.MemberList=ab,K.MessageEffectType=Bn,K.TopingMsgList=Uy,K.ViewerInputControl=dl,K.useChatGlobalProvide=Pf,K.useSendMsg=Ir,Object.defineProperty(K,Symbol.toStringTag,{value:"Module"})});console.log("%c@polyv/chat-ui","background:#409EFF;padding: 2px 6px;border-radius: 3px;color: #fff","[version: 2.1.0-rc-20251023.1]","[buildTime: 2025-10-21 10:21:20]");
1034
+ `),dy=()=>{const{$t:t}=G(),{manageConfig:e}=_e(),{chatTarget:n}=q(),{toast:r}=xe(),{messageBox:o}=wr(),i=u.computed(()=>e.value.clearMsgEnabled);function s(){return P(this,null,function*(){if(!i.value)return;yield o({message:t("manage.clearChatConfirm"),description:t("manage.clearChatConfirmTips"),confirmType:Pt.Delete,confirmButtonText:t("manage.clear")}).$confirm(),(yield n.manage.clearMsg()).success?r.success(t("manage.clearMsgSuccess")):r.error(t("manage.clearMsgFail"))})}return{canClearMsg:i,clearMsg:s}},my=u.defineComponent({__name:"more-panel",emits:{close:H()},setup(t,{emit:e}){const{$t:n}=G(),{canClearMsg:r,clearMsg:o}=dy(),{canOnlySpecialMsg:i,isOnlySpecialMsg:s,toggleOnlySpecialMsg:c}=Jc(),{canAutoTranslate:a,isAutoTranslating:l,toggleAutoTranslate:p}=_c();function f(){p(),e("close")}return{__sfc:!0,emit:e,$t:n,canClearMsg:r,clearMsg:o,canOnlySpecialMsg:i,isOnlySpecialMsg:s,toggleOnlySpecialMsg:c,canAutoTranslate:a,isAutoTranslating:l,toggleAutoTranslate:p,onClickAutoTranslate:f,ChatIconRemove:Od,ChatIconCheckbox:Ed,ChatIconTranslateTwo:nc,ChatIconCancelTranslate:Qd,ChatOriginIconCheckbox:fy}}});var gy=function(){var e=this,n=e._self._c,r=e._self._setupProxy;return n("div",{staticClass:"plv-chat-message-input-section__more-panel"},[r.canAutoTranslate?n("div",{staticClass:"plv-chat-message-input-section__more-panel--auto-translate",on:{click:r.onClickAutoTranslate}},[r.isAutoTranslating?n(r.ChatIconCancelTranslate):n(r.ChatIconTranslateTwo),n("span",[e._v(e._s(r.isAutoTranslating?r.$t("chat.cancelTranslate"):r.$t("chat.translate")))])],1):e._e(),r.canOnlySpecialMsg?n("div",{staticClass:"plv-chat-message-input-section__more-panel--only-special",on:{click:r.toggleOnlySpecialMsg}},[r.isOnlySpecialMsg?n(r.ChatOriginIconCheckbox):n(r.ChatIconCheckbox),n("span",[e._v(e._s(r.$t("chat.onlySpecial")))])],1):e._e(),r.canClearMsg?n("div",{staticClass:"plv-chat-message-input-section__more-panel--clear",on:{click:r.clearMsg}},[n(r.ChatIconRemove),n("span",[e._v(e._s(r.$t("manage.clearChat")))])],1):e._e(),e._t("more-panel")],2)},hy=[],vy=j(my,gy,hy);const _y=vy.exports,wy=u.defineComponent({__name:"chat-message-input-section",props:{defaultHeight:k.number.def(140),showMore:k.bool.def(!0)},setup(t){const e=u.ref(),{chatInputDisabled:n,chatInputPlaceholder:r,maxInputTextLength:o,currentQuoteMsg:i,clearCurrentQuoteMsg:s,onSubmitMessage:c,onClickSendImage:a,onSystemMsg:l}=Wr({quoteMsgCallback:()=>{var E;(E=e.value)==null||E.focusInput()}}),{currentMaskText:p}=Tr(),{$t:f}=G(),{messageConfig:h}=ce(),{canChatSwitch:d,chatRoomIsClosed:v,toggleChatSwitch:g}=fl(),{getEmitter:_}=we(),{checkIntercept:m}=_t(),w=u.ref(),{visible:b,togglePanel:x,hidePanel:C}=cl([w,"[data-more]"]);function Q(){return P(this,null,function*(){(yield m("more-panel"))||x()})}function S(){_().emit(J.AddMessageSize)}function y(){_().emit(J.CheckScrollFoot)}return{__sfc:!0,msgInputBaseRef:e,chatInputDisabled:n,chatInputPlaceholder:r,maxInputTextLength:o,currentQuoteMsg:i,clearCurrentQuoteMsg:s,onSubmitMessage:c,onClickSendImage:a,onSystemMsg:l,currentMaskText:p,$t:f,messageConfig:h,canChatSwitch:d,chatRoomIsClosed:v,toggleChatSwitch:g,getEmitter:_,checkIntercept:m,morePanelRef:w,moreVisible:b,toggleMorePanel:x,hideMorePanel:C,onClickMore:Q,onClickMsgSize:S,onResize:y,PwcIconClose:En,PwcSwitch:Lf,ChatIconFontSize:Pd,SimpleMsgItem:$r,MessageInputBase:py,MorePanel:_y}}});var by=function(){var e=this,n=e._self._c,r=e._self._setupProxy;return n("div",{staticClass:"plv-chat-message-input-section"},[r.currentQuoteMsg?n("div",{staticClass:"plv-chat-message-input-section__quote"},[n(r.SimpleMsgItem,{attrs:{"chat-msg":r.currentQuoteMsg,type:"quote"}}),n(r.PwcIconClose,{staticClass:"plv-chat-message-input-section__quote__close",on:{click:r.clearCurrentQuoteMsg}})],1):e._e(),n(r.MessageInputBase,{ref:"msgInputBaseRef",attrs:{"disabled-input":r.chatInputDisabled,placeholder:r.chatInputPlaceholder,"default-height":e.defaultHeight,"max-input-text-length":r.maxInputTextLength,"show-bottom":!r.currentMaskText},on:{submit:r.onSubmitMessage,"click-send-image":r.onClickSendImage,resize:r.onResize,"system-msg":r.onSystemMsg},scopedSlots:e._u([{key:"panel-suffix",fn:function(){return[n("div",{directives:[{name:"show",rawName:"v-show",value:r.moreVisible,expression:"moreVisible"}],staticClass:"plv-message-input-base__panel--more",attrs:{"data-more":""}},[n(r.MorePanel,{on:{close:r.hideMorePanel},scopedSlots:e._u([{key:"more-panel",fn:function(){return[e._t("more-panel")]},proxy:!0}],null,!0)})],1)]},proxy:!0},r.currentMaskText?{key:"icon-left",fn:function(){return[n("div",{staticClass:"plv-chat-message-input-section__mask-title"},[e._v(e._s(r.$t("input.maskTitle")))])]},proxy:!0}:null,r.currentMaskText?{key:"input",fn:function(){return[n("div",{staticClass:"plv-chat-message-input-section__mask-text"},[e._v(e._s(r.currentMaskText))])]},proxy:!0}:null,{key:"icon-left-suffix",fn:function(){return[r.messageConfig.messageSizeEnabled?n(r.ChatIconFontSize,{staticClass:"plv-message-input-base__icons--msg-size",on:{click:r.onClickMsgSize}}):e._e(),e._t("icon-left-suffix")]},proxy:!0},{key:"icon-right-suffix",fn:function(){return[e._t("icon-right-suffix"),e.showMore?n("div",{staticClass:"plv-message-input-base__icons--more",attrs:{"data-more":""},on:{click:r.onClickMore}},[e._v(" "+e._s(r.$t("chat.more"))+" "),n("span")]):e._e()]},proxy:!0},{key:"bottom-suffix",fn:function(){return[e._t("bottom-suffix"),r.canChatSwitch?n("div",{staticClass:"plv-chat-message-input-section__switch"},[n(r.PwcSwitch,{attrs:{value:r.chatRoomIsClosed,size:"mini"},on:{change:r.toggleChatSwitch}}),n("span",[e._v(e._s(r.$t("manage.closeRoom")))])],1):e._e()]},proxy:!0}],null,!0)})],1)},yy=[],xy=j(wy,by,yy);const Cy=xy.exports,Qy=u.defineComponent({__name:"viewer-input-control",setup(t){const{getEmitter:e}=we(),{chatInputDisabled:n,chatInputPlaceholder:r}=Wr({quotePlaceholder:!1});function o(){n.value||e().emit(J.OpenEmotionFacePicker)}function i(){e().emit(J.FocusInput)}return{__sfc:!0,getEmitter:e,chatInputDisabled:n,chatInputPlaceholder:r,onClickEmotion:o,openInput:i,ChatIconEmotion:ec}}});var ky=function(){var e=this,n=e._self._c,r=e._self._setupProxy;return n("div",{staticClass:"plv-viewer-input-control"},[n("div",{staticClass:"plv-viewer-input-control__body",class:{"is-disabled":r.chatInputDisabled},on:{click:r.openInput}},[n("div",{staticClass:"plv-viewer-input-control__body__text"},[e._v(e._s(r.chatInputPlaceholder))]),e._t("body-suffix",function(){return[n(r.ChatIconEmotion,{staticClass:"plv-viewer-input-control__icon",on:{click:function(o){return o.stopPropagation(),r.onClickEmotion.apply(null,arguments)}}})]})],2),e._t("suffix")],2)},Sy=[],Ey=j(Qy,ky,Sy);const dl=Ey.exports,Ty=u.defineComponent({__name:"manager-input-control",setup(t){const{inputConfig:e}=pt(),{canChatSwitch:n,chatRoomIsClosed:r,toggleChatSwitch:o}=fl(),{onClickSendImage:i}=Wr();return{__sfc:!0,inputConfig:e,canChatSwitch:n,chatRoomIsClosed:r,toggleChatSwitch:o,onClickSendImage:i,ChatIconChatDisabled:kd,ChatIconChatDisabledSuffix:Sd,ChatIconSendImage:zd,ViewerInputControl:dl}}});var Iy=function(){var e=this,n=e._self._c,r=e._self._setupProxy;return n(r.ViewerInputControl,{staticClass:"plv-manager-input-control",scopedSlots:e._u([{key:"suffix",fn:function(){return[r.inputConfig.sendImageEnabled?n("div",{staticClass:"plv-viewer-input-control__btn",on:{click:r.onClickSendImage}},[n(r.ChatIconSendImage)],1):e._e(),r.canChatSwitch?n("div",{staticClass:"plv-viewer-input-control__btn plv-manager-input-control__btn--chat-switch",class:{"is-active":r.chatRoomIsClosed},on:{click:r.toggleChatSwitch}},[n(r.ChatIconChatDisabled),n(r.ChatIconChatDisabledSuffix)],1):e._e()]},proxy:!0}])})},Ly=[],Py=j(Ty,Iy,Ly);const Ay=Py.exports,$y=u.defineComponent({__name:"toping-msg-item",props:{item:k.object().isRequired},emits:["hide","close"],setup(t,{emit:e}){const n=t,{$t:r}=G(),o=u.computed(()=>n.item.chatMsg),{canTopMsg:i,cancelTopMsg:s}=ic({chatMsg:o});return{__sfc:!0,props:n,emit:e,$t:r,chatMsg:o,canTopMsg:i,cancelTopMsg:s,SimpleMsgItem:$r,PwcIconClose:En}}});var Ry=function(){var e=this,n=e._self._c,r=e._self._setupProxy;return n("div",{staticClass:"plv-toping-msg-item"},[n("div",{staticClass:"plv-toping-msg-item__body",class:{"is-show-close":!r.canTopMsg}},[r.canTopMsg?n("div",{staticClass:"plv-toping-msg-item__control"},[n("div",{staticClass:"plv-toping-msg-item__control-actor"},[e._v(e._s(r.$t("manage.topAction"))+e._s(e.item.topActor))]),n("div",{staticClass:"plv-toping-msg-item__control__item",on:{click:r.cancelTopMsg}},[e._v(e._s(r.$t("manage.cancelTop")))]),n("div",{staticClass:"plv-toping-msg-item__control__item",on:{click:function(o){return r.emit("hide")}}},[e._v(e._s(r.$t("manage.hideTop")))])]):n(r.PwcIconClose,{staticClass:"plv-toping-msg-item__close",on:{click:function(o){return r.emit("close")}}}),n(r.SimpleMsgItem,{staticClass:"plv-toping-msg-item__content",attrs:{"chat-msg":e.item.chatMsg,"show-avatar":"",type:"top"}})],1)])},Oy=[],Dy=j($y,Ry,Oy);const zy=Dy.exports,Fy=u.defineComponent({__name:"toping-msg-list",setup(t){const{manageConfig:e}=_e(),{topingMsgs:n}=G1(),{visible:r,show:o,close:i}=vt(!0),s=u.ref(!0);return u.watch(n,()=>{n.value.length&&(o(),s.value=!0)}),{__sfc:!0,manageConfig:e,topingMsgs:n,visible:r,show:o,close:i,canRender:s,PwcSwiper:z1,PwcSwiperSlide:F1,ChatIconTopMsgArrow:Nd,TopingMsgItem:zy}}});var By=function(){var e=this,n=e._self._c,r=e._self._setupProxy;return r.topingMsgs.length&&r.canRender?n("div",{staticClass:"plv-toping-msg-list",style:{height:r.manageConfig.topMsgEnabled?"116px":"90px"}},[r.visible?n(r.PwcSwiper,{staticClass:"plv-toping-msg-list__swiper",attrs:{pagination:{el:".plv-toping-msg-list__indicator",bulletClass:"plv-toping-msg-list__indicator-item",bulletActiveClass:"is-active"}},scopedSlots:e._u([{key:"pagination",fn:function(){return[n("div",{staticClass:"plv-toping-msg-list__indicator",class:{"is-hide":r.topingMsgs.length<=1}})]},proxy:!0}],null,!1,2009145619)},e._l(r.topingMsgs,function(o){return n(r.PwcSwiperSlide,{key:o.id},[n(r.TopingMsgItem,{attrs:{item:o},on:{hide:r.close,close:function(i){r.canRender=!1}}})],1)}),1):e._e(),r.visible?e._e():n("div",{staticClass:"plv-toping-msg-list__arrow",on:{click:r.show}},[n(r.ChatIconTopMsgArrow)],1)],1):e._e()},My=[],Ny=j(Fy,By,My);const Uy=Ny.exports,Hy="PolyvChatUI";K.BanList=el,K.ChatMessageInputPopup=Jb,K.ChatMessageInputSection=Cy,K.ChatMessageList=n_,K.DonateAnimation=C_,K.DonateSvgaAnimation=u_,K.GlobalVariable=Hy,K.KickList=tl,K.ManagerInputControl=Ay,K.MemberList=ab,K.MessageEffectType=Bn,K.TopingMsgList=Uy,K.ViewerInputControl=dl,K.useChatGlobalProvide=Pf,K.useSendMsg=Ir,Object.defineProperty(K,Symbol.toStringTag,{value:"Module"})});console.log("%c@polyv/chat-ui","background:#409EFF;padding: 2px 6px;border-radius: 3px;color: #fff","[version: 2.1.0-rc-20251023.2]","[buildTime: 2025-10-22 01:22:22]");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@polyv/chat-ui",
3
- "version": "2.1.0-rc-20251023.1",
3
+ "version": "2.1.0-rc-20251023.2",
4
4
  "main": "./index.es.js",
5
5
  "dependencies": {},
6
6
  "types": "./index.d.ts"
package/special.es.js CHANGED
@@ -22477,8 +22477,8 @@ const VC = LC.exports, HC = "PolyvChatUISpecial";
22477
22477
  console.log(
22478
22478
  "%c@polyv/chat-ui",
22479
22479
  "background:#409EFF;padding: 2px 6px;border-radius: 3px;color: #fff",
22480
- "[version: 2.1.0-rc-20251023.1]",
22481
- "[buildTime: 2025-10-21 10:21:34]"
22480
+ "[version: 2.1.0-rc-20251023.2]",
22481
+ "[buildTime: 2025-10-22 01:22:37]"
22482
22482
  );
22483
22483
  export {
22484
22484
  yx as BanList,
package/special.umd.js CHANGED
@@ -1031,4 +1031,4 @@ ${Gn(n)}`),r}})}function Nl(t){const e=Object.keys(t),n=e.filter(o=>{var i;retur
1031
1031
  </g>
1032
1032
  </g>
1033
1033
  </svg>
1034
- `),Hw=()=>{const{$t:t}=G(),{manageConfig:e}=_e(),{chatTarget:n}=q(),{toast:r}=xe(),{messageBox:o}=wr(),i=u.computed(()=>e.value.clearMsgEnabled);function s(){return P(this,null,function*(){if(!i.value)return;yield o({message:t("manage.clearChatConfirm"),description:t("manage.clearChatConfirmTips"),confirmType:Pt.Delete,confirmButtonText:t("manage.clear")}).$confirm(),(yield n.manage.clearMsg()).success?r.success(t("manage.clearMsgSuccess")):r.error(t("manage.clearMsgFail"))})}return{canClearMsg:i,clearMsg:s}},jw=u.defineComponent({__name:"more-panel",emits:{close:H()},setup(t,{emit:e}){const{$t:n}=G(),{canClearMsg:r,clearMsg:o}=Hw(),{canOnlySpecialMsg:i,isOnlySpecialMsg:s,toggleOnlySpecialMsg:c}=Jc(),{canAutoTranslate:a,isAutoTranslating:l,toggleAutoTranslate:p}=_c();function f(){p(),e("close")}return{__sfc:!0,emit:e,$t:n,canClearMsg:r,clearMsg:o,canOnlySpecialMsg:i,isOnlySpecialMsg:s,toggleOnlySpecialMsg:c,canAutoTranslate:a,isAutoTranslating:l,toggleAutoTranslate:p,onClickAutoTranslate:f,ChatIconRemove:Od,ChatIconCheckbox:Ed,ChatIconTranslateTwo:nc,ChatIconCancelTranslate:Qd,ChatOriginIconCheckbox:Uw}}});var qw=function(){var e=this,n=e._self._c,r=e._self._setupProxy;return n("div",{staticClass:"plv-chat-message-input-section__more-panel"},[r.canAutoTranslate?n("div",{staticClass:"plv-chat-message-input-section__more-panel--auto-translate",on:{click:r.onClickAutoTranslate}},[r.isAutoTranslating?n(r.ChatIconCancelTranslate):n(r.ChatIconTranslateTwo),n("span",[e._v(e._s(r.isAutoTranslating?r.$t("chat.cancelTranslate"):r.$t("chat.translate")))])],1):e._e(),r.canOnlySpecialMsg?n("div",{staticClass:"plv-chat-message-input-section__more-panel--only-special",on:{click:r.toggleOnlySpecialMsg}},[r.isOnlySpecialMsg?n(r.ChatOriginIconCheckbox):n(r.ChatIconCheckbox),n("span",[e._v(e._s(r.$t("chat.onlySpecial")))])],1):e._e(),r.canClearMsg?n("div",{staticClass:"plv-chat-message-input-section__more-panel--clear",on:{click:r.clearMsg}},[n(r.ChatIconRemove),n("span",[e._v(e._s(r.$t("manage.clearChat")))])],1):e._e(),e._t("more-panel")],2)},Ww=[],Gw=j(jw,qw,Ww);const Yw=Gw.exports,Zw=u.defineComponent({__name:"chat-message-input-section",props:{defaultHeight:k.number.def(140),showMore:k.bool.def(!0)},setup(t){const e=u.ref(),{chatInputDisabled:n,chatInputPlaceholder:r,maxInputTextLength:o,currentQuoteMsg:i,clearCurrentQuoteMsg:s,onSubmitMessage:c,onClickSendImage:a,onSystemMsg:l}=Wr({quoteMsgCallback:()=>{var E;(E=e.value)==null||E.focusInput()}}),{currentMaskText:p}=Tr(),{$t:f}=G(),{messageConfig:h}=ce(),{canChatSwitch:d,chatRoomIsClosed:v,toggleChatSwitch:g}=ll(),{getEmitter:_}=we(),{checkIntercept:m}=_t(),w=u.ref(),{visible:b,togglePanel:x,hidePanel:C}=il([w,"[data-more]"]);function Q(){return P(this,null,function*(){(yield m("more-panel"))||x()})}function S(){_().emit(J.AddMessageSize)}function y(){_().emit(J.CheckScrollFoot)}return{__sfc:!0,msgInputBaseRef:e,chatInputDisabled:n,chatInputPlaceholder:r,maxInputTextLength:o,currentQuoteMsg:i,clearCurrentQuoteMsg:s,onSubmitMessage:c,onClickSendImage:a,onSystemMsg:l,currentMaskText:p,$t:f,messageConfig:h,canChatSwitch:d,chatRoomIsClosed:v,toggleChatSwitch:g,getEmitter:_,checkIntercept:m,morePanelRef:w,moreVisible:b,toggleMorePanel:x,hideMorePanel:C,onClickMore:Q,onClickMsgSize:S,onResize:y,PwcIconClose:En,PwcSwitch:Lf,ChatIconFontSize:Pd,SimpleMsgItem:$r,MessageInputBase:Nw,MorePanel:Yw}}});var Kw=function(){var e=this,n=e._self._c,r=e._self._setupProxy;return n("div",{staticClass:"plv-chat-message-input-section"},[r.currentQuoteMsg?n("div",{staticClass:"plv-chat-message-input-section__quote"},[n(r.SimpleMsgItem,{attrs:{"chat-msg":r.currentQuoteMsg,type:"quote"}}),n(r.PwcIconClose,{staticClass:"plv-chat-message-input-section__quote__close",on:{click:r.clearCurrentQuoteMsg}})],1):e._e(),n(r.MessageInputBase,{ref:"msgInputBaseRef",attrs:{"disabled-input":r.chatInputDisabled,placeholder:r.chatInputPlaceholder,"default-height":e.defaultHeight,"max-input-text-length":r.maxInputTextLength,"show-bottom":!r.currentMaskText},on:{submit:r.onSubmitMessage,"click-send-image":r.onClickSendImage,resize:r.onResize,"system-msg":r.onSystemMsg},scopedSlots:e._u([{key:"panel-suffix",fn:function(){return[n("div",{directives:[{name:"show",rawName:"v-show",value:r.moreVisible,expression:"moreVisible"}],staticClass:"plv-message-input-base__panel--more",attrs:{"data-more":""}},[n(r.MorePanel,{on:{close:r.hideMorePanel},scopedSlots:e._u([{key:"more-panel",fn:function(){return[e._t("more-panel")]},proxy:!0}],null,!0)})],1)]},proxy:!0},r.currentMaskText?{key:"icon-left",fn:function(){return[n("div",{staticClass:"plv-chat-message-input-section__mask-title"},[e._v(e._s(r.$t("input.maskTitle")))])]},proxy:!0}:null,r.currentMaskText?{key:"input",fn:function(){return[n("div",{staticClass:"plv-chat-message-input-section__mask-text"},[e._v(e._s(r.currentMaskText))])]},proxy:!0}:null,{key:"icon-left-suffix",fn:function(){return[r.messageConfig.messageSizeEnabled?n(r.ChatIconFontSize,{staticClass:"plv-message-input-base__icons--msg-size",on:{click:r.onClickMsgSize}}):e._e(),e._t("icon-left-suffix")]},proxy:!0},{key:"icon-right-suffix",fn:function(){return[e._t("icon-right-suffix"),e.showMore?n("div",{staticClass:"plv-message-input-base__icons--more",attrs:{"data-more":""},on:{click:r.onClickMore}},[e._v(" "+e._s(r.$t("chat.more"))+" "),n("span")]):e._e()]},proxy:!0},{key:"bottom-suffix",fn:function(){return[e._t("bottom-suffix"),r.canChatSwitch?n("div",{staticClass:"plv-chat-message-input-section__switch"},[n(r.PwcSwitch,{attrs:{value:r.chatRoomIsClosed,size:"mini"},on:{change:r.toggleChatSwitch}}),n("span",[e._v(e._s(r.$t("manage.closeRoom")))])],1):e._e()]},proxy:!0}],null,!0)})],1)},Xw=[],Jw=j(Zw,Kw,Xw);const Vw=Jw.exports,eb=u.defineComponent({__name:"viewer-input-control",setup(t){const{getEmitter:e}=we(),{chatInputDisabled:n,chatInputPlaceholder:r}=Wr({quotePlaceholder:!1});function o(){n.value||e().emit(J.OpenEmotionFacePicker)}function i(){e().emit(J.FocusInput)}return{__sfc:!0,getEmitter:e,chatInputDisabled:n,chatInputPlaceholder:r,onClickEmotion:o,openInput:i,ChatIconEmotion:ec}}});var tb=function(){var e=this,n=e._self._c,r=e._self._setupProxy;return n("div",{staticClass:"plv-viewer-input-control"},[n("div",{staticClass:"plv-viewer-input-control__body",class:{"is-disabled":r.chatInputDisabled},on:{click:r.openInput}},[n("div",{staticClass:"plv-viewer-input-control__body__text"},[e._v(e._s(r.chatInputPlaceholder))]),e._t("body-suffix",function(){return[n(r.ChatIconEmotion,{staticClass:"plv-viewer-input-control__icon",on:{click:function(o){return o.stopPropagation(),r.onClickEmotion.apply(null,arguments)}}})]})],2),e._t("suffix")],2)},nb=[],rb=j(eb,tb,nb);const ul=rb.exports,ob=u.defineComponent({__name:"manager-input-control",setup(t){const{inputConfig:e}=pt(),{canChatSwitch:n,chatRoomIsClosed:r,toggleChatSwitch:o}=ll(),{onClickSendImage:i}=Wr();return{__sfc:!0,inputConfig:e,canChatSwitch:n,chatRoomIsClosed:r,toggleChatSwitch:o,onClickSendImage:i,ChatIconChatDisabled:kd,ChatIconChatDisabledSuffix:Sd,ChatIconSendImage:zd,ViewerInputControl:ul}}});var ib=function(){var e=this,n=e._self._c,r=e._self._setupProxy;return n(r.ViewerInputControl,{staticClass:"plv-manager-input-control",scopedSlots:e._u([{key:"suffix",fn:function(){return[r.inputConfig.sendImageEnabled?n("div",{staticClass:"plv-viewer-input-control__btn",on:{click:r.onClickSendImage}},[n(r.ChatIconSendImage)],1):e._e(),r.canChatSwitch?n("div",{staticClass:"plv-viewer-input-control__btn plv-manager-input-control__btn--chat-switch",class:{"is-active":r.chatRoomIsClosed},on:{click:r.toggleChatSwitch}},[n(r.ChatIconChatDisabled),n(r.ChatIconChatDisabledSuffix)],1):e._e()]},proxy:!0}])})},sb=[],ab=j(ob,ib,sb);const cb=ab.exports,lb=u.defineComponent({__name:"ban-user-item",props:{item:k.object().isRequired},emits:{"cancel-ban-user":H()},setup(t,{emit:e}){const n=t,r=u.computed(()=>n.item.userId),{$t:o}=G(),{cancelBanUser:i}=yi({targetUserId:r,banActionCallback:()=>{e("cancel-ban-user")}});return{__sfc:!0,props:n,emit:e,targetUserId:r,$t:o,cancelBanUser:i}}});var ub=function(){var e=this,n=e._self._c,r=e._self._setupProxy;return n("div",{staticClass:"plv-ban-user-item"},[n("div",{staticClass:"plv-ban-user-item__content"},[n("div",{staticClass:"plv-ban-user-item__nick"},[e._v(e._s(e.item.nick||"-"))]),n("div",{staticClass:"plv-ban-user-item__info"},[n("span",[e._v("IP: "+e._s(e.item.clientIp||"-"))]),n("span",[e._v("ID: "+e._s(e.item.userId||"-"))])])]),e.item.platformProhibited?n("div",{staticClass:"plv-ban-user-item__btn is-disabled"},[e._v(" "+e._s(r.$t("manage.banPlatformProhibited"))+" ")]):n("div",{staticClass:"plv-ban-user-item__btn",on:{click:r.cancelBanUser}},[e._v(" "+e._s(r.$t("manage.cancelBan"))+" ")])])},pb=[],fb=j(lb,ub,pb);const db=fb.exports,mb=u.defineComponent({__name:"ban-user-list",setup(t){const{chatTarget:e}=q(),{$t:n}=G(),{isEmpty:r,keyword:o,contents:i,scrollRef:s,refreshList:c}=Ga(a=>e.manage.getBannedUserList({pageNumber:a.pageNumber,pageSize:a.pageSize,keyword:a.keyword}),{pageSize:u.ref(50)});return{__sfc:!0,chatTarget:e,$t:n,isEmpty:r,keyword:o,bannedUserList:i,scrollRef:s,refreshList:c,FormSize:_r,PwcInput:On,PwcEmpty:tn,ChatIconSearch:tc,BanUserItem:db}}});var gb=function(){var e=this,n=e._self._c,r=e._self._setupProxy;return n("div",{staticClass:"plv-ban-user-list"},[n("div",{staticClass:"plv-ban-user-list__search"},[n(r.PwcInput,{attrs:{size:r.FormSize.Small,placeholder:r.$t("online.searchPlaceholder")},scopedSlots:e._u([{key:"prefix",fn:function(){return[n(r.ChatIconSearch)]},proxy:!0}]),model:{value:r.keyword,callback:function(o){r.keyword=o},expression:"keyword"}})],1),n("div",{ref:"scrollRef",staticClass:"plv-ban-user-list__content"},[e._l(r.bannedUserList,function(o){return n(r.BanUserItem,{key:o.userId,attrs:{item:o},on:{"cancel-ban-user":r.refreshList}})}),r.isEmpty?n(r.PwcEmpty):e._e()],2)])},hb=[],vb=j(mb,gb,hb);const _b=vb.exports,wb=u.defineComponent({__name:"ban-ip-item",props:{item:k.object().isRequired},emits:{"cancel-ban-ip":H()},setup(t,{emit:e}){const n=t,{$t:r}=G(),o=u.computed(()=>n.item.clientIp),{cancelBanIp:i}=bi({targetIp:o,banActionCallback:()=>{e("cancel-ban-ip")}});return{__sfc:!0,props:n,emit:e,$t:r,targetIp:o,cancelBanIp:i}}});var bb=function(){var e=this,n=e._self._c,r=e._self._setupProxy;return n("div",{staticClass:"plv-ban-ip-item"},[n("div",{staticClass:"plv-ban-ip-item__ip"},[e._v(" "+e._s(r.$t("manage.userIp"))+" "+e._s(e.item.clientIp)+" ")]),n("div",{staticClass:"plv-ban-ip-item__btn",on:{click:r.cancelBanIp}},[e._v(" "+e._s(r.$t("manage.cancelBanIp"))+" ")])])},yb=[],xb=j(wb,bb,yb);const Cb=xb.exports,Qb=u.defineComponent({__name:"ban-ip-list",setup(t){const{chatTarget:e}=q(),n=u.ref([]),{request:r,requestFinished:o,loading:i}=Bo(()=>P(this,null,function*(){const s=yield e.manage.getBannedIpList();n.value=s.contents}));return u.onMounted(()=>{r()}),{__sfc:!0,chatTarget:e,bannedIpList:n,getBannedIpList:r,requestFinished:o,loading:i,BanIpItem:Cb,PwcEmpty:tn}}});var kb=function(){var e=this,n=e._self._c,r=e._self._setupProxy;return n("div",{staticClass:"plv-ban-ip-list"},[e._l(r.bannedIpList,function(o){return n(r.BanIpItem,{key:o.clientIp,attrs:{item:o},on:{"cancel-ban-ip":r.getBannedIpList}})}),r.requestFinished&&!r.loading&&r.bannedIpList.length===0?n(r.PwcEmpty):e._e()],2)},Sb=[],Eb=j(Qb,kb,Sb);const Tb=Eb.exports,Ib=u.defineComponent({__name:"ban-list",setup(t,{expose:e}){const n=u.ref(),{$t:r}=G(),{visible:o,show:i,close:s}=vt();function c(){n.value="user"}function a(){n.value=void 0}return le(J.OpenBanList,i),e({openBanList:i,closeBanList:s}),{__sfc:!0,banType:n,$t:r,visible:o,openBanList:i,closeBanList:s,onAfterShow:c,onAfterLeave:a,PwcPopup:ot,PwcCategorySelect:O7,PwcCategorySelectItem:L7,BanUserList:_b,BanIpList:Tb}}});var Lb=function(){var e=this,n=e._self._c,r=e._self._setupProxy;return n(r.PwcPopup,{staticClass:"plv-ban-list",attrs:{title:r.$t("manage.banList")},on:{"after-enter":r.onAfterShow,"after-leave":r.onAfterLeave},model:{value:r.visible,callback:function(o){r.visible=o},expression:"visible"}},[n("div",{staticClass:"plv-ban-list__content"},[n("div",{staticClass:"plv-ban-list__top"},[n(r.PwcCategorySelect,{model:{value:r.banType,callback:function(o){r.banType=o},expression:"banType"}},[n(r.PwcCategorySelectItem,{attrs:{"category-value":"user"}},[e._v(e._s(r.$t("manage.banUserTitle")))]),n(r.PwcCategorySelectItem,{attrs:{"category-value":"ip"}},[e._v(e._s(r.$t("manage.banIpTitle")))])],1)],1),r.banType==="user"?n(r.BanUserList):e._e(),r.banType==="ip"?n(r.BanIpList):e._e()],1)])},Pb=[],Ab=j(Ib,Lb,Pb);const pl=Ab.exports,$b=u.defineComponent({__name:"kick-user-item",props:{item:k.object().isRequired},emits:{"cancel-kick-user":H()},setup(t,{emit:e}){const n=t,r=u.computed(()=>n.item.userId),{$t:o}=G(),{cancelKickUser:i}=xi({targetUserId:r,kickActionCallback:()=>{e("cancel-kick-user")}});return{__sfc:!0,props:n,emit:e,targetUserId:r,$t:o,cancelKickUser:i}}});var Rb=function(){var e=this,n=e._self._c,r=e._self._setupProxy;return n("div",{staticClass:"plv-kick-user-item"},[n("div",{staticClass:"plv-kick-user-item__content"},[n("div",{staticClass:"plv-kick-user-item__nick"},[e._v(e._s(e.item.nick||"-"))]),n("div",{staticClass:"plv-kick-user-item__info"},[n("span",[e._v("IP: "+e._s(e.item.clientIp||"-"))]),n("span",[e._v("ID: "+e._s(e.item.userId||"-"))])])]),e.item.platformProhibited?n("div",{staticClass:"plv-kick-user-item__btn is-disabled"},[e._v(" "+e._s(r.$t("manage.kickPlatformProhibited"))+" ")]):n("div",{staticClass:"plv-kick-user-item__btn",on:{click:r.cancelKickUser}},[e._v(" "+e._s(r.$t("manage.cancelKick"))+" ")])])},Ob=[],Db=j($b,Rb,Ob);const zb=Db.exports,Fb=u.defineComponent({__name:"kick-list",setup(t,{expose:e}){const{$t:n}=G(),{visible:r,show:o,close:i}=vt(),{chatTarget:s}=q();le(J.OpenKickList,o);const c=u.ref([]),{request:a,requestFinished:l,loading:p}=Bo(()=>P(this,null,function*(){const f=yield s.manage.getKickedUserList();c.value=f.contents}));return e({openKickList:o,closeKickList:i}),{__sfc:!0,$t:n,visible:r,openKickList:o,closeKickList:i,chatTarget:s,kickedUserList:c,getKickedUserList:a,requestFinished:l,loading:p,PwcEmpty:tn,PwcPopup:ot,KickUserItem:zb}}});var Bb=function(){var e=this,n=e._self._c,r=e._self._setupProxy;return n(r.PwcPopup,{staticClass:"plv-kick-list",attrs:{title:r.$t("manage.kickList")},on:{"after-enter":r.getKickedUserList},model:{value:r.visible,callback:function(o){r.visible=o},expression:"visible"}},[n("div",{staticClass:"plv-kick-list__content"},[e._l(r.kickedUserList,function(o){return n(r.KickUserItem,{key:o.userId,attrs:{item:o},on:{"cancel-kick-user":r.getKickedUserList}})}),r.requestFinished&&!r.loading&&r.kickedUserList.length===0?n(r.PwcEmpty):e._e()],2)])},Mb=[],Nb=j(Fb,Bb,Mb);const fl=Nb.exports,Ub=u.defineComponent({__name:"user-control",props:{user:k.object().isRequired},setup(t){const e=t,{isMobile:n}=ae(),{user:r}=ut(e),{userId:o,userClientIp:i}=Er(r),{manageConfig:s}=_e(),{actionSheet:c}=c1(),a=wi(),{controlItems:l}=a;pe(s.value.banUserEnabled,()=>yi({targetUserId:o,targetUser:r,controlContext:a})),pe(s.value.banIpEnabled,()=>bi({targetIp:i,targetUser:r,controlContext:a})),pe(s.value.kickUserEnabled,()=>xi({targetUserId:o,targetUser:r,controlContext:a})),pe(s.value.askUserEnabled,()=>X1({targetUser:r,controlContext:a}));function p(){return P(this,null,function*(){if(l.value.length===0)return;const f=yield c({actions:l.value.map(h=>{var d,v;return se(D({},h),{hidden:!1,disabled:(d=h.disabled)==null?void 0:d.call(h),disabledTip:(v=h.disabledTip)==null?void 0:v.call(h),name:h.text(),value:h.controlType})})});f&&f.clickCallback()})}return{__sfc:!0,props:e,isMobile:n,user:r,userId:o,userClientIp:i,manageConfig:s,actionSheet:c,controlContext:a,controlItems:l,onClickControl:p,PwcDropdown:ni,PwcDropdownItem:oi,PwcDropdownMenu:ri,ChatIconThreeDot:Md}}});var Hb=function(){var e=this,n=e._self._c,r=e._self._setupProxy;return r.controlItems.length>0?n("span",[r.isMobile?n(r.ChatIconThreeDot,{staticClass:"plv-online-item__control",on:{click:r.onClickControl}}):n(r.PwcDropdown,{attrs:{"show-arrow":!1},scopedSlots:e._u([{key:"dropdown",fn:function(){return[n(r.PwcDropdownMenu,e._l(r.controlItems,function(o){return n(r.PwcDropdownItem,{key:o.controlType,on:{click:o.clickCallback}},[e._v(" "+e._s(o.text())+" ")])}),1)]},proxy:!0}],null,!1,3793087375)},[n(r.ChatIconThreeDot,{staticClass:"plv-online-item__control"})],1)],1):e._e()},jb=[],qb=j(Ub,Hb,jb);const dl=qb.exports,Wb=u.defineComponent({__name:"attendance-list",props:{keyword:k.string,memberType:k.string},setup(t){const e=t,{chatTarget:n}=q(),r=u.ref([]),o=u.ref(!1),i=u.ref(!1);function s(p){return P(this,null,function*(){const f=yield n.online.getAttendanceList({keyword:e.keyword,count:10,searchType:e.memberType==="attendance"?"attendance":"absence",score:p});p?r.value=[...r.value,...f.list]:r.value=f.list,o.value=f.list.length===0,o.value||(yield l())===!1&&c(),i.value=!0})}function c(){if(o.value)return;const p=r.value[r.value.length-1];p&&!e.keyword&&!o.value&&s(p.score)}const{scrollRef:a,hasVerticalScrollbar:l}=Wa({nextCallback:()=>{c()}});return u.watch(()=>[e.keyword,e.memberType],()=>{i.value=!1,o.value=!1,s()},{immediate:!0}),{__sfc:!0,props:e,chatTarget:n,list:r,isNoMore:o,isFinished:i,getAttendanceList:s,getNext:c,scrollRef:a,hasVerticalScrollbar:l,PwcEmpty:tn,UserControl:dl}}});var Gb=function(){var e=this,n=e._self._c,r=e._self._setupProxy;return n("div",{ref:"scrollRef",staticClass:"plv-attendance-list"},[e._l(r.list,function(o){return n("div",{key:o.userId,staticClass:"plv-attendance-item"},[o.pic?n("img",{staticClass:"plv-attendance-item__avatar",attrs:{src:o.pic}}):e._e(),n("div",{staticClass:"plv-attendance-item__nick"},[e._v(e._s(o.nick))]),n("div",{staticStyle:{"margin-left":"auto"}}),e.memberType==="attendance"?n(r.UserControl,{attrs:{user:o}}):e._e()],1)}),r.isFinished&&r.list.length===0?n(r.PwcEmpty):e._e()],2)},Yb=[],Zb=j(Wb,Gb,Yb);const Kb=Zb.exports,Xb=u.defineComponent({__name:"download-attendance-list",setup(t){const{chatTarget:e}=q(),{$t:n}=G(),r=u.ref();function o(){return P(this,null,function*(){var s;yield e.download.exportAttendanceList(),(s=r.value)==null||s.openRecord()})}const i={refId:"attendance-export",getRecord:s=>e.download.getAttendanceDownloadRecord({pageNumber:s.pageNumber,pageSize:s.pageSize})};return le(J.DownloadAttendanceList,o),{__sfc:!0,chatTarget:e,$t:n,recordRef:r,downloadAttendanceList:o,controller:i,PwcDataExportRecord:g6}}});var Jb=function(){var e=this,n=e._self._c,r=e._self._setupProxy;return n(r.PwcDataExportRecord,{ref:"recordRef",attrs:{controller:r.controller,title:r.$t("manage.downloadAttendanceList")}})},Vb=[],ey=j(Xb,Jb,Vb);const ty=ey.exports,ny=()=>{const{chatTarget:t}=q(),{openDataExportRecord:e}=f1();function n(){return P(this,null,function*(){yield t.download.exportOnlineList();const r=t.download.getRefId();e(r)})}return{downloadOnline:n}},ry=()=>{const{manageConfig:t}=_e(),{chatTarget:e}=q(),{liveStatus:n}=oc(),r=u.computed(()=>n.value==="live"&&t.value.whiteListEnabled);function o(){return P(this,null,function*(){yield e.download.exportWhiteList()})}return{canDownloadWhiteList:r,downloadWhiteList:o}},oy=u.defineComponent({__name:"member-more",setup(t){const{$t:e}=G(),{isMobile:n}=ae(),{manageConfig:r}=_e(),{getEmitter:o}=we(),i=wi(),{controlItems:s}=i;return pe(r.value.banUserEnabled||r.value.banIpEnabled,()=>{i.addControlItem({controlType:"banList",text:()=>e("manage.banList"),clickCallback:()=>{o().emit(J.OpenBanList)}})}),pe(r.value.kickUserEnabled,()=>{i.addControlItem({controlType:"kickList",text:()=>e("manage.kickList"),clickCallback:()=>{o().emit(J.OpenKickList)}})}),pe(r.value.whiteListEnabled,()=>{const{canDownloadWhiteList:c,downloadWhiteList:a}=ry();i.addControlItem({controlType:"downloadWhiteList",hidden:()=>!c.value,text:()=>e("manage.downloadWhiteList"),clickCallback:a})}),pe(r.value.downloadOnlineListEnabled,()=>{const{downloadOnline:c}=ny();i.addControlItem({controlType:"downloadOnline",text:()=>e("manage.downloadOnlineList"),clickCallback:c})}),pe(r.value.attendanceEnabled,()=>{i.addControlItem({controlType:"downloadAttendanceList",text:()=>e("manage.downloadAttendanceList"),clickCallback:()=>{o().emit(J.DownloadAttendanceList)}})}),{__sfc:!0,$t:e,isMobile:n,manageConfig:r,getEmitter:o,controlContext:i,controlItems:s,PwcDropdown:ni,PwcDropdownItem:oi,PwcDropdownMenu:ri}}});var iy=function(){var e=this,n=e._self._c,r=e._self._setupProxy;return r.controlItems.length?n(r.PwcDropdown,{staticClass:"plv-member-more",class:{"is-mobile":r.isMobile},attrs:{"reference-class":"plv-member-more__reference"},scopedSlots:e._u([{key:"dropdown",fn:function(){return[n(r.PwcDropdownMenu,e._l(r.controlItems,function(o){return n(r.PwcDropdownItem,{key:o.controlType,on:{click:o.clickCallback}},[e._v(" "+e._s(o.text())+" ")])}),1)]},proxy:!0}],null,!1,3793087375)},[e._v(" "+e._s(r.$t("chat.more"))+" ")]):e._e()},sy=[],ay=j(oy,iy,sy);const cy=ay.exports,ly=u.defineComponent({__name:"member-type",props:{[k.modelValueKey]:k.string},setup(t){const e=t,{$t:n}=G(),{modelValue:r,updateModelValue:o}=Ge(e),i=u.computed(()=>{switch(r.value){case"online":return n("online.all");case"attendance":return n("online.attendance");case"absence":return n("online.absence")}});function s(c){o(c)}return{__sfc:!0,props:e,$t:n,modelValue:r,updateModelValue:o,currentTypeText:i,onCommand:s,PwcDropdown:ni,PwcDropdownItem:oi,PwcDropdownMenu:ri}}});var uy=function(){var e=this,n=e._self._c,r=e._self._setupProxy;return n(r.PwcDropdown,{staticClass:"plv-member-type",attrs:{placement:"bottom","reference-class":"plv-member-type__reference"},on:{command:r.onCommand},scopedSlots:e._u([{key:"dropdown",fn:function(){return[n(r.PwcDropdownMenu,[n(r.PwcDropdownItem,{attrs:{command:"online"}},[e._v(" "+e._s(r.$t("online.all"))+" ")]),n(r.PwcDropdownItem,{attrs:{command:"attendance"}},[e._v(" "+e._s(r.$t("online.attendance"))+" ")]),n(r.PwcDropdownItem,{attrs:{command:"absence"}},[e._v(" "+e._s(r.$t("online.absence"))+" ")])],1)]},proxy:!0}])},[e._v(" "+e._s(r.currentTypeText)+" ")])},py=[],fy=j(ly,uy,py);const dy=fy.exports,my=u.defineComponent({__name:"online-item",props:{user:k.object().isRequired},setup(t){const e=t,{user:n}=ut(e),{$t:r}=G(),{userAvatar:o,userNick:i,userActor:s,userType:c,showUserActor:a,isSelf:l}=Er(n);return{__sfc:!0,props:e,user:n,$t:r,userAvatar:o,userNick:i,userActor:s,userType:c,showUserActor:a,isSelf:l,msgUserActor:vi,UserControl:dl}}});var gy=function(){var e=this,n=e._self._c,r=e._self._setupProxy;return n("div",{staticClass:"plv-online-item"},[r.userAvatar?n("img",{staticClass:"plv-online-item__avatar",attrs:{src:r.userAvatar}}):e._e(),n("div",{staticClass:"plv-online-item__nick"},[e._v(e._s(r.userNick))]),r.isSelf?n("span",[e._v("("+e._s(r.$t("online.me"))+")")]):e._e(),r.showUserActor?n(r.msgUserActor,{staticClass:"plv-online-item__actor",attrs:{actor:r.userActor,"user-type":r.userType}}):e._e(),n("div",{staticStyle:{"margin-left":"auto"}}),n(r.UserControl,{attrs:{user:r.user}})],1)},hy=[],vy=j(my,gy,hy);const _y=vy.exports,wy={requestCount:200,onlineCountCallback:()=>{}},by=()=>{const t=it();return{onlineConfig:u.computed(()=>{let n={};return t.getOnlineConfig&&(n=t.getOnlineConfig()),D(D({},wy),n)})}},yy=()=>({keyword:k.string}),xy=t=>{const{props:e}=t,{chatTarget:n,SocketUserType:r,getUserId:o}=q(),{onlineConfig:i}=by(),{manageConfig:s}=_e(),{getEmitter:c}=we(),a=u.ref([]),l=u.computed(()=>{const _=a.value,m={[r.Teacher]:4,[r.Guest]:3,[r.Manager]:2,[r.Assistant]:1},w=b=>b.userId===o()?100:m[b.userType]||0;return _.sort((b,x)=>{const C=w(b);return w(x)-C})}),p=u.ref(0),{request:f,requestFinished:h,loading:d}=Bo(()=>P(this,null,function*(){const _=yield n.online.getOnlineList({count:i.value.requestCount,keyword:e.keyword,getBanStatus:s.value.banUserEnabled});a.value=_.onlineList,_.total!==p.value&&i.value.onlineCountCallback&&i.value.onlineCountCallback(_.total),p.value=_.total,c().emit(J.ProcessUserBanned,{userList:_.onlineList})})),{startInterval:v}=yr(f,10*1e3);u.onMounted(()=>{f(),v()});const g=u.ref(!1);return u.watch(()=>e.keyword,nl(()=>P(this,null,function*(){if(!g.value){g.value=!0,a.value=[];try{yield f()}finally{g.value=!1}}}),300)),{onlineList:a,filterOnlineList:l,total:p,manageConfig:s,refreshOnlineList:f,requestFinished:h,loading:d}},Cy=u.defineComponent({__name:"online-list",props:yy(),setup(t){const e=t,{filterOnlineList:n,requestFinished:r,loading:o}=xy({props:e});return{__sfc:!0,props:e,filterOnlineList:n,requestFinished:r,loading:o,PwcEmpty:tn,OnlineItem:_y}}});var Qy=function(){var e=this,n=e._self._c,r=e._self._setupProxy;return n("div",{staticClass:"plv-online-list"},[e._l(r.filterOnlineList,function(o){return n(r.OnlineItem,{key:o.userId,attrs:{user:o}})}),r.requestFinished&&!r.loading&&r.filterOnlineList.length===0?n(r.PwcEmpty):e._e()],2)},ky=[],Sy=j(Cy,Qy,ky);const Ey=Sy.exports,Ty=u.defineComponent({__name:"member-list",setup(t){const e=u.ref(""),n=u.ref("online"),{$t:r}=G(),{manageConfig:o}=_e();return Y1(["banUser","banIp","kickUser"]),{__sfc:!0,keyword:e,memberType:n,$t:r,manageConfig:o,FormSize:_r,PwcInput:On,ChatIconSearch:tc,AttendanceList:Kb,DownloadAttendanceList:ty,BanList:pl,MemberMore:cy,MemberType:dy,KickList:fl,OnlineList:Ey}}});var Iy=function(){var e=this,n=e._self._c,r=e._self._setupProxy;return n("div",{staticClass:"plv-member-list"},[n("div",{staticClass:"plv-member-list__top"},[n(r.PwcInput,{staticClass:"plv-member-list__search",attrs:{size:r.FormSize.Small,placeholder:r.$t("online.searchPlaceholder")},scopedSlots:e._u([{key:"prefix",fn:function(){return[n(r.ChatIconSearch)]},proxy:!0}]),model:{value:r.keyword,callback:function(o){r.keyword=o},expression:"keyword"}}),r.manageConfig.attendanceEnabled?n(r.MemberType,{model:{value:r.memberType,callback:function(o){r.memberType=o},expression:"memberType"}}):e._e(),n(r.MemberMore)],1),n("div",{staticClass:"plv-member-list__content"},[r.memberType==="online"?n(r.OnlineList,{attrs:{keyword:r.keyword}}):n(r.AttendanceList,{attrs:{keyword:r.keyword,"member-type":r.memberType}})],1),r.manageConfig.banUserEnabled||r.manageConfig.banIpEnabled?n(r.BanList):e._e(),r.manageConfig.kickUserEnabled?n(r.KickList):e._e(),r.manageConfig.attendanceEnabled?n(r.DownloadAttendanceList):e._e()],1)},Ly=[],Py=j(Ty,Iy,Ly);const Ay=Py.exports,$y=u.defineComponent({__name:"toping-msg-item",props:{item:k.object().isRequired},emits:["hide","close"],setup(t,{emit:e}){const n=t,{$t:r}=G(),o=u.computed(()=>n.item.chatMsg),{canTopMsg:i,cancelTopMsg:s}=ic({chatMsg:o});return{__sfc:!0,props:n,emit:e,$t:r,chatMsg:o,canTopMsg:i,cancelTopMsg:s,SimpleMsgItem:$r,PwcIconClose:En}}});var Ry=function(){var e=this,n=e._self._c,r=e._self._setupProxy;return n("div",{staticClass:"plv-toping-msg-item"},[n("div",{staticClass:"plv-toping-msg-item__body",class:{"is-show-close":!r.canTopMsg}},[r.canTopMsg?n("div",{staticClass:"plv-toping-msg-item__control"},[n("div",{staticClass:"plv-toping-msg-item__control-actor"},[e._v(e._s(r.$t("manage.topAction"))+e._s(e.item.topActor))]),n("div",{staticClass:"plv-toping-msg-item__control__item",on:{click:r.cancelTopMsg}},[e._v(e._s(r.$t("manage.cancelTop")))]),n("div",{staticClass:"plv-toping-msg-item__control__item",on:{click:function(o){return r.emit("hide")}}},[e._v(e._s(r.$t("manage.hideTop")))])]):n(r.PwcIconClose,{staticClass:"plv-toping-msg-item__close",on:{click:function(o){return r.emit("close")}}}),n(r.SimpleMsgItem,{staticClass:"plv-toping-msg-item__content",attrs:{"chat-msg":e.item.chatMsg,"show-avatar":"",type:"top"}})],1)])},Oy=[],Dy=j($y,Ry,Oy);const zy=Dy.exports,Fy=u.defineComponent({__name:"toping-msg-list",setup(t){const{manageConfig:e}=_e(),{topingMsgs:n}=G1(),{visible:r,show:o,close:i}=vt(!0),s=u.ref(!0);return u.watch(n,()=>{n.value.length&&(o(),s.value=!0)}),{__sfc:!0,manageConfig:e,topingMsgs:n,visible:r,show:o,close:i,canRender:s,PwcSwiper:z1,PwcSwiperSlide:F1,ChatIconTopMsgArrow:Nd,TopingMsgItem:zy}}});var By=function(){var e=this,n=e._self._c,r=e._self._setupProxy;return r.topingMsgs.length&&r.canRender?n("div",{staticClass:"plv-toping-msg-list",style:{height:r.manageConfig.topMsgEnabled?"116px":"90px"}},[r.visible?n(r.PwcSwiper,{staticClass:"plv-toping-msg-list__swiper",attrs:{pagination:{el:".plv-toping-msg-list__indicator",bulletClass:"plv-toping-msg-list__indicator-item",bulletActiveClass:"is-active"}},scopedSlots:e._u([{key:"pagination",fn:function(){return[n("div",{staticClass:"plv-toping-msg-list__indicator",class:{"is-hide":r.topingMsgs.length<=1}})]},proxy:!0}],null,!1,2009145619)},e._l(r.topingMsgs,function(o){return n(r.PwcSwiperSlide,{key:o.id},[n(r.TopingMsgItem,{attrs:{item:o},on:{hide:r.close,close:function(i){r.canRender=!1}}})],1)}),1):e._e(),r.visible?e._e():n("div",{staticClass:"plv-toping-msg-list__arrow",on:{click:r.show}},[n(r.ChatIconTopMsgArrow)],1)],1):e._e()},My=[],Ny=j(Fy,By,My);const Uy=Ny.exports,Hy="PolyvChatUISpecial";K.BanList=pl,K.ChatMessageInputPopup=Tw,K.ChatMessageInputSection=Vw,K.ChatMessageList=n_,K.DonateAnimation=C_,K.DonateSvgaAnimation=u_,K.GlobalVariable=Hy,K.KickList=fl,K.ManagerInputControl=cb,K.MemberList=Ay,K.MessageEffectType=Bn,K.TopingMsgList=Uy,K.ViewerInputControl=ul,K.useChatGlobalProvide=Pf,K.useSendMsg=Ir,Object.defineProperty(K,Symbol.toStringTag,{value:"Module"})});console.log("%c@polyv/chat-ui","background:#409EFF;padding: 2px 6px;border-radius: 3px;color: #fff","[version: 2.1.0-rc-20251023.1]","[buildTime: 2025-10-21 10:21:31]");
1034
+ `),Hw=()=>{const{$t:t}=G(),{manageConfig:e}=_e(),{chatTarget:n}=q(),{toast:r}=xe(),{messageBox:o}=wr(),i=u.computed(()=>e.value.clearMsgEnabled);function s(){return P(this,null,function*(){if(!i.value)return;yield o({message:t("manage.clearChatConfirm"),description:t("manage.clearChatConfirmTips"),confirmType:Pt.Delete,confirmButtonText:t("manage.clear")}).$confirm(),(yield n.manage.clearMsg()).success?r.success(t("manage.clearMsgSuccess")):r.error(t("manage.clearMsgFail"))})}return{canClearMsg:i,clearMsg:s}},jw=u.defineComponent({__name:"more-panel",emits:{close:H()},setup(t,{emit:e}){const{$t:n}=G(),{canClearMsg:r,clearMsg:o}=Hw(),{canOnlySpecialMsg:i,isOnlySpecialMsg:s,toggleOnlySpecialMsg:c}=Jc(),{canAutoTranslate:a,isAutoTranslating:l,toggleAutoTranslate:p}=_c();function f(){p(),e("close")}return{__sfc:!0,emit:e,$t:n,canClearMsg:r,clearMsg:o,canOnlySpecialMsg:i,isOnlySpecialMsg:s,toggleOnlySpecialMsg:c,canAutoTranslate:a,isAutoTranslating:l,toggleAutoTranslate:p,onClickAutoTranslate:f,ChatIconRemove:Od,ChatIconCheckbox:Ed,ChatIconTranslateTwo:nc,ChatIconCancelTranslate:Qd,ChatOriginIconCheckbox:Uw}}});var qw=function(){var e=this,n=e._self._c,r=e._self._setupProxy;return n("div",{staticClass:"plv-chat-message-input-section__more-panel"},[r.canAutoTranslate?n("div",{staticClass:"plv-chat-message-input-section__more-panel--auto-translate",on:{click:r.onClickAutoTranslate}},[r.isAutoTranslating?n(r.ChatIconCancelTranslate):n(r.ChatIconTranslateTwo),n("span",[e._v(e._s(r.isAutoTranslating?r.$t("chat.cancelTranslate"):r.$t("chat.translate")))])],1):e._e(),r.canOnlySpecialMsg?n("div",{staticClass:"plv-chat-message-input-section__more-panel--only-special",on:{click:r.toggleOnlySpecialMsg}},[r.isOnlySpecialMsg?n(r.ChatOriginIconCheckbox):n(r.ChatIconCheckbox),n("span",[e._v(e._s(r.$t("chat.onlySpecial")))])],1):e._e(),r.canClearMsg?n("div",{staticClass:"plv-chat-message-input-section__more-panel--clear",on:{click:r.clearMsg}},[n(r.ChatIconRemove),n("span",[e._v(e._s(r.$t("manage.clearChat")))])],1):e._e(),e._t("more-panel")],2)},Ww=[],Gw=j(jw,qw,Ww);const Yw=Gw.exports,Zw=u.defineComponent({__name:"chat-message-input-section",props:{defaultHeight:k.number.def(140),showMore:k.bool.def(!0)},setup(t){const e=u.ref(),{chatInputDisabled:n,chatInputPlaceholder:r,maxInputTextLength:o,currentQuoteMsg:i,clearCurrentQuoteMsg:s,onSubmitMessage:c,onClickSendImage:a,onSystemMsg:l}=Wr({quoteMsgCallback:()=>{var E;(E=e.value)==null||E.focusInput()}}),{currentMaskText:p}=Tr(),{$t:f}=G(),{messageConfig:h}=ce(),{canChatSwitch:d,chatRoomIsClosed:v,toggleChatSwitch:g}=ll(),{getEmitter:_}=we(),{checkIntercept:m}=_t(),w=u.ref(),{visible:b,togglePanel:x,hidePanel:C}=il([w,"[data-more]"]);function Q(){return P(this,null,function*(){(yield m("more-panel"))||x()})}function S(){_().emit(J.AddMessageSize)}function y(){_().emit(J.CheckScrollFoot)}return{__sfc:!0,msgInputBaseRef:e,chatInputDisabled:n,chatInputPlaceholder:r,maxInputTextLength:o,currentQuoteMsg:i,clearCurrentQuoteMsg:s,onSubmitMessage:c,onClickSendImage:a,onSystemMsg:l,currentMaskText:p,$t:f,messageConfig:h,canChatSwitch:d,chatRoomIsClosed:v,toggleChatSwitch:g,getEmitter:_,checkIntercept:m,morePanelRef:w,moreVisible:b,toggleMorePanel:x,hideMorePanel:C,onClickMore:Q,onClickMsgSize:S,onResize:y,PwcIconClose:En,PwcSwitch:Lf,ChatIconFontSize:Pd,SimpleMsgItem:$r,MessageInputBase:Nw,MorePanel:Yw}}});var Kw=function(){var e=this,n=e._self._c,r=e._self._setupProxy;return n("div",{staticClass:"plv-chat-message-input-section"},[r.currentQuoteMsg?n("div",{staticClass:"plv-chat-message-input-section__quote"},[n(r.SimpleMsgItem,{attrs:{"chat-msg":r.currentQuoteMsg,type:"quote"}}),n(r.PwcIconClose,{staticClass:"plv-chat-message-input-section__quote__close",on:{click:r.clearCurrentQuoteMsg}})],1):e._e(),n(r.MessageInputBase,{ref:"msgInputBaseRef",attrs:{"disabled-input":r.chatInputDisabled,placeholder:r.chatInputPlaceholder,"default-height":e.defaultHeight,"max-input-text-length":r.maxInputTextLength,"show-bottom":!r.currentMaskText},on:{submit:r.onSubmitMessage,"click-send-image":r.onClickSendImage,resize:r.onResize,"system-msg":r.onSystemMsg},scopedSlots:e._u([{key:"panel-suffix",fn:function(){return[n("div",{directives:[{name:"show",rawName:"v-show",value:r.moreVisible,expression:"moreVisible"}],staticClass:"plv-message-input-base__panel--more",attrs:{"data-more":""}},[n(r.MorePanel,{on:{close:r.hideMorePanel},scopedSlots:e._u([{key:"more-panel",fn:function(){return[e._t("more-panel")]},proxy:!0}],null,!0)})],1)]},proxy:!0},r.currentMaskText?{key:"icon-left",fn:function(){return[n("div",{staticClass:"plv-chat-message-input-section__mask-title"},[e._v(e._s(r.$t("input.maskTitle")))])]},proxy:!0}:null,r.currentMaskText?{key:"input",fn:function(){return[n("div",{staticClass:"plv-chat-message-input-section__mask-text"},[e._v(e._s(r.currentMaskText))])]},proxy:!0}:null,{key:"icon-left-suffix",fn:function(){return[r.messageConfig.messageSizeEnabled?n(r.ChatIconFontSize,{staticClass:"plv-message-input-base__icons--msg-size",on:{click:r.onClickMsgSize}}):e._e(),e._t("icon-left-suffix")]},proxy:!0},{key:"icon-right-suffix",fn:function(){return[e._t("icon-right-suffix"),e.showMore?n("div",{staticClass:"plv-message-input-base__icons--more",attrs:{"data-more":""},on:{click:r.onClickMore}},[e._v(" "+e._s(r.$t("chat.more"))+" "),n("span")]):e._e()]},proxy:!0},{key:"bottom-suffix",fn:function(){return[e._t("bottom-suffix"),r.canChatSwitch?n("div",{staticClass:"plv-chat-message-input-section__switch"},[n(r.PwcSwitch,{attrs:{value:r.chatRoomIsClosed,size:"mini"},on:{change:r.toggleChatSwitch}}),n("span",[e._v(e._s(r.$t("manage.closeRoom")))])],1):e._e()]},proxy:!0}],null,!0)})],1)},Xw=[],Jw=j(Zw,Kw,Xw);const Vw=Jw.exports,eb=u.defineComponent({__name:"viewer-input-control",setup(t){const{getEmitter:e}=we(),{chatInputDisabled:n,chatInputPlaceholder:r}=Wr({quotePlaceholder:!1});function o(){n.value||e().emit(J.OpenEmotionFacePicker)}function i(){e().emit(J.FocusInput)}return{__sfc:!0,getEmitter:e,chatInputDisabled:n,chatInputPlaceholder:r,onClickEmotion:o,openInput:i,ChatIconEmotion:ec}}});var tb=function(){var e=this,n=e._self._c,r=e._self._setupProxy;return n("div",{staticClass:"plv-viewer-input-control"},[n("div",{staticClass:"plv-viewer-input-control__body",class:{"is-disabled":r.chatInputDisabled},on:{click:r.openInput}},[n("div",{staticClass:"plv-viewer-input-control__body__text"},[e._v(e._s(r.chatInputPlaceholder))]),e._t("body-suffix",function(){return[n(r.ChatIconEmotion,{staticClass:"plv-viewer-input-control__icon",on:{click:function(o){return o.stopPropagation(),r.onClickEmotion.apply(null,arguments)}}})]})],2),e._t("suffix")],2)},nb=[],rb=j(eb,tb,nb);const ul=rb.exports,ob=u.defineComponent({__name:"manager-input-control",setup(t){const{inputConfig:e}=pt(),{canChatSwitch:n,chatRoomIsClosed:r,toggleChatSwitch:o}=ll(),{onClickSendImage:i}=Wr();return{__sfc:!0,inputConfig:e,canChatSwitch:n,chatRoomIsClosed:r,toggleChatSwitch:o,onClickSendImage:i,ChatIconChatDisabled:kd,ChatIconChatDisabledSuffix:Sd,ChatIconSendImage:zd,ViewerInputControl:ul}}});var ib=function(){var e=this,n=e._self._c,r=e._self._setupProxy;return n(r.ViewerInputControl,{staticClass:"plv-manager-input-control",scopedSlots:e._u([{key:"suffix",fn:function(){return[r.inputConfig.sendImageEnabled?n("div",{staticClass:"plv-viewer-input-control__btn",on:{click:r.onClickSendImage}},[n(r.ChatIconSendImage)],1):e._e(),r.canChatSwitch?n("div",{staticClass:"plv-viewer-input-control__btn plv-manager-input-control__btn--chat-switch",class:{"is-active":r.chatRoomIsClosed},on:{click:r.toggleChatSwitch}},[n(r.ChatIconChatDisabled),n(r.ChatIconChatDisabledSuffix)],1):e._e()]},proxy:!0}])})},sb=[],ab=j(ob,ib,sb);const cb=ab.exports,lb=u.defineComponent({__name:"ban-user-item",props:{item:k.object().isRequired},emits:{"cancel-ban-user":H()},setup(t,{emit:e}){const n=t,r=u.computed(()=>n.item.userId),{$t:o}=G(),{cancelBanUser:i}=yi({targetUserId:r,banActionCallback:()=>{e("cancel-ban-user")}});return{__sfc:!0,props:n,emit:e,targetUserId:r,$t:o,cancelBanUser:i}}});var ub=function(){var e=this,n=e._self._c,r=e._self._setupProxy;return n("div",{staticClass:"plv-ban-user-item"},[n("div",{staticClass:"plv-ban-user-item__content"},[n("div",{staticClass:"plv-ban-user-item__nick"},[e._v(e._s(e.item.nick||"-"))]),n("div",{staticClass:"plv-ban-user-item__info"},[n("span",[e._v("IP: "+e._s(e.item.clientIp||"-"))]),n("span",[e._v("ID: "+e._s(e.item.userId||"-"))])])]),e.item.platformProhibited?n("div",{staticClass:"plv-ban-user-item__btn is-disabled"},[e._v(" "+e._s(r.$t("manage.banPlatformProhibited"))+" ")]):n("div",{staticClass:"plv-ban-user-item__btn",on:{click:r.cancelBanUser}},[e._v(" "+e._s(r.$t("manage.cancelBan"))+" ")])])},pb=[],fb=j(lb,ub,pb);const db=fb.exports,mb=u.defineComponent({__name:"ban-user-list",setup(t){const{chatTarget:e}=q(),{$t:n}=G(),{isEmpty:r,keyword:o,contents:i,scrollRef:s,refreshList:c}=Ga(a=>e.manage.getBannedUserList({pageNumber:a.pageNumber,pageSize:a.pageSize,keyword:a.keyword}),{pageSize:u.ref(50)});return{__sfc:!0,chatTarget:e,$t:n,isEmpty:r,keyword:o,bannedUserList:i,scrollRef:s,refreshList:c,FormSize:_r,PwcInput:On,PwcEmpty:tn,ChatIconSearch:tc,BanUserItem:db}}});var gb=function(){var e=this,n=e._self._c,r=e._self._setupProxy;return n("div",{staticClass:"plv-ban-user-list"},[n("div",{staticClass:"plv-ban-user-list__search"},[n(r.PwcInput,{attrs:{size:r.FormSize.Small,placeholder:r.$t("online.searchPlaceholder")},scopedSlots:e._u([{key:"prefix",fn:function(){return[n(r.ChatIconSearch)]},proxy:!0}]),model:{value:r.keyword,callback:function(o){r.keyword=o},expression:"keyword"}})],1),n("div",{ref:"scrollRef",staticClass:"plv-ban-user-list__content"},[e._l(r.bannedUserList,function(o){return n(r.BanUserItem,{key:o.userId,attrs:{item:o},on:{"cancel-ban-user":r.refreshList}})}),r.isEmpty?n(r.PwcEmpty):e._e()],2)])},hb=[],vb=j(mb,gb,hb);const _b=vb.exports,wb=u.defineComponent({__name:"ban-ip-item",props:{item:k.object().isRequired},emits:{"cancel-ban-ip":H()},setup(t,{emit:e}){const n=t,{$t:r}=G(),o=u.computed(()=>n.item.clientIp),{cancelBanIp:i}=bi({targetIp:o,banActionCallback:()=>{e("cancel-ban-ip")}});return{__sfc:!0,props:n,emit:e,$t:r,targetIp:o,cancelBanIp:i}}});var bb=function(){var e=this,n=e._self._c,r=e._self._setupProxy;return n("div",{staticClass:"plv-ban-ip-item"},[n("div",{staticClass:"plv-ban-ip-item__ip"},[e._v(" "+e._s(r.$t("manage.userIp"))+" "+e._s(e.item.clientIp)+" ")]),n("div",{staticClass:"plv-ban-ip-item__btn",on:{click:r.cancelBanIp}},[e._v(" "+e._s(r.$t("manage.cancelBanIp"))+" ")])])},yb=[],xb=j(wb,bb,yb);const Cb=xb.exports,Qb=u.defineComponent({__name:"ban-ip-list",setup(t){const{chatTarget:e}=q(),n=u.ref([]),{request:r,requestFinished:o,loading:i}=Bo(()=>P(this,null,function*(){const s=yield e.manage.getBannedIpList();n.value=s.contents}));return u.onMounted(()=>{r()}),{__sfc:!0,chatTarget:e,bannedIpList:n,getBannedIpList:r,requestFinished:o,loading:i,BanIpItem:Cb,PwcEmpty:tn}}});var kb=function(){var e=this,n=e._self._c,r=e._self._setupProxy;return n("div",{staticClass:"plv-ban-ip-list"},[e._l(r.bannedIpList,function(o){return n(r.BanIpItem,{key:o.clientIp,attrs:{item:o},on:{"cancel-ban-ip":r.getBannedIpList}})}),r.requestFinished&&!r.loading&&r.bannedIpList.length===0?n(r.PwcEmpty):e._e()],2)},Sb=[],Eb=j(Qb,kb,Sb);const Tb=Eb.exports,Ib=u.defineComponent({__name:"ban-list",setup(t,{expose:e}){const n=u.ref(),{$t:r}=G(),{visible:o,show:i,close:s}=vt();function c(){n.value="user"}function a(){n.value=void 0}return le(J.OpenBanList,i),e({openBanList:i,closeBanList:s}),{__sfc:!0,banType:n,$t:r,visible:o,openBanList:i,closeBanList:s,onAfterShow:c,onAfterLeave:a,PwcPopup:ot,PwcCategorySelect:O7,PwcCategorySelectItem:L7,BanUserList:_b,BanIpList:Tb}}});var Lb=function(){var e=this,n=e._self._c,r=e._self._setupProxy;return n(r.PwcPopup,{staticClass:"plv-ban-list",attrs:{title:r.$t("manage.banList")},on:{"after-enter":r.onAfterShow,"after-leave":r.onAfterLeave},model:{value:r.visible,callback:function(o){r.visible=o},expression:"visible"}},[n("div",{staticClass:"plv-ban-list__content"},[n("div",{staticClass:"plv-ban-list__top"},[n(r.PwcCategorySelect,{model:{value:r.banType,callback:function(o){r.banType=o},expression:"banType"}},[n(r.PwcCategorySelectItem,{attrs:{"category-value":"user"}},[e._v(e._s(r.$t("manage.banUserTitle")))]),n(r.PwcCategorySelectItem,{attrs:{"category-value":"ip"}},[e._v(e._s(r.$t("manage.banIpTitle")))])],1)],1),r.banType==="user"?n(r.BanUserList):e._e(),r.banType==="ip"?n(r.BanIpList):e._e()],1)])},Pb=[],Ab=j(Ib,Lb,Pb);const pl=Ab.exports,$b=u.defineComponent({__name:"kick-user-item",props:{item:k.object().isRequired},emits:{"cancel-kick-user":H()},setup(t,{emit:e}){const n=t,r=u.computed(()=>n.item.userId),{$t:o}=G(),{cancelKickUser:i}=xi({targetUserId:r,kickActionCallback:()=>{e("cancel-kick-user")}});return{__sfc:!0,props:n,emit:e,targetUserId:r,$t:o,cancelKickUser:i}}});var Rb=function(){var e=this,n=e._self._c,r=e._self._setupProxy;return n("div",{staticClass:"plv-kick-user-item"},[n("div",{staticClass:"plv-kick-user-item__content"},[n("div",{staticClass:"plv-kick-user-item__nick"},[e._v(e._s(e.item.nick||"-"))]),n("div",{staticClass:"plv-kick-user-item__info"},[n("span",[e._v("IP: "+e._s(e.item.clientIp||"-"))]),n("span",[e._v("ID: "+e._s(e.item.userId||"-"))])])]),e.item.platformProhibited?n("div",{staticClass:"plv-kick-user-item__btn is-disabled"},[e._v(" "+e._s(r.$t("manage.kickPlatformProhibited"))+" ")]):n("div",{staticClass:"plv-kick-user-item__btn",on:{click:r.cancelKickUser}},[e._v(" "+e._s(r.$t("manage.cancelKick"))+" ")])])},Ob=[],Db=j($b,Rb,Ob);const zb=Db.exports,Fb=u.defineComponent({__name:"kick-list",setup(t,{expose:e}){const{$t:n}=G(),{visible:r,show:o,close:i}=vt(),{chatTarget:s}=q();le(J.OpenKickList,o);const c=u.ref([]),{request:a,requestFinished:l,loading:p}=Bo(()=>P(this,null,function*(){const f=yield s.manage.getKickedUserList();c.value=f.contents}));return e({openKickList:o,closeKickList:i}),{__sfc:!0,$t:n,visible:r,openKickList:o,closeKickList:i,chatTarget:s,kickedUserList:c,getKickedUserList:a,requestFinished:l,loading:p,PwcEmpty:tn,PwcPopup:ot,KickUserItem:zb}}});var Bb=function(){var e=this,n=e._self._c,r=e._self._setupProxy;return n(r.PwcPopup,{staticClass:"plv-kick-list",attrs:{title:r.$t("manage.kickList")},on:{"after-enter":r.getKickedUserList},model:{value:r.visible,callback:function(o){r.visible=o},expression:"visible"}},[n("div",{staticClass:"plv-kick-list__content"},[e._l(r.kickedUserList,function(o){return n(r.KickUserItem,{key:o.userId,attrs:{item:o},on:{"cancel-kick-user":r.getKickedUserList}})}),r.requestFinished&&!r.loading&&r.kickedUserList.length===0?n(r.PwcEmpty):e._e()],2)])},Mb=[],Nb=j(Fb,Bb,Mb);const fl=Nb.exports,Ub=u.defineComponent({__name:"user-control",props:{user:k.object().isRequired},setup(t){const e=t,{isMobile:n}=ae(),{user:r}=ut(e),{userId:o,userClientIp:i}=Er(r),{manageConfig:s}=_e(),{actionSheet:c}=c1(),a=wi(),{controlItems:l}=a;pe(s.value.banUserEnabled,()=>yi({targetUserId:o,targetUser:r,controlContext:a})),pe(s.value.banIpEnabled,()=>bi({targetIp:i,targetUser:r,controlContext:a})),pe(s.value.kickUserEnabled,()=>xi({targetUserId:o,targetUser:r,controlContext:a})),pe(s.value.askUserEnabled,()=>X1({targetUser:r,controlContext:a}));function p(){return P(this,null,function*(){if(l.value.length===0)return;const f=yield c({actions:l.value.map(h=>{var d,v;return se(D({},h),{hidden:!1,disabled:(d=h.disabled)==null?void 0:d.call(h),disabledTip:(v=h.disabledTip)==null?void 0:v.call(h),name:h.text(),value:h.controlType})})});f&&f.clickCallback()})}return{__sfc:!0,props:e,isMobile:n,user:r,userId:o,userClientIp:i,manageConfig:s,actionSheet:c,controlContext:a,controlItems:l,onClickControl:p,PwcDropdown:ni,PwcDropdownItem:oi,PwcDropdownMenu:ri,ChatIconThreeDot:Md}}});var Hb=function(){var e=this,n=e._self._c,r=e._self._setupProxy;return r.controlItems.length>0?n("span",[r.isMobile?n(r.ChatIconThreeDot,{staticClass:"plv-online-item__control",on:{click:r.onClickControl}}):n(r.PwcDropdown,{attrs:{"show-arrow":!1},scopedSlots:e._u([{key:"dropdown",fn:function(){return[n(r.PwcDropdownMenu,e._l(r.controlItems,function(o){return n(r.PwcDropdownItem,{key:o.controlType,on:{click:o.clickCallback}},[e._v(" "+e._s(o.text())+" ")])}),1)]},proxy:!0}],null,!1,3793087375)},[n(r.ChatIconThreeDot,{staticClass:"plv-online-item__control"})],1)],1):e._e()},jb=[],qb=j(Ub,Hb,jb);const dl=qb.exports,Wb=u.defineComponent({__name:"attendance-list",props:{keyword:k.string,memberType:k.string},setup(t){const e=t,{chatTarget:n}=q(),r=u.ref([]),o=u.ref(!1),i=u.ref(!1);function s(p){return P(this,null,function*(){const f=yield n.online.getAttendanceList({keyword:e.keyword,count:10,searchType:e.memberType==="attendance"?"attendance":"absence",score:p});p?r.value=[...r.value,...f.list]:r.value=f.list,o.value=f.list.length===0,o.value||(yield l())===!1&&c(),i.value=!0})}function c(){if(o.value)return;const p=r.value[r.value.length-1];p&&!e.keyword&&!o.value&&s(p.score)}const{scrollRef:a,hasVerticalScrollbar:l}=Wa({nextCallback:()=>{c()}});return u.watch(()=>[e.keyword,e.memberType],()=>{i.value=!1,o.value=!1,s()},{immediate:!0}),{__sfc:!0,props:e,chatTarget:n,list:r,isNoMore:o,isFinished:i,getAttendanceList:s,getNext:c,scrollRef:a,hasVerticalScrollbar:l,PwcEmpty:tn,UserControl:dl}}});var Gb=function(){var e=this,n=e._self._c,r=e._self._setupProxy;return n("div",{ref:"scrollRef",staticClass:"plv-attendance-list"},[e._l(r.list,function(o){return n("div",{key:o.userId,staticClass:"plv-attendance-item"},[o.pic?n("img",{staticClass:"plv-attendance-item__avatar",attrs:{src:o.pic}}):e._e(),n("div",{staticClass:"plv-attendance-item__nick"},[e._v(e._s(o.nick))]),n("div",{staticStyle:{"margin-left":"auto"}}),e.memberType==="attendance"?n(r.UserControl,{attrs:{user:o}}):e._e()],1)}),r.isFinished&&r.list.length===0?n(r.PwcEmpty):e._e()],2)},Yb=[],Zb=j(Wb,Gb,Yb);const Kb=Zb.exports,Xb=u.defineComponent({__name:"download-attendance-list",setup(t){const{chatTarget:e}=q(),{$t:n}=G(),r=u.ref();function o(){return P(this,null,function*(){var s;yield e.download.exportAttendanceList(),(s=r.value)==null||s.openRecord()})}const i={refId:"attendance-export",getRecord:s=>e.download.getAttendanceDownloadRecord({pageNumber:s.pageNumber,pageSize:s.pageSize})};return le(J.DownloadAttendanceList,o),{__sfc:!0,chatTarget:e,$t:n,recordRef:r,downloadAttendanceList:o,controller:i,PwcDataExportRecord:g6}}});var Jb=function(){var e=this,n=e._self._c,r=e._self._setupProxy;return n(r.PwcDataExportRecord,{ref:"recordRef",attrs:{controller:r.controller,title:r.$t("manage.downloadAttendanceList")}})},Vb=[],ey=j(Xb,Jb,Vb);const ty=ey.exports,ny=()=>{const{chatTarget:t}=q(),{openDataExportRecord:e}=f1();function n(){return P(this,null,function*(){yield t.download.exportOnlineList();const r=t.download.getRefId();e(r)})}return{downloadOnline:n}},ry=()=>{const{manageConfig:t}=_e(),{chatTarget:e}=q(),{liveStatus:n}=oc(),r=u.computed(()=>n.value==="live"&&t.value.whiteListEnabled);function o(){return P(this,null,function*(){yield e.download.exportWhiteList()})}return{canDownloadWhiteList:r,downloadWhiteList:o}},oy=u.defineComponent({__name:"member-more",setup(t){const{$t:e}=G(),{isMobile:n}=ae(),{manageConfig:r}=_e(),{getEmitter:o}=we(),i=wi(),{controlItems:s}=i;return pe(r.value.banUserEnabled||r.value.banIpEnabled,()=>{i.addControlItem({controlType:"banList",text:()=>e("manage.banList"),clickCallback:()=>{o().emit(J.OpenBanList)}})}),pe(r.value.kickUserEnabled,()=>{i.addControlItem({controlType:"kickList",text:()=>e("manage.kickList"),clickCallback:()=>{o().emit(J.OpenKickList)}})}),pe(r.value.whiteListEnabled,()=>{const{canDownloadWhiteList:c,downloadWhiteList:a}=ry();i.addControlItem({controlType:"downloadWhiteList",hidden:()=>!c.value,text:()=>e("manage.downloadWhiteList"),clickCallback:a})}),pe(r.value.downloadOnlineListEnabled,()=>{const{downloadOnline:c}=ny();i.addControlItem({controlType:"downloadOnline",text:()=>e("manage.downloadOnlineList"),clickCallback:c})}),pe(r.value.attendanceEnabled,()=>{i.addControlItem({controlType:"downloadAttendanceList",text:()=>e("manage.downloadAttendanceList"),clickCallback:()=>{o().emit(J.DownloadAttendanceList)}})}),{__sfc:!0,$t:e,isMobile:n,manageConfig:r,getEmitter:o,controlContext:i,controlItems:s,PwcDropdown:ni,PwcDropdownItem:oi,PwcDropdownMenu:ri}}});var iy=function(){var e=this,n=e._self._c,r=e._self._setupProxy;return r.controlItems.length?n(r.PwcDropdown,{staticClass:"plv-member-more",class:{"is-mobile":r.isMobile},attrs:{"reference-class":"plv-member-more__reference"},scopedSlots:e._u([{key:"dropdown",fn:function(){return[n(r.PwcDropdownMenu,e._l(r.controlItems,function(o){return n(r.PwcDropdownItem,{key:o.controlType,on:{click:o.clickCallback}},[e._v(" "+e._s(o.text())+" ")])}),1)]},proxy:!0}],null,!1,3793087375)},[e._v(" "+e._s(r.$t("chat.more"))+" ")]):e._e()},sy=[],ay=j(oy,iy,sy);const cy=ay.exports,ly=u.defineComponent({__name:"member-type",props:{[k.modelValueKey]:k.string},setup(t){const e=t,{$t:n}=G(),{modelValue:r,updateModelValue:o}=Ge(e),i=u.computed(()=>{switch(r.value){case"online":return n("online.all");case"attendance":return n("online.attendance");case"absence":return n("online.absence")}});function s(c){o(c)}return{__sfc:!0,props:e,$t:n,modelValue:r,updateModelValue:o,currentTypeText:i,onCommand:s,PwcDropdown:ni,PwcDropdownItem:oi,PwcDropdownMenu:ri}}});var uy=function(){var e=this,n=e._self._c,r=e._self._setupProxy;return n(r.PwcDropdown,{staticClass:"plv-member-type",attrs:{placement:"bottom","reference-class":"plv-member-type__reference"},on:{command:r.onCommand},scopedSlots:e._u([{key:"dropdown",fn:function(){return[n(r.PwcDropdownMenu,[n(r.PwcDropdownItem,{attrs:{command:"online"}},[e._v(" "+e._s(r.$t("online.all"))+" ")]),n(r.PwcDropdownItem,{attrs:{command:"attendance"}},[e._v(" "+e._s(r.$t("online.attendance"))+" ")]),n(r.PwcDropdownItem,{attrs:{command:"absence"}},[e._v(" "+e._s(r.$t("online.absence"))+" ")])],1)]},proxy:!0}])},[e._v(" "+e._s(r.currentTypeText)+" ")])},py=[],fy=j(ly,uy,py);const dy=fy.exports,my=u.defineComponent({__name:"online-item",props:{user:k.object().isRequired},setup(t){const e=t,{user:n}=ut(e),{$t:r}=G(),{userAvatar:o,userNick:i,userActor:s,userType:c,showUserActor:a,isSelf:l}=Er(n);return{__sfc:!0,props:e,user:n,$t:r,userAvatar:o,userNick:i,userActor:s,userType:c,showUserActor:a,isSelf:l,msgUserActor:vi,UserControl:dl}}});var gy=function(){var e=this,n=e._self._c,r=e._self._setupProxy;return n("div",{staticClass:"plv-online-item"},[r.userAvatar?n("img",{staticClass:"plv-online-item__avatar",attrs:{src:r.userAvatar}}):e._e(),n("div",{staticClass:"plv-online-item__nick"},[e._v(e._s(r.userNick))]),r.isSelf?n("span",[e._v("("+e._s(r.$t("online.me"))+")")]):e._e(),r.showUserActor?n(r.msgUserActor,{staticClass:"plv-online-item__actor",attrs:{actor:r.userActor,"user-type":r.userType}}):e._e(),n("div",{staticStyle:{"margin-left":"auto"}}),n(r.UserControl,{attrs:{user:r.user}})],1)},hy=[],vy=j(my,gy,hy);const _y=vy.exports,wy={requestCount:200,onlineCountCallback:()=>{}},by=()=>{const t=it();return{onlineConfig:u.computed(()=>{let n={};return t.getOnlineConfig&&(n=t.getOnlineConfig()),D(D({},wy),n)})}},yy=()=>({keyword:k.string}),xy=t=>{const{props:e}=t,{chatTarget:n,SocketUserType:r,getUserId:o}=q(),{onlineConfig:i}=by(),{manageConfig:s}=_e(),{getEmitter:c}=we(),a=u.ref([]),l=u.computed(()=>{const _=a.value,m={[r.Teacher]:4,[r.Guest]:3,[r.Manager]:2,[r.Assistant]:1},w=b=>b.userId===o()?100:m[b.userType]||0;return _.sort((b,x)=>{const C=w(b);return w(x)-C})}),p=u.ref(0),{request:f,requestFinished:h,loading:d}=Bo(()=>P(this,null,function*(){const _=yield n.online.getOnlineList({count:i.value.requestCount,keyword:e.keyword,getBanStatus:s.value.banUserEnabled});a.value=_.onlineList,_.total!==p.value&&i.value.onlineCountCallback&&i.value.onlineCountCallback(_.total),p.value=_.total,c().emit(J.ProcessUserBanned,{userList:_.onlineList})})),{startInterval:v}=yr(f,10*1e3);u.onMounted(()=>{f(),v()});const g=u.ref(!1);return u.watch(()=>e.keyword,nl(()=>P(this,null,function*(){if(!g.value){g.value=!0,a.value=[];try{yield f()}finally{g.value=!1}}}),300)),{onlineList:a,filterOnlineList:l,total:p,manageConfig:s,refreshOnlineList:f,requestFinished:h,loading:d}},Cy=u.defineComponent({__name:"online-list",props:yy(),setup(t){const e=t,{filterOnlineList:n,requestFinished:r,loading:o}=xy({props:e});return{__sfc:!0,props:e,filterOnlineList:n,requestFinished:r,loading:o,PwcEmpty:tn,OnlineItem:_y}}});var Qy=function(){var e=this,n=e._self._c,r=e._self._setupProxy;return n("div",{staticClass:"plv-online-list"},[e._l(r.filterOnlineList,function(o){return n(r.OnlineItem,{key:o.userId,attrs:{user:o}})}),r.requestFinished&&!r.loading&&r.filterOnlineList.length===0?n(r.PwcEmpty):e._e()],2)},ky=[],Sy=j(Cy,Qy,ky);const Ey=Sy.exports,Ty=u.defineComponent({__name:"member-list",setup(t){const e=u.ref(""),n=u.ref("online"),{$t:r}=G(),{manageConfig:o}=_e();return Y1(["banUser","banIp","kickUser"]),{__sfc:!0,keyword:e,memberType:n,$t:r,manageConfig:o,FormSize:_r,PwcInput:On,ChatIconSearch:tc,AttendanceList:Kb,DownloadAttendanceList:ty,BanList:pl,MemberMore:cy,MemberType:dy,KickList:fl,OnlineList:Ey}}});var Iy=function(){var e=this,n=e._self._c,r=e._self._setupProxy;return n("div",{staticClass:"plv-member-list"},[n("div",{staticClass:"plv-member-list__top"},[n(r.PwcInput,{staticClass:"plv-member-list__search",attrs:{size:r.FormSize.Small,placeholder:r.$t("online.searchPlaceholder")},scopedSlots:e._u([{key:"prefix",fn:function(){return[n(r.ChatIconSearch)]},proxy:!0}]),model:{value:r.keyword,callback:function(o){r.keyword=o},expression:"keyword"}}),r.manageConfig.attendanceEnabled?n(r.MemberType,{model:{value:r.memberType,callback:function(o){r.memberType=o},expression:"memberType"}}):e._e(),n(r.MemberMore)],1),n("div",{staticClass:"plv-member-list__content"},[r.memberType==="online"?n(r.OnlineList,{attrs:{keyword:r.keyword}}):n(r.AttendanceList,{attrs:{keyword:r.keyword,"member-type":r.memberType}})],1),r.manageConfig.banUserEnabled||r.manageConfig.banIpEnabled?n(r.BanList):e._e(),r.manageConfig.kickUserEnabled?n(r.KickList):e._e(),r.manageConfig.attendanceEnabled?n(r.DownloadAttendanceList):e._e()],1)},Ly=[],Py=j(Ty,Iy,Ly);const Ay=Py.exports,$y=u.defineComponent({__name:"toping-msg-item",props:{item:k.object().isRequired},emits:["hide","close"],setup(t,{emit:e}){const n=t,{$t:r}=G(),o=u.computed(()=>n.item.chatMsg),{canTopMsg:i,cancelTopMsg:s}=ic({chatMsg:o});return{__sfc:!0,props:n,emit:e,$t:r,chatMsg:o,canTopMsg:i,cancelTopMsg:s,SimpleMsgItem:$r,PwcIconClose:En}}});var Ry=function(){var e=this,n=e._self._c,r=e._self._setupProxy;return n("div",{staticClass:"plv-toping-msg-item"},[n("div",{staticClass:"plv-toping-msg-item__body",class:{"is-show-close":!r.canTopMsg}},[r.canTopMsg?n("div",{staticClass:"plv-toping-msg-item__control"},[n("div",{staticClass:"plv-toping-msg-item__control-actor"},[e._v(e._s(r.$t("manage.topAction"))+e._s(e.item.topActor))]),n("div",{staticClass:"plv-toping-msg-item__control__item",on:{click:r.cancelTopMsg}},[e._v(e._s(r.$t("manage.cancelTop")))]),n("div",{staticClass:"plv-toping-msg-item__control__item",on:{click:function(o){return r.emit("hide")}}},[e._v(e._s(r.$t("manage.hideTop")))])]):n(r.PwcIconClose,{staticClass:"plv-toping-msg-item__close",on:{click:function(o){return r.emit("close")}}}),n(r.SimpleMsgItem,{staticClass:"plv-toping-msg-item__content",attrs:{"chat-msg":e.item.chatMsg,"show-avatar":"",type:"top"}})],1)])},Oy=[],Dy=j($y,Ry,Oy);const zy=Dy.exports,Fy=u.defineComponent({__name:"toping-msg-list",setup(t){const{manageConfig:e}=_e(),{topingMsgs:n}=G1(),{visible:r,show:o,close:i}=vt(!0),s=u.ref(!0);return u.watch(n,()=>{n.value.length&&(o(),s.value=!0)}),{__sfc:!0,manageConfig:e,topingMsgs:n,visible:r,show:o,close:i,canRender:s,PwcSwiper:z1,PwcSwiperSlide:F1,ChatIconTopMsgArrow:Nd,TopingMsgItem:zy}}});var By=function(){var e=this,n=e._self._c,r=e._self._setupProxy;return r.topingMsgs.length&&r.canRender?n("div",{staticClass:"plv-toping-msg-list",style:{height:r.manageConfig.topMsgEnabled?"116px":"90px"}},[r.visible?n(r.PwcSwiper,{staticClass:"plv-toping-msg-list__swiper",attrs:{pagination:{el:".plv-toping-msg-list__indicator",bulletClass:"plv-toping-msg-list__indicator-item",bulletActiveClass:"is-active"}},scopedSlots:e._u([{key:"pagination",fn:function(){return[n("div",{staticClass:"plv-toping-msg-list__indicator",class:{"is-hide":r.topingMsgs.length<=1}})]},proxy:!0}],null,!1,2009145619)},e._l(r.topingMsgs,function(o){return n(r.PwcSwiperSlide,{key:o.id},[n(r.TopingMsgItem,{attrs:{item:o},on:{hide:r.close,close:function(i){r.canRender=!1}}})],1)}),1):e._e(),r.visible?e._e():n("div",{staticClass:"plv-toping-msg-list__arrow",on:{click:r.show}},[n(r.ChatIconTopMsgArrow)],1)],1):e._e()},My=[],Ny=j(Fy,By,My);const Uy=Ny.exports,Hy="PolyvChatUISpecial";K.BanList=pl,K.ChatMessageInputPopup=Tw,K.ChatMessageInputSection=Vw,K.ChatMessageList=n_,K.DonateAnimation=C_,K.DonateSvgaAnimation=u_,K.GlobalVariable=Hy,K.KickList=fl,K.ManagerInputControl=cb,K.MemberList=Ay,K.MessageEffectType=Bn,K.TopingMsgList=Uy,K.ViewerInputControl=ul,K.useChatGlobalProvide=Pf,K.useSendMsg=Ir,Object.defineProperty(K,Symbol.toStringTag,{value:"Module"})});console.log("%c@polyv/chat-ui","background:#409EFF;padding: 2px 6px;border-radius: 3px;color: #fff","[version: 2.1.0-rc-20251023.2]","[buildTime: 2025-10-22 01:22:34]");