"use strict";(self.webpackChunkbongacams=self.webpackChunkbongacams||[]).push([[862],{42338:function(t,e,n){n.d(e,{q:function(){return _}});var i=n(15215),a=n(85351),o=n(99525),r=n(80554),s=n(83966),u=n(63861),c=n(14811),l=n(45536),h=n(7243),p=n(52276),f=n(23385),d=n(28534),m=n(92340),y=n(1325);n(48398);function _(t){var e=o.A.getState(),n=e.buyTokensRel,_=e.pageNumber;m.A.isAllowedEvent(s.A.BUY_TOKENS_RUSSIAN_CARDS_POPUP)&&document.dispatchEvent(new CustomEvent(r.R.OPEN_TOKENS_PAGE));var v=n||"buy_tokens";t.isBuyVip?v="buy_vip":t.isBuyInvisibility&&(v="buy_invisibility");var b=t.url||"";if(b||(t.isBuyTokens?b=(0,c.Z)((0,u.ip)("@member_buy_tokens"))||(0,u.ip)("@member_buy_tokens"):t.isBuyVip?b=(0,u.ip)("@member_buy_vip"):t.isBuyInvisibility&&(b=(0,u.ip)("@member_buy_invisibility"))),t.searchParams)for(var w in t.searchParams)if(t.searchParams.hasOwnProperty(w)){var g=t.searchParams[w].toString();g&&(b=(0,y.K)(b,w,g))}if(void 0!==window.chat&&chat.userData&&chat.userData.chathost&&(b=(0,y.K)(b,"performer",chat.userData.chathost)),t.isBuyTokens){var A=(0,y.Zy)("ntpop");!A||(0,y.Zy)("ntpop",b)||t.forStatusPopups||(b=(0,y.K)(b,"ntpop",A)),b=(0,y.K)(b,"btip","0")}var S=_||null;S&&t.isBuyTokens&&!(0,y.Zy)("page",b)&&(b=(0,y.K)(b,"page",String(S))),t.customAmount&&b&&(b=(0,y.K)(b,"price",t.customAmount.toString())),b=(0,y.K)(b,"popup","1");var k=null,C=void 0;t.isBuyTokens&&!t.shouldDisableLoyaltyDiscountPopup&&(k=function(t,e,n){if(n.loyaltyDiscountEnabled&&f.X.instance&&o.A.getState().loyaltyDiscountEnabled){var i=function(t){t.data.closeBuyTokens&&(C=setTimeout(function(){return r()},100))};window.addEventListener("message",i,!1);var r=function(){(0,a.e9)(),window.removeEventListener("message",i,!1),clearTimeout(C)};(0,d.y)(p.L.LOYALTY_DISCOUNT,{customData:{classModify:"__highest_overlay",height:"".concat(window.innerHeight-100,"px"),href:(0,y.K)(t,"loyalty","1"),options:{onClose:r},width:"1000px",isIframe:!0},force:!0})}}),(0,h.z)(b,(0,i.Cl)((0,i.Cl)({},(0,l.T)()),{windowName:v,onClose:k}))}},2518:function(t,e,n){n.r(e),n.d(e,{bindOpenWindowInit:function(){return A}});var i=n(15215),a=n(85351),o=n(99525),r=n(42338),s=n(16915),u=n(63861),c=n(7243),l=n(41669),h=function(t,e,n){var i=e.params||e,a=e.config||{},o=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 o=(0,c.z)(e,i,a);n&&n(o)};return o?l(document).on("click",t.selector,r):t.each(function(){l(this).on("click",r)}),l},p=n(45536),f=n(1887),d=n(52276),m=n(28534),y=n(2e3),_=n(51310),v=n(8556),b=n(1325),w=n(41669),g=function(){return Promise.all([n.e(822),n.e(894)]).then(n.bind(n,47043))};function A(){w("[rel=take_a_tour]").each(function(){h(w(this),{height:700,left:(w(window).width()-950)/2,top:(w(window).height()-700)/2,width:950,windowName:w(this).attr("name")||"take_a_tour"})}),w("body").on("click","[rel=buy_tokens], [rel=buy_vip], [rel=buy_invisibility]",function(t,e){return(0,i.sH)(this,void 0,void 0,function(){function n(t){return void 0===t}var o,s,u,c,l,h,p,f,d,m,_;return(0,i.YH)(this,function(i){switch(i.label){case 0:return y.x.instance.navigateRequest(window.location.href),o=w(this),[o.attr("href"),o.attr("data-href")].every(n)?[2,!1]:(t.preventDefault(),s=o.attr("href")||o.attr("data-href"),u="buy_tokens"===o.attr("rel"),c="buy_vip"===o.attr("rel"),l="buy_invisibility"===o.attr("rel"),h=o.hasClass("js-no_loyalty")||!!(null==e?void 0:e.shouldDisableLoyaltyDiscountPopup),p=!o.hasClass("js-fancy_disable_close"),f=(0,v.isTokenInBodyClassList)("chatPopupBody"),d=!1,(0,a.pE)()&&p&&(0,a.e9)(),u?(m=(0,b.Zy)("ntpop"),[4,g().then(function(t){return t.default.getMembershipPagePopups()})]):[3,2]);case 1:_=i.sent(),d=0!==o.closest(".js-header_control").length&&_.includes(m),i.label=2;case 2:return(0,r.q)({forStatusPopups:d,url:s,isBuyInvisibility:l,isBuyTokens:u,isBuyVip:c,isChatPopup:f,shouldDisableLoyaltyDiscountPopup:h}),[2]}})})}),w("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"))}),w("body").on("click","[rel=webcamsupport]",function(t){var e=w(this).attr("href");if(!e)return!1;t.preventDefault();var n=(0,u.Go)(e,{popup:1},e.includes("?"));(0,c.z)(n,(0,i.Cl)((0,i.Cl)({},(0,p.T)()),{windowName:"webcamsupport"}))}),w("body").on("click","a.profile, a.display_name, [rel=profile]",function(t){var e=w(t.target).closest(".js-wl_join").length>0&&w(t.target).closest(".js-wl_join");if(e){var n=o.A.getState(),i=n.skinName,a=n.isAuthenticated;if(i===s.A._18PLUSCAMS&&!a){var r=e.attr("href");return(0,m.y)(d.L.JOIN_POPUP,{customData:{redirectUrl:r},force:!0}),!1}}return!!w(this).attr("href")&&((0,f.o)(w(this).attr("href")),t.preventDefault(),t.stopPropagation(),!1)}),w(document).on("click","a.js-contest_link",function(){return(0,c.z)(w(this).attr("href"),{height:930,left:(window.screen.availWidth-1315)/2,top:(window.screen.availHeight-930)/2,width:1315,windowName:"contests"}),!1}),w("body").on("click","a.chat_popup",function(t){var e=w(t.target).closest(".js-wl_join").length>0&&w(t.target).closest(".js-wl_join");if(e){var n=o.A.getState(),i=n.skinName,a=n.isAuthenticated;if(i===s.A._18PLUSCAMS&&!a){var r=(0,_.Hk)("sip"),u=e.attr("href");return(0,m.y)(d.L.JOIN_POPUP,{customData:{redirectChatUrl:r?null:e.data("chat_url"),redirectUrl:u},force:!0}),!1}}(0,c.z)(w(this).attr("href"),{height:660,left:(w(window).width()-1180)/2,top:(w(window).height()-660)/2,width:1180,windowName:w(this).attr("target")},{})})}},14811:function(t,e,n){n.d(e,{Z:function(){return o}});var i=n(63861),a=n(99525),o=function(t){return a.A.getState().isEmbed?(0,i.ip)("@hit_url?url=".concat(encodeURIComponent(t))):t}},45536:function(t,e,n){n.d(e,{T:function(){return i}});var i=function(){return{height:screen.height-100,left:window.screenX+(window.innerWidth-1e3)/2,top:0,width:1e3}}},16915:function(t,e,n){var i=n(15215),a=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=a}}]);