"use strict";(self.webpackChunkbongacams=self.webpackChunkbongacams||[]).push([[599],{42338:function(t,e,n){n.d(e,{q:function(){return m}});var i=n(80554),o=n(83966),a=n(52276),r=n(23385),s=n(92340),u=n(73467),c=n(19826),l=n(35172),h=(n(79959),n(28534)),f=n(7243),p=n(13907),d=n(14811),y=n(41669);function m(t){var e=c.A.getState(),n=e.pageNumber,m=e.buyTokensRel,w=e.isBuyTokensInPopup;s.A.isAllowedEvent(o.A.BUY_TOKENS_RUSSIAN_CARDS_POPUP)&&document.dispatchEvent(new CustomEvent(i.R.OPEN_TOKENS_PAGE));var _,b=(0,d.Z)((0,p.ip)("@member_buy_tokens")),v=t.url;if(t.isBuyTokens?_=m||"buy_tokens":t.isBuyVip?_="buy_vip":t.isBuyInvisibility&&(_="buy_invisibility"),v||(t.isBuyTokens?v=b||(0,p.ip)("@member_buy_tokens"):t.isBuyVip?v=(0,p.ip)("@member_buy_vip"):t.isBuyInvisibility&&(v=(0,p.ip)("@member_buy_invisibility"))),void 0!==window.chat&&chat.userData&&chat.userData.chathost&&(v=(0,l.K)(v,"performer",chat.userData.chathost)),t.isBuyTokens){var g=(0,l.Zy)("ntpop");!g||(0,l.Zy)("ntpop",v)||t.forStatusPopups||(v=(0,l.K)(v,"ntpop",g))}var A=n||null;A&&t.isBuyTokens&&!(0,l.Zy)("page",v)&&(v=(0,l.K)(v,"page",String(A)));var k,S=null,C=function(t){void 0===t&&(t=!0)},B=function(){C=function(e){void 0===e&&(e=!0);var n=c.A.getState().loyaltyDiscountEnabled;(0,u.e9)(),window.removeEventListener("message",t,!1),clearTimeout(k),"function"==typeof S&&setTimeout((function(){S(v,"buy_tokens_frame",{loyaltyDiscountEnabled:n,userClose:e})}),1e3)};var t=function(t){t.data.closeBuyTokens&&(k=window.setTimeout((function(){return C(!1)}),100))};window.addEventListener("message",t,!1)};t.isBuyTokens&&t.showNoLoyaltyDiscountPopup&&(S=function(t,e,n){localStorage.getItem("in_game")&&localStorage.removeItem("in_game");var i=c.A.getState().loyaltyDiscountEnabled;n.loyaltyDiscountEnabled&&r.X.instance&&i&&(B(),(0,h.y)(a.L.LOYALTY_DISCOUNT,{force:!0,customData:{href:(0,l.K)(t,"loyalty","1"),isIframe:!0,width:"1000px",height:"".concat(window.innerHeight-100,"px"),onClose:C}}))});var P=1e3,N=window.screenX+(window.innerWidth-P)/2,O=screen.height-100;t.isBuyTokens&&(v=(0,l.K)(v,"btip",w?"1":"0")),t.isBuyTokens&&w&&!t.isChatPopup?(B(),(0,h.y)(a.L.BUY_TOKENS_FRAME,{force:!0,customData:{href:v,isIframe:!0,width:"".concat(P,"px"),height:"".concat(y(window).height()-100,"px"),options:{onClose:C}}})):(0,f.z)(v,{windowName:_,width:P,height:O,left:N,top:0,onClose:S},{})}},2518:function(t,e,n){n.r(e),n.d(e,{bindOpenWindowInit:function(){return v}});var i=n(15215),o=n(73467),a=n(19826),r=n(42338),s=n(16915),u=n(13907),c=n(7243),l=n(41669),h=function(t,e,n){var i=e.params||e,o=e.config||{},a=e.delegated||null,r=function(t){var e;if(t.preventDefault(),l(this).attr("name")&&(i.windowName=l(this).attr("name")),i.href)e=i.href;else{if(!l(this).attr("href"))return;e=l(this).attr("href")}var a=(0,c.z)(e,i,o);n&&n(a)};return a?l(document).on("click",t.selector,r):t.each((function(){l(this).on("click",r)})),l},f=n(1887),p=n(52276),d=n(28534),y=n(2e3),m=n(9613),w=n(35172),_=n(41669),b=function(){return Promise.all([n.e(577),n.e(629)]).then(n.bind(n,47043))};function v(){_("[rel=take_a_tour]").each((function(){h(_(this),{height:700,left:(_(window).width()-950)/2,top:(_(window).height()-700)/2,width:950,windowName:_(this).attr("name")||"take_a_tour"})})),_("body").on("click","[rel=buy_tokens], [rel=buy_vip], [rel=buy_invisibility]",(function(t){return(0,i.sH)(this,void 0,void 0,(function(){function e(t){return void 0===t}var n,a,s,u,c,l,h,f,p,d;return(0,i.YH)(this,(function(i){switch(i.label){case 0:return y.x.instance.navigateRequest(window.location.href),n=_(this),[n.attr("href"),n.attr("data-href")].every(e)?[2,!1]:(t.preventDefault(),a=n.attr("href")||n.attr("data-href"),s="buy_tokens"===n.attr("rel"),u="buy_vip"===n.attr("rel"),c="buy_invisibility"===n.attr("rel"),l=n.hasClass("js-no_loyalty"),h=document.body.classList.contains("chatPopupBody"),f=!1,(0,o.pE)()&&(0,o.e9)(),s?(p=(0,w.Zy)("ntpop"),[4,b().then((function(t){return t.default.getMembershipPagePopups()}))]):[3,2]);case 1:d=i.sent(),f=0!==n.closest(".js-header_control").length&&d.includes(p),i.label=2;case 2:return(0,r.q)({forStatusPopups:f,showNoLoyaltyDiscountPopup:!l,url:a,isBuyInvisibility:c,isBuyTokens:s,isBuyVip:u,isChatPopup:h}),[2]}}))}))})),_("body").on("click",".js-open_status_page",(function(){return(0,f.o)((0,u.ip)("@member_account_membership"))})).on("click",".js-open_vip_page",(function(){return(0,f.o)((0,u.ip)("@member_account_vip_overview"))})),_("body").on("click","[rel=webcamsupport]",(function(t){if(!_(this).attr("href"))return!1;t.preventDefault();(0,c.z)(_(this).attr("href"),{height:680,left:(_(window).width()-640)/2,top:(_(window).height()-680)/2,width:640,windowName:_(this).attr("rel")},{})})),_("body").on("click","a.profile, a.display_name, [rel=profile]",(function(t){var e=_(t.target).closest(".js-wl_join").length>0&&_(t.target).closest(".js-wl_join");if(e){var n=a.A.getState(),i=n.skinName,o=n.isAuthenticated;if(i===s.A._18PLUSCAMS&&!o){var r=e.attr("href");return(0,d.y)(p.L.JOIN_POPUP,{customData:{redirectUrl:r},force:!0}),!1}}return!!_(this).attr("href")&&((0,f.o)(_(this).attr("href")),t.preventDefault(),t.stopPropagation(),!1)})),_(document).on("click","a.js-contest_link",(function(){return(0,c.z)(_(this).attr("href"),{height:930,left:(window.screen.availWidth-1315)/2,top:(window.screen.availHeight-930)/2,width:1315,windowName:"contests"}),!1})),_("body").on("click","a.chat_popup",(function(t){var e=_(t.target).closest(".js-wl_join").length>0&&_(t.target).closest(".js-wl_join");if(e){var n=a.A.getState(),i=n.skinName,o=n.isAuthenticated;if(i===s.A._18PLUSCAMS&&!o){var r=(0,m.Hk)("sip"),u=e.attr("href");return(0,d.y)(p.L.JOIN_POPUP,{customData:{redirectChatUrl:r?null:e.data("chat_url"),redirectUrl:u},force:!0}),!1}}(0,c.z)(_(this).attr("href"),{height:660,left:(_(window).width()-1180)/2,top:(_(window).height()-660)/2,width:1180,windowName:_(this).attr("target")},{})}))}},14811:function(t,e,n){n.d(e,{Z:function(){return a}});var i=n(13907),o=n(19826),a=function(t){return o.A.getState().isEmbed?(0,i.ip)("@hit_url?url=".concat(encodeURIComponent(t))):t}},16915:function(t,e,n){var i=n(15215),o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.C6)(e,t),e.BONGACAMS="bongacams",e.BONGACAMS_ZERKALO="bongacams_zerkalo",e.BONGACAMS_INFO="bongacams_info",e.BONGACAMSLAB="bongacamslab",e.BONGOCAMS_SU="bongacamslab",e._18PLUSCAMS="18pluscams",e.LUSTFIRE="lustfire",e.SEXSHOWS="Sexshows",e.RUSCAMS="Ruscams",e.PORNCAM="Porncam",e.CAMVOLT="CamVolt",e.BIMBOLIVE="Bimbolive",e.CAMFUZE="Camfuze",e.ROYALCAMS="Royalcams",e.RUNETKI_RF="runetki_rf",e}(n(53767).A);e.A=o}}]);