"use strict";(self.webpackChunkbongacams=self.webpackChunkbongacams||[]).push([[353],{55636:function(e,t,n){n.d(t,{j:function(){return f}});var i=n(50172),o=n(26580),a=n(53336),l=n(13907),r=n(8546),s=n(17402),c=n(46517),u=n(73163),d=n(42338),p=n(15563),h=n(41042),m=n(40172),f=function(e){var t,n=function(e){var t=e.className,n=e.onClose,i=(0,c.d4)(m.oI),o=(0,c.d4)(h.Ml);return{className:t,handleBuyTokensClick:(0,s.useCallback)((function(e){e.preventDefault(),e.stopPropagation(),o?(0,u.Z)():i?(0,p.F)():(0,d.q)({isBuyTokens:!0})}),[o,i]),handleClose:(0,s.useCallback)((function(e){e.preventDefault(),n()}),[n])}}(e),f=n.className,_=n.handleBuyTokensClick,v=n.handleClose;return(0,i.h)("div",{className:(0,r.n)((t={"bc_membership_error js-profile_comment_error":!0},t[f]=f,t))},(0,i.h)("div",{className:"me_message"},(0,i.h)("p",{className:"me_paragraph"},trans("Only users with %s_accent%GOLD status or higher%s_end% can leave comments.",{s_accent:'',s_end:""})),(0,i.h)("p",{className:"me_paragraph"},trans("%a_tokens%Buy Tokens%a_end% to get %s_bold%GOLD status%s_end% and chat with models!",{a_end:"",a_tokens:''),s_bold:'',s_end:""},{click:_}))),(0,i.h)("button",{className:"me_close",onClick:v},(0,i.h)(o.A,{group:"me_close",icon:"#svg_icon_close_straight",url:a.ed})))}},23149:function(e,t,n){n.d(t,{r:function(){return a}});var i=n(17402),o=n(20987),a=function(e){var t=e.imageUrl,n=(0,i.useState)(!1),a=n[0],l=n[1];return(0,i.useEffect)((function(){var e=!0;return t?(0,o.A)(t).then((function(t){e&&l(!t)})):l(!0),function(){e=!1}}),[t]),{isBroken:a}}},54503:function(e,t,n){n.d(t,{S:function(){return s},x:function(){return i}});var i,o=n(15215),a=n(99341),l=n(7526),r=n(26616);function s(e,t){var n=e.message,s=e.tipAmount,c=null!=t?t:{},u=c.listingThumbSize,d=c.privateShowId,p=c.subType,h=c.tipMenuHash,m=c.tipSource,f=c.isTipMenu,_=c.onFailure,v=c.onSuccess,b=void 0===v?r.noop:v;if("function"==typeof(null===l.j_||void 0===l.j_?void 0:l.j_.call)){if(chat.debug("tipModel",s),"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 g=[],C={d:{o:"getOrientation"in window?window.getOrientation():null},i:d||null,s:p||""};switch(h&&(C.d.th=h),u&&(C.d.ts=u),m){case i.TIP_KING:C.d.tk=1;break;case i.TIP_MENU:C.d.s=1;break;case i.TIP_MENU_ENABLED_NOTICE:C.s=1,C.d.san=1;break;case i.TIP_MENU_NOTICE:C.d.sn=1,C.d.s=1}if(f&&(C.d.tm=1),g.push(s),g.push(n),g.push(JSON.stringify(C)),n)try{a.h.onSend(chat.currentShowType)}catch(e){0}l.j_.call.apply(l.j_,(0,o.fX)(["ChatModule.sendTip",function(e){chat.debug("^^^ sendTip RESULT",e),"success"!==e.status?"fail"===e.status&&e.description&&("function"==typeof _&&_(e),chat.addServiceMessage(e.description,"tip_".concat(e.status))):b(e)}],g,!1))}}!function(e){e.TIP_KING="tk",e.TIP_MENU="s",e.TIP_MENU_ENABLED_NOTICE="san",e.TIP_MENU_NOTICE="sn"}(i||(i={}))},96734:function(e,t,n){n.d(t,{T:function(){return a}});var i=n(19826),o=n(92059),a=function(e,t){var n=i.A.getState(),a=n.isFullScreen,l=n.isPromo,r=(0,o.S)({bChat:t,isFullScreen:a,isMobile:e,isPromo:l});return r?e?r.scrollTop:r.scrollTop+r.clientHeight:0}},85271:function(e,t,n){n.d(t,{m:function(){return l}});var i=n(19826),o=n(82267),a=n(41669);function l(e){var t=i.A.getState(),n=t.isMobile;return t.isMobileApp?(chat.im.send(e),!0):n?void o.s.instance.send(e):!!a.noticeSocket&&(a.noticeSocket.send(e),!0)}},44271:function(e,t,n){n.d(t,{H:function(){return i}});var i=function(e,t){var n=e.isToday&&!e.isNoBroadcast;return{isBackgroundHighlight:n,isTextHighlight:t?e.isToday:n}}},20987:function(e,t){t.A=function(e){return new Promise((function(t){var n=new Image;n.onload=function(){return t(!0)},n.onerror=function(){return t(!1)},n.src=e}))}},56968:function(e,t,n){n.d(t,{b:function(){return _}});var i=n(50172),o=n(46517),a=n(19223),l=n(40172),r=n(8546),s=n(17402),c=n(26580),u=n(53336),d=n(43284),p=n(19537),h=n(2268),m=function(e){var t=e.price,n=e.socialProfileLink,r=e.isPurchased,m=(0,o.d4)(l.oI),f=t>0&&!r,_=(0,s.useMemo)((function(){return f?m?trans("%price% %tokens_plural%",{price:(0,p.$)(t),tokens_plural:''.concat(h.kX.pluralise("tokens",t),"")}):trans("%tokens% TKN",{tokens:(0,p.$)(t)}):(null==n?void 0:n.text)?(0,a.b8)(n.text):__("For Free%_social_link_%")}),[n,f,t]);return _?(0,i.h)("span",{className:(0,d.A)(["bc_simple_badge __social bc_inline_flex bc_flex_full_center",f&&"__primary",r&&"__purchased bc_flex_wrap"])},(0,i.h)("span",{className:"sb_b_inner",title:"string"==typeof _?_:void 0},_),!m&&r&&(0,i.h)(c.A,{group:"sb_badge_mark",icon:"#svg_icon_arrow_strong",url:u.ed})):null},f=(0,s.memo)((function(e){var t,n=e.className,o=e.data,a=o.icon,l=o.price,c=o.socialProfileLink,u=o.isPurchased;return(0,i.h)(s.Fragment,null,(0,i.h)("img",{className:(0,r.n)((t={spi_icon:!0},t[n]=Boolean(n),t)),alt:null==a?void 0:a.alt,src:null==a?void 0:a.src}),(0,i.h)(m,{price:l,socialProfileLink:c,isPurchased:u}))})),_=function(e){var t,n,s=e.className,c=e.data,u=e.onClickBuySocial,d=e.onClickLink,p=c.description,h=c.socialProfileLink,m=(0,o.d4)(l.oI);return(null==h?void 0:h.url)?(0,i.h)("a",{className:(0,r.n)((t={"bc_social_prf_item bc_flex bc_flex_item_center":!0},t[String(s)]=Boolean(s),t)),href:(0,a.FC)(h.url),rel:"noopener noreferrer",target:"forwardToRemote",onClick:d},(0,i.h)(f,{data:c})):(0,i.h)("div",{className:(0,r.n)((n={"bc_social_prf_item bc_flex bc_flex_item_center":!0,__hint:p},n[String(s)]=Boolean(s),n)),onClick:u},(0,i.h)(f,{data:c}),!m&&p&&(0,i.h)("span",{className:"prf_i_hint_wrp"},(0,i.h)("span",{className:"prf_i_hint"},p)))}},36040:function(e,t,n){n.d(t,{v:function(){return o}});var i=n(46140),o=function(e){var t=e.item,n=e.onOpenPurchased,o=e.onOpenPurchase,a=e.onNotIsAuthenticated,l=e.onIsNeedBuyToken,r=t.isPurchased,s=t.price,c=t.signupLink,u=t.isBuyTokenRequired,d=(0,i.u)(s)||0===s;return{handleOpenPopup:function(){return c?a():!r&&u?l(t):r||d?n(t):void o(t)}}}},68753:function(e,t,n){n.d(t,{Kr:function(){return l},Nl:function(){return a}});var i=n(39344),o=(0,i.object)({ban_username:(0,i.optional)((0,i.string)()),group_id:(0,i.optional)((0,i.string)()),group_title:(0,i.optional)((0,i.string)()),total_unread_messages_count:(0,i.optional)((0,i.number)()),username:(0,i.string)(),ut:(0,i.string)(),author_link_for_ban_html:(0,i.optional)((0,i.string)()),group_unread_messages_count:(0,i.optional)((0,i.number)())}),a=(0,i.object)({authorLinkForBanHtml:(0,i.optional)((0,i.string)()),closeGroupId:(0,i.optional)((0,i.string)()),it:(0,i.string)(),lt:(0,i.string)(),users:(0,i.array)(o)}),l=(0,i.object)({username:(0,i.string)(),usernames:(0,i.array)((0,i.string)()),ut:(0,i.string)()})},46213:function(e,t,n){n.d(t,{X:function(){return c}});var i=n(15215),o=n(19826),a=n(96998),l=n(85271),r=n(26616),s=n(68753),c=function(e){var t=e.authorUsername,n=e.mcm,c=e.username,u=e.onFail,d=void 0===u?r.noop:u,p=e.onSuccess,h=void 0===p?r.noop:p,m=(0,i.Cl)((0,i.Cl)({username:c},t&&{authorUsername:t}),(null==n?void 0:n.userId)&&{mcm:{user_id:n.userId}});(0,a.mN)("@im_ban_user",{body:m,expect:s.Nl,method:"POST",onError:function(){d()},onSuccess:function(e){var t=e.authorLinkForBanHtml,n=e.closeGroupId,a=e.it,r=e.lt,s=e.users,c=o.A.getState().user;s.forEach((function(e){var o=e.ban_username,s=e.username,u=e.ut;if(!o||!(null==c?void 0:c.username)||s===c.username){var d=(0,i.Cl)((0,i.Cl)((0,i.Cl)({author:null==c?void 0:c.username,username:s,ut:u},o&&{ban_username:o}),n&&{group_id:n,it:a}),t&&!o&&{author_link_for_ban_html:t,lt:r});(0,l.m)({data:{data:d,type:1},type:"user"})}})),h()}})}},50973:function(e,t,n){n.d(t,{X:function(){return i.X},v:function(){return c}});var i=n(46213),o=n(15215),a=n(96998),l=n(85271),r=n(26616),s=n(68753),c=function(e,t,n,i){if(void 0===n&&(n=r.noop),!e.length)return!1;var c=(0,o.Cl)({usernames:e},t&&{author_username:t});(0,a.mN)("@im_unban_users",{body:c,expect:s.Kr,method:"POST",onComplete:function(){null==i||i()},onSuccess:function(e){var t=(0,o.Cl)({},e);(0,l.m)({data:{data:t,type:2},type:"user"}),n()}})}},57732:function(e,t,n){var i;n.d(t,{b:function(){return i}}),function(e){e.INFO="profile",e.PHOTOS="photos",e.VIDEOS="videos",e.CHAT="chat"}(i||(i={}))},91815:function(e,t,n){n.d(t,{x:function(){return a}});var i=n(19826),o=n(6396),a=function(e){var t=i.A.dispatch;t(o.actionProfileMobileUpdateTipMenuIsOnline)(e),t(o.actionProfileMobileUpdateIsModelOnline)(e),t(o.actionProfileMobileUpdateModelOnlineStatus)(e),t(o.actionProfileMobileUpdateWorkScheduleIsOnline)(e),t(o.actionProfileMobileUpdateFanBoost)({isModelReadyForBoost:e})}},56526:function(e,t,n){n.d(t,{b:function(){return i}});var i="sprite/bc/mobile_profile_wall4.svg"},41277:function(e,t,n){n.d(t,{z:function(){return p}});var i=n(15215),o=n(31150),a=n(16998),l=n(13907),r=n(79276),s=n(68719),c=n(88775),u=n(50172),d=n(81714),p=function(e,t,n,p){void 0===n&&(n=d.A.ROLE_MEMBER),(0,a.nK)(e,(function(e){location.href=(0,l.ip)("@im_conversation?id=".concat(e))}),(function(e){5===e?(0,r.JX)("not_enough_tokens",(function(){return(0,u.h)(c.A,{title:__("New message"),isTip:!1})}),p):[10,3].includes(e)?(0,r.JX)("profile_confirm_error",(function(){return(0,u.h)(s.default,{error:(0,o.HL)(e,n,t),onClose:r.Jw})})):(0,r.JX)("error",null,(0,i.Cl)((0,i.Cl)({},p),{errorMessage:(0,o.HL)(e,n,t)}))}))}},24261:function(e,t,n){n.d(t,{eK:function(){return B},x4:function(){return de},a3:function(){return T},Ux:function(){return y},zt:function(){return w},I4:function(){return ie},Up:function(){return $},gG:function(){return pe},Mx:function(){return V},e7:function(){return le}});var i=n(15215),o=n(43284),a=n(50172),l=n(26616),r=n(8546),s=n(26580),c=n(15564),u="TEST_ID_ProfileActions_BTN",d=n(56526),p=function(e){var t,n=e.onClick,p=void 0===n?l.noop:n,h=e.iconType,m=e.children,f=e.wrapClass,_=void 0===f?"":f,v=e.testId,b=void 0===v?u:v,g=e.isMini;return(0,a.h)("button",(0,i.Cl)({className:(0,r.n)((t={profile_info_lg_btn:!g,profile_info_lg_btn_mini:g},t[_]=Boolean(_),t)),"data-role":"none",onClick:p},(0,c.A)({baseId:b})),h&&(0,a.h)(s.A,{group:(0,o.A)([g?"pilg_bm_icon":"pilg_btn_icon"]),icon:"#svg_".concat(g?"ma_":"mob_pw_").concat(h),url:!g&&d.b}),m)},h=n(22078),m=n(17402),f="ProfileActionsImButton_BTN",_=n(46517),v=n(40172),b=n(41277),g=n(79276),C=function(e){var t=e.messageButton,n=(0,_.d4)(v.UQ);return{actions:{handleClick:(0,m.useCallback)((function(){n?(0,b.z)(null==t?void 0:t.username,null==t?void 0:t.displayName,null==t?void 0:t.userRole,{className:"__photo_gallery_wrp"}):(0,g.JX)("login_join",null,{className:"__photo_gallery_wrp"})}),[n,t])}}},T=(0,m.memo)((function(e){var t=e.messageButton,n=e.children,i=C(e).actions.handleClick;return(0,h.j)(t)?(0,a.h)(p,{iconType:"send_message",className:"__im",wrapClass:"__im",onClick:i,testId:f},n):null})),N="ProfileActionsImButton_BTN",w=function(e){var t=e.messageButton,n=e.className,i=C(e).actions.handleClick;return(0,h.j)(t)?(0,a.h)(p,{iconType:"send_message",wrapClass:(0,o.A)(["__im",n]),isMini:!0,onClick:i,testId:N},t.caption?(0,a.h)("span",null,t.caption):null):null},y=(0,m.memo)((function(e){var t=e.className,n=e.messageButton,i=C(e).actions.handleClick;return(0,h.j)(n)?(0,a.h)("button",{className:(0,o.A)(["profile_info_clr_btn",t]),onClick:i,onTouchStart:i},(0,a.h)("span",{className:"picl_inner bc_inline_flex bc_flex_full_center"},(0,a.h)(s.A,{group:"picl_icon",icon:"#svg_mob_ca_msg"}),(0,a.h)("span",null,n.caption))):null})),S=n(19826),k=n(64038),O=n(44058),A=n(47110),P=n(17448),E=n(57285),M=n(6396),I=n(19223),L="ProfileActionsFollowButton_BTN_UNFOLLOW",x="ProfileActionsFollowButton_BTN_FOLLOW",B=function(){var e=function(){var e=(0,_.d4)(O.me)||{},t=e.followLinkUrl,n=void 0===t?"":t,i=e.unfollowLinkUrl,o=void 0===i?"":i,a=e.username,l=void 0===a?"":a,r=e.currentUsername,s=void 0===r?"":r,c=e.isAuthenticated,u=void 0!==c&&c,d=e.isAlreadyFollow,p=void 0!==d&&d,h=e.isNeedBuyToken,f=void 0!==h&&h,v=(0,_.d4)(O.JH),b=(0,_.d4)(O.JK),g=S.A.dispatch,C=v||l,T=(0,m.useCallback)((function(){g(M.actionProfileMobileUpdateHeadSubscribeOnlineNotificationButton)({isSubscribed:!1,username:l})}),[g,l]),N=(0,m.useCallback)((function(){T();var e=[{type:k.kU.UNFOLLOW,displayName:C}];b&&e.push({type:k.kU.NOTIFICATION_DISABLE,displayName:C}),(0,k.s6)(e)}),[T,C,b]),w=(0,m.useCallback)((function(){T()}),[T]),y=(0,m.useCallback)((function(){(0,k.s6)([{type:k.kU.FOLLOW,displayName:C}])}),[C]),L=(0,E.Ad)({username:l,currentUsername:s,followLinkUrl:(0,I.FC)(n),unfollowLinkUrl:(0,I.FC)(o),isAlreadyFollow:p,isAuthenticated:u,isNeedBuyToken:f,useHandleFollow:A.E,useHandleUnFollow:A.P,updateFollowDataIsAvailable:M.actionProfileMobileUpdateHeadFollowButtonIsAvailable,updateFollowDataIsBannedLogged2Profile:M.actionProfileMobileUpdateHeadFollowButtonIsBannedLogged2Profile,updateFollowDataIsBannedProfile2Logged:M.actionProfileMobileUpdateHeadFollowButtonIsBannedProfile2Logged,onFollow:y,onUnfollow:N,onUnfollowSuccess:w}),x=L.handleUnFollow,B=L.handleFollow;return{states:{followButton:e,isHideButton:(0,P.EA)(e)},actions:{handleFollow:B,handleUnFollow:x}}}(),t=e.states,n=t.isHideButton,i=t.followButton,o=e.actions,l=o.handleUnFollow,r=o.handleFollow,s=i.isUnfollowButtonVisible,c=void 0!==s&&s,u=i.isFollowButtonVisible,d=void 0!==u&&u,h=i.isBannedProfile2Logged,f=void 0!==h&&h,v=i.isBannedLogged2Profile;return n||f||void 0!==v&&v?null:c?(0,a.h)(p,{iconType:"unfollow",wrapClass:"__unfollow",onClick:l,testId:L,isMini:!0}):d?(0,a.h)(p,{iconType:"follow",wrapClass:"__unfollow",onClick:r,testId:x,isMini:!0}):null},R=n(2597),D=n(58884),U=n(49635),F="ProfileActionsSubscribeOnlineNotificationButton_BTN_UNSUBSCRIBE",H="ProfileActionsSubscribeOnlineNotificationButton_BTN_SUBSCRIBE",V=function(){var e=function(){var e=(0,_.d4)(O.pN),t=(0,_.d4)(O.jL),n=(0,_.d4)(O.JH),o=(0,_.d4)(U.EV)||"",a=e.isSubscribed,l=e.username,r=e.currentUsername,s=e.isAuthenticated,c=e.subscribeUrl,u=e.unsubscribeUrl,d=e.subscribeApiUrl,p=e.unsubscribeApiUrl,h=S.A.action,f=n||l,v=o===R.A.FREE,b=(0,m.useCallback)((function(e){var t={isSubscribed:e.isSubscribed,username:e.username};h(M.actionProfileMobileUpdateHeadSubscribeOnlineNotificationButton)(t)}),[h]),g=(0,m.useCallback)((function(){h(M.actionProfileMobileUpdateHeadSubscribeOnlineNotificationButton)({isSubscribed:!0});var e=[{type:k.kU.NOTIFICATION_ENABLE,displayName:f}];t||v||e.push({type:k.kU.FOLLOW,displayName:f}),(0,k.s6)(e)}),[h,f,t,v]),C=(0,m.useCallback)((function(){h(M.actionProfileMobileUpdateHeadSubscribeOnlineNotificationButton)({isSubscribed:!1}),(0,k.s6)([{type:k.kU.NOTIFICATION_DISABLE,displayName:f}])}),[h,f]),T=(0,m.useCallback)((function(){h(M.actionProfileMobileUpdateHeadSubscribeOnlineNotificationButton)({isSubscribed:!1,isBannedLogged2Profile:!0})}),[h]),N=(0,m.useCallback)((function(){h(M.actionProfileMobileUpdateHeadSubscribeOnlineNotificationButton)({isSubscribed:!1,isBannedLogged2Profile:!1})}),[h]),w=(0,m.useCallback)((function(){h(M.actionProfileMobileUpdateHeadSubscribeOnlineNotificationButton)({isSubscribed:!1,isBannedProfile2Logged:!0})}),[h]),y=(0,m.useCallback)((function(){h(M.actionProfileMobileUpdateHeadSubscribeOnlineNotificationButton)({isSubscribed:!1,isBannedProfile2Logged:!1})}),[h]),A=(0,D.$S)((0,i.Cl)((0,i.Cl)({},e),{isSubscribed:a,username:l,currentUsername:r,isAuthenticated:s,subscribeUrl:(0,I.FC)(c),unsubscribeUrl:(0,I.FC)(u),subscribeApiUrl:(0,I.FC)(d),unsubscribeApiUrl:(0,I.FC)(p),useHandleFollow:D.lz,useHandleUnFollow:D.qH,onSuccessSubscribe:g,onSuccessUnSubscribe:C,onEventOnlineStatusChange:b,onBanLogged2Profile:T,onUnBanLogged2Profile:N,onBanProfile2Logged:w,onUnBanProfile2Logged:y}));return{handleSubscribe:A.handleSubscribe,handleUnsubscribe:A.handleUnsubscribe,subscribeOnlineNotificationButton:e}}(),t=e.handleSubscribe,n=e.handleUnsubscribe,o=e.subscribeOnlineNotificationButton||{},l=o.isSubscribed,r=o.isBannedLogged2Profile,s=void 0!==r&&r,c=o.isBannedProfile2Logged;return void 0!==c&&c||s?null:l?l?(0,a.h)(p,{iconType:"notified",wrapClass:"__notified",isMini:!0,onClick:n,testId:F}):null:(0,a.h)(p,{iconType:"notify",wrapClass:"__notify",isMini:!0,onClick:t,testId:H})},Y="ProfileActionsPinButton_BTN_",j="ProfileActionsPinButton_BTN_ACTIVE",G=n(29622),z=n(842),W=n(54022),X=n(99882),Z=n(13907),K=n(88481),q=n(33954),J=function(){var e,t=(0,_.d4)(O.h4)||{},o=(0,_.d4)(O.JH),a=t.pinUrl,l=t.unpinUrl,r=t.username,s=o||r,c=(0,m.useCallback)((function(){(0,k.s6)([{displayName:s,type:k.kU.PIN}])}),[s]),u=(0,m.useCallback)((function(){(0,k.s6)([{displayName:s,type:k.kU.UNPIN}])}),[s]),d=(e=(0,K.s7)({loader:function(){return Promise.all([(0,W.AT)((0,Z.ip)("@follower_pinned_models_popup")),Promise.all([n.e(89),n.e(149)]).then(n.bind(n,76305)),(0,X.Z)(z.Y.USER_LIST_MOBILE),q.isRTLCulture?(0,X.Z)(z.Y.USER_LIST_MOBILE_RTL):Promise.resolve()])},popupId:"pinned_models",popupOptions:{animationClass:"__show_anim __pl_popup_wrp"}}).openLoadPopupMobile,{handleTooManyPinNotificationClick:function(){return e()}}).handleTooManyPinNotificationClick,p=(0,G.co)((0,i.Cl)((0,i.Cl)({},t),{pinUrl:(0,I.FC)(a),unpinUrl:(0,I.FC)(l),useHandlePin:G.EN,useHandleUnPin:G.Pc,onErrorTooManyPins:function(){(0,k.s6)([{displayName:s,type:k.kU.PIN_TOO_MANY,onClickAction:d}])},onSuccessPin:c,onSuccessUnPin:u})),h=p.handlePinModel,f=p.handleUnPinModel;return{states:{pinModelButton:t,isShowPinModel:!(null==t?void 0:t.isPinned),isShowUnPinModel:(null==t?void 0:t.isPinned)&&(null==t?void 0:t.isUnPinAvailable)},actions:{handlePinModel:h,handleUnPinModel:f}}},$=function(){var e=J(),t=e.states,n=t.pinModelButton,i=t.isShowPinModel,o=t.isShowUnPinModel,l=e.actions,r=l.handlePinModel,s=l.handleUnPinModel,c=n.isBannedLogged2Profile,u=n.isBannedProfile2Logged;return!(0,h.j)(n)||u||c?null:(0,a.h)(a.FK,null,i&&(0,a.h)(p,{iconType:"pin",testId:Y,onClick:r,wrapClass:"__pinned",isMini:!0}),o&&(0,a.h)(p,{iconType:"unpin",testId:j,onClick:s,wrapClass:"__pin_active",isMini:!0}))},Q=n(15563),ee=n(48291),te=n(21755),ne="ProfileActionsLoversButton_BTN",ie=function(){var e=function(){var e=(0,_.d4)(O.BS),t=(0,_.d4)(O.Sz)||{},n=(0,_.d4)(O.JH),i=t.apiUrl,o=t.username,a=t.isLover,l=t.isAuthenticated,r=t.isFreeMember,s=n||o,c=(0,ee.L)(),u=(0,Q.j)(),d=(0,m.useCallback)((function(e){e.loversCount&&(0,k.s6)([{type:k.kU.LOVE_SEND,displayName:s}])}),[s]);return{states:{loversButton:t},actions:{handleLoversClick:(0,te.J)({apiUrl:(0,I.FC)(i),isLover:a,isAuthenticated:l,isFreeMember:r,isInChat:e,onNotIsAuthenticated:c,onIsNeedBuyToken:u,onSuccess:d}).handleLoversClick,handleAlreadyLoversButtonClick:function(){(0,k.s6)([{type:k.kU.LOVE_WAS_SENDED,displayName:s}])}}}}(),t=e.states.loversButton,n=e.actions,i=n.handleLoversClick,o=n.handleAlreadyLoversButtonClick;return(0,h.j)(t)?t.isLover?(0,a.h)(p,{iconType:"lovers",wrapClass:"__lovers",testId:ne,onClick:o,isMini:!0}):t.isLover?null:(0,a.h)(p,{iconType:"lovers_add",wrapClass:"__lovers",isMini:!0,testId:ne,onClick:i}):null},oe=n(2268),ae="ProfileActionsTipButton_BTN",le=function(e){var t,i,o,l,r,s,c,u,d,h=e.children,f=(t=e,i=t.username,o=t.displayName,l=t.isAuthenticated,r=void 0!==l&&l,s=(0,m.useCallback)((function(){var e={status:"success",data:{username:i}};return Promise.all([Promise.resolve(e),n.e(510).then(n.bind(n,92717))])}),[i]),c=(0,m.useCallback)((function(e){(0,k.s6)([{type:k.kU.TIP_WAS_SENDED,message:__("You sent %s1%%tokens% %tokens_plural%%s_end% to model %modelname%",{s1:'',s_end:"",tokens:e,tokens_plural:oe.kX.pluralise("tokens",e),modelname:''.concat(o,"")})}])}),[o]),u=(0,K.s7)({loader:s,popupProps:{isIncludeTipAvailable:!1,className:"__profile",onTip:c},popupId:"im_tip"}).openLoadPopupMobile,d=(0,ee.L)(),{states:{},actions:{handleClick:(0,m.useCallback)((function(){r?u():d()}),[d,r,u])}}).actions.handleClick;return(0,a.h)(p,{iconType:"send_tip",wrapClass:"__tip __success",onClick:f,testId:ae},h)},re=n(42209),se=n(62146),ce=n(57732),ue=n(9445),de=(0,m.memo)((function(e){var t=e.username,n=e.children,i=function(e){var t=e.username,n=(0,_.d4)(ue.Z4);return{handleClickFullPrivateChat:(0,m.useCallback)((function(){return t===n?((0,g.Jw)(),chat.gotoPrivateChat(!0),se.default.instance.updateChatSwipeState(re.t.CHAT,ce.b.CHAT),!1):(localStorage.setItem("showPrivate","true"),document.location.assign("".concat((0,Z.ip)("@homepage")).concat(t)),!1)}),[n,t])}}({username:t}).handleClickFullPrivateChat;return(0,a.h)(p,{iconType:"full_private",onClick:i},n)})),pe=function(e){var t=e.username,n=e.children,i=function(e){var t=e.username,n=(0,_.d4)(ue.Z4);return{handleClickPrivateChat:(0,m.useCallback)((function(){return t===n?((0,g.Jw)(),chat.gotoPrivateChat(!1),se.default.instance.updateChatSwipeState(re.t.CHAT,ce.b.CHAT),!1):(localStorage.setItem("showPrivate","false"),document.location.assign("".concat((0,Z.ip)("@homepage")).concat(t)),!1)}),[n,t])}}({username:t}).handleClickPrivateChat;return(0,a.h)(p,{iconType:"private",onClick:i},n)}},42702:function(e,t,n){n.d(t,{A:function(){return l}});var i=n(15215),o=n(79276),a=n(50172),l=function(){return{openRecordedVideoPopup:function(e){return(0,i.sH)(void 0,void 0,void 0,(function(){var t;return(0,i.YH)(this,(function(i){switch(i.label){case 0:return[4,n.e(402).then(n.bind(n,36464))];case 1:return t=i.sent().default,(0,o.JX)("protected_video_popup",(function(){return(0,a.h)(t,{popupData:e})}),{animationClass:"__show_anim",allowedTouchMoveClassNames:["page_swipe_fix"],closeByClick:!0,onClose:o.Jw}),[2]}}))}))}}}},67861:function(e,t,n){n.r(t),n.d(t,{ProfileSocialBuyItemPopup:function(){return d},default:function(){return d}});var i=n(15215),o=n(50172),a=n(21307),l=n(46517),r=n(19826),s=n(12341),c=n(44058),u=n(6396),d=function(e){var t,n,d={states:{displayName:(n=(0,l.d4)(c.AU)).displayName,username:n.username},actions:{onSuccess:function(e){var t=e.id,n=e.forwardLink;r.A.action(u.actionProfileMobileSetPaidSocialProfileLink)(t,n),s.U.instance.sendMessage({target:s.B.PROFILE,id:t,forwardLink:n})}}},p=d.states,h=p.username,m=p.displayName,f=d.actions.onSuccess;return(0,o.h)(a.r,{item:(0,i.Cl)((0,i.Cl)({},e),{icon:(null===(t=null==e?void 0:e.header)||void 0===t?void 0:t.socialProfileIcon)||e.icon}),username:h,displayName:m,onSuccess:f})}},40131:function(e,t,n){n.d(t,{u:function(){return a}});var i=n(56803),o=n(78560),a=function(e){if((0,i.O)()){var t=localStorage.getItem(e);if(t===o.h.ACTIVE)return localStorage.setItem(e,o.h.READY_TO_DELETE),o.h.READY_TO_DELETE;t===o.h.READY_TO_DELETE&&localStorage.setItem(e,o.h.NONE)}return o.h.NONE}},94330:function(e,t,n){n.r(t),n.d(t,{init:function(){return En},initProfileComponentLoading:function(){return Pn}});var i,o=n(15215),a=n(91651),l=n(76393),r=n(42209),s=n(62146),c=n(50172),u=n(17402),d=n(43284),p=n(15564),h=n(64730),m=function(){return(0,c.h)(h.y,{show:!0,className:"pilg_spinner"})},f=n(57732),_=n(64254),v=n(75463),b=n(78560),g=n(40131),C=n(10733),T=n(44058),N=n(6396),w=n(46517),y=n(56803),S=n(22706),k=n(79276),O=(0,y.O)()?localStorage.getItem(v.c):b.h.NONE,A=function(){var e=(0,w.wA)(),t=(0,w.d4)(T.BS),n=(0,w.d4)(T.yR),i=(0,w.d4)(T.vG),o=(0,w.d4)(C.Qi),a=(0,w.d4)(T.zK),l=(0,u.useMemo)((function(){return null==n?void 0:n.find((function(e){return e.isActive}))}),[n]),c=(0,u.useCallback)((function(t){var n=(null==l?void 0:l.key)!==t.key;e(N.actionProfileMobileUpdateTabListActiveState)(t),e(N.actionProfileMobileUpdateTabChangeState)(n)}),[e,l]),d=(0,u.useCallback)((function(){var e=location.pathname.split("/"),t=e.slice(e.length-1)[0];if(t){var n=[f.b.PHOTOS,f.b.VIDEOS,f.b.INFO].includes(t)?t:f.b.INFO;c({key:n})}}),[c]);return(0,u.useEffect)((function(){(0,g.u)(v.c)}),[]),(0,u.useEffect)((function(){var e=function(){var e;((0,k.Jw)(),t&&a)?(null===(e=o[a])||void 0===e?void 0:e.isPhotoOpen)||s.default.instance.updateChatSwipeState(r.t.CHAT):S.BrowserDetect.isIOS()?window.location.reload():d()};return window.addEventListener("popstate",e),function(){window.removeEventListener("popstate",e)}}),[d,t,a,o]),{actions:{changeTab:c,handleChangeTab:function(e){if(t){var n=e.key===f.b.INFO?r.t.PROFILE:r.t.PROFILE_PHOTOS;s.default.instance.updateChatSwipeState(n,e.key)}else e.key!==f.b.PHOTOS&&e.key!==f.b.INFO&&e.key!==f.b.VIDEOS||(c(e),function(e){var t="".concat(e.link.url);O===b.h.ACTIVE||O===b.h.READY_TO_DELETE?(0,_.G$)({},document.title,t):(0,_.GC)({},document.title,t)}(e))}},states:{tabList:n,isChatProfile:t,isModelOnline:i}}};!function(e){e.PROFILE="profile",e.PHOTOS="photos",e.VIDEOS="videos",e.CHAT="chat"}(i||(i={}));var P,E=n(80554),M=n(19223),I=function(e){var t=e.changeTab,n=e.tabList,o=(0,w.wA)(),a=(0,w.d4)(T.BS),l=(0,w.d4)((function(e){var t;return null===(t=e.chatBar)||void 0===t?void 0:t.profileMediaLink})),c=(0,u.useState)(!1),d=c[0],p=c[1],h=(0,u.useMemo)((function(){return null==n?void 0:n.find((function(e){return e.isActive}))}),[n]);(0,u.useEffect)((function(){var e=function(e){var a=e.detail,s=a.swipeState,c=a.profileTabState;if(c)t({key:c});else{var u=s===r.t.PROFILE,d=s===r.t.PROFILE_PHOTOS;if(u||d){var p=i.PROFILE;if(s===r.t.PROFILE_PHOTOS){var h=null==n?void 0:n.some((function(e){return e.key===i.PHOTOS})),m=null==n?void 0:n.some((function(e){return e.key===i.VIDEOS}));if(h)p=i.PHOTOS;else if(m)p=i.VIDEOS;else if(l){var f=(0,M.z6)(l.url).urlString.split("?")[0].split("/");p=f[f.length-1]}}t({key:p})}else o(N.actionProfileMobileDisableTabListActiveState)()}};return a&&window.addEventListener(E.R.CHAT_SWIPE,e),function(){a&&window.removeEventListener(E.R.CHAT_SWIPE,e)}}),[a,t,n,o,l]),(0,u.useEffect)((function(){if(a&&!d&&h){var e=function(e){switch(e){case i.PROFILE:return r.t.PROFILE;case i.PHOTOS:return r.t.PROFILE_PHOTOS;default:return r.t.CHAT}}(h.key),t=s.default.swipeState;t!==e&&s.default.instance.updateChatSwipeState(t),p(!0)}}),[h,a,d])},L=n(26580),x=n(56526),B=(0,u.memo)((function(e){var t=e.tab,n=t.link,i=t.key,o=t.isActive,a=t.disabled,l=e.className,r=function(e){var t=e.tab,n=e.onClick,i=t.disabled,o=t.key;return{actions:{handleClickTab:function(e){(o!==f.b.CHAT||i)&&e.preventDefault(),n&&!i&&n(t)}}}}(e).actions.handleClickTab;return n?(0,c.h)("a",{className:(0,d.A)(["nt_item",o&&"__nt_active",a&&"__disabled",l]),onClick:r,href:(0,M.FC)(n.url),"data-role":"none"},(0,c.h)("span",{className:"nt_item_inner bc_flex bc_flex_items_center"},(0,M.Oy)({phrase:null==n?void 0:n.text}),i===f.b.CHAT&&(0,c.h)(L.A,{group:"nt_chat_icon",icon:"#svg_mob_pw_chat",url:x.b}))):null})),R=(0,u.memo)((function(){var e=A(),t=e.actions,n=t.handleChangeTab,i=t.changeTab,o=e.states,a=o.tabList,l=o.isChatProfile,r=o.isModelOnline;return I({changeTab:i,tabList:a}),(null==a?void 0:a.length)?(0,c.h)("div",{className:(0,d.A)(["bc_nav_tabs_wrp js-profile_nav_item_wrp",l&&"__chat"])},(0,c.h)("div",{className:"nt_inner"},a.map((function(e){return(0,c.h)(B,{tab:e,onClick:n,key:e.key,className:(0,d.A)([e.key===f.b.CHAT&&r&&"__chat_active"])})})))):null})),D=n(8546),U=n(33954),F=function(e){var t=e.horizontalScrollWrpElementRef,n=e.children,i=function(e){var t=e.horizontalScrollWrpElementRef,n=(0,u.useState)(!0),i=n[0],o=n[1],a=(0,u.useState)(!0),l=a[0],r=a[1],s=(0,u.useCallback)((function(e){var t={isEndFadeVisible:!0,isStartFadeVisible:!0},n=U.isRTLCulture?-e.scrollLeft:e.scrollLeft;Math.floor(n)<=0&&(t.isStartFadeVisible=!1),Math.ceil(n+e.offsetWidth)>=e.scrollWidth&&(t.isEndFadeVisible=!1),o(t.isStartFadeVisible),r(t.isEndFadeVisible)}),[]),c=(0,u.useCallback)((function(e){var t=e.currentTarget;s(t)}),[s]);return(0,u.useEffect)((function(){var e=t.current;return e?(e.addEventListener("scroll",c),s(e)):(o(!1),r(!1)),function(){e&&e.removeEventListener("scroll",c)}}),[t,c,s]),{isEndFadeVisible:l,isStartFadeVisible:i}}({horizontalScrollWrpElementRef:t}),o=i.isEndFadeVisible,a=i.isStartFadeVisible;return(0,c.h)("div",{className:(0,D.n)({bc_fade_scroll:!0,__fade_end:o,__fade_start:a})},n)},H="__scroll",V=n(95290),Y=function(e){var t=e.className,n=e.children,i=e.isWithFade,o=function(){var e=(0,u.useRef)(),t=(0,w.d4)((function(e){return null==e?void 0:e.mobilePopup}));return(0,u.useEffect)((function(){var n;if(S.BrowserDetect.isIOS()){var i=e.current;if(t&&i){var o=null===(n=t.options)||void 0===n?void 0:n.isShow,a=t.isDisabledScroll;o?i.classList.remove(H):a||setTimeout((function(){i.classList.add(H)}),2*V.d)}}}),[t]),{refs:{horizontalScrollWrpElRef:e}}}().refs.horizontalScrollWrpElRef;return i?(0,c.h)(F,{horizontalScrollWrpElementRef:o},(0,c.h)("div",{ref:o,className:(0,d.A)(["pilg_hor_scroll_wrp",H,t])},n)):(0,c.h)("div",{ref:o,className:(0,d.A)(["pilg_hor_scroll_wrp",H,t])},n)},j=n(22523),G=function(e){var t=e.scrollElement,n=e.onScrollDoneCallback,i=e.scrollOptions,o=e.scrollType,a=void 0===o?"by":o;if(t&&("by"===a&&t.scrollBy(i),"to"===a&&t.scrollTo(i),"number"==typeof(null==i?void 0:i.finalScrollTop)&&n))if(i.behavior&&"instant"!==i.behavior)var l=0,r=window.setInterval((function(){var e=t.scrollTop;i.finalScrollTop>=Math.ceil(e)||10===l?(window.clearInterval(r),n()):l++}),100);else n()},z=function(e){if(void 0===e&&(e="profile-top"),!Boolean(document.body.querySelector(".js-profileMobile.__chat")))return function(e){var t;j.L.instance.RestorePosition(null===(t=null==e?void 0:e.scrollOptions)||void 0===t?void 0:t.behavior),(null==e?void 0:e.onScrollDoneCallback)&&e.onScrollDoneCallback()};var t=document.body.querySelector('div[data-id="chat"]'),n=null==t?void 0:t.querySelector(".ui-panel-content-wrap .bc-content"),i=window.isLandscape(),a=document.body.classList.contains("tablet");return i&&a?(n=null==t?void 0:t.querySelector(v.$A),function(e){return function(e){var t=e.scrollElement,n=e.scrollOptions,i=e.scrollType,a=e.onScrollDoneCallback;if(t){var l=-1*((null==t?void 0:t.scrollTop)||0);G({scrollElement:t,scrollOptions:(0,o.Cl)({top:l,finalScrollTop:0},n),scrollType:i,onScrollDoneCallback:a})}}((0,o.Cl)({scrollElement:n},e))}):"chat-top"===e?function(e){return function(e){var t=e.scrollElement,n=e.scrollOptions,i=e.scrollType,a=e.onScrollDoneCallback;if(t){var l=-1*t.scrollTop;G({scrollElement:t,scrollOptions:(0,o.Cl)({top:l,behavior:"smooth"},n),scrollType:i,onScrollDoneCallback:a})}}((0,o.Cl)({scrollElement:n},e))}:function(e){return function(e){var t=e.scrollElement,n=e.onScrollDoneCallback,i=e.scrollOptions,a=e.scrollType;if(t){var l=document.getElementById("chat_bar_v2_container");if(l){var r=l.getBoundingClientRect().top,s=t.scrollTop+r;G({scrollElement:t,scrollOptions:(0,o.Cl)({top:s,finalScrollTop:s},i),scrollType:a||"to",onScrollDoneCallback:n})}}}((0,o.Cl)({scrollElement:n},e))}},W=function(e){void 0===e&&(e="profile-top");var t=(0,u.useRef)(z(e)),n=(0,u.useCallback)((function(){t.current=z(e)}),[e]);return(0,u.useEffect)((function(){var e=window.matchMedia("(orientation: portrait)");return e.addEventListener("change",n),function(){e.removeEventListener("change",n)}}),[n]),{actions:{goToProfileTop:t}}},X=(0,u.memo)((function(){var e=function(){var e=W("chat-top").actions.goToProfileTop;return{actions:{handleClickGoToTop:function(){e.current({scrollOptions:{behavior:"smooth"}})}}}}().actions.handleClickGoToTop;return(0,c.h)("button",{className:"pilg_top_btn","data-role":"none",onClick:e},(0,c.h)(L.A,{group:"tb_icon",icon:"#svg_mob_pw_btn_top_arrow",url:x.b}))})),Z=n(22078),K=(0,u.memo)((function(){var e=(0,w.d4)(T.eO);return(0,Z.j)(e)?(0,c.h)("div",{className:"pilg_section __about"},(0,c.h)("h2",{className:"pilg_title"},e.caption),(0,c.h)("div",{className:"pilg_table"},e.items.map((function(e){return(0,c.h)(u.Fragment,{key:e.title},(0,c.h)("div",{className:"pilgt_cell __accent"},e.title),(0,c.h)("div",{className:"pilgt_cell"},e.value))})))):null})),q=n(24261),J=function(){var e,t=(0,w.d4)(T.wq),n=(0,w.d4)(T.rk);return(0,Z.j)(t)||(0,Z.j)(n)?(0,c.h)("div",{className:"profile_info_lg_btn_wrp"},(0,c.h)(q.e7,{username:null==n?void 0:n.username,displayName:n.displayName,isAuthenticated:null==n?void 0:n.isAuthenticated},null===(e=null==n?void 0:n.link)||void 0===e?void 0:e.text)):null},$=n(80782),Q=n(67852),ee=n(50445),te=n(64038),ne=n(57651),ie=n(50973),oe=n(85418),ae=function(){var e=function(){var e=(0,w.d4)(T.kd),t=(0,w.wA)(),n=e||{},i=n.banConfirmDialog,a=n.displayName,l=n.unbanApiUrl,r=n.isBanned,s=(0,u.useState)(!1),c=s[0],d=s[1],p=(0,u.useState)(null),h=p[0],m=p[1],f=function(){m(null)};return{banButton:e,confirmDialogState:h,isModelBanned:r,isUnBanLoading:c,handleBanClick:function(){if(i){var e=(0,o.Cl)((0,o.Cl)({},i),{message:(0,o.Cl)((0,o.Cl)({},i.message),{attributes:{"":"","":"","":'',"":''}}),isLastVersionPhraseComponent:!0});m(e)}},handleClickConfirmBan:function(){if("string"!=typeof i.confirmButton.url){var e=i.confirmButton.url.body.username;return t(ne.A8)(!0),new Promise((function(n){(0,ie.X)({username:e,onFail:function(){t(N.actionProfileMobileUpdateBan)(!0)},onSuccess:function(){n(),t(ne.A8)(!1),setTimeout((function(){(0,te.s6)([{displayName:a,type:te.kU.BAN}])}),30),t(N.actionProfileMobileUpdateBan)(!0),f()}})}))}},handleCloseConfirmDialog:f,handleUnBanClick:function(){if("string"!=typeof l){var e=l.body.usernames;!e||e.length>1||(d(!0),(0,ie.v)(e,null,(function(){t(N.actionProfileMobileUpdateBan)(!1),(0,oe.iD)(!1),(0,te.s6)([{displayName:a,type:te.kU.UN_BAN}])})),d(!1))}}}}(),t=e.banButton,n=e.confirmDialogState,i=e.isModelBanned,a=e.isUnBanLoading,l=e.handleBanClick,r=e.handleClickConfirmBan,s=e.handleCloseConfirmDialog,d=e.handleUnBanClick;if(!(0,Z.j)(t))return null;var p=t.banLinkText,h=t.unbanLinkText,m=t.banLinkTextShort,f=t.unbanLinkTextShort;return(0,c.h)("div",{className:"pilg_section __ban"},i&&(0,c.h)($.$,{className:"profile_info_lg_btn __secondary pilg_btn_ban bc_flex_wrap",loading:a,maxWidth:"fluid",onClick:(0,ee.s)(d,!a)},(0,c.h)("span",{className:"pilg_inner_container bc_flex bc_flex_items_center bc_fw_bold"},(0,c.h)("span",{className:"pilg_text bc_nowrap bc_flex bc_flex_full_center"},(0,c.h)(L.A,{group:"pilg_btn_icon",icon:"#svg_mob_pw_ban",url:x.b}),(0,M.Oy)({phrase:f,isLastVersion:!0})),(0,c.h)(L.A,{group:"pilg_btn_icon",icon:"#svg_mob_pw_ban",url:x.b}),(0,M.Oy)({phrase:h,isLastVersion:!0}))),!i&&(0,c.h)($.$,{className:"profile_info_lg_btn pilg_btn_ban __secondary bc_flex_wrap",maxWidth:"fluid",onClick:l},(0,c.h)("span",{className:"pilg_inner_container bc_flex bc_flex_items_center bc_fw_bold"},(0,c.h)("span",{className:"pilg_text bc_nowrap bc_flex bc_flex_full_center"},(0,c.h)(L.A,{group:"pilg_btn_icon",icon:"#svg_mob_pw_ban",url:x.b}),(0,M.Oy)({phrase:m,isLastVersion:!0})),(0,c.h)(L.A,{group:"pilg_btn_icon",icon:"#svg_mob_pw_ban",url:x.b}),(0,M.Oy)({phrase:p,isLastVersion:!0}))),n&&(0,c.h)(Q.PopupConfirmationDialog,{className:"__profile_confirmed",popup:n,version:"light",onCancel:s,onClose:s,onConfirm:r}))},le=n(55636),re=n(9231),se=n(71136),ce=n(85340),ue=n(88481),de=(0,u.memo)((function(e){var t=e.comment,i=function(e){var t=e.comment,i=e.deleteCommentConfirmDialog,a=e.onDeleteConfirm,l=(0,ce.h)().sendApiRequest,r=(0,u.useCallback)((function(){var e={data:{popup:i,onConfirm:function(e){return(0,o.sH)(void 0,void 0,void 0,(function(){var n,r,s,c,u;return(0,o.YH)(this,(function(d){switch(d.label){case 0:if(!(null==i?void 0:i.confirmButton))return[3,4];n=(0,M.z6)(null===(u=i.confirmButton)||void 0===u?void 0:u.url),r=n.urlString,(s=(0,o.Tt)(n,["urlString"])).body=JSON.stringify({id:t.id}),d.label=1;case 1:return d.trys.push([1,3,,4]),[4,l(r,s)];case 2:return c=d.sent(),a("success"===c.status),e(),[3,4];case 3:return d.sent(),a(!1),e(),[3,4];case 4:return[2]}}))}))}},status:"success"};return Promise.all([e,Promise.resolve().then(n.bind(n,67852))])}),[i,t,a,l]);return{actions:{handleLoadAndOpenCommentDeleteConfirmationPopup:(0,ue.s7)({loader:r,popupId:"comment_delete_confirmation"}).openLoadPopupMobile},states:{commentWithSmileys:se.default.replace({message:t.text,isMultiline:!0})}}}(e),a=i.actions.handleLoadAndOpenCommentDeleteConfirmationPopup,l=i.states.commentWithSmileys;return(0,c.h)("div",{className:"psc_comment"},(0,c.h)("div",{className:"pscc_head"},(0,c.h)("div",{className:"ch_text"},(0,c.h)("span",{className:"ch_name bc_text_ellipsis"},t.displayName),(0,c.h)("span",{className:"cht_date"},t.createdAt)),t.rating&&(0,c.h)(re.M,{rating:t.rating})),(0,c.h)("div",{className:"pscc_content"},(0,c.h)("p",{className:"cc_text",dangerouslySetInnerHTML:{__html:l}}),(null==t?void 0:t.deleteButton)&&(0,c.h)("button",{className:"cc_delete","data-role":"none",onClick:a},t.deleteButton.text)))})),pe=n(19826),he="free_member",me=(0,u.memo)((function(){var e=function(){var e=pe.A.dispatch,t=(0,w.d4)(T.fn),i=(0,ce.h)().sendApiRequest,a=(0,u.useState)(!1),l=a[0],r=a[1],s=(0,u.useState)(!1),c=s[0],d=s[1],p=(0,u.useState)(!1),h=p[0],m=p[1],f=(0,u.useState)(!0),_=f[0],v=f[1],b=(0,u.useState)(!1),g=b[0],C=b[1],y=(0,u.useRef)();(0,u.useEffect)((function(){var e,n,i,o;v((null===(e=null==t?void 0:t.items)||void 0===e?void 0:e.length)<(null===(n=null==t?void 0:t.pager)||void 0===n?void 0:n.count)),C((null===(i=null==t?void 0:t.items)||void 0===i?void 0:i.length)>(null===(o=null==t?void 0:t.pager)||void 0===o?void 0:o.perPage))}),[t]);var S=(0,u.useCallback)((function(){return(0,o.sH)(void 0,void 0,void 0,(function(){var e,n,a,l,s,c,u;return(0,o.YH)(this,(function(p){switch(p.label){case 0:return d(!0),e=(0,M.z6)(null===(s=null==t?void 0:t.addCommentButton)||void 0===s?void 0:s.url),n=e.urlString,a=(0,o.Tt)(e,["urlString"]),[4,i(n,a)];case 1:return l=p.sent(),r(null===(u=null===(c=l.errors)||void 0===c?void 0:c.global)||void 0===u?void 0:u.includes(he)),d(!1),[2,l]}}))}))}),[t,i]),k=(0,u.useCallback)((function(){return(0,o.sH)(void 0,void 0,void 0,(function(){var e,t;return(0,o.YH)(this,(function(i){switch(i.label){case 0:return t=(e=Promise).all,[4,S()];case 1:return[2,t.apply(e,[[i.sent(),n.e(335).then(n.bind(n,6043))]])]}}))}))}),[S]),O=(0,ue.s7)({loader:k,popupId:"comments_add_profile_popup",popupOptions:{animationClass:"__show_anim"}}).openLoadPopupMobile,A=(0,u.useCallback)((function(n){return(0,o.sH)(void 0,void 0,void 0,(function(){var a,l,r,s,c;return(0,o.YH)(this,(function(u){switch(u.label){case 0:return n&&t.loadCommentsApiUrl?(a=(0,o.Cl)((0,o.Cl)({},t.loadCommentsApiUrl),{query:(0,o.Cl)((0,o.Cl)({},t.loadCommentsApiUrl.body),{limit:t.items.length})}),l=(0,M.z6)(a),r=l.urlString,s=(0,o.Tt)(l,["urlString"]),[4,i(r,s)]):[3,2];case 1:c=u.sent(),e(N.actionProfileMobileUpdateComments)(c.data.comments),u.label=2;case 2:return[2]}}))}))}),[t,e,i]),P=(0,u.useCallback)((function(){return r(!1)}),[]);return(0,u.useEffect)((function(){function e(){y.current&&window.scrollTo({behavior:"smooth",top:y.current.getBoundingClientRect().top-document.body.getBoundingClientRect().top-100})}return document.addEventListener(E.R.COMMENT_WAS_ADDED,e),function(){document.removeEventListener(E.R.COMMENT_WAS_ADDED,e)}}),[]),{actions:{handleCloseErrorNotice:P,handleFetchMoreComments:function(){return(0,o.sH)(void 0,void 0,void 0,(function(){var n,a,l,r,s,c;return(0,o.YH)(this,(function(u){switch(u.label){case 0:return(null==t?void 0:t.loadCommentsButton)?(m(!0),n=t.loadCommentsButton,a="string"==typeof n.url?n.url:(0,o.Cl)((0,o.Cl)({},n.url),{body:(0,o.Cl)((0,o.Cl)({},n.url.body),{offset:t.items.length})}),l=(0,M.z6)(a),r=l.urlString,s=(0,o.Tt)(l,["urlString"]),[4,i(r,s)]):[3,2];case 1:"success"===(c=u.sent()).status&&e(N.actionProfileMobilePushCommentsItems)(c.data.comments),m(!1),u.label=2;case 2:return[2]}}))}))},handleLoadAndOpenAddCommentsPopup:O,handleShowLessButtonClick:function(){var n=t.pager.perPage;n&&e(N.actionProfileMobileHideComments)(n)},handleUpdateCommentOnDelete:A},refs:{commentsHeaderRef:y},states:{comments:t,isAddCommentPopupLoadingState:c,isFreeMemberError:l,isMoreCommentsLoadingState:h,isShowLessButtonShowed:g,isShowMoreButtonShowed:_}}}(),t=e.actions,i=t.handleCloseErrorNotice,a=t.handleFetchMoreComments,l=t.handleLoadAndOpenAddCommentsPopup,r=t.handleShowLessButtonClick,s=t.handleUpdateCommentOnDelete,d=e.refs.commentsHeaderRef,p=e.states,h=p.comments,m=p.isAddCommentPopupLoadingState,f=p.isFreeMemberError,_=p.isMoreCommentsLoadingState,v=p.isShowLessButtonShowed,b=p.isShowMoreButtonShowed;return(0,Z.j)(h)?(0,c.h)("div",{className:"pilg_section __comments"},(0,c.h)("h2",{ref:d,className:"pilg_title"},h.caption," (",h.pager.count,")"),!h.pager.count&&(0,c.h)("p",{className:"psc_empty"},__("There are no comments yet")),h.items.map((function(e){return(0,c.h)(de,{key:e.id,comment:e,deleteCommentConfirmDialog:h.deleteCommentConfirmDialog,onDeleteConfirm:s})})),f&&(0,c.h)(le.j,{className:"__profile __with_bg",onClose:i}),h.addCommentButton&&(0,c.h)($.$,{className:"psc_btn",loading:m,maxWidth:"fluid",onClick:l},h.addCommentButton.text),(h.loadCommentsButton||h.showLessCommentsButton)&&(0,c.h)("div",{className:"pcs_toogle_wrp"},b&&(0,c.h)($.$,{className:"pilg_toggle_btn __comments",loading:_,onClick:a},(0,c.h)("span",{className:"ptb_text"},h.loadCommentsButton.text),(0,c.h)("span",{className:"ptb_text __hide"},h.showLessCommentsButton.text)),v&&(0,c.h)($.$,{className:"pilg_toggle_btn __comments",disabled:_,onClick:r},(0,c.h)("span",{className:"ptb_text"},h.showLessCommentsButton.text),(0,c.h)("span",{className:"ptb_text __hide"},h.loadCommentsButton.text)))):null})),fe=(0,u.memo)((function(e){var t=e.data;return(null==t?void 0:t.contestResults)?(0,c.h)("div",{className:"pilg_list"},(0,c.h)("p",{className:"pl_caption"},t.caption),(0,c.h)(Y,{className:"pl_wrp"},t.contestResults.map((function(e){return(0,c.h)("div",{key:e.image.src,className:"pl_item"},(0,c.h)("img",{className:"pli_img",src:e.image.src,alt:e.image.alt}),(0,c.h)("p",{className:"pli_caption"},(0,M.Oy)({phrase:e.caption,attributes:{"":'',"":""},isLastVersion:!0})))})))):null})),_e=(0,u.memo)((function(){var e=(0,w.d4)(T.X5);return(0,c.h)("div",{className:"pilg_section __contest"},(0,c.h)("h2",{className:"pilg_title"},e.caption),(0,c.h)(fe,{data:e.queenContestGroup}),(0,c.h)(fe,{data:e.weekContestGroup}),(0,c.h)(fe,{data:e.hourContestGroup}))})),ve=(0,u.memo)((function(){return(0,w.d4)(T.X5)?(0,c.h)(_e,null):null})),be={root:"pilg_dm_btn pilg_btn_clear"},ge=(0,u.memo)((function(e){var t,n=e.className,i=e.children,a=e.classMapping,l=void 0===a?be:a,r=(0,o.Tt)(e,["className","children","classMapping"]);return(0,c.h)("button",(0,o.Cl)({className:(0,D.n)((t={},t[l.root]=!0,t[n]=Boolean(n),t))},r),i)})),Ce={root:"pilg_dm_btn_wrp"},Te=(0,u.memo)((function(e){var t,n=e.className,i=e.children,a=e.classMapping,l=void 0===a?Ce:a,r=(0,o.Tt)(e,["className","children","classMapping"]);return(0,c.h)("div",(0,o.Cl)({className:(0,D.n)((t={},t[l.root]=!0,t[n]=Boolean(n),t))},r),i)})),Ne={root:""},we=(0,u.memo)((0,u.forwardRef)((function(e,t){var n,i=e.className,a=e.children,l=e.classMapping,r=void 0===l?Ne:l,s=(0,o.Tt)(e,["className","children","classMapping"]);return(0,c.h)("div",(0,o.Cl)({ref:t,className:(0,D.n)((n={},n[r.root]=!0,n[i]=Boolean(i),n))},s),a)}))),ye={root:"pilg_dm_invisible_wrp"},Se=(0,u.memo)((0,u.forwardRef)((function(e,t){var n,i=e.className,a=e.children,l=e.classMapping,r=void 0===l?ye:l,s=(0,o.Tt)(e,["className","children","classMapping"]);return(0,c.h)("div",(0,o.Cl)({ref:t,className:(0,D.n)((n={},n[r.root]=!0,n[i]=Boolean(i),n))},s),a)}))),ke={root:"pilg_dm_wrp"},Oe=(0,u.memo)((function(e){var t,n=e.className,i=e.children,a=e.classMapping,l=void 0===a?ke:a,r=(0,o.Tt)(e,["className","children","classMapping"]);return(0,c.h)("div",(0,o.Cl)({className:(0,D.n)((t={},t[l.root]=!0,t[n]=Boolean(n),t))},r),i)})),Ae=n(22641),Pe={root:"pilg_dm_text","full-text":"__not_full_text"},Ee=(0,u.memo)((function(e){var t,n=e.className,i=e.children,a=e.classMapping,l=void 0===a?Pe:a,r=e.isShowFullText,s=(0,o.Tt)(e,["className","children","classMapping","isShowFullText"]);return(0,c.h)("div",(0,o.Cl)({className:(0,D.n)((t={},t[l.root]=!0,t[n]=Boolean(n),t[l["full-text"]]=r,t))},s),(0,Ae.CN)(i))})),Me={root:"pilg_dm_title"},Ie=(0,u.memo)((function(e){var t,n=e.className,i=e.children,a=e.classMapping,l=void 0===a?Me:a,r=(0,o.Tt)(e,["className","children","classMapping"]);return(0,c.h)("div",(0,o.Cl)({className:(0,D.n)((t={},t[l.root]=!0,t[n]=Boolean(n),t))},r),i)})),Le=function(e){var t=e.data,n=e.showMoreToggle,i=e.isAvailable,o=function(){var e=(0,u.useState)(!1),t=e[0],n=e[1],i=(0,u.useRef)(null),o=(0,u.useRef)(null),a=(0,u.useRef)(null);return(0,u.useEffect)((function(){(null==a?void 0:a.current)||(a.current=new IntersectionObserver((function(e){var t=e.every((function(e){return e.isIntersecting&&1!==e.intersectionRatio&&e.intersectionRect.width}));n(t)}),{root:i.current,threshold:[0,1]}),a.current&&o.current&&a.current.observe(o.current));var e=a.current,t=o.current;return function(){e&&t&&e.unobserve(t)}}),[]),{states:{isShowMore:t,textContainerRef:i,innerTextContainerRef:o}}}().states,a=o.innerTextContainerRef,l=o.textContainerRef,r=o.isShowMore,s=(0,u.useState)(!r),c=s[0],d=s[1],p=(0,u.useMemo)((function(){return n?c?n.showText:n.hideText:""}),[n,c]);return{actions:{handleClick:(0,u.useCallback)((function(){d((function(e){return!e}))}),[])},refs:{innerTextContainerRef:a,textContainerRef:l},states:{buttonText:p,data:t,isAvailable:i,isShowFullText:c,isShowMore:r}}},xe=function(){var e=function(){var e=(0,w.d4)(T.Zz),t=e.caption,n=e.showMoreToggle,i=e.text,o=e.isAvailable;return Le({data:{caption:t,text:i},showMoreToggle:n,isAvailable:o})}(),t=e.actions.handleClick,n=e.refs,i=n.innerTextContainerRef,o=n.textContainerRef,a=e.states,l=a.buttonText,r=a.data,s=a.isAvailable,u=a.isShowFullText,d=a.isShowMore;return s&&s&&r?(0,c.h)(Oe,{className:"__dmw_about"},(0,c.h)(Ie,{className:"__dm_heavy"},null==r?void 0:r.caption),(0,c.h)(Se,{ref:o},(0,c.h)(we,{ref:i},null==r?void 0:r.text)),(0,c.h)(Ee,{isShowFullText:u},null==r?void 0:r.text),d&&(0,c.h)(Te,null,(0,c.h)(ge,{onClick:t},l))):null};!function(e){e.NONE="0",e.FETCHING="1",e.WAS_FETCHED="2"}(P||(P={}));var Be,Re=n(26616),De=n(27705),Ue=function(e){var t=e.onClick,n=void 0===t?Re.noop:t,i=e.isFanBoosted,o=void 0!==i&&i,a=e.isActiveAnimation,l=void 0!==a&&a;return(0,c.h)("button",{className:(0,D.n)({raise_model_btn:!0,__active:l}),"data-role":"none",onClick:n},(0,c.h)(De.u,{isFanBoosted:o}))},Fe=n(13907),He=n(40172),Ve=function(e){var t=e.label,i=e.data,a=function(e){var t=e.data,i=t.isModelReadyForBoost,a=t.isFreeRiseAvailable,l=t.modelUsername,r=t.boostTimeLeft,s=t.timeToEnable,d=t.popupApiUrl,p=pe.A.dispatch,h=(0,w.d4)(He.UQ),m=(0,ce.h)().sendApiRequest,f=(0,u.useState)(Boolean(null==t?void 0:t.boostTimeLeft)),_=f[0],v=f[1],b=(0,u.useState)(null),g=b[0],C=b[1],T=(0,u.useState)(P.NONE),y=T[0],S=T[1],O=i&&a,A=(0,u.useCallback)((function(){return(0,o.sH)(void 0,void 0,void 0,(function(){var e,t,n,i;return(0,o.YH)(this,(function(a){switch(a.label){case 0:return S(P.FETCHING),e=(0,M.z6)(d),t=e.urlString,n=(0,o.Tt)(e,["urlString"]),[4,m(t,n)];case 1:return"success"===(i=a.sent()).status&&C(i),[2,i]}}))}))}),[d,m]),E=(0,u.useCallback)((function(){return(0,o.sH)(void 0,void 0,void 0,(function(){var e,t,i;return(0,o.YH)(this,(function(o){switch(o.label){case 0:return t=(e=Promise).all,(i=g)?[3,2]:[4,A()];case 1:i=o.sent(),o.label=2;case 2:return[2,t.apply(e,[[i,n.e(413).then(n.bind(n,38806))]])]}}))}))}),[A,g]),I=(0,ue.s7)({loader:E,popupId:"profile_fan_boost_what",popupOptions:{animationClass:"__show_anim"},onBeforeOpenPopup:function(){S(P.WAS_FETCHED),p(N.actionProfileMobileUpdateFanBoost)({isVisibleWhatLink:!1,popupApiUrl:null})}}).openLoadPopupMobile;return(0,u.useEffect)((function(){var e=Boolean(r);v(e)}),[r,s,a]),{actions:{handleClickFanBoostButton:function(){return(0,o.sH)(void 0,void 0,void 0,(function(){var e;return(0,o.YH)(this,(function(i){switch(i.label){case 0:return h?O?[3,2]:[4,n.e(444).then(n.bind(n,26344))]:((0,k.JX)("login_join"),[2]);case 1:return e=i.sent().PopupFanBoostBuy,(0,k.JX)("profile_fan_boost",(function(){return(0,c.h)(e,{fanBoost:t})})),[2];case 2:return[4,m((0,Fe.ip)("@member_ajax_set_model_first_place?username=".concat(l)))];case 3:return i.sent(),[2]}}))}))},handleClickFanBoostLabel:I},states:{isReadyForFanBoost:O,isFanBoostActiveState:_,popupHintLoadingState:y}}}({data:i}),l=a.actions,r=l.handleClickFanBoostLabel,s=l.handleClickFanBoostButton,p=a.states,m=p.isReadyForFanBoost,f=p.isFanBoostActiveState,_=p.popupHintLoadingState,v=i.popupApiUrl;return(0,c.h)("div",{className:(0,d.A)(["pilg_fan_boosted",t&&v&&"__with_text"])},t&&v&&_!==P.WAS_FETCHED&&(0,c.h)("span",{className:(0,d.A)(["pilg_fan_boosted_text",_===P.FETCHING&&"__loading"]),onClick:r},t,_===P.FETCHING&&(0,c.h)(h.y,{show:!0})),(0,c.h)(Ue,{onClick:s,isActiveAnimation:m,isFanBoosted:f}))},Ye=function(e){return Array.isArray(e)},je=function(e,t){return"languages"===t&&Ye(e)},Ge=function(e,t){return"lastBroadcast"===t&&Ye(e)},ze=(0,u.memo)((function(e){var t=e.item,n=t.id,i=t.label,o=t.value,a=function(e){var t=e.item,n=(0,w.d4)(T.vG),i=(0,u.useRef)(!1),o="lastBroadcast"===t.id;return(0,u.useEffect)((function(){i.current=!0}),[]),{refs:{isMountedRef:i},states:{isBroadcastField:o,isProfileUserOnline:n}}}(e),l=a.refs.isMountedRef,r=a.states,s=r.isBroadcastField,p=r.isProfileUserOnline,h=je(o,n),m=Ge(o,n),f=(0,u.useCallback)((function(e){var t=e[0];return l.current&&(t=p?__("Online"):__("Recently")),t}),[l,p]);return(0,c.h)(u.Fragment,null,(0,c.h)("div",{className:"pilgt_cell __accent"},i),(0,c.h)("div",{className:(0,d.A)(["pilgt_cell","name"===n&&"bc_text_ellipsis","languages"===n&&"__lang",p&&s&&"__online"])},h&&o.map((function(e,t){return(0,c.h)("span",{key:e.code,className:"pilg_flag_wrp"},(0,c.h)("span",{className:"pilg_f_caption"},e.title,!e.withFlag&&t!==o.length-1&&", "),e.withFlag&&(0,c.h)("img",{className:"pilg_flag",alt:"",src:(0,Fe.oF)("sprite/bc/model_flags_atlas2.svg#svg_".concat(e.code))}))})),m&&f(o),function(e,t){return je(e,t)||Ge(e,t)||!Ye(e)?null:e.join(", ")}(o,n)))})),We=(0,u.memo)((function(){var e=(0,w.d4)(T.$O);if(!(0,Z.j)(e))return null;var t=e.fanBoost,n=e.items;return(0,c.h)("div",{className:"pilg_detail_wrp"},!!(null==n?void 0:n.length)&&(0,c.h)("div",{className:"pilg_table"},n.map((function(e){return(0,c.h)(ze,{key:e.id,item:e})}))),!!t&&(0,c.h)("div",{className:"pilg_d_fan_boost"},(0,c.h)(Ve,{data:t,label:trans("What is%br%FanBoost?",{br:"
"})})))})),Xe=(0,u.memo)((function(e){var t=e.data,n=e.isShortCaption;return(0,c.h)("div",{className:(0,d.A)(["pl_item",n&&"__short"])},(0,c.h)("div",{className:"pf_avatars_wrp"},t.items.map((function(e){return(0,c.h)("img",{className:"pli_img",key:e.src,alt:e.alt,src:e.src})}))),(0,c.h)("p",{className:"pli_caption"},n&&(0,c.h)("span",{className:"pli_highlight"},"+".concat(t.totalCount)),!n&&(0,M.Oy)({phrase:t.totalPhrase,attributes:{"":'',"":"
"},isLastVersion:!0})))})),Ze=(0,u.memo)((function(e){var t,n=e.data,i=(t=(0,w.d4)(T.BS),{actions:{handleClickViewAllLink:function(){if((0,y.O)()){localStorage.setItem(v.jY,b.h.ACTIVE);var e=document.documentElement;if(t){var n=window.isLandscape(),i=document.body.classList.contains("tablet");e=n&&i?document.body.querySelector('div[data-id="chat"] .js-profileMobile'):document.body.querySelector('div[data-id="chat"] .ui-panel-content-wrap .bc-content')}var o=(null==e?void 0:e.scrollTop.toString())||"";localStorage.setItem(v.An,o)}}}}).actions.handleClickViewAllLink;return n?(0,c.h)("div",{className:"pilg_list"},(0,c.h)("p",{className:"pl_caption"},n.caption),(0,c.h)("div",{className:"pl_wrp bc_flex bc_flex_justify_s_between bc_flex_items_center"},(0,c.h)("div",{className:"pl_items_wrp"},(0,c.h)("div",{className:"pl_items"},(0,c.h)(Xe,{data:n,isShortCaption:!0}),(0,c.h)(Xe,{data:n}))),n.viewAllLink&&(0,c.h)("a",{className:"pilg_toggle_btn",href:(0,M.z6)(n.viewAllLink.url).urlString,onClick:i},n.viewAllLink.text))):null})),Ke=(0,u.memo)((function(){var e=(0,w.d4)(T.l3);return(0,c.h)("div",{className:"pilg_section __followings"},(0,c.h)("h2",{className:"pilg_title"},e.caption),(0,c.h)(Ze,{data:e.bestMembers}),(0,c.h)(Ze,{data:e.followings}),(0,c.h)(Ze,{data:e.followers}))})),qe=(0,u.memo)((function(){return(0,w.d4)(T.l3)?(0,c.h)(Ke,null):null})),Je=n(48291),$e=(0,u.memo)((function(){var e,t=function(){var e=(0,w.d4)(T.aR),t=(0,w.d4)(He.UQ),i=(0,Je.L)(),a=(0,ce.h)().sendApiRequest,l=(0,u.useState)(!1),r=l[0],s=l[1],c=(0,u.useState)(null),d=c[0],p=c[1],h=(0,u.useMemo)((function(){return e.giftsImages.reverse()}),[e]),m=(0,u.useCallback)((function(){return(0,o.sH)(void 0,void 0,void 0,(function(){var t,n,i,l;return(0,o.YH)(this,(function(r){switch(r.label){case 0:return s(!0),t=(0,M.z6)(e.sendVirtualGiftPopupDataApiUrl),n=t.urlString,i=(0,o.Tt)(t,["urlString"]),[4,a(n,i)];case 1:return"success"===(l=r.sent()).status&&p(l),s(!1),[2,l]}}))}))}),[e,a]),f=(0,u.useCallback)((function(){return(0,o.sH)(void 0,void 0,void 0,(function(){var e,t,i;return(0,o.YH)(this,(function(o){switch(o.label){case 0:return t=(e=Promise).all,(i=d)?[3,2]:[4,m()];case 1:i=o.sent(),o.label=2;case 2:return[2,t.apply(e,[[i,n.e(526).then(n.bind(n,55941))]])]}}))}))}),[m,d]),_=(0,ue.s7)({loader:f,popupId:"gifts_purchase_popup",popupOptions:{animationClass:"__show_anim"}}).openLoadPopupMobile;return{states:{gifts:e,isGiftsPopupLoadingState:r,giftImageExampleList:h},actions:{handleClickPickGiftButton:function(){t?_():i()}}}}(),i=t.actions.handleClickPickGiftButton,a=t.states,l=a.gifts,r=a.isGiftsPopupLoadingState,s=a.giftImageExampleList;return(0,c.h)("div",{className:"pilg_section __gifts"},(0,c.h)("div",{className:(0,d.A)([!l.list.length&&"pilg_empty_head"])},(0,c.h)("h2",{className:"pilg_title"},l.header),!(null===(e=l.list)||void 0===e?void 0:e.length)&&(0,c.h)("div",{className:"eh_gifts"},s.map((function(e){return(0,c.h)("div",{key:e.src,className:"eh_img_wrp"},(0,c.h)("img",{className:"eh_img",src:e.src,alt:e.alt}))})))),(0,c.h)("div",{className:"pilg_list"},!l.list.length&&(0,c.h)("p",{className:"pl_caption"},l.emptyText),Boolean(l.list.length)&&(0,c.h)(Y,{className:"pl_wrp"},l.list.map((function(e){return(0,c.h)("div",{key:e.src,className:"psg_item"},(0,c.h)("img",{className:"psgi_img",src:e.src,alt:e.alt}))})))),(0,c.h)($.$,{className:"profile_info_lg_btn __success",color:"success",onClick:i,loading:r},l.caption))})),Qe=(0,u.memo)((function(){var e=(0,w.d4)(T.aR);return(0,Z.j)(e)?(0,c.h)($e,null):null})),et=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,o.C6)(t,e),t.MESSAGE="message",t.PIN_MODEL="pin_model",t.FOLLOW="follow",t.SUBSCRIBE_ONLINE_NOTIFICATION="subscribe_online_notification",t.LOVERS="lovers",t.titles=((Be={})[t.MESSAGE]=__("message"),Be[t.PIN_MODEL]=__("pin_model"),Be[t.FOLLOW]=__("follow"),Be[t.SUBSCRIBE_ONLINE_NOTIFICATION]=__("subscribe_online_notification"),Be[t.LOVERS]=__("lovers"),Be),t}(n(53767).A),tt=et,nt=function(e){switch(e){case tt.MESSAGE:return"send_message";case tt.PIN_MODEL:return"pin";case tt.FOLLOW:return"follow";case tt.SUBSCRIBE_ONLINE_NOTIFICATION:return"notify";case tt.LOVERS:default:return"lovers_add"}},it=(0,u.memo)((function(e){var t=e.hint;return(null==t?void 0:t.key)?(0,c.h)("div",{className:"pilg_hl_item"},(0,c.h)(L.A,{group:"pilg_hl_icon",icon:"#svg_ma_".concat(nt(t.key))}),(0,M.Oy)({phrase:t.caption})):null})),ot=(0,u.memo)((function(e){var t=e.data,n=e.opacity,i=e.className,o=e.onCloseClick;return(null==t?void 0:t.phrases)?(0,c.h)("div",{style:{opacity:n},className:(0,d.A)(["pilg_hint",i])},(0,c.h)("div",{className:"pilg_h_list"},t.phrases.map((function(e){return(0,c.h)(it,{hint:e,key:e.key})}))),t.closeButton&&(0,c.h)("span",{className:"pilg_h_close",onClick:o},(0,c.h)(L.A,{group:"pilg_hc_icon",icon:"#svg_mob_close"}))):null})),at=n(18325),lt=(0,u.memo)((function(e){var t=e.opacity,n=e.className,i=e.onAnyActionButtonClick,o={header:(0,w.d4)(T.kC),messageButton:(0,w.d4)(T.O4),isModelOnline:(0,w.d4)(T.vG)},a=o.header,l=o.isModelOnline,r=o.messageButton;if(!(0,Z.j)(a))return null;var s=a.actions,u=a.displayName;return s?(0,c.h)("div",{style:{opacity:t},className:(0,d.A)(["pilg_header_info",n])},l&&(0,c.h)(L.A,{group:"pilg_icon_live",icon:"#svg_mob_pw_live",url:x.b}),u&&(0,c.h)("div",{className:"hi_name bc_dir_ltr bc_text_ellipsis"},u),(0,c.h)("div",{className:"hi_action",onClick:i},(0,c.h)(q.zt,{messageButton:r}),(0,c.h)(q.Up,null),(0,c.h)(q.eK,null),(0,c.h)(q.Mx,null),(0,c.h)(q.I4,null))):l&&(0,c.h)(L.A,{group:"pilg_icon_live",icon:"#svg_mob_pw_live",url:x.b})})),rt=n(19332),st=n(42485),ct=n(23149),ut=(0,u.memo)((function(e){var t=function(e){var t=e.onSwipeProceed,n=(0,w.d4)(T.kq),i=(0,w.d4)(T.wl),a=(0,u.useState)(0),l=a[0],r=a[1],s=(0,u.useState)([]),c=s[0],d=s[1],p=(0,u.useRef)({lastOpacity:1}),h=(0,ct.r)({imageUrl:n.src}).isBroken,m=(0,u.useCallback)((function(e){r(e)}),[]);return(0,u.useEffect)((function(){i&&i.photos.length?d((function(e){return 0===e.length?(0,o.fX)([{id:-1,image:n}],i.photos,!0).map((function(e,t,n){var i=Math.abs(t-l)<=2||n.length-1-t<2;return{id:e.id.toString(),image:i?e.image:null,imageLazy:e.image,protectedAlbumAccessInfo:e.protectedAlbumAccessInfo}})):e.map((function(e,t){var n=Math.abs(t-l)<=2;return!e.image&&e.imageLazy&&n?(0,o.Cl)((0,o.Cl)({},e),{image:e.imageLazy}):e}))})):d([])}),[l,n,i]),{states:{profilePhoto:n,swipeGallery:i,carouselItemActiveIndexState:l,carouselItemListState:c,isBroken:h},actions:{handleOnCarouselItemChange:m,handleOnSwipeProceed:function(e,n,i){var o=c.find((function(e){return e.id===n})),a=p.current.lastOpacity;1===a&&(null==o?void 0:o.protectedAlbumAccessInfo)?a=1-Math.floor(2*e)/100:a<1&&!(null==o?void 0:o.protectedAlbumAccessInfo)&&(a=Math.floor(e/(i?1:2))/100),a=Math.min(Math.max(a,0),1),i&&(p.current.lastOpacity=a),t(a,i)}}}}(e),n=t.states,i=n.profilePhoto,a=n.swipeGallery,l=n.carouselItemActiveIndexState,r=n.carouselItemListState,s=n.isBroken,d=t.actions,p=d.handleOnCarouselItemChange,h=d.handleOnSwipeProceed,m=(0,u.useMemo)((function(){return r.map((function(e){var t=(0,c.h)(rt.Ht,{image:e.image,imageClassName:"crs_i_img"});return e.protectedAlbumAccessInfo&&(t=(0,c.h)(st.b,{className:"__pid_header",data:e.protectedAlbumAccessInfo,image:e.image})),{id:e.id.toString(),content:t}}))}),[r]);return a&&m.length?(0,c.h)(u.Fragment,null,(0,c.h)(rt.FN,{className:"pilg_gallery",items:m,isRTL:U.isRTLCulture,itemsNeighborCount:2,onItemIndexChange:p,onSwipeProceed:h}),(0,c.h)(rt.By,{className:"pilg_carousel_bar",length:r.length,activeIndex:l})):(0,c.h)("img",{className:(0,D.n)({pilg_photo:!0,__broken:s}),src:i.src,alt:i.alt})})),dt=(0,u.memo)((function(){var e=(0,w.d4)(T.kC)||{},t=e.gender,n=e.actions,i=function(e){var t=(0,ce.h)().sendApiRequest,n=e.actions,i=(0,w.wA)(),a=(0,u.useState)(1),l=a[0],r=a[1],s=(0,u.useState)(!0),c=s[0],d=s[1];return{states:{opacityState:l,isSwipeDoneState:c},actions:{handleOnSwipeProceed:function(e,t){r(e),d(t)},handleCloseHintClick:function(){var e,a;if(null===(a=null===(e=null==n?void 0:n.hint)||void 0===e?void 0:e.closeButton)||void 0===a?void 0:a.url){var l=(0,M.z6)(n.hint.closeButton.url),r=l.urlString,s=(0,o.Tt)(l,["urlString"]);t(r,(0,o.Cl)({},s))}i(N.actionProfileMobileProfileHeadRemoveActionsHint)()}}}}(e),a=i.states,l=a.opacityState,r=a.isSwipeDoneState,s=i.actions,p=s.handleOnSwipeProceed,h=s.handleCloseHintClick,m=(0,u.useMemo)((function(){var e=["pilg_photo_wrp"];switch(t){case at.A.MALE:e.push("__male");break;case at.A.TRANSSEXUAL:e.push("__trans")}return e}),[t]);return(0,Z.j)(e)?(0,c.h)("div",{className:(0,d.A)(m)},(0,c.h)("div",{className:"pilg_photo_container"},(0,c.h)(ut,{onSwipeProceed:p}),(0,c.h)(lt,{opacity:l,className:(0,d.A)([r&&"__pilg_transition",0===l&&"__pilg_disabled"]),onAnyActionButtonClick:h}),(null==n?void 0:n.hint)&&(0,c.h)(ot,{data:null==n?void 0:n.hint,opacity:l,className:(0,d.A)([r&&"__pilg_transition"]),onCloseClick:h}))):null})),pt=n(828),ht=(0,u.forwardRef)((function(e,t){return(0,c.h)("div",{className:"pswp",ref:t,role:"dialog","aria-hidden":"true"},(0,c.h)("div",{className:"pswp__bg"}),(0,c.h)("div",{className:"pswp__scroll-wrap"},(0,c.h)("div",{className:"pswp__container"},(0,c.h)("div",{className:"pswp__item"}),(0,c.h)("div",{className:"pswp__item"}),(0,c.h)("div",{className:"pswp__item"})),(0,c.h)("div",{className:"pswp__ui pswp__ui--hidden"},(0,c.h)("div",{className:"pswp__top-bar"},(0,c.h)("div",{className:"pswp__counter"}),(0,c.h)("div",{className:"pswp__button pswp__button--close",title:"Close (Esc)"}),(0,c.h)("div",{className:"pswp__button pswp__button--share",title:"Share"}),(0,c.h)("div",{className:"pswp__button pswp__button--fs",title:"Toggle fullscreen"}),(0,c.h)("div",{className:"pswp__button pswp__button--zoom",title:"Zoom in/out"}),(0,c.h)("div",{className:"pswp__preloader"},(0,c.h)("div",{className:"pswp__preloader__icn"},(0,c.h)("div",{className:"pswp__preloader__cut"},(0,c.h)("div",{className:"pswp__preloader__donut"}))))),(0,c.h)("div",{className:"pswp__share-modal pswp__share-modal--hidden pswp__single-tap"},(0,c.h)("div",{className:"pswp__share-tooltip"})),(0,c.h)("div",{className:"pswp__button pswp__button--left",title:"Previous (arrow left)"}),(0,c.h)("div",{className:"pswp__button pswp__button--right",title:"Next (arrow right)"}),(0,c.h)("div",{className:"pswp__caption"},(0,c.h)("div",{className:"pswp__caption__center"})))))})),mt=n(59992),ft=n(83223),_t=n(47885),vt=n(54022),bt=n(41966),gt=n(10456),Ct=(0,u.memo)((function(e){var t,i,l=e.album,r=function(e){var t=e.album,i=e.isAuthenticated,l=(0,w.d4)(T.zK),r=(0,w.d4)(T.wl),s=pe.A.dispatch,c=(0,Je.L)(),d=(0,gt.O)(l).actions.loadAndOpenPhotoGalleryByAlbumId,p=(0,u.useState)(!1),h=p[0],m=p[1],f=(0,u.useCallback)((function(){return Promise.all([(0,vt.AT)(null==t?void 0:t.albumPhotosPopupDataApiUrl),n.e(450).then(n.bind(n,96266))])}),[t]),_=(0,u.useCallback)((function(){return(0,o.sH)(void 0,void 0,void 0,(function(){return(0,o.YH)(this,(function(e){switch(e.label){case 0:return[4,(0,a.i)("extra/photo_gallery_mobile.css",document.head,null,(0,bt.j)())];case 1:return e.sent(),U.isRTLCulture?[4,(0,a.i)("extra/photo_gallery_mobile_rtl.css",document.head,null,(0,bt.j)())]:[3,3];case 2:e.sent(),e.label=3;case 3:return[4,d(t.albumId)];case 4:return e.sent(),[2]}}))}))}),[d,t]),v=(0,ue.s7)({loader:f,popupId:"protected_album_popup",popupProps:{onAcceptPasswordSuccess:function(e){return(0,o.sH)(void 0,void 0,void 0,(function(){var n,i,a;return(0,o.YH)(this,(function(o){switch(o.label){case 0:return e.albumPhotosPopupDataApiUrl?((0,k.Jw)(),n={albumId:t.albumId,isAccessGranted:!0,albumPhotosPopupDataApiUrl:e.albumPhotosPopupDataApiUrl,thumbImage:{src:e.albumPhotoUrl}},s(N.actionProfileMobileUpdatePhotosAlbum)(n),(null==r?void 0:r.dataApiUrl)?(i=(0,M.z6)(r.dataApiUrl),[4,(0,vt.AT)(i.urlString,i)]):[3,2]):[2];case 1:"success"===(a=o.sent()).status&&s(N.actionProfileMobileUpdateProfileHeadSwipeGallery)(a.data.swipeGallery),o.label=2;case 2:return[4,_()];case 3:return o.sent(),[2]}}))}))}},popupOptions:{animationClass:"__show_anim",closeByClick:!0}}).openLoadPopupMobile,b=(0,u.useCallback)((function(){return(0,o.sH)(void 0,void 0,void 0,(function(){var e,n;return(0,o.YH)(this,(function(o){switch(o.label){case 0:return e=t.isProtected,n=t.isAccessGranted,!e||i?[3,1]:(c(),[3,4]);case 1:return!e||n?[3,2]:(v(),[3,4]);case 2:return[4,_()];case 3:o.sent(),o.label=4;case 4:return[2]}}))}))}),[t,_,v,i,c]);return{actions:{handleOnAlbumClick:b,onErrorImage:function(){m(!0)}},state:{isErrorImg:h}}}(e),s=r.actions,d=s.handleOnAlbumClick,p=s.onErrorImage,h=r.state.isErrorImg;return l?(0,c.h)("div",{className:"bc_media_thumb __picture"},(0,c.h)("div",{key:l.albumId,className:"bc_flex mt_body",onClick:d},(0,c.h)("img",{className:(0,D.n)({mt_img:!0,__blurred:l.isProtected&&!l.isAccessGranted,__broken:h}),alt:null===(t=null==l?void 0:l.thumbImage)||void 0===t?void 0:t.alt,src:null===(i=null==l?void 0:l.thumbImage)||void 0===i?void 0:i.src,onError:p}),l.isProtected&&!l.isAccessGranted&&(0,c.h)(L.A,{group:"mt_status_icon",icon:"#svg_pfm_lock",url:_t.DE}),(0,c.h)(mt.j,{count:null==l?void 0:l.photosCount,type:ft.w.PHOTO})),(0,c.h)("div",{className:"mt_footer bc_flex bc_flex_items_end"},(0,c.h)("span",{className:"mt_caption"},null==l?void 0:l.title),(0,c.h)(mt.j,{count:null==l?void 0:l.viewsCount,type:ft.w.VIEWS}))):null})),Tt=function(){var e=function(){var e=((0,w.d4)(T.yR)||[]).find((function(e){return"photos"===e.key})),t=(0,w.d4)(T.ky),n=(0,w.d4)(T.BS),i=(0,w.d4)(T.je),o=W().actions.goToProfileTop,a=(0,w.wA)(),l=(0,u.useRef)(null),c=(0,u.useRef)(!1),d=(0,u.useCallback)((function(e){e.preventDefault(),a(N.actionProfileMobileUpdateTabChangeState)(!0),c.current=!0}),[a]);return(0,u.useEffect)((function(){return function(){c.current&&(c.current=!1,a(N.actionProfileMobileUpdateTabListActiveState)(e),n&&s.default.instance.updateChatSwipeState(r.t.PROFILE_PHOTOS,f.b.PHOTOS),o.current({scrollOptions:{behavior:"auto"}}))}}),[i,n,e,a,o]),{refs:{photoSwipeRef:l},states:{photos:t,tab:e},actions:{},openPhotosTab:d}}(),t=e.openPhotosTab,n=e.refs.photoSwipeRef,i=e.states,o=i.photos,a=i.tab;if(!(0,Z.j)(o))return null;var l=o.albums,d=o.label,p=o.showMoreLink;return(0,c.h)("div",{className:"pilg_section __media __photo"},(0,c.h)("div",{className:"pilg_title"},d),(0,c.h)(Y,{className:"bc_media_thumb_wrp"},l.map((function(e){return(0,c.h)(Ct,{key:e.albumId,album:e,isAuthenticated:o.isAuthenticated})}))),p&&(0,c.h)("a",{rel:"external",className:"pilg_toggle_btn",href:(0,M.FC)(a.link.url),onClick:t,"data-role":"none"},(0,M.b8)(p.text),(0,c.h)(L.A,{group:"tb_icon",icon:"#svg_mob_pw_btn_arrow",url:x.b})),(0,c.h)(pt.A,{root:"body"},(0,c.h)(ht,{ref:n})))},Nt=n(44271),wt=function(e){var t=e.daysSchedule,n=e.isOnline,i=(0,Nt.H)(t,n),o=i.isBackgroundHighlight,a=i.isTextHighlight;return(0,c.h)("div",{className:"pilg_shelf"},(0,c.h)("div",{className:(0,D.n)({pilgs_text:!0,__highlight:a})},t.caption),(0,c.h)("div",{className:"pilgs_badge_list"},t.intervals.map((function(e){return(0,c.h)("span",{key:e,className:(0,D.n)({pilgs_badge:!0,__broadcast:t.isNoBroadcast,__highlight:o})},e)}))))},yt=function(){var e=(0,w.d4)(T.pn);return(0,c.h)("div",{className:"pilg_section __schedule"},(0,c.h)("h2",{className:"pilg_title"},e.caption),e.daysSchedules.map((function(t){return(0,c.h)(wt,{key:t.caption,isOnline:e.isOnline,daysSchedule:t})})))},St=function(){var e=(0,w.d4)(T.pn);return(0,Z.j)(e)?(0,c.h)(yt,null):null},kt=n(56968),Ot=n(15563),At=n(36040),Pt=function(e){var t=e.item,i=t.id,a=t.socialProfileLink,l=function(e){var t=e.item,i=t.getSocialProfilePopupDataApiUrl,a=(0,u.useState)(null),l=a[0],r=a[1],s=(0,u.useCallback)((function(){return(0,o.sH)(void 0,void 0,void 0,(function(){var e;return(0,o.YH)(this,(function(t){switch(t.label){case 0:return[4,(0,vt.AT)(i)];case 1:return"success"===(e=t.sent()).status&&r(e),[2,e]}}))}))}),[i]),c=(0,u.useCallback)((function(){return Promise.all([l||s(),Promise.resolve().then(n.bind(n,67861))])}),[s,l]);return{states:{},actions:{openPurchase:(0,ue.s7)({loader:c,popupProps:t,popupId:"buy_social_popup",popupOptions:{animationClass:"__show_anim"}}).openLoadPopupMobile}}}({item:t}).actions.openPurchase,r=(0,Je.L)(),s=(0,Ot.j)();return{states:{item:t},actions:{handleClick:(0,At.v)({item:t,onNotIsAuthenticated:r,onIsNeedBuyToken:s,onOpenPurchase:l}).handleOpenPopup,handleLinkClick:function(e){return(0,o.sH)(void 0,void 0,void 0,(function(){var t,n,l,r,s,c;return(0,o.YH)(this,(function(o){switch(o.label){case 0:return e.preventDefault(),t=(0,M.FC)(a.url),window.open(t,"forwardToRemote")?[3,2]:[4,(0,vt.AT)((0,Fe.ip)("@api_get_purchased_social_profile_link_data?id=".concat(i)))];case 1:n=o.sent(),l=(0,M.FC)(null===(c=null===(s=null===(r=null==n?void 0:n.data)||void 0===r?void 0:r.content)||void 0===s?void 0:s.socialProfileLink)||void 0===c?void 0:c.url),window.open(l,"forwardToRemote"),o.label=2;case 2:return[2]}}))}))}}}},Et=function(e){var t=Pt(e),n=t.actions,i=n.handleClick,o=n.handleLinkClick,a=t.states.item;return(0,c.h)(kt.b,{data:a,onClickBuySocial:i,onClickLink:o})},Mt=(n(67861),n(12341)),It=n(79007),Lt=function(){var e=function(){var e=(0,w.d4)(T.AU);return(0,It.A)({onEvent:function(e){pe.A.action(N.actionProfileMobileUpdateSocialProfileIsBuyTokenRequired)(e.data.balance)}}),(0,u.useEffect)((function(){Mt.U.instance.setHandler(Mt.B.PROFILE,(function(e){var t=e.id,n=e.forwardLink;pe.A.action(N.actionProfileMobileSetPaidSocialProfileLink)(t,n)}))}),[]),{states:{socialProfiles:e}}}().states.socialProfiles;if(!(0,Z.j)(e))return null;var t=e.groups,n=e.header,i=void 0===n?"":n;return(0,c.h)("div",{className:"pilg_soc_wrp"},(0,c.h)("div",{className:"pilg_title __clear"},i),(0,c.h)("div",{className:"pilg_soc_list bc_social_prf_item_wrp bc_flex bc_flex_wrap bc_flex_item_center"},t.map((function(e,t){return(0,c.h)(u.Fragment,{key:t},e.items.map((function(e){return(0,c.h)(Et,{key:e.id,item:e})})))}))))},xt=n(83966),Bt=n(92340),Rt=function(e){var t=e.tag,n=e.handleTagClick;return(0,c.h)("a",{key:t.link.title,className:"stl_item","data-role":"none",title:t.link.title,rel:t.link.rel,href:(0,M.FC)(t.link.url),onClick:n(t.popupApiUrl)},t.link.text)},Dt=function(){var e,t=function(){var e,t=null===(e=(0,w.d4)(T.Z$))||void 0===e?void 0:e.tags,i=(0,u.useState)((null==t?void 0:t.isTagPopupAvailable)||!1),o=i[0],a=i[1],l=(0,u.useRef)(""),r=(0,u.useCallback)((function(){Bt.A.registerEvent(xt.A.MINI_PROFILE_TAG_POPUP),a(!1)}),[]),s=(0,ue.s7)({loader:function(){return Promise.all([(0,vt.AT)(l.current),n.e(451).then(n.bind(n,39524))])},popupId:"profile_tag_popup",popupOptions:{animationClass:"__show_anim"},popupProps:{username:null==t?void 0:t.username,handleDontShowAgain:r}}).openLoadPopupMobile;return{tagsData:t,handleTagClick:function(e){return function(t){o&&(t.preventDefault(),l.current=e,s())}}}}(),i=t.tagsData,o=t.handleTagClick;return(0,Z.j)(i)?(0,c.h)("div",{className:"pilg_section __tags"},(0,c.h)("h2",{className:"pilg_title"},i.header),(0,c.h)(Y,{className:"st_list",isWithFade:!0},(0,c.h)("div",{className:"stl_line"},(e=i.tags,e.filter((function(e,t){return(t+1)%2!=0}))).map((function(e,t){return(0,c.h)(Rt,{key:t,tag:e,handleTagClick:o})}))),(0,c.h)("div",{className:"stl_line"},function(e){return e.filter((function(e,t){return(t+1)%2==0}))}(i.tags).map((function(e,t){return(0,c.h)(Rt,{key:t,tag:e,handleTagClick:o})}))))):null},Ut=n(94612),Ft=n(2268),Ht=n(88775),Vt=n(62916),Yt=n(90286),jt=function(e){var t=e.tipButtonData,i=(0,u.useState)(!1),a=i[0],l=i[1],d=(0,w.d4)(T.BS),p=function(e){var t,i;e.price?(0,k.JX)("not_enough_tokens",(function(){return(0,c.h)(Ht.A,null)}),{animationClass:"__show_anim"}):e.global.length&&(i=null===(t=null==e?void 0:e.global)||void 0===t?void 0:t[0],(0,o.sH)(void 0,void 0,void 0,(function(){var e;return(0,o.YH)(this,(function(t){switch(t.label){case 0:return[4,Promise.resolve().then(n.bind(n,68719))];case 1:return e=t.sent().default,(0,k.JX)("profile_confirm_error",(function(){return(0,c.h)(e,{error:i,onClose:k.Jw})}),{animationClass:"__show_anim"}),[2]}}))})))};return{isLoading:a,handleSendTip:function(){t&&"string"!=typeof t.url&&(Vt.e.instance.reportTipMenuAction(null),l(!0),(0,vt.gQ)(t.url.url,{body:JSON.stringify(t.url.body),method:"POST"}).then((function(e){var n,i;if(l(!1),e.errors)p(e.errors);else if((0,k.Jw)(),d){if("string"!=typeof t.url){var o=null===(i=null===(n=t.url)||void 0===n?void 0:n.body)||void 0===i?void 0:i.tipMenuOrderTypeHash;Yt.S.instance.setValue(o)}s.default.instance.updateChatSwipeState(r.t.CHAT),s.default.instance.applySwipe(!1,!0)}else location.href=e.data.redirectUrl})))}}},Gt=function(e){var t=e.label,n=e.price,i=e.tipButtonData,o=jt({tipButtonData:i}),a=o.isLoading,l=o.handleSendTip;return(0,c.h)("div",{className:"bc_confirm_popup __d_header __d_header_fluid __profile __tip"},(0,c.h)("div",{className:"bc_cp_header"},(0,c.h)("span",{className:"cpp_title"},t),(0,c.h)("span",{className:"bc_cp_close",onClick:k.Jw},(0,c.h)(L.A,{group:"bc_cp_close_icon",icon:"#svg_mob_popup_close"}))),(0,c.h)("div",{className:"bc_cp_body"},(0,c.h)(Ut.A,{className:"pt_radio",checked:!0,labelMode:"background",name:"radio",title:"".concat(n," ").concat(Ft.kX.pluralise("tokens",n)),value:String(n)}),(0,c.h)($.$,{color:"success",disabled:a,maxWidth:"fluid",onClick:l},__("Send Tip"))))},zt=function(){var e,t,n=function(){var e,t,n=(0,w.d4)(T.f8),i=(0,w.d4)(He.UQ),o=(0,u.useMemo)((function(){return!(null==n?void 0:n.isBanned)&&(null==n?void 0:n.isOnline)}),[null==n?void 0:n.isBanned,null==n?void 0:n.isOnline]),a=(0,u.useState)(!1),l=a[0],r=a[1],s=(null!==(t=null===(e=null==n?void 0:n.items)||void 0===e?void 0:e.length)&&void 0!==t?t:0)>7,d=(0,Je.L)(),p=(0,u.useMemo)((function(){var e;return(0,Z.j)(n)?l?n.items:null===(e=n.items)||void 0===e?void 0:e.filter((function(e,t){return t<7})):[]}),[l,n]);return{createShowTipPopupHandler:function(e){return function(){i?o&&(0,k.JX)("profile_tip_menu",(function(){return(0,c.h)(Gt,{label:e.label,price:e.price,tipButtonData:e.sendTipButton})}),{animationClass:"__show_anim"}):d()}},tipItems:p,tipMenuData:n,isExpandItemsButtonVisible:s,isShowAllItems:l,isTipMenuActive:o,handleShowAllClick:function(){return r((function(e){return!e}))}}}(),i=n.createShowTipPopupHandler,o=n.tipItems,a=n.tipMenuData,l=n.isExpandItemsButtonVisible,r=n.isShowAllItems,s=n.isTipMenuActive,p=n.handleShowAllClick;return(0,Z.j)(a)?(0,c.h)("div",{className:"pilg_section __tip"},(0,c.h)("h2",{className:"pilg_title"},a.caption),null==o?void 0:o.map((function(e){var t;return(0,c.h)("div",{key:e.hash,className:"pilg_shelf",onClick:i(e)},(0,c.h)("div",{className:"pilgs_text"},e.label),(0,c.h)("div",{className:(0,d.A)(["pilgs_badge",!s&&"__no_bg"])},null===(t=e.sendTipButton)||void 0===t?void 0:t.text))})),l&&(0,c.h)("button",{className:"pilg_toggle_btn",onClick:p},(0,c.h)("span",{className:"ptb_text"},!r&&(null===(e=a.showMoreToggle)||void 0===e?void 0:e.showText),r&&(null===(t=a.showMoreToggle)||void 0===t?void 0:t.hideText)),(0,c.h)(L.A,{group:"tb_icon",icon:"#svg_mob_pw_btn_arrow",url:x.b}))):null},Wt=function(){var e=function(){var e=(0,w.d4)(T.Zz),t=e.showMoreToggle,n=e.turnsOff,i=e.isAvailable;return Le({data:n,showMoreToggle:t,isAvailable:i})}(),t=e.actions.handleClick,n=e.refs,i=n.innerTextContainerRef,o=n.textContainerRef,a=e.states,l=a.buttonText,r=a.data,s=a.isAvailable,u=a.isShowMore,d=a.isShowFullText;return s&&r?(0,c.h)(Oe,null,(0,c.h)(Ie,null,null==r?void 0:r.caption),(0,c.h)(Se,{ref:o},(0,c.h)(we,{ref:i},null==r?void 0:r.text)),(0,c.h)(Ee,{isShowFullText:d},null==r?void 0:r.text),u&&(0,c.h)(Te,null,(0,c.h)(ge,{onClick:t},l))):null},Xt=function(){var e=function(){var e=(0,w.d4)(T.Zz),t=e.showMoreToggle,n=e.turnsOn,i=e.isAvailable;return Le({data:n,showMoreToggle:t,isAvailable:i})}(),t=e.actions.handleClick,n=e.refs,i=n.innerTextContainerRef,o=n.textContainerRef,a=e.states,l=a.buttonText,r=a.data,s=a.isAvailable,u=a.isShowMore,d=a.isShowFullText;return s&&r?(0,c.h)(Oe,null,(0,c.h)(Ie,null,null==r?void 0:r.caption),(0,c.h)(Se,{ref:o},(0,c.h)(we,{ref:i},null==r?void 0:r.text)),(0,c.h)(Ee,{isShowFullText:d},null==r?void 0:r.text),u&&(0,c.h)(Te,null,(0,c.h)(ge,{onClick:t},l))):null},Zt=n(26259),Kt=n(43526),qt=n(20987),Jt=n(842),$t=n(42702),Qt=function(e){var t=e.id,i=e.afterPlayVideoApiUrl,l=e.duration,r=e.playVideoPopupDataApiUrl,s=e.price,c=e.purchasedPriceLabel,d=e.purchasePriceLabel,p=e.purchaseVideoPopupDataApiUrl,h=e.thumbImage,m=e.title,f=e.viewsCount,_=e.isAccessGranted,v=e.isOwner,b=void 0!==v&&v,g=e.isPurchaseOrPlayAvailable,C=e.isPurchaseRequired,T=(0,w.d4)((function(e){return e.isEmbed}))&&b,y=(0,u.useMemo)((function(){return C&&s?c:d}),[C,s,d,c]),S=(0,Je.L)(),k=(0,$t.A)().openRecordedVideoPopup,O=(0,ct.r)({imageUrl:h.src}).isBroken,A=function(e){var t=e.dataUrl,i=e.popupProps,l=(0,u.useCallback)((function(){return(0,o.sH)(void 0,void 0,void 0,(function(){var e,i,l;return(0,o.YH)(this,(function(o){switch(o.label){case 0:return[4,(0,vt.AT)(t)];case 1:return e=o.sent(),(null===(l=null===(i=null==e?void 0:e.data)||void 0===i?void 0:i.video)||void 0===l?void 0:l.posterUrl)?[4,(0,qt.A)(e.data.video.posterUrl)]:[3,3];case 2:o.sent(),o.label=3;case 3:return[2,Promise.all([e,n.e(405).then(n.bind(n,19322)),(0,a.i)(Jt.Y.VIDEO_PLAYER,document.head,{"data-exclude":!0},(0,bt.j)())])]}}))}))}),[t]);return{actions:{openPopup:(0,ue.s7)({loader:l,popupId:"video_popup",popupProps:i,popupOptions:{animationClass:"__show_anim"}}).openLoadPopupMobile}}}({dataUrl:r,popupProps:{onAfterPlay:(0,Kt.ht)({afterPlayVideoApiUrl:i,viewsCount:f,isEmbedPageOwner:T}).onAfterPlay}}).actions.openPopup,P=function(e){var t=e.dataUrl,i=e.popupProps,a=(0,u.useCallback)((function(){return(0,o.sH)(void 0,void 0,void 0,(function(){var e,i,a;return(0,o.YH)(this,(function(o){switch(o.label){case 0:return[4,(0,vt.AT)(t)];case 1:return e=o.sent(),(null===(a=null===(i=null==e?void 0:e.data)||void 0===i?void 0:i.videoPreview)||void 0===a?void 0:a.posterUrl)?[4,(0,qt.A)(e.data.videoPreview.posterUrl)]:[3,3];case 2:o.sent(),o.label=3;case 3:return[2,Promise.all([e,n.e(422).then(n.bind(n,27111))])]}}))}))}),[t]);return{actions:{openPopup:(0,ue.s7)({loader:a,popupId:"protected_video_popup",popupProps:i,popupOptions:{animationClass:"__show_anim",allowedTouchMoveClassNames:["page_swipe_fix"],closeByClick:!0}}).openLoadPopupMobile}}}({dataUrl:p,popupProps:{onPurchaseSuccess:(0,u.useCallback)((function(e){pe.A.action(N.actionProfileMobileUpdateVideo)((0,o.Cl)({id:t},e.newParams)),k(e.purchasePopup)}),[t,k])}}).actions.openPopup,E=(0,Kt.hh)({openPopup:A,openProtectedPopup:P,isPurchased:C,isPurchaseOrPlayAvailable:g,onNotIsAuthenticated:S}).actions.handleClick,M=(0,u.useCallback)((function(e){e.preventDefault(),A()}),[A]);return{actions:{handleClick:(0,u.useCallback)((function(e){return T?M(e):E(e)}),[E,M,T])},states:{duration:Zt.o.getTime(l),price:s,priceLabel:y,thumbImage:h,title:m,viewsCount:f,isAccessGranted:_||0===s,isBroken:O,isPurchased:C}}},en=(0,u.memo)((function(e){var t=Qt(e),n=t.actions.handleClick,i=t.states,o=i.duration,a=i.priceLabel,l=i.thumbImage,r=i.title,s=i.viewsCount,u=i.isAccessGranted,d=i.isBroken,p=i.isPurchased;return(0,c.h)("div",{className:"bc_media_thumb __video",onClick:n},(0,c.h)("div",{className:"mt_body bc_flex bc_flex_justify_center"},(0,c.h)("img",{className:(0,D.n)({mt_img:!0,__blurred:!p,__broken:d}),alt:null==l?void 0:l.alt,src:l.src}),!u&&(0,c.h)("div",{className:(0,D.n)({"mt_badge bc_inline_flex bc_flex_full_center":!0,__light:!p})},a),!p&&(0,c.h)(L.A,{group:"mt_status_icon",icon:"#svg_pfm_lock",url:_t.DE}),(0,c.h)(mt.j,{count:o,type:ft.w.TIME})),(0,c.h)("div",{className:"mt_footer bc_flex bc_flex_items_end"},(0,c.h)("span",{className:"mt_caption"},r),(0,c.h)(mt.j,{count:s,type:ft.w.VIEWS})))})),tn=function(){var e=function(){var e=((0,w.d4)(T.yR)||[]).find((function(e){return"videos"===e.key})),t=(0,w.d4)(T.FV),n=(0,w.d4)(T.BS),i=(0,w.d4)(T.je),o=(0,w.wA)(),a=W().actions.goToProfileTop,l=(0,u.useRef)(!1),c=(0,u.useCallback)((function(e){e.preventDefault(),o(N.actionProfileMobileUpdateTabChangeState)(!0),l.current=!0}),[o]);return(0,u.useEffect)((function(){return function(){l.current&&(l.current=!1,o(N.actionProfileMobileUpdateTabListActiveState)(e),n&&s.default.instance.updateChatSwipeState(r.t.PROFILE_PHOTOS,f.b.VIDEOS),a.current({scrollOptions:{behavior:"auto"}}))}}),[i,n,e,o,a]),{states:{infoVideos:t},actions:{openVideosTab:c}}}(),t=e.states.infoVideos,n=e.actions.openVideosTab,i=t||{},a=i.videos,l=i.label,d=i.showMoreLink;return(0,Z.j)(t)&&a&&a.length?(0,c.h)("div",{className:"pilg_section __media __video"},(0,c.h)("div",{className:"pilg_title"},l),(0,c.h)(Y,{className:"bc_media_thumb_wrp"},a.map((function(e){return(0,c.h)(en,(0,o.Cl)({key:e.id},e))}))),d&&(0,c.h)("a",{rel:"external",className:"pilg_toggle_btn",href:(0,M.FC)(d.url),onClick:n,"data-role":"none"},(0,M.b8)(d.text),(0,c.h)(L.A,{group:"tb_icon",icon:"#svg_mob_pw_btn_arrow",url:x.b}))):null},nn=(0,u.memo)((function(e){var t=e.data,i=function(e){var t=e.data,i=(0,ce.h)().sendApiRequest,a=(0,u.useState)(null),l=a[0],r=a[1],s=(0,u.useState)(!1),c=s[0],d=s[1],p=(0,u.useCallback)((function(){return(0,o.sH)(void 0,void 0,void 0,(function(){var e,n;return(0,o.YH)(this,(function(a){switch(a.label){case 0:return d(!0),e=(0,M.z6)(t.openWishPopupButton.url),[4,i(e.urlString,(0,o.Cl)({},e))];case 1:return"success"===(n=a.sent()).status&&r(n),d(!1),[2,n]}}))}))}),[t,i]),h=(0,u.useCallback)((function(){return(0,o.sH)(void 0,void 0,void 0,(function(){var e,t,i;return(0,o.YH)(this,(function(o){switch(o.label){case 0:return t=(e=Promise).all,(i=l)?[3,2]:[4,p()];case 1:i=o.sent(),o.label=2;case 2:return[2,t.apply(e,[[i,n.e(562).then(n.bind(n,82735))]])]}}))}))}),[p,l]),m=(0,ue.s7)({loader:h,popupId:"wish_popup",popupOptions:{animationClass:"__show_anim"}}).openLoadPopupMobile;return{states:{isWishPopupLoadingState:c},actions:{handleClickOnReadMoreButton:function(){m()}}}}(e),a=i.actions.handleClickOnReadMoreButton,l=i.states.isWishPopupLoadingState;return(0,c.h)("div",{className:"pw_item"},!!t.image&&(0,c.h)("img",{className:"pwi_img",src:t.image.src,alt:t.image.alt}),(0,c.h)("div",{className:"pwi_body"},(0,c.h)("p",{className:"pwi_title"},t.title),(0,c.h)("p",{className:"pwi_desc"},t.description),!!t.openWishPopupButton&&(0,c.h)($.$,{className:"pilg_toggle_btn",loading:l,onClick:a},(0,c.h)("span",{className:"ptb_text"},t.openWishPopupButton.text))))})),on=(0,u.memo)((function(){var e=(0,w.d4)(T.mm);return(0,c.h)("div",{className:"pilg_section __wish"},(0,c.h)("h2",{className:"pilg_title"},(0,M.Oy)({phrase:e.header,isLastVersion:!0})),(0,c.h)("p",{className:"psw_caption"},(0,M.Oy)({attributes:{"":"","":''},phrase:e.subCaption,isLastVersion:!0})),(0,c.h)(Y,{className:"pw_list"},e.list.map((function(e){return(0,c.h)(nn,{key:e.number,data:e})}))))})),an=(0,u.memo)((function(){return(0,w.d4)(T.mm)?(0,c.h)(on,null):null}));function ln(e){var t;if(!chat.currentChathost)return e;var n="public"===(null===chat||void 0===chat?void 0:chat.performerStatus);if(e.hasOwnProperty("profileHead")){var i=e;return(0,o.Cl)((0,o.Cl)((0,o.Cl)((0,o.Cl)((0,o.Cl)({},i),i.profileDetails&&{profileDetails:(0,o.Cl)((0,o.Cl)({},i.profileDetails),{fanBoost:(0,o.Cl)((0,o.Cl)({},null===(t=i.profileDetails)||void 0===t?void 0:t.fanBoost),{isModelReadyForBoost:n})})}),i.profileHead&&{profileHead:(0,o.Cl)((0,o.Cl)({},i.profileHead),{isOnline:n})}),i.tipMenu&&{tipMenu:(0,o.Cl)((0,o.Cl)({},i.tipMenu),{isOnline:n})}),i.workSchedule&&{workSchedule:(0,o.Cl)((0,o.Cl)({},i.workSchedule),{isOnline:n})})}return(0,o.Cl)((0,o.Cl)({},e),{context:(0,o.Cl)((0,o.Cl)({},e.context),{isOnline:n})})}var rn=n(63065),sn=(0,u.lazy)((function(){return n.e(343).then(n.bind(n,7327)).then((function(e){return e.PhotoGalleryCarousel}))})),cn=(0,u.memo)((function(){var e,t=function(){var e=(0,w.d4)(T.zK),t=(0,w.d4)(T.Mh),n=(0,w.d4)(T.Z$),i=(0,w.d4)(T.yR),a=(0,w.d4)(T.BS),l=(0,w.d4)((function(e){return e.chatHost})),c=(0,w.d4)(T.je),d=(0,u.useState)(!1),p=d[0],h=d[1],m=pe.A.dispatch,_=(0,ce.h)().sendApiRequest,g=(0,u.useCallback)((function(e){return(0,o.sH)(void 0,void 0,void 0,(function(){var t;return(0,o.YH)(this,(function(n){switch(n.label){case 0:return h(!0),[4,_(e,{method:"GET"})];case 1:return"success"===(null==(t=n.sent())?void 0:t.status)&&t.data&&m(N.actionProfileMobileUpdateInfo)(ln(t.data)),h(!1),[2]}}))}))}),[_,m]);return(0,u.useEffect)((function(){if(!n&&i){var e=i.find((function(e){return e.key===f.b.INFO}));e&&(e.link?g((0,M.FC)(e.link.url)):l&&g("".concat((0,Fe.ip)("@common_profile?username=".concat((0,rn.o)(l.username))),"?chat=1")))}}),[g,n,i,l]),(0,u.useEffect)((function(){!function(){var e=(null===localStorage||void 0===localStorage?void 0:localStorage.getItem(v.jY))||b.h.NONE;if(e===b.h.ACTIVE||e===b.h.READY_TO_DELETE){var t=localStorage.getItem(v.An);if(localStorage.removeItem(v.jY),localStorage.removeItem(v.An),!t)return;if(a){if(s.default.swipeState!==r.t.PROFILE)return;s.default.instance.toggleChatBarButtonsDisableStatus(!1),z("chat-top")({scrollOptions:{behavior:"instant",top:Number(t)},scrollType:"to"})}else document.documentElement.scrollTo({top:Number(t)})}}()}),[a]),{state:{info:n,profileDisplayName:t,profileUsername:e,isChatProfile:a,isLoadingState:p,isTabChangeState:c}}}().state,n=t.info,i=t.profileDisplayName,a=t.profileUsername,l=t.isChatProfile,d=t.isLoadingState,p=t.isTabChangeState;return!n&&d||p?(0,c.h)(m,null):n?(0,c.h)(c.FK,null,(0,c.h)("div",{className:"pilg_header"},(0,c.h)(dt,null),(0,c.h)(We,null),l&&(0,c.h)(xe,null),l&&(0,c.h)(Xt,null),l&&(0,c.h)(Wt,null)),(0,c.h)("div",{className:"pilg_section __header"},!l&&(0,c.h)(xe,null),!l&&(0,c.h)(Xt,null),!l&&(0,c.h)(Wt,null),(0,c.h)(J,null),(0,c.h)(Lt,null)),(0,c.h)(Tt,null),(0,c.h)(tn,null),(0,c.h)(K,null),(0,c.h)(Dt,null),(0,c.h)(zt,null),(0,c.h)(St,null),(0,c.h)(Qe,null),(0,c.h)(an,null),(0,c.h)(ve,null),(0,c.h)(qe,null),(0,c.h)(me,null),(0,c.h)(ae,null),(0,c.h)(X,null),!!a&&(0,c.h)(u.Suspense,{fallback:null},(0,c.h)(sn,{galleryDisplayName:i||"",galleryUsername:a,initialGalleryAlbumList:(null===(e=n.albums)||void 0===e?void 0:e.albums)||[]}))):null})),un=(0,u.lazy)((function(){return n.e(343).then(n.bind(n,7327)).then((function(e){return e.PhotoGalleryCarousel}))})),dn=(0,u.memo)((function(){var e,t=function(){var e=(0,w.d4)(T.C$),t=(0,w.d4)(T.yR),n=(0,w.d4)(T.zK),i=(0,w.d4)(T.Mh),a=(0,w.d4)((function(e){var t;return null===(t=e.chatHost)||void 0===t?void 0:t.username})),l=(0,w.d4)(T.je),r=pe.A.dispatch,s=(0,u.useState)(!1),c=s[0],d=s[1],p=(0,ce.h)().sendApiRequest,h=(0,u.useCallback)((function(e){return(0,o.sH)(void 0,void 0,void 0,(function(){var t;return(0,o.YH)(this,(function(n){switch(n.label){case 0:return d(!0),[4,p(e,{method:"GET"})];case 1:return"success"===(null==(t=n.sent())?void 0:t.status)&&t.data&&r(N.actionProfileMobileUpdatePhotos)(ln(t.data)),d(!1),[2]}}))}))}),[p,r]);return(0,u.useEffect)((function(){var n;if(!e&&t){var i=t.find((function(e){return e.key===f.b.PHOTOS}));i.link?h((0,M.FC)(null===(n=i.link)||void 0===n?void 0:n.url)):a&&h("".concat((0,Fe.ip)("@albums_list?username=".concat((0,rn.o)(a))),"?chat=1"))}}),[h,e,t,a]),{states:{photos:e,profileDisplayName:i,profileUsername:n,isLoadingState:c,isTabChangeState:l}}}().states,n=t.photos,i=t.profileDisplayName,a=t.profileUsername,l=t.isLoadingState,r=t.isTabChangeState;return!n&&l||r?(0,c.h)(m,null):(0,Z.j)(n)?(null===(e=n.albums)||void 0===e?void 0:e.length)?(0,c.h)(u.Fragment,null,(0,c.h)("div",{className:"bc_media_thumb_wrp __grid"},n.albums.map((function(e){return(0,c.h)(Ct,{key:e.albumId,album:e,isAuthenticated:!!n.isAuthenticated})}))),!!a&&(0,c.h)(u.Suspense,{fallback:null},(0,c.h)(un,{galleryDisplayName:i||"",galleryUsername:a,initialGalleryAlbumList:(null==n?void 0:n.albums)||[]}))):(0,c.h)("div",{className:"forget_info center-wrapper"},__("There are no photos")):null})),pn=(0,u.memo)((function(){var e=function(){var e=(0,w.d4)(T.yR),t=(0,w.d4)(T.jw),n=(0,w.d4)(T.je),i=(0,w.d4)((function(e){var t;return null===(t=e.chatHost)||void 0===t?void 0:t.username})),a=(0,u.useState)(!1),l=a[0],r=a[1],s=pe.A.dispatch,c=(0,ce.h)().sendApiRequest,d=(0,u.useCallback)((function(e){return(0,o.sH)(void 0,void 0,void 0,(function(){var t;return(0,o.YH)(this,(function(n){switch(n.label){case 0:return r(!0),[4,c(e,{method:"GET"})];case 1:return"success"===(null==(t=n.sent())?void 0:t.status)&&t.data&&s(N.actionProfileMobileUpdateVideos)(ln(t.data)),r(!1),[2]}}))}))}),[c,s]);return(0,u.useEffect)((function(){var n;if(!t&&e){var o=e.find((function(e){return e.key===f.b.VIDEOS}));o.link?d((0,M.FC)(null===(n=o.link)||void 0===n?void 0:n.url)):i&&d("".concat((0,Fe.ip)("@video_list?username=".concat((0,rn.o)(i))),"?chat=1"))}}),[d,t,e,i]),{states:{videos:t,isLoadingState:l,isTabChangeState:n}}}().states,t=e.videos,n=e.isLoadingState,i=e.isTabChangeState;return!t&&n||i?(0,c.h)(m,null):(0,Z.j)(t)?t.list&&!t.list.length?(0,c.h)("div",{className:"forget_info center-wrapper"},__("There are no videos yet")):(0,c.h)("div",{className:"bc_media_thumb_wrp __grid"},t.list.map((function(e){return(0,c.h)(en,(0,o.Cl)({key:e.id},e))}))):null})),hn=n(47589),mn=(0,u.memo)((function(){var e,t=(e=(0,w.d4)(T.yR),(0,u.useEffect)((function(){window.history.scrollRestoration&&(window.history.scrollRestoration="manual"),(0,hn._)(!1)}),[]),{states:{tabState:(0,u.useMemo)((function(){var t={isInfoActive:!1,isPhotoActive:!1,isVideoActive:!1};return null==e||e.forEach((function(e){e.key===f.b.INFO&&e.isActive?t.isInfoActive=!0:e.key===f.b.PHOTOS&&e.isActive?t.isPhotoActive=!0:e.key===f.b.VIDEOS&&e.isActive&&(t.isVideoActive=!0)})),t}),[e])}}).states.tabState;return(0,c.h)(c.FK,null,t.isInfoActive&&(0,c.h)(cn,null),t.isPhotoActive&&(0,c.h)(dn,null),t.isVideoActive&&(0,c.h)(pn,null))})),fn=n(45070),_n=n(21110),vn=n(2241),bn=(0,u.memo)((function(){var e=(0,w.d4)(T.j6),t=(0,w.d4)(T.u_),n=(0,w.d4)(T.Vt),i=(0,w.wA)(),o=(0,u.useMemo)((function(){return Boolean(document.body.querySelector(".js-profileMobile.__chat"))}),[]);return(0,vn.KI)({boostTimeLeft:e,timeToEnableFreeRaise:t,isFreeRiseAvailable:n,onRaiseModelSocketMessage:function(e,t){o?(s.default.instance.updateChatSwipeState(r.t.CHAT),s.default.instance.applySwipe(!1,!0)):window.location.href=(0,Fe.ip)("@member_chat?username=".concat((0,rn.o)(e.model))),_n.q.isEnabled(fn.i.MOBILE_NEW_MODEL_PROFILE)&&i(N.actionProfileMobileUpdateFanBoost)(t)},onBoostTimeEnd:function(e){i(N.actionProfileMobileUpdateFanBoost)(e)},onFreeRiseAvailable:function(e){i(N.actionProfileMobileUpdateFanBoost)(e)}}),null})),gn=n(91815),Cn=n(82267),Tn=n(60824),Nn=n(96734),wn=n(7187),yn=n(31179),Sn=n(9127),kn=(0,u.memo)((function(e){var t=e.className,n=e.isChatProfile,i=function(e){var t=e.isChatProfile,n=(0,w.d4)((function(e){return e.chatHost})),i=(0,w.d4)((function(e){var t;return null===(t=e.chatBar)||void 0===t?void 0:t.profileMediaLink})),a=(0,w.d4)(T.Z$),l=(0,w.d4)(T.C$),c=(0,w.d4)(T.jw),d=(0,w.d4)(T.yR),p=(0,w.d4)(T.zK),h=(0,u.useRef)(n),m=(0,u.useRef)(null),_=pe.A.dispatch,b=(0,u.useState)(!1),g=b[0],C=b[1],y=(0,u.useState)(!1),S=y[0],k=y[1],O=(0,u.useState)(!1),A=O[0],P=O[1],I=(0,ce.f)().sendRequest,L=(0,u.useCallback)((function(){if(p===chat.currentChathost){var e="public"===chat.performerStatus;(0,gn.x)(e)}}),[p]);(0,wn.Z9)(E.R.PERFORMER_STATUS_CHANGE,L);var x=(0,u.useMemo)((function(){return null==d?void 0:d.find((function(e){return e.isActive}))}),[d]),B=(0,u.useMemo)((function(){var e=document.getElementById("bChatContent");return null==e?void 0:e.querySelector(".chat_panel_wrap")}),[]),R=(0,u.useMemo)((function(){var e=document.getElementById("bChatContent");return null==e?void 0:e.querySelector(".chat_alert_container")}),[]),D=(0,u.useCallback)((function(e){return(0,o.sH)(void 0,void 0,void 0,(function(){var t,n,s,u,d,p,m,v,b;return(0,o.YH)(this,(function(o){switch(o.label){case 0:return _(N.actionProfileMobileInChat)(),k(!0),t=e===r.t.PROFILE,n=e===r.t.PROFILE_PHOTOS,s=t&&!a||n&&i&&(!l||!c),h.current&&s?(C(!0),u=n?(0,M.z6)(null==i?void 0:i.url).urlString:"".concat((0,Fe.ip)("@common_profile?username=".concat((0,rn.o)(h.current.username))),"?chat=1"),[4,I(u)]):[3,9];case 1:if("success"!==(null==(d=o.sent())?void 0:d.status)||!d.data)return[3,8];switch(p=null===(b=null===(v=d.data.tabs)||void 0===v?void 0:v.tabs)||void 0===b?void 0:b.find((function(e){return e.isActive})),m=ln(d.data),null==p?void 0:p.key){case f.b.INFO:return[3,2];case f.b.PHOTOS:return[3,4];case f.b.VIDEOS:return[3,6]}return[3,8];case 2:return[4,_(N.actionProfileMobileUpdateInfo)(m)];case 3:case 5:case 7:return o.sent(),[3,8];case 4:return[4,_(N.actionProfileMobileUpdatePhotos)(m)];case 6:return[4,_(N.actionProfileMobileUpdateVideos)(m)];case 8:return C(!1),[2,d];case 9:return[2,null]}}))}))}),[I,_,a,l,c,i]);return(0,u.useEffect)((function(){return function(){var e;t&&(null==n?void 0:n.username)!==(null===(e=h.current)||void 0===e?void 0:e.username)&&(h.current=n,m.current=null,_(N.actionProfileMobileClearUpData)(),_(N.actionProfileMobileInChat)())}}),[t,n,_]),(0,u.useEffect)((function(){if(t&&!S){var e=s.default.swipeState;D(e)}}),[t,D,_,S]),(0,u.useEffect)((function(){x&&x.key!==m.current&&_(N.actionProfileMobileUpdateTabChangeState)(!1),m.current=null==x?void 0:x.key}),[x,_]),(0,u.useEffect)((function(){var e=function(e){var t=e.detail.swipeState,n=t!==r.t.PROFILE&&t!==r.t.PROFILE_PHOTOS;P(n),n&&(B.style.width="",null==B||B.classList.toggle(v.a4,!1),null==R||R.classList.toggle(v.a4,!1),(0,Tn.u)())};return t&&window.addEventListener(E.R.CHAT_SWIPE,e),function(){t&&window.removeEventListener(E.R.CHAT_SWIPE,e)}}),[t,B,R]),(0,u.useEffect)((function(){var e;if(t&&!A&&((0,wn.w3)(E.R.CHAT_LAST_SCROLL_POSITION,(0,Nn.T)(!0)<=0),B)){var n=B;n.style.height="".concat(n.scrollHeight,"px"),n.style.width="".concat(n.scrollWidth,"px"),B.classList.toggle(v.a4,!0),null==R||R.classList.toggle(v.a4,!0),(null===(e=Sn.O.WebKit)||void 0===e?void 0:e.versionBelow(16))&&(0,yn.fY)(document.body)}(0,wn.w3)(E.R.CHAT_AFTER_CHANGE_TAB,!(t&&!A))}),[t,A,B,R]),(0,u.useEffect)((function(){!t&&p&&Cn.s.instance.sendRaw({data:{data:{model:p},type:1},type:"cms"})}),[t,p]),{states:{isLoadingData:g,isNeedToHideState:A}}}({isChatProfile:n}).states,a=i.isLoadingData,l=i.isNeedToHideState;return(0,c.h)("div",(0,o.Cl)({},(0,p.A)({baseId:v.be.WRP}),{className:(0,d.A)(["profile_info_lg js-profileMobile",t,n&&"__chat",l&&"__hide"])}),!l&&a&&(0,c.h)(m,null),!a&&(0,c.h)(c.FK,null,(0,c.h)(R,null),!l&&(0,c.h)(mn,null)),(0,c.h)(bn,null))})),On=n(53336),An=n(62614),Pn=function(){var e=document.querySelector(v.$A),t=!1;return function(n,i){return(0,o.sH)(void 0,void 0,void 0,(function(){return(0,o.YH)(this,(function(o){switch(o.label){case 0:return t?[3,2]:[4,Promise.all([(0,a.i)("extra/profile_info_lg_mobile.css",document.head,null,(0,bt.j)()),!!U.isRTLCulture&&(0,a.i)("extra/profile_info_lg_mobile_rtl.css",document.head,null,(0,bt.j)()),(0,l.L)(On.Kx)])];case 1:o.sent(),An.w.replaceContainer((0,c.h)(w.Kq,{store:pe.A},(0,c.h)(kn,{isChatProfile:Boolean(n)})),e),t=!0,o.label=2;case 2:return i&&i(),[2]}}))}))}},En=function(){return(0,o.sH)(void 0,void 0,void 0,(function(){var e,t,n,i,a,l,c,u;return(0,o.YH)(this,(function(d){switch(d.label){case 0:return e=Boolean(document.body.querySelector(".js-profileMobile.__chat")),t=Pn(),e?(n=document.getElementById("chatBarChatButton"),i=document.getElementById("chatProfileButton"),a=document.getElementById("bChatProfilePhotosLink"),l=function(e){return(0,o.sH)(void 0,void 0,void 0,(function(){return(0,o.YH)(this,(function(n){switch(n.label){case 0:return e.preventDefault(),e.currentTarget.classList.contains("__disabled")?[3,2]:[4,t(r.t.PROFILE,(function(){s.default.instance.updateChatSwipeState(r.t.PROFILE,f.b.INFO)}))];case 1:n.sent(),n.label=2;case 2:return[2]}}))}))},c=function(e){return(0,o.sH)(void 0,void 0,void 0,(function(){return(0,o.YH)(this,(function(n){switch(n.label){case 0:return e.preventDefault(),e.currentTarget.classList.contains("__disabled")?[3,2]:[4,t(r.t.PROFILE_PHOTOS,(function(){s.default.instance.updateChatSwipeState(r.t.PROFILE_PHOTOS)}))];case 1:n.sent(),n.label=2;case 2:return[2]}}))}))},u=function(e){e.preventDefault()},null==i||i.addEventListener("click",l),null==a||a.addEventListener("click",c),null==n||n.addEventListener("click",u),[3,3]):[3,1];case 1:return[4,t()];case 2:d.sent(),d.label=3;case 3:return[2]}}))}))}},21307:function(e,t,n){n.d(t,{r:function(){return S}});var i=n(50172),o=n(26580),a=n(2268),l=n(15215),r=n(13907),s=n(4645),c=n(28812),u=n(19826),d=n(35500),p=n(73324),h=n(70726),m=n(16164),f=n(94535),_=n(41669),v=__("Required."),b=function(e){function t(t){var n,i=e.call(this,t)||this;return i.onUsernameChange=function(e){var t=e.currentTarget;t.value=t.value.replace("<","").replace(">","").replace("(","").replace(")",""),i.handleChangeFieldByName(e),i.setState({errorContent:""})},i.state={isValid:!1,error:"",loading:!1,fields:(n={},n.social_profile=[{name:"social_username",maxLength:30,label:trans("Enter your %sm_type% username:",{sm_type:''.concat(t.type,"")})}],n),errorContent:null},i}return(0,l.C6)(t,e),t.prototype.submitAction=function(e){var t=this,n=this.props,i=n.username,o=n.id,a=n.onSuccess,d=(0,r.ip)("@api_purchase_social_profile_link?model_username=".concat(i,"&id=").concat(o)),h=function(e){var t,n,i,o;return(null===(n=null===(t=null==e?void 0:e.errors)||void 0===t?void 0:t.socialUsername)||void 0===n?void 0:n[0])||(null===(o=null===(i=null==e?void 0:e.errors)||void 0===i?void 0:i.global)||void 0===o?void 0:o[0])||v};_.ajax({type:"post",url:d,dataType:"json",data:(0,s.Z)((0,l.Cl)({},e)),success:function(e){var n;if(p.A.isSuccess(e.status)){var i=e.data,l=i.url,r=i.forwardLink,s=null===(n=e.data.qrCodeData)||void 0===n?void 0:n.url;a(l,o,r,s),u.A.action(f.Cp)(o,r)}else t.setState({errorContent:h(e)})},error:function(e){var n=(0,c.json_parse)(null==e?void 0:e.responseText);t.setState({errorContent:h(n)})}})},t.prototype.render=function(){var e=this.state.errorContent;return(0,i.h)("form",{onSubmit:this.handleSubmitForm},(0,i.h)(m.A,(0,l.Cl)({},this.getField("social_username","social_profile"),{error:e,inputClassName:"form_field",onInput:this.onUsernameChange,onChange:this.onUsernameChange})),(0,i.h)("div",{className:"form_actions"},(0,i.h)(d.A,{color:"success",htmlType:"submit",maxWidth:"fluid",className:"spf_f_btn"},__("Buy"))))},t}(h.A),g=function(e){var t=e.icon,n=e.type,o=e.id,l=e.handleOnSuccess,r=e.username,s=e.displayName,c=e.price,u=a.kX.pluralise("tokens",c);return(0,i.h)("div",{className:"social_profile_form __profile_lg"},(0,i.h)("div",{className:"spf_desc bc_flex bc_flex_column bc_flex_items_center"},(0,i.h)("div",{className:"spf_desc_item __img"},(0,i.h)("img",{className:"spf_icon",src:t.src,alt:n})),(0,i.h)("div",{className:"spf_desc_item __info bc_bold"},trans("Buy %modelname%'s %sm_type% for %s1%%price% %tokens_plural%?%s2%",{modelname:''.concat(s,""),sm_type:''.concat(n,""),price:c,tokens_plural:''.concat(u,""),s1:'',s2:""}))),(0,i.h)(b,{id:o,type:n,username:r,onSuccess:l}))},C=n(19007),T=n(19223),N=n(54022),w=function(e){var t=e.icon,n=e.type,o=e.forwardUrl,a=e.openedLink,s=e.displayName,c=function(e){var t=e.forwardUrl;return{actions:{handleClickGoToSocialLink:function(e){return(0,l.sH)(void 0,void 0,void 0,(function(){var n;return(0,l.YH)(this,(function(i){switch(i.label){case 0:return e.preventDefault(),n=(0,T.FC)(t),window.open(n,"forwardToRemote")?[3,2]:[4,(0,N.AT)((0,r.ip)("@api_chat_translator_authorization_token"))];case 1:i.sent(),window.open(n,"forwardToRemote"),i.label=2;case 2:return[2]}}))}))}}}}(e).actions.handleClickGoToSocialLink;return(0,i.h)("div",{className:"social_profile_form __success __profile_lg bc_text_align"},(0,i.h)("div",{className:"spf_desc bc_flex bc_flex_column bc_flex_items_center"},(0,i.h)("div",{className:"spf_desc_item __img"},(0,i.h)("img",{className:"spf_icon",src:t.src,alt:n})),(0,i.h)("div",{className:"spf_desc_item __info"},(0,i.h)("div",{className:"spf_desc_text bc_bold"},__("Thanks!%_social_link_%")),(0,i.h)("div",{className:"spf_desc_text __ellipsis bc_bold"},trans("Follow %modelname% on %sm_type%:",{modelname:''.concat(s,""),sm_type:''.concat(n,"")})),(0,i.h)("div",{className:"spf_desc_text __link"},(0,i.h)("a",{className:"spf_link",target:"_blank",href:(0,T.FC)(o),rel:"noopener noreferrer",onClick:c},a)))),(0,i.h)("div",{className:"form_actions __clear"},(0,i.h)("a",{href:(0,T.FC)(o),target:"_blank",className:"mbc_btn __primary __fluid spf_f_btn",onClick:c,rel:"noopener noreferrer"},trans("Go to %sm_type%",{sm_type:''.concat(n,"")}))))},y=n(26616),S=function(e){var t=e.item,n=e.displayName,a=e.username,l=e.onSuccess,r=void 0===l?y.noop:l,s=t.id,c=t.type,u=t.icon,d=t.socialProfileLink,p=t.price,h=(0,C.K)({socialProfileLink:d,id:s,onSuccess:r}),m=h.forwardUrl,f=h.isShowSuccess,_=h.openedLink,v=h.handleOnSuccess,b=h.handleClose;return(0,i.h)("div",{className:"bc_confirm_popup __tip __social_buy __profile_lg"},(0,i.h)("div",{className:"bc_cp_header"},trans("Buy %sm_type%",{sm_type:''.concat(c,"")}),(0,i.h)("span",{className:"bc_cp_close",onClick:b},(0,i.h)(o.A,{group:"bc_cp_close_icon",icon:"#svg_mob_popup_close"}))),(0,i.h)("div",{className:"bc_cp_body"},(0,i.h)("div",{className:"social_profile_form_wrp __profile_lg"},!f&&(0,i.h)(g,{icon:u,type:c,id:s,price:p,username:a,displayName:n,handleOnSuccess:v}),f&&(0,i.h)(w,{icon:u,type:c,displayName:n,forwardUrl:m,openedLink:_}))))}},19007:function(e,t,n){n.d(t,{K:function(){return c}});var i=n(80554),o=n(17402),a=n(88035),l=n(79276),r=n(19223),s=n(26616),c=function(e){var t=e.socialProfileLink,n=e.id,c=e.onSuccess,u=void 0===c?s.noop:c,d=(0,o.useState)((0,r.FC)(null==t?void 0:t.url)),p=d[0],h=d[1],m=(0,o.useState)(!1),f=m[0],_=m[1],v=(0,o.useState)(null),b=v[0],g=v[1];return{forwardUrl:p,isShowSuccess:f,openedLink:b,handleOnSuccess:function(e,t,o){_(!0),g(e),h((0,r.FC)(o.url)),(0,a.w)(i.R.BUY_SOCIAL_LINK,{id:n}),u({id:n,forwardLink:o})},handleClose:function(e){e.preventDefault(),(0,l.Jw)()}}}},86828:function(e,t,n){var i,o,a;n.d(t,{Uf:function(){return o},ey:function(){return i},oD:function(){return a}}),function(e){e.NONE="none",e.DISABLED="disabled",e.TRACK_MOVE_READY="track-move-ready",e.TRACK_MOVE="track-move",e.TRACK_MOVE_PROCEED="track-move-proceed",e.TRACK_MOVE_INSTANTLY="track-move-instantly",e.ZOOM="zoom",e.ZOOM_ANIMATED="zoom-animated",e.ZOOM_MOVE="zoom-move"}(i||(i={})),function(e){e.TOUCH_FIRST="touch-first",e.TOUCH_SECOND="touch-second",e.TOUCH_ORIGIN="touch-origin",e.TOUCH_ORIGIN_TO="touch-origin-to",e.TOUCH_ORIGIN_FROM="touch-origin-from"}(o||(o={})),function(e){e.MODE_NONE="0",e.MODE_TELEGRAM="1",e.MODE_INSTAGRAM="2"}(a||(a={}))},19332:function(e,t,n){n.d(t,{FN:function(){return p},Ht:function(){return _},By:function(){return m}});var i=n(43284),o=n(86828),a=n(50172),l=n(17402),r=n(15215),s=((0,l.memo)((function(e){var t=e.position,n=e.style;return t?(0,a.h)("div",{style:{position:"absolute",left:t.x,top:t.y,width:"2px",height:"2px",backgroundColor:"red"}},(0,a.h)("div",{style:(0,r.Cl)({position:"absolute",backgroundColor:"gray",opacity:.7,width:"10px",height:"10px",left:"-5px",top:"-5px",borderRadius:"50%"},n)})):null})),n(22706)),c=n(42209),u=n(80554);function d(e){switch(e){case o.oD.MODE_TELEGRAM:return{isZoomEnabled:!0,isRestoreZoomOnTouchEnd:!1,isZoomOnDoubleClick:!0,isMoveWithDoubleTouch:!1};case o.oD.MODE_INSTAGRAM:return{isZoomEnabled:!0,isRestoreZoomOnTouchEnd:!0,isZoomOnDoubleClick:!1,isMoveWithDoubleTouch:!0};default:return{isZoomEnabled:!1,isZoomOnDoubleClick:!1,isRestoreZoomOnTouchEnd:!1,isMoveWithDoubleTouch:!1}}}var p=(0,l.memo)((function(e){var t=e.style,n=e.className,p=e.items,h=e.itemGap,m=void 0===h?0:h,f=e.itemsNeighborCount,_=void 0===f?1:f,v=e.itemIndex,b=e.zoomModeType,g=void 0===b?o.oD.MODE_NONE:b,C=e.isDisabled,T=e.onZoomChange,N=e.onItemIndexChange,w=e.onCarouselModeChange,y=e.onSwipeProceed,S=e.isRTL,k=function(){var e=(0,l.useState)([]),t=e[0];return e[1],{states:{pointerDevListState:t},actions:{updatePointerDevList:function(e){}}}}(),O=(k.states.pointerDevListState,k.actions.updatePointerDevList),A=function(e){var t=e.itemGap,n=e.onCarouselModeChange,i=e.isDisabled,a=(0,l.useRef)(),c=(0,l.useRef)({}),u=(0,l.useRef)({mode:i?o.ey.DISABLED:o.ey.NONE,scrollX:0,zoom:1,boundingMoveTrackCompensation:0,prevTouchTime:0,touch1:{x:0,y:0,isTopPosition:!1,isLeftPosition:!1},touch2:{x:0,y:0,isTopPosition:!1,isLeftPosition:!1},touchesLength:0,item:{translateX:0,translateY:0,translateXOverflow:0,translateYOverflow:0,maxTranslateX:0,maxTranslateY:0,transformOriginPoint:{x:0,y:0},doubleTouchTranslateOffsetX:0,doubleTouchTranslateOffsetY:0},isMounted:!1,lastActiveItemIndex:0}),d=(0,l.useState)(!1),p=d[0],h=d[1],m=(0,l.useState)(!1),f=m[0],_=m[1],v=(0,l.useState)(0),b=v[0],g=v[1],C=(0,l.useState)(i?o.ey.DISABLED:o.ey.NONE),T=C[0],N=C[1],w=(0,l.useCallback)((function(e){u.current.mode=e,N(e)}),[]),y=(0,l.useCallback)((function(){if(a.current){var e=a.current.getBoundingClientRect(),n=e.width,i=e.height;g(n),u.current=(0,r.Cl)((0,r.Cl)({},u.current),{container:{width:n,height:i,aspectRatio:n/i},scrollBoundary:.1*n+t,scrollMaxOverflowAddition:.2*n}),h(!0)}}),[t]),S=(0,l.useCallback)((function(e,t){if(u.current.touchesLength=e.touches.length,e.touches.length&&!t)for(var n=0;n0&&k>10&&A>O?O:A;P>=100?(v=C,b=T,t.current.item.transformOriginPointTo=null,t.current.item.transformOriginPointFrom=null):(v=N-(N-C)*P/100,b=w-(w-T)*P/100),t.current.item.transformOriginPoint={x:v,y:b},p({key:o.Uf.TOUCH_ORIGIN,position:t.current.item.transformOriginPoint})}}var E=c/2,M=u/2,I=u/2,L=(i?E:v)*(1-1/e)+c/2/e-E+(n?n.x/e:0),x=(i?M:b)*(1-1/e)+I/e-M+(n?n.y/e:0);y({x:-1*L,y:-1*x})}),[t,p]),I=(0,l.useCallback)((function(e){var n=m.isRestoreZoomOnTouchEnd,i=t.current.zoom;P(e);var a=t.current.item,l=a.maxTranslateX,s=a.maxTranslateY,c=o.ey.ZOOM_MOVE,d=n?1!==i:i<1||i>=3,p=Math.abs(w.x)>l||Math.abs(w.y)>s;d||p||t.current.mode===o.ey.ZOOM_ANIMATED?c=o.ey.ZOOM_ANIMATED:1===e&&(c=o.ey.NONE),u(c),t.current.zoom=e,y((function(e){var n=Math.min(Math.abs(e.x),l)*(e.x<0?-1:1),i=Math.min(Math.abs(e.y),s)*(e.y<0?-1:1),o=Math.abs(e.x-n)>0?e.x-n:0,a=Math.abs(e.y-i)>0?e.y-i:0;return(o||a)&&E(o,a),t.current.item=(0,r.Cl)((0,r.Cl)({},t.current.item),{translateX:n,translateY:i,translateYOverflow:0,translateXOverflow:0,doubleTouchTranslateOffsetX:0,doubleTouchTranslateOffsetY:0}),{x:n,y:i}}))}),[P,t,w,u,E,m]),L=(0,l.useCallback)((function(e,n){var i=m.isZoomEnabled,a=m.isZoomOnDoubleClick;if(t.current.mode!==o.ey.DISABLED&&i){if(e.preventDefault(),1===t.current.zoom&&A(n.id),1===e.touches.length){t.current.mode===o.ey.ZOOM_MOVE&&c(e),t.current.mode===o.ey.ZOOM_ANIMATED&&1!==t.current.zoom&&(c(e),u(o.ey.ZOOM_MOVE));var l=(new Date).getTime();a&&t.current.prevTouchTime&&l-t.current.prevTouchTime<250&&(1===t.current.zoom&&O(e),u(o.ey.ZOOM_ANIMATED),T((function(e){var n=1;return 1===e&&(n=3),M(n),t.current.zoom=e,I(n),n}))),t.current.prevTouchTime=l}if(2===e.touches.length&&t.current.mode!==o.ey.TRACK_MOVE){u(o.ey.ZOOM),O(e,t.current.zoom>1);var r=e.touches[0],s=r.clientX,d=r.clientY,p=e.touches[1],h=p.clientX,f=p.clientY;t.current.touch1={x:s,y:d,isTopPosition:d<=f,isLeftPosition:s<=h},t.current.touch2={x:h,y:f,isTopPosition:!t.current.touch1.isTopPosition,isLeftPosition:!t.current.touch1.isLeftPosition},t.current.prevTouchTime=0}}}),[t,I,O,M,A,u,c,m]),x=(0,l.useCallback)((function(e){if(2===e.touches.length){var n=m.isMoveWithDoubleTouch,i=t.current,o=i.touch1,a=o.x,l=o.y,s=o.isTopPosition,c=o.isLeftPosition,u=i.touch2,d=u.x,p=u.y,h=u.isTopPosition,f=u.isLeftPosition,_=e.touches[0],v=_.clientX,b=_.clientY,g=e.touches[1],C=g.clientX,N=g.clientY;t.current.touch1=(0,r.Cl)((0,r.Cl)({},t.current.touch1),{x:v,y:b}),t.current.touch2=(0,r.Cl)((0,r.Cl)({},t.current.touch2),{x:C,y:N});var w=a-v,y=d-C,S=w*(c?1:-1)+y*(f?1:-1),k=w>0&&y>0,O=0;n&&(w<0&&y<0||k)&&(O=k?Math.min(w,y):Math.max(w,y),t.current.item.doubleTouchTranslateOffsetX+=O);var A=l-b,E=p-N,I=A*(s?1:-1)+E*(h?1:-1),L=A>0&&E>0,x=0;n&&(L||A<0&&E<0)&&(x=L?Math.min(A,E):Math.max(A,E),t.current.item.doubleTouchTranslateOffsetY+=x);var B=S/140,R=I/140;T((function(e){var n=Math.max(e+R+B,1);return P(n),M(n,{x:t.current.item.doubleTouchTranslateOffsetX,y:t.current.item.doubleTouchTranslateOffsetY}),n}))}}),[t,M,P,m]),B=(0,l.useCallback)((function(e){var n=e.touches[0].clientX-t.current.touch1.x,i=e.touches[0].clientY-t.current.touch1.y,o=t.current.item,a=o.translateX,l=o.translateY,r=o.translateYOverflow,s=o.translateXOverflow,c=o.maxTranslateY,u=o.maxTranslateX,d=c?c+40:c,p=u?u+40:u;y((function(e){var o=n/C-e.x+a-s,c=Math.abs(e.x+o),u=p1&&t.current.mode===o.ey.ZOOM_ANIMATED&&u(o.ey.ZOOM_MOVE)}),[C,t,u]);return(0,l.useEffect)((function(){s&&s(C)}),[s,C]),(0,l.useEffect)((function(){1===C&&i!==o.ey.ZOOM&&y({x:0,y:0})}),[C,i]),(0,l.useEffect)((function(){f(d(a))}),[a]),{actions:{handleTouchItemStart:L,handleTouchItemZoom:x,handleTouchItemTranslate:B,handleTouchItemZoomEnd:R,handleTouchItemTranslateEnd:D,handleItemTransitionEnd:U,resetCarouselItemTransformation:S},states:{zoomValueState:C,itemTranslateState:w,activeItemState:v,zoomOptionsState:m}}}({zoomModeType:g,carouselDataRef:E,carouselItemWrapperMapRef:I,carouselModeState:x,updateTouchDataState:V,updateCarouselMode:H,onZoomChange:T,updatePointerDevList:O}),W=z.actions,X=W.handleTouchItemTranslateEnd,Z=W.handleTouchItemStart,K=W.handleTouchItemZoom,q=W.handleTouchItemTranslate,J=W.handleTouchItemZoomEnd,$=W.handleItemTransitionEnd,Q=W.resetCarouselItemTransformation,ee=z.states,te=ee.activeItemState,ne=ee.zoomValueState,ie=ee.itemTranslateState,oe=ee.zoomOptionsState,ae=function(e){var t=e.carouselDataRef,n=e.itemGap,i=e.items,a=e.itemsNeighborCount,r=e.itemIndex,s=e.isInitialDataCalculated,d=e.updateTouchDataState,p=e.onItemIndexChange,h=e.updateCarouselMode,m=e.carouselModeState,f=e.onSwipeProceed,_=e.isRTL,v=e.calculateCarouselInitialData,b=(0,l.useState)(0),g=b[0],C=b[1],T=(0,l.useState)(r||0),N=T[0],w=T[1],y=(0,l.useState)(!1),S=y[0],k=y[1],O=(0,l.useState)(i),A=O[0],P=O[1],E=(0,l.useCallback)((function(e){p&&p(e),w(e),k((function(e){return!e}))}),[p]),M=(0,l.useCallback)((function(e){var i,o=(t.current.container||{}).width;return o?(e*o+e*n)*(_?1:-1):(v(),(null===(i=t.current.container)||void 0===i?void 0:i.width)?M(e):(console.warn("Can't calculateTrackTranslateValue() coz of carouselDataRef.current.container.width doesn't set - ".concat(o)),0))}),[t,n,_,v]),I=(0,l.useCallback)((function(e,n){h(n?o.ey.TRACK_MOVE_PROCEED:o.ey.TRACK_MOVE_INSTANTLY);var i=M(e);C(i),t.current.scrollX=i,t.current.lastActiveItemIndex=e}),[t,M,h]),L=(0,l.useCallback)((function(e){t.current.mode!==o.ey.DISABLED&&(t.current.mode!==o.ey.NONE&&t.current.mode!==o.ey.TRACK_MOVE_INSTANTLY||(h(o.ey.TRACK_MOVE_READY),d(e)))}),[d,t,h]),x=(0,l.useCallback)((function(e){var i,a=e.touches[0].clientX-t.current.touch1.x,l=a<0;if(_&&(l=!l),t.current.mode===o.ey.TRACK_MOVE){var r=t.current.scrollX+a+t.current.boundingMoveTrackCompensation;if(l){var s=(A.length-1)*(t.current.container.width+n)+t.current.scrollMaxOverflowAddition;r=_?Math.min(r,s):Math.max(r,-1*s)}else{var c=t.current.scrollMaxOverflowAddition;r=_?Math.max(r,-1*c):Math.min(r,c)}if(C(r),f&&(null===(i=t.current.container)||void 0===i?void 0:i.width)){var u=t.current.lastActiveItemIndex+(l?1:-1);if(A[u]){var d=100-100*(t.current.container.width*u-Math.abs(r))/t.current.container.width*(l?1:-1),p=A[u].id;f(d,p,!1)}}}}),[t,n,f,_,A]),B=(0,l.useCallback)((function(e){var i=(t.current.container||{}).width;if(Math.abs((i+n)*a-Math.abs(g))>t.current.scrollBoundary){var o=Math.ceil(Math.abs((i+n)*a-Math.abs(g))/i),l=Math.min(o,a);e?t.current.lastActiveItemIndex+=l:t.current.lastActiveItemIndex-=l}f&&(null==A?void 0:A[t.current.lastActiveItemIndex])&&f(100,A[t.current.lastActiveItemIndex].id,!0),I(t.current.lastActiveItemIndex,!0)}),[t,I,g,n,A,f,a]),R=(0,l.useCallback)((function(e){if(0===e.touches.length){h(o.ey.TRACK_MOVE_PROCEED);var n=t.current.scrollX-g>0;_&&(n=!n),B(n)}}),[t,g,B,h,_]),D=(0,l.useCallback)((function(){if(t.current.lastActiveItemIndex!==a){var e=t.current.lastActiveItemIndex>a,n=Math.abs(a-t.current.lastActiveItemIndex),o=N+n*(e?1:-1);o>=i.length&&(o-=i.length),o<0&&(o+=i.length),E(o)}}),[t,N,i,E,a]);return(0,l.useLayoutEffect)((function(){t.current.lastActiveItemIndex!==a&&I(a)}),[I,S,t,a]),(0,l.useEffect)((function(){function e(e){e.detail.swipeState===c.t.PROFILE&&(v(),I(a))}return window.addEventListener(u.R.CHAT_SWIPE,e),function(){window.removeEventListener(u.R.CHAT_SWIPE,e)}}),[v,I,a]),(0,l.useEffect)((function(){for(var e=[i[N]],t=N,n=N,o=0;oi.length-1&&(n=0),e.push(i[n]);P(e)}),[s,N,i,a,S]),(0,l.useEffect)((function(){m===o.ey.TRACK_MOVE_INSTANTLY&&t.current.isMounted&&h(o.ey.NONE)}),[m,h,t]),(0,l.useEffect)((function(){var e=null;return m===o.ey.TRACK_MOVE_PROCEED&&(e=window.setTimeout((function(){t.current.mode===o.ey.TRACK_MOVE_PROCEED&&h(o.ey.NONE)}),300)),function(){e&&window.clearTimeout(e)}}),[m,t,h]),{states:{trackTranslateXState:g,itemsCalculatedState:A},actions:{handleTrackTouchStart:L,translateTrackOnTouchMove:x,translateTrackOnTouchEnd:R,translateTrackToItemIndex:I,handleOnTrackTransitionEnd:D}}}({carouselDataRef:E,items:p,itemGap:m,itemsNeighborCount:_,itemIndex:v,isInitialDataCalculated:B,carouselModeState:x,calculateCarouselInitialData:Y,updateTouchDataState:V,updateCarouselMode:H,onItemIndexChange:N,onSwipeProceed:y,isRTL:S}),le=ae.states,re=le.trackTranslateXState,se=le.itemsCalculatedState,ce=ae.actions,ue=ce.handleTrackTouchStart,de=ce.translateTrackOnTouchEnd,pe=ce.translateTrackOnTouchMove,he=ce.translateTrackToItemIndex,me=ce.handleOnTrackTransitionEnd,fe=function(e){var t=e.carouselDataRef,n=e.isDisabled,i=void 0!==n&&n,a=e.calculateCarouselInitialData,r=e.updateCarouselMode,c=e.translateTrackToItemIndex,u=e.translateTrackOnTouchEnd,d=e.translateTrackOnTouchMove,p=e.handleTouchItemTranslate,h=e.handleTouchItemZoom,m=e.handleTouchItemZoomEnd,f=e.handleTouchItemTranslateEnd,_=e.updateTouchDataState,v=e.resetCarouselItemTransformation,b=e.carouselContainerRef,g=(0,l.useState)(null),C=g[0],T=g[1],N=(0,l.useMemo)((function(){var e=document.body.querySelector('div[data-id="chat"]');return e?null==e?void 0:e.querySelector(".ui-panel-content-wrap .bc-content"):document}),[]),w=(0,l.useCallback)((function(e){if(1===e.touches.length){var n=e.touches[0].clientX-t.current.touch1.x,i=n<0;Math.abs(n)>=10&&(t.current.boundingMoveTrackCompensation=10*(i?1:-1),r(o.ey.TRACK_MOVE))}}),[t,r]),y=(0,l.useCallback)((function(e){t.current.mode!==o.ey.DISABLED&&(t.current.mode===o.ey.TRACK_MOVE_READY&&w(e),t.current.mode===o.ey.TRACK_MOVE&&d(e),t.current.mode===o.ey.ZOOM&&h(e),t.current.mode===o.ey.ZOOM_MOVE&&p(e))}),[t,h,p,d,w]),S=(0,l.useCallback)((function(e){0===e.touches.length&&r(o.ey.NONE)}),[r]),k=(0,l.useCallback)((function(e){_(e,t.current.mode===o.ey.TRACK_MOVE),t.current.mode===o.ey.TRACK_MOVE_READY&&S(e),t.current.mode===o.ey.TRACK_MOVE&&u(e),t.current.mode===o.ey.ZOOM&&m(e),(t.current.mode===o.ey.ZOOM_MOVE||!e.touches.length&&t.current.mode===o.ey.ZOOM_ANIMATED)&&f(e)}),[t,f,m,u,_,S]),O=(0,l.useCallback)((function(e){var t;null===(t=b.current)||void 0===t||t.classList.toggle("__overlay",e)}),[b]),A=(0,l.useCallback)((function(e){O(!0),T(e.matches)}),[O]),P=(0,l.useCallback)((function(){O(!0),window.setTimeout((function(){O(!1)}),1e3)}),[O]),E=(0,l.useCallback)((function(){t.current.mode!==o.ey.NONE&&t.current.mode!==o.ey.TRACK_MOVE_READY||r(o.ey.DISABLED)}),[t,r]),M=(0,l.useCallback)((function(){r(o.ey.NONE)}),[r]);return(0,l.useEffect)((function(){return document.body.addEventListener("touchend",k),function(){document.body.removeEventListener("touchend",k)}}),[k]),(0,l.useEffect)((function(){return document.body.addEventListener("touchmove",y,{passive:!0}),function(){document.body.removeEventListener("touchmove",y)}}),[y]),(0,l.useEffect)((function(){var e=window.matchMedia("(orientation: portrait)");return e.addEventListener("change",A),window.addEventListener("orientationchange",P),function(){e.removeEventListener("change",A),window.removeEventListener("orientationchange",P)}}),[A,P]),(0,l.useEffect)((function(){if(!s.BrowserDetect.isIOS()&&"onscrollend"in window)return null==N||N.addEventListener("scroll",E),function(){null==N||N.removeEventListener("scroll",E)}}),[E,N]),(0,l.useEffect)((function(){if(!s.BrowserDetect.isIOS()&&"onscrollend"in window)return null==N||N.addEventListener("scrollend",M),function(){null==N||N.removeEventListener("scrollend",M)}}),[M,N]),(0,l.useEffect)((function(){a();var e=null;if(t.current.container)if("boolean"==typeof C)c(t.current.lastActiveItemIndex),e=window.setTimeout((function(){a(),c(t.current.lastActiveItemIndex),v(),O(!1)}),500);else{var n=window.matchMedia("(orientation: portrait)");T(n.matches),O(!1)}return function(){e&&window.clearTimeout(e)}}),[C,a,c,v,t,r,O]),(0,l.useEffect)((function(){i&&c(t.current.lastActiveItemIndex)}),[i,c,t]),(0,l.useEffect)((function(){t.current.isMounted&&r(i?o.ey.DISABLED:o.ey.NONE)}),[i,r,t]),(0,l.useEffect)((function(){t.current.isMounted=!0}),[t]),{states:{isPortraitState:C}}}({carouselDataRef:E,isDisabled:C,calculateCarouselInitialData:Y,updateCarouselMode:H,translateTrackToItemIndex:he,translateTrackOnTouchMove:pe,translateTrackOnTouchEnd:de,handleTouchItemZoom:K,handleTouchItemTranslate:q,handleTouchItemZoomEnd:J,handleTouchItemTranslateEnd:X,updateTouchDataState:V,resetCarouselItemTransformation:Q,carouselContainerRef:M}).states.isPortraitState;return(0,a.h)("div",{style:t,className:(0,i.A)(["bc_carousel",U&&"__crs_overscroll_behavior",n]),onTouchStart:ue,ref:M},(0,a.h)("div",{className:"crs_wrapper"},(0,a.h)("div",{className:"crs_wrapper_inner"},(0,a.h)("div",{className:(0,i.A)(["crs_track bc_flex",S&&"__crs_rtl",R&&"__crs_transition"]),style:{transform:"translateX(".concat(re,"px)"),transitionDuration:R?"".concat(.2,"s"):"0s"},onTransitionEnd:me},se.map((function(e,t){return(0,a.h)("div",{key:e.id,className:(0,i.A)(["crs_item"]),style:{width:D,marginLeft:m&&t!==(S?se.length-1:0)?m:0},onTouchStart:function(t){return Z(t,e)},onTransitionEnd:$},(0,a.h)("div",{className:(0,i.A)(["crs_i_inner",j(e.id,fe),te===e.id&&x===o.ey.ZOOM_ANIMATED&&"__crs_transition"]),style:oe.isZoomEnabled&&te===e.id?{transform:"scale(".concat(ne,") translateX(").concat(ie.x,"px) translateY(").concat(ie.y,"px)")}:{},ref:function(n){return G(n,e.id,se.length-1===t)}},e.content,!1))}))))))})),h=n(8546),m=(0,l.memo)((function(e){var t,n=e.className,i=void 0===n?"":n,o=e.isRTL,s=function(e){var t=e.length,n=e.activeIndex,i=void 0===n?0:n,o=t>100;return{states:{progressBarItemList:(0,l.useMemo)((function(){return(0,r.fX)([],new Array(o?100:t),!0).map((function(e,t){return{index:t}}))}),[t,o]),activeIndexAlt:(0,l.useMemo)((function(){return o?Math.floor(100*i/t):i}),[i,o,t])}}}(e).states,c=s.progressBarItemList,u=s.activeIndexAlt,d=(0,l.useMemo)((function(){return c.map((function(e){return(0,a.h)("div",{key:e.index,className:(0,h.n)({"crb_item bc_flex":!0,__crb_active:e.index===u})},(0,a.h)("div",{className:"crb_i_inner"}))}))}),[c,u]);return(0,a.h)("div",{className:(0,h.n)((t={"bc_carousel_bar bc_flex":!0,__crb_rtl:o},t[i]=Boolean(i),t))},d)})),f=n(64730),_=(0,l.memo)((function(e){var t=e.image,n=void 0===t?null:t,o=e.imageClassName,r=e.emptyClassName,s=function(e){var t=e.image,n=(0,l.useState)(null),i=n[0],o=n[1],a=(0,l.useState)(!1),r=a[0],s=a[1];return(0,l.useEffect)((function(){t&&o((function(e){return null===e||e}))}),[t]),{states:{isLoadingState:i,isErrorState:r},actions:{handleLoad:function(){o(!1)},handleError:function(){s(!0),o(!1)}}}}({image:n}),c=s.states,u=c.isLoadingState,d=c.isErrorState,p=s.actions,h=p.handleLoad,m=p.handleError,_=(0,l.useMemo)((function(){return d?null:u?(0,a.h)(f.y,{show:!0,className:"crs_spinner_wrp"}):null}),[u,d]);return!n||u||d?(0,a.h)("div",{className:(0,i.A)(["crs_i_warning bc_flex bc_flex_full_center",r])},_):(0,a.h)("img",{className:(0,i.A)([!1===u&&!d&&"__loaded",o]),src:n.src,alt:n.alt,onLoad:h,onError:m})}))},94612:function(e,t,n){var i=n(15215),o=n(11283),a=n(50172),l=n(8546),r={default:"__default",background:"__background"},s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,i.C6)(t,e),t.prototype.render=function(){var e,t=this.props,n=t.name,i=t.disabled,s=void 0!==i&&i,c=t.checked,u=void 0!==c&&c,d=t.renderIcon,p=t.value,h=t.title,m=t.className,f=t.labelMode,_=void 0===f?"default":f,v=t.isNew,b=void 0!==v&&v,g=t.onClick,C=t.onChange;return(0,a.h)("label",{className:(0,l.n)((e={bcm_radio:!0,__disabled:s},e[r[_]]=!0,e[m]=Boolean(m),e))},(0,a.h)("input",{className:"bcm_r_input",type:"radio",name:n,checked:u,value:p,onClick:function(){return g&&g(p,n)},onChange:function(){return C&&C(p,n)}}),(0,a.h)("span",{className:"bcm_r_mark"}),(0,a.h)("span",{className:"bcm_r_text"},d&&d(),h,b&&(0,a.h)(o.j,{classModifier:"__new",icon:o.a.NEW})))},t}(a.uA);t.A=s},9231:function(e,t,n){n.d(t,{M:function(){return s}});var i=n(26580),o=n(43284),a=n(56526),l=n(50172),r=n(17402),s=(0,r.memo)((function(e){var t=e.name,n=e.rating,s=e.isChangeable,c=(0,r.useState)(n),u=c[0],d=c[1];return(0,l.h)("div",{className:"bc_rating_star"},new Array(5).fill("").map((function(e,n){return(0,l.h)("button",{key:n,type:"button","data-role":"none",className:(0,o.A)(["rs_item",t&&"__clickable",n+1<=u&&"__active"]),onClick:s?function(){return d(n+1)}:null,disabled:!s},(0,l.h)(i.A,{group:"rsi_icon",icon:"#svg_mob_pw_star",url:a.b}))})),t&&(0,l.h)("input",{type:"text",className:"rs_input",style:{display:"none"},value:u,name:t}))}))},47589:function(e,t,n){n.d(t,{_:function(){return u}});var i=n(19826),o=n(45070),a=n(21110),l=n(50472),r=n(41669),s=Math.max(0,window.scrollY),c=window.innerWidth,u=function(e){if(!e){var t=r(".js-header_auto_hide");if(t.length){var n=r(".js-bc_header_live_tabs"),u=r(".js-profile_nav_item_wrp");a.q.isEnabled(o.i.ALTERNATE_MOBILE_HEADER)&&r("#pop-sorting-popup").addClass("__alter");r(document).off("scroll.headerMenu").on("scroll.headerMenu",(function(){var e,o,a,l,d=Math.ceil(window.scrollY);(null===(o=null===(e=document.querySelector("html"))||void 0===e?void 0:e.classList)||void 0===o?void 0:o.contains("scroll_disable"))||window.innerHeight!==document.body.scrollHeight&&window.innerHeight+d>=document.body.scrollHeight||(null===(a=r.mobile.activePage)||void 0===a?void 0:a.is("#main"))&&((null===(l=i.A.getState().mobilePopup)||void 0===l?void 0:l.type)||r.mobile.activePage.find("#mainbar").hasClass("ui-panel-open")||(!function(e,t,n,i){if(i<=50)return e.removeClass("hidden"),t.removeClass("__hidden"),void n.removeClass("__hidden");if(i!==s){var o=window.innerWidth,a=o!==c;if(c=o,!(a||Math.abs(i-s)<10)){var l=i>s;e.toggleClass("hidden",l),t.toggleClass("__hidden",l),n.toggleClass("__hidden",l)}}}(t,n,u,d),s=Math.max(0,d)))})),r(document).off("header.show").on("header.show",(function(){Math.ceil(window.scrollY)<=50&&(t.removeClass("hidden"),n.removeClass("__hidden"),u.removeClass("__hidden"))})),r(document).on("pageshow","#main",(function(){(0,l.c)(null),n.removeClass("__no_transition")})),r(document).on("pagehide","#main",(function(){t.removeClass("hidden"),n.removeClass("__hidden"),n.addClass("__no_transition")}))}}}},42485:function(e,t,n){n.d(t,{b:function(){return u}});var i=n(50172),o=n(17402),a=n(19223),l=n(26580),r=n(19332),s=n(24261),c=n(8546),u=(0,o.memo)((function(e){var t,n=e.className,o=e.data,u=e.image;return(0,i.h)("div",{className:(0,c.n)((t={},t[n]=Boolean(n),t.profile_info_dummy=!0,t))},(0,i.h)("div",{className:"pidm_inner bc_flex bc_flex_column bc_flex_full_center"},(0,i.h)("div",{className:"pidm_caption"},(0,i.h)(l.A,{group:"pidm_p_lock",icon:"#svg_mob_ca_lock"}),o.caption),(0,i.h)("div",{className:"pidm_album_caption"},(0,a.Oy)({attributes:{accentCount:{class:"pidm_s_count"},name:{class:"pidm_s_name"}},phrase:o.albumCaption,isLastVersion:!0})),(0,i.h)("div",{className:"pidm_desc"},(0,a.Oy)({attributes:{accent:{class:"bc_bold"}},phrase:o.description,isLastVersion:!0})),(0,i.h)(s.Ux,{messageButton:o.messageButton})),(0,i.h)("div",{className:"pidm_overlay"},(0,i.h)("div",{className:"pidm_overlay_inner"},(0,i.h)("div",{className:"pidm_overlay_bg"}),(0,i.h)(r.Ht,{emptyClassName:"pidm_p_warning",image:u,imageClassName:"pidm_p_img"}))))}))},35500:function(e,t,n){n.d(t,{A:function(){return i.$}});var i=n(18523)},22523:function(e,t,n){n.d(t,{L:function(){return i}});var i=function(){function e(){this.scrollPosition=0}return Object.defineProperty(e,"instance",{get:function(){return this._instance||(this._instance=new this)},enumerable:!1,configurable:!0}),e.prototype.getScrollPosition=function(){return this.scrollPosition},e.prototype.SavePosition=function(){this.scrollPosition=window.scrollY},e.prototype.RestorePosition=function(e){void 0===e&&(e="auto"),document.documentElement.scrollTo({top:this.scrollPosition,left:0,behavior:e}),document.body.scrollTo({top:this.scrollPosition,left:0,behavior:e})},e.prototype.ClearPosition=function(){this.scrollPosition=0},e}()},50472:function(e,t,n){n.d(t,{c:function(){return o}});var i=n(41669);function o(e){void 0===e&&(e=0);var t=i.mobile.activePage;if(t){var n=t.find(".ui-header-fixed:not(.bc_hide)");if(n.length){var o=0,a=i(".mbc_bt_alert:not(.bc_hide):not(.hidden)");a.length&&(o+=a.innerHeight());var l=i(".js-bc_header_live_tabs");l.length&&(o+=l.innerHeight());var r=i(".js-profile_nav_item_wrp");r.length&&(o+=r.innerHeight());var s=parseInt(t.css("padding-top")),c=function(){var e=n.innerHeight();e+o===s&&e===s||t.css("padding-top",e+o+"px")};null===e?c():setTimeout(c,e)}}}}}]);