\n ').concat(__("Online"),"\n "))}p||m.html(''.concat(o.profileWall.lastBroadcastRecentlyText,"
")),h.toggle(p),m.toggle(!p)}}({data:t.data}),(0,m.gt)({isModelAvailable:h})}break;case"fb":t.model===_&&(0,m.gt)({boostTimeLeftDate:Date.now()+1e3*g.r})}}))}},this.showWhatPopup=function(){t.e(259).then(t.bind(t,33552)).then((function(e){var n=e.FanBoostWhatPopupContainer,t=document.querySelector(f.iC);o.w.instance.attachPopup((function(){return(0,p.h)(n,{handleClose:o.w.instance.detachPopup})}),t)}))},this.showBuyPopup=function(){t.e(390).then(t.bind(t,49483)).then((function(e){var n=e.FanBoostBuyPopupContainer,t=document.querySelector(f.Oi);o.w.instance.attachPopup((function(){return(0,p.h)(n,{handleClose:o.w.instance.detachPopup})}),t)}))},this.updateFanBoostState=function(e){var n,t,o=null===(n=document.querySelector(f.WT))||void 0===n?void 0:n.textContent;if(e){var a=document.createElement("div");a.innerHTML=e,o=null===(t=a.querySelector(f.WT))||void 0===t?void 0:t.textContent}if(o){var l=JSON.parse(o,(function(e,n){return"string"==typeof n&&/^\d+$/g.test(n)?Number(n):n}));l&&(0,m.gt)((0,i.Cl)({serverTimeDelta:Math.max(300,Date.now()-1e3*Number(l.serverTime)-2e3),boostTimeLeftDate:l.boostTimeLeftTimeout>0?Date.now()+l.boostTimeLeftTimeout:null},l.fanBoost))}},this.updateBoostedTimer=function(){if(e.boostedTimer&&window.clearTimeout(e.boostedTimer),e.currentFanBoostState.boostTimeLeftDate){var n=(0,v.p$)(e.currentFanBoostState);e.boostedTimer=window.setTimeout((function(){(0,m.gt)({boostTimeLeftDate:null})}),n)}}}return Object.defineProperty(e,"instance",{get:function(){return this._instance||(this._instance=new this)},enumerable:!1,configurable:!0}),e.prototype.init=function(){if(!this.isInitialized){var e=a.A.getState().isAuthenticated;this.isInitialized=!0,this.isAuthenticated=e,this.initListeners(),this.updateFanBoostState()}},e}();function k(){N.instance.init()}},81444:function(e,n,t){function i(e){return Math.max(0,e.nextAvailableDate-Date.now()+e.serverTimeDelta||0)}function o(e){return e.isMemberAvailable&&e.isModelAvailable&&i(e)<=0}function a(e){return e.boostTimeLeftDate-Date.now()}function l(e){return e.boostTimeLeftDate&&Date.now()(0,o.c)(F):!P;return(0,i.h)("div",{ref:t,className:(0,s.n)({"mplg_btn bc_flex":!0,__no_hint:N,__pin_animation:f&&X,__small:y}),onMouseEnter:M,onMouseLeave:R},(0,i.h)(l.$,{animationContainerRef:n,className:(0,s.n)({"mplg_btn_icon_wrp __animated":!0,__pin:X,__pinned:!X}),hint:X===f?F:H,iconType:X?"#svg_btna_mpl_pin":"#svg_btna_mpl_pinned",testId:X?u.CU.PIN:u.CU.UNPIN,isAnimPlay:f,isInner:!0,isSmall:y,isWithAnimation:!0,handler:X?B:x,onMouseEnter:(0,c.s)(S,m)}),d)}},32542:function(e,n,t){t.r(n),t.d(n,{MiniProfilePinButton:function(){return k},updateMiniProfilePinButton:function(){return o}});var i=t(15215),o=function(e,n){var t,o=e.miniProfile;return o?{miniProfile:(0,i.Cl)((0,i.Cl)({},o),{actions:(0,i.Cl)((0,i.Cl)({},o.actions),{pinModelButton:(0,i.Cl)((0,i.Cl)({},null===(t=o.actions)||void 0===t?void 0:t.pinModelButton),n)})})}:e},a=t(50172),l=t(46517),r=t(89836),s=t(7635),c=t(96773),u=t(92227),d=t(12307),_=t(15514),p=t(39255),h=t(98768),m=t(74566),v=t(70509),f=t(17402),b=t(38588),g=t(80554),C=t(29622),N=t(26616),k=function(e){var n=e.isSmall,t=void 0!==n&&n,o=(0,l.d4)(c.pJ),k=(0,l.d4)(r.Hh),P=(0,l.d4)(p.i),w=(0,h.Rf)({logGroup:"pinButton",isAvailable:(null==o?void 0:o.isAuthenticated)&&!(null==o?void 0:o.isFreeMember)}),y=w.isAnimating,A=w.isAnimatingAvailable,S=w.isPlaying,T=w.prepareAnimation,B=w.resetAnimation,L=w.startAnimation,x=w.onAnimationEnd,E=w.onAnimationReady,M=w.onRequestEnd,I=(0,s.n)((null==o?void 0:o.isPinned)||!1,y),R=(0,h.zK)({path:I?v.E_:v.Rm,isPlaying:S,onAnimationEnd:x,onAnimationReady:E}).animationContainerRef,O=function(e){var n=e.liveTab,t=e.pinButton,o=e.isWithPinHint,a=void 0!==o&&o,l=e.onChatHostChange,r=void 0===l?N.noop:l,s=e.onError,c=void 0===s?N.noop:s,u=e.onRequest,d=void 0===u?N.noop:u,_=e.onResponse,p=void 0===_?N.noop:_,h=(0,f.useRef)(null),m=(0,C.co)((0,i.Cl)((0,i.Cl)({},t),{liveTab:n,pinUserHintEventAvailable:a,useHandlePin:C.uG,useHandleUnPin:C.Pc,onRequest:d,onSuccessPin:p,onSuccessUnPin:p,onError:c,onNotIsAuthenticated:function(){chat.addServiceMessage(__("Pin a model feature is for premium members only"),"alert")},onIsNeedBuyToken:function(){chat.addServiceMessage("".concat(__("Pin a model feature is for premium members only"),". ").concat(__("To become a premium (GOLD) member for life and unlock this feature, all you have to do is buy any amount of tokens one time!")),"alert")}})),v=m.isAvailableHintExplanation,k=m.isAvailableShowHintTooMany,P=m.isHideHint,w=m.isHideHintTooMany,y=m.isShowHintExplanation,A=m.isShowHintTooMany,S=m.handleCloseHint,T=m.handleCloseHintTooMany,B=m.handleHideHintExplanation,L=m.handlePinModel,x=m.handleShowHintExplanation,E=m.handleUnPinModel,M=(0,f.useCallback)((function(){var e=h.current;if(e){var n=e.offsetWidth,t=n?"".concat(n,"px"):"unset";e.style.setProperty("--mplg-btn-width",t)}}),[]),I=(0,f.useCallback)((function(e){M(),L(e)}),[L,M]),R=(0,f.useCallback)((function(e){M(),E(e)}),[E,M]);return(0,f.useEffect)((function(){return document.addEventListener(g.R.PIN_CLICK,I),document.addEventListener(g.R.PIN_CLOSE_HINT,T),function(){document.removeEventListener(g.R.PIN_CLICK,I),document.removeEventListener(g.R.PIN_CLOSE_HINT,T)}}),[T,I]),(0,b.A)((function(){r()}),[null==t?void 0:t.username]),{pinButtonWrapRef:h,isAvailableHintExplanation:v,isAvailableShowHintTooMany:k,isHideHint:P,isHideHintTooMany:w,isShowHintExplanation:y,isShowHintTooMany:A,handleCloseHint:S,handleCloseHintTooMany:T,handleHideHintExplanation:B,handlePin:I,handleShowHintExplanation:x,handleUnpin:R}}({liveTab:k,pinButton:o,isWithPinHint:P,onChatHostChange:B,onError:function(){M(!1)},onRequest:L,onResponse:M}),H=O.pinButtonWrapRef,D=O.isAvailableHintExplanation,F=O.isAvailableShowHintTooMany,j=O.isHideHint,U=O.isHideHintTooMany,V=O.isShowHintExplanation,W=O.isShowHintTooMany,q=O.handleCloseHint,z=O.handleCloseHintTooMany,G=O.handleHideHintExplanation,Y=O.handlePin,K=O.handleShowHintExplanation,X=O.handleUnpin,J=D&&V,Z=F&&W;return(0,a.h)(m.T,{animationContainerRef:R,pinButtonWrapRef:H,pinButton:o,prepareAnimation:T,isAnimatingAvailable:A,isAnimPlay:S,isNoHint:j||U||D,isPinned:I,isSmall:t,handlePin:Y,handleUnpin:X,onMouseEnter:K,onMouseLeave:G},J&&(0,a.h)(u.R,{pinHintType:d.Y.EXPLANATION,placementType:_.p.MINI_PROFILE,onClose:q}),Z&&(0,a.h)(u.R,{pinHintType:d.Y.TOO_MANY_PINS,placementType:_.p.MINI_PROFILE,onClose:z}))}},84408:function(e,n,t){t.d(n,{V:function(){return c}});var i=t(50172),o=t(17402),a=t(22078),l=t(19223),r=t(61093),s=t(17551),c=(0,o.memo)((function(){var e=(0,s.i)(),n=e.actions.handleOpenGallery,t=e.states.miniProfileVideos,o=t||{},c=o.label,u=void 0===c?"":c,d=o.showMoreLink,_=void 0===d?null:d,p=o.videos,h=void 0===p?[]:p;return(0,a.j)(t)&&h.length?(0,i.h)("div",{className:"mplg_list_row __video"},(0,i.h)("div",{className:"mplg_list_item __title"},u),(0,i.h)("div",{className:"mplg_list_item bc_flex_column"},(0,i.h)("div",{className:"mplg_l_video_wrp bc_media_thumb_wrp bc_flex bc_flex_wrap"},h.map((function(e){return(0,i.h)(r.Id,{key:e.thumbImage.src,data:e,onOpenGallery:n})}))),!!(null==_?void 0:_.url)&&(0,i.h)("div",{className:"mplg_l_link"},(0,i.h)("a",{href:(0,l.FC)(_.url),rel:_.rel,target:_.target,title:(0,l.b8)(_.title)},(0,l.b8)(_.text))))):null}))},3949:function(e,n,t){t.d(n,{B:function(){return o}});var i=t(40793),o=function(e){var n;return null===(n=(0,i.c)(e))||void 0===n?void 0:n.socialProfiles}},59256:function(e,n,t){t.d(n,{w:function(){return c}});var i=t(62614),o=t(50172),a=t(79276),l=t(19826),r=t(98614),s=t(41669),c=function(){function e(){var e=this;this.attachPopup=function(n,t){if(e.wrapperElement)return e.detachPopup();e.isMobile?(0,a.JX)("injectable_popup",n):t&&(e.wrapperElement=document.createElement("div"),t.appendChild(e.wrapperElement),i.w.append((0,o.h)(r.Kq,{store:l.A},n()),e.wrapperElement))},this.detachPopup=function(){e.isMobile?(0,a.Jw)():e.wrapperElement&&(i.w.unmount(e.wrapperElement),e.wrapperElement=null)},this.handleClickOutside=function(n){e.wrapperElement&&!e.wrapperElement.contains(n.target)&&e.detachPopup()},this.isMobile=l.A.getState().isMobile,this.isMobile||s(document).on("click",(function(n){e.handleClickOutside(n)}))}return Object.defineProperty(e,"instance",{get:function(){return this._instance=this._instance||new this},enumerable:!1,configurable:!0}),e}()},97037:function(e,n,t){t.d(n,{h:function(){return i}});var i="js-instruction-step-5"},72374:function(e,n,t){var i=t(17402);n.A=function(e){(0,i.useEffect)((function(){e()}),[])}},99263:function(e,n,t){var i=t(17402);n.A=function(e){(0,i.useEffect)((function(){return function(){e()}}),[])}},58927:function(e,n,t){t.d(n,{v:function(){return m}});var i=t(50172),o=t(17402),a=t(15215),l=t(842),r=t(91651),s=t(41966),c=t(33954),u=function(){var e=[(0,r.i)(l.Y.GALLERY,document.head,null,(0,s.j)())];return c.isRTLCulture&&e.push((0,r.i)(l.Y.GALLERY_RTL,document.head)),e},d=t(46517),_=t(10733),p=(0,o.lazy)((function(){return(0,a.sH)(void 0,void 0,void 0,(function(){var e;return(0,a.YH)(this,(function(n){switch(n.label){case 0:return e=(0,a.fX)((0,a.fX)([Promise.all([t.e(11),t.e(3),t.e(17),t.e(104),t.e(56),t.e(109),t.e(81),t.e(92),t.e(62),t.e(72)]).then(t.bind(t,17310))],u(),!0),[(0,r.i)(l.Y.VIDEO_PLAYER,document.head,null,(0,s.j)())],!1),[4,Promise.all(e)];case 1:return[2,n.sent()[0]]}}))}))})),h=(0,o.lazy)((function(){return(0,a.sH)(void 0,void 0,void 0,(function(){var e;return(0,a.YH)(this,(function(n){switch(n.label){case 0:return e=(0,a.fX)([Promise.all([t.e(11),t.e(118),t.e(3),t.e(17),t.e(102),t.e(104),t.e(56),t.e(135),t.e(92),t.e(62),t.e(100)]).then(t.bind(t,92825))],u(),!0),[4,Promise.all(e)];case 1:return[2,n.sent()[0]]}}))}))})),m=(0,o.memo)((function(e){var n,t,a=e.galleryKey,l=function(e){var n=e.galleryKey,t=(0,d.d4)(_.Qi);return{states:{currentGallery:(0,o.useMemo)((function(){return(null==t?void 0:t[n])||null}),[t,n])}}}(e).states.currentGallery;return(null==l?void 0:l.isPhotoOpen)&&(null===(n=l.photoList)||void 0===n?void 0:n.length)?(0,i.h)(o.Suspense,{fallback:null},(0,i.h)(h,{currentItemIndex:l.currentItemIndex,galleryKey:a,photoList:l.photoList})):(null==l?void 0:l.isVideoOpen)&&(null===(t=l.videoList)||void 0===t?void 0:t.length)?(0,i.h)(o.Suspense,{fallback:null},(0,i.h)(p,{currentItemIndex:l.currentItemIndex,galleryKey:a,pager:l.pager,videoList:l.videoList})):null}))},90894:function(e,n,t){t.d(n,{z:function(){return r}});var i=t(15215),o=t(17402),a=t(26616),l=t(41669),r=function(e){var n=e.username,t=e.image,r=e.linkApiUrl,s=void 0===r?"":r,c=(0,o.useState)(t),u=c[0],d=c[1],_=(0,o.useState)(s),p=_[0],h=_[1];return function(e){var n=e.replacer,t=void 0===n?function(e){return e.replace("_avatarm","_profile_s")}:n,i=e.username,r=e.onChangePhoto,s=void 0===r?a.noop:r;(0,o.useEffect)((function(){var e=function(e,n){if(n&&"user"===n.type&&n.data&&3===n.data.type&&n.data.data&&i===n.data.data.username){var o=t(n.data.data.url);s(o,n.data.data.apiUrl)}};return l(document).on("onNoticeSocketMessage",e),function(){l(document).off("onNoticeSocketMessage",e)}}),[s,t,i])}({username:n,onChangePhoto:(0,o.useCallback)((function(e,n){d((function(n){return(0,i.Cl)((0,i.Cl)({},n),{src:e})})),h(n)}),[])}),(0,o.useEffect)((function(){d((function(e){return(0,i.Cl)((0,i.Cl)({},e),{src:null==t?void 0:t.src})}))}),[null==t?void 0:t.src]),{image:u,linkApiUrl:p}}},80643:function(e,n,t){t.d(n,{Y:function(){return _}});var i=t(50172),o=t(21492),a=t(59992),l=t(83223),r=t(26580),s=t(47885),c=t(53336),u=t(26616),d=t(8546),_=function(e){var n,t=e.className,_=e.addPhotosText,p=void 0===_?null:_,h=e.counter,m=e.deleteAlbumApiUrl,v=e.noPhotosText,f=void 0===v?null:v,b=e.photosCount,g=e.thumbImage,C=e.title,N=e.variant,k=e.viewsCount,P=void 0===k?null:k,w=e.isAccessGranted,y=e.isLoading,A=e.isModelsSkin,S=e.isProtected,T=e.handleClickAlbum,B=void 0===T?u.noop:T,L=e.handleClickAlbumDelete,x=void 0===L?u.noop:L,E=e.handleClickPhoto,M=void 0===E?u.noop:E,I=!w&&(A||S),R=Boolean(b&&b>0),O=!R,H="modern"===N;return(0,i.h)("div",{className:(0,d.n)((n={"bc_media_thumb __picture":!0},n[String(t)]=Boolean(t),n["__".concat(N)]=Boolean(N),n))},(0,i.h)("div",{className:(0,d.n)({bc_flex_justify_center:R,"bc_flex mt_body":!0,"__empty __e_model bc_flex_column bc_flex_full_center":A&&O,"__empty bc_flex_column bc_flex_items_center bc_flex_justify_s_around":!A&&O}),onClick:M},R&&(0,i.h)(o.h,{className:(0,d.n)({"mt_img plt_content_loader_wrp":!0,__loading:y,__protected:I}),image:g,type:"__photo"}),O&&(0,i.h)(i.FK,null,(0,i.h)(r.A,{group:"mt_empty_icon",icon:"#svg_pfm_empty_plus",url:s.YZ}),Boolean(f)&&(0,i.h)("div",{className:"mt_empty_desc"},f),Boolean(p)&&(0,i.h)("div",{className:"mt_empty_link"},p)),I&&(0,i.h)(r.A,{group:"mt_status_icon",icon:"#svg_pfm_lock",url:s.YZ}),m&&(0,i.h)("div",{className:"mt_close",onClick:x},(0,i.h)(r.A,{group:"mt_close_icon",icon:"#svg_pfm_bubble_close",url:s.YZ})),H&&(0,i.h)(a.j,{count:b,type:l.w.PHOTO}),y&&(0,i.h)("span",{className:"bc_spinner_wrp __show __sp_filling"},(0,i.h)(r.A,{group:"bc_spinner",icon:"#svg_ui_circle_loader",url:c.Jp}))),(0,i.h)("div",{className:"mt_footer"},(0,i.h)("span",{className:"mt_item __title",onClick:B},C),H&&(0,i.h)(a.j,{count:P,type:l.w.VIEWS}),!H&&(0,i.h)(a.j,{count:h,type:l.w.EMPTY})))}},49441:function(e,n,t){t.d(n,{o:function(){return p}});var i=t(15215),o=t(842),a=t(97280),l=t(91651),r=t(2e3),s=t(88481),c=t(26616),u=t(41966),d=t(33954),_=t(71423),p=function(e){var n=e.imageLoader,p=e.photoPopupDataApiUrl,h=e.onClose,m=void 0===h?c.noop:h,v=e.onDeletePhoto,f=(0,s.ey)({fancyOptions:{wrapClassName:"bc_profile_popup_wrp __prf_single",border:"none",closeBtn:!1,closeClick:!0,closeEsc:!0,padding:0},loader:function(e){return(0,i.sH)(void 0,void 0,void 0,(function(){var c,h,v,f;return(0,i.YH)(this,(function(i){switch(i.label){case 0:return r.x.instance.navigateRequest(window.location.href),c=[s.Ye.PROFILE_POPUP,d.isRTLCulture?s.Ye.ARABIC_PROFILE_POPUP:null,o.Y.PHOTO_COMMENT].filter(Boolean),[4,(0,_.U)({abortController:e,imageLoader:n,photoPopupDataApiUrl:p})];case 1:return(null==(h=i.sent())?void 0:h.errors)?((0,a._)(null===(v=null==h?void 0:h.errors.global)||void 0===v?void 0:v[0]).error(),m(),[2,Promise.reject(null===(f=null==h?void 0:h.errors.global)||void 0===f?void 0:f[0])]):[2,Promise.all([h,Promise.all([t.e(11),t.e(44),t.e(118),t.e(102),t.e(135),t.e(94)]).then(t.bind(t,96017)),c.map((function(e){return(0,l.i)(e,document.head,{"data-exclude":!0},(0,u.j)())}))])]}}))}))},popupProps:{onClose:m,onDeletePhoto:v}}).openLoadPopupFancybox;return{openAlbumImagePopup:f}}},19846:function(e,n,t){t.d(n,{Py:function(){return o},R1:function(){return a}});var i=function(e){return e.user},o=function(e){var n;return null===(n=i(e))||void 0===n?void 0:n.username},a=function(e){var n;return(null===(n=i(e))||void 0===n?void 0:n.balance)||0}},39255:function(e,n,t){t.d(n,{i:function(){return o}});var i=t(83966),o=function(e){return function(e){return e.userEvents||{}}(e)[i.A.PIN_USER_HINT]||!1}},96688:function(e,n,t){t.r(n);var i=t(15215),o=t(50172),a=t(98614),l=t(87276),r=function(){return Promise.all([t.e(11),t.e(322)]).then(t.bind(t,4329))},s=function(e){function n(n){var t=e.call(this,n)||this;return t.state={isOverlayAlreadyLoaded:!1},t}return(0,i.C6)(n,e),n.prototype.onLoadHandler=function(){this.setState((function(e){return(0,i.Cl)((0,i.Cl)({},e),{isOverlayAlreadyLoaded:!0})}))},n.prototype.render=function(){var e=this,n=this.props,t=n.isModerator,i=n.instantBuy,a=this.state.isOverlayAlreadyLoaded;return(0,o.h)("div",{id:"stream-additional-container"},!t&&((null==i?void 0:i.isVisible)||a)&&(0,o.h)(l.N,{getComponent:r,onLoad:function(){return e.onLoadHandler()}}))},n=(0,i.Cg)([(0,a.Ng)(["isModerator","instantBuy"])],n)}(o.uA);n.default=s},16994:function(e,n,t){t.d(n,{e:function(){return i}});var i=function(e){return e.chatLocalData}},16516:function(e,n,t){t.d(n,{J:function(){return i}});var i=function(){return Boolean(window.IntersectionObserver)}}}]);