"use strict";(self.webpackChunkbongacams=self.webpackChunkbongacams||[]).push([[261],{68621:function(t,e,n){n.d(e,{_:function(){return i}});var i=n(19826).A.action((function(t){var e=document.getElementById("EmbedSWF");if(e)return{layoverSize:{height:e.offsetHeight,width:e.offsetWidth}}}))},241:function(t,e,n){n.d(e,{Z:function(){return a}});var i=n(17402),a=function(t){var e=(0,i.useRef)(t);return(0,i.useEffect)((function(){e.current=t}),[t,e]),e.current}},30535:function(t,e,n){n.d(e,{d:function(){return o}});var i=n(19826),a={voyeur:"defaultVoyeurChatTokensPerMinute",group:"defaultGroupChatTokensPerMinute",private:"defaultPrivateChatTokensPerMinute",fullprivate:"defaultFullPrivateChatTokensPerMinute"},s={voyeur:"voyeurChatTokensPerMinute",group:"groupChatTokensPerMinute",private:"privateChatTokensPerMinute",fullprivate:"fullPrivateChatTokensPerMinute"},o=function(t){var e=i.A.getState().chatLocalData;return e[s[t]]!==e[a[t]]}},36980:function(t,e,n){n.d(e,{i:function(){return l}});var i,a=n(15215),s=n(71038);!function(t){t.CHAT_HOLDER="chat_holder",t.CHAT_OFFLINE_HOLDER="chat_offline_holder",t.PROFILE="profile"}(i||(i={}));var o=n(23385),r=n(96575);function l(t,e){var n;if(void 0===t&&(t=!1),void 0===e&&(e=!1),(0,s.VW)(t)){var l=chat&&"offline"===chat.performerStatus,c=document.body.classList.contains("chat_visible");if(e||l){var u=(0,a.Cl)((0,a.Cl)({holder:i.CHAT_OFFLINE_HOLDER},c?{fallbackHolder:i.CHAT_HOLDER}:{}),{displayName:chat.performerData.displayName,username:chat.performerData.username});(0,r.R)("@@ChatEvent/openTip",u),null===(n=o.X.instance)||void 0===n||n.setUserInteractionLock(60)}else chat.tipPopup(t)}}},49100:function(t,e,n){var i=n(15215),a=n(50172),s=n(68621),o=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.rootComponentRef=function(t){return e.rootComponent=t},e.update=function(t){if(e.rootComponent){var n=Math.max(e.minHeight,t||0);n!==e.state.height&&e.setState({height:n})}},e}return(0,i.C6)(e,t),e.prototype.componentWillReceiveProps=function(t){t.layoverSize&&t.layoverSize.height&&Math.max(this.minHeight,t.layoverSize.height||0)!==this.state.height&&this.update(t.layoverSize.height)},e.prototype.componentDidMount=function(){var t=document.getElementById("ResizablePane"),e=t?t.offsetHeight:this.rootComponent.offsetHeight;(0,s._)(),this.update(e)},e}(a.uA);e.A=o},12194:function(t,e,n){n.d(e,{A:function(){return Rt}});var i=n(15215),a=n(50172),s=n(98614),o=n(74213),r=n(33954),l=n(13907),c=n(2874),u=function(t){function e(e){var n=t.call(this,e)||this;return n.refCanvas=function(t){return n.canvas=t},n.refText=function(t){return n.svgText=t},n.refRect=function(t){return n.svgRect=t},n.refSVG=function(t){return n.svgElement=t},n.state={},n}return(0,i.C6)(e,t),e.prototype.updateComponentData=function(t){if(this.canvas&&this.svgText&&this.svgRect&&this.svgElement){var e=t.sex,n=this.svgText.getBBox(),i=Math.floor(n.x)-15,a=Math.floor(n.y)-10,s=Math.floor(n.width)+30,o=Math.floor(n.height)+20,r="".concat(i," ").concat(a," ").concat(s," ").concat(o),u=this.svgRect;if(u.setAttribute("x","".concat(i)),u.setAttribute("y","".concat(a)),u.setAttribute("rx","7"),u.setAttribute("ry","7"),u.setAttribute("width","".concat(s)),u.setAttribute("height","".concat(o)),this.svgElement.setAttribute("viewBox",r),this.layoverPlayer)this.layoverPlayer.attachToCanvas(this.canvas);else{var h=(0,l.oF)("chat/layover/desktop/private");this.layoverPlayer=new c.r(this.canvas),this.layoverPlayer.load("female","".concat(h,"/female/anim.jpg"),309),this.layoverPlayer.load("trans","".concat(h,"/trans/anim.jpg"),376),this.layoverPlayer.load("gay","".concat(h,"/gay/anim.jpg"),333)}this.layoverPlayer.play(e)}},e.prototype.componentDidMount=function(){this.updateComponentData(this.props)},e.prototype.componentDidUpdate=function(){this.updateComponentData(this.props)},e.prototype.shouldComponentUpdate=function(t){return!(t.type===this.props.type&&t.sex===this.props.sex)},e.prototype.componentWillUnmount=function(){this.layoverPlayer&&(this.layoverPlayer.destroy(),this.layoverPlayer=null)},e.prototype.getStatusText=function(){var t=this.props.type,e="";switch(t){case"fullprivate":e=__("I'm in the Full Private Chat right now!");break;case"private":e=__("I'm in Private Chat right now!");break;case"group":e=__("I'm in Group Chat right now!")}return r.isRTLCulture&&(e=e.split("").reverse().join("")),e||t},e.prototype.render=function(){return(0,a.h)("div",{className:"layover"},(0,a.h)("canvas",{key:"layover_canvas",ref:this.refCanvas,width:"96",height:"96"}),(0,a.h)("div",{className:"captionText"},(0,a.h)("svg",{ref:this.refSVG,key:"layover_svg",id:"svg-layover",width:"80%"},(0,a.h)("rect",{ref:this.refRect,id:"svg-rect"}),(0,a.h)("text",{ref:this.refText,id:"svg-text"},this.getStatusText()))))},e.defaultProps={type:"",sex:""},e}(a.uA),h=u,_=n(22847),p=n(49100),d=n(8546),m=function(t){function e(e){var n=t.call(this,e)||this;n.statusMessages=null,n.minHeight=300,n.mediumHeight=350,n.maxHeight=445;var i=chat&&chat.performerData&&(0,l.ip)("@cdn_host")+chat.performerData.avatarUrl.replace("avatars","profile_s");return n.state={height:n.minHeight,avatarUrl:i},n}return(0,i.C6)(e,t),e.prototype.getStatusText=function(){var t,e=this.props.type,n={s1:'',s2:"",s3:'',s4:""};return this.statusMessages||(this.statusMessages=((t={}).private=__("%s1%Private chat will start%s2% %s3%in a moment.%s4%",n),t.fullprivate=__("%s1%Full private chat will start%s2% %s3%in a moment.%s4%",n),t.group=__("%s1%Group chat will start%s2% %s3%in a moment.%s4%",n),t.voyeur=__("%s1%Spy chat will start%s2% %s3%in a moment.%s4%",n),t)),this.statusMessages[e]||""},e.prototype.render=function(){var t=this.props,e=t.chatRoomTitle,n=t.sex,i=this.state,s=i.height,o=i.avatarUrl;return(0,a.h)("div",{className:(0,d.n)({layover_before_private:!0,__male:"gay"===n,__trans:"trans"===n,__small:sthis.mediumHeight,__ex_small:s<=this.mediumHeight}),ref:this.rootComponentRef},(0,a.h)("div",{className:"lbp_wrp bc_flex bc_flex_full_center"},(0,a.h)("div",{className:"lbp_content bc_flex bc_flex_column bc_flex_justify_s_around bc_flex_items_center"},(0,a.h)("div",{className:"lbp_item __img"},(0,a.h)("div",{className:"lbp_spinner_wrp"},(0,a.h)("div",{className:"lbp_spinner"},(0,a.h)("div",{className:"lbp_s_item __right"},(0,a.h)("div",{className:"lbp_bar"})),(0,a.h)("div",{className:"lbp_s_item __left"},(0,a.h)("div",{className:"lbp_bar"})))),(0,a.h)("div",{className:"lbp_avatar"},(0,a.h)("img",{className:"lbp_avatar_img",src:o,alt:e}))),(0,a.h)(_.E,{tagName:"div",className:"lbp_item __title",html:__("Please, wait.%_before_private_%",{br:"
"})}),(0,a.h)(_.E,{tagName:"div",className:"lbp_item __info",html:this.getStatusText()}))))},e=(0,i.Cg)([(0,s.Ng)(["chatRoomTitle","layoverSize"])],e)}(p.A),f=m,v=n(52804),b=n(99353),y=function(t){function e(e){var n=t.call(this,e)||this;n.statusMessages=null,n.changeIsLandscape=(0,b.s)((function(){n.setState({isLandscapeHor:Boolean((0,v.Yg)())})}),100);var i=chat&&chat.performerData&&(0,l.ip)("@cdn_host")+chat.performerData.avatarUrl.replace("avatars","profile_s");return n.state={avatarUrl:i,isLandscapeHor:(0,v.Yg)()},n}return(0,i.C6)(e,t),e.prototype.componentDidMount=function(){window.addEventListener("orientationchange",this.changeIsLandscape)},e.prototype.componentWillUnmount=function(){window.removeEventListener("orientationchange",this.changeIsLandscape)},e.prototype.getStatusText=function(){var t,e=this.props.type,n={s1:'',s2:"",s3:'',s4:""};return this.statusMessages||(this.statusMessages=((t={}).private=__("%s1%Private chat will start%s2% %s3%in a moment.%s4%",n),t.fullprivate=__("%s1%Full private chat will start%s2% %s3%in a moment.%s4%",n),t.group=__("%s1%Group chat will start%s2% %s3%in a moment.%s4%",n),t.voyeur=__("%s1%Spy chat will start%s2% %s3%in a moment.%s4%",n),t)),this.statusMessages[e]||""},e.prototype.render=function(){var t=this.props,e=t.chatRoomTitle,n=t.sex,i=t.isTablet,s=this.state.avatarUrl;return(0,a.h)("div",{className:(0,d.n)({layover_before_private:!0,__male:"gay"===n,__trans:"trans"===n,__hor:this.state.isLandscapeHor,__tablet:i})},(0,a.h)("div",{className:"lbp_wrp bc_flex bc_flex_full_center"},(0,a.h)("div",{className:"lbp_content bc_flex bc_flex_column bc_flex_justify_s_around bc_flex_items_center"},(0,a.h)("div",{className:"lbp_item __img"},(0,a.h)("div",{className:"lbp_spinner_wrp"},(0,a.h)("div",{className:"lbp_spinner"},(0,a.h)("div",{className:"lbp_s_item __right"},(0,a.h)("div",{className:"lbp_bar"})),(0,a.h)("div",{className:"lbp_s_item __left"},(0,a.h)("div",{className:"lbp_bar"})))),(0,a.h)("div",{className:"lbp_avatar"},(0,a.h)("img",{className:"lbp_avatar_img",src:s,alt:e}))),(0,a.h)(_.E,{tagName:"div",className:"lbp_item __title",html:__("Please, wait.%_before_private_%",{br:"
"})}),(0,a.h)(_.E,{tagName:"div",className:"lbp_item __info bc_flex bc_flex_column bc_flex_items_center",html:this.getStatusText()}))))},e=(0,i.Cg)([(0,s.Ng)(["chatRoomTitle","isTablet"])],e)}(a.uA),g=y,x=n(47885),w=n(99996),P=n(23736),T=n(21129),N=function(t){function e(e){var n=t.call(this,e)||this;return n.src="",n.timer=0,n.playing=!1,n.offscreenCanvas=null,n.offscreenContext=null,n.canvasElement=null,n.canvasContext=null,n.canvasElementRef=function(t){n.canvasElement=t,t&&(t.id="blurredStream",t.style.width="100%",t.style.height="100%",t.width=n.offscreenCanvas.width,t.height=n.offscreenCanvas.height,n.canvasContext=t.getContext("2d"))},n.loadFrame=function(){n.resetTimer();var t=n,e=Date.now(),i=new Image;i.crossOrigin="anonymous",i.onload=function(){if(!t.playing)return;var n=Date.now()-e;t.drawFrame(this),t.requestNextFrame(100-n)},i.onerror=function(){if(!t.playing)return;var n=Date.now()-e;t.requestNextFrame(100-n)},i.src=n.src+"?"+e},n.state={},n}return(0,i.C6)(e,t),e.prototype.componentDidMount=function(){(0,P.S)()?(this.src=(0,w.N)({type:"blurred",streamName:(0,P.S)()}),this.playing||(this.playing=!0,this.loadFrame())):(this.playing=!1,this.resetTimer())},e.prototype.resetTimer=function(){this.timer&&(clearTimeout(this.timer),this.timer=0)},e.prototype.requestNextFrame=function(t){this.resetTimer(),this.timer=window.setTimeout(this.loadFrame,Math.max(5,t))},e.prototype.drawFrame=function(t){var e=this.canvasElement;if(!(!e||!this.canvasContext||!t||t.width<1||t.height<1))try{t.width&&t.height&&(this.offscreenContext.drawImage(t,0,0,t.width,t.height,0,0,this.offscreenCanvas.width,this.offscreenCanvas.height),(0,T.xY)(this.offscreenCanvas,0,0,this.offscreenCanvas.width,this.offscreenCanvas.height,4),this.canvasContext.drawImage(this.offscreenCanvas,0,0,this.offscreenCanvas.width,this.offscreenCanvas.height,0,0,e.width,e.height))}catch(t){0}},e.prototype.componentWillMount=function(){this.offscreenCanvas=document.createElement("canvas"),this.offscreenContext=this.offscreenCanvas.getContext("2d"),this.offscreenCanvas.width=128,this.offscreenCanvas.height=128},e.prototype.componentWillUnmount=function(){this.offscreenContext=null,this.offscreenCanvas=null,this.playing=!1,this.resetTimer()},e.prototype.componentWillReceiveProps=function(t){var e=(0,P.S)();e?(this.src=(0,w.N)({type:"blurred",streamName:e}),this.playing||(this.playing=!0,this.loadFrame())):(this.playing=!1,this.resetTimer())},e.prototype.render=function(){return(0,a.h)("canvas",{id:"blurred_stream",ref:this.canvasElementRef})},e.defaultProps={},e}(a.uA),C=N,S=n(26580),E=n(17963),F=function(t){return"0".concat(t).slice(-2)},L=function(t){function e(e){var n=t.call(this,e)||this;n.timerHandler=function(){var t=(0,E.ID)(),e=n.state,i=e.seconds,a=e.minutes,s=e.hours;t.seconds===i&&t.minutes===a&&t.hours===s||n.setState(t)};var a=(0,E.ID)();return n.state=(0,i.Cl)({},a),n}return(0,i.C6)(e,t),e.prototype.componentDidMount=function(){clearInterval(this.timerInterval),this.timerInterval=window.setInterval(this.timerHandler,250)},e.prototype.componentWillUnmount=function(){clearInterval(this.timerInterval)},e.prototype.render=function(){var t=this.props,e=t.className,n=t.classDots,i=this.state,s=i.hours,o=i.minutes,r=i.seconds;return(0,a.h)("span",{className:e},F(s),(0,a.h)("span",{className:n},":"),F(o),(0,a.h)("span",{className:n},":"),F(r))},e.defaultProps={className:"llb_timer",classDots:"llb_t_point"},e}(a.uA),k=L,I=n(61553),O=function(t){var e=t.currency,n=t.minPackageAmount,i=t.layoverSize;return{chatHost:t.chatHost,currency:e,minPackageAmount:n,layoverSize:i}},A=function(t){function e(e){var n=t.call(this,e)||this;return n.minHeight=290,n.mediumHeight=330,n.maxHeight=500,n.state={height:n.minHeight},n}return(0,i.C6)(e,t),e.prototype.render=function(){var t=this.props,e=t.chatHost,n=t.minPackageAmount,i=t.currency,s=this.state.height;return(0,a.h)("div",{className:(0,d.n)({"layover layover_limit_blur":!0,__small:sthis.mediumHeight,__ex_small:s<=this.mediumHeight}),ref:this.rootComponentRef},(0,a.h)(C,{host:e?e.username:null}),(0,a.h)("div",{className:"llb_wrapper bc_flex bc_flex_full_center"},(0,a.h)("div",{className:"llb_inner bc_flex bc_flex_column bc_flex_items_center"},(0,a.h)("div",{className:"llb_caption"},(0,a.h)("p",{className:"llb_cp_text"},trans("%s1%Wait for %icon% %timer%%s2% or continue watching right now!%_layover_limit_%",{s1:'',s2:"
",icon:'',timer:''},{"object.SVGIcon":S.A,LimitTimer:k}))),(0,a.h)("div",{className:"llb_content bc_inline_flex bc_flex_column bc_flex_justify_s_around"},(0,a.h)("p",{className:"llb_cn_text"},trans("Buy Tokens, and you will get%br% %s1%%icon_arrow% unlimited access%s2% to online broadcasts! %icon_smile%",{br:"
",s1:'',s2:"",icon_arrow:'',icon_smile:''},{"object.SVGIcon":S.A})),(0,a.h)("div",{className:"llb_btn_wrp"},(0,a.h)("a",{href:(0,l.ip)("@member_buy_tokens")+"?ntpop=".concat(9e3),className:"mls_btn mls_btn_dark_green llb_btn js-ab_limit_blur",rel:"buy_tokens"},__("Buy Tokens")),(0,a.h)("div",{className:"llb_price"},__("Starting from %lowest_price%",{lowest_price:I.S.format(n,i)}))))),(0,a.h)("div",{className:"llb_window"},(0,a.h)("div",{className:"llb_w_item __title"},__("Free limit exceeded.")),(0,a.h)("div",{className:"llb_w_item __desc"},trans("%sn%%a1%Buy Tokens%a2% %icon_coins%%sn_cl% and%br% %s1%continue %sn%watching %icon_flame%%sn_cl%%s2%%br% right now!",{icon_coins:'',icon_flame:'',sn:'',sn_cl:"",s1:'',s2:"",a1:'',a2:"",br:"
"},{"object.SVGIcon":S.A})))))},e.defaultProps={},e=(0,i.Cg)([(0,s.Ng)(O)],e)}(p.A),R=A,H=n(46517),G=n(30535),M=n(27510),V=n(83814),j=function(t){var e,n=t.className,i=t.href,s=void 0===i?"#join":i;return(0,a.h)(V._,{tagName:"a",href:s,className:(0,d.n)((e={layoverLimitText:!0},e["".concat(n)]=n,e)),text:"You've watched all of the video you%br%can as a guest today!%br%%br%%span_start%Create a 100% FREE account%span_end%%br%to watch more!",params:{br:"
",span_start:'',span_end:""}})},D=function(t){var e,n=t.className,i=t.onClick;return(0,a.h)(V._,{tagName:"a",className:(0,d.n)((e={layoverLimitText:!0},e["".concat(n)]=n,e)),text:"You've watched all of the video you%br%can as a FREE member today!%br%%br%%span_start%Only premium members%br%get to enjoy unlimited video.%span_end%%br%Buy any amount of tokens just once,%br%and become a premium member for life!",params:{br:"
",span_start:'',span_end:""},onClick:i})},B=n(51560),U={width:2116,height:1587,buttonPositionX:1191,buttonPositionY:1118,buttonWidth:730,buttonHeight:146,textLineHeight:1.2,textPositionX:1556,text1PositionY:350,text2PositionY:430,text3PositionY:510,notice1PositionY:688,notice2PositionY:796,notice3PositionY:900},Y={width:2816,height:1584,buttonPositionX:1502,buttonPositionY:1122,buttonWidth:764,buttonHeight:152,textLineHeight:1.3,textPositionX:1884,text1PositionY:370,text2PositionY:450,text3PositionY:530,notice1PositionY:684,notice2PositionY:776,notice3PositionY:860},z=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.isHD=B.A.isVideoHD(),e.svgOptions=(0,i.Cl)((0,i.Cl)({},U),{buttonPositionX:U.buttonPositionX,buttonTextPositionX:U.buttonWidth/2+U.buttonPositionX,buttonTextPositionY:U.buttonHeight/2+U.buttonPositionY}),e.svgOptionsHD=(0,i.Cl)((0,i.Cl)({},Y),{buttonPositionX:Y.buttonPositionX,buttonTextPositionX:Y.buttonWidth/2+Y.buttonPositionX,buttonTextPositionY:Y.buttonHeight/2+Y.buttonPositionY}),e.currentSVGOptions=e.isHD?e.svgOptionsHD:e.svgOptions,e}return(0,i.C6)(e,t),e.prototype.render=function(){var t='\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n '.concat(__("%t1%You’ve watched all of%t_end%%t2%the videos you can, %s1%as a%s_end%%t_end%%t3%%s1%guest today!%s_end%%t_end%",{t1:''),t2:''),t3:''),t_end:"",s1:'',s_end:""}),"\n \n \n ").concat(__("%s1%Create a%s_end%%s2%100% free account%s_end%%s3%to watch more!%s_end%",{s1:''),s2:''),s3:''),s_end:""}),"\n \n ");return(0,a.h)(_.E,{tagName:"svg",html:"\n ".concat(t,'\n \n \n ').concat(__("Join now for free"),"\n \n \n "),className:"l_limit_svg".concat(this.isHD?" __l_hd":""),width:"100%",height:"100%",viewBox:"0 0 ".concat(this.currentSVGOptions.width," ").concat(this.currentSVGOptions.height),xmlns:"http://www.w3.org/2000/svg",direction:r.isRTLCulture?"rtl":"ltr"})},e=(0,i.Cg)([(0,s.Ng)("lang")],e)}(a.uA),W=z,X=n(41669),q=function(t){var e=t.type,n=t.center,i=(0,H.d4)((function(t){return t.isMobile})),s=(0,H.d4)((function(t){return t.isAuthenticated})),o=(0,H.d4)((function(t){return t.isMemberBanned})),r=(0,H.d4)((function(t){return t.isMemberKicked})),l=(0,H.d4)((function(t){var e;return null===(e=t.chatLocalData)||void 0===e?void 0:e.groupChatTokensPerMinute})),c=!o&&!r&&!["vip","limit"].includes(e);i||(c=!0);var u="limit"===e,h="private"===e,_="group"===e,p=n||["private","group"].includes(e),d=s?(0,a.h)(D,{onClick:function(t){t.preventDefault(),chat.buyTokensPopup()}}):(0,a.h)(j,null),m=s?null:(0,a.h)(W,null),f=h&&(0,G.d)(M.j.VOYEUR_CHAT)||_&&(0,G.d)(M.j.GROUP_CHAT),v=_?function(t){t.preventDefault(),chat.gotoGroupChat()}:function(t){t.preventDefault(),chat.gotoVoyeur()},b=["away","offline"].includes(e)&&!i;return{isMobile:i,isLimit:u,isCenter:p,isShowAway:b,isPrivate:h,isInGroup:_,isCustomPrice:f,isTextVisible:c,tokensPerMinute:l,LayoverLimitText:m,LayoverLimitTextMobile:d,handleClick:function(t){if(!i&&"limit"===e){var n=t.target;n&&n.classList.contains("js-lls_join_button")&&function(t){X.signupEvent.call(void 0,{e:t,isClick:!0})}(t)}},handleSpyButtonClick:v}},Z=n(17402),K=n(92276),$=n(21492),J=function(t){return(null==t?void 0:t.awayLayoutOptions)||{}},Q=(0,Z.forwardRef)((function(t,e){var n,i=t.isAway,s=(n=(0,H.d4)(J),(0,Z.useMemo)((function(){return(null==n?void 0:n.avatarUrl)?{src:n.avatarUrl}:null}),[n]));return s?(0,a.h)(Z.Fragment,null,(0,a.h)($.h,{className:"wsf_avatar",image:s}),(0,a.h)("div",{ref:e,className:"wsf_title"},i&&__("I'm Away"),!i&&__("I'm Offline"))):null})),tt=n(22706),et=n(73568),nt=n(22078),it=n(75015),at=n(91196),st=n(61710),ot=n(63065),rt=n(10456),lt=function(t){var e=t.data.imageUrls,n=function(t){var e=t.data,n=e.albumId,a=e.photoId,s=(0,H.d4)((function(t){var e;return null===(e=t.awayLayoutOptions)||void 0===e?void 0:e.username})),o=(0,H.d4)(st.q),r=(0,rt.O)((0,ot.o)((0,ot.o)(s))).actions.openGalleryAlbum;return{actions:{handleClickPreviewImage:function(){return(0,i.sH)(void 0,void 0,void 0,(function(){var t;return(0,i.YH)(this,(function(e){switch(e.label){case 0:return s&&(null==o?void 0:o.length)&&(t=o.find((function(t){return t.albumId===Number(n)})))?[4,r({albumList:o,albumToOpen:t,photoIdToOpen:Number(a)})]:[2];case 1:return e.sent(),[2]}}))}))}}}}(t).actions.handleClickPreviewImage;return(0,a.h)("div",{className:"ws_big_item",onClick:n},(0,a.h)("img",{className:"ws_big_item_image",alt:"",src:e.portrait_thumb}))},ct=function(t){var e=t.awayPhotos;return e.length?(0,a.h)("div",{className:"ws_bi_gallery"},e.map((function(t){var e,n;return(null===(e=t.imageUrls)||void 0===e?void 0:e.portrait_thumb)?(0,a.h)(lt,{key:null===(n=t.imageUrls)||void 0===n?void 0:n.portrait_thumb,data:t}):null}))):null},ut=function(t){return void 0===t&&(t={}),t?Object.values(t):[]},ht=function(t){var e=t.addFitTextLinks,n=t.addFitTextTitles,i=t.awayPhotos,s=t.photosLink,o=function(t){var e=t.awayPhotos,n=(0,Z.useState)(ut(e)),i=n[0],a=n[1],s=(0,Z.useRef)(i.length);return(0,Z.useEffect)((function(){a(ut(e))}),[e]),(0,Z.useEffect)((function(){s.current=i.length}),[i]),{isExistImage:s.current,awayPhotosArray:i}}({awayPhotos:i}),r=o.awayPhotosArray,l=o.isExistImage,c=Boolean(s);return l?(0,a.h)("div",{className:"ws_board_item __gallery"},(0,a.h)("div",{className:"ws_bi_inner"},(0,a.h)("span",{className:"ws_bi_top"},(0,a.h)("span",{className:"ws_bi_icon_wrap"},(0,a.h)(S.A,{group:"ws_bi_icon",icon:"#svg_lv_icon_view"})),(0,a.h)("span",{className:"ws_bi_text_wrap"},(0,a.h)("span",{className:"ws_bi_text",ref:n},__("View photos and videos%_waiting_stub_%")))),(0,a.h)(ct,{awayPhotos:r}),c&&(0,a.h)("a",{className:"ws_b_link",href:s,target:"_blank",ref:e},__("View All")))):null},_t=n(69022),pt=(0,Z.forwardRef)((function(t,e){var n=t.addFitTextTitles,i=t.onClick,s=t.isSubscribed,o=(0,H.d4)(_t.WQ);return!(0,nt.j)(o)||o.isBannedLogged2Profile||o.isBannedProfile2Logged?null:(0,a.h)("button",{className:"ws_board_item __button __notify",type:"button",ref:e,onClick:i},(0,a.h)("div",{className:"ws_bi_inner"},(0,a.h)("span",{className:"ws_bi_icon_wrap"},(0,a.h)(S.A,{group:"ws_bi_icon",icon:"#svg_lv_icon_bell"}))),(0,a.h)("div",{className:(0,d.n)({ws_bi_inner:!0,__visible:s,__hide:!s})},(0,a.h)("span",{className:"ws_bi_icon_wrap"},(0,a.h)(S.A,{group:"ws_bi_icon",icon:"#svg_lv_icon_cancel_notify"})),(0,a.h)("span",{className:"ws_bi_text_wrap"},(0,a.h)("span",{className:"ws_bi_text",ref:n},__("Cancel online notifications%_waiting_stub_%")))),(0,a.h)("div",{className:(0,d.n)({ws_bi_inner:!0,__visible:!s,__hide:s})},(0,a.h)("span",{className:"ws_bi_icon_wrap"},(0,a.h)(S.A,{group:"ws_bi_icon",icon:"#svg_lv_icon_notify"})),(0,a.h)("span",{className:"ws_bi_text_wrap"},(0,a.h)("span",{className:"ws_bi_text",ref:n},__("Notify when online%_waiting_stub_%")))))})),dt=(0,Z.memo)(pt),mt=function(t){var e=t.displayName,n=void 0===e?"":e,i=t.profileLink,s=void 0===i?"":i,o=t.avatarUrl,r=void 0===o?"":o,l=t.addFitTextLinks,c=t.addFitTextSingleText;return(0,a.h)("div",{className:"ws_b_profile"},(0,a.h)("div",{className:"ws_b_profile_inner"},(0,a.h)("span",{className:"ws_bp_avatar_wrap"},(0,a.h)("img",{className:"ws_bp_avatar",src:r,alt:n})),(0,a.h)("div",{className:"ws_bp_content"},(0,a.h)("span",{className:"ws_bp_name",ref:c},(0,a.h)("span",{className:"ws_bp_name_inner"},n)),(0,a.h)("a",{className:"ws_b_link",href:s,target:"_blank",rel:"profile",ref:l},__("View full profile")))))},ft=n(36980),vt=function(t){var e=t.addFitTextTitles,n=t.addFitTextSingleText,i=(0,Z.useCallback)((function(){return(0,ft.i)(!1,!0)}),[]);return(0,a.h)("button",{className:"ws_board_item __button __tip",type:"button",onClick:i},(0,a.h)("div",{className:"ws_bi_inner"},(0,a.h)("span",{className:"ws_bi_icon_wrap"},(0,a.h)(S.A,{group:"ws_bi_icon",icon:"#svg_lv_icon_tip"})),(0,a.h)("span",{className:"ws_bi_text_wrap"},(0,a.h)("span",{className:"ws_bi_text",ref:e},__("Send offline tip%_waiting_stub_%")),(0,a.h)("span",{className:"ws_bi_text_small",ref:n},__("You can add a message.")))))},bt=n(80554),yt=function(t){var e=t.parent,n=t.options,i=(0,Z.useRef)([]),a=(0,Z.useRef)(e.current),s=(0,Z.useCallback)((function(t){i.current.push(t)}),[]),o=(0,Z.useCallback)((function(t){a.current=t}),[]);return{addFitTextElement:s,resetFitTextElement:(0,Z.useCallback)((function(){i.current=i.current.filter((function(t){return Boolean(t)&&Boolean(null==t?void 0:t.parentElement)}))}),[]),doFitText:(0,Z.useCallback)((function(){i.current.length&&(i.current=i.current.filter((function(t){return Boolean(t)&&Boolean(null==t?void 0:t.parentElement)})),(0,et.$)(i.current,a.current,n))}),[n]),setParentFitTextElement:o}},gt=n(241),xt=n(20987),wt=function(t){var e=t.awayLayoutOptions,n=(0,Z.useState)(!0),a=n[0],s=n[1],o=(0,Z.useState)(!1),r=o[0],l=o[1],c=(0,Z.useRef)(!1),u=(0,Z.useRef)(!1),h=(0,gt.Z)(e.username),_=!(!e||void 0!==e.username)||void 0;return(0,Z.useEffect)((function(){!c.current&&e.username&&l(!0)}),[e.username]),(0,Z.useEffect)((function(){e.username!==h&&(u.current=!0,s(!0),c.current=!1)}),[e.username,h]),(0,Z.useEffect)((function(){return function(){c.current=!1}}),[]),(0,Z.useEffect)((function(){var t;if(r&&!c.current){u.current=!1;Promise.all((0,i.fX)([(0,xt.A)(null==e?void 0:e.avatarUrl)],Object.values(null!==(t=null==e?void 0:e.awayPhotos)&&void 0!==t?t:{}).map((function(t){var e;return(0,xt.A)(null===(e=null==t?void 0:t.imageUrls)||void 0===e?void 0:e.portrait_thumb)})),!0)).then((function(){u.current||setTimeout((function(){c.current=!0,s(!1)}),16)}))}}),[null==e?void 0:e.avatarUrl,null==e?void 0:e.awayPhotos,r]),{isLoading:_||!c.current||a}},Pt=function(t){var e=wt(t).isLoading,n=function(t){var e=t.layover,n=t.awayLayoutOptions,i=(0,Z.useRef)(null),a=(0,Z.useRef)(0),s=(0,Z.useRef)(0),o=(0,Z.useState)(!1),r=o[0],l=o[1],c=(0,gt.Z)(n.username),u=yt({parent:i}),h=u.addFitTextElement,_=u.doFitText,p=u.resetFitTextElement,d=yt({parent:i,options:{syncSize:!0}}),m=d.addFitTextElement,f=d.doFitText,v=d.resetFitTextElement,b=yt({parent:i,options:{syncSize:!0}}),y=b.addFitTextElement,g=b.doFitText,x=b.resetFitTextElement,w=(0,Z.useCallback)((function(){clearTimeout(a.current),clearTimeout(s.current),s.current=window.setTimeout((function(){_(),f(),g()}),50),a.current=window.setTimeout((function(){l(!0)}),100)}),[_,g,f]);return(0,Z.useEffect)((function(){n.username!==c&&(l(!1),clearTimeout(a.current),clearTimeout(s.current),a.current=window.setTimeout(w,16))}),[n.username,c,w]),(0,Z.useEffect)((function(){var t=document.getElementById("ResizablePane");return t.addEventListener(bt.R.RESIZE_PLAYER,w),function(){t.removeEventListener(bt.R.RESIZE_PLAYER,w)}}),[w]),(0,Z.useEffect)((function(){(null==e?void 0:e.type)&&w()}),[w,null==e?void 0:e.type]),(0,Z.useEffect)((function(){w()}),[w]),{addFitTextTitles:m,addFitTextLinks:y,addFitTextSingleText:h,resetSingleText:p,resetTitlesText:v,resetLinksText:x,parentRef:i,isFitText:r}}(t),i=n.parentRef,a=n.addFitTextTitles,s=n.addFitTextSingleText,o=n.addFitTextLinks,r=n.isFitText;return{addFitTextTitles:a,addFitTextLinks:o,addFitTextSingleText:s,parentRef:i,isLoading:e||!r}},Tt=function(){var t=(0,H.d4)((function(t){var e,n,i,a,s,o;return{awayLayoutOptions:t.awayLayoutOptions,layover:t.layover,isSubscribedForEmail:null===(i=null===(n=null===(e=t.miniProfile)||void 0===e?void 0:e.actions)||void 0===n?void 0:n.subscribeOnlineNotificationButton)||void 0===i?void 0:i.isSubscribedForEmail,isSubscribedForPush:null===(o=null===(s=null===(a=t.miniProfile)||void 0===a?void 0:a.actions)||void 0===s?void 0:s.subscribeOnlineNotificationButton)||void 0===o?void 0:o.isSubscribedForPush}})),e=t.awayLayoutOptions,n=t.layover,i=t.isSubscribedForEmail,s=t.isSubscribedForPush,o=Pt({awayLayoutOptions:e,layover:n}),r=o.parentRef,l=o.addFitTextLinks,c=o.addFitTextSingleText,u=o.addFitTextTitles,h=o.isLoading,_=(0,at.t)({modelUsername:e.username,isSubscribedForEmail:i,isSubscribedForPush:s}),p=_.actions,m=p.handleGetNotificationWithModernWrapper,f=p.handleCloseNotificationPopup,v=_.states,b=v.contentPopoverNotificationData,y=v.isAnyNotificationSubscriptionActive;return(0,nt.j)(e)?(0,a.h)("div",{ref:r,className:(0,d.n)({ws_board:!0,__loading:h,__with_gallery:(null==e?void 0:e.awayPhotos)&&Boolean(Object.values(e.awayPhotos).length)})},(0,a.h)("div",{className:"wsb_info"},(0,a.h)(mt,{addFitTextLinks:l,addFitTextSingleText:c,avatarUrl:null==e?void 0:e.avatarUrl,displayName:null==e?void 0:e.displayName,profileLink:null==e?void 0:e.profileLink}),(0,a.h)(vt,{addFitTextSingleText:c,addFitTextTitles:u}),(0,a.h)(it.y,{className:"popover_online_notification __stream_container",content:function(t){var e=t.setPopoverClose;return(0,a.h)(at.o,{data:b,onCloseClick:e})},trigger:(0,a.h)(dt,{addFitTextTitles:u,isSubscribed:y}),onBeforeOpen:m,onClose:f})),(0,a.h)(ht,{addFitTextLinks:l,addFitTextTitles:u,awayPhotos:e.awayPhotos,photosLink:e.photosLink})):null},Nt=(0,Z.forwardRef)((function(t,e){var n=t.isAway;return(0,a.h)("div",{ref:e,className:"ws_title"},(0,a.h)(_.E,{className:"ws_title_inner",html:n?__("I'm %s1%Away%s2%",{s1:'',s2:""}):__("I'm %s1%Offline%s_end%",{s1:'',s_end:""}),tagName:"p"}))})),Ct=function(t){var e=t.children,n=t.isFloatingPlayer,i=t.isWide,s=function(t){var e=(0,Z.useRef)(),n=(0,Z.useState)((function(){return o()})),i=n[0],a=n[1];function s(){var t=e.current;return t||(t=document.getElementById("ResizablePane"),e.current=t),t}function o(){var t=s();return!!t&&t.offsetHeight<544}var r=function(){a(o())};return(0,Z.useEffect)((function(){var e=s();if(!t&&e)return r(),e.addEventListener(bt.R.RESIZE_PLAYER,r),function(){e.removeEventListener(bt.R.RESIZE_PLAYER,r)}}),[t]),{isHorizontalVersion:i}}(n).isHorizontalVersion;return(0,a.h)("div",{className:(0,d.n)({waiting_stub:!0,__floating:n,__horizontal:!n&&s,__wide:!n&&i})},e)};function St(t){return{awayLayoutOptions:t.awayLayoutOptions,layover:t.layover,layoverSize:t.layoverSize,streamOptions:t.streamOptions,isFloatingPlayer:t.isFloatingPlayer}}var Et=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.isMS=Boolean(tt.BrowserDetect.detectIE())||Boolean(tt.BrowserDetect.isEdge_Origin()),e.floatingFixCounter=0,e.resize=function(){e.textEl&&(e.isMS?(e.textEl.style.height="100%",(0,et.$)(e.textEl),e.textEl.style.height=""):e.textEl.classList.contains("__hidden")?setTimeout((function(){e.textEl&&((0,et.$)(e.textEl),e.textEl.classList.remove("__hidden"))}),1):(0,et.$)(e.textEl))},e.fullscreenChangeHandler=function(){e.resize()},e.textRef=function(t){e.textEl=t},e}return(0,i.C6)(e,t),e.prototype.hideLayoverTextElement=function(){this.textEl&&this.textEl.classList.add("__hidden")},e.prototype.componentDidMount=function(){this.hideLayoverTextElement(),this.resize(),document.addEventListener("fullscreenchange",this.fullscreenChangeHandler)},e.prototype.componentWillUnmount=function(){this.hideLayoverTextElement(),document.removeEventListener("fullscreenchange",this.fullscreenChangeHandler)},e.prototype.shouldComponentUpdate=function(t){var e,n,i,a,s,o=this.props,r=o.awayLayoutOptions,l=o.layoverSize,c=o.isFloatingPlayer;return!!(null==r?void 0:r.username)&&((null==r?void 0:r.username)!==(null===(e=t.awayLayoutOptions)||void 0===e?void 0:e.username)||(null===(i=null===(n=this.props)||void 0===n?void 0:n.layover)||void 0===i?void 0:i.type)!==(null===(a=null==t?void 0:t.layover)||void 0===a?void 0:a.type)&&(null===(s=null==t?void 0:t.layover)||void 0===s?void 0:s.visible)||c!==t.isFloatingPlayer||!t.isFloatingPlayer&&l.width!==t.layoverSize.width)},e.prototype.componentDidUpdate=function(t){var e=this.props.isFloatingPlayer;if(this.resize(),t.isFloatingPlayer!==e){var n=Boolean(document.querySelector(".player_gui"));(t.isFloatingPlayer&&n||e&&!n)&&(this.hideBase(),this.waitAnimationEnd(e))}},e.prototype.waitAnimationEnd=function(t){var e=this;clearInterval(this.floatingFixTimer),this.floatingFixCounter=0,this.floatingFixTimer=window.setInterval((function(){var n=Boolean(document.querySelector(".player_gui"));e.floatingFixCounter++,(n===t||e.floatingFixCounter>100)&&(clearInterval(e.floatingFixTimer),e.resize(),e.showBase())}),50)},e.prototype.hideBase=function(){this.rootComponent&&(this.rootComponent.style.visibility="hidden")},e.prototype.showBase=function(){this.rootComponent&&this.rootComponent.style.visibility&&(this.rootComponent.style.visibility="")},e.prototype.render=function(){var t=this.props,e=t.streamOptions,n=t.type,i=void 0===n?"":n,s=t.isFloatingPlayer,o="away"===i,r=B.A.isWideScreen(e.quality)||e.isMobileStream;return(0,a.h)(Ct,{isFloatingPlayer:s,isWide:r},s&&(0,a.h)(Q,{ref:this.textRef,isAway:o}),!s&&(0,a.h)(Z.Fragment,null,(0,a.h)(Nt,{ref:this.textRef,isAway:o}),(0,a.h)(Tt,null)))},e=(0,i.Cg)([(0,s.Ng)(St)],e)}(K.I),Ft=Et,Lt=n(2268),kt=function(t){var e=t.isInGroup,n=t.isCustomPrice,i=t.tokensPerMinute,s=t.onClick,o=e?"Group":"Voyeur",r=e?__("Join Group Chat"):__("Spy Private Chat"),l=e?"group_link_price":"voyeur_link_price";return(0,a.h)("a",{className:"layoverButton layoverButton".concat(o),onClick:s},r,(0,a.h)("span",{className:"".concat(l," js-price")},"(",(0,a.h)("span",{className:(0,d.n)({spy_link_price_custom:n})},i," ",Lt.kX.pluralise("tokens",i))," ".concat(__("per minute")),")"))},It=function(t){var e=t.type,n=t.url,i=(t.center,q(t)),s=i.isMobile,o=i.isLimit,r=i.isCenter,l=i.isShowAway,c=i.isPrivate,u=i.isInGroup,h=i.isCustomPrice,_=i.isTextVisible,p=i.tokensPerMinute,m=i.LayoverLimitText,f=i.LayoverLimitTextMobile,v=i.handleClick,b=i.handleSpyButtonClick;return(0,a.h)("div",{className:"layover",style:{backgroundImage:"url(".concat(n,")")},onClick:v},o&&s&&f,o&&!s&&m,_&&(0,a.h)("span",{className:(0,d.n)({layoverText:!0,layoverCenter:r})},s&&(0,a.h)("span",{className:"layoverIns"},function(t,e){if(void 0===e&&(e=!1),e)switch(t){case"private":return __("I'm in Private Chat");case"fullprivate":return __("I'm in Full Private Chat");case"group":return __("I'm in Group Chat")}switch(t){case"away":return __("I'm Away");case"private":return __("I'm Private");case"fullprivate":return __("I'm Full Private");case"group":return __("I'm Group");case"offline":return __("I'm Offline")}}(e,s)),!s&&(u||c)&&(0,a.h)(kt,{isInGroup:u,isCustomPrice:h,tokensPerMinute:p,onClick:b})),l&&(0,a.h)(Ft,{type:e}))},Ot=function(t){return{awayLayoutOptions:t.awayLayoutOptions,isAuthenticated:t.isAuthenticated,isFloatingPlayer:t.isFloatingPlayer,isMobile:t.isMobile}},At=function(t){function e(e){var n=t.call(this,e)||this;return n.isPrivate=function(t){return["private","fullprivate","group","voyeur"].indexOf(t)>=0},n.getLayoverUrl=function(){var t=n.props,e=t.awayLayoutOptions,i=t.url,a=t.isFloatingPlayer,s=null==e?void 0:e.avatarUrl;return a&&s?s:i},n.state={},n}return(0,i.C6)(e,t),e.prototype.render=function(){var t=this.props,e=t.center,n=t.sex,i=(t.url,t.visible),s=t.wait,r=t.isAuthenticated,l=t.isMobile,c=this.props.type;if(s&&this.isPrivate(c))return l?(0,a.h)(g,{sex:n,type:c}):(0,a.h)(f,{sex:n,type:c});if(!i)return"";if(l||"limit"!==c){if("limit_blur"===c){if(!l)return(0,a.h)(R,null);c="limit"}}else if(r&&o.M.isNewVersion(257))return(0,a.h)(R,null);return this.isPrivate(c)&&!l?(0,a.h)(h,{sex:n,type:c}):(0,a.h)(It,{center:e,type:c,url:this.getLayoverUrl()})},e.defaultProps={center:!1,sex:"",type:"",url:"",isAuthenticated:!1,isMobile:!1},e=(0,i.Cg)([(0,s.Ng)(Ot)],e)}(a.uA),Rt=At},69341:function(t,e,n){n.d(e,{Fd:function(){return a},Mq:function(){return s},gz:function(){return o.g}});var i=n(50172),a=function(t){var e=t.style,n=void 0===e?null:e;return(0,i.h)("span",{className:"player-spinner spinner spinner-small spinner-default __white",style:n})},s=function(t){var e=t.style,n=void 0===e?null:e;return(0,i.h)("div",{className:"player-spinner spinner spinner-quads video_loader",style:n},(0,i.h)("div",{className:"q q1"}),(0,i.h)("div",{className:"q q2"}),(0,i.h)("div",{className:"q q3"}),(0,i.h)("div",{className:"q q4"}))},o=n(99935)},4761:function(t,e,n){var i=n(50172),a=n(17402);e.A=(0,a.memo)((function(){return(0,i.h)("div",{key:"video_player_container_root",id:"video_player_container"})}),(function(){return!1}))},83814:function(t,e,n){n.d(e,{_:function(){return s}});var i=n(15215),a=n(17402),s=function(t){var e=t.params,n=t.tagName,s=t.text,o=(0,i.Tt)(t,["params","tagName","text"]);return(0,a.createElement)(n,(0,i.Cl)({dangerouslySetInnerHTML:{__html:__(s,e)}},o))}},61553:function(t,e,n){n.d(e,{S:function(){return s}});var i=n(19826),a=n(8873),s=function(){function t(){}return t.format=function(t,e,n,i){void 0===n&&(n=2),void 0===i&&(i=!1);var a=this.getRenderParts(t,e,n,i);return this.getText(e,a)},t.getRenderParts=function(e,n,i,s){void 0===i&&(i=2),void 0===s&&(s=!1);var o=t.getSymbol(n),r=Number(e)>=0?"":"-",l="";return s&&(l="boolean"==typeof s?" ":s),{currencySym:o,formattedValue:(0,a.K)(this.round(e,i)),signMinus:r,space:l}},t.getSymbol=function(e){switch(e){case t.USD:return"$";case t.EUR:return"€";case t.TKN:return"Tkn";case t.GBP:return"£";case t.RUB:if(!i.A.getState().isMobile)return"₽"}return" ".concat(e.toUpperCase())},t.getText=function(e,n){var i=n.currencySym,a=n.formattedValue,s=n.signMinus,o=n.space;return t.isLeftSide(e)?"".concat(s).concat(i).concat(o).concat(a):"".concat(s).concat(a).concat(o).concat(i)},t.isLeftSide=function(e){switch(e){case t.EUR:return!1;case t.GBP:case t.USD:return!0;case t.RUB:case t.TKN:default:return!1}},t.round=function(t,e){void 0===e&&(e=2);var n=Math.pow(10,e<=0?1:e);return(Math.round(Math.abs(parseFloat(t))*n)/n).toFixed(e)},t.EUR="eur",t.GBP="gbp",t.RUB="rub",t.TKN="tkn",t.USD="usd",t}()}}]);