"use strict";(self.webpackChunkbongacams=self.webpackChunkbongacams||[]).push([[690],{52713:function(e,t,s){s.d(t,{p:function(){return z}});var i=s(15215),o=s(19826),n=s(77482),a=s(68811),c=s(2597),_=s(13907),l=s(99736),r=s(52440),m=s(2268),u=s(9853),d=s(33954),p=s(8546),f=s(41669);function h(e){var t="tip_king_tooltip",s=function(){f("#".concat(t)).remove()};s();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",t).append('
').append('
'.concat(l,"
"));r.appendTo("body");var h=(0,u.qE)(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",s)}var g=s(41669),v=!1;function z(e){var t=g('
')),s="";e.avatarUrl&&(s+='
(e),')
')),e.isMobileLayout&&(s+='
'.concat(__("Mobile Device"),"")),s+="
".concat(e.displayName,""),e.hasStream?e.isPerformer?s+='
':e.username!==chat.userData.username&&"moderator"!==chat.userData.role||(s+='
'):e.userId&&!e.isPerformer&&chat.closeMemberCam(e),window.showTipKingTooltip=h,s+=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){t.addClass("member_vip"),p+='
').concat(__("VIP Status"),"")}}if(e.accessLevel&&e.isMcm&&(t.addClass("mcm"),p+='
'.concat(__("Moderator"),"")),p.includes("follower_space")||(p+=m),d.isFollowingsLoaded?(0,n.qs)(null==e?void 0:e.username)&&(t.addClass("member_friend"),p=p.replace(m,u)):(0,a.n)((function(){if((0,n.qs)(null==e?void 0:e.username)){var t=g('[username="'.concat(e.username,'"]'));t.addClass("member_friend"),t.find(".td_last .follower_space").replaceWith(u)}})),t.append('
').concat(s,' ').concat(p,'
')),("moderator"===chat.userData.role||chat.userData.isMcm)&&e.isMuted){t.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&&t.addClass("member_".concat(e.accessLevel));var b=t.find("dfn");return(e.messageStyle||e.fontStyle&&b.length)&&(b[0].style.cssText=(0,l.y)(e)),chat.setUserDataToItem(t,e),e.isLogged&&t.on("click",".td_user",(function(){var e=g(this).parent(".user_item"),t=o.A.getState().isFollowingsLoaded;if(e.hasClass("user_item_selected")||v)return e.removeClass("user_item_selected"),void g(".contextMenu").remove();t||"moderator"===chat.userData.role?(chat.getFollowersCreateMenu(e),v=!1):(v=!0,(0,a.n)((function(){chat.getFollowersCreateMenu(e),v=!1})))})),t}},68621:function(e,t,s){s.d(t,{_:function(){return i}});var i=s(19826).A.action((function(e){var t=document.getElementById("EmbedSWF");if(t)return{layoverSize:{height:t.offsetHeight,width:t.offsetWidth}}}))},5412:function(e,t,s){s.d(t,{g:function(){return _}});var i=s(80072),o=s(39761),n=s(75399),a=s(873),c=s(41669),_=function(e){if((0,n.V)(e)&&!c("body").hasClass("fullscreen")){var t=c(".chat_history"),s=(0,a.v)(t);s&&Number(t.attr("data-rw"))!==s&&(t.attr("data-rw",s),t.find(".msg_box").each((function(t,o){(0,i.S)(c(o),s,e.isPerformer)}))),document.querySelectorAll(".cp_msg.__group, .cp_msg.__group_join").length&&o.c.instance.rerenderPromptContainer()}}},36289:function(e,t,s){s.d(t,{R:function(){return c}});var i=s(19826),o=50,n=s(62614),a=function(e,t){void 0===t&&(t=!0);var s=t?e.filter(":last"):e.filter(":first");n.w.unmount(s[0]),s.remove()},c=function(e,t,s){void 0===s&&(s=!1);var n=i.A.getState().chatHistoryLength;if(s){var c=e.find(".js-chat_tip_menu_msg");c.length>o&&a(c,t)}var _=e.find(".js-chat_msg:not(.msg_chat_game.__active)");_.length>n&&a(_,t)}},40309:function(e,t){var s=function(){function e(){}return e.triggerSoundButton=function(e){var t=document.createEvent("Event");t.initEvent("click",!0,!0),document.querySelector(e).dispatchEvent(t)},e.sendFirstLoad=function(){this.firstLoad||(e.updateParentHeight(),window.parent.postMessage({firstLoad:!0},"*"),this.firstLoad=!0)},e.receiveMessageHandler=function(t){if(t&&t.data&&(!1===t.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")),t.data.className)){var s=document.getElementById("ps_main_wrapper");s&&(this.mainWrpClassItems?s.className=this.mainWrpClassItems:this.mainWrpClassItems=s.className,s.className+=" "+t.data.className,e.updateParentHeight())}},e.updateParentHeight=function(){setTimeout((function(){var e=document.getElementById("main"),t=0;e&&!("ontouchstart"in window)&&(t=e.offsetHeight),window.parent.postMessage({mainHeight:t},"*")}),100)},e.mainWrpClassItems="",e.firstLoad=!1,e}();t.A=s},54503:function(e,t,s){s.d(t,{S:function(){return _},x:function(){return i}});var i,o=s(15215),n=s(99341),a=s(7526),c=s(26616);function _(e,t){var s=e.message,_=e.tipAmount,l=null!=t?t:{},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_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(s),z.push(JSON.stringify(b)),s)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_ENABLED_NOTICE="san",e.TIP_MENU_NOTICE="sn"}(i||(i={}))},99025:function(e,t,s){s.d(t,{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,t,s){s.d(t,{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,t,s){s.d(t,{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,t,s){s.d(t,{N:function(){return l}});var i=s(88159),o=s(23799),n=s(83667),a=s(99025),c=s(87547),_=(0,o.V)()?n.O:(0,i.F)()?c.y:a.Q;function l(e){var t=e.substr(1);return _[t]?"".concat(_.url).concat(e):e}}}]);