"use strict";(self.webpackChunkbongacams=self.webpackChunkbongacams||[]).push([[664],{75628:function(t,e,a){a.d(e,{p:function(){return o}});var i=a(15215),o=a(19826).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 s}});var i=a(15215),o=a(27510),s=a(19826).A.action((function(t,e){return[o.j.PRIVATE_CHAT,o.j.FULL_PRIVATE_CHAT].includes(e)&&localStorage.setItem("lastPrivateType",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(33954),o=a(19826),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(19826),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(19826),n=a(88035),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(19826),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 o}});var i=a(93156),o=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.Smileys.replace({message:t.replace(i.n,' $1')})},t}()},11227:function(t,e,a){a.d(e,{e4:function(){return u},pl:function(){return l}});var i=a(29313),o=a(74213),s=a(19826),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.element.innerHTML=a,this.element.addEventListener("click",this.onClickSlider),x(this.element,window.chat&&((0,O.e)(window.chat.userData)||window.chat.userData.isVip)?9:11),this.setDefault()},e}(N),Y=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,O.e)(window.chat.userData)||window.chat.userData.isVip)},t.prototype.init=function(){this.colorBox&&this.popover&&(this.popoverWidget=new q(this.colorBox,this.popover,this.onSubmit),this.popoverWidget.setWidget(new z(this.popoverSlider,this.popoverSlider.getAttribute("data-hs_item_class"),this.defaultPreset)),this.isAllowedColorPicker()&&this.popoverWidget.setWidget(new W(this.popoverPicker,this.defaultPreset,this.popover)))},t}(),X=a(41669),K=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;X(document).off(w.R.FONT_PICKER_INIT).on(w.R.FONT_PICKER_INIT,(function(i){var o,n=null===(o=i.originalEvent.detail)||void 0===o?void 0:o.initOnly,r=s.A.getState().stylePanelOptions;t.prototype.init.call(e),e.$bgInput=X("#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(w.R.CUSTOM_CHANGE,(function(){a.changeState(X(this).attr("name"),X(this).val())})),n||e.$button.trigger("click")})),X(document).off("click",".msp_what_link").on("click",".msp_what_link",(function(t){X(t.target).is(".msp_what_close")||(X(".msp_what_popover").show(),X(document).off(".msp_what").on("click.msp_what",(function(t){var e=t.target;X(e).closest(".msp_what_popover").length||(X(".msp_what_popover").hide(),X(document).off(".msp_what"))})).on("click.msp_what",".msp_what_close",(function(){X(".msp_what_popover").hide(),X(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,k.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,k.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,T.BH)(s.A.getState())?[-5,0]:D.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 Y(this.$colorContainer[0],this.state.color,(function(t){o.onSubmit(o.$fontColorInput,t)})),this.colorContainer.init(),this.isBgAllowed&&(this.bgContainer=new U(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,M.fd)(this.$fillPreview.attr("bg"))&&this.$fillPreview.removeClass("pt_".concat(this.$fillPreview.attr("bg"))),(0,M.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=s.A.getState();if((0,T.BH)(t)){var e=(0,A.N)(this.$tooltip.get(0)),a=(0,P.Z)(),i=(0,A.N)("#".concat(a)),o=D.isRTLCulture?i.x2-e.width:i.x1;this.$tooltip.css({left:o,position:"absolute"})}},e}(R),J=K,Z=a(47885),Q=a(27510),tt=a(2597),et=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=((j={})[e.ALL]=__("Let everyone send me private messages"),j[e.FRIENDS]=__("Allow private messages only to followers I follow back"),j[e.FOLLOWERS]=__("Allow private messages only from members and models that follow me"),j[e.DISABLED]=__("Nobody can send me private messages"),j[e.MODELS]=__("Only allow models to send me private messages"),j),e}(a(53767).A),at=et,it=a(13907),ot=a(79276),st=a(23385),nt=a(22078),rt=a(93118),ct=a(58699);function lt(){var t=s.A.getState(),e=t.memberChatNotificationSettingsOptions,a=t.isAuthenticated;return(0,nt.j)(e)||!a}function ut(t){var e=(0,ct.ZW)(t),a=(0,ct.n5)(e),i=[rt.A.TBR_NOTIFIER,rt.A.ROT_NOTIFIER,rt.A.LOVENSE,rt.A.TIP_KING];return a&&i.includes(a)}function ht(t,e){return"notice"!==t||!!e&&0!==e.indexOf("enc:")}function pt(){var t=s.A.getState(),e=t.memberChatNotificationSettingsOptions;return!t.isAuthenticated||function(){var t=s.A.getState(),e=t.memberChatNotificationSettingsOptions,a=t.isAuthenticated;return(0,nt.j)(e)||!a}()&&!(null==e?void 0:e.is_tip_menu_notifications_enabled)}var dt=a(44019),mt=a(1579),ft=a(68133),vt=a(45070),gt=a(18697),_t=a(21110),bt=a(52276),yt=a(30535),St=a(78191),Ct=a(83482),wt=a(41669),Pt=[],kt=function(){(0,gt._b)("SEO ogMeta deleteChatMetaTags").log(Pt);for(var t=0,e=Pt;t'.concat(Lt.kX.pluralise("tokens",e),""),username:''.concat(a.displayName,"")})},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(Lt.kX.pluralise("tokens",e),"")})},e.prototype.createMessageWithTipMenuItem=function(t){var a=t.amount,o=t.td,s=t.user,n=_t.q.isEnabled(vt.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(Lt.kX.pluralise("tokens",a),""),username:''.concat(s.displayName,"")}),'\n \n ').concat(this.createTipMenuButton(),'\n ').concat(Xt.mobile?e.replaceSmiles((0,Yt.CN)(r)):(0,Yt.CN)(r),"\n \n "):this.createDefaultMessage((0,i.Cl)((0,i.Cl)({},t),{subType:""}))},e.prototype.createTipMenuButton=function(){var t=s.A.getState(),e=t.isModerator||(0,Ut.DO)().length&&"public"===chat.performerStatus;return'\n ')},e.getModifier=function(t){return"chat_bot_tip_menu"===t.subType&&e.getTipMenuService(t.td)?"__tip_menu":""},e.getTipMenuService=function(t){if(!t)return"";var e=chat.performerData.isRu?t[chat.userData.isRu?"ru":"en"]:t.en;return e?(0,L.Zn)(__(e.s)):""},e}(qt.f),Jt=["after_show","chat_bot_tip_menu"],Zt=a(41669);var Qt=a(99103),te=a(90833),ee=a(55681),ae=a(33617),ie=a(86757),oe=a(76316),se=a(45505),ne=a(22706),re=function(){(ne.BrowserDetect.isIOS()||ne.BrowserDetect.isSafari_MacOS())&&(0,se.t)((function(){Nt.A.instance.player&&Nt.A.instance.player.videoElement&&Nt.A.instance.player.videoElement.playing&&Nt.A.instance.player.videoElement.play()}),!0,!0)},ce=a(69779),le=a(96575),ue=a(32330),he=a(7195),pe=a(4527),de=(a(46807),a(79959),a(41669)),me=chat.onTipMenuChange,fe=chat.showTipMenu,ve=chat.incomingServiceMessage,ge={acceptedPaidShow:!1,initiatedCam2CamShow:!1,initiatedPaidShow:!1,messageStyle:new J,paidShowId:null,paidShowInitiatedByModel:!1,privateChatStart:null,initService:function(){this.service=new ee.A(chat.localData.directServiceUrl,chat.localData.serviceUrl),document.addEventListener("@@chatTipPopup/check",(function(){(0,le.R)("@@chatTipPopup/checkResponse",{isAvailable:(0,g.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,d.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=f.mobile?f(".rel_buy_vip:first a"):f("#bBuyVip");return t&&e.attr(t)?e.attr("href",(0,m.K)(e.attr("href"),"vpop",e.attr(t))):e.attr("href",(0,m.K)(e.attr("href"),"vpop",null)),f.mobile?location.href=e.attr("href"):e.click(),!1}chat.signupPopup()}(t),!1},signupPopup:function(t){return void 0===t&&(t=!1),(0,v.R)(t),!1},tipPopup:function(t,e){var a;return void 0===t&&(t=!1),void 0===e&&(e=!1),null===(a=st.X.instance)||void 0===a||a.setUserInteractionLock(60),(0,g.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(678).then(a.bind(a,29310))];case 1:return t=e.sent(),(0,ot.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=s.A.getState().chatInternalState.paidShowPopup;if([Q.j.PRIVATE_CHAT,Q.j.FULL_PRIVATE_CHAT].includes(t)&&!a.type&&!e){var i=localStorage.getItem("lastPrivateType");[Q.j.PRIVATE_CHAT,Q.j.FULL_PRIVATE_CHAT].includes(i)&&(t=i)}(0,u.a)(t)},paidShowDecline:function(t){(0,n.E)(!1),(0,c.V)(!1),ie.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"),de(t).length&&de(t).is(".payment_disabled")&&this.buyTokensPopup())},setBalance:function(t,e){t<.15*parseFloat(de(".js-tokens").attr("data-last-purchase"))&&a.e(666).then(a.bind(a,30740)).then((function(t){return t.init(),t})).then((function(t){return t.getFewTokensIm()})),chat.userData.balance=t,e&&(0,oe.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;de("#bChat").triggerHandler("onPaidShowStart",t);var i=de("#public-chat");switch(i.data("history",de("#public-chat .history").html()),(0,he.kd)("public-chat"),i.attr("id",this.currentChatType),"private-chat"!==this.currentChatType||"fullprivate"!==this.currentShowType&&"private"!==this.currentShowType||(0,l.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"),de(".js-stream_rec_badge").toggleClass("__show",!!a);break;case"group":var o,s=de.mobile?"#svg_mob_ch_group_chat_ac_angle":"".concat(Z.em,"#svg_ch_group_chat_ac_angle");o='
').concat(__("%s1%Welcome, %username%!%s2%%br%You have entered the Group Chat!",{br:" ",s1:'',s2:"",username:this.userData.displayName}),"
"),this.addServiceMessage(o,"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,h.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 r=s.A.getState(),l=r.chatInternalState,u=r.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 d=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)&&d){var m=d*parseFloat(de(".js-tap_popup").data("".concat(this.currentShowType,"_tip"))),f=chat.performerData,v=f&&l.lastShowModel===f.username,g=this.paidShowId;d>120?function(t,e,i,o,n){var r=s.A.getState(),c=r.rateChatChowPopupOptions,l=r.isMobile,u=(null==c?void 0:c.canAddProfileComments)||!1,h=function(){return a.e(565).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})}))};n&&!l?(document.addEventListener(w.R.LAYOVER_POPUP_CLOSE,h,{once:!0}),(0,C.o)()):h()}(g,m,this.currentShowType,(0,i.Cl)({},f),h):h?(0,C.o)():d>30&&v&&function(t,e){a.e(502).then(a.bind(a,46732)).then((function(a){a.default.showForm(e,t)}))}(g,m)}"private-chat"===this.currentChatType&&"group"===this.currentShowType&&(0,he.kd)("private-chat"),de("#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,n.E)(!1),(0,c.V)(!1),ie.A.instance.setLayoverWait(!1),de("#bChat").triggerHandler("onPaidShowStop",[t,e]),(0,p.W)(),de(window).scrollTop(0),t&&this.addServiceMessage(__(t,{modelname:this.performerData.displayName}),"alert"),(null==u?void 0:u.isGroupChat)&&this.joinGroupChatModel(),de(".js-stream_rec_badge").toggleClass("__show",!1)}},cancelShowRequest:function(t){var e;if(t instanceof Element){var a=de(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,n.E)(!1),(0,c.V)(!1);else if("accept"===t){s.A.getState().isGroupChatInvited&&(this.acceptedPaidShow="group",de("#bChat").triggerHandler("onPaidShowAccepted",this.acceptedPaidShow),this.requestManagerHideGroup())}},cancelGroupShowResponse:function(){var t;this.requestManagerHideGroup();var e=s.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?(_.c.instance.hidePrompt(t),this.acceptedPaidShow=t.type,void de("#bChat").triggerHandler("onPaidShowAccepted",this.acceptedPaidShow)):void("request"===t.status&&t.user.isPerformer?document.dispatchEvent(new CustomEvent(w.R.INVITE_POPUP_SHOW)):_.c.instance.showPrompt(t));document.dispatchEvent(new CustomEvent(w.R.INVITE_POPUP_CANCEL_MODEL))},onGroupChatInvitationChange:function(t){var e=this;if((0,n.E)(!0),(0,r.j)(t),!t||t.users&&0===t.users.length)return(0,c.V)(!1),void this.requestManagerHideGroup();(0,c.V)(t.users&&void 0!==t.users.find((function(t){return t.u===e.userData.username}))),_.c.instance.showPrompt(t)},onPerformerStatusChange:function(t){var e=s.A.getState().isMobile;"group"===t&&((0,n.E)(!0),e||this.requestManagerHideGroup(),this.joinGroupChatModel()),e&&("away"===this.performerStatus?this.hideTipKing():this.showTipKing())},onStartPaidShow:function(){this.requestManagerHideGroup()},joinGroupChatModel:function(){s.A.getState().isMobile||_.c.instance.showPrompt({status:"join",type:"group"})},requestManagerHideGroup:function(){_.c.instance.hide({key:"group"})},onTip:function(t,e,a,i,o,s){var n,r;if(void 0===i&&(i=""),window.chat.performerData&&t&&e){var c=void 0,l=(window.chat||{}).userData,u=t&&l.username&&t.username.toLowerCase()===l.username.toLowerCase();l&&"moderator"===l.role&&(0,jt.C1)()&&(i=""),u&&!Jt.includes(i)&&(0,Vt.g)(e);var h={amount:e,subType:i,td:null===(r=null==o?void 0:o.body)||void 0===r?void 0:r.td,user:t},p=Kt.instance.create(h);o&&void 0!==o&&void 0!==o.messageOptions&&(c=function(e){var a=window.chat.renderMessageForTip(o.messageOptions);if(a){var i=Zt(e);return i.find(".system_area").append(a),s||(0,Rt.w3)(w.R.CHAT_INCOMING_MEMBER_MESSAGE,t),i}return e});var d=Kt.getModifier(h),m=window.chat.addServiceMessage(p,(0,zt.n)(((n={tip_success:!0})[d]=d,n)),window.chat.currentChatType,{amount:e,fromData:t},c);m&&(null==m?void 0:m.length)&&(chat.setUserDataToItem(m,t),"updateTipMessageForAdmin"in chat&&"function"==typeof chat.updateTipMessageForAdmin&&chat.updateTipMessageForAdmin(m,t,e))}},onShowRaise:function(t){var e=__("%member% raised %model% to the 1st position on the main page for 60 seconds!",{member:''.concat(t,""),model:''.concat(this.performerData.displayName,"")});this.addServiceMessage(e,"model_raise")},onVideoStreamLimit:function(t){if(de("#bChat").triggerHandler("onVideoStreamLimit",t),!this.userData.isVideoStreamLimitReached){this.userData.isVideoStreamLimitReached=!0;var e=de("body").hasClass("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,"
"),de("#chatbox_".concat(t," .history"))):de(".history .guest_chat_alert").length||this.addServiceMessage(e,"alert guest_chat_alert")},onFreeShowState:function(t){this.localData.isFreeShow=t;var e=s.A.getState(),a=e.isAuthenticated,i=e.isMobile;t&&(i?a?de("#private_btn_cell").hide():(de("#bPrivateLinkStart").hide(),de("#chat_bar_v2").addClass("private_btn_cell_hidden")):(de("#bPaidButtonGroup").removeClass("hide-first hide-middle"),(0,Et.pl)("bGotoPrivate","bGotoGroup","bGotoVoyeur"),(0,dt.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,n,r,c;return(0,i.YH)(this,(function(i){switch(i.label){case 0:return s.A.getState().isAuthenticated?"member"!==this.userData.role?(this.addServiceMessage(__("Webcam feature only for premium members"),"alert"),[2,!1]):this.userData.isPayable?(e=de("#member_cam_popup"),t?document.dispatchEvent(new CustomEvent(w.R.SHARE_CAM_SHOW)):document.dispatchEvent(new CustomEvent(w.R.SHARE_CAM_HIDE)),o=navigator.mediaDevices&&navigator.mediaDevices.getUserMedia&&chat.performerData&&"bongacam"!==chat.performerData.videoEncoder,n=(0,it.ip)("@member_cam?performer=".concat(chat.userData.chathost))+(o?"?wrtc=1":""),this.initiatedCam2CamShow?[3,3]:(this.initiatedCam2CamShow=!0,[4,a.e(676).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(675).then(a.bind(a,11618))];case 2:r=i.sent().default,c=new r({ajax:!0,camUrl:n,chathost:this.currentChathost,popupName:"member_cam_popup",isWrtc:o}),(e=de("#member_cam_popup")).data("popup",c),i.label=3;case 3:return e.data("popup")&&(t?(e.data("popup").camUrl=n,e.data("popup").params.camUrl=n,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=de("#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?Q.j.FULL_PRIVATE_CHAT:Q.j.PRIVATE_CHAT)&&(this.service.gotoPrivateChat(t),re()),!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=s.A.getState().isGroupChatInvited;return!this.userData.isLogged||this.isPaidShow()||t||!this.chatSettings.allowGroupChat||"private"===this.performerStatus||(de(".acceptGroupChat").remove(),this.checkMemberJoinPaidChat(Q.j.GROUP_CHAT)&&(this.service.gotoGroupChat(),re())),!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(Q.j.VOYEUR_CHAT)&&(this.service.gotoVoyeur(),de("#bPaidButtonGroup").removeClass("hide-first hide-middle").addClass("hide-first"),re()),!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(Q.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===Q.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="",n=s.A.getState().chatLocalData,r=n.fullPrivateChatTokensPerMinute,c=n.groupChatTokensPerMinute,l=n.privateChatTokensPerMinute,u=n.voyeurChatTokensPerMinute;if(t===Q.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:Lt.kX.pluralise("tokens",c)});else if(t===Q.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:Lt.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:Lt.kX.pluralise("tokens",l)});else if(t===Q.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:Lt.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:Lt.kX.pluralise("tokens",r)});else t===Q.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:Lt.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,n,r,c,l,u,h,p,d;return void 0===t&&(t=!1),(0,i.YH)(this,(function(i){return e=ne.BrowserDetect.isIE11(),a=this.userData,o=a.role,n=a.isLogged,r=s.A.getState(),c=r.chatHost,l=r.isMobileApp,r.isModerator,u=(null==c?void 0:c.username)||(null===(d=null===chat||void 0===chat?void 0:chat.performerData)||void 0===d?void 0:d.username),n?(h=e||l?de("#bChat .js-chat_msg_input").attr("value"):de("#bChat .js-chat_msg_input").attr("data-send-message"),u&&(n&&((0,te.M)(this.userData)||"moderator"===o)?((0,le.R)("@@ChatEvent/sendMessageFromLegacy",{message:h,username:u}),document.dispatchEvent(new CustomEvent(w.R.IM_WINDOW_OPEN,{detail:u}))):(0,le.R)("@@ChatEvent/getDialogRestriction",{message:h,username:u})),e||l?de("#bChat .js-chat_msg_input").val(""):(p=(0,pe.L)(),document.dispatchEvent(new CustomEvent(w.R.SMILEYS_TEXTAREA_CLEAR,{detail:{inputId:p}}))),[2]):(this.addServiceMessage(__("Private messaging only for premium members"),"alert"),t?de.signupEvent.call(this):this.signupPopup(),[2,!1])}))}))},setChatMessageStyle:function(t){return s.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,le.R)("@@ClosePopup"),(0,Ht.s)(t),!0},showGameHitMessage:function(t){this.gameControls.addChatGameHitMessage(t)},handlePlayRollTheDiceHit:function(){ae.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:Lt.kX.pluralise("tokens",o)})}else if("fullprivate"===chat.acceptedPaidShow&&e",s2:"",s3:"",s4:"",tokens_plural:Lt.kX.pluralise("tokens",o)})}a?(0,b.G)({className:"__danger",buttons:[{className:"__light",grow:2,label:__("Cancel"),onClick:b.h},{className:"__danger",label:__("Exit"),onClick:function(){(0,b.h)(),t()}}],content:a,title:__("Are you sure you want to exit?"),isHtml:!0}):t()}else t()},onTopicChange:function(t,e,a){void 0===a&&(a=!1);var i=s.A.getState().isMobile;(0,Qt.y)(e)&&(t&&(t=(0,ue.gL)((0,Yt.CN)(t,!0),"",16),this.debug("onTopicChange","isRu=".concat(e),t),!i&&a||this.addServiceMessage(''.concat(__("Topic"),": ").concat(t),"topicChange")),s.A.action(ce.f)({currentTopic:t}),de(document).trigger("chat:topic-change",[t,e]))},toggleChatMemberNotificationElements:function(t,e){document.querySelectorAll(e).forEach((function(e){t?de(e).show():de(e).hide()}))},onTipMenuChange:function(){for(var t,e,a=[],i=0;i0&&t.prop("data-tip-king")&&t.addClass("__visible")},hideTipKing:function(){var t=de(".js-tip_king_wrp");t.length>0&&t.removeClass("__visible")}};de.extend(window.chat,ge),function(){var t=s.A.getState().isMobile;if((0,Ft.iB)()&&t&&$t(document).on((0,Ft.OX)().fullscreenchange,(function(t){(0,Ft.FR)()||(Nt.A.instance.toggleFullscreen(!1),(0,Ht.s)(!1))})),mt.c.on("isMemberBanned",(function(e){e.isMemberBanned&&((0,dt.D)(),t?$t(".js-flwm_btn.__add").removeClass("__active"):$t(".js-flwm_btn.__add").hide())})),mt.c.on("isMemberKicked",(function(t){t.isMemberKicked&&(0,dt.D)()})),$t("#bChat").on("onPerformerStatusChange",(function(e){var a,i=chat.performerStatus;(0,gt._b)("Chat Event onPerformerStatusChange").log(i),t&&(_.c.instance.hide({key:"private"}),_.c.instance.unmountJoinChat()),$t("#bPaidButtonGroup").removeClass("hide-first hide-middle"),$t("#bSignup2, #bBuyVip2").hide(),$t("#layover-logo").removeClassWild("wm_status_*").addClass("wm_status_"+i);var o="",n=(chat.privateChatStart?new Date(chat.privateChatStart):new Date).format("H:i:s");switch(i){case"away":case"online":case"public":chat.localData.isFreeShow?($t("#bCamStatus").find("p:first").html(__("%modelname% is in a public chat",{modelname:""})),(0,Et.pl)("bGotoPrivate","bGotoGroup","bGotoVoyeur"),(0,dt.D)()):($t("#bCamStatus").find("p:first").html(__("%modelname% is in a public chat",{modelname:""})),(0,Et.e4)("bGotoGroup","bGotoPrivate","bTip"),(0,Et.pl)("bGotoVoyeur"),(0,dt.D)());break;case"fullprivate":case"private":var r=i;if(chat.acceptedPaidShow)$t("#bPaidButtonGroup").addClass("hide-first");else{"fullprivate"===i?(r="full private",$t("#bGotoVoyeur2").hide()):($t("#bGotoVoyeur2").show(),t||"moderator"===chat.userData.role||Bt());var c=n+" "+__("%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&&_.c.instance.renderJoinChat(i),chat.addServiceMessage(c,"service"),chat.privateChatStart=null}$t("#bCamStatus p:first").html(__("%modelname% is in a "+r+" chat",{modelname:''+chat.performerData.displayName+""})),document.dispatchEvent(new CustomEvent(w.R.INVITE_POPUP_CANCEL_MODEL)),(0,Et.pl)("bGotoPrivate","bGotoGroup"),$t("#bGotoGroup2").hide();break;case"group":if(s.A.getState().isGroupChatInvited)$t("#bPaidButtonGroup").addClass("hide-first");else{c="";if(c='