(self.webpackChunkbongacams=self.webpackChunkbongacams||[]).push([[693,572],{90700:function(e,n,i){"use strict";i.r(n);var t=i(31601),o=i.n(t),a=i(76314),s=i.n(a)()(o());s.push([e.id,'.b_fa_,body.theme_light .b_fa_{--bc-thm-paidShowCountdown-color:#fff;--bc-thm-paidShowCountdown-bg:rgba(0,0,0,.8);--bc-thm-paidShowCountdown_drag-bg:rgba(0,0,0,.85);--bc-thm-paidShowCountdown-icon-color:#c92746}.b_fa_{background:var(--bc-thm-paidShowCountdown-bg);border-radius:8px;box-sizing:border-box;color:var(--bc-thm-paidShowCountdown-color);display:flex;left:0;padding-bottom:10px;padding-top:10px;padding-inline:10px 12px;position:absolute;top:0;touch-action:none;transition:background-color .2s ease-in-out,opacity .2s;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:25}.b_ga_{transition:background-color .2s ease-in-out,opacity .2s,-webkit-transform .1s;transition:background-color .2s ease-in-out,opacity .2s,transform .1s;transition:background-color .2s ease-in-out,opacity .2s,transform .1s,-webkit-transform .1s}.b_ha_{background-color:var(--bc-thm-paidShowCountdown_drag-bg);will-change:transform}.b_ia_{opacity:0;visibility:hidden}.b_ja_{width:280px;z-index:999}.b_ka_{display:flex;flex-direction:column;font-size:14px;line-height:1.4}.b_la_{color:var(--bc-thm-paidShowCountdown-icon-color);flex:0 0 auto;height:20px;width:20px;-webkit-margin-end:10px;margin-inline-end:10px}.b_ma_{content:"";display:block;inset:0;position:fixed;z-index:24}.b_na_{z-index:999}@media (any-hover:hover){.b_fa_:hover{background-color:var(--bc-thm-paidShowCountdown_drag-bg);cursor:move}}',""]),s.locals={container:"b_fa_",container_smoothPersist:"b_ga_",container_dragging:"b_ha_",container_hidden:"b_ia_",container_fullscreen:"b_ja_",content:"b_ka_",icon:"b_la_",backdrop:"b_ma_",backdrop_fullscreen:"b_na_"},n.default=s},58251:function(e,n,i){var t=i(85072),o=i(90700);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var a={insert:"head",singleton:!1};t(o,a);e.exports=o.locals||{}},53013:function(e,n,i){"use strict";i.d(n,{a:function(){return r}});var t=i(15215),o=i(99525),a=i(27510),s=i(8119),l=i(76294),r=o.A.action(function(e,n){return[a.j.PRIVATE_CHAT,a.j.FULL_PRIVATE_CHAT].includes(n)&&l.DT.setItem(s.Z.LAST_PRIVATE_TYPE,n),{chatInternalState:(0,t.Cl)((0,t.Cl)({},e.chatInternalState),{paidShowPopup:(0,t.Cl)((0,t.Cl)({},e.chatInternalState.paidShowPopup),{type:n})})}})},40742:function(e,n,i){"use strict";i.r(n),i.d(n,{InvitePopup:function(){return j},default:function(){return C}});var t=i(74848),o=i(46517),a=i(22078),s=function(e){var n=e.onClick;return(0,t.jsx)("div",{className:"invite-action",children:(0,t.jsx)("button",{className:"mls_btn mls_btn_green","data-testid":"accept-button",onClick:n,children:__("Start Private Chat")})})},l=i(83375),r=i(2268),c=function(e){var n=e.private_chat;return void 0===n||n&&void 0===n.privateChatTokensPerMinute?null:(0,t.jsxs)(t.Fragment,{children:[" (",(0,t.jsxs)("span",{className:(0,l.n)({ip_custom:n.isPrivateChatPriceChanged}),children:[n.privateChatTokensPerMinute," ",r.kX.pluralise("tokens",n.privateChatTokensPerMinute)]})," ".concat(__("per minute"),")")]})},u=function(e){var n=e.children;return(0,t.jsxs)("span",{className:"invite_price",children:[(0,t.jsx)("span",{className:"bc_bold",children:__("%_tmp_%Private Chat")}),n]})},d=function(e){var n=e.private_chat;return void 0===n||n&&void 0===n.privateChatTokensPerMinute?null:(0,t.jsx)(u,{children:(0,t.jsx)("span",{className:"ip_custom_wrap",children:(0,t.jsx)(c,{private_chat:n})})})},_=function(e){var n=e.private_chat;return void 0===n||n&&void 0===n.privateChatTokensPerMinute?null:(0,t.jsx)(u,{children:(0,t.jsx)(c,{private_chat:n})})},p=i(96540),m=i(68811),f=i(63861),v=i(53013),h=i(77482),b=i(99525),x=i(73437),g=i(80554),j=function(e){var n=e.isShow,i=(0,o.d4)(function(e){return e.privatePopupOptions})||{},l=i.chat_show_invite,r=i.private_chat,c=i.privateChatInvitationSettings,u=function(e){var n=e.isShow,i=void 0!==n&&n,t=e.id,o=e.source,a=e.displayName,s=e.privateChatInvitationSettings,l=void 0===s?"all":s,r=e.accept,c=void 0===r?x.noop:r,u=e.decline,d=void 0===u?x.noop:u,_=(0,p.useState)(!1),j=_[0],C=_[1],N=(0,p.useRef)(!1),k=(0,p.useRef)(null),w=(0,p.useRef)(null),P=(0,p.useCallback)(function(e){var n,i;w.current&&k.current&&k.current.abort(),k.current=new AbortController;var a=(0,f.Go)((0,f.ip)("@track_url"),{csiid:t,source:o,act:e}),s={cache:"no-cache",method:"GET",headers:{"X-Requested-With":"XMLHttpRequest"}};(null===(n=k.current)||void 0===n?void 0:n.signal)&&(s.signal=k.current.signal),w.current=!0,null===(i=window.fetch)||void 0===i||i.call(window,a,s).then(function(){w.current=!1})},[t,o]),S=function(){var e,n;if(!N.current&&"none"!==l){var i=b.A.getState().isFloatingPlayer;if("friends"===l){if(!b.A.getState().isFollowingsLoaded)return void(0,m.n)(S);if(!(0,h.qs)(null===(n=null===(e=null===window||void 0===window?void 0:window.chat)||void 0===e?void 0:e.performerData)||void 0===n?void 0:n.username))return}i?P("show"):((0,v.a)(null),P("show"),N.current=!0,C(!0))}};return(0,p.useEffect)(function(){return function(){var e;k.current&&(null===(e=k.current)||void 0===e||e.abort()),N.current=!1,C(!1)}},[a]),(0,p.useEffect)(function(){return i&&S(),document.addEventListener(g.R.INVITE_POPUP_SHOW,S),function(){document.removeEventListener(g.R.INVITE_POPUP_SHOW,S)}},[]),(0,p.useEffect)(function(){var e=function(){N.current&&(N.current=!1,C(!1),d())},n=function(){N.current&&(N.current=!1,C(!1))};return j&&(document.addEventListener(g.R.INVITE_POPUP_CANCEL,e),document.addEventListener(g.R.INVITE_POPUP_CANCEL_MODEL,n)),function(){document.removeEventListener(g.R.INVITE_POPUP_CANCEL,e),document.removeEventListener(g.R.INVITE_POPUP_CANCEL_MODEL,n)}},[j,d]),(0,p.useEffect)(function(){var e=0;return j&&(e=window.setTimeout(function(){N.current=!1,C(!1),d()},6e4)),function(){clearTimeout(e)}},[j,d]),{show:j,declineInvite:function(){P("close"),N.current=!1,C(!1),d()},acceptInvite:function(){P("click"),N.current=!1,C(!1),c()}}}({id:l.chatShowInvitationVersion,accept:function(){var e;return null===(e=null===window||void 0===window?void 0:window.chat)||void 0===e?void 0:e.acceptInvite()},decline:function(){var e;return null===(e=null===window||void 0===window?void 0:window.chat)||void 0===e?void 0:e.declineInvite()},displayName:l.displayName,privateChatInvitationSettings:c,source:l.sourceType,isShow:n}),j=u.acceptInvite,C=u.declineInvite;if(!u.show)return null;if(!(0,a.j)(l)||void 0===r)return null;var N=trans("%modelname% invites you to Private Chat!",{modelname:''.concat(l.displayName,"
")});return(0,t.jsxs)(t.Fragment,{children:[3===l.chatShowInvitationVersion&&(0,t.jsxs)("div",{id:"bInvitePopup",className:"private-invite invite-dark-panel","data-testid":"bInvitePopup",style:{display:"block"},children:[(0,t.jsx)("span",{className:"close","data-testid":"bInvitePopup-close-btn",onClick:C}),(0,t.jsxs)("div",{className:"invite-title",children:[(0,t.jsx)("div",{className:"invite-avatar",style:{backgroundImage:"url('".concat(l.avatarUrl,"')")}}),N]}),(0,t.jsxs)("div",{className:"invite-body",children:[(0,t.jsx)("p",{children:__("Let's get naughly right now!")}),(0,t.jsx)("p",{children:__("I want to chat with you one-on-one...")}),(0,t.jsx)(_,{private_chat:r})]}),(0,t.jsx)(s,{onClick:j})]}),1===l.chatShowInvitationVersion&&(0,t.jsxs)("div",{id:"bInvitePopup",className:"private-invite-popup bongacams_popup_v2","data-testid":"bInvitePopup",style:{display:"block"},children:[(0,t.jsx)("div",{className:"popup_header",children:(0,t.jsx)("div",{className:"popup_close close","data-testid":"bInvitePopup-close-btn",onClick:C,children:(0,t.jsx)("div",{className:"popup_close_arrow"})})}),(0,t.jsx)("div",{className:"popup_content",children:(0,t.jsxs)("div",{className:"private-invite invite-popup _avatar_left",children:[(0,t.jsx)("div",{className:"invite-title",children:N}),(0,t.jsxs)("div",{className:"invite-body",children:[(0,t.jsx)("div",{className:"invite-avatar",style:{backgroundImage:"url('".concat(l.avatarUrl,"')")}}),(0,t.jsx)("p",{className:"title",children:__("Let's get naughly right now!")}),(0,t.jsx)("p",{children:__("I want to chat with you one-on-one...")})]}),(0,t.jsx)(_,{private_chat:r}),(0,t.jsx)(s,{onClick:j})]})})]}),2===l.chatShowInvitationVersion&&(0,t.jsxs)("div",{id:"bInvitePopup",className:"private-invite-popup bongacams_popup_v2","data-testid":"bInvitePopup",style:{display:"block"},children:[(0,t.jsx)("div",{className:"popup_header",children:(0,t.jsx)("div",{className:"popup_close close","data-testid":"bInvitePopup-close-btn",onClick:C,children:(0,t.jsx)("div",{className:"popup_close_arrow"})})}),(0,t.jsx)("div",{className:"popup_content",children:(0,t.jsxs)("div",{className:"private-invite invite-popup _avatar_top",children:[(0,t.jsxs)("div",{className:"invite-title",children:[(0,t.jsx)("div",{className:"invite-avatar",style:{backgroundImage:"url('".concat(l.avatarUrl,"')")}}),(0,t.jsx)("div",{className:"invite-text",children:N})]}),(0,t.jsxs)("div",{className:"invite-body",children:[(0,t.jsxs)("div",{className:"invite-body_wrp bc_flex",children:[(0,t.jsxs)("div",{className:"invite-body_left",children:[(0,t.jsx)("div",{className:"invite-avatar",style:{backgroundImage:"url('".concat(l.avatarUrl,"')")}}),(0,t.jsx)("p",{className:"invite-model",children:(0,t.jsx)("span",{className:"invite-model_inner",children:l.displayName})})]}),(0,t.jsxs)("div",{className:"invite-body_right",children:[(0,t.jsx)("p",{className:"title",children:__("I'm already so wet...")}),(0,t.jsx)("p",{children:__("Let's get some privacy!")})]})]}),(0,t.jsx)(d,{private_chat:r})]}),(0,t.jsx)(s,{onClick:j})]})})]})]})},C=j},6364:function(e,n,i){"use strict";i.r(n),i.d(n,{MemberChatLayout:function(){return Zt}});var t=i(74848),o=i(96540),a=i(46517),s=i(99525),l=i(35626),r=i(9445),c=i(16994),u=i(40172),d=i(22078),_=i(83375),p=i(15215),m=i(48207),f=i(38775),v=i(39992),h=i(63934),b=(0,o.memo)(function(e){var n=function(e){var n=e.chatContentPopup,i=n.id,t=n.callbacks,a=n.options,s=n.renderFn,l=n.isOpened,r=(0,o.useRef)(null);return(0,v.j)((0,p.Cl)({ref:r,callback:function(){(0,m.G3)(i)},isEnabled:l&&Boolean(i)},(null==a?void 0:a.excludeOutsideClickParent)&&{excludeParents:null==a?void 0:a.excludeOutsideClickParent})),(0,f.u)(function(){var e;null===(e=null==t?void 0:t.onOpen)||void 0===e||e.call(t)}),(0,h.l)(function(){var e;null===(e=null==t?void 0:t.onClose)||void 0===e||e.call(t)}),{contentRef:r,classNames:null==a?void 0:a.classes,renderFn:s}}(e),i=n.contentRef,a=n.classNames,s=n.renderFn;return(0,t.jsx)("div",{className:(0,_.jc)(["ct_popup_wrp bc_flex bc_flex_full_center",null==a?void 0:a.root]),children:(0,t.jsx)("div",{ref:i,className:(0,_.jc)(["ct_popup",null==a?void 0:a.content]),children:null==s?void 0:s()})})}),x=function(e){return function(e){return e.chatUI}(e).contentPopup},g=function(){var e=(0,a.d4)(x);return e&&e.renderFn?(0,t.jsx)(b,{chatContentPopup:e}):null},j=i(85730),C=i(57733),N=i(26580),k=i(47885),w=(0,o.memo)(function(){var e=(0,a.d4)(u.U7),n=(0,o.useCallback)(function(){C.A.instance.open?C.A.instance.closePanel():C.A.instance.openPanel()},[]);return e?(0,t.jsxs)("div",{className:"chfs_btn __icon chfs_btn_chat_panel",onClick:n,children:[(0,t.jsx)(N.A,{group:"chfs_icon __quote",icon:"#svg_ch_fs_quote",url:k.g5}),(0,t.jsx)(N.A,{group:"chfs_icon __cross",icon:"#svg_ch_fs_cross",url:k.g5})]}):null}),P=i(80877),S=i(15564),y=i(62271),T=i(5117),A=i(72983),E=function(){return(0,t.jsxs)("div",(0,p.Cl)({id:"mnw",className:"what"},(0,S.A)({baseId:"chat_model_navigation_hint"}),{children:[(0,t.jsx)(N.A,{group:"mn_w_icon",icon:"#svg_icon_help",url:T.z}),(0,t.jsx)("div",{className:"navigatorHint",children:(0,t.jsxs)("div",{className:"block popover-light",children:[(0,t.jsx)("div",{className:"corner top"}),(0,t.jsxs)("div",{className:"inner popover-light-inner",children:[(0,t.jsx)("div",{className:"closeBtn popover-light-close"}),A.isRTLCulture&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"prev text",children:[__("Next Model"),(0,t.jsx)("span",{children:__("(left arrow key)")})]}),(0,t.jsx)(N.A,{group:"block_bg",icon:"#svg_ch_stream_arrow",url:k.g5}),(0,t.jsxs)("div",{className:"next text",children:[__("Previous Model"),(0,t.jsx)("span",{children:__("(right arrow key)")})]})]}),!A.isRTLCulture&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"prev text",children:[__("Previous Model"),(0,t.jsx)("span",{children:__("(left arrow key)")})]}),(0,t.jsx)(N.A,{group:"block_bg",icon:"#svg_ch_stream_arrow",url:k.g5}),(0,t.jsxs)("div",{className:"next text",children:[__("Next Model"),(0,t.jsx)("span",{children:__("(right arrow key)")})]})]})]})]})})]}))},I=(0,o.memo)(function(){var e=((0,a.d4)(u._T)||{}).promoEmbedChat;return(0,t.jsx)("div",{className:"memberNavigation",children:(0,t.jsx)("div",{id:"bModelNavigator",className:(0,_.n)({promoVisible:e}),children:(0,t.jsxs)("div",{id:"navigator_wrapper",className:"navigator_wrapper",children:[(0,t.jsxs)("a",(0,p.Cl)({id:"bCamControlsPrevRoom",className:(0,_.n)({"js-prev_chat_room":e,mn_link:!0}),onClick:function(e){e.preventDefault(),y.h.instance.prevRoom()}},(0,S.A)({baseId:"bCamControlsPrevRoom"}),{children:[(0,t.jsx)("span",{className:"prev mn_arrow"})," ",(0,t.jsxs)("span",{className:"nav_text",children:[(0,t.jsx)("span",{className:"std",children:__("Previous model")}),(0,t.jsx)("span",{className:"sm",children:__("Previous%_model_%")})]})]}))," ",(0,t.jsx)(E,{})," ",(0,t.jsxs)("a",(0,p.Cl)({id:"bCamControlsNextRoom",className:(0,_.n)({"js-next_chat_room":e,mn_link:!0}),onClick:function(e){e.preventDefault(),y.h.instance.nextRoom()}},(0,S.A)({baseId:"bCamControlsNextRoom"}),{children:[(0,t.jsxs)("span",{className:"nav_text",children:[(0,t.jsx)("span",{className:"std",children:__("Next model")}),(0,t.jsx)("span",{className:"sm",children:__("Next%_model_%")})]})," ",(0,t.jsx)("span",{className:"next mn_arrow"})]}))]})})})}),L=i(41042),R=i(89105),M=(0,o.memo)(function(){var e=(0,a.d4)(L.BH);return(0,t.jsx)(R.M,{className:(0,_.n)({chat_tabs_scroll:!e,__chat_control_panel_bng18409:e}),contentClassName:(0,_.n)({chat_tabs_scroll_content:!e}),wrapperClassName:(0,_.n)({chat_tabs_scroll_wrapper:!e}),name:"chat_tabs_scroll",withScrollPanel:!0,isHideBarOutside:!0,isNativeScroll:!e,isOutWrapBar:!0,children:(0,t.jsx)("div",{className:"chat_users_container",children:(0,t.jsx)("div",{className:"users modelUsers chat_users js-chat_tab_content"})})})}),B=i(41669),O=(0,o.forwardRef)(function(e,n){var i=e.children,a=(0,o.useRef)(null);return(0,o.useImperativeHandle)(n,function(){return a.current}),(0,o.useEffect)(function(){a.current&&B(document).triggerHandler("onRoomReady",[B(a.current)])},[a]),(0,t.jsx)("div",{ref:a,id:"bChat",children:i})}),H=i(87276),D=i(63065),F=i(58927),U=i(40793);function V(e){var n;return null===(n=(0,U.c)(e))||void 0===n?void 0:n.profileDetails}function G(e){return Boolean(V(e))}function z(e){var n;return null===(n=V(e))||void 0===n?void 0:n.onlineText}function W(e){var n;return null===(n=V(e))||void 0===n?void 0:n.offlineText}function Y(e){var n;return null===(n=(0,U.c)(e))||void 0===n?void 0:n.tags}function q(e){return Boolean(Y(e))}var X=i(63861),K=(0,o.memo)(function(e){var n=e.items,i=(0,o.useMemo)(function(){return Array.isArray(n)?null==n?void 0:n.map(function(e,i){return(0,t.jsx)(o.Fragment,{children:(0,t.jsxs)("span",{className:"mplg_li_item",children:[(0,t.jsxs)("span",{className:"mplg_caption",children:[e.title,!e.withFlag&&i!==n.length-1&&","]}),e.withFlag&&(0,t.jsx)("img",{className:"mplg_flag",alt:"",src:(0,X.oF)("sprite/bc/model_flags_atlas2.svg#svg_".concat(e.code))})]})},e.title)}):null},[n]);return(0,t.jsx)(o.Fragment,{children:i})}),Z=function(e,n){var i,t;if(!(null===(t=null===(i=e.miniProfile.profileDetails)||void 0===i?void 0:i.items)||void 0===t?void 0:t.length))return e;var o=e.miniProfile.profileDetails.items.map(function(e){return"lastBroadcast"===e.id?(0,p.Cl)((0,p.Cl)({},e),{value:[n]}):e});return{miniProfile:(0,p.Cl)((0,p.Cl)({},e.miniProfile),{profileDetails:(0,p.Cl)((0,p.Cl)({},e.miniProfile.profileDetails),{items:o})})}},J=i(39222),Q=i(68956),$=(0,o.memo)(function(){var e,n,i,s=(0,a.d4)(V);if(e=(0,a.wA)(),n=(0,a.d4)(z),i=(0,a.d4)(W),(0,o.useEffect)(function(){Q.I.on("ServerMessageEvent:PERFORMER_STATUS_CHANGE",function(t){var o=[J.Q.STATUS_PUBLIC].includes(t);e(Z)(o?n:i)})},[e,n,i]),!(0,d.j)(s))return null;var l=s.items;return(0,t.jsx)("div",{className:"mplg_i_list mplg_details",children:null==l?void 0:l.map(function(e){var n="languages"===e.id,i="name"===e.id;return e.value?(0,t.jsxs)("div",{className:"mplg_list_row",children:[(0,t.jsx)("div",{className:"mplg_list_item __title",children:e.label}),(0,t.jsxs)("div",{className:(0,_.n)({mplg_list_item:!0,__name:i}),children:[!n&&Array.isArray(e.value)&&e.value.join(", "),n&&(0,t.jsx)(K,{items:e.value})]})]},e.label):null})})}),ee=i(19223),ne=i(53336),ie=i(73437),te="MiniProfileTagsModal_AllLink",oe="MiniProfileTagsModal_CheckboxDontShow",ae="MiniProfileTagsModal_CloseBtn",se="MiniProfileTagsModal_Modal",le=i(43921),re="MiniProfileTagsModalFullPrivateChatButton_BTN",ce=i(27510),ue=(0,o.memo)(function(e){var n=(e||{}).text,i=void 0===n?"":n,a=function(e){void 0===e&&(e={});var n=(e||{}).handleClose,i=void 0===n?ie.noop:n;return{handleClickFullPrivateChat:(0,o.useCallback)(function(e){return e.preventDefault(),chat.paidShowPopup(ce.j.FULL_PRIVATE_CHAT,!0),window.scrollTo(0,0),i(),!1},[i])}}(e).handleClickFullPrivateChat;return(0,t.jsx)(le.$,{className:"__full_private",hint:i,iconType:"#svg_btna_mpl_full_private",testId:re,wrapClass:"__full_private",handler:a})}),de="MiniProfileTagsModalImButton_BTN",_e=function(e){void 0===e&&(e={});var n=(e||{}).handleClose,i=void 0===n?ie.noop:n;return{handleClickImButton:(0,o.useCallback)(function(){return chat.sendPM(!0),i(),!1},[i])}},pe=i(74213),me=i(85374),fe=(0,me.s)(function(){return pe.M.reportEvent(57)},1e3,!0),ve="MiniProfileProfileActionsImButtonBase_BTN",he=function(e){var n=e.privateMessageButton,i=e.isDisabled,o=void 0!==i&&i,a=e.isSmall,s=void 0!==a&&a,l=e.handleClickImButton,r=void 0===l?ie.noop:l,c=n||{},u=c.hint,_=void 0===u?"":u,p=c.isBadgeNew,m=void 0!==p&&p;return(0,d.j)(n)?(0,t.jsx)(le.$,{className:"__im",hint:_,iconType:"#svg_btna_send_message",testId:ve,isDisabled:o,isSmall:s,handler:r,children:m&&(0,t.jsx)("span",{className:"mplg_btn_badge",children:(0,t.jsx)("img",{className:"mplg_btnb_icon",alt:"",src:(0,X.oF)("svg/bc/icon/icon_new_OS_8_white.svg")})})}):null},be=function(e){var n,i=e.privateMessageButton,a=e.isDisabled,s=void 0!==a&&a,l=e.isSmall,r=void 0!==l&&l,c=(n=_e().handleClickImButton,{handleClickImButton:(0,o.useCallback)(function(e){return pe.M.hasEvent(57)&&fe(),n(e)},[n])}).handleClickImButton;return(0,t.jsx)(he,{privateMessageButton:i,isDisabled:s,isSmall:r,handleClickImButton:c})},xe=_e,ge=(0,o.memo)(function(e){var n=(e||{}).text,i=void 0===n?"":n,o=xe(e).handleClickImButton;return(0,t.jsx)(le.$,{className:"__im",hint:i,iconType:"#svg_btna_send_message",testId:de,wrapClass:"__im",handler:o})}),je="MiniProfileTagsModalPrivateChatButton_BTN",Ce=function(e){var n=e.text,i=void 0===n?"":n,a=function(e){var n=(e||{}).handleClose,i=void 0===n?ie.noop:n;return{handleClickPrivateChat:(0,o.useCallback)(function(e){return e.preventDefault(),chat.paidShowPopup(ce.j.PRIVATE_CHAT,!0),window.scrollTo(0,0),i(),!1},[i])}}(e).handleClickPrivateChat;return(0,t.jsx)(le.$,{className:"__private",hint:i,iconType:"#svg_btna_mpl_private",testId:je,wrapClass:"__private",handler:a})},Ne="MiniProfileTagsModalTipButton_BTN",ke=function(e){var n=(e||{}).text,i=void 0===n?"":n,a=function(e){void 0===e&&(e={});var n=(e||{}).handleClose,i=void 0===n?ie.noop:n;return{handleClickSendTipModel:(0,o.useCallback)(function(e){return e.preventDefault(),chat.tipPopup(),window.scrollTo(0,0),i(),!1},[i])}}(e).handleClickSendTipModel;return(0,t.jsx)(le.$,{className:"__tip",hint:i,iconType:"#svg_btna_send_tip",testId:Ne,wrapClass:"__tip",handler:a})},we=i(1887),Pe=function(e){var n,i,a=e.modalArrowRef,s=void 0===a?(0,o.createRef)():a,l=e.modalRef,r=void 0===l?(0,o.createRef)():l,c=e.modalData,u=e.positionModal,d=e.isOpen,m=void 0!==d&&d,f=e.handleClickLinkAllModels,h=void 0===f?ie.noop:f,b=e.handleClose,x=void 0===b?ie.noop:b,g=e.handleDontShowAgain,j=void 0===g?ie.noop:g,C=e.handlePositionModal,w=void 0===C?ie.noop:C,P=e.handleTransitionEnd,y=void 0===P?ie.noop:P,T=u||{},A=T.marginModalBetweenBtn,E=void 0===A?0:A,I=T.modal,L=T.modalArrow,R=T.isTopModalPosition,M=void 0!==R&&R,B=I||{},O=B.left,H=void 0===O?0:O,D=B.top,F=void 0===D?0:D,U=(L||{}).left,V=void 0===U?0:U,G=function(e){var n=e.modalData,i=e.handleDontShowAgain,t=void 0===i?ie.noop:i,a=e.handlePositionModal,s=void 0===a?ie.noop:a,l=n.content.profileLink,r=(0,ee.FC)(null==l?void 0:l.url)||"",c=(0,o.useState)(!1),u=c[0],d=c[1],_=(0,o.useRef)(!1),p=(0,o.useCallback)(function(e){return e.preventDefault(),d(function(e){var n=!e;return _.current=n,n}),!1},[]);return(0,o.useEffect)(function(){return function(){_.current&&t()}},[t]),(0,o.useEffect)(function(){s()},[s]),{actions:{handleClickCheckDontShow:p,handleClickProfileLink:function(e){e.preventDefault(),(0,we.M)(r)}},states:{profileLinkURL:r,isCheckedDontShow:u}}}({modalData:c,handleDontShowAgain:j,handlePositionModal:w}),z=G.actions,W=z.handleClickCheckDontShow,Y=z.handleClickProfileLink,q=G.states,X=q.profileLinkURL,K=q.isCheckedDontShow,Z=c.actions,J=c.content,Q=c.footer,$=Z||{},ne=$.allModelsByTagLink,le=$.fullPrivateChatButton,re=void 0===le?null:le,ce=$.privateChatButton,de=void 0===ce?null:ce,_e=$.privateMessageButton,pe=$.sendTipButton,me=J.profileLink,fe=J.profilePhoto,ve=J.tag,he=J.textInfo,be=void 0===he?null:he,xe=Q.closeButton,je=Q.dontShowAgain,Ne=Boolean(be);return(0,v.j)({ref:r,callback:x}),(0,t.jsxs)("div",(0,p.Cl)({ref:r,className:(0,_.n)({"mplg_tags_modal popover-light":!0,__show:m}),style:{left:"".concat(H?"".concat(H,"px"):""),marginTop:"".concat(M?"-":"").concat(E,"px"),top:"".concat(F?"".concat(F,"px"):"")},onTransitionEnd:y},(0,S.A)({baseId:se}),{children:[(0,t.jsx)("div",{ref:s,className:(0,_.n)({bot:M,corner:!0,top:!M}),style:{left:V}}),(0,t.jsxs)("div",{className:"mplg_tm_inner popover-light-inner",children:[(0,t.jsx)("div",{className:"mplg_tm_title",children:trans("Tag information: %tag%",{tag:''.concat(ve,"")})}),(0,t.jsx)("div",{className:"mplg_tm_text",children:trans("If you want to see %s1%«%tag%»%s2% performed by %a1%%avatar% %displayname%%a_cl%, invite the model to a private chat or send generous tips, telling about your wish in a free chat or in a private message.",{a1:''),a_cl:"",avatar:"').concat((null===(i=null==fe?void 0:fe.image)||void 0===i?void 0:i.alt)||'),displayname:(0,ee.b8)(null==me?void 0:me.text),s1:'',s2:"",tag:ve||"span"},{onClick:Y})}),Ne&&(0,t.jsx)("div",{className:"mplg_tm_text __info",children:be}),(0,t.jsxs)("div",{className:"mplg_tm_action bc_flex bc_flex_wrap",children:[pe&&!pe.disabled&&(0,t.jsx)(ke,{text:pe.text,handleClose:x}),de&&!de.disabled&&(0,t.jsx)(Ce,{text:de.text,handleClose:x}),re&&!re.disabled&&(0,t.jsx)(ue,{text:re.text,handleClose:x}),_e&&!_e.disabled&&(0,t.jsx)(ge,{text:_e.text,handleClose:x})]}),(0,t.jsx)("div",{className:"mplg_tm_link_wrp",children:(0,t.jsx)("a",(0,p.Cl)({className:"mplg_tm_link bc_bold",href:(0,ee.FC)(null==ne?void 0:ne.url),rel:"noopener noreferrer",target:"_blank",onClick:h},(0,S.A)({baseId:te}),{children:(0,ee.b8)(null==ne?void 0:ne.text)}))}),(0,t.jsxs)("div",{className:"mplg_tm_footer bc_flex bc_flex_justify_s_between bc_flex_items_center",children:[(0,t.jsxs)("span",(0,p.Cl)({className:"mplg_tm_label bc_flex bc_flex_items_center",onClick:W},(0,S.A)({baseId:oe}),{children:[(0,t.jsx)("span",{className:(0,_.n)({"mplg_tm_mark bc_flex bc_flex_full_center":!0,__select:K}),children:(0,t.jsx)(N.A,{group:"mplg_tm_arrow",icon:"#svg_mpl_checkbox_arrow",url:k.sS})}),(0,ee.b8)(null==je?void 0:je.label)]})),(0,t.jsx)("button",(0,p.Cl)({className:"bt30 bt30 bt30_grey mplg_tm_btn",onClick:x},(0,S.A)({baseId:ae}),{children:(0,ee.b8)(null==xe?void 0:xe.text)}))]})]})]}))},Se=((0,i(31279).getRealDomain)(),"MINI_PROFILE_TAG_ITEM"),ye="MINI_PROFILE_TAG_WRAP",Te="MINI_PROFILE_TAGS_ROOT",Ae=i(40961),Ee=i(87410),Ie=function(e,n){void 0===n&&(n=Ee.a);var i=(0,o.useState)(e),t=i[0],a=i[1];return[t,(0,o.useCallback)(function(e){a(function(i){var t=e instanceof Function?e(i):e;return n(i,t)?i:t})},[n])]},Le=i(95290),Re=i(83966),Me=i(85340),Be=i(92340),Oe=(0,o.memo)(function(){var e=(0,a.d4)(Y),n=e||{},i=n.header,s=void 0===i?{}:i,l=n.tags,r=void 0===l?[]:l,c=function(e){var n=e||{},i=n.modelName,t=void 0===i?"":i,a=n.tags,s=void 0===a?[]:a,l=n.isTagPopupAvailable,r=void 0!==l&&l,c=(0,o.useState)(!1),u=c[0],d=c[1],_=Ie(null),m=_[0],f=_[1],v=(0,o.useState)(!1),h=v[0],b=v[1],x=(0,o.useState)(!1),g=x[0],j=x[1],C=(0,o.useState)(r),N=C[0],k=C[1],w=(0,o.useState)(!1),P=w[0],S=w[1],y=Ie({tagsBtn:null,tagsWrp:null}),T=y[0],E=y[1],I=Ie({marginModalBetweenBtn:0,modal:{left:null,top:null},modalArrow:{left:0},isTopModalPosition:!1}),L=I[0],R=I[1],M=(0,o.useRef)(null),B=(0,o.useRef)(null),O=(0,o.useRef)(null),H=(0,o.useRef)(null),D=(0,o.useRef)(null),F=(0,o.useRef)(0),U=(0,o.useRef)(0),V=(0,o.useRef)(!1),G=Ie(null),z=G[0],W=G[1],Y=(0,Me.f)().sendRequest,q=(0,o.useCallback)(function(e){return(0,p.sH)(void 0,void 0,void 0,function(){var n;return(0,p.YH)(this,function(i){switch(i.label){case 0:return[4,Y(e,{method:"GET"})];case 1:return(n=i.sent()).errors?[2,!1]:(W(n.data),[2,!0])}})})},[Y,W]);(0,o.useEffect)(function(){if(null!==m)return clearTimeout(U.current),clearTimeout(F.current),F.current=window.setTimeout(function(){return(0,p.sH)(void 0,void 0,void 0,function(){var e,n;return(0,p.YH)(this,function(i){switch(i.label){case 0:return[4,q(m.popupApiUrl)];case 1:return i.sent()&&(d(!0),E({tagsBtn:null===(e=null==D?void 0:D.current)||void 0===e?void 0:e.getBoundingClientRect(),tagsWrp:null===(n=null==B?void 0:B.current)||void 0===n?void 0:n.getBoundingClientRect()}),U.current=window.setTimeout(function(){return b(!0)},Le.d)),j(!1),V.current=!1,[2]}})})},200),function(){clearTimeout(F.current),clearTimeout(U.current)}},[q,m,E]);var X=(0,o.useCallback)(function(e){return function(n){return n.preventDefault(),b(!1),j(!0),V.current=!0,f(e),!1}},[f]),K=(0,o.useCallback)(function(){var e=T.tagsBtn,n=T.tagsWrp;if(e&&n){var i=O.current.getBoundingClientRect(),t=0,o=e.left-n.left+e.width+40,a=0,s=0,l=e.top+e.height+i.height+15>window.innerHeight&&e.top+e.height>i.height+15,r=0;r=l?e.top-n.top-i.height:e.top-n.top+e.height,A.isRTLCulture?(e.left-n.left<40?a=e.left-n.left:(t=40,a=e.left-n.left-t),s=e.width/2+t-7):(o>n.width?a=e.left-n.left-(i.width-e.width):(t=40,a=e.left-n.left-(i.width-e.width)+t),s=i.width-e.width/2-t-7),R({marginModalBetweenBtn:15,modal:{left:a,top:r},modalArrow:{left:s},isTopModalPosition:l})}},[T,R]),Z=(0,o.useCallback)(function(){h||(P&&z&&S(!1),d(!1))},[P,h,z]),J=(0,o.useCallback)(function(){V.current||(0,Ae.unstable_batchedUpdates)(function(){f(null),b(!1),D.current=null,V.current=!1})},[f]),Q=(0,o.useCallback)(function(){S(!0),J()},[J]),$=(0,o.useCallback)(function(){Be.A.registerEvent(Re.A.MINI_PROFILE_TAG_POPUP),k(!1),f(null)},[f]);return(0,o.useEffect)(function(){z&&z.content&&z.content.profileLink&&z.content.profileLink.text!==t&&J()},[J,z,t]),(0,o.useEffect)(function(){return window.addEventListener("resize",J),function(){window.removeEventListener("resize",J)}},[J]),(0,o.useEffect)(function(){var e,n,i;null===(i=null===(n=null===(e=null==M?void 0:M.current)||void 0===e?void 0:e.scrollContentEl)||void 0===n?void 0:n.scrollTo)||void 0===i||i.call(n,0,0)},[s]),{miniProfileTagsRef:B,modalArrowRef:H,modalRef:O,scrollRef:M,selectedItemRef:D,modalData:z,positionModal:L,selectItem:m,isLoadingModal:g,isModalTagAvailable:N,isOpen:h,isShowModal:u,handleClickLinkAllModels:Q,handleClickMiniProfileTagsItem:X,handleCloseModal:J,handleDontShowAgain:$,handlePositionModal:K,handleTransitionEnd:Z}}(e),u=c.miniProfileTagsRef,m=c.modalArrowRef,f=c.modalRef,v=c.scrollRef,h=c.selectedItemRef,b=c.modalData,x=c.positionModal,g=c.selectItem,j=c.isLoadingModal,C=c.isModalTagAvailable,k=c.isOpen,w=c.isShowModal,P=c.handleClickLinkAllModels,y=c.handleClickMiniProfileTagsItem,T=c.handleCloseModal,E=c.handleDontShowAgain,I=c.handlePositionModal,L=c.handleTransitionEnd;if(!(0,d.j)(e))return null;var M=C&&w&&Boolean(b);return(0,t.jsxs)("div",(0,p.Cl)({ref:u,className:"mplg_tags bc_flex bc_flex_column"},(0,S.A)({baseId:Te}),{children:[(0,t.jsx)("h2",{className:"mplg_t_title",children:s}),(0,t.jsx)(R.M,{ref:v,className:"mplg_scroll",isScrollPositionClassNameEnabled:!0,blockedScroll:C&&(j||w),classBarHiddenName:"bc_scroll_hidden",isOutWrapBar:!0,children:(0,t.jsx)("div",{className:"mplg_t_list bc_flex bc_flex_wrap",children:r.map(function(e){var n,i,o,a,s=(null==g?void 0:g.popupApiUrl)===(null==e?void 0:e.popupApiUrl)&&C,l=(0,ee.FC)(null===(i=null==e?void 0:e.link)||void 0===i?void 0:i.url),r=(0,ee.b8)(null===(o=null==e?void 0:e.link)||void 0===o?void 0:o.text);return(0,t.jsx)("div",(0,p.Cl)({className:"mplg_t_wrp bc_flex"},(0,S.A)({baseId:ye}),{children:(0,t.jsxs)("a",(0,p.Cl)({ref:s?h:null,className:(0,_.n)((n={},n.__select=s,n.mplg_t_item=!0,n)),href:l,target:null===(a=e.link)||void 0===a?void 0:a.target,onClick:C?y(e):ie.noop},(0,S.A)({baseId:Se}),{children:[(0,t.jsx)("span",{itemProp:"makesOffer",children:r}),C&&s&&j&&(0,t.jsx)("span",{className:"bc_spinner_wrp mplg_btn_spinner __show",children:(0,t.jsx)(N.A,{group:"bc_spinner",icon:"#svg_ui_circle_loader",url:ne.Jp})})]}))}),l)})})}),M&&(0,t.jsx)(Pe,{modalArrowRef:m,modalRef:f,modalData:b,positionModal:x,isOpen:k,handleClickLinkAllModels:P,handleClose:T,handleDontShowAgain:E,handlePositionModal:I,handleTransitionEnd:L})]}))}),He=(0,o.memo)(function(){var e=(0,a.d4)(G),n=(0,a.d4)(q);return e||n?(0,t.jsxs)("div",{className:"mplg_about_wrp bc_flex bc_flex_justify_s_between",children:[(0,t.jsx)($,{}),(0,t.jsx)(Oe,{})]}):null}),De=i(61710),Fe=i(72832),Ue=i(22938),Ve=(0,o.memo)(function(){var e=function(){var e=(0,a.d4)(r.Z4),n=(0,a.d4)(De.G),i=n||{},t=i.albums,o=void 0===t?[]:t,s=i.label,l=void 0===s?"":s,c=i.showMoreLink,u=void 0===c?null:c,d=i.isAuthenticated;return{actions:{handleShowMoreClick:function(){(null==u?void 0:u.url)&&window.open((0,ee.FC)(u.url))}},states:{albums:o,label:l,miniProfileAlbums:n,miniProfileUsername:e,showMoreLink:u,isAuthenticated:void 0!==d&&d}}}(),n=e.actions.handleShowMoreClick,i=e.states,o=i.albums,s=i.label,l=i.miniProfileAlbums,c=i.miniProfileUsername,u=i.showMoreLink,_=i.isAuthenticated,m=(0,Fe.Eg)((0,D.o)(c)),f=m.actions.openPhotoGalleryByAlbum,v=m.states.loadingIdState;return(0,d.j)(l)&&o.length?(0,t.jsxs)("div",{className:"mplg_list_row __picture",children:[(0,t.jsx)("div",{className:"mplg_list_item __title",children:s}),(0,t.jsxs)("div",{className:"mplg_list_item bc_flex_column",children:[(0,t.jsx)("div",{className:"mplg_l_pic_wrp bc_media_thumb_wrp bc_flex bc_flex_wrap",children:o.map(function(e,n,i){return(0,t.jsx)(Ue.gE,(0,p.Cl)({},e,{isAuthenticated:_,isLoading:v===e.albumId,onAlbumClick:function(){return f({albumList:i,albumToOpen:e})},onPhotoClick:function(){return f({albumList:i,albumToOpen:e})}}),e.albumId)})}),!!(null==u?void 0:u.url)&&(0,t.jsx)("div",{className:"mplg_l_link",children:(0,t.jsx)("button",{className:"bc_fake_link __btn",onClick:n,children:(0,ee.b8)(null==u?void 0:u.text)})})]})]}):null}),Ge=i(64862),ze=i(47077);function We(e){var n;return null===(n=(0,U.c)(e))||void 0===n?void 0:n.showFullProfileButton}var Ye=(0,o.memo)(function(){var e=function(){var e=(0,a.d4)(We)||{},n=e.badgeNew,i=e.link;return{actions:{handleProfileLinkClick:function(e){e.preventDefault(),(0,we.M)(null==i?void 0:i.url)}},states:{badgeNew:n,link:i}}}(),n=e.actions.handleProfileLinkClick,i=e.states,o=i.badgeNew,s=i.link;return s?(0,t.jsx)("div",{className:"mplg_action_wrp bc_flex bc_flex_justify_center",children:(0,t.jsxs)("a",{className:"mplg_p_btn bc_inline_flex bc_flex_full_center",href:(0,ee.FC)(s.url),rel:s.rel,target:s.target,onClick:n,children:[(0,t.jsx)(N.A,{group:"mplg_pbtn_icon",icon:"#svg_mpl_people",url:k.sS}),!!o&&(0,t.jsx)(ze.E,{classModifier:"mplg_pbtn_badge",icon:Ge.S.NEW}),null==s?void 0:s.text]})}):null}),qe=i(14790);function Xe(e){var n;return null===(n=(0,U.c)(e))||void 0===n?void 0:n.fanBoost}var Ke=i(19846),Ze=i(25383),Je=i(67780),Qe=i(67356),$e=i(81444),en=i(73324),nn=i(88526),tn=i(41669),on=i(2268),an=function(e){var n=e.displayName,i=e.handleBuy,a=e.handleClose,s=e.disabled,l=(0,o.useRef)(null);return(0,v.j)({ref:l,callback:a}),(0,t.jsxs)("div",{ref:l,className:"popover-light raise_buy_modal",children:[(0,t.jsx)("div",{className:"corner top"}),(0,t.jsxs)("div",{className:"inner popover-light-inner",children:[(0,t.jsx)("div",{className:"rb_m_close",onClick:a,children:"×"}),(0,t.jsxs)("div",{className:"rb_m_inner bc_flex bc_flex_column",children:[(0,t.jsx)("img",{className:"rb_m_icon bc_flex_item_center",src:(0,X.oF)("svg/bc/icon/icon_fan_boost.svg"),alt:""}),(0,t.jsxs)("div",{className:"rb_m_title_wrp",children:[(0,t.jsx)("div",{className:"rb_m_title",children:__("Buy Fan Boost")}),(0,t.jsx)("div",{className:"rb_m_sub_title",children:trans("Price: %amount% %tokens_plural%",{amount:Qe.K,tokens_plural:''.concat(on.kX.pluralise("tokens",Qe.K),"")})})]}),trans("%st%By activating Fan Boost you will move%st_cl% %displayname% %st%model to the %b%1st place%b_cl% of the website homepage for %b%%seconds% seconds.%b_cl%%st_cl%",{displayname:''.concat(n,""),seconds:Qe.r,st:'',st_cl:"",b:'',b_cl:""})]}),(0,t.jsx)("div",{className:"rb_m_action",children:(0,t.jsx)("button",{className:(0,_.n)({"mls_btn bt30_green rb_m_btn":!0,__disabled:s}),onClick:i,children:__("Buy and Activate")})})]})]})},sn=i(2597),ln=i(77679),rn=function(e){var n=e.timeout,i=e.displayName,a=e.isVipAvailable,s=e.handleClose,l=(0,o.useRef)(null),r=(0,X.ip)("@member_account_vip_overview"),c=(0,X.ip)("@member_account_membership");return(0,v.j)({ref:l,callback:s}),(0,t.jsxs)("div",{ref:l,className:(0,_.n)({"raise_what_popover popover-light":!0,__vip:a}),children:[(0,t.jsx)("div",{className:"corner top"}),(0,t.jsxs)("div",{className:"inner popover-light-inner",children:[(0,t.jsx)("div",{className:"raise_what_close popover-light-close",onClick:s}),(0,t.jsxs)("div",{className:"raise_popover_text_wrp",children:[(0,t.jsx)("p",{className:"raise_popover_title bc_bold",children:__("Raise model to 1st position")}),(0,t.jsx)(ln.A,{time:n}),(0,t.jsx)("p",{className:"raise_popover_text",children:__("By clicking the button, you will be raising %display_name% to the first position on the main page for 60 seconds. During this time the model's chat room will become much more visible and incredibly popular! A notification about your action will appear in the chat, visible to the model and the other chat users. %display_name% will be sure to appreciate this gesture and be immeasurably grateful to you!",{display_name:i})}),(0,t.jsx)("p",{children:__("Only premium users can take advantage of this feature:")})]}),(0,t.jsxs)("div",{className:"bc_flex",children:[a&&(0,t.jsxs)("div",{className:"raise_popover_status bc_flex bc_flex_column bc_flex_items_center",children:[(0,t.jsx)("a",{className:"bc_flex",href:r,target:"_blank",children:(0,t.jsx)(N.A,{group:"rps_icon",icon:"#svg_msp_vip",url:ne.z1})}),(0,t.jsx)("a",{className:"rps_link",href:r,target:"_blank",children:__("Vip")}),(0,t.jsx)("p",{className:"rps_info",children:__("Once every %count% %days%",{count:10,days:on.kX.pluralise("days",10)})})]}),(0,t.jsxs)("div",{className:"raise_popover_status bc_flex bc_flex_column bc_flex_items_center",children:[(0,t.jsx)("a",{className:"bc_flex",href:c,target:"_blank",children:(0,t.jsx)(N.A,{group:"rps_icon",icon:"#svg_msp_"+sn.A.SAPPHIRE,url:ne.z1})}),(0,t.jsx)("a",{className:"rps_link",href:c,target:"_blank",children:sn.A.getTitle(sn.A.SAPPHIRE)}),(0,t.jsx)("p",{className:"rps_info",children:__("Once every %count% %days%",{count:7,days:on.kX.pluralise("days",7)})})]}),(0,t.jsxs)("div",{className:"raise_popover_status bc_flex bc_flex_column bc_flex_items_center",children:[(0,t.jsx)("a",{className:"bc_flex",href:c,target:"_blank",children:(0,t.jsx)(N.A,{group:"rps_icon",icon:"#svg_msp_"+sn.A.TITAN,url:ne.z1})}),(0,t.jsx)("a",{className:"rps_link",href:c,target:"_blank",children:sn.A.getTitle(sn.A.TITAN)}),(0,t.jsx)("p",{className:"rps_info",children:__("Once every %count% %days%",{count:3,days:on.kX.pluralise("days",3)})})]}),(0,t.jsxs)("div",{className:"raise_popover_status bc_flex bc_flex_column bc_flex_items_center",children:[(0,t.jsx)("a",{className:"bc_flex",href:c,target:"_blank",children:(0,t.jsx)(N.A,{group:"rps_icon",icon:"#svg_msp_"+sn.A.DIAMOND,url:ne.z1})}),(0,t.jsx)("a",{className:"rps_link",href:c,target:"_blank",children:sn.A.getTitle(sn.A.DIAMOND)}),(0,t.jsx)("p",{className:"rps_info",children:__("Once every day")})]}),(0,t.jsxs)("div",{className:"raise_popover_status bc_flex bc_flex_column bc_flex_items_center",children:[(0,t.jsx)("a",{className:"bc_flex",href:c,target:"_blank",children:(0,t.jsx)(N.A,{group:"rps_icon",icon:"#svg_msp_"+sn.A.EXCLUSIVE,url:ne.z1})}),(0,t.jsx)("a",{className:"rps_link",href:c,target:"_blank",children:sn.A.getTitle(sn.A.EXCLUSIVE)}),(0,t.jsx)("p",{className:"rps_info",children:__("%count% times per day",{count:3})})]})]})]})]})},cn=i(27705),un=function(e){var n=e.firstPlaceButtonBoostTimeLeft,i=void 0!==n&&n,o=e.testIdButton,a=void 0===o?"FanBoostButtonTestID":o,s=e.isActiveAnimation,l=void 0!==s&&s,r=e.onFanBoostClick,c=void 0===r?ie.noop:r;return(0,t.jsx)("button",(0,p.Cl)({className:(0,_.n)({raise_model_btn:!0,__active:l}),onClick:c},(0,S.A)({baseId:a}),{children:(0,t.jsx)(cn.u,{isFanBoosted:i})}))},dn="FAN_BOOST_TEST_ID_BUTTON",_n="FAN_BOOST_TEST_ID_BUTTON_HINT",pn="FAN_BOOST_TEST_ID_WRAPPER",mn=function(e){var n=e.balance,i=void 0===n?0:n,a=e.fanBoost,s=e.isAuthenticated,l=void 0!==s&&s,r=e.isPaymentsDisabled,c=void 0!==r&&r,u=e.isVip,d=void 0!==u&&u,m=a||{},f=m.modelDisplayName,v=void 0===f?"":f,h=m.isMemberAvailable,b=void 0!==h&&h,x=m.isModelAvailable,g=void 0!==x&&x,j=function(e){var n=e.balance,i=e.fanBoost,t=e.isAuthenticated,a=e.isPaymentsDisabled,s=(0,o.useRef)(0),l=(0,o.useState)({timeout:0,isOpen:!1}),r=l[0],c=l[1],u=(0,o.useState)(!1),d=u[0],_=u[1],p=(0,o.useState)((0,$e.Rh)(i)),m=p[0],f=p[1],v=(0,o.useState)(!!t&&(0,$e.J8)(i)),h=v[0],b=v[1],x=function(){var e=(0,$e.ju)(i);c({timeout:Math.ceil(e/1e3),isOpen:!0})},g=function(){return _(!0)},j=(0,o.useCallback)(function(){if(a)tn('a[rel="webcamsupport"]').click();else{var e=i||{},o=e.modelUsername,s=e.isMemberAvailable,l=e.isModelAvailable;if(!t||!l||s)throw _(!1),new Error("[FanBoostWidget] buy not available: ".concat([Number(!!t),Number(!!l),Number(!s)].join("")));if(n0?"".concat(u,":"):"",c,":",r,":",l]})}),wi=i(67329),Pi=i(96800),Si=i(84435),yi=i(26397),Ti=i(35363),Ai={DELAY_HIDDEN_BETWEEN_FULL_SCREEN:function(){if(Si.BrowserDetect.isSafari_MacOS()){return 500}return 0}(),DELAY_VISIBILITY_TURN_ON:4*Le.d,GLOBAL_MARGIN:{BOTTOM:20,LEFT:5,RIGHT:20,TOP:5},INITIAL_POSITION_FULLSCREEN:{X:A.isRTLCulture?-10:0,Y:0},INITIAL_POSITION_OFFSET:{X:A.isRTLCulture?-20:20,Y:10}},Ei=i(78116),Ii=i(96656),Li=function(e){var n=e.containerRef,i=(0,Ei.t)(function(){return n.current}),t=(0,Ii.l)();return{selfPadding:function(e,n,i){void 0===i&&(i=Ee.a);var t=Ie(e,i),a=t[0],s=t[1];return(0,o.useLayoutEffect)(function(){s(e())},n),a}(function(){if(n.current&&(null==i?void 0:i.width)){var e=getComputedStyle(n.current),t=parseFloat(e.paddingLeft)||0,o=parseFloat(e.paddingRight)||0,a=parseFloat(e.paddingTop)||0,s=parseFloat(e.paddingBottom)||0;return t||o||a||s?{bottom:s,left:t,right:o,top:a,x:t+o,y:s+a}:null}},[n,null==i?void 0:i.width]),selfRect:i,windowSize:t}},Ri=i(11742),Mi=i(14800),Bi=i(24464),Oi=i(19865),Hi=function(e,n){void 0===n&&(n=[]);var i=e.buyTokensLinkRef,t=e.containerRef,a=e.bounds,s=e.resetPosition,l=e.isEnabled,r=(0,o.useState)(!1),c=r[0],u=r[1],d=(0,o.useState)(!1),_=d[0],m=d[1],f=!c,v=l&&_,h=v&&!f?a:null,b=(0,Bi.i)({transformRef:t,bounds:h,pointerOptions:{targetRef:t,excludeEntriesRefsMap:{pointerdown:[i]},throttleDelay:10},isEnabled:v}),x=b.cancelHeld,g=b.offset,j=b.isHeld,C=b.setOffset,N={bounds:a,cancelHeld:x,offset:g,isDragging:j,isEnabled:v,isReady:_,wasDrag:c,setOffset:C};return(0,o.useEffect)(function(){l&&!_&&f&&(s(N)&&!_&&m(!0))},[l,_,f,s,N]),(0,Oi.w)(function(){l&&_&&f&&!j&&s(N)},(0,p.fX)([l,_,h],n,!0)),!l||_||f||m(!0),l||!_||f||m(!1),j&&!c&&u(!0),N},Di=i(80669),Fi=function(e){var n=e.isChatFullScreen,i=e.isEnabled,t=Li(e),a=t.selfPadding,s=!!t.selfRect&&void 0!==a,l=(0,o.useState)(!1),r=l[0],c=l[1],u=function(e){var n=e.props,i=e.selfPadding,t=e.selfRect,a=e.windowSize,s=e.isEnabled,l=e.wasMeasured,r=n.defaultCornerRef,c=t?t.width+((null==i?void 0:i.x)||0):0,u=t?t.height+((null==i?void 0:i.y)||0):0,d=(0,Ei.t)(function(){return s?document.getElementById("js-cc_inner"):null},[s]),_=(0,Mi.r)({handlerOptions:{isEnabled:s},isRTL:A.isRTLCulture}),m=_.refreshScrollInfo,f=_.scrollInfo;(0,Ni.K)(function(){s&&m()},[s]);var v=(0,o.useMemo)(function(){if(!a||!f||!s)return null;var e=Ai.GLOBAL_MARGIN;return(0,oi._b)("ChatPaidShowCountdown Drag Classic bounds update").log({windowScroll:f,windowSize:a}),new DOMRect(f.scrollLeft+e.LEFT,f.scrollTop+e.TOP,a.width-c-e.LEFT-e.RIGHT,a.height-u-e.TOP-e.BOTTOM)},[a,f,s,c,u]),h=(0,o.useCallback)(function(e){var n=e.setOffset;if(!l||!r.current)return(0,oi._b)("ChatPaidShowCountdown Drag Classic resetPosition skip").log(1),!1;var i=Ai.INITIAL_POSITION_OFFSET,t=(0,Ri.N)(r.current);if(!t)return(0,oi._b)("ChatPaidShowCountdown Drag Classic resetPosition skip").log(2),!1;if((0,oi._b)("ChatPaidShowCountdown Drag Classic resetPosition").log(),A.isRTLCulture){var o=document.documentElement.scrollWidth-document.documentElement.clientWidth;n({x:t.x2+o-c+i.X,y:t.y1+i.Y})}else n({x:t.x1+i.X,y:t.y1+i.Y});return!0},[r,c,l]);return Hi((0,p.Cl)((0,p.Cl)({},e),{bounds:v,resetPosition:h,isEnabled:s}),[d,h])}((0,p.Cl)((0,p.Cl)((0,p.Cl)({},e),t),{isEnabled:!n&&i&&s,wasMeasured:s})),d=function(e){var n=e.props,i=e.selfPadding,t=e.selfRect,a=e.windowSize,s=e.isEnabled,l=e.wasMeasured,r=n.fullscreenCornerRef,c=t?t.width+((null==i?void 0:i.x)||0):0,u=(0,o.useMemo)(function(){return a&&t&&s?(0,Di.FR)()?((0,oi._b)("ChatPaidShowCountdown Drag Fullscreen bounds update").log({selfRect:t,windowSize:a},!1),new DOMRect(0,0,a.width-t.width-(i?i.x:0),a.height-t.height-(i?i.y:0))):((0,oi._b)("ChatPaidShowCountdown Drag Fullscreen bounds skip").warn("fullscreen state force disabled"),null):null},[s,i,t,a]),d=(0,o.useCallback)(function(e){var n=e.setOffset;if(!l||!r.current)return(0,oi._b)("ChatPaidShowCountdown Drag Fullscreen resetPosition skip").log(1),!1;var i=Ai.INITIAL_POSITION_FULLSCREEN,t=(0,Ri.N)(r.current);return t?((0,oi._b)("ChatPaidShowCountdown Drag Fullscreen resetPosition").log(),A.isRTLCulture?n({x:window.innerWidth-c+i.X,y:t.y1+i.Y}):n({x:t.x1+i.X,y:t.y1+i.Y}),!0):((0,oi._b)("ChatPaidShowCountdown Drag Fullscreen resetPosition skip").log(2),!1)},[r,c,l]);return Hi((0,p.Cl)((0,p.Cl)({},e),{bounds:u,resetPosition:d,isEnabled:s}),[d])}((0,p.Cl)((0,p.Cl)((0,p.Cl)({},e),t),{isEnabled:n&&i&&s,wasMeasured:s})),_=(i?n?d:u:null)||{},m=_.bounds,f=void 0===m?null:m,v=_.cancelHeld,h=_.isDragging,b=void 0!==h&&h,x=_.isEnabled,g=void 0!==x&&x,j=_.isReady,C=void 0!==j&&j,N=_.wasDrag,k=!!f&&C&&g,w=!(void 0!==N&&N);return(0,o.useEffect)(function(){var e;b&&(null===(e=null===getSelection||void 0===getSelection?void 0:getSelection())||void 0===e||e.empty())},[b]),(0,Ti.E)(function(){if(b&&!n)return(0,wi.e)(),function(){(0,Pi.b)()}},[b,n]),(0,yi.A)({handlerMap:{scroll:{invokeHandler:v}},isEnabled:i&&!n&&b&&!!Si.BrowserDetect.isSafari_MacOS()}),(0,o.useEffect)(function(){if(k&&i){var e=setTimeout(function(){(0,oi._b)("ChatPaidShowCountdown Drag show").log(),c(!0)},Ai.DELAY_VISIBILITY_TURN_ON);return function(){return clearTimeout(e)}}},[k,i]),!r||k&&i||((0,oi._b)("ChatPaidShowCountdown Drag hide").log(),c(!1)),{isDragging:b,isDragReady:k,isSmoothing:w,isVisible:r}},Ui=i(16053),Vi=i(58251),Gi=i.n(Vi),zi=function(e){switch(e){case"fullprivate":return __("Full private chat:");case"group":return __("Group chat:");case"voyeur":return __("Voyeur/Spy Chat:");default:return __("Private Chat:")}},Wi=(0,o.memo)(function(e){var n=e.paidShowPrice,i=e.paidShowType,a=e.remainingSeconds,s=function(){var e=(0,Ui.d4)(u.K5),n=(0,o.useRef)(null),i=(0,o.useRef)(null),t=(0,Ui.d4)(u.U7),a=(0,o.useState)(!1),s=a[0],l=a[1];return(0,yi.A)({targetRef:n,handlerMap:{selectstart:{invokeHandler:function(e){e.preventDefault()}}},isEnabled:!!Si.BrowserDetect.isSafari()}),(0,Ni.K)(function(){l(!0);var e=setTimeout(function(){l(!1)},Ai.DELAY_HIDDEN_BETWEEN_FULL_SCREEN);return function(){return clearTimeout(e)}},[t]),{buyTokensLinkRef:i,containerRef:n,isChatFullScreen:t,isFullMobile:e,isFullScreenChanging:s,handleClickBuyTokens:function(e){e.preventDefault(),chat.buyTokensPopup()}}}(),l=s.buyTokensLinkRef,r=s.containerRef,c=s.isChatFullScreen,d=s.isFullMobile,_=s.isFullScreenChanging,p=s.handleClickBuyTokens,m=Fi({buyTokensLinkRef:l,containerRef:r,props:e,isChatFullScreen:c,isEnabled:!_}),f=m.isDragging,v=m.isDragReady,h=m.isSmoothing,b=m.isVisible;return(0,t.jsxs)(t.Fragment,{children:[f&&(0,t.jsx)("div",{className:(0,ji.A)([Gi().backdrop,c&&Gi().backdrop_fullscreen])}),(0,t.jsxs)("div",{ref:r,className:(0,ji.A)([Gi().container,c&&Gi().container_fullscreen,!b&&Gi().container_hidden,b&&f&&Gi().container_dragging,v&&h&&!f&&Gi().container_smoothPersist]),children:[(0,t.jsx)(N.A,{group:Gi().icon,icon:"#svg_ch_time",url:k.g5}),(0,t.jsxs)("div",{className:Gi().content,children:[(0,t.jsxs)("p",{children:[zi(i),gi.K.SPACE,(0,t.jsx)("span",{className:"bc_fw_bold",children:__("%tokens% %tokens_plural% / minute",{tokens:n,tokens_plural:on.kX.pluralise("tokens",n)})})]}),(0,t.jsx)("p",{children:__("Time remaining based on your Token balance:")}),(0,t.jsxs)("p",{children:[(0,t.jsx)("span",{className:"bc_fw_bold",children:(0,t.jsx)(ki,{remainingSeconds:a})}),gi.K.SPACE,(0,t.jsx)("a",{ref:l,href:(0,X.ip)("@member_buy_tokens"),onClick:p,onPointerDown:d?void 0:function(e){return e.stopPropagation()},children:__("Click here to buy more!")})]})]})]})]})}),Yi=(0,o.memo)(function(e){var n=function(){var e=(0,o.useState)(xi?60:0),n=e[0],i=e[1],t=(0,o.useState)(xi?"private":null),s=t[0],l=t[1],r=(0,a.d4)(_i.R1),c=(0,a.d4)(function(e){return e.isSpaRoutingLoader}),u=(0,a.d4)(function(e){return e.isChatPage});(0,hi.Z9)(pi.R.CHAT_PAID_SHOW_START,function(e){var n=e.detail,t=n.pricePerMinute,o=n.showType;if((0,bi.u)(t)||"number"!=typeof t||t<=0)return i(0),void(0,oi._b)("ChatPaidShow onStartPaidShow").error("incorrect price",e.detail);l(o),i(t)}),(0,hi.Z9)(pi.R.CHAT_PAID_SHOW_STOP,function(){i(0),l(null)});var d=n>0&&r>0?Math.floor(r/n*60):0;return{paidShowPrice:n,paidShowType:s,remainingSeconds:d,isVisible:u&&!c&&d>0}}(),i=n.paidShowPrice,s=n.paidShowType,l=n.remainingSeconds;return n.isVisible?(0,t.jsx)(Wi,(0,p.Cl)({},e,{paidShowPrice:i,paidShowType:s,remainingSeconds:l})):null}),qi=i(17266),Xi=(0,o.memo)(function(){var e=function(){(0,a.d4)(u.Oz),(0,a.d4)(L.Ml),(0,qi.S)();var e=s.A.getState(),n=(0,u.Hz)(e),i=n||{},t=i.sizeHolderHeight,o=i.sizeHolderWidth,l=i.isMobileStream,r=i.isVideoHd;return{height:t,width:o,isAvailable:(0,d.j)(n),isMobileStream:l,isVideoHd:r}}(),n=e.height,i=e.width,o=e.isAvailable,l=e.isMobileStream,r=e.isVideoHd;return o?(0,t.jsx)("svg",{className:(0,_.n)({"video_size_holder js-video_size_holder":!0,__hd:r,__mobile:l}),height:n,width:i,xmlns:"http://www.w3.org/2000/svg"}):null}),Ki=function(e){var n=e.tokensPerMinute;return(0,t.jsxs)("button",{className:"bc_btn bc_btn_private __two_rows bc_flex_column bc_flex_full_center",onClick:function(e){e.preventDefault(),chat.gotoGroupChat()},children:[__("Join Group Chat!"),(0,t.jsxs)("span",{className:"btpr_info js-btpr_info",children:["(",__("%tokens% %tokens_plural% per minute",{tokens:n,tokens_plural:on.kX.pluralise("tokens",n)}),")"]}),(0,t.jsx)("span",{className:"btn_animation"})]})},Zi=function(e){var n=e.tokensPerMinute;return(0,t.jsxs)("button",{className:"bc_btn bc_btn_private __two_rows bc_flex_column bc_flex_full_center",children:[__("Spy Private Chat!"),(0,t.jsxs)("span",{className:"btpr_info js-btpr_info",children:["(",__("%tokens% %tokens_plural% per minute",{tokens:n,tokens_plural:on.kX.pluralise("tokens",n)}),")"]}),(0,t.jsx)("span",{className:"btn_animation"})]})},Ji=function(e){var n=e.chatLocalData,i=n.groupChatTokensPerMinute,o=n.voyeurChatTokensPerMinute;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{id:"bGotoGroup2",className:"private_btn_wrp __two_rows",children:(0,t.jsx)(Ki,{tokensPerMinute:i})}),(0,t.jsx)("div",{id:"bGotoVoyeur2",className:"private_btn_wrp __two_rows",children:(0,t.jsx)(Zi,{tokensPerMinute:o})})]})},Qi={isShow:!0},$i=(0,o.memo)(function(){var e=(0,Ui.d4)(function(e){return e.privatePopupOptions})||{},n=e.chat_show_invite,a=e.private_chat,s=function(){var e=(0,o.useState)(!1),n=e[0],i=e[1],t=function(){i(!0)};return(0,o.useEffect)(function(){return document.addEventListener(pi.R.INVITE_POPUP_SHOW,t),function(){return document.removeEventListener(pi.R.INVITE_POPUP_SHOW,t)}},[]),{mount:n}}().mount;return s&&(0,d.j)(n)&&void 0!==a?(0,t.jsx)(H.N,{getComponent:function(){return Promise.resolve().then(i.bind(i,40742))},props:Qi}):null}),et=(i(40742),function(e){var n=e.link,i=e.rel;return(0,t.jsx)("a",{id:"bBuyTokens",className:"buy_tokens",href:n,rel:i,children:__("Buy more Tokens!")})}),nt=function(e){var n=e.link,i=e.rel;return(0,t.jsx)("a",{id:"bSignup",href:n,rel:i,target:"_blank",children:__("Click here to join for FREE!")})},it=i(20409),tt=function(e){var n=function(e){var n=e.balance,i=(0,a.d4)(_i.R1),t=n||i;return{amount:(0,it.Z)(t),tokensPlural:on.kX.pluralise("tokens",t)}}(e),i=n.amount,o=n.tokensPlural;return(0,t.jsx)("span",{dangerouslySetInnerHTML:{__html:__("You have %s1%%amount% %tokens_plural%%s_end%.",{s1:"",amount:''.concat(i,""),tokens_plural:''.concat(o,""),s_end:""})}})},ot=(0,o.memo)(function(){var e=(0,a.d4)(u.UQ),n=(0,a.d4)(u.pU)||{},i=n.balance,o=n.buyTokens,s=n.buyVip,l=n.paidButtonCells,r=n.signup,c=li.q.isEnabled(ti.i.DESKTOP_CHAT_JOIN_BUTTON_TEXT);return(0,t.jsx)("div",{className:"memberBalance",children:(0,t.jsx)("table",{children:(0,t.jsxs)("tbody",{children:[(0,d.j)(l)&&(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{id:"bPaidButtonsCell"}),(0,t.jsx)("td",{id:"bTipButtonCell"})]}),(e||(0,d.j)(i)||(0,d.j)(o)||(0,d.j)(s))&&(0,t.jsx)("tr",{children:(0,t.jsx)("td",{colSpan:2,children:(0,t.jsxs)("div",{id:"bMemberBalance",children:[(0,t.jsx)(tt,(0,p.Cl)({},i)),(0,d.j)(o)&&(0,t.jsxs)(t.Fragment,{children:[" ",(0,t.jsx)(et,(0,p.Cl)({},o))]}),(0,d.j)(s)&&(0,t.jsx)("a",{id:"bBuyVip",href:null==s?void 0:s.link,rel:null==s?void 0:s.rel,style:{display:"none"}})]})})}),(0,d.j)(r)&&!c&&(0,t.jsx)("tr",{children:(0,t.jsx)("td",{colSpan:2,children:(0,t.jsx)("div",{id:"bMemberBalance",children:(0,t.jsx)(nt,(0,p.Cl)({},r))})})})]})})})}),at=function(e){var n=e.chatShowStatusOptions;if(!n||!(0,d.j)(n))return null;return(0,t.jsx)("div",{className:"chatType",children:__(n.isOffline?__("%modelname% is offline"):n.isPrivateChat?__("%modelname% is in a private chat"):n.isFullPrivateChat?__("%modelname% is in a full private chat"):n.isGroupChat?__("%modelname% is in a group chat"):n.isVipShow?__("%modelname% is in a vip chat"):__("%modelname% is in a public chat"),{"%modelname%":function(e){var i=e.key;return(0,t.jsx)("strong",{className:"online",children:n.displayName},i)}})})},st=(0,o.memo)(function(){var e=(0,a.d4)(function(e){return e.chatShowStatusOptions});return(0,t.jsx)("div",{id:"bCamStatus",className:(0,_.n)({bc_flex:!0,column_header_info:!0,hidden:!(0,d.j)(e)}),children:(0,t.jsx)(at,{chatShowStatusOptions:e})})}),lt=i(36980),rt=function(){return(0,t.jsx)("div",{id:"bPaidButtonTopRow",children:(0,t.jsxs)("div",{id:"bPaidButtonGroup",className:"pbg_anim_wrp bc_flex",children:[(0,t.jsx)("button",{id:"bGotoGroup",className:"pbg_btn __group __first mls_btn mls_btn_dark_green","data-position":"start",children:(0,t.jsxs)("span",{className:"pbg_inner_container",children:[(0,t.jsx)("span",{className:"pbg_icon_hidden"}),(0,t.jsx)("span",{className:"pbg_container_text","data-text-after":__("%_tmp_%Private Chat"),"data-text-before":__("Send Tip"),children:(0,t.jsxs)("span",{className:"pbg_text js-pbg_text","data-text-before":__("%_tmp_%Group Chat"),children:[(0,t.jsx)(N.A,{group:"pbg_icon",icon:"#svg_ch_group_chat",url:k.g5}),(0,t.jsx)("span",{className:"js-pbg_text_inner",children:__("%_tmp_%Group Chat")})]})})]})}),(0,t.jsx)("button",{id:"bGotoPrivate",className:"pbg_btn __private mls_btn mls_btn_dark_green __middle",children:(0,t.jsxs)("span",{className:"pbg_inner_container",children:[(0,t.jsx)("span",{className:"pbg_icon_hidden"}),(0,t.jsx)("span",{className:"pbg_container_text","data-text-after":__("Send Tip"),"data-text-before":__("%_tmp_%Group Chat"),children:(0,t.jsxs)("span",{className:"pbg_text js-pbg_text","data-text-before":__("%_tmp_%Private Chat"),children:[(0,t.jsx)(N.A,{group:"pbg_icon",icon:"#svg_ch_private_chat",url:k.g5}),(0,t.jsx)("span",{className:"js-pbg_text_inner",children:__("%_tmp_%Private Chat")})]})})]})}),(0,t.jsx)("button",{id:"bGotoVoyeur",className:"pbg_btn __voyeur __middle mls_btn mls_btn_red",children:__("Spy Private Chat")}),(0,t.jsx)("button",{id:"bStopShow",className:"pbg_btn __stop __middle mls_btn mls_btn_red","data-position":"start",onClick:function(e){e.preventDefault(),chat.askStopPaidShow()},children:__("Stop Show")}),(0,t.jsx)("button",{id:"bTip",className:"pbg_btn __tip mls_btn mls_btn_dark_green","data-position":"end",onClick:function(e){e.preventDefault(),(0,lt.i)()},children:(0,t.jsxs)("span",{className:"pbg_inner_container",children:[(0,t.jsx)("span",{className:"pbg_icon_hidden"}),(0,t.jsx)("span",{className:"pbg_container_text","data-text-after":__("%_tmp_%Group Chat"),"data-text-before":__("%_tmp_%Private Chat"),children:(0,t.jsxs)("span",{className:"pbg_text","data-text-before":__("Send Tip"),children:[(0,t.jsx)(N.A,{group:"pbg_icon",icon:"#svg_ch_send_tip",url:k.g5}),__("Send Tip")]})})]})})]})})},ct=i(42940),ut=i(7635),dt=i(26774),_t=function(e){var n=e.isLover,i=e.onFadeOut,o=e.isFading;return n?(0,t.jsx)("span",{className:"lb_icon_wrp",children:(0,t.jsx)(N.A,{group:(0,_.n)({lb_icon:!0,__love:n}),icon:"#svg_ch_count_love",url:k.g5})}):(0,t.jsx)("span",{className:(0,_.n)({lb_icon_wrp:!0,__hide:o}),onAnimationEnd:i,children:(0,t.jsx)(N.A,{group:"lb_icon",icon:"#svg_ch_count_love_add",url:k.g5})})},pt=i(98768),mt=(0,o.memo)(function(e){var n=e.children,i=e.isPlaying,a=function(e){var n=e.props,i=n.onAnimationEnd,t=n.onAnimationReady,a=n.isPlaying,s=(0,o.useRef)(null),l=(0,pt.eT)({path:(0,X.oF)("svg_json/lovers_button/lb_icon.json",!0)}),r=l.loadAnimation,c=l.animInstance,u=l.isLoaded,d=l.isInitialized;return(0,o.useEffect)(function(){d&&((0,oi._b)("Chat Lovers Anim loadAnimation").log(s.current),r({container:s.current,loop:!1}))},[r,d]),(0,o.useEffect)(function(){u&&t()},[u,t]),(0,o.useEffect)(function(){a&&c&&c.addEventListener("complete",i)},[c,a,i]),(0,o.useMemo)(function(){a&&c&&((0,oi._b)("Chat Lovers Anim play").log(),c.goToAndPlay(0,!0))},[a,c]),{svgAnimationRef:s}}({props:e}).svgAnimationRef;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:(0,_.n)({lb_icon_wrp:!0,bc_hide:!i}),children:(0,t.jsx)("span",{className:"lb_icon",ref:a})}),!i&&n]})}),ft=i(38588);!function(e){e[e.STOP=0]="STOP",e[e.PENDING=1]="PENDING",e[e.RESIZE=2]="RESIZE",e[e.PLAY=3]="PLAY",e[e.DONE=4]="DONE"}(Mn||(Mn={}));var vt=i(8269),ht=i(25551),bt=i(21755),xt=i(41669),gt=function(e){var n=function(e){var n=e.props.loversButton||{},i=n.username,t=n.isLover,a=n.isAuthenticated,s=n.isFreeMember,l=li.q.isEnabled(ti.i.CHAT_LOVERS_ANIMATION),r=(0,o.useState)(Mn.STOP),c=r[0],u=r[1],d=(0,o.useState)(!1),_=d[0],p=d[1],m=(0,o.useRef)(!1),f=(0,o.useRef)(!1),v=[Mn.PLAY,Mn.DONE].includes(c),h=f.current&&c===Mn.RESIZE,b=[Mn.RESIZE,Mn.PENDING].includes(c),x=l&&(v||b),g=!x&&!t&&a&&!s,j=(0,o.useCallback)(function(){(0,oi._b)("Chat Lovers Anim prepareAnimation").log(),u(function(e){return e===Mn.STOP?Mn.PENDING:e})},[]),C=(0,o.useCallback)(function(){p(!0),m.current=!0,f.current=!0,(0,oi._b)("Chat Lovers Anim startAnimation").log(),u(function(e){return e===Mn.STOP?Mn.PENDING:e})},[]),N=(0,o.useCallback)(function(){(0,oi._b)("Chat Lovers Anim onAnimationReady").log(),u(function(e){return e===Mn.PENDING?Mn.RESIZE:e})},[]),k=(0,o.useCallback)(function(){(0,oi._b)("Chat Lovers Anim onResizeEnd").log(),u(function(e){return e===Mn.RESIZE?Mn.PLAY:e})},[]),w=(0,o.useCallback)(function(){(0,oi._b)("Chat Lovers Anim onAnimationEnd").log(),u(function(e){return e===Mn.PLAY?m.current?Mn.DONE:Mn.STOP:e})},[]),P=(0,o.useCallback)(function(){p(!1),m.current=!1,(0,oi._b)("Chat Lovers Anim onRequestEnd").log(),u(function(e){return e===Mn.DONE?Mn.STOP:e})},[]);return(0,ft.A)(function(){u(Mn.STOP)},[i]),(0,ft.A)(function(){u(function(e){return e===Mn.DONE?Mn.STOP:e})},[t,_]),(0,o.useEffect)(function(){c===Mn.STOP&&(f.current=!1)},[c]),{isAnimPlay:v,isAnimResize:h,isAnimating:x,isAnimatingAvailable:g,onAnimationEnd:w,onResizeEnd:k,onAnimationReady:N,onRequestEnd:P,startAnimation:C,prepareAnimation:j}}({props:e}),i=n.isAnimPlay,l=n.isAnimResize,c=n.isAnimating,u=n.isAnimatingAvailable,d=n.startAnimation,p=n.prepareAnimation,m=n.onAnimationReady,f=n.onAnimationEnd,v=n.onResizeEnd,h=function(e,n,i){var t=e.loversButton||{},l=t.apiUrl,c=t.loversCount,u=t.isAuthenticated,d=t.isFreeMember,_=t.isInChat,p=t.isLover,m=(0,o.useState)(p),f=m[0],v=m[1],h=(0,a.d4)(r.i4),b=(0,o.useMemo)(function(){var e=vt.O[h];return ht.g[e]},[h]),x=(0,o.useCallback)(function(){var e;s.A.getState().isChatPopup?chat.signupPopup():null===(e=xt.signupEvent)||void 0===e||e.call(void 0)},[]),g=(0,bt.J)({apiUrl:l,isAuthenticated:u,isFreeMember:d,isInChat:_,onBeforeRequest:n,onIsNeedBuyToken:function(){if(d){var e=__('Only members with Gold status or higher can send "Love" to a model. %a1%Buy Tokens!%a2%',{a1:''),a2:""});return chat.addServiceMessage(e,"alert")}},onNotIsAuthenticated:x,onSuccess:function(e){var n=e.loversCount,t=e.message;n&&t&&!p?(chat.addServiceMessage(t,"service"),v(!1)):chat.addServiceMessage(t,"alert"),i()}}).handleLoversClick;return(0,o.useEffect)(function(){return document.addEventListener(pi.R.LOVERS_CLICK,g),function(){document.removeEventListener(pi.R.LOVERS_CLICK,g)}},[g]),{loversCount:c,tooltipText:b,isAddedLoverHintVisible:f,isLover:p,handleLoversClick:g,onMouseLeaveHandler:function(){p&&!f&&v(!0)}}}(e,d,n.onRequestEnd),b=h.loversCount,x=h.tooltipText,g=h.isAddedLoverHintVisible,j=h.isLover,C=h.handleLoversClick,N=h.onMouseLeaveHandler,k=(0,ut.n)(j,c),w=(0,ut.n)(b,c);return(0,t.jsxs)("div",{className:(0,_.n)({underChatButton:!0,underChatButtonHasHint:!k||k&&g}),id:"bLoversButton",onMouseLeave:N,onMouseEnter:(0,dt.s)(p,u),children:[(0,t.jsxs)("a",{id:"bLovers",className:(0,_.n)({chatBtn:!0,__disabled:k}),onClick:C,children:[c&&(0,t.jsx)(mt,{onAnimationEnd:f,onAnimationReady:m,isPlaying:i,children:(0,t.jsx)(_t,{isLover:!1,isFading:l,onFadeOut:v})}),!c&&(0,t.jsx)(_t,{isLover:k}),gi.K.SPACE,(0,t.jsx)("span",{id:"sLovers",children:__("%count% lovers%_lowercase_%",{count:(0,it.Z)(w,{thousandSeparator:","})})},Date.now())]}),k&&g&&(0,t.jsx)("span",{className:"underChatButtonHint",children:__("You already sent love!")}),!k&&(0,t.jsx)("span",{className:"underChatButtonHint",children:x})]})},jt=(0,Ui.Ng)(function(e){return{loversButton:e.loversButton}})(function(e){var n=e.loversButton;return(0,t.jsx)(gt,{loversButton:(0,p.Cl)((0,p.Cl)({},n),{isInChat:!0})})}),Ct=i(1236),Nt=function(){return(0,t.jsxs)("div",{className:"js-cht_qoq_wrp cht_qoq_wrp",children:[(0,t.jsxs)("div",{className:"cht_qoq_hint",children:[(0,t.jsx)("div",{className:"cht_qoq_inner",children:(0,Ct.p)("Last week's %s1%winner%s2% of the Queen of Queens contest!",{s1:'',s2:""})}),(0,t.jsx)("div",{className:"cht_qoq_arrow"})]}),(0,t.jsx)("img",{className:"cht_qoq_icon",src:(0,X.oF)("svg/bc/chat/ch_win_qoq.svg"),alt:""})]})},kt=i(32502),wt=function(){var e,n=(e=(0,a.d4)(kt.ad),{state:{isAvailable:(null==e?void 0:e.isQoQWinner)||!1}}).state.isAvailable;return void 0!==n&&n?(0,t.jsx)(Nt,{}):null},Pt=function(e){var n=e.displayName,i=void 0===n?"":n,o=e.profileImage,a=void 0===o?"":o,s=e.profileLink,l=void 0===s?"":s,r=e.onClick;return(0,t.jsx)("a",{className:"column_header_avatar_link",href:l,rel:"profile noreferrer",target:"_blank",onClick:r,children:(0,t.jsx)("img",{className:"column_header_avatar",alt:i,src:a})})},St=function(){var e=function(){var e=(0,a.d4)(u.U7),n=(0,a.d4)(ct.C),i=(0,a.d4)(l.Sp),t=e&&(null==n?void 0:n.isAvatarAvailable),o=(0,d.j)(n),s=o&&e,r=o&&!e,c=o&&(null==i?void 0:i.isNewModel);return{actions:{handleClickToProfileNavigate:function(e){e.preventDefault(),(0,we.M)(null==n?void 0:n.profileLink)}},state:{chatHeaderOptions:n,isShowBadgeNew:c,isShowFullscreenAvatar:t,isShowFullscreenTitle:s,isShowTitle:r}}}(),n=e.actions.handleClickToProfileNavigate,i=e.state,o=i.chatHeaderOptions,s=i.isShowBadgeNew,r=i.isShowFullscreenAvatar,c=i.isShowFullscreenTitle,_=i.isShowTitle,p=o||{},m=p.displayName,f=p.profileImage,v=p.profileLink;return(0,t.jsxs)(t.Fragment,{children:[r&&(0,t.jsx)(Pt,{displayName:m,profileImage:f,profileLink:v,onClick:n}),(0,t.jsxs)("h1",{id:"bChatRoomTitle",className:"bc_flex bc_flex_items_center",children:[c&&(0,t.jsx)("a",{className:"chat_title_link cr_name",href:v,rel:"profile noreferrer",target:"_blank",onClick:n,children:" ".concat(m," ")}),_&&(0,t.jsx)("span",{className:"cr_name",children:m}),s&&(0,t.jsx)(ze.E,{classModifier:"__secondary",icon:Ge.S.NEW_LARGE})]})]})},yt=i(8556),Tt=function(){var e=function(){var e=(0,yt.isTokenInBodyClassList)("chatPopupBody"),n=(0,yt.isTokenInBodyClassList)("embed_chat"),i=(0,a.d4)(ct.C),t=(0,a.d4)(r.b5),o=e&&n?(null==i?void 0:i.profileLinkPrefix)+encodeURIComponent("".concat(window.location.protocol,"://").concat(window.location.host,"/profile/").concat((0,D.o)(null==t?void 0:t.username))):null==i?void 0:i.profileLink;return{actions:{handleProfileLinkClick:function(i){e&&n||!o||(i.preventDefault(),(0,we.M)(o))}},state:{profileLink:o,profileLinkPrefix:null==i?void 0:i.profileLinkPrefix}}}(),n=e.actions.handleProfileLinkClick,i=e.state,o=i.profileLink,s=i.profileLinkPrefix,l=__("Profile");return(0,t.jsx)("div",{className:"underChatButton underChatProfileButton",children:(0,t.jsxs)("a",{id:"bUnderChatViewProfile",className:"chatBtn bUnderChatViewProfile chatProfileLink","data-url_prefix":s,href:o,rel:"profile noreferrer",target:"_blank",onClick:n,children:[(0,t.jsx)(N.A,{group:"cpl_icon",icon:"#svg_ch_profile",url:k.g5}),l]})})},At=(0,o.memo)(function(){var e=(0,a.d4)(ct.C);return(0,d.j)(e)?(0,t.jsxs)("div",{className:"column-header",children:[(0,t.jsxs)("div",{className:"column-header-title",children:[(0,t.jsx)(St,{}),(0,t.jsx)(wt,{}),(0,t.jsx)(H.N,{getComponent:function(){return i.e(712).then(i.bind(i,99127))}})]}),(0,t.jsxs)("div",{className:"column-header-buttons",children:[(0,t.jsx)(Tt,{}),(0,t.jsx)(jt,{})]})]}):null}),Et=function(){return(0,t.jsx)(N.A,{group:"scc_icon __off",icon:"#svg_ch_stop_webcam",url:k.g5})},It=function(e){var n=e.children;return(0,t.jsx)("span",{className:"txt __off",children:n})},Lt=function(){return(0,t.jsx)(N.A,{group:"scc_icon __on",icon:"#svg_ch_start_webcam",url:k.g5})},Rt=function(e){var n=e.children;return(0,t.jsx)("span",{className:"txt __on",children:n})},Mt=function(e){function n(n){var i=e.call(this,n)||this;return i.showShareCam=function(){i.setState({isShow:!0})},i.hideShareCam=function(){i.setState({isShow:!1})},i.state={isShow:!1},i}return(0,p.C6)(n,e),n.prototype.componentDidMount=function(){document.addEventListener(pi.R.SHARE_CAM_SHOW,this.showShareCam),document.addEventListener(pi.R.SHARE_CAM_HIDE,this.hideShareCam)},n.prototype.componentWillUnmount=function(){document.removeEventListener(pi.R.SHARE_CAM_SHOW,this.showShareCam),document.removeEventListener(pi.R.SHARE_CAM_HIDE,this.hideShareCam)},n.prototype.render=function(){var e=this.props,n=e.onHideIconComponent,i=e.onHideTextComponent,o=e.onShowIconComponent,a=e.onShowTextComponent,s=e.onClick,l=this.state.isShow;return(0,t.jsxs)("a",{className:(0,_.n)({off:l,on:!l}),onClick:s,children:[!l&&o,!l&&a,l&&n,l&&i]})},n.defaultProps={onClick:ie.noop,onHideIconComponent:null,onHideTextComponent:null,onShowIconComponent:null,onShowTextComponent:null},n}(o.Component),Bt=Mt,Ot=(0,o.memo)(function(e){var n=e.onClick;return(0,t.jsx)(Bt,{onClick:n,onHideIconComponent:(0,t.jsx)(Et,{}),onHideTextComponent:(0,t.jsx)(It,{children:__("Stop your webcam")}),onShowIconComponent:(0,t.jsx)(Lt,{}),onShowTextComponent:(0,t.jsx)(Rt,{children:__("Start your webcam")})})}),Ht=(0,o.memo)(function(e){var n=e.onClick;return(0,t.jsx)(Bt,{onClick:n,onHideIconComponent:(0,t.jsx)(Et,{}),onHideTextComponent:(0,t.jsx)(It,{children:__("%_small_%Stop your webcam")}),onShowIconComponent:(0,t.jsx)(Lt,{}),onShowTextComponent:(0,t.jsx)(Rt,{children:__("%_small_%Start your webcam")})})}),Dt=(0,o.memo)(function(e){var n=e.children,i=(0,a.d4)(function(e){return e.chatOptionsNew});return(null==i?void 0:i.isShareCamControlsEnabled)?(0,t.jsx)("div",{className:"bShareCamControls chatBtn js-share-cam-controls",children:n}):null}),Ft=(0,o.memo)(function(e){var n=e.onClick;return(0,t.jsx)(Bt,{onClick:n,onHideIconComponent:(0,t.jsx)(Et,{}),onShowIconComponent:(0,t.jsx)(Lt,{})})}),Ut=i(12348),Vt=i(57321),Gt=function(){var e=function(){var e=(0,o.useState)(!1),n=e[0],i=e[1],t=(0,o.useRef)(0),a=(0,o.useRef)(!1),s=(0,o.useRef)(null),l=(0,o.useRef)(null),r=(0,o.useCallback)(function(){i(!0)},[]),c=(0,o.useCallback)(function(){i(!1)},[]),u=(0,o.useCallback)(function(e){if(t.current!==e&&(t.current=e,l.current)){if(0===e)return l.current.innerText="",void c();r(),l.current.innerText=(0,Vt.q)(e)}},[c,r]),d=(0,o.useCallback)(function(){s.current&&(s.current.cancelAnimation(),s.current=null)},[]),_=(0,o.useCallback)(function(e){e!==t.current&&(d(),s.current=(0,Ut.a)({animationDuration:5e3,from:t.current,to:e,onStepAnimate:u}),s.current.startAnimation())},[u,d]);return(0,o.useEffect)(function(){var e=function(e,n,i){void 0===i&&(i=!1);var o=((null==n?void 0:n.totalUsers)||0)+((null==n?void 0:n.totalGuests)||0),s=i&&!o;if(o!==t.current){var l=a.current;if(a.current=!s,i||!l)return d(),void u(o);_(o)}};return Q.I.on("syncUserList",e),function(){Q.I.off("syncUserList",e)}},[u,d,_]),(0,h.l)(function(){d()}),{counterRef:l,isShown:n}}(),n=e.counterRef,i=e.isShown;return(0,t.jsx)("a",{children:__("Users %num%",{"%num%":function(e){var o=e.key;return(0,t.jsx)("span",{ref:n,className:(0,_.jc)(i&&"__show","bChatUsersCount chat_users_count js-total-users")},o)}})})},zt=(0,o.memo)(function(e){var n=e.children;return(0,t.jsxs)("div",{className:"chat_tabs_container",children:[(0,t.jsxs)("ul",{className:"mls_tabs js-tab-button-container",children:[(0,t.jsx)("li",{"data-tab":"history",className:"tab_history selected",children:(0,t.jsx)("a",{children:__("Chat")})}),(0,t.jsx)("li",{"data-tab":"users",className:"tab_users",children:(0,t.jsx)(Gt,{})})]}),(0,t.jsx)("div",{className:"tab_controls",children:n})]})}),Wt=i(53864),Yt=function(){return i.e(705).then(i.bind(i,34083))},qt=function(){return i.e(706).then(i.bind(i,41961))},Xt=function(){return i.e(713).then(i.bind(i,99524))},Kt=function(){return i.e(707).then(i.bind(i,43926))},Zt=function(){var e,n=s.A.getState(),i=(0,r.b5)(n),p=(0,c.e)(n),m=(0,u.Hz)(n),f=(0,u.OD)(n),v=(0,u.UQ)(n),h=(0,u.K5)(n),b=(0,u.uD)(n),x=(0,l.LT)(n),C=(0,a.d4)(u.U7),k=(0,o.useRef)(null),S=(0,o.useRef)(null);(0,o.useEffect)(function(){var e;return(0,oi._b)("Chat MemberChatLayout create").info(),null===(e=chat.setChatHeight)||void 0===e||e.call(chat),s.A.setState({isChatMounted:!0}),function(){return s.A.setState({isChatMounted:!1})}},[]);var y=(chat.localData||{}).isTPLU,T=(0,si.Z)((0,X.ip)("@common_profile?username=".concat((0,D.o)(null==i?void 0:i.username)),!0)),A=b?(0,si.Z)(""):"",E=Boolean(null==m?void 0:m.isMobileStream),L=(0,d.j)(f),R=ai.h.isEnabled("disable_vip"),B=x&&!C;return(0,t.jsxs)("div",{id:"mls_chatconsole",className:"innerchat",style:i?void 0:{display:"none"},children:[(0,t.jsxs)("div",{id:"chatContainer",className:(0,_.n)({chatContainer:!0,cc_amp:y,full_mobile:h}),children:[(0,t.jsx)(w,{}),B&&(0,t.jsx)(di.e,{}),(0,t.jsxs)("div",{id:"js-cc_inner",className:"cc_inner",children:[(0,t.jsxs)("div",{className:"cam-column js-cam_column",children:[(0,t.jsxs)("div",{id:"chat_resizable_wrp",className:"chat_resizable_wrp js-chat_resizable_wrp",children:[(0,t.jsxs)("div",{id:"ResizablePane",className:(0,_.n)((e={"video_resizable_wrp js-video_resizable_wrp":!0},e.__mobile=E,e)),children:[(0,t.jsx)(Xi,{}),(0,t.jsxs)("div",{id:"EmbedSWFHolder",children:[(0,t.jsx)($i,{}),(0,t.jsx)(ci.default,{children:(0,ui.q)()}),(0,t.jsx)("div",{id:"bChatFloatPlayerControl"})]})]}),(0,t.jsx)(ri.AdditionalContainer,{})]}),(0,t.jsx)(rt,{}),(0,t.jsx)(Ji,{chatLocalData:p}),!R&&(0,t.jsx)("div",{id:"bBuyVip2",children:(0,t.jsx)("button",{id:"bBuyVip2_btn",className:"bt35 bt35_green",onClick:function(e){e.preventDefault(),chat.buyVipPopup()},children:__("Buy VIP Status")})}),(0,t.jsx)(ot,{}),(0,t.jsx)(I,{})]}),(0,t.jsx)("div",{className:"chat-wrapper",children:(0,t.jsxs)("div",{className:"chat-column bc_full_size",children:[!B&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(At,{}),(0,t.jsx)(st,{}),(0,t.jsx)(di.N,{}),(0,t.jsx)("div",{className:"tip_king_wrp js-tip_king_wrp"})]}),(0,t.jsxs)(O,{ref:S,children:[v&&(0,t.jsx)("a",{id:"bTipModel",style:{visibility:"hidden"},onClick:function(e){return e.preventDefault()}}),v&&(0,t.jsx)("a",{id:"bTipModelFromMiniProfile",style:{visibility:"hidden"},onClick:function(e){return e.preventDefault()}}),v&&(0,t.jsx)("a",{id:"bTipModelFromTipKing",style:{visibility:"hidden"},onClick:function(e){return e.preventDefault()}}),(0,t.jsxs)("div",{id:"public-chat",className:"chat-tab",children:[(0,t.jsx)(g,{}),(0,t.jsxs)(zt,{children:[(0,t.jsx)("div",{className:"tc_item __empty"}),(0,t.jsxs)("div",{className:"tc_wrp",children:[(0,t.jsxs)("div",{className:"tc_wrp_inner",children:[(0,t.jsx)("div",{className:"tc_item __empty"}),(0,t.jsxs)("div",{className:"tc_wrp_inner_small",children:[(0,t.jsx)("div",{className:"tc_item __small",children:(0,t.jsx)(Dt,{children:(0,t.jsx)(Ft,{onClick:Wt.t})})}),(0,t.jsx)("div",{className:"tc_item",children:(0,t.jsx)(Dt,{children:(0,t.jsx)(Ht,{onClick:Wt.t})})})]})]}),(0,t.jsx)("div",{className:"tc_item",children:(0,t.jsx)(Dt,{children:(0,t.jsx)(Ot,{onClick:Wt.t})})})]})]}),(0,t.jsxs)("div",{ref:k,className:"chat_tabs_content js-chat_tabs_content ".concat(ii.h),children:[(0,t.jsxs)("div",{className:"chat_tabs_item js-chat_tabs_item_history","data-tab":"history",children:[B&&(0,t.jsx)(di.N,{isInChat:!0}),(0,t.jsx)(P.D,{})]}),(0,t.jsx)("div",{className:"chat_tabs_item","data-tab":"users",style:{display:"none"},children:(0,t.jsx)(M,{})}),(0,t.jsx)("div",{className:"notificationContainer",children:(0,t.jsx)("div",{className:"notificationContainerWrapper js-notificationMessages"})})]}),(0,t.jsx)("div",{className:"bc_new_tip_modal __fixed_tip js-new_tip_modal","data-holder":"chat_holder"}),(0,t.jsx)("div",{className:"bc_new_tip_modal __fixed_tip js-new_tip_modal","data-holder":"tip_king_holder"})]}),(0,t.jsx)(j.c,{})]}),(0,t.jsxs)("div",{className:"stream-controls right-panel fs-chat-divider",children:[(0,t.jsxs)("div",{className:"controls-row",children:[(0,t.jsx)("div",{className:"stream-control stream-volume",children:(0,t.jsx)("div",{className:"input-range",children:(0,t.jsx)("input",{defaultValue:"75",type:"range"})})}),v&&(0,t.jsx)("button",{id:"cast-button-fs",className:"stream-control cast-control cast-button",is:"google-cast-button",style:{display:"none"}}),(0,t.jsx)("div",{className:"stream-control stream-fullscreen pl-fullscreen-button"}),(0,t.jsx)("a",{className:"stream-control stream-profile bUnderChatViewProfile","data-url_prefix":A,href:T,rel:"profile noreferrer",target:"_blank",title:__("Profile"),onClick:function(e){e.preventDefault(),(0,we.M)(T)}}),(0,t.jsx)("div",{className:"stream-control stream-mycam",onClick:Wt.t})]}),(0,t.jsx)("div",{className:"controls-row bottom",children:(0,t.jsx)("button",{className:"send-tip",onClick:function(e){e.preventDefault(),chat.tipPopup()},children:__("Send Tip")})})]})]})}),li.q.isEnabled(ti.i.CHAT_PAID_SHOW_COUNTDOWN)&&(0,t.jsx)(Yi,{defaultCornerRef:k,fullscreenCornerRef:S})]}),(0,t.jsx)(ni,{})]}),L&&(0,t.jsx)(H.N,{getComponent:Yt}),v&&(0,t.jsx)(H.N,{getComponent:qt,props:{key:"tapTL",loader:Kt}}),v&&(0,t.jsx)(H.N,{getComponent:qt,props:{key:"tapPL",loader:Xt}}),(0,t.jsx)("div",{id:"bFontSizeTipHolder",style:{display:"none"},children:(0,t.jsxs)("div",{id:"bFontSizeTip",children:[(0,t.jsx)("span",{className:"fs-btn dec",children:(0,t.jsx)(N.A,{group:"fs_icon_symbol",icon:"#svg_icon_font_size_minus",url:ne.ed})})," ",(0,t.jsx)("span",{className:"fs-btn inc",children:(0,t.jsx)(N.A,{group:"fs_icon_symbol",icon:"#svg_icon_font_size_plus",url:ne.ed})})," ",(0,t.jsxs)("span",{className:"sf-ico",children:[(0,t.jsx)("div",{className:"fs_icon_text_overlay"}),(0,t.jsx)(N.A,{group:"fs_icon_text",icon:"#svg_icon_font_size_text",url:ne.ed})]})]})})]})}},77679:function(e,n,i){"use strict";var t=i(15215),o=i(74848),a=i(96540),s=i(83375),l=function(e){function n(n){var i=e.call(this,n)||this;return i.timeoutId=0,i.processTimer=function(){i.timeoutId&&window.clearTimeout(i.timeoutId),i.state.timeout>0&&(i.timeoutId=window.setTimeout(function(){i.setState({timeout:i.state.timeout-1},function(){i.state.timeout>0&&i.processTimer()})},1e3))},i.state={timeout:n.time},i}return(0,t.C6)(n,e),n.prototype.componentDidMount=function(){this.processTimer()},n.prototype.shouldComponentUpdate=function(e,n){return e.time!==this.props.time||n.timeout!==this.state.timeout},n.prototype.componentWillUnmount=function(){this.timeoutId&&window.clearTimeout(this.timeoutId)},n.prototype.render=function(){var e=this.props.isMobile,n=this.state.timeout;if(!n||n<=0)return null;var i=Math.floor(n%60),t=Math.floor(n/60%60),a=Math.floor(n/60/60%24),l={days:Math.floor(n/60/60/24),hours:a,minutes:("0"+t).slice(-2),seconds:("0"+i).slice(-2)},r=l.days>0?__("The button will become active in %days% d %hours% h %minutes% m %seconds% s.",l):__("The button will become active in %countdown%.",{countdown:"".concat(l.hours,":").concat(l.minutes,":").concat(l.seconds)});return(0,o.jsx)("p",{className:(0,s.jc)([e&&"bcc_text_group",!e&&"raise_popover_text no_raise_text"]),children:"".concat(__("You used this feature the allowed number of times.")," ").concat(r)})},n}(a.Component);n.A=l},70509:function(e,n,i){"use strict";i.d(n,{CU:function(){return s},E_:function(){return a},Rm:function(){return o}});var t=i(63861),o=(0,t.oF)("svg_json/pin_unpin_button/pin.json",!0),a=(0,t.oF)("svg_json/pin_unpin_button/unpin.json",!0),s={PIN:"MiniProfilePinButton_PIN",UNPIN:"MiniProfilePinButton_UNPIN"}},74566:function(e,n,i){"use strict";i.d(n,{T:function(){return d}});var t=i(74848),o=i(26489),a=i(22078),s=i(43921),l=i(73437),r=i(83375),c=i(26774),u=i(70509),d=function(e){var n=e.animationContainerRef,i=e.pinButtonWrapRef,d=e.children,_=e.pinButton,p=e.isAnimatingAvailable,m=void 0!==p&&p,f=e.isAnimPlay,v=void 0!==f&&f,h=e.isHoldingWidth,b=void 0!==h&&h,x=e.isNoHint,g=void 0!==x&&x,j=e.isPinned,C=void 0!==j&&j,N=e.isSmall,k=void 0!==N&&N,w=e.prepareAnimation,P=void 0===w?l.noop:w,S=e.handlePin,y=void 0===S?l.noop:S,T=e.handleUnpin,A=void 0===T?l.noop:T,E=e.onMouseEnter,I=void 0===E?l.noop:E,L=e.onMouseLeave,R=void 0===L?l.noop:L,M=_||{},B=M.pinHint,O=void 0===B?"":B,H=M.unpinHint,D=void 0===H?"":H,F=M.isBanned,U=void 0!==F&&F,V=M.isBannedLogged2Profile,G=void 0!==V&&V,z=M.isBannedProfile2Logged,W=void 0!==z&&z,Y=M.isUnPinAvailable,q=!(C||U||G||W),X=void 0!==Y&&Y&&C;if(!(0,a.j)(_)||!q&&!X)return null;var K=b?(0,o.c)(O)>(0,o.c)(D):!C;return(0,t.jsxs)("div",{ref:i,className:(0,r.n)({"mplg_btn bc_flex":!0,__no_hint:g,__pin_animation:v&&K,__small:k}),onMouseEnter:I,onMouseLeave:R,children:[(0,t.jsx)(s.$,{animationContainerRef:n,className:(0,r.n)({"mplg_btn_icon_wrp __animated":!0,__pin:K,__pinned:!K}),hint:K===v?D:O,iconType:K?"#svg_btna_mpl_pin":"#svg_btna_mpl_pinned",testId:K?u.CU.PIN:u.CU.UNPIN,isAnimPlay:v,isInner:!0,isSmall:k,isWithAnimation:!0,handler:K?y:A,onMouseEnter:(0,c.s)(P,m)}),d]})}},32542:function(e,n,i){"use strict";i.r(n),i.d(n,{MiniProfilePinButton:function(){return C},updateMiniProfilePinButton:function(){return o}});var t=i(15215),o=function(e,n){var i,o=e.miniProfile;return o?{miniProfile:(0,t.Cl)((0,t.Cl)({},o),{actions:(0,t.Cl)((0,t.Cl)({},o.actions),{pinModelButton:(0,t.Cl)((0,t.Cl)({},null===(i=o.actions)||void 0===i?void 0:i.pinModelButton),n)})})}:e},a=i(74848),s=i(46517),l=i(89836),r=i(7635),c=i(96773),u=i(92227),d=i(12307),_=i(15514),p=i(39255),m=i(98768),f=i(74566),v=i(70509),h=i(96540),b=i(38588),x=i(80554),g=i(29622),j=i(73437),C=function(e){var n=e.isSmall,i=void 0!==n&&n,o=(0,s.d4)(c.pJ),C=(0,s.d4)(l.Hh),N=(0,s.d4)(p.i),k=(0,m.Rf)({logGroup:"pinButton",isAvailable:(null==o?void 0:o.isAuthenticated)&&!(null==o?void 0:o.isFreeMember)}),w=k.isAnimating,P=k.isAnimatingAvailable,S=k.isPlaying,y=k.prepareAnimation,T=k.resetAnimation,A=k.startAnimation,E=k.onAnimationEnd,I=k.onAnimationReady,L=k.onRequestEnd,R=(0,r.n)((null==o?void 0:o.isPinned)||!1,w),M=(0,m.zK)({path:R?v.E_:v.Rm,isPlaying:S,onAnimationEnd:E,onAnimationReady:I}).animationContainerRef,B=function(e){var n=e.liveTab,i=e.pinButton,o=e.isWithPinHint,a=void 0!==o&&o,s=e.onChatHostChange,l=void 0===s?j.noop:s,r=e.onError,c=void 0===r?j.noop:r,u=e.onRequest,d=void 0===u?j.noop:u,_=e.onResponse,p=void 0===_?j.noop:_,m=(0,h.useRef)(null),f=(0,g.co)((0,t.Cl)((0,t.Cl)({},i),{liveTab:n,pinUserHintEventAvailable:a,useHandlePin:g.uG,useHandleUnPin:g.Pc,onRequest:d,onSuccessPin:p,onSuccessUnPin:p,onError:c,onNotIsAuthenticated:function(){chat.addServiceMessage(__("Pin a model feature is for premium members only"),"alert")},onIsNeedBuyToken:function(){chat.addServiceMessage("".concat(__("Pin a model feature is for premium members only"),". ").concat(__("To become a premium (GOLD) member for life and unlock this feature, all you have to do is buy any amount of tokens one time!")),"alert")}})),v=f.isAvailableHintExplanation,C=f.isAvailableShowHintTooMany,N=f.isHideHint,k=f.isHideHintTooMany,w=f.isShowHintExplanation,P=f.isShowHintTooMany,S=f.handleCloseHint,y=f.handleCloseHintTooMany,T=f.handleHideHintExplanation,A=f.handlePinModel,E=f.handleShowHintExplanation,I=f.handleUnPinModel,L=(0,h.useCallback)(function(){var e=m.current;if(e){var n=e.offsetWidth,i=n?"".concat(n,"px"):"unset";e.style.setProperty("--mplg-btn-width",i)}},[]),R=(0,h.useCallback)(function(e){L(),A(e)},[A,L]),M=(0,h.useCallback)(function(e){L(),I(e)},[I,L]);return(0,h.useEffect)(function(){return document.addEventListener(x.R.PIN_CLICK,R),document.addEventListener(x.R.PIN_CLOSE_HINT,y),function(){document.removeEventListener(x.R.PIN_CLICK,R),document.removeEventListener(x.R.PIN_CLOSE_HINT,y)}},[y,R]),(0,b.A)(function(){l()},[null==i?void 0:i.username]),{pinButtonWrapRef:m,isAvailableHintExplanation:v,isAvailableShowHintTooMany:C,isHideHint:N,isHideHintTooMany:k,isShowHintExplanation:w,isShowHintTooMany:P,handleCloseHint:S,handleCloseHintTooMany:y,handleHideHintExplanation:T,handlePin:R,handleShowHintExplanation:E,handleUnpin:M}}({liveTab:C,pinButton:o,isWithPinHint:N,onChatHostChange:T,onError:function(){L(!1)},onRequest:A,onResponse:L}),O=B.pinButtonWrapRef,H=B.isAvailableHintExplanation,D=B.isAvailableShowHintTooMany,F=B.isHideHint,U=B.isHideHintTooMany,V=B.isShowHintExplanation,G=B.isShowHintTooMany,z=B.handleCloseHint,W=B.handleCloseHintTooMany,Y=B.handleHideHintExplanation,q=B.handlePin,X=B.handleShowHintExplanation,K=B.handleUnpin,Z=H&&V,J=D&&G;return(0,a.jsxs)(f.T,{animationContainerRef:M,pinButtonWrapRef:O,pinButton:o,prepareAnimation:y,isAnimatingAvailable:P,isAnimPlay:S,isNoHint:F||U||H,isPinned:R,isSmall:i,handlePin:q,handleUnpin:K,onMouseEnter:X,onMouseLeave:Y,children:[Z&&(0,a.jsx)(u.R,{pinHintType:d.Y.EXPLANATION,placementType:_.p.MINI_PROFILE,onClose:z}),J&&(0,a.jsx)(u.R,{pinHintType:d.Y.TOO_MANY_PINS,placementType:_.p.MINI_PROFILE,onClose:W})]})}},84408:function(e,n,i){"use strict";i.d(n,{V:function(){return c}});var t=i(74848),o=i(96540),a=i(22078),s=i(19223),l=i(67385),r=i(17551),c=(0,o.memo)(function(){var e=(0,r.i)(),n=e.actions,i=n.handleOpenGallery,o=n.handleShowMoreClick,c=e.states.miniProfileVideos,u=c||{},d=u.label,_=void 0===d?"":d,p=u.showMoreLink,m=void 0===p?null:p,f=u.videos,v=void 0===f?[]:f;return(0,a.j)(c)&&v.length?(0,t.jsxs)("div",{className:"mplg_list_row __video",children:[(0,t.jsx)("div",{className:"mplg_list_item __title",children:_}),(0,t.jsxs)("div",{className:"mplg_list_item bc_flex_column",children:[(0,t.jsx)("div",{className:"mplg_l_video_wrp bc_media_thumb_wrp bc_flex bc_flex_wrap",children:v.map(function(e){return(0,t.jsx)(l.Id,{data:e,onOpenGallery:i},e.thumbImage.src)})}),!!(null==m?void 0:m.url)&&(0,t.jsx)("div",{className:"mplg_l_link",children:(0,t.jsx)("button",{className:"bc_fake_link __btn",onClick:o,children:(0,s.b8)(null==m?void 0:m.text)})})]})]}):null})},3949:function(e,n,i){"use strict";i.d(n,{B:function(){return o}});var t=i(40793),o=function(e){var n;return null===(n=(0,t.c)(e))||void 0===n?void 0:n.socialProfiles}},96800:function(e,n,i){"use strict";i.d(n,{b:function(){return a}});var t=i(31179),o=i(85435),a=function(){var e;(0,t.fY)(document.body),null==(e=document.getElementById(o.vE))||e.remove();var n=document.querySelector("html");(null==n?void 0:n.dataset.overflowY)&&(n.style.overflowY=n.dataset.overflowY,delete n.dataset.overflowY)}},97037:function(e,n,i){"use strict";i.d(n,{h:function(){return t}});var t="js-instruction-step-5"},58927:function(e,n,i){"use strict";i.d(n,{v:function(){return v}});var t=i(74848),o=i(96540),a=i(15215),s=i(842),l=i(91651),r=i(61681),c=i(72983),u=function(){var e=[(0,l.i)(s.Y.GALLERY,document.head,null,(0,r.j)())];return c.isRTLCulture&&e.push((0,l.i)(s.Y.GALLERY_RTL,document.head)),e},d=i(46517),_=i(23385),p=i(72832),m=(0,o.lazy)(function(){return(0,a.sH)(void 0,void 0,void 0,function(){var e;return(0,a.YH)(this,function(n){switch(n.label){case 0:return e=(0,a.fX)((0,a.fX)([Promise.all([i.e(6),i.e(38),i.e(5),i.e(206),i.e(321),i.e(102),i.e(248)]).then(i.bind(i,17310))],u(),!0),[(0,l.i)(s.Y.VIDEO_PLAYER,document.head,null,(0,r.j)())],!1),[4,Promise.all(e)];case 1:return[2,n.sent()[0]]}})})}),f=(0,o.lazy)(function(){return(0,a.sH)(void 0,void 0,void 0,function(){var e;return(0,a.YH)(this,function(n){switch(n.label){case 0:return e=(0,a.fX)([Promise.all([i.e(6),i.e(38),i.e(5),i.e(32),i.e(252),i.e(321),i.e(102),i.e(243)]).then(i.bind(i,70565))],u(),!0),[4,Promise.all(e)];case 1:return[2,n.sent()[0]]}})})}),v=(0,o.memo)(function(e){var n,i,a=e.galleryKey,s=function(e){var n=e.galleryKey,i=(0,d.d4)(p.Qi),t=(null==i?void 0:i[n])||null,a=t||{},s=a.isPhotoOpen,l=a.isVideoOpen,r=!!s||!!l;return(0,o.useEffect)(function(){var e=_.X.instance;if(e&&!e.isStopped&&r)return e.stopPopups(),function(){e.resumePopups()}},[r]),{states:{currentGallery:t}}}(e).states.currentGallery;return(null==s?void 0:s.isPhotoOpen)&&(null===(n=s.photoList)||void 0===n?void 0:n.length)?(0,t.jsx)(o.Suspense,{fallback:null,children:(0,t.jsx)(f,{currentItemIndex:s.currentItemIndex,galleryKey:a,options:s.options,pager:s.pager,photoList:s.photoList})}):(null==s?void 0:s.isVideoOpen)&&(null===(i=s.videoList)||void 0===i?void 0:i.length)?(0,t.jsx)(o.Suspense,{fallback:null,children:(0,t.jsx)(m,{currentItemIndex:s.currentItemIndex,galleryKey:a,options:s.options,pager:s.pager,videoList:s.videoList})}):null})},90894:function(e,n,i){"use strict";i.d(n,{z:function(){return l}});var t=i(15215),o=i(96540),a=i(73437),s=i(41669),l=function(e){var n=e.username,i=e.image,l=e.linkApiUrl,r=void 0===l?"":l,c=(0,o.useState)(i),u=c[0],d=c[1],_=(0,o.useState)(r),p=_[0],m=_[1];return function(e){var n=e.replacer,i=void 0===n?function(e){return e.replace("_avatarm","_profile_s")}:n,t=e.username,l=e.onChangePhoto,r=void 0===l?a.noop:l;(0,o.useEffect)(function(){var e=function(e,n){if(n&&"user"===n.type&&n.data&&3===n.data.type&&n.data.data&&t===n.data.data.username){var o=i(n.data.data.url);r(o,n.data.data.apiUrl)}};return s(document).on("onNoticeSocketMessage",e),function(){s(document).off("onNoticeSocketMessage",e)}},[r,i,t])}({username:n,onChangePhoto:(0,o.useCallback)(function(e,n){d(function(n){return(0,t.Cl)((0,t.Cl)({},n),{src:e})}),m(n)},[])}),(0,o.useEffect)(function(){d(function(e){return(0,t.Cl)((0,t.Cl)({},e),{src:null==i?void 0:i.src})})},[null==i?void 0:i.src]),{image:u,linkApiUrl:p}}},79007:function(e,n,i){"use strict";var t=i(73437),o=i(45667);n.A=function(e){var n,i=e.onEvent,a=void 0===i?t.noop:i;(0,o.o)({handles:(n={},n[5]=a,n)})}},19846:function(e,n,i){"use strict";i.d(n,{Py:function(){return o},R1:function(){return s},xB:function(){return a}});var t=function(e){return e.user},o=function(e){var n;return null===(n=t(e))||void 0===n?void 0:n.username},a=function(e){var n;return null===(n=t(e))||void 0===n?void 0:n.displayName},s=function(e){var n;return(null===(n=t(e))||void 0===n?void 0:n.balance)||0}},39255:function(e,n,i){"use strict";i.d(n,{i:function(){return o}});var t=i(83966),o=function(e){return function(e){return e.userEvents||{}}(e)[t.A.PIN_USER_HINT]||!1}},96688:function(e,n,i){"use strict";i.r(n),i.d(n,{AdditionalContainer:function(){return r}});var t=i(74848),o=i(96540),a=i(46517),s=i(87276),l=function(){return Promise.all([i.e(6),i.e(197)]).then(i.bind(i,4329))},r=(0,o.memo)(function(){var e=(0,a.d4)(function(e){return e.instantBuy}),n=(0,a.d4)(function(e){return e.isModerator}),i=(0,o.useState)(!1),r=i[0],c=i[1];return(0,t.jsx)("div",{id:"stream-additional-container",children:!n&&((null==e?void 0:e.isVisible)||r)&&(0,t.jsx)(s.N,{getComponent:l,onLoad:function(){c(!0)}})})})},16994:function(e,n,i){"use strict";i.d(n,{e:function(){return t}});var t=function(e){return e.chatLocalData}},95290:function(e,n,i){"use strict";i.d(n,{d:function(){return t}});var t=16},16516:function(e,n,i){"use strict";i.d(n,{J:function(){return t}});var t=function(){return Boolean(window.IntersectionObserver)}}}]);