"use strict";(self.webpackChunkbongacams=self.webpackChunkbongacams||[]).push([[164],{12307:function(n,e,t){var i;t.d(e,{Y:function(){return i}}),function(n){n.TOO_MANY_PINS="too_many_pins",n.EXPLANATION="explanation"}(i||(i={}))},15514:function(n,e,t){var i;t.d(e,{p:function(){return i}}),function(n){n.CHAT="chat",n.LISTING="listing",n.MINI_PROFILE="mini_profile",n.PROFILE="profile"}(i||(i={}))},14471:function(n,e,t){t.r(e),t.d(e,{init:function(){return d}});var i=t(15215),s=t(92340),o=t(83966),r=t(12307),l=t(15514),u=t(99525),I=t(2597),a=100,_="default",c=t(41669),p=function(){return Promise.all([t.e(6),t.e(38),t.e(5),t.e(32),t.e(10),t.e(7),t.e(579),t.e(252),t.e(424),t.e(175),t.e(87),t.e(93),t.e(112)]).then(t.bind(t,24876))};function d(){var n=this,e=s.A.isAllowedEvent(o.A.PIN_USER_HINT),t=u.A.getState(),d=t.isAuthenticated,E=t.user,m=e&&d&&E.membership!==I.A.FREE,f={},A=!1,N=null,T=null,L=null,h=function(n,e){if(e&&(clearTimeout(f[e]),delete f[e],L=null,T=null),N===l.p.LISTING){var t=c(n).find(".js-pin_hint_wrp");t.removeClass("__no_hint"),t.hasClass("js-error_hint")||c(n).parents(".js-ls_thumb").removeClass("__lst_visible")}else N===l.p.PROFILE?n.classList.contains("js-error_hint")||n.classList.remove("__no_hint"):N===l.p.MINI_PROFILE&&c(n).parents(".js-mp_pin_wrp").removeClass("__no_hint");m&&s.A.isAllowedEvent(o.A.PIN_USER_HINT)&&p().then(function(n){n.PinModel.instance.detachPinHint()})},P=function(e){return(0,i.sH)(n,void 0,void 0,function(){var n,t,u,I;return(0,i.YH)(this,function(i){if(!e)return[2];if(function(n){N=n.classList.contains("js-pt_l")?l.p.LISTING:n.classList.contains("js-pt_p")?l.p.PROFILE:n.classList.contains("js-pt_mp")?l.p.MINI_PROFILE:null}(e),n=c(e).find(".js-pin_hint_wrp").get(0),[l.p.PROFILE,l.p.MINI_PROFILE].indexOf(N)>-1&&((t=c(".js-pin_model, .js-mp_pin_wrp")).hasClass("js-error_hint")||t.removeClass("__no_hint")),m&&!A&&s.A.isAllowedEvent(o.A.PIN_USER_HINT)&&n){if(u=N===l.p.LISTING?c(e).parents(".js-thl").data("chathost"):"default",L&&u===L||f[u])return clearTimeout(f[u]),delete f[u],[2];L&&u!==L&&h(T,L),T=e,L=u,I=n,N===l.p.PROFILE?I=e:N===l.p.MINI_PROFILE&&(I=c(e).parents(".js-fw_wrap_mp").get(0)),I&&(I.classList.add("__no_hint"),p().then(function(n){n.PinModel.instance.attachPinHint({pinHintElement:I,pinHintType:r.Y.EXPLANATION,placementType:N})}))}return N===l.p.LISTING&&c(e).parents(".js-ls_thumb").addClass("__lst_visible"),[2]})})};P(c(".js-pin_model:hover").get(0)),c(document).on("mouseenter touchstart",".js-pin_model, .js-unpin_model",function(n){return P(n.currentTarget)}),c(document).on("mouseleave",".js-pin_model, .js-unpin_model",function(n){if(m&&N!==l.p.MINI_PROFILE){var e=n.currentTarget,t=N===l.p.LISTING?c(e).parents(".js-thl").data("chathost"):_;!A&&s.A.isAllowedEvent(o.A.PIN_USER_HINT)?f[t]=window.setTimeout(function(){h(e,t)},a):h(e)}});var v=function(){A=!0,T=null,L=null;for(var n=0,e=Object.keys(f);n