"use strict";(self.webpackChunkbongacams=self.webpackChunkbongacams||[]).push([[909],{75628:function(t,e,a){a.d(e,{p:function(){return o}});var i=a(15215),o=a(99525).A.action(function(t,e){return{chatInternalState:(0,i.Cl)((0,i.Cl)({},t.chatInternalState),{lastShowModel:e})}})},53013:function(t,e,a){a.d(e,{a:function(){return c}});var i=a(15215),o=a(99525),s=a(27510),n=a(8119),r=a(76294),c=o.A.action(function(t,e){return[s.j.PRIVATE_CHAT,s.j.FULL_PRIVATE_CHAT].includes(e)&&r.DT.setItem(n.Z.LAST_PRIVATE_TYPE,e),{chatInternalState:(0,i.Cl)((0,i.Cl)({},t.chatInternalState),{paidShowPopup:(0,i.Cl)((0,i.Cl)({},t.chatInternalState.paidShowPopup),{type:e})})}})},71038:function(t,e,a){a.d(e,{VW:function(){return n},y7:function(){return r}});var i=a(72983),o=a(99525),s=a(41669),n=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"),o.A.getState().spoofIm.spoofVersionId||(t?s.signupEvent.call(chat):chat.signupPopup()),!1))},r=function(t,e){if(void 0===t&&(t=!1),void 0===e&&(e=!1),n(t)){var a=s("#bongacams_popup");a.hasClass("tap_popup")&&(s.bongacamsPopupClose(!1,function(){i.isRTLCulture&&a.css({right:"auto"}),s("#stream-container").removeClass("__overlay")}),a.removeClass("tap_popup")),t?s("#bTipModelFromMiniProfile").click():s.mobile?s('[href="#popupTip"]').click():(e?s("#bTipModelFromTipKing").click():s("#bTipModel").click(),l())}};function c(t){var e=s(t.target),a=["#bTip",".lawl_item",".send-tip"].filter(function(t){return 1===e.closest(t).length}).length,i=e.closest(".popup_close").length,o=e.closest(".js-fullscreen_btn").length;a?(u(),l()):i?u():o&&s("#bongacams_popup").find(".popup_close").trigger("click")}function l(){s(document).on("click.close_popup",c)}function u(){s(document).off("click.close_popup",c)}},1303:function(t,e,a){a.d(e,{G:function(){return n},h:function(){return r}});var i=a(15215),o=a(99525),s={title:"",content:"",contentProps:null,buttons:[],className:"",onClose:null,isHtml:!1},n=o.A.action(function(t,e){return{confirmPopup:(0,i.Cl)((0,i.Cl)((0,i.Cl)({},s),e),{opened:!0})}}),r=o.A.action(function(t){return{confirmPopup:(0,i.Cl)((0,i.Cl)({},s),{opened:!1})}})},93855:function(t,e,a){a.d(e,{o:function(){return r}});var i=a(15215),o=a(80554),s=a(99525),n=a(3050),r=s.A.action(function(t,e){void 0===e&&(e=!0);var a=s.A.getState().layover;return(0,n.w)(e?o.R.LAYOVER_POPUP_SHOW:o.R.LAYOVER_POPUP_CLOSE),{layover:(0,i.Cl)((0,i.Cl)({},a),{showOopsPopup:e})}})},30535:function(t,e,a){a.d(e,{d:function(){return n}});var i=a(99525),o={voyeur:"defaultVoyeurChatTokensPerMinute",group:"defaultGroupChatTokensPerMinute",private:"defaultPrivateChatTokensPerMinute",fullprivate:"defaultFullPrivateChatTokensPerMinute"},s={voyeur:"voyeurChatTokensPerMinute",group:"groupChatTokensPerMinute",private:"privateChatTokensPerMinute",fullprivate:"fullPrivateChatTokensPerMinute"},n=function(t){var e=i.A.getState().chatLocalData;return e[s[t]]!==e[o[t]]}},44019:function(t,e,a){a.d(e,{D:function(){return o}});var i=a(41669),o=function(){i("#bGotoGroup2, #bGotoVoyeur2").hide()}},51387:function(t,e,a){a.d(e,{f:function(){return i}});var i=function(){function t(){}return Object.defineProperty(t,"instance",{get:function(){throw new Error("Method instance must be implemented")},enumerable:!1,configurable:!0}),t.prototype.create=function(t){switch(t.subType){case"after_show":return this.createAfterShowMessage(t);case"chat_bot_tip_menu":return this.createMessageWithTipMenuItem(t);default:return this.createDefaultMessage(t)}},t.replaceSmiles=function(t){return chat.stringReplaceSmiles(t)},t}()},11227:function(t,e,a){a.d(e,{e4:function(){return u},pl:function(){return l}});var i=a(68650),o=a(74213),s=a(99525),n="",r=function(){var t=document.getElementById("bPaidButtonGroup");if(null==t?void 0:t.childNodes){var e=Array.from(t.childNodes).filter(function(t){return t.clientWidth>0});if(e.length){var a=function(t,a){e[t].setAttribute("data-position",a)};1===e.length?a(0,"lonely"):(a(0,"start"),a(e.length-1,"end"))}}},c=function(){for(var t=[],e=0;e=a.state.pageCount||(a.state.page++,a.state.animated=!0,a.root.classList.add("moveright"),a.updateContainer(1,a.state.page),setTimeout(function(){a.root.classList.remove("moveright"),a.state.animated=!1,a.swapContainers(),a.updateButtonsState()},450))},this.target=t,this.direction=window.getComputedStyle(this.target).direction,"rtl"===this.direction&&this.target.classList.add("horizontal_slider_rtl"),this.target.classList.add("horizontal_slider"),this.state={animated:!1,perPage:e||2,page:0,pageCount:0},t.hasChildNodes()){for(var i=t.childNodes,o=this.target.getAttribute("data-hs_item_class")||"hs_item",s=i.length;--s>=0;){var n=i[s];n.classList&&n.classList.contains(o)?(n.classList.add("hs_item"),this.items.push(n),t.removeChild(n)):n.remove()}this.items.reverse()}this.state.pageCount=Math.ceil(this.items.length/this.state.perPage),t.innerHTML='
',this.root=t.querySelector(".hs_slides_block"),this.buttonLeft=t.querySelector(".hs_left_arrow"),this.buttonRight=t.querySelector(".hs_right_arrow"),this.buttonLeft.addEventListener("click",this.handlerStepLeft,!1),this.buttonRight.addEventListener("click",this.handlerStepRight,!1),this.updateContainer(0,this.state.page),this.updateButtonsState()}return t.prototype.swapContainers=function(){var t=this.root.childNodes[0];this.root.removeChild(t),this.root.appendChild(t)},t.prototype.updateContainer=function(t,e){var a=this.root.childNodes[t];!function(t){if(t.hasChildNodes())for(var e=t.childNodes,a=e.length;--a>=0;)t.removeChild(e[a])}(a);for(var i=Math.max(0,e*this.state.perPage),o=Math.min(i+this.state.perPage,this.items.length),s=i;s=this.state.pageCount)},t}();function N(t,e){Object.prototype.hasOwnProperty.call(t,"data-slider")||Object.defineProperty(t,"data-slider",new H(t,e))}var F=["#ff99cc","#ffff99","#ffcc99","#ffffff","#99ccff","#00ccff","#ffcc00","#ff9900","#ff6600","#993300","lime","red_moon","primitives","bubbles","reb_blue","pink","dracula","stretch","cold_morning","silver","confetti"],V=function(){function t(t,e,a){var i=this;this.onClickSlider=function(t){for(var e=t.target;e!==i.element;){if(e.classList.contains("pts_preset"))return i.removeActiveClass(),i.activePreset=e.getAttribute("data-preset"),e.classList.add("active"),void(e.classList.contains("pts_picker")||i.submitPreset(i.activePreset));e=e.parentNode}},this.element=t,this.itemsClass=e,this.defaultPreset=a}return t.prototype.removeActiveClass=function(){var t=this.element.querySelector(".active");t&&t.classList.remove("active")},t.prototype.clear=function(){this.activePreset=this.defaultPreset},t.prototype.setDefault=function(){var t=this.element.querySelector('[data-preset="'.concat(this.defaultPreset,'"]'));t&&t.classList.add("active")},t}(),$=function(t){function e(e,a,i,o){var s=t.call(this,e,a,i)||this;return s.submitPreset=function(t){"function"==typeof s.onSubmit&&s.onSubmit(t)},s.onSubmit=o,s}return(0,i.C6)(e,t),e.prototype.init=function(){var t='
';F.forEach(function(e){var a="",i="pts_preset";(0,E.fd)(e)?("#ffffff"===e&&(i+=" brd"),a='style="background: '.concat(e,'"')):i+=" pt_".concat(e),t+='
')}),this.element.innerHTML=t,this.element.addEventListener("click",this.onClickSlider),N(this.element,11),this.setDefault()},e}(V),j=a(31611),W=function(){function t(t,e,a,i){var o=this;this.mouseDragHueLine=function(t){o.calculateHue(t),o.changePickerBox(),o.displayResult()},this.mouseDragPickerBox=function(t){o.calculateSV(t),o.displayResult()},this.el=t,this.output=e,this.selectCallback="function"==typeof i?i:function(){},this.el.classList.add("cp_palette"),this.output.classList.add("cp_palette_output"),this.state={hue:0,saturation:0,value:100},t.innerHTML='
',e.innerHTML='
',this.pickerBox=t.querySelector(".cp_picker_box"),this.pickerCursor=t.querySelector(".cp_picker_cursor"),this.hueBox=t.querySelector(".cp_hue_box"),this.hueLine=t.querySelector(".cp_hue_line"),this.hueCursor=t.querySelector(".cp_hue_cursor"),this.colorBox=e.querySelector(".cp_color_box"),this.colorText=e.querySelector(".cp_color_text"),this.boxCursorWidth=this.pickerCursor.offsetWidth,this.boxCursorHeight=this.pickerCursor.offsetHeight,a&&(0,E.fd)(a)?this.changeCurrentColor(a):this.displayResult(),this.hueBox.addEventListener("click",this.mouseDragHueLine),this.hueBox.addEventListener("mousedown",function(){o.hueBox.addEventListener("mousemove",o.mouseDragHueLine)}),this.hueBox.addEventListener("mouseup",function(){o.hueBox.removeEventListener("mousemove",o.mouseDragHueLine)}),this.hueBox.addEventListener("mouseleave",function(){o.hueBox.removeEventListener("mousemove",o.mouseDragHueLine)}),this.pickerBox.addEventListener("click",this.mouseDragPickerBox),this.pickerBox.addEventListener("mousedown",function(){o.pickerBox.addEventListener("mousemove",o.mouseDragPickerBox)}),this.pickerBox.addEventListener("mouseup",function(){o.pickerBox.removeEventListener("mousemove",o.mouseDragPickerBox)}),this.pickerBox.addEventListener("mouseleave",function(){o.pickerBox.removeEventListener("mousemove",o.mouseDragPickerBox)})}return t.prototype.init=function(){},t.prototype.changeCurrentColor=function(t){var e=(0,E.gT)(t);e&&(this.state.hue=e[0],this.state.saturation=e[1],this.state.value=e[2],this.displayResult(),this.changePickerBox(),this.calculateHueCursorTop(),this.calculatePickerCursorPosition())},t.prototype.calculateHue=function(t){var e=(0,j.A)(this.hueBox),a=this.hueLine.offsetHeight,i=t.pageY-e.top;i=this.correctHueTop(i);var o=Math.round(i/(a/360));o=360===(o=Math.abs(o-360))?0:o,this.state.hue=o,this.changeHueCursor(i)},t.prototype.calculateSV=function(t){var e,a=(0,j.A)(this.pickerBox),i=t.pageY-a.top-this.boxCursorHeight/2,o=t.pageX-a.left-this.boxCursorWidth/2;i=(e=this.correctCursorOffset(i,o))[0],o=e[1],this.state.saturation=Math.ceil(o/((this.pickerBox.offsetWidth-this.boxCursorWidth)/100)),this.state.value=Math.ceil(Math.abs(i/((this.pickerBox.offsetHeight-this.boxCursorHeight)/100)-100)),this.changePickerCursor(i,o)},t.prototype.correctCursorOffset=function(t,e){var a=this.pickerBox.offsetWidth-this.boxCursorWidth,i=this.pickerBox.offsetHeight-this.boxCursorHeight;return[t=(t=t>i?i:t)<0?0:t,e=(e=e>a?a:e)<0?0:e]},t.prototype.changePickerCursor=function(t,e){this.pickerCursor.style.left=e+"px",this.pickerCursor.style.top=t+"px",this.state.value<50?this.pickerCursor.classList.add("light"):this.pickerCursor.classList.remove("light")},t.prototype.correctHueTop=function(t){var e=this.hueLine.offsetHeight;return t=(t=t<=0?0:t)>e?e:t},t.prototype.changeHueCursor=function(t){this.hueCursor.style.top=t+"px"},t.prototype.calculateHueCursorTop=function(){var t=Math.abs(this.state.hue-360);t=360===t?0:t;var e=this.hueBox.offsetHeight/360*t;e=this.correctHueTop(e),this.changeHueCursor(e)},t.prototype.calculatePickerCursorPosition=function(){var t,e=(100-this.state.value)*(this.pickerBox.offsetHeight-this.boxCursorHeight/2)/100,a=Math.ceil(this.state.saturation*((this.pickerBox.offsetWidth-this.boxCursorWidth/2)/100));e=(t=this.correctCursorOffset(e,a))[0],a=t[1],this.changePickerCursor(e,a)},t.prototype.changePickerBox=function(){this.pickerBox.style.backgroundColor="rgb("+(0,E.Me)(this.state.hue,100,100)+")"},t.prototype.displayResult=function(){var t=(0,E.Me)(this.state.hue,this.state.saturation,this.state.value),e=(0,E.Ob)(t[0],t[1],t[2]);this.colorBox.style.backgroundColor="rgb("+t+")";var a=(0,E.Ob)(t[0],t[1],t[2]);this.colorText.innerText=a.substr(0,1)+" "+a.substr(1),this.selectCallback.call(this,e)},t}();var q,U=function(){function t(t,e,a){var i=this;this.onSubmitColor=function(){i.container.submitPopover(i.activePreset)},this.onCancel=function(){i.clear(),i.container.closePopover()},this.element=t,this.popover=a,this.output=this.popover.querySelector(".preset_palette_output"),this.defaultPreset=e||"#ffffff",this.okBtn=this.popover.querySelector(".slp_ok"),this.cancelBtn=this.popover.querySelector(".slp_cancel")}return t.prototype.init=function(){var t=this;!function(t,e,a,i){if(!Object.prototype.hasOwnProperty.call(t,"data-colorpicker")){var o=new W(t,e,a,i);Object.defineProperty(t,"data-colorpicker",{get:function(){return o},configurable:!0})}}(this.element,this.output,this.defaultPreset,function(e){t.activePreset=e}),this.okBtn.addEventListener("click",this.onSubmitColor),this.cancelBtn.addEventListener("click",this.onCancel)},t.prototype.clear=function(){var t,e;this.activePreset=this.defaultPreset,t=this.element,e=this.defaultPreset,(0,E.fd)(e)&&Object.prototype.hasOwnProperty.call(t,"data-colorpicker")&&t["data-colorpicker"].changeCurrentColor(e)},t}(),Y=function(){function t(t,e,a){var i=this;this.isInit=!1,this.widgets=[],this.togglePopover=function(){i.popover.classList.contains("active")?i.closePopover():(i.popover.classList.add("active"),i.popover.getBoundingClientRect().top<0&&i.popover.classList.add("__bottom"),i.isInit||(i.initWidgets(),i.isInit=!0),setTimeout(function(){document.addEventListener("click",i.onDocumentClick)},1))},this.onDocumentClick=function(t){var e=t.target;do{if(e===i.popover)return;e=e.parentNode}while(e);i.closePopover()},this.closeAndClear=function(){i.closePopover(),i.clearWidgets()},this.closePopover=function(){i.popover.classList.remove("active"),i.popover.classList.remove("__bottom"),document.removeEventListener("click",i.onDocumentClick)},this.submitPopover=function(t){"function"==typeof i.onSubmit&&i.onSubmit(t),i.closePopover()},this.element=t,this.popover=e,this.onSubmit=a,this.element.addEventListener("click",this.togglePopover)}return t.prototype.setWidget=function(t){t.container=this,this.widgets.push(t)},t.prototype.initWidgets=function(){this.widgets.forEach(function(t){t.init()})},t.prototype.clearWidgets=function(){this.widgets.forEach(function(t){t.clear()})},t}(),z=function(){function t(t,e,a){this.wrapper=t,this.bgSlider=this.wrapper.querySelector(".preset_slider"),this.popover=this.wrapper.querySelector(".style_popover"),this.popoverPicker=this.wrapper.querySelector(".preset_palette"),this.defaultPreset=e,this.onSubmit=a}return t.prototype.isAllowed=function(){return window.chat&&((0,x.e)(window.chat.userData)||window.chat.userData.isVip)},t.prototype.init=function(){this.isAllowed()&&(this.sliderWidget=new $(this.bgSlider,this.bgSlider.getAttribute("data-hs_item_class"),this.defaultPreset,this.onSubmit),this.sliderWidget.init(),this.sliderWidget.element.querySelector(".pts_picker")&&(this.popoverWidget=new Y(this.sliderWidget.element.querySelector(".pts_picker"),this.popover,this.onSubmit),this.popoverWidget.setWidget(new U(this.popoverPicker,(0,E.fd)(this.defaultPreset)?this.defaultPreset:"#f0f4f8",this.popover))))},t}(),X=function(t){function e(e,a,i){var o=t.call(this,e,a,i)||this;return o.submitPreset=function(t){o.container.submitPopover(t)},o}return(0,i.C6)(e,t),e.prototype.init=function(){var t=this,e=n.A.getState().stylePanelOptions,a="";((null==e?void 0:e.fontColors)||[]).forEach(function(e){var i="pts_preset";(0,E.fd)(e)&&"#ffffff"===e&&(i+=" brd"),a+='
')}),this.element.innerHTML=a,this.element.addEventListener("click",this.onClickSlider),N(this.element,window.chat&&((0,x.e)(window.chat.userData)||window.chat.userData.isVip)?9:11),this.setDefault()},e}(V),K=function(){function t(t,e,a){this.wrapper=t,this.colorBox=this.wrapper.querySelector(".cb_box"),this.popover=this.wrapper.querySelector(".style_popover"),this.popoverSlider=this.wrapper.querySelector(".preset_slider"),this.popoverPicker=this.wrapper.querySelector(".preset_palette"),this.defaultPreset=e,this.onSubmit=a}return t.prototype.isAllowedColorPicker=function(){return this.popoverPicker&&window.chat&&((0,x.e)(window.chat.userData)||window.chat.userData.isVip)},t.prototype.init=function(){this.colorBox&&this.popover&&(this.popoverWidget=new Y(this.colorBox,this.popover,this.onSubmit),this.popoverWidget.setWidget(new X(this.popoverSlider,this.popoverSlider.getAttribute("data-hs_item_class"),this.defaultPreset)),this.isAllowedColorPicker()&&this.popoverWidget.setWidget(new U(this.popoverPicker,this.defaultPreset,this.popover)))},t}(),J=a(41669),Z=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.isBgAllowed=!1,e}return(0,i.C6)(e,t),e.prototype.init=function(){var e=this,a=this;J(document).off(k.R.FONT_PICKER_INIT).on(k.R.FONT_PICKER_INIT,function(i){var o,s=null===(o=i.originalEvent.detail)||void 0===o?void 0:o.initOnly,r=n.A.getState().stylePanelOptions;t.prototype.init.call(e),e.$bgInput=J("#my_bg_message"),e.isBgAllowed=e.$bgInput.length&&r.isColorCommentAvailable,e.$colorContainer=e.$tooltip.find(".color_box"),e.$bgContainer=e.$tooltip.find(".bg_box"),e.$colorPreview=e.$tooltip.find(".cb_box"),e.isBgAllowed&&(e.$fillPreview=e.$tooltip.find(".msp_preview")),e.setMessageStyle(),e.$tooltip.find(".style_state").on(k.R.CUSTOM_CHANGE,function(){a.changeState(J(this).attr("name"),J(this).val())}),s||e.$button.trigger("click")}),J(document).off("click",".msp_what_link").on("click",".msp_what_link",function(t){J(t.target).is(".msp_what_close")||(J(".msp_what_popover").show(),J(document).off(".msp_what").on("click.msp_what",function(t){var e=t.target;J(e).closest(".msp_what_popover").length||(J(".msp_what_popover").hide(),J(document).off(".msp_what"))}).on("click.msp_what",".msp_what_close",function(){J(".msp_what_popover").hide(),J(document).off(".msp_what")}))})},e.prototype.isDefaultValues=function(){var e=t.prototype.isDefaultValues.call(this);return this.isBgAllowed&&e&&(e=this.$bgInput.attr("data-default")===this.$bgInput.val()),e},e.prototype.assignInitValues=function(){t.prototype.assignInitValues.call(this),this.isBgAllowed&&(this.initBg=this.$bgInput.val())},e.prototype.resetDefaults=function(){t.prototype.resetDefaults.call(this),this.isBgAllowed&&this.$bgInput.val(this.$bgInput.attr("data-default")||this.state.bg),this.fillPreview()},e.prototype.setState=function(e){t.prototype.setState.call(this,e),this.isBgAllowed&&(this.state.bg=e&&e.bg||this.$bgInput.val()),this.fillPreview(),(0,M.D)(this.getState())},e.prototype.getState=function(){return!this.isBgAllowed&&this.state.bg&&delete this.state.bg,this.state},e.prototype.changeState=function(e,a){t.prototype.changeState.call(this,e,a),this.fillPreview(),(0,M.D)(this.getState())},e.prototype.allowHideTooltip=function(t){if(t.closest("#ChangeFontFormTooltip").length)return!1;var e=t[0],a=document.body.querySelector(".js-chat_font_btn");return e&&(null==a?void 0:a.contains(e))&&!a.classList.contains("isOpenTooltip")&&a.classList.add("isOpenTooltip"),!0},e.prototype.getTooltipOffset=function(){return(0,A.BH)(n.A.getState())?[-5,0]:L.isRTLCulture?[-5,this.$tooltip.outerWidth()+10]:[-5,20]},e.prototype.setMessageStyle=function(e){var a,i,o=this;if((null===(a=this.$tooltip)||void 0===a?void 0:a.length)&&(null===(i=this.$colorContainer)||void 0===i?void 0:i.length)){if(t.prototype.setMessageStyle.call(this,e),e&&this.isBgAllowed){var s=this.$bgInput;e.bg&&s.length&&s.val(e.bg)}this.isDefaultValues()||this.showResetBtn(),this.assignInitValues(),this.setState(e),this.colorContainer=new K(this.$colorContainer[0],this.state.color,function(t){o.onSubmit(o.$fontColorInput,t)}),this.colorContainer.init(),this.isBgAllowed&&(this.bgContainer=new z(this.$bgContainer[0],this.state.bg,function(t){o.onSubmit(o.$bgInput,t)}),this.bgContainer.init())}},e.prototype.isAllowedEnableSubmitBtn=function(){var e=t.prototype.isAllowedEnableSubmitBtn.call(this);return this.isBgAllowed&&(e||(e=this.initBg!==(this.state.bg||this.$bgInput.val()))),e},e.prototype.onSubmit=function(t,e){t.val(e),t.trigger("change")},e.prototype.closeTooltip=function(){this.closePopovers(),t.prototype.closeTooltip.call(this)},e.prototype.closePopovers=function(){this.colorContainer&&this.colorContainer.popoverWidget.closePopover(),this.bgContainer&&this.bgContainer.popoverWidget.closePopover()},e.prototype.fillPreview=function(){this.isBgAllowed&&this.$fillPreview.length&&(this.$fillPreview.attr("bg")&&!(0,E.fd)(this.$fillPreview.attr("bg"))&&this.$fillPreview.removeClass("pt_".concat(this.$fillPreview.attr("bg"))),(0,E.fd)(this.state.bg)?this.$fillPreview.removeAttr("bg"):(this.$fillPreview.addClass("pt_".concat(this.state.bg)),this.$fillPreview.attr("bg",this.state.bg)))},e.prototype.fixPosition=function(){var t=n.A.getState();if((0,A.BH)(t)){var e=(0,D.N)(this.$tooltip.get(0)),a=(0,T.Z)(),i=(0,D.N)("#".concat(a)),o=L.isRTLCulture?i.x2-e.width:i.x1;this.$tooltip.css({left:o,position:"absolute"})}},e}(G),Q=Z,tt=a(47885),et=a(27510),at=a(2597),it=a(45070),ot=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.C6)(e,t),e.ALL="all",e.FRIENDS="friends",e.FOLLOWERS="followers",e.DISABLED="disabled",e.MODELS="models",e.titles=((q={})[e.ALL]=__("Let everyone send me private messages"),q[e.FRIENDS]=__("Allow private messages only to followers I follow back"),q[e.FOLLOWERS]=__("Allow private messages only from members and models that follow me"),q[e.DISABLED]=__("Nobody can send me private messages"),q[e.MODELS]=__("Only allow models to send me private messages"),q),e}(a(53767).A),st=ot,nt=a(8119),rt=a(76294),ct=a(63861),lt=a(21110),ut=a(79276),ht=a(23385),pt=a(22078),dt=a(93118),mt=a(58699);function ft(){var t=n.A.getState(),e=t.memberChatNotificationSettingsOptions,a=t.isAuthenticated;return(0,pt.j)(e)||!a}function vt(t){var e=(0,mt.ZW)(t),a=(0,mt.n5)(e),i=[dt.A.TBR_NOTIFIER,dt.A.ROT_NOTIFIER,dt.A.LOVENSE,dt.A.TIP_KING];return a&&i.includes(a)}function gt(t,e){return"notice"!==t||!!e&&0!==e.indexOf("enc:")}function _t(){var t=n.A.getState(),e=t.memberChatNotificationSettingsOptions,a=t.isAuthenticated;return!t.isModerator&&(!a||function(){var t=n.A.getState(),e=t.memberChatNotificationSettingsOptions,a=t.isAuthenticated;return(0,pt.j)(e)||!a}()&&!(null==e?void 0:e.is_tip_menu_notifications_enabled))}var bt=a(44019),St=a(5985),yt=a(68133),Ct=a(44198),wt=a(52276),Pt=a(30535),kt=a(78191),Tt=a(83482),Mt=a(41669),At=[],Et=function(){(0,Ct._b)("SEO ogMeta deleteChatMetaTags").log(At);for(var t=0,e=At;t'.concat(Ot.kX.pluralise("tokens",e),""),username:''.concat(a.displayName,"")});return i?"".concat((0,Xt.h)(a)).concat((0,Kt.E)(a,chat.userData)).concat(o):o},e.prototype.createAfterShowMessage=function(t){var e=t.amount,a=t.user;return __("Member %member% gave %model% a tip of %tokens% as a sign of gratitude for the private show.",{member:a.displayName,model:window.chat.performerData.displayName,tokens:''.concat(e," ").concat(Ot.kX.pluralise("tokens",e),"")})},e.prototype.createMessageWithTipMenuItem=function(t){var a=t.amount,o=t.td,s=t.user,n=lt.q.isEnabled(it.i.TIP_MENU_POPUP_GAME),r=e.getTipMenuService(o);return r&&n?'\n \n '.concat(__("%username% tipped %amount% %tokens_plural%!",{amount:a,tokens_plural:''.concat(Ot.kX.pluralise("tokens",a),""),username:''.concat(s.displayName,"")}),'\n \n ').concat(this.createTipMenuButton(),'\n ').concat(ee.mobile?e.replaceSmiles((0,te.CN)(r)):(0,te.CN)(r),"\n \n "):this.createDefaultMessage((0,i.Cl)((0,i.Cl)({},t),{subType:""}))},e.prototype.createTipMenuButton=function(){var t=n.A.getState(),e=t.isModerator||(0,Zt.DO)().length&&"public"===chat.performerStatus;return'\n \n ').concat(__("Tip Menu"),'\n \n ')},e.getModifier=function(t){switch(t.subType){case"after_show":return"";case"chat_bot_tip_menu":return e.getTipMenuService(t.td)?"__tip_menu":this.getModifier((0,i.Cl)((0,i.Cl)({},t),{subType:""}));default:return lt.q.isEnabled(it.i.TIP_MESSAGES_REDESIGN)?(0,Qt.jc)((0,x.e)(t.user)&&"msg_elite",!t.isWithMessage&&"__no_msg"):""}},e.getTipMenuService=function(t){if(!t)return"";var e=chat.performerData.isRu?t[chat.userData.isRu?"ru":"en"]:t.en;return e?(0,B.escapeHTML)(__(e.s)):""},e}(Jt.f),ie=["after_show","chat_bot_tip_menu"],oe=a(41669);var se=a(90833),ne=a(6767),re=a(33617),ce=a(86757),le=a(76316),ue=a(45505),he=a(84435),pe=a(8252),de=function(){(he.BrowserDetect.isIOS()||he.BrowserDetect.isSafari_MacOS())&&(0,ue.t)(function(){var t=jt.A.instance.player;t&&(0,pe.U)(t,"videoElement")&&t.videoElement&&(0,pe.U)(t.videoElement,"playing")&&t.videoElement.playing&&t.videoElement.play()},!0,!0)},me=a(8556),fe=a(26989),ve=a(7195),ge=a(4527),_e=(a(46807),a(48398),a(41669)),be=chat.onTipMenuChange,Se=chat.showTipMenu,ye=chat.incomingServiceMessage,Ce={acceptedPaidShow:!1,initiatedCam2CamShow:!1,initiatedPaidShow:!1,messageStyle:new Q,paidShowId:null,paidShowInitiatedByModel:!1,privateChatStart:null,isFanBoostMessageRedesignEnabled:null,initService:function(){this.service=new ne.A(chat.localData.directServiceUrl,chat.localData.serviceUrl),document.addEventListener("@@chatTipPopup/check",function(){(0,r.R)("@@chatTipPopup/checkResponse",{isAvailable:(0,b.VW)()})}),document.addEventListener("@@sendMessage/error",function(t){var e=t.detail,a=e.data,i=e.username;chat.handleErrorSendMessage(a.error,i)}),document.addEventListener("@@getDialogRestriction/error",function(t){chat.userData.restrictionDisabled=!1;var e=t.detail.data,a=e.errorData;e.isContextMenu||chat.handleDialogRestrictions(a)})},buyTokensPopup:function(){return(0,f.Z)(),!1},buyVipPopup:function(t){return function(t){if(chat.userData.isLogged){if("member"!==chat.userData.role)return chat.addServiceMessage(__("Only members can become a vip"),"alert"),!1;var e=g.mobile?g(".rel_buy_vip:first a"):g("#bBuyVip");return t&&e.attr(t)?e.attr("href",(0,v.K)(e.attr("href"),"vpop",e.attr(t))):e.attr("href",(0,v.K)(e.attr("href"),"vpop",null)),g.mobile?location.href=e.attr("href"):e.click(),!1}chat.signupPopup()}(t),!1},signupPopup:function(t){return void 0===t&&(t=!1),(0,_.R)(t),!1},tipPopup:function(t,e){var a;return void 0===t&&(t=!1),void 0===e&&(e=!1),null===(a=ht.X.instance)||void 0===a||a.setUserInteractionLock(60),(0,b.y7)(t,e),!1},privateCloseConfirmPopup:function(){return(0,i.sH)(this,void 0,void 0,function(){var t;return(0,i.YH)(this,function(e){switch(e.label){case 0:return[4,a.e(925).then(a.bind(a,29310))];case 1:return t=e.sent(),(0,ut.JX)("close_private_confirm",function(){return(0,o.createElement)(t.default,null)}),[2,!1]}})})},paidShowPopup:function(t,e){void 0===t&&(t=null),void 0===e&&(e=!1);var a=n.A.getState().chatInternalState.paidShowPopup;if([et.j.PRIVATE_CHAT,et.j.FULL_PRIVATE_CHAT].includes(t)&&!a.type&&!e){var i=rt.DT.getItem(nt.Z.LAST_PRIVATE_TYPE);[et.j.PRIVATE_CHAT,et.j.FULL_PRIVATE_CHAT].includes(i)&&(t=i)}(0,p.a)(t)},paidShowDecline:function(t){(0,c.E)(!1),(0,u.V)(!1),ce.A.instance.setLayoverWait(!1),this.acceptedPaidShow=!1,this.initiatedPaidShow=!1,this.currentChatType="public-chat",this.currentShowType="public",this.paidShowId=null,t&&(this.addServiceMessage(t,"alert"),_e(t).length&&_e(t).is(".payment_disabled")&&this.buyTokensPopup())},setBalance:function(t,e){var i=document.querySelector(".js-tokens");t<.15*parseFloat((null==i?void 0:i.getAttribute("data-last-purchase"))||"0")&&a.e(913).then(a.bind(a,30740)).then(function(t){return t.init(),t}).then(function(t){return t.getFewTokensIm()}),chat.userData.balance=t,e&&(0,le.s)({balance:t})},onPaidShowStart:function(t){var e;this.debug("*** onPaidShowStart","type=".concat(t),"performerStatus=".concat(this.performerStatus)),this.currentShowType=t,this.currentChatType="private-chat",this.privateChatStart=(new Date).getTime();var a=this.chatSettings.allowFullPrivateRecording;_e("#bChat").triggerHandler("onPaidShowStart",t);var i=_e("#public-chat");i.data("history",_e("#public-chat .history").html()),(0,ve.kd)("public-chat"),i.attr("id",this.currentChatType);var o=function(){var e=n.A.getState().chatLocalData||{},a=e.fullPrivateChatTokensPerMinute,i=void 0===a?0:a,o=e.groupChatTokensPerMinute,s=void 0===o?0:o,r=e.privateChatTokensPerMinute,c=void 0===r?0:r,l=e.voyeurChatTokensPerMinute,u=void 0===l?0:l;switch(t){case"fullprivate":return i;case"group":return s;case"private":return c;case"voyeur":return u}return 0}();switch((0,Ht.w3)(k.R.CHAT_PAID_SHOW_START,{pricePerMinute:o,showType:t}),"private-chat"!==this.currentChatType||"fullprivate"!==this.currentShowType&&"private"!==this.currentShowType||(0,h.p)(this.performerData.username),(null===(e=chat.chatSettings)||void 0===e?void 0:e.disableChatBotsInPrivate)&&this.hideTipKing(),t){case"fullprivate":this.addServiceMessage(__("Welcome, %username%! You have entered the Full-Private Chat!",{username:this.userData.displayName}),"fullprivateChatWelcome"),_e(".js-stream_rec_badge").toggleClass("__show",!!a);break;case"group":var s,r=_e.mobile?"#svg_mob_ch_group_chat_ac_angle":"".concat(tt.em,"#svg_ch_group_chat_ac_angle");s='
').concat(__("%s1%Welcome, %username%!%s2%%br%You have entered the Group Chat!",{br:"
",s1:'',s2:"",username:this.userData.displayName}),"
"),this.addServiceMessage(s,"groupChatWelcome"),chat.onStartPaidShow();break;case"private":this.addServiceMessage(__("Welcome, %username%! You have entered the Private Chat!",{username:this.userData.displayName}),"privateChatWelcome");break;case"vip":this.addServiceMessage(__("Welcome, %username%! You have entered the VIP Show!",{username:this.userData.displayName}),"vipChatWelcome");break;case"voyeur":(0,d.P)(),this.addServiceMessage(__("Welcome, %username%! You have entered Spy Mode!",{username:this.userData.displayName}),"voyeurWelcome")}},onPaidShowStop:function(t,e){var o;if(this.isPaidShow()){var s=n.A.getState(),r=s.chatInternalState,l=s.chatShowStatusOptions,h=!1;"string"!=typeof t&&t&&(h=t.no_tokens,t=t.description),this.debug("*** onPaidShowStop","reason=".concat(t),"changeRoom=".concat(e),"performerStatus=".concat(this.performerStatus));var p=this.privateChatStart?((new Date).getTime()-this.privateChatStart)/1e3:0;if((null===(o=chat.chatSettings)||void 0===o?void 0:o.disableChatBotsInPrivate)&&this.showTipKing(),"private-chat"===this.currentChatType&&("fullprivate"===this.currentShowType||"private"===this.currentShowType)&&p){var d=p*parseFloat(_e(".js-tap_popup").data("".concat(this.currentShowType,"_tip"))),f=chat.performerData,v=f&&r.lastShowModel===f.username,g=this.paidShowId;p>120?function(t,e,i,o,s){var r=n.A.getState(),c=r.rateChatChowPopupOptions,l=r.isMobile,u=(null==c?void 0:c.canAddProfileComments)||!1,h=function(){return a.e(783).then(a.bind(a,75325)).then(function(a){(0,a.openPrivateShowFeedbackPopup)({popupData:{showId:t,showCost:e,showType:i,modelUsername:o.username,modelDisplayName:o.displayName,modelAvatarUrl:o.avatarUrl120,isAbleToComment:u},isMobile:l})})};s&&!l?(document.addEventListener(k.R.LAYOVER_POPUP_CLOSE,h,{once:!0}),(0,P.o)()):h()}(g,d,this.currentShowType,(0,i.Cl)({},f),h):h?(0,P.o)():p>30&&v&&function(t,e){a.e(710).then(a.bind(a,46732)).then(function(a){a.default.showForm(e,t)})}(g,d)}"private-chat"===this.currentChatType&&"group"===this.currentShowType&&(0,ve.kd)("private-chat"),_e("#private-chat").attr("id","public-chat"),this.currentChatType="public-chat",this.currentShowType="public",this.paidShowId=null,this.acceptedPaidShow=!1,this.initiatedPaidShow=!1,this.paidShowInitiatedByModel=!1,(0,c.E)(!1),(0,u.V)(!1),ce.A.instance.setLayoverWait(!1),_e("#bChat").triggerHandler("onPaidShowStop",[t,e]),(0,Ht.w3)(k.R.CHAT_PAID_SHOW_STOP),(0,m.W)(),_e(window).scrollTop(0),t&&this.addServiceMessage(__(t,{modelname:this.performerData.displayName}),"alert"),(null==l?void 0:l.isGroupChat)&&this.joinGroupChatModel(),_e(".js-stream_rec_badge").toggleClass("__show",!1)}},cancelShowRequest:function(t){var e;if(t instanceof Element){var a=_e(t).closest(".cp_msg");e=a.data("showRequest"),a.remove()}else e=t;return e.status="cancel",this.service.sendShowRequest(e),!1},onGroupShowResponse:function(t){if("decline"===t)(0,c.E)(!1),(0,u.V)(!1);else if("accept"===t){n.A.getState().isGroupChatInvited&&(this.acceptedPaidShow="group",_e("#bChat").triggerHandler("onPaidShowAccepted",this.acceptedPaidShow),this.requestManagerHideGroup())}},cancelGroupShowResponse:function(){var t;this.requestManagerHideGroup();var e=n.A.getState().groupChatInvitationData;void 0!==(null===(t=null==e?void 0:e.users)||void 0===t?void 0:t.find(function(t){var e;return t.u===(null===(e=null===chat||void 0===chat?void 0:chat.userData)||void 0===e?void 0:e.username)}))&&chat.removeAcceptGroupChat()},onShowRequest:function(t){if(this.debug("--- ShowRequest",t),"cancel"!==t.status)return"accept"===t.status?(S.c.instance.hidePrompt(t),this.acceptedPaidShow=t.type,void _e("#bChat").triggerHandler("onPaidShowAccepted",this.acceptedPaidShow)):void("request"===t.status&&t.user.isPerformer?document.dispatchEvent(new CustomEvent(k.R.INVITE_POPUP_SHOW)):S.c.instance.showPrompt(t));document.dispatchEvent(new CustomEvent(k.R.INVITE_POPUP_CANCEL_MODEL))},onGroupChatInvitationChange:function(t){var e=this;if((0,c.E)(!0),(0,l.j)(t),!t||t.users&&0===t.users.length)return(0,u.V)(!1),void this.requestManagerHideGroup();(0,u.V)(t.users&&void 0!==t.users.find(function(t){return t.u===e.userData.username})),S.c.instance.showPrompt(t)},onPerformerStatusChange:function(t){var e=n.A.getState().isMobile;"group"===t&&((0,c.E)(!0),e||this.requestManagerHideGroup(),this.joinGroupChatModel()),e&&("away"===this.performerStatus?this.hideTipKing():this.showTipKing())},onStartPaidShow:function(){this.requestManagerHideGroup()},joinGroupChatModel:function(){n.A.getState().isMobile||S.c.instance.showPrompt({status:"join",type:"group"})},requestManagerHideGroup:function(){S.c.instance.hide({key:"group"})},onTip:function(t,e,a,i,o,s){var n;if(void 0===i&&(i=""),window.chat.performerData&&t&&e){var r=void 0,c=(window.chat||{}).userData,l=t&&c.username&&t.username.toLowerCase()===c.username.toLowerCase();c&&"moderator"===c.role&&(0,Yt.C1)()&&(i=""),l&&!ie.includes(i)&&(0,Ut.g)(e);var u=o&&void 0!==o&&void 0!==o.messageOptions,h={amount:e,subType:i,td:null===(n=null==o?void 0:o.body)||void 0===n?void 0:n.td,user:t,isWithMessage:u},p=ae.instance.create(h);u&&(r=function(e){var a=window.chat.renderMessageForTip(o.messageOptions);if(a){var i=oe(e);return i.find(".system_area").append(a),s||(0,Ht.w3)(k.R.CHAT_INCOMING_TEXT_MESSAGE,t),i}return e});var d=ae.getModifier(h),m=window.chat.addServiceMessage(p,(0,Qt.jc)("tip_success",d),window.chat.currentChatType,{amount:e,fromData:t},r);m&&(null==m?void 0:m.length)&&(chat.setUserDataToItem(m,t),"updateTipMessageForAdmin"in chat&&"function"==typeof chat.updateTipMessageForAdmin&&chat.updateTipMessageForAdmin(m,t,e))}},getIsFanBoostMessageRedesignEnabled:function(){var t;return null!==(t=this.isFanBoostMessageRedesignEnabled)&&void 0!==t?t:this.isFanBoostMessageRedesignEnabled=lt.q.isEnabled(it.i.FAN_BOOST_MESSAGE_REDESIGN)},onShowRaise:function(t,e){if(void 0===e&&(e=""),this.getIsFanBoostMessageRedesignEnabled())chat.addServiceMessage(e,"fan_boost_raised");else{var a=__("%member% raised %model% to the 1st position on the main page for 60 seconds!",{member:''.concat(t,""),model:''.concat(this.performerData.displayName,"")});this.addServiceMessage(a,"model_raise")}},onVideoStreamLimit:function(t){if(_e("#bChat").triggerHandler("onVideoStreamLimit",t),!this.userData.isVideoStreamLimitReached){this.userData.isVideoStreamLimitReached=!0;var e=(0,me.isTokenInBodyClassList)("chatPopupBody"),a=__("You have been reached daily video stream limit");a=this.userData.isLogged?t?"".concat(__("%displayName% shows your cam to premium members only.",{displayName:this.performerData.displayName})," ").concat(__("%a1%Buy some tokens%a2% and your account will be upgraded to %s1%gold%s2% status for life. %s1%Gold%s2% members can enjoy unlimited video chat with all of our models.",{a1:'',a2:"",s1:'',s2:""})):"".concat(__("You have reached the daily video stream limit allowed to free members.")," ").concat(__("%a1%Buy some tokens%a2% and your account will be upgraded to %s1%gold%s2% status for life. %s1%Gold%s2% members can enjoy unlimited video chat with all of our models.",{a1:'',a2:"",s1:'',s2:""})):t?"".concat(__("%displayName% shows your cam to premium members only.",{displayName:this.performerData.displayName})," ").concat(__("%a1%Sign up for a 100% %s1%free%s2% account%a2% to continue watching!",{a1:'',a2:"",s1:'',s2:""})):"".concat(__("You have reached the daily video stream limit allowed to guests.")," ").concat(__("%a1%Sign up for a 100% %s1%free%s2% account%a2% to continue watching!",{a1:'"),a2:"",s1:'',s2:""})),this.addServiceMessage(a,"alert video_limit_alert")}},onFreeChatMessageLimit:function(t){var e=0===this.localData.dailyMessagesLimit?__("We are sorry but %s1%free%s2% members are temporarily muted by model.",{s1:'',s2:""}):__("You have reached the chat limit allowed to free members.");e+=" ".concat(__("%a1%Buy some tokens%a2% and begin chatting with your favorite models!",{a1:'',a2:""})),t?this.addMessage('

'.concat(e,"

"),_e("#chatbox_".concat(t," .history"))):_e(".history .guest_chat_alert").length||this.addServiceMessage(e,"alert guest_chat_alert")},onFreeShowState:function(t){this.localData.isFreeShow=t;var e=n.A.getState(),a=e.isAuthenticated,i=e.isMobile;t&&(i?a?_e("#private_btn_cell").hide():(_e("#bPrivateLinkStart").hide(),_e("#chat_bar_v2").addClass("private_btn_cell_hidden")):(_e("#bPaidButtonGroup").removeClass("hide-first hide-middle"),(0,It.pl)("bGotoPrivate","bGotoGroup","bGotoVoyeur"),(0,bt.D)()))},fullPrivateMessageLimit:function(){this.addServiceMessage(__("%modelname% is in full private chat now. Only a user in this model’s private room can communicate with her via chat now. If you still want to send message to %modelname%, you can do it using Message Center, but only if this model gave users permission to send her messages.",{modelname:chat.performerData.displayName}),"alert")},shareMyCam:function(t){return(0,i.sH)(this,void 0,void 0,function(){var e,o,s,r,c;return(0,i.YH)(this,function(i){switch(i.label){case 0:return n.A.getState().isAuthenticated?"member"!==this.userData.role?(this.addServiceMessage(__("Webcam feature only for premium members"),"alert"),[2,!1]):this.userData.isPayable?(e=_e("#member_cam_popup"),t?document.dispatchEvent(new CustomEvent(k.R.SHARE_CAM_SHOW)):document.dispatchEvent(new CustomEvent(k.R.SHARE_CAM_HIDE)),o=navigator.mediaDevices&&navigator.mediaDevices.getUserMedia&&chat.performerData&&"bongacam"!==chat.performerData.videoEncoder,s=(0,ct.ip)("@member_cam?performer=".concat(chat.userData.chathost))+(o?"?wrtc=1":""),this.initiatedCam2CamShow?[3,3]:(this.initiatedCam2CamShow=!0,[4,a.e(923).then(a.bind(a,79457))])):(this.addServiceMessage("".concat(__("Webcam feature is for premium members only.")," ").concat(__("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"),this.buyTokensPopup(),[2,!1]):(this.addServiceMessage(__("Webcam feature only for premium members"),"alert"),this.signupPopup(),[2,!1]);case 1:return i.sent(),[4,a.e(921).then(a.bind(a,11618))];case 2:r=i.sent().default,c=new r({ajax:!0,camUrl:s,chathost:this.currentChathost,popupName:"member_cam_popup",isWrtc:o}),(e=_e("#member_cam_popup")).data("popup",c),i.label=3;case 3:return e.data("popup")&&(t?(e.data("popup").camUrl=s,e.data("popup").params.camUrl=s,e.data("popup").openCamPopup()):(o&&"wrtc"in window&&window.wrtc.c2c.unpublish(),e.data("popup").closeCamPopup())),t||this.service.shareMyCam(null),[2,!1]}})})},closeC2C:function(){return(0,i.sH)(this,void 0,void 0,function(){var t;return(0,i.YH)(this,function(e){return null===(t=_e("#member_cam_popup").data("popup"))||void 0===t||t.close(),[2]})})},gotoPrivateChat:function(t){var e=this.chatSettings,a=e.allowFullPrivateChat,i=e.allowPrivateChat;if(!this.userData.isLogged)return this.addServiceMessage(__("Private chat only for premium members"),"alert"),this.signupPopup(),!1;if("member"!==this.userData.role)return this.addServiceMessage(__("Private chat only for premium members"),"alert"),!1;if(!t&&!this.chatSettings.allowPrivateChat)return i||a?this.addServiceMessage(__("Private chat is disabled by the model. Only full private chat is available."),"alert"):this.addServiceMessage(__("Private chat is disabled by model"),"alert"),!1;if(t&&!this.chatSettings.allowFullPrivateChat)return i||a?this.addServiceMessage(__("Full private chat is disabled by the model. Only regular private chat is available."),"alert"):this.addServiceMessage(__("Private chat is disabled by model"),"alert"),!1;if(this.chatSettings.minTokensForPrivate&&this.userData.balance',a2:"",amount:this.chatSettings.minTokensForPrivate-this.userData.balance});return this.addServiceMessage("".concat(o,"
").concat(s),"alert"),!1}return this.userData.isPayable?(!this.userData.isLogged||this.isPaidShow()||!t&&!this.chatSettings.allowPrivateChat||t&&!this.chatSettings.allowFullPrivateChat||"private"===this.performerStatus||"fullprivate"===this.performerStatus||"group"===this.performerStatus||this.checkMemberJoinPaidChat(t?et.j.FULL_PRIVATE_CHAT:et.j.PRIVATE_CHAT)&&(this.service.gotoPrivateChat(t),de()),!1):(this.addServiceMessage("".concat(__("Private chat is for premium members only.")," ").concat(__("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"),this.buyTokensPopup(),!1)},gotoGroupChat:function(){if(!this.userData.isLogged)return this.addServiceMessage(__("Group chat only for premium members"),"alert"),this.signupPopup(),!1;if("member"!==this.userData.role)return this.addServiceMessage(__("Group chat only for premium members"),"alert"),!1;if(!this.chatSettings.allowGroupChat)return this.addServiceMessage(__("Group chat is disabled by model"),"alert"),!1;if(!this.userData.isPayable)return this.addServiceMessage("".concat(__("Group chat is for premium members only.")," ").concat(__("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"),this.buyTokensPopup(),!1;var t=n.A.getState().isGroupChatInvited;return!this.userData.isLogged||this.isPaidShow()||t||!this.chatSettings.allowGroupChat||"private"===this.performerStatus||(_e(".acceptGroupChat").remove(),this.checkMemberJoinPaidChat(et.j.GROUP_CHAT)&&(this.service.gotoGroupChat(),de())),!1},gotoVoyeur:function(){return this.userData.isLogged?"member"!==this.userData.role?(this.addServiceMessage(__("Spy show feature only for premium members"),"alert"),!1):this.userData.isPayable?(!this.userData.isLogged||this.isPaidShow()||"private"!==this.performerStatus||this.checkMemberJoinPaidChat(et.j.VOYEUR_CHAT)&&(this.service.gotoVoyeur(),_e("#bPaidButtonGroup").removeClass("hide-first hide-middle").addClass("hide-first"),de()),!1):(this.addServiceMessage("".concat(__("Spy show feature is for premium members only.")," ").concat(__("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"),this.buyTokensPopup(),!1):(this.addServiceMessage(__("Spy show feature only for premium members"),"alert"),this.signupPopup(),!1)},setCloseRoom:function(t){void 0===t&&(t=!1),this.userData.isCloseRoom=t},checkCloseRoom:function(){return this.userData.isCloseRoom},acceptInvite:function(){if(!this.userData.isLogged||this.isPaidShow()||!this.chatSettings.allowPrivateChat||"private"===this.performerStatus||"fullprivate"===this.performerStatus||"group"===this.performerStatus)return!1;this.checkMemberJoinPaidChat(et.j.PRIVATE_CHAT)&&(this.acceptedPaidShow="private",this.paidShowInitiatedByModel=!0,this.service.acceptPrivateChat())},declineInvite:function(){this.service.sendShowRequest({status:"cancel",type:"private"})},stopPaidShow:function(t){this.debug("*** stopPaidShow",t),this.service.stopPaidShow(t)},removeAcceptGroupChat:function(){this.debug("removeAcceptGroupChat"),this.service.removeAcceptGroupChat()},checkMemberJoinPaidChat:function(t){if(t===et.j.GROUP_CHAT&&("offline"===this.performerStatus||"away"===this.performerStatus))return this.addServiceMessage(__("We are sorry, but %modelname% is unavailable for group show.",{modelname:chat.performerData.displayName}),"alert"),!1;if(this.userData.isPaymentsDisabled)return this.addServiceMessage("".concat(__("We are sorry, but your spending has been temporarily suspended."),' ').concat(__("Click for more details."),""),"alert"),!1;var e=!1,a="",i="",o="",s=n.A.getState().chatLocalData,r=s.fullPrivateChatTokensPerMinute,c=s.groupChatTokensPerMinute,l=s.privateChatTokensPerMinute,u=s.voyeurChatTokensPerMinute;if(t===et.j.GROUP_CHAT)e=this.userData.balance/c>=.5,a=__("We are sorry, but you do not have enough tokens for a group chat."),i=__("You need enough tokens for at least 30 seconds of chat."),o=__("Group chat costs %price% %tokens_plural% per minute.",{price:c,tokens_plural:Ot.kX.pluralise("tokens",c)});else if(t===et.j.PRIVATE_CHAT)if(this.chatSettings.minPrivateDuration){var h=this.chatSettings.minPrivateDuration/60;e=this.userData.balance/l>=h;var p=h*l;a=__("You don't have enough Tokens for a private chat."),i=__("To initiate the private chat with this model, you must have at least %amount% %tokens_plural% on your account.",{amount:p,tokens_plural:Ot.kX.pluralise("tokens",p)}),o=""}else e=this.userData.balance/l>=.5,a=__("We are sorry, but you do not have enough tokens for a private chat."),i=__("You need enough tokens for at least 30 seconds of chat."),o=__("Private chat costs %price% %tokens_plural% per minute.",{price:l,tokens_plural:Ot.kX.pluralise("tokens",l)});else if(t===et.j.FULL_PRIVATE_CHAT)if(this.chatSettings.minFullPrivateDuration){var d=chat.chatSettings.minFullPrivateDuration/60;e=this.userData.balance/r>=d;p=d*r;a=__("You don't have enough Tokens for a full private chat."),i=__("To initiate the full private chat with this model, you must have at least %amount% %tokens_plural% on your account.",{amount:p,tokens_plural:Ot.kX.pluralise("tokens",p)}),o=""}else e=this.userData.balance/r>=.5,a=__("We are sorry, but you do not have enough tokens for a full private chat."),i=__("You need enough tokens for at least 30 seconds of chat."),o=__("Full Private chat costs %price% %tokens_plural% per minute.",{price:r,tokens_plural:Ot.kX.pluralise("tokens",r)});else t===et.j.VOYEUR_CHAT&&(e=this.userData.balance/u>=.5,a=__("We are sorry, but you do not have enough tokens to spy on this show."),i=__("You need enough tokens for at least 30 seconds of show."),o=__("Spy show costs %price% %tokens_plural% per minute.",{price:u,tokens_plural:Ot.kX.pluralise("tokens",u)}));return e||this.addServiceMessage("".concat(a,"
").concat(i,"
").concat(o," ")+''.concat(__("Click here to buy more!"),""),"alert"),e},sendPM:function(){return(0,i.sH)(this,arguments,void 0,function(t){var e,a,o,s,c,l,u,h,p,d,m;return void 0===t&&(t=!1),(0,i.YH)(this,function(i){return e=he.BrowserDetect.isIE11(),a=this.userData,o=a.role,s=a.isLogged,c=n.A.getState(),l=c.chatHost,u=c.isMobileApp,c.isModerator,h=(null==l?void 0:l.username)||(null===(m=null===chat||void 0===chat?void 0:chat.performerData)||void 0===m?void 0:m.username),s?(p=e||u?_e("#bChat .js-chat_msg_input").attr("value"):_e("#bChat .js-chat_msg_input").attr("data-send-message"),h&&(s&&((0,se.M)(this.userData)||"moderator"===o)?((0,r.R)("@@ChatEvent/sendMessageFromLegacy",{message:p,username:h}),document.dispatchEvent(new CustomEvent(k.R.IM_WINDOW_OPEN,{detail:h}))):(0,r.R)("@@ChatEvent/getDialogRestriction",{message:p,username:h})),e||u?_e("#bChat .js-chat_msg_input").val(""):(d=(0,ge.L)(),(0,Ht.w3)(k.R.SMILEYS_TEXTAREA_CLEAR,{inputId:d})),[2]):(this.addServiceMessage(__("Private messaging only for premium members"),"alert"),t?_e.signupEvent.call(this):this.signupPopup(),[2,!1])})})},setChatMessageStyle:function(t){return n.A.getState().stylePanelOptions.isAvailableApply?this.service.setChatMessageStyle(t):this.addServiceMessage(__("Become a PLATINUM member for change your font style"),"alert"),!1},toggleFullscreen:function(t){if(!t||this.userData.isLogged&&this.localData.canEnlargeVideo)return(0,r.R)("@@ClosePopup"),(0,$t.s)(t),!0},showGameHitMessage:function(t){this.gameControls.addChatGameHitMessage(t)},handlePlayRollTheDiceHit:function(){re.U.setVideoAutoPlayEnablingOn()},askStopPaidShow:function(){var t=function(){chat.stopPaidShow()};if(chat.initiatedPaidShow&&chat.acceptedPaidShow&&chat.privateChatStart&&!chat.paidShowInitiatedByModel){var e=(Date.now()-chat.privateChatStart)/1e3,a=void 0;if("private"===chat.acceptedPaidShow&&e",s2:"",s3:"",s4:"",tokens_plural:Ot.kX.pluralise("tokens",o)})}else if("fullprivate"===chat.acceptedPaidShow&&e",s2:"",s3:"",s4:"",tokens_plural:Ot.kX.pluralise("tokens",o)})}a?(0,y.G)({className:"__danger",buttons:[{className:"__light",grow:2,label:__("Cancel"),onClick:y.h},{className:"__danger",label:__("Exit"),onClick:function(){(0,y.h)(),t()}}],content:a,title:__("Are you sure you want to exit?"),isHtml:!0}):t()}else t()},onTopicChange:function(t,e,a){if(void 0===a&&(a=!1),t){var i=n.A.getState().isMobile;t&&(t=(0,fe.gL)((0,te.CN)(t,!0),"",16),this.debug("onTopicChange","isRu=".concat(e),t),!i&&a||this.addServiceMessage(''.concat(__("Topic"),": ").concat(t),"topicChange")),n.A.action(s.f)({currentTopic:t}),_e(document).trigger("chat:topic-change",[t,e])}},toggleChatMemberNotificationElements:function(t,e){document.querySelectorAll(e).forEach(function(e){t?_e(e).show():_e(e).hide()})},onTipMenuChange:function(){for(var t,e,a=[],i=0;i'+__("Buy tokens")+" "},handleDialogRestrictions:function(t){var e=this;if(t.error)switch(t.error){case 10:return chat.addServiceMessage(__("You cannot send messages as you were blocked by this model"),"alert");case 3:return chat.addServiceMessage(__("You cannot send messages as you blocked this model"),"alert")}var a=this.userData,i=a.accessLevel,o=a.balance,s=a.role;if("member"===s&&i===at.A.FREE)return this.addServiceMessage("".concat(__("Private messaging is for premium members only.")," ").concat(__("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"),this.buyTokensPopup(),!1;if("member"!==s)return this.addServiceMessage(__("Only members can private messaging"),"alert"),!1;var r=this.chatSettings,c=r.privateMessageMinTokens;switch(r.privateMessageSettings){case st.ALL:return o0&&t.prop("data-tip-king")&&t.addClass("__visible")},hideTipKing:function(){var t=_e(".js-tip_king_wrp");t.length>0&&t.removeClass("__visible")}};_e.extend(window.chat,Ce),function(){var t=n.A.getState().isMobile;if((0,Wt.iB)()&&t&&qt(document).on((0,Wt.OX)().fullscreenchange,function(t){(0,Wt.FR)()||(jt.A.instance.toggleFullscreen(!1),(0,$t.s)(!1))}),St.c.on("isMemberBanned",function(e){e.isMemberBanned&&((0,bt.D)(),t?qt(".js-flwm_btn.__add").removeClass("__active"):qt(".js-flwm_btn.__add").hide())}),St.c.on("isMemberKicked",function(t){t.isMemberKicked&&(0,bt.D)()}),qt("#bChat").on("onPerformerStatusChange",function(e){var a,i=chat.performerStatus;(0,Ct._b)("Chat Event onPerformerStatusChange").log(i),t&&(S.c.instance.hide({key:"private"}),S.c.instance.unmountJoinChat()),qt("#bPaidButtonGroup").removeClass("hide-first hide-middle"),qt("#bSignup2, #bBuyVip2").hide(),qt("#layover-logo").removeClassWild("wm_status_*").addClass("wm_status_"+i);var o="",s=(chat.privateChatStart?new Date(chat.privateChatStart):new Date).format("H:i:s");switch(i){case"away":case"online":case"public":chat.localData.isFreeShow?(qt("#bCamStatus").find("p:first").html(__("%modelname% is in a public chat",{modelname:""})),(0,It.pl)("bGotoPrivate","bGotoGroup","bGotoVoyeur"),(0,bt.D)()):(qt("#bCamStatus").find("p:first").html(__("%modelname% is in a public chat",{modelname:""})),(0,It.e4)("bGotoGroup","bGotoPrivate","bTip"),(0,It.pl)("bGotoVoyeur"),(0,bt.D)());break;case"fullprivate":case"private":var r=i;if(chat.acceptedPaidShow)qt("#bPaidButtonGroup").addClass("hide-first");else{"fullprivate"===i?(r="full private",qt("#bGotoVoyeur2").hide()):(qt("#bGotoVoyeur2").show(),t||"moderator"===chat.userData.role||Gt());var c=s+" "+__("%username% has joined the "+r+" chat.",{username:""+chat.performerData.displayName+""});"private"===i&&"moderator"!==chat.userData.role&&(c+=" "+__("You can spy for this show")+', '.concat(__("click here"),"!")),t&&"private"===i&&S.c.instance.renderJoinChat(i),chat.addServiceMessage(c,"service"),chat.privateChatStart=null}qt("#bCamStatus p:first").html(__("%modelname% is in a "+r+" chat",{modelname:''+chat.performerData.displayName+""})),document.dispatchEvent(new CustomEvent(k.R.INVITE_POPUP_CANCEL_MODEL)),(0,It.pl)("bGotoPrivate","bGotoGroup"),qt("#bGotoGroup2").hide();break;case"group":if(n.A.getState().isGroupChatInvited)qt("#bPaidButtonGroup").addClass("hide-first");else{c="";if(c='
\n \n \n ').concat(u.groupChatTokensPerMinute,"\n \n ").concat(" ","\n ").concat(Ot.kX.pluralise("tokens",u.groupChatTokensPerMinute),"\n ").concat(" ","\n ").concat(__("per minute"),"\n ");c+='",qt("#bGotoGroup2").show(),t||Gt()}t&&S.c.instance.renderJoinChat(i),chat.privateChatStart=null}o=__("%modelname% is in a group chat",{modelname:''+chat.performerData.displayName+""}),qt("#bCamStatus p:first").html(o),(0,It.pl)("bGotoPrivate","bGotoVoyeur","bGotoGroup"),qt("#bGotoVoyeur2").hide();break;case"offline":(0,It.pl)("bGotoPrivate","bGotoGroup","bGotoVoyeur"),(0,bt.D)(),o=__("%modelname% is offline",{modelname:''+chat.performerData.displayName+""}),qt("#bCamStatus p:first").html(o),document.dispatchEvent(new CustomEvent(k.R.INVITE_POPUP_CANCEL_MODEL));break;case"vip":if(!chat.acceptedPaidShow){c=s+" "+__("%username% has joined the "+i+" chat.",{username:""+chat.performerData.displayName+""});chat.addServiceMessage(c,"service"),chat.privateChatStart=null}qt("#bCamStatus p:first").html(__("%modelname% is in a "+i+" chat",{modelname:''+chat.performerData.displayName+""})),(0,It.pl)("bGotoPrivate","bGotoGroup","bGotoVoyeur"),(0,bt.D)(),chat.userData.isVip||qt("#bBuyVip2").show()}t?null===(a=chat.gameControls)||void 0===a||a.onPerformerStatusChange(i):chat.gameControls?chat.gameControls.onPerformerStatusChange(i):chat.gameControlsLoader&&chat.gameControlsLoader().then(function(){var t;null===(t=chat.gameControls)||void 0===t||t.onPerformerStatusChange(i)})}),qt("#bChat").on("onRoomClose",function(t){chat.setCloseRoom(!0),document.dispatchEvent(new CustomEvent(k.R.INVITE_POPUP_CANCEL))}),qt(document).on("click",".js-voyeur_link",function(){t?chat.gotoVoyeur():chat.paidShowPopup(et.j.VOYEUR_CHAT)}),lt.q.isEnabled(it.i.TIP_MENU_POPUP_GAME)&&(qt(document).on("click",".js-tip_msg_menu_btn",function(){var t;null===(t=chat.gameControls)||void 0===t||t.openTipMenuPopup("notice")}),qt("#bChat").on(k.R.ON_CURRENT_CHATHOST_CHANGE,function(){Nt.S.instance.clearValue()}),lt.q.isEnabled(it.i.TIP_MENU_MOBILE_CHAT_BAR)&&qt(document).on("click","#chat_bar_v2 .js-bcm_chat_tip_menu",function(){var t;null===(t=chat.gameControls)||void 0===t||t.openTipMenuPopup("chatBar")})),!qt.mobile){var e=0,i=!0,o=!1,s=0,r=!1;qt(window).on("keydown",function(t){r=!!qt(".fancy_popup.__open").length,(91===t.keyCode||92===t.keyCode)&&(o=!0)}),qt(window).on("keyup",function(t){(91===t.keyCode||92===t.keyCode)&&(clearTimeout(s),s=window.setTimeout(function(){o=!1},100))}),qt(window).on("keyup",function(t){var e=39===t.keyCode,a=37===t.keyCode;(a||e)&&(o||"visible"!==chat.visibility||(0,Vt.Vr)(n.A.getState().photoGallery)||r||qt(".fancy_popup.__open").length||qt(t.target).is("input, textarea")||qt(t.target).attr("contenteditable")||(e?Ft.h.instance.nextRoom():a&&Ft.h.instance.prevRoom()))}),qt("#bChat").on("onBeforeGetRoom",function(){(0,bt.D)()}),qt("#bGotoPrivate").on("click",function(){chat.paidShowPopup(et.j.PRIVATE_CHAT)}),qt("#bPaidButtonTopRow #bGotoGroup").on("click",function(){chat.paidShowPopup(et.j.GROUP_CHAT)}),qt("#bGotoVoyeur2 button").on("click",function(){chat.paidShowPopup(et.j.VOYEUR_CHAT)});var c=function(t,e){e.find('[data-tab="users"]').toggle("users"===t),e.find('[data-tab="history"]').toggle("history"===t),chat.checkCloseRoom()||chat.service.showUserList("users"===t),(0,yt.T)()};qt(".chat_tabs_container .mls_tabs a").on("click",function(){var t,a=qt(this).parent(),o=a.closest(".chat-tab"),s=o.find(".js-chat_tabs_content"),n=o.find(".js-chat_tab_content"),r=null==n?void 0:n.parents(".js-sp_content"),l=qt("#bChat").find('[data-tab="history"]').find(".js-sp_content");if(a.is(".tab_history")&&!a.hasClass("selected")&&(c("history",s),o.find(".historyContainer").removeClass("hidden"),o.find(".chat_tabs_container li").removeClass("selected"),a.addClass("selected"),n.length&&(i?(qt(".js-bc_history_scroll").addClass("__hidden"),r.scrollTop(n[0].scrollHeight)):r.scrollTop(e))),a.is(".tab_users")&&!a.hasClass("selected")){var u=(0,xt.T)(!1);i=u>n[0].scrollHeight,e=null===(t=null==l?void 0:l[0])||void 0===t?void 0:t.scrollTop,c("users",s),o.find(".historyContainer").addClass("hidden"),o.find(".chat_tabs_container li").removeClass("selected"),a.addClass("selected")}(0,Ht.w3)(k.R.CHAT_AFTER_CHANGE_TAB,a.is(".tab_history")),(0,Ht.w3)(k.R.CONTEXTMENU_CLOSE)}),qt("#mnw").click(function(){var t=qt(this).closest("#bModelNavigator").find(".navigatorHint"),e=t.find(".corner");qt(document).off(".navigatorHint"),t.is(":visible")?(t.hide(),t.css("bottom","")):(t.show(),t.offset().top+t.outerHeight(!0)>qt(window).scrollTop()+qt(window).height()?(t.css("bottom","33px"),e.removeClass("top"),e.addClass("bot")):(e.removeClass("bot"),e.addClass("top")),setTimeout(function(){qt(document).on("click.navigatorHint",function(){t.hide(),t.css("bottom",""),qt(document).off(".navigatorHint")})},1))}),qt("#bModelNavigator").find(".navigatorHint .inner").click(function(t){qt(t.target).hasClass("closeBtn")||t.stopPropagation()}),qt(document).on("click",".closeBtn",function(){var t=qt(this).closest(".smilePanel");t.length&&t.hide()})}St.c.on("chatInternalState.paidShowPopup",function(t,e){var i,o,s=t.chatInternalState.paidShowPopup,r=e.chatInternalState.paidShowPopup,c=n.A.getState();if(c.isAuthenticated){if(s.type!==r.type){var l=null===(o=c.chatHost)||void 0===o?void 0:o.username;Promise.all([a.e(5),a.e(931)]).then(a.bind(a,94566)).then(function(t){return t.OpenInvitationPopup.loadAndOpen(s.type,l)})}}else null===(i=ht.X.instance)||void 0===i||i.open(wt.L.JOIN_POPUP)}),(0,Ct._b)("SEO ogMeta effect attachChatSeo").log(),Mt(document).on("chat:visibility",Rt),St.c.on("memberChatSeoMeta",Bt)}()},33617:function(t,e,a){a.d(e,{U:function(){return i}});var i=function(){function t(){}return t.isVideoAutoPlayEnablingChecked=function(){return void 0!==t.isAutoPlayEnabled},t.isVideoAutoplayEnabled=function(){return t.isAutoPlayEnabled},t.setVideoAutoPlayEnablingOn=function(){t.isAutoPlayEnabled=!0},t.setVideoAutoPlayEnablingOff=function(){t.isAutoPlayEnabled=!1},t}()},76316:function(t,e,a){a.d(e,{s:function(){return o}});var i=a(15215),o=a(99525).A.action(function(t,e){return{user:(0,i.Cl)((0,i.Cl)({},t.user),e)}})},3206:function(t,e,a){a.d(e,{s:function(){return i}});var i=a(99525).A.action(function(t,e){return{isFullScreen:e}})},62299:function(t,e,a){a.d(e,{g:function(){return o}});var i=a(15215);var o=a(99525).A.action(function(t,e){return function(t,e){return{tipPopupOptions:(0,i.Cl)((0,i.Cl)({},t.tipPopupOptions),e)}}(t,{lastTip:e})})},46807:function(t,e,a){a(41669).fn.removeClassWild=function(t){return this.removeClass(function(e,a){var i=t.replace(/\*/g,"\\S+");return(a.match(new RegExp("\\b".concat(i),"g"))||[]).join(" ")})}}}]);