"use strict";(self.webpackChunkbongacams=self.webpackChunkbongacams||[]).push([[312,144],{71038:function(t,e,n){n.d(e,{VW:function(){return a},y7:function(){return l}});var o=n(33954),i=n(19826),s=n(41669),a=function(t){var e;return void 0===t&&(t=!1),void 0!==(null===(e=chat.userData)||void 0===e?void 0:e.isLogged)&&(chat.userData.isLogged?"member"!==chat.userData.role?(chat.addServiceMessage(__("Tip feature only for premium members"),"alert"),!1):!!chat.userData.isPayable||(chat.addServiceMessage(__("Tip feature only for premium members")+". "+__("To become a premium (GOLD) member for life and unlock this feature, all you have to do is buy any amount of tokens one time!"),"alert"),chat.buyTokensPopup(),!1):(chat.addServiceMessage(__("Tip feature only for premium members"),"alert"),i.A.getState().spoofIm.spoofVersionId||(t?s.signupEvent.call(chat):chat.signupPopup()),!1))},l=function(t,e){if(void 0===t&&(t=!1),void 0===e&&(e=!1),a(t)){var n=s("#bongacams_popup");n.hasClass("tap_popup")&&(s.bongacamsPopupClose(!1,(function(){o.isRTLCulture&&n.css({right:"auto"}),s("#stream-container").removeClass("__overlay")})),n.removeClass("tap_popup")),t?s("#bTipModelFromMiniProfile").click():s.mobile?s('[href="#popupTip"]').click():(e?s("#bTipModelFromTipKing").click():s("#bTipModel").click(),c())}};function r(t){var e=s(t.target),n=["#bTip",".lawl_item",".send-tip"].filter((function(t){return 1===e.closest(t).length})).length,o=e.closest(".popup_close").length,i=e.closest(".js-fullscreen_btn").length;n?(u(),c()):o?u():i&&s("#bongacams_popup").find(".popup_close").trigger("click")}function c(){s(document).on("click.close_popup",r)}function u(){s(document).off("click.close_popup",r)}},53864:function(t,e,n){function o(t){"function"==typeof(null===chat||void 0===chat?void 0:chat.shareMyCam)&&chat.shareMyCam(t)}function i(t){t.preventDefault(),o(!t.currentTarget.classList.contains("off"))}n.d(e,{F:function(){return o},t:function(){return i}})},21560:function(t,e,n){n.d(e,{$n:function(){return m.$},tV:function(){return f},vx:function(){return h},qJ:function(){return a}});var o=n(50172),i=n(17402),s=n(44763),a=(0,i.memo)((function(t){var e=t.className,n=t.children,i=t.icon,a=(0,s.Z)(t).actions.handleClickOnTip;return(0,o.h)(m.$,{className:e,icon:i,variant:"success",onClick:a},n)})),l=n(15215),r=n(19047),c=n(26580),u=n(8546),d=n(37773),h=(0,i.memo)((function(t){var e,n,i=t.className,s=t.classNameHint,a=t.children,h=t.hint,p=t.icon,f=t.label,m=t.size,v=t.variant,y=(0,l.Tt)(t,["className","classNameHint","children","hint","icon","label","size","variant"]);return(0,o.h)(r.N_,(0,l.Cl)({className:(0,u.n)((0,l.Cl)((e={},e[String(i)]=Boolean(i),e),(0,d.f)({hint:h,size:m,variant:v})))},y),p&&(0,o.h)(c.A,{group:(0,u.n)((n={mrn_b_icon:!0},n[p.group]=p.group,n)),icon:p.type,url:p.url}),(f||a)&&(0,o.h)("span",{className:"mrn_inner bc_inline_flex bc_flex_full_center"},f||a),h&&(0,o.h)("span",{className:s},h))})),p=n(6967),f=(0,i.memo)((function(t){var e=t.className,n=t.classNameHint,i=t.children,s=t.hint,a=t.icon,l=t.variant,r=(0,p.O)(t).actions.handleOpenIMWindow;return(0,o.h)(m.$,{className:e,classNameHint:n,hint:s,icon:a,variant:l,onClick:r},i)})),m=n(78054)},19047:function(t,e,n){n.d(e,{N_:function(){return c.N},DL:function(){return l},KO:function(){return r.K}});var o=n(50172),i=n(17402),s=n(26580),a=n(8546),l=(0,i.memo)((function(t){var e,n=t.children,l=t.icon,r=t.isLoading;return(0,o.h)(i.Fragment,null,(0,o.h)("span",{className:(0,a.n)({"l_inner bc_inline_flex bc_flex_full_center":!0,__hide_cnt:!!l&&r})},n),!!l&&r&&(0,o.h)("span",{className:(0,a.n)((e={l_icon_loading_wrp:!0},e[String(l.classNameIconWrapper)]=Boolean(l.classNameIconWrapper),e))},(0,o.h)(s.A,{key:l.key,className:l.className,group:l.group,icon:l.icon,url:l.url})))})),r=n(33203),c=n(45170)},93855:function(t,e,n){n.d(e,{o:function(){return l}});var o=n(15215),i=n(80554),s=n(19826),a=n(88035),l=s.A.action((function(t,e){void 0===e&&(e=!0);var n=s.A.getState().layover;return(0,a.w)(e?i.R.LAYOVER_POPUP_SHOW:i.R.LAYOVER_POPUP_CLOSE),{layover:(0,o.Cl)((0,o.Cl)({},n),{showOopsPopup:e})}}))},73725:function(t,e,n){n.d(e,{v:function(){return l}});var o=n(91651),i=n(88481),s=n(41966),a=n(33954),l=function(){var t=[i.Ye.EXTRA_SOCIAL_BY_POPUP];return a.isRTLCulture&&t.push(i.Ye.EXTRA_SOCIAL_BY_POPUP_RTL),Promise.all(t.map((function(t){return(0,o.i)(t,document.head,{"data-exclude":!0},(0,s.j)())})))}},5926:function(t,e,n){var o=n(17402);e.A=function(t,e){var n=(0,o.useRef)(!1);(0,o.useLayoutEffect)((function(){n.current?t():n.current=!0}),e)}},19903:function(t,e,n){n.d(e,{A:function(){return d}});var o=n(15215),i=n(7526),s=n(27514),a=n(2268),l=n(50172),r=n(98614),c=n(45332),u={position:"absolute",left:0,right:0,width:"100%",height:"100%",overflow:"hidden",pointerEvents:"none"},d=function(t){function e(e){var n,i=t.call(this,e)||this;return i.rootRef=(0,l._3)(),i.alertBox=null,i.messageHandler=function(t){var e,n=i.props,s=n.chatHost,l=n.isFloatingPlayer,r=n.lang;if("public"===(null==s?void 0:s.showType)&&!l){var c=JSON.parse(null!==(e=t.l)&&void 0!==e?e:{}),u=c.tipData,d=u.username,h=u.amount,p="ru"===r&&c.overlay.messageRu||c.overlay.message;i.alertBox.showAlert({id:t.id,settings:(0,o.Cl)((0,o.Cl)({},c.overlay),{message:p,fileUrl:c.overlay.file_url,fileFormat:c.overlay.file_format}),templateVars:{"@username":d,"@tipsum":{value:h,format:function(t){return t+" "+a.kX.pluralise("tokens",h)}}}})}},i.state={invisible:e.isFloatingPlayer||"public"!==(null===(n=e.chatHost)||void 0===n?void 0:n.showType)},i}return(0,o.C6)(e,t),e.prototype.componentDidMount=function(){var t=this,e=this.props,o=e.soundVolume,a=e.isMobile;this.alertBox=(0,c.kW)({root:this.rootRef.current,volume:o,isMobile:a}),i.I.on(s.U.STREAM_OVERLAY,this.messageHandler),n.e(28).then(n.t.bind(n,79086,23)).then((function(){t.rootRef.current&&new ResizeObserver((function(e){for(var n=0,o=e;n=o.length||o[this.dialogIndex].props.dialogName!==n)&&(this.dialogIndex=o.findIndex((function(t){return t.props.dialogName===n}))),(0,P.h)("div",{className:"player-dialogs",ref:this.rootComponentRef},this.dialogIndex>=0&&o[this.dialogIndex])},e.defaultProps={dialog:"",onOutsideClick:h.noop},e}(_.I),B=n(54446),H=n(11402),L=n(63886),D=n(69341),R=n(20245),O=n(45737);function I(t,e){return{selectedRendition:e}}var F=n(21658),U=n(26580),q=n(47885),W=/\d+/g,Z=function(){return(0,P.h)(U.A,{group:"quality_check_icon",icon:"#svg_ch_fs_check",url:q.g5})},j=function(t){function e(e){var n=t.call(this,e)||this;return n.handleQualityClick=function(t){n.props.onClick(t.currentTarget.dataset.id)},n.state={},n}return(0,o.C6)(e,t),e.prototype.getRenditions=function(){var t=this.props,e=t.sort,n=t.renditions,i=(0,o.fX)([],n,!0);return"none"===e?i:(i.sort((function(t,e){var n=Number((t.match(W)||[]).join(""))-Number((e.match(W)||[]).join(""));return n||t.localeCompare(e)})),"DESC"===e?i.reverse():i)},e.prototype.render=function(){var t=this,e=this.props,n=e.currentRendition,o=e.auto,i=e.caption,s=e.showChecked,a=o?"auto":n;return(0,P.h)("div",{className:"quality_settings"},i&&(0,P.h)("div",{className:"quality_headline"},i),this.getRenditions().map((function(e){return(0,P.h)("div",{"data-id":e,className:(0,A.n)({quality_item:!0,quality_selected:e===a,quality_hd:(parseInt(e)||0)>=720,quality_low:(parseInt(e)||0)<720}),onClick:t.handleQualityClick},s&&e===a&&(0,P.h)(Z,null),e)})),(0,P.h)("div",{"data-id":"auto",className:(0,A.n)({quality_item:!0,quality_selected:"auto"===a}),onClick:this.handleQualityClick},s&&"auto"===a&&(0,P.h)(Z,null),o?__("Auto (%quality%)",{quality:n}):__("Auto")))},e.defaultProps={onClick:h.noop,renditions:[],currentRendition:"auto",showChecked:!1,auto:!1,sort:"none"},e}(P.uA),X=function(t){function e(e){var n=t.call(this,e)||this;return n.state={},n}return(0,o.C6)(e,t),e.prototype.shouldComponentUpdate=function(t){return t.disabled},e.prototype.render=function(){var t=this.props.children,e=d.Children.toArray(t);return 1===e.length?e[0]:(0,P.h)("div",null,t)},e.defaultProps={disabled:!1},e}(P.uA),Y=n(69532),Q=n(28177),K=n(53162),G=n(57840),J=n(10094),$=n(26889),tt=n(24533),et=n(35172),nt=n(12957),ot=n(2268),it=n(5578),st=function(t){var e=t.isVisibleOnStream,n=t.socialProfileData,o=t.streamIconUrl,i=t.isSmall,s=n.id,a=n.description,l=n.price,r=n.isPurchased,c=(0,it.K)(n).handleOpenPopup,u=function(){var t=l>0&&!r?"".concat(l," ").concat(ot.kX.pluralise("tokens",l)):"",e=a?(0,P.h)("span",{className:"ssi_desc"},a):"";return t?e?(0,P.h)("div",{className:"h_inner bc_flex"},e," (".concat(t,")")):(0,P.h)("div",{className:"h_inner"},t):e?(0,P.h)("div",{className:"h_inner"},e):""};return e?(0,P.h)("span",{key:s,className:(0,A.n)({bc_stream_icon:!0,__sm:i}),onClick:c},u()&&(0,P.h)("div",{className:"ssi_tooltip hint"},(0,P.h)("div",{className:"h_arrow"}),u()),(0,P.h)("img",{src:o,alt:"",className:"ssi_img"})):null},at=n(94535),lt=n(12341),rt=(0,d.memo)((function(){var t=(0,u.d4)((function(t){return t.socialLinks})),e=t.isVisibleOnStream,n=t.streamIcons,i=t.socialProfiles,s=(0,d.useState)(!1),a=s[0],l=s[1],r=(0,d.useRef)(null),c=function(t){var e=t.id,n=t.forwardLink;T.A.action(at.Cp)(e,n)};return(0,d.useEffect)((function(){lt.U.instance.setHandler(lt.B.STREAM,c)}),[]),(0,d.useLayoutEffect)((function(){var t;l((null===(t=r.current)||void 0===t?void 0:t.clientHeight)<430)}),[e]),n?(0,P.h)("div",{ref:r,className:"stream_social_links"},n&&(0,nt.loopv)(n,(function(t,n){var s=i.find((function(e){return e.type===t.type}));if(s){var l=s.items.find((function(t){return t.id===n}));if(l)return(0,P.h)(st,(0,o.Cl)({},t,{isSmall:a,isVisibleOnStream:e,socialProfileData:l}))}}))):null})),ct=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,o.C6)(e,t),e.prototype.render=function(){return(0,P.h)("div",{className:"sound-muted-tooltip-container"},(0,P.h)("div",{className:"sound-muted-tooltip"},__("The sound is muted.%br% Turn on the sound here.",{br:""})))},e}(P.uA),ut=ct,dt=n(33321),ht=n(53864),pt=n(22706),ft=n(92266),mt=function(t){function e(e){var n=t.call(this,e)||this;return n.state={},n}return(0,o.C6)(e,t),e.prototype.render=function(){var t=this.props,e=t.children,n=t.caption,o=t.isHD,i=t.onClick,s=t.mode;return(0,P.h)("div",{className:"player-button",onClick:i},(0,P.h)("span",{className:(0,A.n)({controls_current_rendition:!0,quality_hd:o})},e,("icon"===s||"icon_text"===s)&&(0,P.h)("div",{className:"quality-settings-icon-wrapper"},(0,P.h)(U.A,{group:"quality-settings-icon",icon:o?"#icon-quality-settings-hd":"#icon-quality-settings"})),("text"===s||"icon_text"===s)&&n))},e.defaultProps={mode:"text",onClick:h.noop},e}(P.uA),vt=n(18325),yt=n(828),gt=function(t){var e=t.holdControls;return(0,P.h)("div",{className:(0,A.n)({"player-navigation":!0,"nav-hold":e})},(0,P.h)("div",{className:"player-navigation-button player-navigation-prev js-prev_chat_room"}),(0,P.h)("div",{className:"player-navigation-button player-navigation-next js-next_chat_room"}))},_t=function(){return(0,P.h)("button",{className:"stream_mute_button",type:"button"},(0,P.h)(U.A,{group:"smb_icon",icon:"#svg_ch_stream_mute",url:q.g5}),(0,P.h)("span",{className:"smb_title"},__("Muted")))},Ct=function(){function t(t){void 0===t&&(t=1e3),this.listeners=new Set,this.cache=["",Date.now()],this.canvas=document.createElement("canvas"),this.image=new Image,this.image.crossOrigin="anonymous",this.ttl=t}return t.prototype.listen=function(t){this.listeners.add(t)},t.prototype.next=function(t,e){var n=this;if(void 0===t&&(t="about:blank"),void 0===e&&(e=t),t&&!(this.cache[0]===e&&Date.now()-this.cache[1]0&&a.A.instance.closeStream()},i.toggleSound=function(){a.A.instance.player&&i.setState({userClickByPlayer:!0}),k.z.instance.toggleSound(),i.setState({soundVolume:k.z.instance.volume})},i.handleQualityClick=function(t){var e=i.props.dispatchSelectedRendition;i.setState({settingsVisible:!1,qualityAuto:"auto"===t}),a.A.instance.player&&(a.A.instance.player.setRendition(t),e(t))},i.handleQualityEnter=function(){i.qualityTimer&&(window.clearTimeout(i.qualityTimer),i.qualityTimer=0),i.state.settingsVisible||i.setState({settingsVisible:!0})},i.handleQualityLeave=function(){window.clearTimeout(i.qualityTimer),i.qualityTimer=window.setTimeout((function(){i.setState({settingsVisible:!1})}),400)},i.handleContextMenu=function(t){t.preventDefault(),t.stopPropagation()},i.handleContainerClick=function(t){var e=i.state.userClickByPlayer;t.target.closest(".js-fullscreen_btn")||e||i.setState({userClickByPlayer:!0})},i.handleMouseMove=function(t){var e=t.target;clearTimeout(i.holdTimer),(null==e?void 0:e.closest("#controls"))?i.state.holdControls||i.setState({holdControls:!0}):i.holdControls(3e3)},i.handleMouseLeave=function(){i.holdControls(100)},i.handleAirPlayClick=function(){$.AirPlay2.showPicker()},i.handleControlToggle=function(){i.props.isFullScreen&&i.setState({visibleControlsFullscreen:!i.state.visibleControlsFullscreen})},i.openTipPopup=function(){chat.tipPopup()},i.openPrivateConversation=function(){chat.sendPM()},i.closeDialogPremiumOnly=function(){i.setState({dialog:""})},i.showDialogPremiumOnly=function(){chat.localData.tsvUrl||i.setState({dialog:B._})},i.isShowedPrivate=function(){var t=document.querySelector(".chat-tab");if(t)return"private-chat"===t.getAttribute("id")},i.updateSources(e),i.state={name:e.name||(0,H.fE)(),dialog:"",settingsVisible:!1,soundVolume:e.volume||e.soundVolume||0,volumeHold:!1,position:1,qualityAuto:!0,modelTimeOffset:0,holdControls:!1,videoPoster:(null===(n=e.initialVideoPoster)||void 0===n?void 0:n.frame)||"",forceLayover:(0,et.P3)(window.location.search,"layover")&&{type:(0,et.P3)(window.location.search,"layover"),sex:(0,et.P3)(window.location.search,"sex")||vt.A.FEMALE,url:(0,et.P3)(window.location.search,"url")||"",wait:null!==(0,et.P3)(window.location.search,"wait")},holdSoundMutedTooltip:parseFloat(localStorage.getItem(b.ZB))<0,tooltipShowCount:2,userClickByPlayer:!1,visibleControlsFullscreen:!1,disablePanelAnimations:!1},i.poster.listen((function(t){return i.setState({videoPoster:t})})),i}return(0,o.C6)(e,t),e.prototype.updateSources=function(t){t&&(this.sources=(0,G.$)(d.Children.toArray(t.children)))},e.prototype.componentWillMount=function(){(0,O.U)(this),(0,L.g)()},e.prototype.componentWillUnmount=function(){(0,O.k)(this),Pt("#bChat").off("onBeforeGetRoom.player").off("onRoomClose.player").off("onCloseStream.player").off("onUserData.player"),this.chromeCastButton&&(this.chromeCastButton.remove(),"dispose"in this.chromeCastButton&&this.chromeCastButton.dispose()),window.removeEventListener("beforeunload",this.handleUnloadPage)},e.prototype.componentDidMount=function(){var t=this;k.z.instance.init(),a.A.instance.init(),Pt(document).off("onRoomReady").on("onRoomReady",(function(e,n){n.off("onBeforeGetRoom.player").off("onRoomClose.player").off("onCloseStream.player").off("onUserData.player").on("onBeforeGetRoom.player",t.prepareChatRoom).on("onRoomClose.player",t.roomClosed).on("onCloseStream.player",t.streamClosed).on("onUserData.player",t.handleOnChatUserData),bt.I.off("VideoPlayerEvent:playing",t.handlePlayStream),bt.I.on("VideoPlayerEvent:playing",t.handlePlayStream)})),Pt(document).on("setStateQualityAuto",(function(){t.setState((function(){return{qualityAuto:!0}}))})),window.addEventListener("beforeunload",this.handleUnloadPage)},e.prototype.componentWillReceiveProps=function(t){this.setState({soundVolume:t.volume||t.soundVolume||0}),this.updateSources(t),t.isFullScreen&&this.props.isFullScreen!==t.isFullScreen&&this.setState({visibleControlsFullscreen:!1,disablePanelAnimations:!0})},e.prototype.componentDidUpdate=function(){this.state.disablePanelAnimations&&this.setState({disablePanelAnimations:!1})},Object.defineProperty(e.prototype,"getPlayerUIHold",{get:function(){var t=this.props.layover,e=this.state,n=e.forceLayover,o=e.dialog,i=e.settingsVisible,s=e.volumeHold,a=e.holdControls;return!(n||t.visible)&&(""!==o||i||s||a)},enumerable:!1,configurable:!0}),e.prototype.render=function(){var t,e,n,o,i,s,a=this.props,l=a.layover,r=a.skinId,c=a.isModerator,u=a.isRunetki,d=a.chatRoomTitle,h=a.renditions,p=a.currentRendition,f=a.chromeCastActive,_=a.chromeCastAvailable,b=a.chromeCastDevice,k=a.playerSkin,V=a.playerWaitClick,H=a.isAirPlay2Available,O=a.isAirPlay2Active,I=a.currentPlayerType,W=a.isFullScreen,Z=a.chatHost,K=a.chatShowStatusOptions,G=a.dailyLimitExceeded,$=this.state,et=$.dialog,nt=$.settingsVisible,ot=$.qualityAuto,it=$.soundVolume,st=$.volumeHold,at=$.position,lt=($.modelTimeOffset,$.holdControls),ct=$.videoPoster,dt=$.forceLayover,pt=$.holdSoundMutedTooltip,vt=$.tooltipShowCount,Ct=$.userClickByPlayer,bt=$.visibleControlsFullscreen,kt=$.disablePanelAnimations,wt=L.F[k]||L.F.player_light,Mt=u?D.Mq:D.Fd,St=parseInt(p)>=720||!1,Pt=h.length>=1,Nt=""!==et||nt||st||lt,Vt=it<=0&&!pt&&Boolean(vt)&&!Ct,Tt=["bongacam_mobile","wrtc_mobile"].includes(null===(i=null===chat||void 0===chat?void 0:chat.performerData)||void 0===i?void 0:i.videoEncoder),zt=["private","fullprivate","group","limit","away"].includes(null==Z?void 0:Z.showType),xt=(!this.isShowedPrivate()||l.wait)&&(zt||(null===chat||void 0===chat?void 0:chat.dailyLimitExceeded)||G||(null==K?void 0:K.isOffline)||l.visible||l.wait||(null===chat||void 0===chat?void 0:chat.performerStatus)&&"public"!==chat.performerStatus||null===(null===chat||void 0===chat?void 0:chat.performerStatus)&&"public"!==this.lastStatus),Et=(0,g.O)(null==Z?void 0:Z.username),Bt=!xt&&!Et;Bt||(0,C.T)((null==Z?void 0:Z.quality)||"high");var Ht=v.q.isEnabled(M.i.DESKTOP_CHAT_JOIN_BUTTON_TEXT),Lt=w.A.isCoupleGender(null==Z?void 0:Z.gender),Dt=this.getPlayerUIHold;return(null===chat||void 0===chat?void 0:chat.performerStatus)&&(this.lastStatus=chat.performerStatus),(0,P.h)("div",{id:"stream-layer",className:(0,A.n)((t={},t[k]=!0,t.stream_mute_icon=!0,t)),ref:this.rootComponentRef,onContextMenu:this.handleContextMenu,onClick:this.handleContainerClick,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave},!xt&&(0,P.h)(rt,null),(0,P.h)(ft.A,null),(0,P.h)(m,null),(0,P.h)("div",{id:"EmbedSWF"},(0,P.h)(y.A,null),(0,P.h)("div",{key:"stream_container",id:"stream-container",className:(0,A.n)((e={"layover-enabled":null!==dt||l.visible},e["layover_".concat(l.type)]=l.visible,e.settings_visible=nt,e))},Bt&&(0,P.h)(P.FK,null,(0,P.h)(Q.A,{key:"video_poster",poster:ct,primary:!0})),!V&&!xt&&(0,P.h)(Mt,{style:{display:"inline"}}),(0,P.h)(x.A,{key:"video_player_container"}),(0,P.h)("div",{id:"pp_ve_container"}),V&&!xt&&(0,P.h)("span",{id:"videoPlayButton"}),(0,P.h)(gt,{holdControls:Nt}),(0,P.h)("div",{id:"playercontainer",className:(0,A.n)({"pl-hold":Dt,__join_btn:Ht})},(0,P.h)("div",{className:(0,A.n)({"player-background":!0})}),(0,P.h)("div",{id:"controls"},(0,P.h)("div",{className:"player-leftbar"},(0,P.h)(R.M1,{onClick:this.handleLiveClick}),Tt&&(0,P.h)(U.A,{group:"player-icon-mobile",icon:"#svg_ch_mobile",url:q.g5}),(null===chat||void 0===chat?void 0:chat.currentShowType)===S.A.FULL_PRIVATE_CHAT&&(null===(s=null===chat||void 0===chat?void 0:chat.chatSettings)||void 0===s?void 0:s.allowFullPrivateRecording)&&(0,P.h)("div",{className:(0,A.n)({stream_rec_badge:!0,__left_bar:Dt,__st_container:!Dt})},(0,P.h)(U.A,{group:"srb_icon",icon:"#svg_ch_recording",url:q.g5}),(0,P.h)("div",{className:"srb_title"},__("Recording")))),(0,P.h)(R.qw,{position:at,onStreamSeek:this.closeDialogPremiumOnly,onMouseUp:this.showDialogPremiumOnly},f&&(0,P.h)("div",{className:"progress_tv_stream"},(0,P.h)(Y.b,{icon:"icon-tv-stream-active",type:"button-stream"}),__("Playing on %device%",{device:b}))),!W&&!Ht&&Vt&&(0,P.h)(ut,null),(0,P.h)("div",{className:(0,A.n)({player_settings:!0,__open:W&&bt,__chat:!W,__no_anim:kt})},W&&Vt&&(0,P.h)(ut,null),(0,P.h)("div",{className:"ps_menu_holder"},(0,P.h)("div",{className:"player-rightbar"},(0,P.h)(R.Ui,{toggleSound:this.toggleSound,volume:it,iconSet:wt.volume}),(0,P.h)(R.ZH,{volume:it,onUpdate:this.onVolumeChange,onDragStart:this.onVolumeBeforeDrag,onDragEnd:this.onVolumeAfterDrag}),Pt&&(0,P.h)("div",{className:"button-settings big_hover",onMouseEnter:this.handleQualityEnter,onMouseLeave:this.handleQualityLeave},nt&&(0,P.h)(j,{caption:["",__("Select quality"),__("Quality")][W?1:0],onClick:this.handleQualityClick,renditions:h,currentRendition:p,auto:ot,showChecked:W,sort:"DESC"}),(0,P.h)(mt,{caption:p,isHD:St,mode:W?"icon":"text",onClick:this.handleToggleSettings})),_&&!W&&(0,P.h)("div",{key:"google-chrome-cast",className:"stream-cast cast-control big_hover"},(0,P.h)(F.V,{restrictionElement:this.rootComponent,restrictionPadding:10,type:"cast-tooltip"},__("Stream on TV")),(0,P.h)(Y.b,{icon:f?wt.chromeCastActive:wt.chromeCast,type:"button-stream"}),(0,P.h)(X,null,(0,P.h)("div",{className:"chrome-cast-wrapper",dangerouslySetInnerHTML:{__html:''}}))),H&&"hls"===I&&!W&&(0,P.h)("div",{key:"airplay2-cast",className:"stream-cast cast-control big_hover",onClick:this.handleAirPlayClick},(0,P.h)(F.V,{restrictionElement:this.rootComponent,restrictionPadding:10,type:"cast-tooltip"},__("Stream on TV")),(0,P.h)(Y.b,{icon:O?wt.airPlayActive:wt.airPlay,type:"button-stream"})),!W&&(0,P.h)("div",{className:"button-fullscreen-wrapper pl-fullscreen-button chfs_btn __icon __fullscreen",onClick:this.handleControlToggle},(0,P.h)(R.rT,{enlargeIconName:wt.enlarge,minimizeIconName:wt.minimize})))),W&&(0,P.h)("div",{className:"chfs_btn __icon ps_toggle",onClick:this.handleControlToggle},(0,P.h)(U.A,{group:"chfs_icon __settings",icon:"#svg_ch_fs_settings",url:q.g5}),(0,P.h)(U.A,{group:"chfs_icon __cross",icon:"#svg_ch_fs_cross",url:q.g5})),(0,P.h)("div",{className:"ps_bkg"})),W&&(0,P.h)("div",{className:"player_actions"},(0,P.h)("div",{className:"chfs_btn __icon __c2c",onClick:function(){return(0,ht.F)(!0)}},(0,P.h)(F.V,{restrictionElement:this.rootComponent,restrictionPadding:10,type:"cam-tooltip"},__("Start your webcam")),(0,P.h)(U.A,{group:"chfs_icon __cam",icon:"#svg_ch_fs_cam",url:q.g5})),_&&(0,P.h)("div",{className:"chfs_btn __icon __chrome_cast"},(0,P.h)("div",{key:"google-chrome-cast",className:"stream-cast cast-control big_hover"},(0,P.h)(F.V,{restrictionElement:this.rootComponent,restrictionPadding:10,type:"cast-tooltip"},__("Stream on TV")),(0,P.h)(Y.b,{icon:f?wt.chromeCastActive:wt.chromeCast,type:"button-stream"}),(0,P.h)(X,null,(0,P.h)("div",{className:"chrome-cast-wrapper",dangerouslySetInnerHTML:{__html:''}})))),Boolean(H&&"hls"===I)&&W&&(0,P.h)("div",{className:"chfs_btn __icon"},(0,P.h)("div",{key:"airplay2-cast",className:"stream-cast cast-control big_hover",onClick:this.handleAirPlayClick},(0,P.h)(F.V,{restrictionElement:this.rootComponent,restrictionPadding:10,type:"cast-tooltip"},__("Stream on TV")),(0,P.h)(Y.b,{icon:O?wt.airPlayActive:wt.airPlay,type:"button-stream"}))),(0,P.h)("div",{className:"chfs_btn __icon __fullscreen js-fullscreen_btn pl-fullscreen-button"},(0,P.h)(F.V,{restrictionElement:this.rootComponent,restrictionPadding:10,type:"exit-fullscreen-tooltip"},__("Exit Fullscreen")),(0,P.h)(U.A,{group:"chfs_icon __fullscreen",icon:"#svg_ch_fs_fullscreen",url:q.g5})),(0,P.h)("a",{className:"chfs_btn __text __tip",onClick:this.openTipPopup},__("Send Tip")),(0,P.h)("div",{className:"chfs_btn __text __pm",onClick:this.openPrivateConversation},__("Private Message")))),(0,P.h)(E,{dialog:et,onOutsideClick:this.handleDialogsOutsideClick},(0,P.h)(B.y,{dialogName:B._,onClose:this.closeDialogPremiumOnly})),Ht&&(0,P.h)(At,{isCouple:Lt}),T.A.getState().soundVolume<=0&&(0,P.h)(_t,null)),dt&&(0,P.h)(N.A,{type:dt.type,sex:dt.sex,url:dt.url,wait:dt.wait,visible:!dt.wait}),!dt&&xt&&(0,P.h)(N.A,{type:l.type,sex:l.sex,url:l.url,wait:l.wait,visible:l.visible}),l.showOopsPopup&&(0,P.h)(J.A,null),c&&(0,P.h)(z,null),(0,P.h)("div",{id:"layover-logo",className:"layover-logo watermark_skin wm_skin_".concat(r)}))),(0,P.h)(yt.A,{root:"#bChatFloatPlayerControl"},(0,P.h)("div",{className:(0,A.n)((n={"js-float-player-controls":!0},n[k]=!0,n))},(0,P.h)("div",{className:(0,A.n)((o={hover_block:!0,"js-hover_block":!0},o["layover_".concat(l.type)]=l.visible,o)),style:{display:"none"}},(0,P.h)("svg",{className:"pl_mini-restore"},(0,P.h)("use",{xlinkHref:"#icon-restore"})),(0,P.h)(R.Ui,{toggleSound:this.toggleSound,volume:it,toolTipAlign:"right",iconSet:wt.volume})),(0,P.h)(tt.A,null,d))))},e.defaultProps={playerSkin:"player_light"},e=(0,o.Cg)([(0,V.Ng)(["initialVideoPoster","layover","skinId","isModerator","isRunetki","chatRoomTitle","volume","soundVolume","renditions","currentRendition","chromeCastActive","chromeCastAvailable","chromeCastDevice","playerSkin","playerWaitClick","isAirPlay2Available","isAirPlay2Active","currentPlayerType","chatHost","chatShowStatusOptions","isFullScreen","dailyLimitExceeded","isChatPopup"],Nt)],e)}(_.I)},24533:function(t,e,n){n.d(e,{A:function(){return h}});var o=n(46517),i=n(13907),s=n(65362),a=n(7243),l=n(26580),r=n(47885),c=n(50172),u=n(17402),d=n(41669),h=function(t){var e=(0,o.d4)((function(t){return t.isAuthenticated})),n=(0,u.useState)(!1),h=n[0],p=n[1],f=(0,u.useRef)(null),m=(0,u.useCallback)((function(){p(!1)}),[]);(0,s.j)({ref:f,callback:m});var v=(0,u.useCallback)((function(t){t.stopPropagation(),p((function(t){return!t}))}),[]);return(0,c.h)("div",{className:"player_caption"},(0,c.h)("span",{className:"pc_name"},t.children),e&&(0,c.h)("div",{className:"pc_item_place __settings",onClick:v},(0,c.h)(l.A,{group:"pc_icon __settings",icon:"#svg_ch_player_caption_settings",url:r.g5})),(0,c.h)("div",{className:"pc_item_place __close js-player_caption_close"},(0,c.h)(l.A,{group:"pc_icon __close",icon:"#svg_ch_player_caption_close",url:r.g5})),(0,c.h)("div",{ref:f,className:"popover-light pc_popover_settings",style:{display:e&&h?"block":"none"}},(0,c.h)("div",{className:"corner top"}),(0,c.h)("div",{className:"inner popover-light-inner"},(0,c.h)("div",{className:"popover-light-close",onClick:v}),(0,c.h)("p",null,trans('To hide the live stream mini player, go to the %a1%settings%a2% and set the slider to "Hide" mode.',{a1:"'),a2:""},{handleOpenWindow:function(t){t.preventDefault(),(0,a.z)((0,i.ip)("@common_account_notifications_settings"),{width:1315,height:930,left:(d(window).width()-1315)/2,top:(d(window).height()-930)/2}),p(!1)}})))))}},69532:function(t,e,n){n.d(e,{b:function(){return a}});var o=n(15215),i=n(8546),s=n(50172),a=function(t){var e,n=t.icon,a=t.type,l=(t.children,(0,o.Tt)(t,["icon","type","children"]));return(0,s.h)("svg",(0,o.Cl)({className:(0,i.n)((e={"player-icon":!0},e[a]=Boolean(a),e)),xmlns:"http://www.w3.org/2000/svg"},l),(0,s.h)("use",{xlinkHref:"#".concat(n),className:"state-default"}),(0,s.h)("use",{xlinkHref:"#".concat(n,"-hover"),className:"state-hover"}))}},21658:function(t,e,n){n.d(e,{V:function(){return l}});var o=n(15215),i=n(92276),s=n(8546),a=n(50172),l=function(t){function e(e){var n=t.call(this,e)||this;return n.offsetX=0,n.offsetY=0,n.updateOffset=function(){var t=n.props.restrictionElement;n.restrictionBounds=null;var e=t;"string"==typeof e&&(e=document.querySelector(t)),e&&(n.restrictionBounds=e.getBoundingClientRect())},n.state={restrictionBounds:null},n.updateOffset(),n}return(0,o.C6)(e,t),e.prototype.componentWillReceiveProps=function(t){this.updateOffset()},e.prototype.componentDidUpdate=function(t,e){this.updateOffset()},e.prototype.render=function(){var t,e=this.props,n=e.type,o=e.className,i=e.restrictionPadding,l=e.children;if(this.restrictionBounds&&this.rootComponent){var r=this.restrictionBounds,c=this.rootComponent.getBoundingClientRect();if(c.left>0&&c.right>0&&c.top>0&&c.bottom>0){var u=c.left-this.offsetX,d=c.right-this.offsetX;c.top,this.offsetY,c.bottom,this.offsetY;ur.right-i&&(this.offsetX=r.right-i-d),this.offsetX=Math.round(this.offsetX),this.offsetY=Math.round(this.offsetY)}}return(0,a.h)("div",{className:(0,s.n)((t={"tooltip-gray":!0},t[n]=Boolean(n),t[o]=Boolean(o),t)),style:(this.offsetX||this.offsetY)&&{transform:"translate(".concat(this.offsetX,"px, ").concat(this.offsetY,"px)")}||{},ref:this.rootComponentRef},l)},e.defaultProps={type:"",className:"",restrictionElement:null,restrictionPadding:0},e}(i.I)},63886:function(t,e,n){n.d(e,{g:function(){return h},F:function(){return p}});var o=n(11402),i=/]*)>([^]*)<\/svg>/gi,s=function(t){var e=t.replace(/\r?\n/g," ").split(i);return e.length>1?e[1]:""},a=s('\n \n \n \n \n \n \n\n'),l=s('\n \n \n \n \n \n \n \n \n \n \n \n \n\n \n \n \n \n \n \n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n \n \n \n \n \n\n \n \n \n \n\n \n \n \n \n\n \n \n \n \n\n \n \n \n \n \n \n \n\n'),r=s('\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n'),c=s('\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n'),u=function(t){return''.concat(t,"")},d="";function h(){if(!d||!document.getElementById(d)){var t=u(a+l+r+c),e=document.createElement("div");e.id=d=(0,o.fE)(),e.style.display="none",e.innerHTML=t,document.body.appendChild(e)}}var p={player_light:{chromeCast:"icon-light-tv-stream",chromeCastActive:"icon-light-tv-stream-active",airPlay:"icon-light-airplay-stream",airPlayActive:"icon-light-airplay-stream-active",enlarge:"icon-light-enlarge",minimize:"icon-light-minimize",volume:["icon-light-sound-0","icon-light-sound-1","icon-light-sound-2"]},player_promo:{chromeCast:"icon-light-tv-stream",chromeCastActive:"icon-light-tv-stream-active",airPlay:"icon-light-airplay-stream",airPlayActive:"icon-light-airplay-stream-active",enlarge:"icon-light-enlarge",minimize:"icon-light-minimize",volume:["icon-sound-ads-0","icon-sound-ads-1","icon-sound-ads-2","icon-sound-ads-3","icon-sound-ads-4"]},player_promo_chathead:{chromeCast:"icon-light-tv-stream",chromeCastActive:"icon-light-tv-stream-active",airPlay:"icon-light-airplay-stream",airPlayActive:"icon-light-airplay-stream-active",enlarge:"icon-light-enlarge",minimize:"icon-light-minimize",volume:["icon-sound-ads-chathead-0","icon-sound-ads-chathead-1","icon-sound-ads-chathead-2","icon-sound-ads-chathead-3","icon-sound-ads-chathead-4"]}}},10094:function(t,e,n){n.d(e,{A:function(){return p}});var o=n(15215),i=n(50172),s=n(98614),a=n(21492),l=n(26580),r=n(22847),c=n(93855);var u=n(47885),d=n(49100),h=n(8546),p=function(t){function e(e){var n=t.call(this,e)||this;return n.minHeight=300,n.mediumHeight=380,n.maxHeight=690,n.handleClose=function(){(0,c.o)(!1)},n.handleClickBuyTokens=function(t){t.preventDefault(),chat.buyTokensPopup()},n.popupWrpRef=function(t){n.popupWrpEl=t},n.state={height:n.props.layoverSize.height||n.minHeight},n}return(0,o.C6)(e,t),e.prototype.getAwayBoxPosition=function(){var t=this.getSizeVariantClass(),e="__ex_small"===t?8:"__small"===t?12:17,n=this.props.layover.awayData;if(n)return{top:"".concat(n.top-e,"px"),left:"".concat(n.left-e,"px")}},e.prototype.getSizeVariantClass=function(){var t=this.state.height;return tthis.mediumHeight?"__small":t<=this.mediumHeight?"__ex_small":""},e.prototype.render=function(){var t,e,n=this.getSizeVariantClass();return(0,i.h)("div",{ref:this.rootComponentRef,className:"layover_popup_overlay bc_flex bc_flex_full_center"},(0,i.h)("div",{ref:this.popupWrpRef,className:(0,h.n)((t={layover_popup_wrp:!0},t[n]=Boolean(n),t)),style:this.getAwayBoxPosition()},(0,i.h)("div",{className:"lp_close",onClick:this.handleClose}),(0,i.h)("div",{className:(0,h.n)((e={lp_oops:!0},e[n]=Boolean(n),e))},(0,i.h)("div",{className:"op_header bc_flex bc_flex_items_center"},(0,i.h)("div",{className:"op_h_icon"},"!"),(0,i.h)(r.E,{className:"op_h_info",html:__("%s1%Oops!%s2% Looks like%br% you're out of Tokens!",{br:"
",s1:'',s2:""}),tagName:"div"})),(0,i.h)("div",{className:"op_container bc_flex bc_flex_justify_center"},(0,i.h)("div",{className:"op_msg_block_wrp bc_flex bc_flex_column"},(0,i.h)("div",{className:"op_msg_block"},(0,i.h)(r.E,{className:"op_msg_item",html:__("%s1%Top up your balance%s2% and we'll be able to resume our private chat.",{s1:'',s2:""}),tagName:"div"}),(0,i.h)("div",{className:"op_msg_item __m_alert bc_flex bc_flex_items_center"},trans("I'm %s1%waiting%s2% for you!",{s1:'',s2:""}),(0,i.h)(l.A,{group:"op_msg_icon",icon:"#svg_lv_icon_kiss_smile",url:u.Sp})),(0,i.h)(a.h,{className:"op_msg_picture __round",image:{alt:"",src:chat.options.baseUrl+chat.performerData.avatarUrlMedium}})),(0,i.h)("div",{className:"op_action"},(0,i.h)("a",{className:"op_btn __animation",onClick:this.handleClickBuyTokens},__("Buy Tokens"),(0,i.h)("span",{className:"op_btn_animation"}))))))))},e=(0,o.Cg)([(0,s.Ng)(["layoverSize","layover"])],e)}(d.A)},28177:function(t,e,n){var o=n(15215),i=n(49810),s=n(50172),a=n(22706),l=n(8546),r=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.isIE=a.BrowserDetect.isIE11(),e.container=(0,s._3)(),e.image=null,e}return(0,o.C6)(e,t),e.prototype.loadImage=function(){var t,e,n=this;(null===(t=this.image)||void 0===t?void 0:t.src.split("/").pop())!==(null===(e=this.props.poster)||void 0===e?void 0:e.split("/").pop())&&(this.image=new Image,this.image.onload=function(){if(n.container.current){var t=n.image.width