/*! VERSION | 10.78.9 */"use strict";(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[4732],{4359:(e,t,a)=>{a.d(t,{Z:()=>h});var s=a(27378),i=a(48204),o=a(73545),n=a(62668),l=a(83550),r=a(99382),m=a(30486),c=a(29413),u=a(59593);let d=(0,s.memo)(({isTickedPaid:e,onClick:t})=>e?s.createElement(c.Z,{img:"check-1",className:"ticket-paid"}):s.createElement(r.ZP,{style:"default-filled",className:"group-show-announce-join",onClick:t},s.createElement(m.Z,{messageId:"button.sendTip"}))),p={emitButtonEvent:l.d2,showTipModalForGroupShow:n.oC,toggleGroupShowMobileDropdown:l.wp},h=(0,i.$j)(e=>({groupRate:(0,o.XZ)(e),isGroupShowSlotReserved:(0,o.r_)(e),isTicketShow:(0,o.yY)(e),isTicketShowPaidFromState:(0,o.Ke)(e),joinedUsers:(0,o.xO)(e),modelId:(0,o.n5)(e),ticketRate:(0,o.ug)(e),topic:(0,o.cj)(e)}),p)(({emitButtonEvent:e,groupRate:t,isGroupShowSlotReserved:a,isTicketShow:i,isTicketShowPaid:o,isTicketShowPaidFromState:n,shouldHideControls:l=!1,showTipModalForGroupShow:p,ticketRate:h,toggleGroupShowMobileDropdown:v,topic:E})=>{let g=(0,s.useCallback)(t=>{t.stopPropagation(),e(u.FO.GROUP_SHOW_JOIN)},[e]),_=(0,s.useCallback)(e=>{e.stopPropagation(),p(),v(!1)},[p,v]);if(!E&&l)return null;let b=a?"viewCam.groupShowAnnouncement.reservedSlot":"viewCam.groupShowAnnouncement.reserveSlot",A=null!=o?o:n;return s.createElement(s.Fragment,null,E&&s.createElement("div",{className:"group-show-announce-topic"},s.createElement("span",{className:"group-show-announce-topic-label"},s.createElement(m.Z,{messageId:"topic"}),": "),s.createElement("span",null,E)),!l&&s.createElement("div",{className:"group-show-announce-controls"},s.createElement("div",{className:"group-show-announce-left"},i?s.createElement(d,{isTickedPaid:A,onClick:_}):s.createElement(r.ZP,{style:a?"default-filled":"login",className:"group-show-announce-join",onClick:g},a&&s.createElement(c.Z,{img:"check-1"}),s.createElement(m.Z,{messageId:b}))),s.createElement("div",{className:"group-show-announce-right"},s.createElement(m.Z,{messageId:function({isTicketShow:e,isTickedPaid:t}){return e?t?"viewCam.ticketShowAnnouncement.ticketPaid":"viewCam.ticketShowAnnouncement.ticketRate":"viewCam.groupShowAnnouncement.rate"}({isTicketShow:i,isTickedPaid:A}),elements:{ticketRate:i?s.createElement("span",{className:"group-show-announce-rate"}):null,groupRate:i?null:s.createElement("div",{className:"group-show-announce-rate"})},parameters:{rate:i?h:t},choiceParameter:i?void 0:"rate"}))))})},13696:(e,t,a)=>{a.d(t,{Zv:()=>R,v0:()=>r,DB:()=>u.Z,x5:()=>n,ik:()=>c,_N:()=>P,nr:()=>N,mu:()=>C,Cm:()=>I,oq:()=>y,rA:()=>T});var s=a(27378),i=a(99748);let o=s.createContext(null),{Provider:n}=o,l=s.memo(({children:e,className:t,background:a,leftLineColor:n,onClick:l,afterBodyElem:r,tag:m="div",...c})=>{let u=(0,s.useContext)(o);return"div"===m?s.createElement("div",{onClick:l,"data-message-id":null!=u?u:c["data-message-id"],className:(0,i.AK)("message","message-base",t,{[`m-bg-${a}`]:a&&"default"!==a,[`m-line-${n}`]:n&&"none"!==n}),"data-username":c["data-username"],"data-amount":c["data-amount"],"data-publictip":c["data-publictip"],"data-inroom":c["data-inroom"],"data-lv-tag":c["data-lv-tag"]},s.createElement("div",{className:"message-body"},e),r):s.createElement("span",{onClick:l,"data-message-id":null!=u?u:c["data-message-id"],className:(0,i.AK)("message","message-base",t,{[`m-bg-${a}`]:a&&"default"!==a,[`m-line-${n}`]:n&&"none"!==n}),"data-username":c["data-username"],"data-amount":c["data-amount"],"data-publictip":c["data-publictip"],"data-inroom":c["data-inroom"],"data-lv-tag":c["data-lv-tag"]},s.createElement("div",{className:"message-body"},e),r)}),r=l;var m=a(78983);let c=({time:e})=>e?s.createElement("span",{className:"message-timestamp"},(0,m.mr)(e,m.TIME_FORMATS.TIME)):null;var u=a(25842),d=a(7474),p=a(49196),h=a(18775),v=a(37051),E=a(63345),g=a(59593),_=a(56692);class b extends s.Component{componentWillUnmount(){this.clearPopupTimeouts()}renderPopup(){let{isKnight:e,isMyKnight:t,isShowMuteAndBanButtonsInPopup:a,isShowKnightButtonInPopup:i,banReportSource:o}=this.props,{isPopupVisible:n}=this.state;return n?s.createElement(_.ZP,{key:"popup",modelId:this.props.modelId,onMouseLeave:this.popupMouseLeaveHandler,onMouseMove:this.popupMouseMoveHandler,isKing:this.props.isKing,isKnight:e,isMyKnight:t,isOwnShow:!0,targetId:this.uid,user:this.props.user,isShowKnightButton:i,isShowMuteAndBanButtons:a,sendPmShouldOpen:"hybrid",banReportSource:o}):null}render(){let{fanClubTierTerm:e,isKing:t,isKnight:a,isMyKnight:i,isColored:o,isAnonymous:n,isPopupEnabled:l,isMobileRelativeNote:r=!0,modelId:m,placeId:c,user:u,isMyRecorder:p,className:h}=this.props,E=l&&m!==u.id&&!g.BROWSER_CAPABILITIES.touch,_={};return"fanClubTier"in this.props&&(_.fanClubTier=this.props.fanClubTier),_.fanClubTierTerm=e,s.createElement("div",{className:"view-cam-username",id:this.uid,onClick:this.onClickHandler},s.createElement(d.Z,{isAdminIconVisible:!0,isGenderIconHidden:!0,isNoteIndicatorVisible:!0,isIconVisible:!0,isVrIconVisible:!0,isKnight:a,isKing:t,isMyKnight:i,isColored:o,isAnonymous:n,isMobileRelativeNote:r,isLevelLeagueStatusVisible:!1,modelId:m,placeId:c,size:14,user:u,onMouseEnter:E?this.mouseEnterHandler:v.Z,onMouseLeave:E?this.mouseLeaveHandler:v.Z,isMyRecorder:p,className:h,..._}),this.renderPopup())}constructor(e){super(e),(0,h._)(this,"showPopupTimeout",void 0),(0,h._)(this,"hidePopupTimeout",void 0),(0,h._)(this,"uid",(0,E.Z)("view_cam_username")),(0,h._)(this,"clearPopupTimeouts",()=>{this.showPopupTimeout&&clearTimeout(this.showPopupTimeout),this.hidePopupTimeout&&clearTimeout(this.hidePopupTimeout)}),(0,h._)(this,"showPopupNow",()=>{this.setState({isPopupVisible:!0})}),(0,h._)(this,"hidePopupNow",()=>{this.setState({isPopupVisible:!1})}),(0,h._)(this,"showPopupDelayed",()=>{this.clearPopupTimeouts(),this.showPopupTimeout=window.setTimeout(this.showPopupNow,300)}),(0,h._)(this,"hidePopupDelayed",()=>{this.clearPopupTimeouts(),this.hidePopupTimeout=window.setTimeout(this.hidePopupNow,300)}),(0,h._)(this,"mouseEnterHandler",()=>{this.hidePopupNow(),this.clearPopupTimeouts(),this.showPopupDelayed()}),(0,h._)(this,"mouseLeaveHandler",()=>{this.hidePopupDelayed()}),(0,h._)(this,"popupMouseLeaveHandler",()=>{this.hidePopupDelayed()}),(0,h._)(this,"popupMouseMoveHandler",()=>{this.clearPopupTimeouts()}),(0,h._)(this,"onClickHandler",()=>{let{user:e,onClick:t=v.Z}=this.props;t(e)}),this.state={isPopupVisible:!1}}}function A(e){let t=({className:t,...a})=>{let o={className:(0,i.AK)(t,"message-username")};return s.createElement(e,{shouldShowReportButton:!0,...a,...o,isMobileRelativeNote:!1})};return t.displayName=`withChatClassName(${e.displayName||e.name})`,t}let N=A(p.Z),P=A(d.Z),C=A(b),y=({tableData:e,className:t})=>s.createElement(r,{className:(0,i.AK)("system-table-message",t),background:"system"},e.map(({reactKey:e,key:t,value:a})=>s.createElement("div",{className:"system-table-message-row",key:e},s.createElement("div",{className:"system-table-message-key"},t),s.createElement("div",null,a))));var w=a(29413);let T=({type:e,leftLineColor:t,children:a,className:o,icon:n})=>s.createElement(r,{leftLineColor:t,className:(0,i.AK)("system-text-message",`system-text-message-${e}`,o),background:"error"===e?"error":"system"},n&&"announce"===e&&s.createElement(w.Z,{className:"system-text-message__icon",img:n}),s.createElement("span",{className:"system-text-message__body"},a)),I=({children:e,isStartSeparator:t,className:a,...o})=>s.createElement(r,{"data-message-id":o["data-message-id"],className:(0,i.AK)("separator-message",a,{start:t})},e);var S=a(4359);let R=({className:e,withIcon:t,title:a,withBody:o,shouldHideControls:n,isTicketShowPaid:l})=>s.createElement(r,{className:(0,i.AK)("group-show-message",e),background:"goal",leftLineColor:"group-show-announce"},s.createElement("div",{className:"group-show-message-title"},t&&s.createElement(w.Z,{className:"group-show-message-icon",img:"group"}),a),o&&s.createElement("div",{className:"group-show-message-body"},s.createElement(S.Z,{shouldHideControls:n,isTicketShowPaid:l})))},80352:(e,t,a)=>{a.d(t,{Z:()=>l});var s=a(27378),i=a(98846),o=a(86766);let n=(0,i.n)({resolved:{},chunkName:()=>"VoicePlayerComponent",isReady(e){let t=this.resolve(e);return!0===this.resolved[t]&&!!a.m[t]},importAsync:()=>(0,i.J)(()=>a.e(6526).then(a.bind(a,96493))),requireAsync(e){let t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){let t=this.resolve(e);return a(t)},resolve:()=>96493},{fallback:s.createElement(o.An,null)}),l=n},86766:(e,t,a)=>{a.d(t,{vB:()=>h,At:()=>m,An:()=>p,CU:()=>_});var s=a(64553),i=a(86570),o=a(27378),n=a(29413),l=a(99748);function r({iconImg:e,iconSize:t}){return"stop-rect"===e?o.createElement("div",{className:"voice-player-button__stop-rect",style:{width:`${t}px`,height:`${t}px`}}):o.createElement(n.Z,{size:t,img:e})}let m=({disabled:e,iconImg:t,id:a,isLoading:n=!1,isMessage:m,onClick:c,size:u="big"})=>{let d="small"===u,p=d?16:20;return o.createElement("div",{className:(0,l.AK)("voice-player-button",{"voice-player-button--small":d,"voice-player-button__disabled":e})},o.createElement(s.Z,{className:(0,l.AK)("voice-player-button__round",{"voice-player-button__round--small":d,"voice-player-button__round--in-message":m}),disabled:e,id:a,onClick:e=>{e.stopPropagation(),c()}},n?o.createElement(i.Z,{className:"voice-player-button__loader",size:p}):o.createElement(r,{iconImg:t,iconSize:p})))};var c=a(41950),u=a(78983);let d=(0,o.memo)(({duration:e=0,isLoading:t=!1,onPlayClick:a=()=>!1,onPlayerClick:s=()=>!1})=>o.createElement("div",{className:"voice-player-loader",onClick:e=>{e.stopPropagation(),s()}},o.createElement("div",{className:"voice-player-loader__play"},o.createElement(c.At,{iconImg:"play-5",size:"small",isLoading:t,onClick:a})),o.createElement("div",{className:"voice-player-loader__wave"},o.createElement(c.vB,null)),o.createElement("div",{className:"voice-player-loader__time"},(0,u.mr)(Math.max(1e3*e,1e3),u.TIME_FORMATS.MINUTES_SECONDS)))),p=d,h=({className:e,duration:t})=>o.createElement("div",{style:t?{animationDuration:`${Math.round(t)}s`}:void 0,className:(0,l.AK)("voice-example-wave",e,{"voice-example-wave--animated":t})});var v=a(3034),E=a(56509);let g="voice-player-button-id",_=({className:e,currentTime:t,isActionsDisabled:a,isLoading:s,isMessage:i,onPlay:n,onRemove:r,onWaveClick:c=()=>!1,playButtonIconImg:u,waveRef:d})=>o.createElement("div",{className:(0,l.AK)("voice-player-ui",e,{"voice-player-ui--in-message":i})},o.createElement("div",{className:(0,l.AK)("voice-player-ui__time",{"voice-player-ui__time--in-message":i})},t),o.createElement("div",{className:(0,l.AK)("voice-player-ui__canvas",{"voice-player-ui__canvas--in-message":i}),ref:d,onClick:e=>{e.stopPropagation(),c()}}),o.createElement("div",{className:(0,l.AK)("voice-player-ui__actions",{"voice-player-ui__actions--in-message":i})},!i&&o.createElement(o.Fragment,null,o.createElement("div",{className:"voice-player-ui__remove-button"},o.createElement(m,{disabled:a,iconImg:"trash-2",id:g,onClick:r,size:"small"})),o.createElement(v.Z,{targetId:g,placement:"top",isMobileRelative:!1},(0,E.dW)("button.delete"))),o.createElement("div",{className:"voice-player-ui__play-button"},o.createElement(m,{disabled:a,iconImg:u,isLoading:s,isMessage:i,onClick:n,size:i?"small":"big"}))))},41950:(e,t,a)=>{a.d(t,{KY:()=>l,vB:()=>i.vB,At:()=>i.At,An:()=>i.An,ZP:()=>r});var s=a(80352),i=a(86766),o=a(18775);class n{constructor(){(0,o._)(this,"subscribeAudioEvent",(e,t)=>{document.addEventListener(e,t)}),(0,o._)(this,"removeListener",(e,t)=>{document.removeEventListener(e,t)}),(0,o._)(this,"emitAudioEvent",(e,t)=>{let a=new CustomEvent(e,{detail:{playerId:t}});document.dispatchEvent(a)}),(0,o._)(this,"subscribePlayAudioEvent",e=>(this.subscribeAudioEvent(n.AUDIO_EVENT.VOICE_PLAYER_PLAY,e),()=>{this.removeListener(n.AUDIO_EVENT.VOICE_PLAYER_PLAY,e)})),(0,o._)(this,"subscribeRecordStartAudioEvent",e=>(this.subscribeAudioEvent(n.AUDIO_EVENT.VOICE_RECORDER_START,e),()=>{this.removeListener(n.AUDIO_EVENT.VOICE_RECORDER_START,e)})),(0,o._)(this,"emitPlayAudioEvent",e=>{this.emitAudioEvent(n.AUDIO_EVENT.VOICE_PLAYER_PLAY,e)}),(0,o._)(this,"emitRecordStartAudioEvent",e=>{this.emitAudioEvent(n.AUDIO_EVENT.VOICE_RECORDER_START,e)})}}(0,o._)(n,"AUDIO_EVENT",{VOICE_PLAYER_PLAY:"VOICE_PLAYER_PLAY",VOICE_RECORDER_START:"VOICE_RECORDER_START"});let l=new n,r=s.Z},49196:(e,t,a)=>{a.d(t,{Z:()=>N});var s=a(27378),i=a(48204),o=a(35840),n=a(62668),l=a(11850),r=a(37652),m=a(46424),c=a(51932),u=a(29413),d=a(99748);let p={addTagUsernameToInputText:m.GS,modelChatSetInputFocus:c.P_},h=(0,i.$j)(null,p)(e=>s.createElement("span",{className:(0,d.AK)("user-levels-username-chat-owner",e.className,{disabled:e.isOwnShow}),onClick:()=>{e.addTagUsernameToInputText(e.user.username),e.modelChatSetInputFocus()}},s.createElement(u.Z,{img:"camera"}),e.user.username));var v=a(63256),E=a(98371),g=a(57094),_=a(21044),b=a(74012);let A={clearUserCardPopupParams:n.$x,setUserCardPopupParams:n.n},N=(0,i.$j)(e=>({currentUser:(0,b.ts)(e),modelId:(0,o.n5)(e)||null,isReportMessagesMobileEnabled:(0,v.tz8)(e),isTouchDevice:(0,E.HZ)(e)}),A)(e=>{let t,a,i;let{className:o,currentUser:n,fanClubTierTerm:m,favoritesYou:c,isAnonymous:u,isColored:d,isFavoritesYouIconVisible:p,isKing:v,isKnight:E,isLevelLeagueStatusVisible:b,isMobileRelativeNote:A,isMyKnight:N,isMyRecorder:P,isShowKnightButtonInPopup:C,isUltimateIconVisible:y,modelId:w,onClick:T,placeId:I,shouldHideReplay:S=!1,user:R,withoutUserCardPopup:k,shouldShowReportButton:O=!1,hideIcons:M,modelData:L,message:V,isReportMessagesMobileEnabled:Z,isTouchDevice:K,fanClubTier:D}=e,f={};"fanClubTier"in e&&(f.fanClubTier=e.fanClubTier),f.fanClubTierTerm=m;let U=!!(n&&n.id===w);return(u||(k?i=T:U?(t=()=>{e.setUserCardPopupParams({isShowKnightButtonInPopup:C,modelId:w,isKing:v,user:R,modelData:L,userCardPopupId:(0,r.H)(R,I),sendPmShouldOpen:"hybrid",shouldHideReplay:S,shouldShowReportButton:O,fanClubTier:D})},a=()=>{e.clearUserCardPopupParams(!0)},i=T):i=(t,a)=>{if(e.setUserCardPopupParams({message:V,shouldShowReportButton:O,isShowKnightButtonInPopup:C,modelId:w,isKing:v,user:R,userCardPopupId:(0,r.H)(R,I),shouldHideReplay:S,fanClubTier:D}),K&&Z){a.stopPropagation();let e=(0,l.tI)();e()}}),R.id===w)?s.createElement(h,{className:o,user:R,isOwnShow:U}):s.createElement(g.Z,{isAdminIconVisible:!0,isGenderIconHidden:!0,modelData:L,isNoteIndicatorVisible:!0,isIconVisible:!0,hideIcons:M,isVrIconVisible:!0,isKnight:E,isKing:v,isMyKnight:N,isAnonymous:u,isMobileRelativeNote:A,isLevelLeagueStatusVisible:b,isUltimateIconVisible:y,isFavoritesYouIconVisible:p,userRankingFallback:R.isModel||R.isStudio||(null==L?void 0:L.isApprovedModel)?_.AH:void 0,onMouseEnter:t,onMouseLeave:a,onClick:i,favoritesYou:c,placeId:I,size:14,user:R,isMyRecorder:P,className:o,isColored:d,...f})})}}]);