"use strict";(self.webpackChunkbongacams=self.webpackChunkbongacams||[]).push([[967],{19856:function(e,s,t){t.d(s,{p:function(){return z}});var i=t(15215),o=t(99525),n=t(77482),a=t(68811),c=t(2597),_=t(63861),l=t(99736),r=t(52440),m=t(2268),u=t(80742),d=t(72983),p=t(83375),f=t(41669);function h(e){var s="tip_king_tooltip",t=function(){f("#".concat(s)).remove()};t();var i=f(e),n=i.data(),a=n.dn,c=n.amount,_=o.A.getState().user,l=__("%s1%Tip King of the day:%s2% %b1%%name% spent %tokens% %tokens_plural%!%b2% %a1%Beat it!%a2%",{s1:'',s2:"",b1:"",b2:"",a1:''),a2:"",name:a,tokens:c,tokens_plural:''.concat(m.kX.pluralise("tokens",c),"")}),r=f('
').attr("id",s).append('
').append('
'.concat(l,"
"));r.appendTo("body");var h=(0,u.clamp)(i.offset().left-(r.outerWidth()-i.outerWidth())/2,0,document.documentElement.offsetWidth-r.outerWidth());r.css({left:"".concat(h,"px"),top:"".concat(i.offset().top,"px")}),r.find(".js-tk-tooltip-arrow").css(d.isRTLCulture?"right":"left","".concat(i.offset().left-h+i.outerWidth()/2-5,"px")),r.one("mouseleave click",t)}var g=t(41669),v=!1;function z(e){var s=g('
')),t="";e.avatarUrl&&(t+='
(e),')
')),e.isMobileLayout&&(t+='
'.concat(__("Mobile Device"),"")),t+="
".concat(e.displayName,""),e.hasStream?e.isPerformer?t+='
':e.username!==chat.userData.username&&"moderator"!==chat.userData.role||(t+='
'):e.username&&!e.isPerformer&&chat.closeMemberCam(e),window.showTipKingTooltip=h,t+=e.tipKingAmount?'
\n \n '):"";var m='
',u='
',d=o.A.getState();g.mobile||(u+=''.concat(__("Mutual following"),"")),u+="";var p=m;if(e.accessLevel&&"free"!==e.accessLevel&&!0===e.isPayable){var f="moderator"===chat.userData.role?"":" js-open_status_page";switch(p+='
'),e.accessLevel){case c.A.DIAMOND:p+=__("Diamond Membership");break;case c.A.EXCLUSIVE:p+=__("Exclusive Membership");break;case c.A.GOLD:p+=__("Gold Membership");break;case c.A.PLATINUM:p+=__("Platinum Membership");break;case c.A.SAPPHIRE:p+=__("Sapphire Membership");break;case c.A.TITAN:p+=__("Titan Membership");break;case c.A.UNLIMITED:p+=__("Unlimited Membership")}if(p+="",e.isVip){s.addClass("member_vip"),p+='
').concat(__("VIP Status"),"")}}if(e.accessLevel&&e.isMcm&&(s.addClass("mcm"),p+='
'.concat(__("Moderator"),"")),p.includes("follower_space")||(p+=m),d.isFollowingsLoaded?(0,n.qs)(null==e?void 0:e.username)&&(s.addClass("member_friend"),p=p.replace(m,u)):(0,a.n)(function(){if((0,n.qs)(null==e?void 0:e.username)){var s=g('[username="'.concat(e.username,'"]'));s.addClass("member_friend"),s.find(".td_last .follower_space").replaceWith(u)}}),s.append('
').concat(t,' ').concat(p,'
')),("moderator"===chat.userData.role||chat.userData.isMcm)&&e.isMuted){s.addClass("muted");var z=g('.js-chat_tab_content .msg_wrp[data-author="'.concat(e.username,'"]'));chat.setUserDataToItem(z,(0,i.Cl)((0,i.Cl)({},chat.getUserDataFromItem(z)),{isMuted:!0}))}e.accessLevel&&s.addClass("member_".concat(e.accessLevel));var b=s.find("dfn");return(e.messageStyle||e.fontStyle&&b.length)&&(b[0].style.cssText=(0,l.y)(e)),chat.setUserDataToItem(s,e),e.isLogged&&s.on("click",".td_user",function(){var e=g(this).parent(".user_item"),s=o.A.getState().isFollowingsLoaded;if(e.hasClass("user_item_selected")||v)return e.removeClass("user_item_selected"),void g(".contextMenu").remove();s||"moderator"===chat.userData.role?(chat.getFollowersCreateMenu(e),v=!1):(v=!0,(0,a.n)(function(){chat.getFollowersCreateMenu(e),v=!1}))}),s}},68621:function(e,s,t){t.d(s,{_:function(){return i}});var i=t(99525).A.action(function(e){var s=document.getElementById("EmbedSWF");if(s)return{layoverSize:{height:s.offsetHeight,width:s.offsetWidth}}})},5412:function(e,s,t){t.d(s,{g:function(){return l}});var i=t(80072),o=t(81948),n=t(75399),a=t(8556),c=t(873),_=t(41669),l=function(e){if((0,n.V)(e)&&!(0,a.isTokenInBodyClassList)("fullscreen")){var s=_(".chat_history"),t=(0,c.v)(s);t&&Number(s.attr("data-rw"))!==t&&(s.attr("data-rw",t),s.find(".msg_box").each(function(s,o){(0,i.S)(_(o),t,e.isPerformer)})),document.querySelectorAll(".cp_msg.__group, .cp_msg.__group_join").length&&o.c.instance.rerenderPromptContainer()}}},97215:function(e,s,t){t.d(s,{R:function(){return l}});var i=t(99525),o=t(24213),n=t(45070),a=t(21110),c=t(99128),_=function(e,s){void 0===s&&(s=!0);var t=s?e.filter(":last"):e.filter(":first");c.w.unmount(t[0]),t.remove()},l=function(e,s,t,c){void 0===t&&(t=!1),void 0===c&&(c={TIP_MENU_LIMIT:a.q.isEnabled(n.i.TIP_MENU_AUTO_MESSAGE_CLICKABLE)?3:50});var l=i.A.getState().chatHistoryLength;if(t){var r=e.find(".".concat(o.A.CHAT_TIP_MENU_MESSAGE));r.length>=c.TIP_MENU_LIMIT&&_(r,s)}var m=e.find(".js-chat_msg:not(.msg_chat_game.__active)");m.length>l&&_(m,s)}},40309:function(e,s){var t=function(){function e(){}return e.triggerSoundButton=function(e){var s=document.createEvent("Event");s.initEvent("click",!0,!0),document.querySelector(e).dispatchEvent(s)},e.sendFirstLoad=function(){this.firstLoad||(e.updateParentHeight(),window.parent.postMessage({firstLoad:!0},"*"),this.firstLoad=!0)},e.receiveMessageHandler=function(s){if(s&&s.data&&(!1===s.data.show&&(document.getElementById("sound-btn")&&document.querySelector(".sound-on")?e.triggerSoundButton("#sound-btn"):document.querySelector(".button-sound")&&!document.querySelector(".sound-volume-muted")&&e.triggerSoundButton(".player-icon")),s.data.className)){var t=document.getElementById("ps_main_wrapper");t&&(this.mainWrpClassItems?t.className=this.mainWrpClassItems:this.mainWrpClassItems=t.className,t.className+=" "+s.data.className,e.updateParentHeight())}},e.updateParentHeight=function(){setTimeout(function(){var e=document.getElementById("main"),s=0;e&&!("ontouchstart"in window)&&(s=e.offsetHeight),window.parent.postMessage({mainHeight:s},"*")},100)},e.mainWrpClassItems="",e.firstLoad=!1,e}();s.A=t},54503:function(e,s,t){t.d(s,{S:function(){return _},x:function(){return i}});var i,o=t(15215),n=t(99341),a=t(68956),c=t(73437);function _(e,s){var t=e.message,_=e.tipAmount,l=null!=s?s:{},r=l.listingThumbSize,m=l.privateShowId,u=l.subType,d=l.tipMenuHash,p=l.tipSource,f=l.isTipMenu,h=l.onFailure,g=l.onSuccess,v=void 0===g?c.noop:g;if("function"==typeof(null===a.j_||void 0===a.j_?void 0:a.j_.call)){if(chat.debug("tipModel",_),"fullprivate"===chat.performerStatus&&!chat.isPaidShow())return chat.addServiceMessage(__("%modelname% is in full private chat. Only a user in this model’s private room can tip via chat now. If you still want to tip %modelname%, please, use Message Center.",{modelname:chat.performerData.displayName}),"alert"),!1;var z=[],b={d:{o:"getOrientation"in window?window.getOrientation():null},i:m||null,s:u||""};switch(d&&(b.d.th=d),r&&(b.d.ts=r),p){case i.TIP_KING:b.d.tk=1;break;case i.TIP_MENU:b.d.s=1;break;case i.TIP_MENU_AUTO_MESSAGE:b.d.sk=1,b.d.s=1;break;case i.TIP_MENU_ENABLED_NOTICE:b.s=1,b.d.san=1;break;case i.TIP_MENU_NOTICE:b.d.sn=1,b.d.s=1}if(f&&(b.d.tm=1),z.push(_),z.push(t),z.push(JSON.stringify(b)),t)try{n.h.onSend(chat.currentShowType)}catch(e){0}a.j_.call.apply(a.j_,(0,o.fX)(["ChatModule.sendTip",function(e){chat.debug("^^^ sendTip RESULT",e),"success"!==e.status?"fail"===e.status&&e.description&&("function"==typeof h&&h(e),chat.addServiceMessage(e.description,"tip_".concat(e.status))):v(e)}],z,!1))}}!function(e){e.TIP_KING="tk",e.TIP_MENU="s",e.TIP_MENU_AUTO_MESSAGE="sk",e.TIP_MENU_ENABLED_NOTICE="san",e.TIP_MENU_NOTICE="sn"}(i||(i={}))},99025:function(e,s,t){t.d(s,{Q:function(){return i}});var i={url:"/images/svg/bc/chat_games/desktop.svg","icon-accordion_arrow_icon":{size:[16,10]},icon_tip_king:{size:[420,304]},"icon-roll_the_dice":{size:[37,33]},"icon-roll_the_dice_flat":{size:[62,57]},"icon-spin_the_wheel":{size:[36,36]},"icon-spin_the_wheel_flat":{size:[56,59]},"icon-game_token_keno":{size:[35,32]},"icon-game_token_keno_flat":{size:[60,56]},icon_auto_dj:{size:[32,32]},icon_auto_dj_flat:{size:[56,56]},icon_auto_dj_priority:{size:[12,10]},icon_slot_machine:{size:[32,33]},icon_slot_machine_flat:{size:[56,57]},icon_countdown_flat:{size:[68,68]},icon_slot_m_apple:{size:[60,40]},icon_slot_m_ass:{size:[60,39]},icon_slot_m_banana:{size:[60,40]},icon_slot_m_cherry:{size:[60,43]},icon_slot_m_crown:{size:[60,39]},icon_slot_m_diamond:{size:[60,39]},icon_slot_m_grapes:{size:[60,40]},icon_slot_m_heart:{size:[60,39]},icon_slot_m_high_heels:{size:[60,40]},icon_slot_m_lemon:{size:[60,39]},icon_slot_m_lipstick:{size:[61,40]},icon_slot_m_orange:{size:[60,39]},icon_slot_m_plum:{size:[60,39]},icon_slot_m_pussy:{size:[60,39]},icon_slot_m_strawberry:{size:[60,39]},icon_slot_m_tits:{size:[60,39]},icon_slot_m_watermelon:{size:[60,39]},icon_slot_m_lips:{size:[60,40]}}},83667:function(e,s,t){t.d(s,{O:function(){return i}});var i={url:"/images/svg/bc/chat_games/mapp.svg","icon-accordion_arrow_icon":{size:[16,10]},icon_tip_king:{size:[420,304]},"icon-roll_the_dice":{size:[62,57]},"icon-roll_the_dice_flat":{size:[62,57]},"icon-spin_the_wheel":{size:[56,59]},"icon-spin_the_wheel_flat":{size:[56,59]},"icon-game_token_keno":{size:[60,56]},"icon-game_token_keno_flat":{size:[60,56]},icon_auto_dj:{size:[56,56]},icon_auto_dj_flat:{size:[56,56]},icon_auto_dj_priority:{size:[12,10]},icon_slot_machine:{size:[56,57]},icon_slot_machine_flat:{size:[56,57]},icon_countdown_flat:{size:[68,68]},icon_slot_m_apple:{size:[60,40]},icon_slot_m_ass:{size:[60,39]},icon_slot_m_banana:{size:[60,40]},icon_slot_m_cherry:{size:[60,43]},icon_slot_m_crown:{size:[60,39]},icon_slot_m_diamond:{size:[60,39]},icon_slot_m_grapes:{size:[60,40]},icon_slot_m_heart:{size:[60,39]},icon_slot_m_high_heels:{size:[60,40]},icon_slot_m_lemon:{size:[60,39]},icon_slot_m_lipstick:{size:[61,40]},icon_slot_m_orange:{size:[60,39]},icon_slot_m_plum:{size:[60,39]},icon_slot_m_pussy:{size:[60,39]},icon_slot_m_strawberry:{size:[60,39]},icon_slot_m_tits:{size:[60,39]},icon_slot_m_watermelon:{size:[60,39]},icon_slot_m_lips:{size:[60,40]}}},87547:function(e,s,t){t.d(s,{y:function(){return i}});var i={url:"/images/svg/bc/chat_games/mobile.svg","icon-accordion_arrow_icon":{size:[11,8]},icon_tip_king:{size:[420,304]},"icon-roll_the_dice":{size:[62,57]},"icon-roll_the_dice_flat":{size:[62,57]},"icon-spin_the_wheel":{size:[56,59]},"icon-spin_the_wheel_flat":{size:[56,59]},"icon-game_token_keno":{size:[60,56]},"icon-game_token_keno_flat":{size:[60,56]},icon_auto_dj:{size:[56,56]},icon_auto_dj_flat:{size:[56,56]},icon_auto_dj_priority:{size:[12,10]},icon_slot_machine:{size:[56,57]},icon_slot_machine_flat:{size:[56,57]},icon_countdown_flat:{size:[68,68]},icon_slot_m_apple:{size:[60,40]},icon_slot_m_ass:{size:[60,39]},icon_slot_m_banana:{size:[60,40]},icon_slot_m_cherry:{size:[60,43]},icon_slot_m_crown:{size:[60,39]},icon_slot_m_diamond:{size:[60,39]},icon_slot_m_grapes:{size:[60,40]},icon_slot_m_heart:{size:[60,39]},icon_slot_m_high_heels:{size:[60,40]},icon_slot_m_lemon:{size:[60,39]},icon_slot_m_lipstick:{size:[61,40]},icon_slot_m_orange:{size:[60,39]},icon_slot_m_plum:{size:[60,39]},icon_slot_m_pussy:{size:[60,39]},icon_slot_m_strawberry:{size:[60,39]},icon_slot_m_tits:{size:[60,39]},icon_slot_m_watermelon:{size:[60,39]},icon_slot_m_lips:{size:[60,40]}}},52440:function(e,s,t){t.d(s,{N:function(){return l}});var i=t(88159),o=t(23799),n=t(83667),a=t(99025),c=t(87547),_=(0,o.V)()?n.O:(0,i.F)()?c.y:a.Q;function l(e){var s=e.substr(1);return _[s]?"".concat(_.url).concat(e):e}}}]);