(self.webpackChunkbongacams=self.webpackChunkbongacams||[]).push([[965,843],{27386:function(e,n,t){"use strict";t.r(n);var i=t(31601),o=t.n(i),a=t(76314),s=t.n(a)()(o());s.push([e.id,'/**\n Base desktop core file\n */\n/**\nAll used image sprite variables\n\nFor add generated sprite write:\n@import "images/sprites/{sprite-name}.scss";\n */\n/**\n * Popups variables\n */\n/* stylelint-disable scss/dollar-variable-colon-space-after */\n/* stylelint-enable scss/dollar-variable-colon-space-after */\n/* region default popup styles */\n/* endregion default popup styles */\n/* region logo */\n/* for make wrp equals 150px. Not be more (-1) * $defaultLogoWrpIndent */\n/* for disable vertical jumps */\n/* for make wrp equals 150px. Not be more (-1) * $defaultLogoWrpIndent */\n/* endregion logo */\n/* region header */\n/* endregion header */\n/* region modern popup */\n/* endregion modern popup */\n/* chatContainer padding for use mini profile header */\n/* 182 + 30px | sidebar + sidebar margin */\n/**\n * Font variables\n */\n/* stylelint-disable scss/dollar-variable-colon-space-after, scss/operator-no-unspaced */\n/* stylelint-enable scss/dollar-variable-colon-space-after, scss/operator-no-unspaced */\n/**\n * z-index variables\n *\n * Please add here all z-index values\n */\n/* this must be over $fancy_popup_outer_z_index */\n/* this must be over $fancy_popup_outer_z_index */\n/* this must be over push_notification_alert */\n/* should be more than $gallery_controls_z_index */\n/* .ui-resizable-handle z-index: 17 in initializeResizablePanel.ts */\n/* under the notification there is a topic with relative positioning, z-index is needed so that the topis does not overlap */\n/* gc_progress_bar(9) */\n/* this must be over $translator_hint_z_index */\n/* #playercontainer z-index 25 */\n/* For displaying over content block .bc_scroll_wrapper */\n/* region Listing */\n/* endregion Listing */\n/* region Profile Schedule */\n/* endregion Profile Schedule */\n/* region Profile Header Btn Tooltip */\n/* endregion Profile Header Btn Tooltip */\n/* region Profile settings popup */\n/* must be bigger than .overlay_mask (1111) */\n/* endregion Profile settings popup */\n/* region Dont just watch girl popup */\n/* must be bigger than .djwg_right:after with girl image */\n/* must be bigger than .djwg_right:after with girl image */\n/* endregion Dont just watch girl popup */\n/* region Switch language popup */\n/* value must be greater than $font_size_tip_z_index */\n/* endregion Switch language popup */\n/* region Font size tip */\n/* the value must be less than $switch_language_popup_z_index */\n/* endregion Font size tip */\n/* value must be greater than Shadow of the Icon */\n/* value must be greater than $panel_games_icon_z_index */\n/* value must be greater than $panel_games_popover_z_index */\n/* must be bigger than $paid_show_countdown_z_index */\n/* value must be greater than $panel_games_popup_z_index */\n/* inverted order, to display first icons over last */\n/* must be bigger than $system_msg_activity_avatar_first_z_index (3) to display over */\n/* panel_games z-index 15 */\n/* .chat_fullscreen .chat-column 999 */\n/* should be higher than .bc_popalert.__member_bonus (50) */\n/* ui-dialog. Must be lower, than all header dropdowns */\n/* the value must be greater than $category_dropdown_z_index */\n/* $header_change_lang_wrap_z_index 35 */\n/* need more $popalert_member_bonus_z_index */\n/* more than Instant Messages (1040) */\n/* History Popup more quick_search */\n/* Categories Popup more quick_search */\n/* Saved Searches Popup */\n/* need more error message */\n/* need show modal ui-resizable-handle */\n/* region buy page */\n/* endregion buy page */\n/* should be less than $followers_page_avatar_z_index */\n/* the value must be greater than $followers_page_avatar_status_z_index */\n/* should be higher than Avatar */\n/* should be higher than Avatar */\n/* should be higher than Alert Box Widget (z-index: 10) */\n/* should be higher than Layover */\n/* over chat icons */\n/* more than Instant Messages (1040) */\n/* this must be under \'not chat\' controls */\n/* the value must be greater than the warning popup value [$warning_popup_z_index] */\n/* more than page content */\n/* more than #playercontainer */\n/* should be greater than .ui-resizable-handle z-index: 17 in initializeResizablePanel.ts */\n/* should be higher that fancy popup */\n/* TODO: need refactoring */\n/* the value must be less than $profile_photo_main_z_index */\n/* the value must be greater than $profile_photo_second_z_index */\n/* Simple Tooltip */\n/* Must be lower, than $popover_online_notification_mini_profile_z_index */\n/* the badge must be higher than the stub of the broken picture */\n/* the value must be greater than $login_popup_overlay_z_index */\n/* label must be greater than input */\n/* the value must be greater than $follow_page_list_video_z_index */\n/* over dmca_security */\n/* the value must be greater than $fan_boosted_animation_chat_z_index and less than $header_change_lang_wrap_z_index */\n/* after bc_scroll_bar */\n/* should be higher than .chat_fullscreen .chat-column */\n/* should be higher than $paid_show_countdown_backdrop_fullscreen_z_index */\n/* should be higher than all chat elements and area under the chat */\n/* this must be under $paid_show_countdown_backdrop_z_index */\n/* should be higher than all chat elements */\n/* to display over .bcm_chat_footer element */\n/* the value must be greater than $gallery_z_index */\n/* For displaying over content block .bc_scroll_wrapper */\n/* the value must be greater than $membership_scroll_block_z_index */\n/**\nAll used mixins\n */\n/**\n Images\n\n - img-url("image/path.png") - get full image path by brand\n */\n/**\n Sprites\n */\n/*\n * mixin for model flag pack listing\n*/\n/**\n Fonts\n\n - font-url("font/path.ext") - get full font path by brand\n */\n/**\n * $fontName - real name of font (used for font-family)\n * $fontWeight - font-weight property\n * fontStyle - font-style property\n * $pathFile - path for font files\n * $localName - create local src for search font on client\n * $localName2 - for create local src for search font on client\n */\n/**\n * $fontName - real name of font (used for font-family)\n * $fontWeight - font-weight property\n * fontStyle - font-style property\n * $pathFile - path for font files\n * $display - font-display\n * $subset - unicode-range\n * list $localNameList - creates local src for search font on client, ex ("Open Sans", "Open Sans Regular")\n */\n/**\n * $fontName - real name of font (used for font-family)\n * $fontWeight - font-weight property\n */\n/* TODO: BT-4762 File completed */\n/**\n * $status - membership status\n * $column - column current membership status\n */\n/**\n * NIM mixins\n */\n/*\n * Watermark logo mixin\n*/\n/**\n * Theme mixins\n * Example:\n 1. scss:\n @include light_theme(\'.class_name\') {\n --simple-var-color: #fff;\n }\n converted to:\n body.theme_light .class_name {\n --simple-var-color: #fff;\n }\n 2. scss:\n @include dark_theme_root() {\n --simple-var-color: #000;\n }\n converted to:\n body.theme_dark {\n --simple-var-color: #000;\n }\n 3. scss:\n @include dark_theme_root() {\n .class_name {\n --simple-var-color: #000;\n }\n }\n converted to:\n body.theme_dark .class_name {\n --simple-var-color: #000;\n }\n */\n/**\n * $isBodySelector flag for adding a clarifying selector to the body\n * Specify the parameter only if necessary for the AB test\n */\n/**\n * $isBodySelector flag for adding a clarifying selector to the body\n * Specify the parameter only if necessary for the AB test\n */\n.b_fa_, body.theme_light .b_fa_ {\n --bc-thm-paidShowCountdown-color: #fff;\n --bc-thm-paidShowCountdown-bg: rgba(0, 0, 0, 0.8);\n --bc-thm-paidShowCountdown_drag-bg: rgba(0, 0, 0, 0.85);\n --bc-thm-paidShowCountdown-icon-color: #c92746;\n}\n\n/** calc($fullscreen-chat-column-width - 20px) */\n/* stylelint-disable selector-nested-pattern */\n {\n /**\n * @note use only 0 in left|top|right|bottom properties (need for JS drag in transform styles)\n * @note don\'t use margin, or integrate margin in useChatPaidShowCountdownDragBounds.ts (need for JS drag in transform styles)\n */\n /** Slowly transform on resize and scroll */\n /** Hide clickable elements in an active state */\n}\n.b_fa_ {\n position: absolute;\n top: 0;\n left: 0;\n z-index: 25;\n display: flex;\n box-sizing: border-box;\n padding-top: 10px;\n padding-bottom: 10px;\n color: var(--bc-thm-paidShowCountdown-color);\n background: var(--bc-thm-paidShowCountdown-bg);\n border-radius: 8px;\n transition: background-color 200ms ease-in-out, opacity 200ms;\n user-select: none;\n touch-action: none;\n padding-inline: 10px 12px;\n}\n.b_ga_ {\n transition: background-color 200ms ease-in-out, opacity 200ms, transform 100ms;\n}\n.b_ha_ {\n background-color: var(--bc-thm-paidShowCountdown_drag-bg);\n will-change: transform;\n}\n.b_ia_ {\n visibility: hidden;\n opacity: 0;\n}\n.b_ja_ {\n z-index: 999;\n width: 280px;\n}\n.b_ka_ {\n display: flex;\n flex-direction: column;\n font-size: 14px;\n line-height: 1.4;\n}\n.b_la_ {\n flex: 0 0 auto;\n width: 20px;\n height: 20px;\n color: var(--bc-thm-paidShowCountdown-icon-color);\n margin-inline-end: 10px;\n}\n\n/* stylelint-enable selector-nested-pattern */\n/* stylelint-disable selector-nested-pattern */\n.b_ma_ {\n position: fixed;\n z-index: 24;\n display: block;\n content: "";\n inset: 0;\n}\n.b_na_ {\n z-index: 999;\n}\n\n/* stylelint-disable selector-nested-pattern */\n@media (any-hover: hover) {\n .b_fa_:hover {\n background-color: var(--bc-thm-paidShowCountdown_drag-bg);\n cursor: move;\n }\n}',""]),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},76933:function(e,n,t){var i=t(85072),o=t(27386);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var a={insert:"head",singleton:!1};i(o,a);e.exports=o.locals||{}},53013:function(e,n,t){"use strict";t.d(n,{a:function(){return r}});var i=t(15215),o=t(99525),a=t(27510),s=t(8119),l=t(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,i.Cl)((0,i.Cl)({},e.chatInternalState),{paidShowPopup:(0,i.Cl)((0,i.Cl)({},e.chatInternalState.paidShowPopup),{type:n})})}})},40742:function(e,n,t){"use strict";t.r(n),t.d(n,{InvitePopup:function(){return j},default:function(){return C}});var i=t(74848),o=t(46517),a=t(22078),s=function(e){var n=e.onClick;return(0,i.jsx)("div",{className:"invite-action",children:(0,i.jsx)("button",{className:"mls_btn mls_btn_green","data-testid":"accept-button",onClick:n,children:__("Start Private Chat")})})},l=t(83375),r=t(2268),c=function(e){var n=e.private_chat;return void 0===n||n&&void 0===n.privateChatTokensPerMinute?null:(0,i.jsxs)(i.Fragment,{children:[" (",(0,i.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,i.jsxs)("span",{className:"invite_price",children:[(0,i.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,i.jsx)(u,{children:(0,i.jsx)("span",{className:"ip_custom_wrap",children:(0,i.jsx)(c,{private_chat:n})})})},_=function(e){var n=e.private_chat;return void 0===n||n&&void 0===n.privateChatTokensPerMinute?null:(0,i.jsx)(u,{children:(0,i.jsx)(c,{private_chat:n})})},p=t(96540),m=t(68811),h=t(63861),f=t(53013),v=t(77482),b=t(99525),g=t(73437),x=t(80554),j=function(e){var n=e.isShow,t=(0,o.d4)(function(e){return e.privatePopupOptions})||{},l=t.chat_show_invite,r=t.private_chat,c=t.privateChatInvitationSettings,u=function(e){var n=e.isShow,t=void 0!==n&&n,i=e.id,o=e.source,a=e.displayName,s=e.privateChatInvitationSettings,l=void 0===s?"all":s,r=e.accept,c=void 0===r?g.noop:r,u=e.decline,d=void 0===u?g.noop:u,_=(0,p.useState)(!1),j=_[0],C=_[1],N=(0,p.useRef)(!1),w=(0,p.useRef)(null),k=(0,p.useRef)(null),y=(0,p.useCallback)(function(e){var n,t;k.current&&w.current&&w.current.abort(),w.current=new AbortController;var a=(0,h.Go)((0,h.ip)("@track_url"),{csiid:i,source:o,act:e}),s={cache:"no-cache",method:"GET",headers:{"X-Requested-With":"XMLHttpRequest"}};(null===(n=w.current)||void 0===n?void 0:n.signal)&&(s.signal=w.current.signal),k.current=!0,null===(t=window.fetch)||void 0===t||t.call(window,a,s).then(function(){k.current=!1})},[i,o]),P=function(){var e,n;if(!N.current&&"none"!==l){var t=b.A.getState().isFloatingPlayer;if("friends"===l){if(!b.A.getState().isFollowingsLoaded)return void(0,m.n)(P);if(!(0,v.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}t?y("show"):((0,f.a)(null),y("show"),N.current=!0,C(!0))}};return(0,p.useEffect)(function(){return function(){var e;w.current&&(null===(e=w.current)||void 0===e||e.abort()),N.current=!1,C(!1)}},[a]),(0,p.useEffect)(function(){return t&&P(),document.addEventListener(x.R.INVITE_POPUP_SHOW,P),function(){document.removeEventListener(x.R.INVITE_POPUP_SHOW,P)}},[]),(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(x.R.INVITE_POPUP_CANCEL,e),document.addEventListener(x.R.INVITE_POPUP_CANCEL_MODEL,n)),function(){document.removeEventListener(x.R.INVITE_POPUP_CANCEL,e),document.removeEventListener(x.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(){y("close"),N.current=!1,C(!1),d()},acceptInvite:function(){y("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,i.jsxs)(i.Fragment,{children:[3===l.chatShowInvitationVersion&&(0,i.jsxs)("div",{id:"bInvitePopup",className:"private-invite invite-dark-panel","data-testid":"bInvitePopup",style:{display:"block"},children:[(0,i.jsx)("span",{className:"close","data-testid":"bInvitePopup-close-btn",onClick:C}),(0,i.jsxs)("div",{className:"invite-title",children:[(0,i.jsx)("div",{className:"invite-avatar",style:{backgroundImage:"url('".concat(l.avatarUrl,"')")}}),N]}),(0,i.jsxs)("div",{className:"invite-body",children:[(0,i.jsx)("p",{children:__("Let's get naughly right now!")}),(0,i.jsx)("p",{children:__("I want to chat with you one-on-one...")}),(0,i.jsx)(_,{private_chat:r})]}),(0,i.jsx)(s,{onClick:j})]}),1===l.chatShowInvitationVersion&&(0,i.jsxs)("div",{id:"bInvitePopup",className:"private-invite-popup bongacams_popup_v2","data-testid":"bInvitePopup",style:{display:"block"},children:[(0,i.jsx)("div",{className:"popup_header",children:(0,i.jsx)("div",{className:"popup_close close","data-testid":"bInvitePopup-close-btn",onClick:C,children:(0,i.jsx)("div",{className:"popup_close_arrow"})})}),(0,i.jsx)("div",{className:"popup_content",children:(0,i.jsxs)("div",{className:"private-invite invite-popup _avatar_left",children:[(0,i.jsx)("div",{className:"invite-title",children:N}),(0,i.jsxs)("div",{className:"invite-body",children:[(0,i.jsx)("div",{className:"invite-avatar",style:{backgroundImage:"url('".concat(l.avatarUrl,"')")}}),(0,i.jsx)("p",{className:"title",children:__("Let's get naughly right now!")}),(0,i.jsx)("p",{children:__("I want to chat with you one-on-one...")})]}),(0,i.jsx)(_,{private_chat:r}),(0,i.jsx)(s,{onClick:j})]})})]}),2===l.chatShowInvitationVersion&&(0,i.jsxs)("div",{id:"bInvitePopup",className:"private-invite-popup bongacams_popup_v2","data-testid":"bInvitePopup",style:{display:"block"},children:[(0,i.jsx)("div",{className:"popup_header",children:(0,i.jsx)("div",{className:"popup_close close","data-testid":"bInvitePopup-close-btn",onClick:C,children:(0,i.jsx)("div",{className:"popup_close_arrow"})})}),(0,i.jsx)("div",{className:"popup_content",children:(0,i.jsxs)("div",{className:"private-invite invite-popup _avatar_top",children:[(0,i.jsxs)("div",{className:"invite-title",children:[(0,i.jsx)("div",{className:"invite-avatar",style:{backgroundImage:"url('".concat(l.avatarUrl,"')")}}),(0,i.jsx)("div",{className:"invite-text",children:N})]}),(0,i.jsxs)("div",{className:"invite-body",children:[(0,i.jsxs)("div",{className:"invite-body_wrp bc_flex",children:[(0,i.jsxs)("div",{className:"invite-body_left",children:[(0,i.jsx)("div",{className:"invite-avatar",style:{backgroundImage:"url('".concat(l.avatarUrl,"')")}}),(0,i.jsx)("p",{className:"invite-model",children:(0,i.jsx)("span",{className:"invite-model_inner",children:l.displayName})})]}),(0,i.jsxs)("div",{className:"invite-body_right",children:[(0,i.jsx)("p",{className:"title",children:__("I'm already so wet...")}),(0,i.jsx)("p",{children:__("Let's get some privacy!")})]})]}),(0,i.jsx)(d,{private_chat:r})]}),(0,i.jsx)(s,{onClick:j})]})})]})]})},C=j},6364:function(e,n,t){"use strict";t.r(n),t.d(n,{MemberChatLayout:function(){return Zi}});var i=t(74848),o=t(96540),a=t(46517),s=t(99525),l=t(41042),r=t(35626),c=t(9445),u=t(16994),d=t(40172),_=t(22078),p=t(83375),m=t(15215),h=t(48207),f=t(38775),v=t(39992),b=t(63934),g=(0,o.memo)(function(e){var n=function(e){var n=e.chatContentPopup,t=n.id,i=n.callbacks,a=n.options,s=n.renderFn,l=n.isOpened,r=(0,o.useRef)(null);return(0,v.j)((0,m.Cl)({ref:r,callback:function(){(0,h.G3)(t)},isEnabled:l&&Boolean(t)},(null==a?void 0:a.excludeOutsideClickParent)&&{excludeParents:null==a?void 0:a.excludeOutsideClickParent})),(0,f.u)(function(){var e;null===(e=null==i?void 0:i.onOpen)||void 0===e||e.call(i)}),(0,b.l)(function(){var e;null===(e=null==i?void 0:i.onClose)||void 0===e||e.call(i)}),{contentRef:r,classNames:null==a?void 0:a.classes,renderFn:s}}(e),t=n.contentRef,a=n.classNames,s=n.renderFn;return(0,i.jsx)("div",{className:(0,p.jc)(["ct_popup_wrp bc_flex bc_flex_full_center",null==a?void 0:a.root]),children:(0,i.jsx)("div",{ref:t,className:(0,p.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},j=function(){var e=(0,a.d4)(x);return e&&e.renderFn?(0,i.jsx)(g,{chatContentPopup:e}):null},C=t(85730),N=t(57733),w=t(26580),k=t(47885),y=(0,o.memo)(function(){var e=(0,a.d4)(d.U7),n=(0,o.useCallback)(function(){N.A.instance.open?N.A.instance.closePanel():N.A.instance.openPanel()},[]);return e?(0,i.jsxs)("div",{className:"chfs_btn __icon chfs_btn_chat_panel",onClick:n,children:[(0,i.jsx)(w.A,{group:"chfs_icon __quote",icon:"#svg_ch_fs_quote",url:k.g5}),(0,i.jsx)(w.A,{group:"chfs_icon __cross",icon:"#svg_ch_fs_cross",url:k.g5})]}):null}),P=t(80877),S=t(46979),T=t(62271),A=t(5117),I=t(72983),E=function(){return(0,i.jsxs)("div",(0,m.Cl)({id:"mnw",className:"what"},(0,S.A)({baseId:"chat_model_navigation_hint"}),{children:[(0,i.jsx)(w.A,{group:"mn_w_icon",icon:"#svg_icon_help",url:A.z}),(0,i.jsx)("div",{className:"navigatorHint",children:(0,i.jsxs)("div",{className:"block popover-light",children:[(0,i.jsx)("div",{className:"corner top"}),(0,i.jsxs)("div",{className:"inner popover-light-inner",children:[(0,i.jsx)("div",{className:"closeBtn popover-light-close"}),I.isRTLCulture&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{className:"prev text",children:[__("Next Model"),(0,i.jsx)("span",{children:__("(left arrow key)")})]}),(0,i.jsx)(w.A,{group:"block_bg",icon:"#svg_ch_stream_arrow",url:k.g5}),(0,i.jsxs)("div",{className:"next text",children:[__("Previous Model"),(0,i.jsx)("span",{children:__("(right arrow key)")})]})]}),!I.isRTLCulture&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{className:"prev text",children:[__("Previous Model"),(0,i.jsx)("span",{children:__("(left arrow key)")})]}),(0,i.jsx)(w.A,{group:"block_bg",icon:"#svg_ch_stream_arrow",url:k.g5}),(0,i.jsxs)("div",{className:"next text",children:[__("Next Model"),(0,i.jsx)("span",{children:__("(right arrow key)")})]})]})]})]})})]}))},L=(0,o.memo)(function(){var e=((0,a.d4)(d._T)||{}).promoEmbedChat;return(0,i.jsx)("div",{className:"memberNavigation",children:(0,i.jsx)("div",{id:"bModelNavigator",className:(0,p.n)({promoVisible:e}),children:(0,i.jsxs)("div",{id:"navigator_wrapper",className:"navigator_wrapper",children:[(0,i.jsxs)("a",(0,m.Cl)({id:"bCamControlsPrevRoom",className:(0,p.n)({"js-prev_chat_room":e,mn_link:!0}),onClick:function(e){e.preventDefault(),T.h.instance.prevRoom()}},(0,S.A)({baseId:"bCamControlsPrevRoom"}),{children:[(0,i.jsx)("span",{className:"prev mn_arrow"})," ",(0,i.jsxs)("span",{className:"nav_text",children:[(0,i.jsx)("span",{className:"std",children:__("Previous model")}),(0,i.jsx)("span",{className:"sm",children:__("Previous%_model_%")})]})]}))," ",(0,i.jsx)(E,{})," ",(0,i.jsxs)("a",(0,m.Cl)({id:"bCamControlsNextRoom",className:(0,p.n)({"js-next_chat_room":e,mn_link:!0}),onClick:function(e){e.preventDefault(),T.h.instance.nextRoom()}},(0,S.A)({baseId:"bCamControlsNextRoom"}),{children:[(0,i.jsxs)("span",{className:"nav_text",children:[(0,i.jsx)("span",{className:"std",children:__("Next model")}),(0,i.jsx)("span",{className:"sm",children:__("Next%_model_%")})]})," ",(0,i.jsx)("span",{className:"next mn_arrow"})]}))]})})})}),R=t(89105),M=(0,o.memo)(function(){var e=(0,a.d4)(l.BH);return(0,i.jsx)(R.M,{className:(0,p.n)({chat_tabs_scroll:!e,__chat_control_panel_bng18409:e}),contentClassName:(0,p.n)({chat_tabs_scroll_content:!e}),wrapperClassName:(0,p.n)({chat_tabs_scroll_wrapper:!e}),name:"chat_tabs_scroll",withScrollPanel:!0,isHideBarOutside:!0,isNativeScroll:!e,isOutWrapBar:!0,children:(0,i.jsx)("div",{className:"chat_users_container",children:(0,i.jsx)("div",{className:"users modelUsers chat_users js-chat_tab_content"})})})}),B=t(41669),O=(0,o.forwardRef)(function(e,n){var t=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,i.jsx)("div",{ref:a,id:"bChat",children:t})}),H=t(87276),D=t(63065),F=t(58927),z=t(40793);function U(e){var n;return null===(n=(0,z.c)(e))||void 0===n?void 0:n.profileDetails}function V(e){return Boolean(U(e))}function W(e){var n;return null===(n=U(e))||void 0===n?void 0:n.onlineText}function G(e){var n;return null===(n=U(e))||void 0===n?void 0:n.offlineText}function $(e){var n;return null===(n=(0,z.c)(e))||void 0===n?void 0:n.tags}function Y(e){return Boolean($(e))}var q=t(63861),X=(0,o.memo)(function(e){var n=e.items,t=(0,o.useMemo)(function(){return Array.isArray(n)?null==n?void 0:n.map(function(e,t){return(0,i.jsx)(o.Fragment,{children:(0,i.jsxs)("span",{className:"mplg_li_item",children:[(0,i.jsxs)("span",{className:"mplg_caption",children:[e.title,!e.withFlag&&t!==n.length-1&&","]}),e.withFlag&&(0,i.jsx)("img",{className:"mplg_flag",alt:"",src:(0,q.oF)("sprite/bc/model_flags_atlas2.svg#svg_".concat(e.code))})]})},e.title)}):null},[n]);return(0,i.jsx)(o.Fragment,{children:t})}),K=function(e,n){var t,i;if(!(null===(i=null===(t=e.miniProfile.profileDetails)||void 0===t?void 0:t.items)||void 0===i?void 0:i.length))return e;var o=e.miniProfile.profileDetails.items.map(function(e){return"lastBroadcast"===e.id?(0,m.Cl)((0,m.Cl)({},e),{value:[n]}):e});return{miniProfile:(0,m.Cl)((0,m.Cl)({},e.miniProfile),{profileDetails:(0,m.Cl)((0,m.Cl)({},e.miniProfile.profileDetails),{items:o})})}},Z=t(39222),J=t(68956),Q=(0,o.memo)(function(){var e,n,t,s=(0,a.d4)(U);if(e=(0,a.wA)(),n=(0,a.d4)(W),t=(0,a.d4)(G),(0,o.useEffect)(function(){J.I.on("ServerMessageEvent:PERFORMER_STATUS_CHANGE",function(i){var o=[Z.Q.STATUS_PUBLIC].includes(i);e(K)(o?n:t)})},[e,n,t]),!(0,_.j)(s))return null;var l=s.items;return(0,i.jsx)("div",{className:"mplg_i_list mplg_details",children:null==l?void 0:l.map(function(e){var n="languages"===e.id,t="name"===e.id;return e.value?(0,i.jsxs)("div",{className:"mplg_list_row",children:[(0,i.jsx)("div",{className:"mplg_list_item __title",children:e.label}),(0,i.jsxs)("div",{className:(0,p.n)({mplg_list_item:!0,__name:t}),children:[!n&&Array.isArray(e.value)&&e.value.join(", "),n&&(0,i.jsx)(X,{items:e.value})]})]},e.label):null})})}),ee=t(19223),ne=t(53336),te=t(73437),ie="MiniProfileTagsModal_AllLink",oe="MiniProfileTagsModal_CheckboxDontShow",ae="MiniProfileTagsModal_CloseBtn",se="MiniProfileTagsModal_Modal",le=t(43921),re="MiniProfileTagsModalFullPrivateChatButton_BTN",ce=t(27510),ue=(0,o.memo)(function(e){var n=(e||{}).text,t=void 0===n?"":n,a=function(e){void 0===e&&(e={});var n=(e||{}).handleClose,t=void 0===n?te.noop:n;return{handleClickFullPrivateChat:(0,o.useCallback)(function(e){return e.preventDefault(),chat.paidShowPopup(ce.j.FULL_PRIVATE_CHAT,!0),window.scrollTo(0,0),t(),!1},[t])}}(e).handleClickFullPrivateChat;return(0,i.jsx)(le.$,{className:"__full_private",hint:t,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,t=void 0===n?te.noop:n;return{handleClickImButton:(0,o.useCallback)(function(){return chat.sendPM(!0),t(),!1},[t])}},pe=t(74213),me=t(85374),he=(0,me.s)(function(){return pe.M.reportEvent(57)},1e3,!0),fe="MiniProfileProfileActionsImButtonBase_BTN",ve=function(e){var n=e.privateMessageButton,t=e.isDisabled,o=void 0!==t&&t,a=e.isSmall,s=void 0!==a&&a,l=e.handleClickImButton,r=void 0===l?te.noop:l,c=n||{},u=c.hint,d=void 0===u?"":u,p=c.isBadgeNew,m=void 0!==p&&p;return(0,_.j)(n)?(0,i.jsx)(le.$,{className:"__im",hint:d,iconType:"#svg_btna_send_message",testId:fe,isDisabled:o,isSmall:s,handler:r,children:m&&(0,i.jsx)("span",{className:"mplg_btn_badge",children:(0,i.jsx)("img",{className:"mplg_btnb_icon",alt:"",src:(0,q.oF)("svg/bc/icon/icon_new_OS_8_white.svg")})})}):null},be=function(e){var n,t=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)&&he(),n(e)},[n])}).handleClickImButton;return(0,i.jsx)(ve,{privateMessageButton:t,isDisabled:s,isSmall:r,handleClickImButton:c})},ge=_e,xe=(0,o.memo)(function(e){var n=(e||{}).text,t=void 0===n?"":n,o=ge(e).handleClickImButton;return(0,i.jsx)(le.$,{className:"__im",hint:t,iconType:"#svg_btna_send_message",testId:de,wrapClass:"__im",handler:o})}),je="MiniProfileTagsModalPrivateChatButton_BTN",Ce=function(e){var n=e.text,t=void 0===n?"":n,a=function(e){var n=(e||{}).handleClose,t=void 0===n?te.noop:n;return{handleClickPrivateChat:(0,o.useCallback)(function(e){return e.preventDefault(),chat.paidShowPopup(ce.j.PRIVATE_CHAT,!0),window.scrollTo(0,0),t(),!1},[t])}}(e).handleClickPrivateChat;return(0,i.jsx)(le.$,{className:"__private",hint:t,iconType:"#svg_btna_mpl_private",testId:je,wrapClass:"__private",handler:a})},Ne="MiniProfileTagsModalTipButton_BTN",we=function(e){var n=(e||{}).text,t=void 0===n?"":n,a=function(e){void 0===e&&(e={});var n=(e||{}).handleClose,t=void 0===n?te.noop:n;return{handleClickSendTipModel:(0,o.useCallback)(function(e){return e.preventDefault(),chat.tipPopup(),window.scrollTo(0,0),t(),!1},[t])}}(e).handleClickSendTipModel;return(0,i.jsx)(le.$,{className:"__tip",hint:t,iconType:"#svg_btna_send_tip",testId:Ne,wrapClass:"__tip",handler:a})},ke=t(1887),ye=function(e){var n,t,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,_=void 0!==d&&d,h=e.handleClickLinkAllModels,f=void 0===h?te.noop:h,b=e.handleClose,g=void 0===b?te.noop:b,x=e.handleDontShowAgain,j=void 0===x?te.noop:x,C=e.handlePositionModal,N=void 0===C?te.noop:C,y=e.handleTransitionEnd,P=void 0===y?te.noop:y,T=u||{},A=T.marginModalBetweenBtn,I=void 0===A?0:A,E=T.modal,L=T.modalArrow,R=T.isTopModalPosition,M=void 0!==R&&R,B=E||{},O=B.left,H=void 0===O?0:O,D=B.top,F=void 0===D?0:D,z=(L||{}).left,U=void 0===z?0:z,V=function(e){var n=e.modalData,t=e.handleDontShowAgain,i=void 0===t?te.noop:t,a=e.handlePositionModal,s=void 0===a?te.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&&i()}},[i]),(0,o.useEffect)(function(){s()},[s]),{actions:{handleClickCheckDontShow:p,handleClickProfileLink:function(e){e.preventDefault(),(0,ke.M)(r)}},states:{profileLinkURL:r,isCheckedDontShow:u}}}({modalData:c,handleDontShowAgain:j,handlePositionModal:N}),W=V.actions,G=W.handleClickCheckDontShow,$=W.handleClickProfileLink,Y=V.states,q=Y.profileLinkURL,X=Y.isCheckedDontShow,K=c.actions,Z=c.content,J=c.footer,Q=K||{},ne=Q.allModelsByTagLink,le=Q.fullPrivateChatButton,re=void 0===le?null:le,ce=Q.privateChatButton,de=void 0===ce?null:ce,_e=Q.privateMessageButton,pe=Q.sendTipButton,me=Z.profileLink,he=Z.profilePhoto,fe=Z.tag,ve=Z.textInfo,be=void 0===ve?null:ve,ge=J.closeButton,je=J.dontShowAgain,Ne=Boolean(be);return(0,v.j)({ref:r,callback:g}),(0,i.jsxs)("div",(0,m.Cl)({ref:r,className:(0,p.n)({"mplg_tags_modal popover-light":!0,__show:_}),style:{left:"".concat(H?"".concat(H,"px"):""),marginTop:"".concat(M?"-":"").concat(I,"px"),top:"".concat(F?"".concat(F,"px"):"")},onTransitionEnd:P},(0,S.A)({baseId:se}),{children:[(0,i.jsx)("div",{ref:s,className:(0,p.n)({bot:M,corner:!0,top:!M}),style:{left:U}}),(0,i.jsxs)("div",{className:"mplg_tm_inner popover-light-inner",children:[(0,i.jsx)("div",{className:"mplg_tm_title",children:trans("Tag information: %tag%",{tag:''.concat(fe,"")})}),(0,i.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:"
'),displayname:(0,ee.b8)(null==me?void 0:me.text),s1:'',s2:"",tag:fe||"span"},{onClick:$})}),Ne&&(0,i.jsx)("div",{className:"mplg_tm_text __info",children:be}),(0,i.jsxs)("div",{className:"mplg_tm_action bc_flex bc_flex_wrap",children:[pe&&!pe.disabled&&(0,i.jsx)(we,{text:pe.text,handleClose:g}),de&&!de.disabled&&(0,i.jsx)(Ce,{text:de.text,handleClose:g}),re&&!re.disabled&&(0,i.jsx)(ue,{text:re.text,handleClose:g}),_e&&!_e.disabled&&(0,i.jsx)(xe,{text:_e.text,handleClose:g})]}),(0,i.jsx)("div",{className:"mplg_tm_link_wrp",children:(0,i.jsx)("a",(0,m.Cl)({className:"mplg_tm_link bc_bold",href:(0,ee.FC)(null==ne?void 0:ne.url),rel:"noopener noreferrer",target:"_blank",onClick:f},(0,S.A)({baseId:ie}),{children:(0,ee.b8)(null==ne?void 0:ne.text)}))}),(0,i.jsxs)("div",{className:"mplg_tm_footer bc_flex bc_flex_justify_s_between bc_flex_items_center",children:[(0,i.jsxs)("span",(0,m.Cl)({className:"mplg_tm_label bc_flex bc_flex_items_center",onClick:G},(0,S.A)({baseId:oe}),{children:[(0,i.jsx)("span",{className:(0,p.n)({"mplg_tm_mark bc_flex bc_flex_full_center":!0,__select:X}),children:(0,i.jsx)(w.A,{group:"mplg_tm_arrow",icon:"#svg_mpl_checkbox_arrow",url:k.sS})}),(0,ee.b8)(null==je?void 0:je.label)]})),(0,i.jsx)("button",(0,m.Cl)({className:"bt30 bt30 bt30_grey mplg_tm_btn",onClick:g},(0,S.A)({baseId:ae}),{children:(0,ee.b8)(null==ge?void 0:ge.text)}))]})]})]}))},Pe=((0,t(31279).getRealDomain)(),"MINI_PROFILE_TAG_ITEM"),Se="MINI_PROFILE_TAG_WRAP",Te="MINI_PROFILE_TAGS_ROOT",Ae=t(40961),Ie=t(87410),Ee=function(e,n){void 0===n&&(n=Ie.a);var t=(0,o.useState)(e),i=t[0],a=t[1];return[i,(0,o.useCallback)(function(e){a(function(t){var i=e instanceof Function?e(t):e;return n(t,i)?t:i})},[n])]},Le=t(95290),Re=t(83966),Me=t(85340),Be=t(92340),Oe=(0,o.memo)(function(){var e=(0,a.d4)($),n=e||{},t=n.header,s=void 0===t?{}:t,l=n.tags,r=void 0===l?[]:l,c=function(e){var n=e||{},t=n.modelName,i=void 0===t?"":t,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],_=Ee(null),p=_[0],h=_[1],f=(0,o.useState)(!1),v=f[0],b=f[1],g=(0,o.useState)(!1),x=g[0],j=g[1],C=(0,o.useState)(r),N=C[0],w=C[1],k=(0,o.useState)(!1),y=k[0],P=k[1],S=Ee({tagsBtn:null,tagsWrp:null}),T=S[0],A=S[1],E=Ee({marginModalBetweenBtn:0,modal:{left:null,top:null},modalArrow:{left:0},isTopModalPosition:!1}),L=E[0],R=E[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),z=(0,o.useRef)(0),U=(0,o.useRef)(!1),V=Ee(null),W=V[0],G=V[1],$=(0,Me.f)().sendRequest,Y=(0,o.useCallback)(function(e){return(0,m.sH)(void 0,void 0,void 0,function(){var n;return(0,m.YH)(this,function(t){switch(t.label){case 0:return[4,$(e,{method:"GET"})];case 1:return(n=t.sent()).errors?[2,!1]:(G(n.data),[2,!0])}})})},[$,G]);(0,o.useEffect)(function(){if(null!==p)return clearTimeout(z.current),clearTimeout(F.current),F.current=window.setTimeout(function(){return(0,m.sH)(void 0,void 0,void 0,function(){var e,n;return(0,m.YH)(this,function(t){switch(t.label){case 0:return[4,Y(p.popupApiUrl)];case 1:return t.sent()&&(d(!0),A({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()}),z.current=window.setTimeout(function(){return b(!0)},Le.d)),j(!1),U.current=!1,[2]}})})},200),function(){clearTimeout(F.current),clearTimeout(z.current)}},[Y,p,A]);var q=(0,o.useCallback)(function(e){return function(n){return n.preventDefault(),b(!1),j(!0),U.current=!0,h(e),!1}},[h]),X=(0,o.useCallback)(function(){var e=T.tagsBtn,n=T.tagsWrp;if(e&&n){var t=O.current.getBoundingClientRect(),i=0,o=e.left-n.left+e.width+40,a=0,s=0,l=e.top+e.height+t.height+15>window.innerHeight&&e.top+e.height>t.height+15,r=0;r=l?e.top-n.top-t.height:e.top-n.top+e.height,I.isRTLCulture?(e.left-n.left<40?a=e.left-n.left:(i=40,a=e.left-n.left-i),s=e.width/2+i-7):(o>n.width?a=e.left-n.left-(t.width-e.width):(i=40,a=e.left-n.left-(t.width-e.width)+i),s=t.width-e.width/2-i-7),R({marginModalBetweenBtn:15,modal:{left:a,top:r},modalArrow:{left:s},isTopModalPosition:l})}},[T,R]),K=(0,o.useCallback)(function(){v||(y&&W&&P(!1),d(!1))},[y,v,W]),Z=(0,o.useCallback)(function(){U.current||(0,Ae.unstable_batchedUpdates)(function(){h(null),b(!1),D.current=null,U.current=!1})},[h]),J=(0,o.useCallback)(function(){P(!0),Z()},[Z]),Q=(0,o.useCallback)(function(){Be.A.registerEvent(Re.A.MINI_PROFILE_TAG_POPUP),w(!1),h(null)},[h]);return(0,o.useEffect)(function(){W&&W.content&&W.content.profileLink&&W.content.profileLink.text!==i&&Z()},[Z,W,i]),(0,o.useEffect)(function(){return window.addEventListener("resize",Z),function(){window.removeEventListener("resize",Z)}},[Z]),(0,o.useEffect)(function(){var e,n,t;null===(t=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===t||t.call(n,0,0)},[s]),{miniProfileTagsRef:B,modalArrowRef:H,modalRef:O,scrollRef:M,selectedItemRef:D,modalData:W,positionModal:L,selectItem:p,isLoadingModal:x,isModalTagAvailable:N,isOpen:v,isShowModal:u,handleClickLinkAllModels:J,handleClickMiniProfileTagsItem:q,handleCloseModal:Z,handleDontShowAgain:Q,handlePositionModal:X,handleTransitionEnd:K}}(e),u=c.miniProfileTagsRef,d=c.modalArrowRef,h=c.modalRef,f=c.scrollRef,v=c.selectedItemRef,b=c.modalData,g=c.positionModal,x=c.selectItem,j=c.isLoadingModal,C=c.isModalTagAvailable,N=c.isOpen,k=c.isShowModal,y=c.handleClickLinkAllModels,P=c.handleClickMiniProfileTagsItem,T=c.handleCloseModal,A=c.handleDontShowAgain,E=c.handlePositionModal,L=c.handleTransitionEnd;if(!(0,_.j)(e))return null;var M=C&&k&&Boolean(b);return(0,i.jsxs)("div",(0,m.Cl)({ref:u,className:"mplg_tags bc_flex bc_flex_column"},(0,S.A)({baseId:Te}),{children:[(0,i.jsx)("h2",{className:"mplg_t_title",children:s}),(0,i.jsx)(R.M,{ref:f,className:"mplg_scroll",isScrollPositionClassNameEnabled:!0,blockedScroll:C&&(j||k),classBarHiddenName:"bc_scroll_hidden",isOutWrapBar:!0,children:(0,i.jsx)("div",{className:"mplg_t_list bc_flex bc_flex_wrap",children:r.map(function(e){var n,t,o,a,s=(null==x?void 0:x.popupApiUrl)===(null==e?void 0:e.popupApiUrl)&&C,l=(0,ee.FC)(null===(t=null==e?void 0:e.link)||void 0===t?void 0:t.url),r=(0,ee.b8)(null===(o=null==e?void 0:e.link)||void 0===o?void 0:o.text);return(0,i.jsx)("div",(0,m.Cl)({className:"mplg_t_wrp bc_flex"},(0,S.A)({baseId:Se}),{children:(0,i.jsxs)("a",(0,m.Cl)({ref:s?v:null,className:(0,p.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?P(e):te.noop},(0,S.A)({baseId:Pe}),{children:[(0,i.jsx)("span",{itemProp:"makesOffer",children:r}),C&&s&&j&&(0,i.jsx)("span",{className:"bc_spinner_wrp mplg_btn_spinner __show",children:(0,i.jsx)(w.A,{group:"bc_spinner",icon:"#svg_ui_circle_loader",url:ne.Jp})})]}))}),l)})})}),M&&(0,i.jsx)(ye,{modalArrowRef:d,modalRef:h,modalData:b,positionModal:g,isOpen:N,handleClickLinkAllModels:y,handleClose:T,handleDontShowAgain:A,handlePositionModal:E,handleTransitionEnd:L})]}))}),He=(0,o.memo)(function(){var e=(0,a.d4)(V),n=(0,a.d4)(Y);return e||n?(0,i.jsxs)("div",{className:"mplg_about_wrp bc_flex bc_flex_justify_s_between",children:[(0,i.jsx)(Q,{}),(0,i.jsx)(Oe,{})]}):null}),De=t(61710),Fe=t(72832),ze=t(22938),Ue=(0,o.memo)(function(){var e=function(){var e=(0,a.d4)(c.Z4),n=(0,a.d4)(De.G),t=n||{},i=t.albums,o=void 0===i?[]:i,s=t.label,l=void 0===s?"":s,r=t.showMoreLink,u=void 0===r?null:r,d=t.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,t=e.states,o=t.albums,s=t.label,l=t.miniProfileAlbums,r=t.miniProfileUsername,u=t.showMoreLink,d=t.isAuthenticated,p=(0,Fe.Eg)((0,D.o)(r)),h=p.actions.openPhotoGalleryByAlbum,f=p.states.loadingIdState;return(0,_.j)(l)&&o.length?(0,i.jsxs)("div",{className:"mplg_list_row __picture",children:[(0,i.jsx)("div",{className:"mplg_list_item __title",children:s}),(0,i.jsxs)("div",{className:"mplg_list_item bc_flex_column",children:[(0,i.jsx)("div",{className:"mplg_l_pic_wrp bc_media_thumb_wrp bc_flex bc_flex_wrap",children:o.map(function(e,n,t){return(0,i.jsx)(ze.gE,(0,m.Cl)({},e,{isAuthenticated:d,isLoading:f===e.albumId,onAlbumClick:function(){return h({albumList:t,albumToOpen:e})},onPhotoClick:function(){return h({albumList:t,albumToOpen:e})}}),e.albumId)})}),!!(null==u?void 0:u.url)&&(0,i.jsx)("div",{className:"mplg_l_link",children:(0,i.jsx)("button",{className:"bc_fake_link __btn",onClick:n,children:(0,ee.b8)(null==u?void 0:u.text)})})]})]}):null}),Ve=t(64862),We=t(47077);function Ge(e){var n;return null===(n=(0,z.c)(e))||void 0===n?void 0:n.showFullProfileButton}var $e=(0,o.memo)(function(){var e=function(){var e=(0,a.d4)(Ge)||{},n=e.badgeNew,t=e.link;return{actions:{handleProfileLinkClick:function(e){e.preventDefault(),(0,ke.M)(null==t?void 0:t.url)}},states:{badgeNew:n,link:t}}}(),n=e.actions.handleProfileLinkClick,t=e.states,o=t.badgeNew,s=t.link;return s?(0,i.jsx)("div",{className:"mplg_action_wrp bc_flex bc_flex_justify_center",children:(0,i.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,i.jsx)(w.A,{group:"mplg_pbtn_icon",icon:"#svg_mpl_people",url:k.sS}),!!o&&(0,i.jsx)(We.E,{classModifier:"mplg_pbtn_badge",icon:Ve.S.NEW}),null==s?void 0:s.text]})}):null}),Ye=t(14790);function qe(e){var n;return null===(n=(0,z.c)(e))||void 0===n?void 0:n.fanBoost}var Xe=t(19846),Ke=t(25383),Ze=t(67780),Je=t(67356),Qe=t(81444),en=t(73324),nn=t(88526),tn=t(41669),on=t(2268),an=function(e){var n=e.displayName,t=e.handleBuy,a=e.handleClose,s=e.disabled,l=(0,o.useRef)(null);return(0,v.j)({ref:l,callback:a}),(0,i.jsxs)("div",{ref:l,className:"popover-light raise_buy_modal",children:[(0,i.jsx)("div",{className:"corner top"}),(0,i.jsxs)("div",{className:"inner popover-light-inner",children:[(0,i.jsx)("div",{className:"rb_m_close",onClick:a,children:"×"}),(0,i.jsxs)("div",{className:"rb_m_inner bc_flex bc_flex_column",children:[(0,i.jsx)("img",{className:"rb_m_icon bc_flex_item_center",src:(0,q.oF)("svg/bc/icon/icon_fan_boost.svg"),alt:""}),(0,i.jsxs)("div",{className:"rb_m_title_wrp",children:[(0,i.jsx)("div",{className:"rb_m_title",children:__("Buy Fan Boost")}),(0,i.jsx)("div",{className:"rb_m_sub_title",children:trans("Price: %amount% %tokens_plural%",{amount:Je.K,tokens_plural:''.concat(on.kX.pluralise("tokens",Je.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:Je.r,st:'',st_cl:"",b:'',b_cl:""})]}),(0,i.jsx)("div",{className:"rb_m_action",children:(0,i.jsx)("button",{className:(0,p.n)({"mls_btn bt30_green rb_m_btn":!0,__disabled:s}),onClick:t,children:__("Buy and Activate")})})]})]})},sn=t(2597),ln=t(77679),rn=function(e){var n=e.timeout,t=e.displayName,a=e.isVipAvailable,s=e.handleClose,l=(0,o.useRef)(null),r=(0,q.ip)("@member_account_vip_overview"),c=(0,q.ip)("@member_account_membership");return(0,v.j)({ref:l,callback:s}),(0,i.jsxs)("div",{ref:l,className:(0,p.n)({"raise_what_popover popover-light":!0,__vip:a}),children:[(0,i.jsx)("div",{className:"corner top"}),(0,i.jsxs)("div",{className:"inner popover-light-inner",children:[(0,i.jsx)("div",{className:"raise_what_close popover-light-close",onClick:s}),(0,i.jsxs)("div",{className:"raise_popover_text_wrp",children:[(0,i.jsx)("p",{className:"raise_popover_title bc_bold",children:__("Raise model to 1st position")}),(0,i.jsx)(ln.A,{time:n}),(0,i.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:t})}),(0,i.jsx)("p",{children:__("Only premium users can take advantage of this feature:")})]}),(0,i.jsxs)("div",{className:"bc_flex",children:[a&&(0,i.jsxs)("div",{className:"raise_popover_status bc_flex bc_flex_column bc_flex_items_center",children:[(0,i.jsx)("a",{className:"bc_flex",href:r,target:"_blank",children:(0,i.jsx)(w.A,{group:"rps_icon",icon:"#svg_msp_vip",url:ne.z1})}),(0,i.jsx)("a",{className:"rps_link",href:r,target:"_blank",children:__("Vip")}),(0,i.jsx)("p",{className:"rps_info",children:__("Once every %count% %days%",{count:10,days:on.kX.pluralise("days",10)})})]}),(0,i.jsxs)("div",{className:"raise_popover_status bc_flex bc_flex_column bc_flex_items_center",children:[(0,i.jsx)("a",{className:"bc_flex",href:c,target:"_blank",children:(0,i.jsx)(w.A,{group:"rps_icon",icon:"#svg_msp_"+sn.A.SAPPHIRE,url:ne.z1})}),(0,i.jsx)("a",{className:"rps_link",href:c,target:"_blank",children:sn.A.getTitle(sn.A.SAPPHIRE)}),(0,i.jsx)("p",{className:"rps_info",children:__("Once every %count% %days%",{count:7,days:on.kX.pluralise("days",7)})})]}),(0,i.jsxs)("div",{className:"raise_popover_status bc_flex bc_flex_column bc_flex_items_center",children:[(0,i.jsx)("a",{className:"bc_flex",href:c,target:"_blank",children:(0,i.jsx)(w.A,{group:"rps_icon",icon:"#svg_msp_"+sn.A.TITAN,url:ne.z1})}),(0,i.jsx)("a",{className:"rps_link",href:c,target:"_blank",children:sn.A.getTitle(sn.A.TITAN)}),(0,i.jsx)("p",{className:"rps_info",children:__("Once every %count% %days%",{count:3,days:on.kX.pluralise("days",3)})})]}),(0,i.jsxs)("div",{className:"raise_popover_status bc_flex bc_flex_column bc_flex_items_center",children:[(0,i.jsx)("a",{className:"bc_flex",href:c,target:"_blank",children:(0,i.jsx)(w.A,{group:"rps_icon",icon:"#svg_msp_"+sn.A.DIAMOND,url:ne.z1})}),(0,i.jsx)("a",{className:"rps_link",href:c,target:"_blank",children:sn.A.getTitle(sn.A.DIAMOND)}),(0,i.jsx)("p",{className:"rps_info",children:__("Once every day")})]}),(0,i.jsxs)("div",{className:"raise_popover_status bc_flex bc_flex_column bc_flex_items_center",children:[(0,i.jsx)("a",{className:"bc_flex",href:c,target:"_blank",children:(0,i.jsx)(w.A,{group:"rps_icon",icon:"#svg_msp_"+sn.A.EXCLUSIVE,url:ne.z1})}),(0,i.jsx)("a",{className:"rps_link",href:c,target:"_blank",children:sn.A.getTitle(sn.A.EXCLUSIVE)}),(0,i.jsx)("p",{className:"rps_info",children:__("%count% times per day",{count:3})})]})]})]})]})},cn=t(27705),un=function(e){var n=e.firstPlaceButtonBoostTimeLeft,t=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?te.noop:r;return(0,i.jsx)("button",(0,m.Cl)({className:(0,p.n)({raise_model_btn:!0,__active:l}),onClick:c},(0,S.A)({baseId:a}),{children:(0,i.jsx)(cn.u,{isFanBoosted:t})}))},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,t=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,_=a||{},h=_.modelDisplayName,f=void 0===h?"":h,v=_.isMemberAvailable,b=void 0!==v&&v,g=_.isModelAvailable,x=void 0!==g&&g,j=function(e){var n=e.balance,t=e.fanBoost,i=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,Qe.Rh)(t)),m=p[0],h=p[1],f=(0,o.useState)(!!i&&(0,Qe.J8)(t)),v=f[0],b=f[1],g=function(){var e=(0,Qe.ju)(t);c({timeout:Math.ceil(e/1e3),isOpen:!0})},x=function(){return _(!0)},j=(0,o.useCallback)(function(){if(a)tn('a[rel="webcamsupport"]').click();else{var e=t||{},o=e.modelUsername,s=e.isMemberAvailable,l=e.isModelAvailable;if(!i||!l||s)throw _(!1),new Error("[FanBoostWidget] buy not available: ".concat([Number(!!i),Number(!!l),Number(!s)].join("")));if(n0){var n=(0,Qe.ju)(t);s.current&&window.clearTimeout(s.current),s.current=window.setTimeout(function(){(0,Ze.gt)({nextAvailableDate:0,isMemberAvailable:!0})},n)}}},[t]),(0,o.useEffect)(function(){b(Boolean(i&&!!t&&(0,Qe.J8)(t)))},[i,t]),(0,o.useEffect)(function(){return function(){s.current&&window.clearTimeout(s.current)}},[]),{hintState:r,isFanBoostAvailable:v,isFanBoostedState:m,isOpenBuyPopup:d,handleBuy:j,handleCloseBuy:function(){return _(!1)},handleCloseHint:function(){return c({timeout:0,isOpen:!1})},handleFanBoostClick:function(){if(i){var e=t||{},n=e.isMemberAvailable,o=e.isModelAvailable;o&&n?(0,Ke.X)():!o||n?o||!n&&void 0!==n?o||n?g():x():g():x()}else tn.signupEvent.call(void 0)},handleOpenHint:g,handleToggleHint:function(){c(function(e){return{timeout:e.isOpen?0:Math.ceil((0,Qe.ju)(t)/1e3),isOpen:!e.isOpen}})}}}({balance:t,fanBoost:a,isAuthenticated:l,isPaymentsDisabled:c}),C=j.hintState,N=j.isFanBoostAvailable,k=j.isFanBoostedState,y=j.isOpenBuyPopup,P=j.handleBuy,T=j.handleCloseBuy,I=j.handleCloseHint,E=j.handleFanBoostClick,L=j.handleToggleHint;return(0,i.jsx)("div",(0,m.Cl)({className:(0,p.jc)(["raise_model",b&&"__raise_buy"])},(0,S.A)({baseId:pn}),{children:(0,i.jsxs)("div",{className:"raise_model_link",children:[(0,i.jsx)(un,{firstPlaceButtonBoostTimeLeft:k,testIdButton:dn,isActiveAnimation:N,onFanBoostClick:E}),(0,i.jsx)("div",(0,m.Cl)({className:"raise_what_link",onClick:L},(0,S.A)({baseId:_n}),{children:(0,i.jsx)(w.A,{group:"raise_what",icon:"#svg_icon_help",url:A.z})})),C.isOpen&&(0,i.jsx)(rn,{displayName:f,timeout:C.timeout,isVipAvailable:d,handleClose:I}),y&&(0,i.jsx)(an,{disabled:!x,displayName:f,handleBuy:P,handleClose:T})]})}))},hn=(0,o.memo)(function(){var e=(0,a.d4)(qe),n=(0,a.d4)(Ye.H),t=(0,a.d4)(Xe.R1);return(0,_.j)(e)?(0,i.jsx)(mn,{balance:t,fanBoost:n,isAuthenticated:e.isRiseAllowed,isPaymentsDisabled:e.isPaymentsDisabled,isVip:e.isVip}):null});function fn(e){var n;return null===(n=(0,z.c)(e))||void 0===n?void 0:n.header}var vn=(0,o.memo)(function(){var e=(0,a.d4)(fn),n=e||{},t=n.gender,o=n.text;return(0,_.j)(e)?(0,i.jsxs)("div",{className:"mplg_name_wrp bc_flex bc_flex_items_center",children:[Boolean(o)&&(0,i.jsx)("h1",{className:"mplg_name",children:o}),Boolean(t)&&(0,i.jsx)("img",{className:"mplg_g_icon",alt:"",src:(0,q.oF)("svg/bc/icon/icon_gender_".concat(t,".svg"))})]}):null}),bn=t(96773),gn=t(75015),xn=t(71854),jn=t(91196),Cn=t(85855),Nn=t(32542),wn=t(89347),kn="MiniProfileProfileActionsTipModelButtonBase_BTN",yn=function(e){var n=e.sendTipButton,t=e.isSmall,o=void 0!==t&&t,a=e.handleSendTip,s=void 0===a?te.noop:a;if(!(0,_.j)(n))return null;var l=(n||{}).hint,r=void 0===l?"":l;return(0,i.jsx)(le.$,{className:"__tip",hint:r,iconType:"#svg_btna_send_tip",testId:kn,wrapClass:"__tip",isSmall:o,handler:s})},Pn=(0,me.s)(function(){return pe.M.reportEvent(58)},1e3,!0),Sn=function(e){var n=e||{},t=n.sendTipButton,a=n.isSmall,s=void 0!==a&&a,l=(0,o.useCallback)(function(e){return chat.tipPopup(!1,!1),pe.M.hasEvent(58)&&Pn(),!1},[]);return(0,i.jsx)(yn,{sendTipButton:t,isSmall:s,handleSendTip:l})},Tn=t(42809),An=t(74566),In=(0,t(16516).J)(),En=(0,o.memo)(function(){var e=(0,a.d4)(bn.PE),n=e||{},t=n.followButton,s=n.pinModelButton,r=n.privateMessageButton,c=n.sendTipButton,u=n.subscribeOnlineNotificationButton,d=u||{},m=d.username,h=d.isSubscribedForEmail,f=d.isSubscribedForPush,v=function(){var e=(0,a.d4)(l.Ml),n=(0,a.d4)(function(e){return e.isMemberKicked}),t=(0,o.useRef)(null),i=(0,o.useRef)(null),s=(0,o.useState)(!1),r=s[0],c=s[1],u=(0,o.useState)(!0),d=u[0],_=u[1],p=(0,o.useState)(null),m=p[0],h=p[1],f=(0,o.useCallback)(function(e){e&&h(e)},[]);return(0,o.useEffect)(function(){var n;return e&&m?!i.current&&In?(i.current=new IntersectionObserver(function(e){var n=e.some(function(e){return e.isIntersecting&&e.intersectionRatio<1&&e.intersectionRect.width});_(n),c(!0)},{root:t.current,threshold:[0,1]}),i.current&&m&&i.current.observe(m)):i.current||c(!0):(c(!1),null===(n=i.current)||void 0===n||n.disconnect(),i.current=null),function(){var e;null===(e=i.current)||void 0===e||e.disconnect()}},[e,m]),{buttonsRef:t,setWidthHolderRef:f,isMemberKicked:n,isShown:r,isSmallButtons:d}}(),b=v.buttonsRef,g=v.isMemberKicked,x=v.isShown,j=v.isSmallButtons,C=v.setWidthHolderRef,N=(0,jn.t)({modelUsername:m,isSubscribedForEmail:h,isSubscribedForPush:f}),w=N.actions,k=w.handleCloseNotificationPopup,y=w.handleGetNotificationWithModernWrapper,P=N.states,S=P.contentPopoverNotificationData,T=P.isAnyNotificationSubscriptionActive;return(0,_.j)(e)?(0,i.jsxs)("div",{ref:b,className:(0,p.n)({"mplg_prf_actions bc_flex bc_flex_items_center bc_flex_justify_f_end":!0,__show:x}),children:[x&&(0,i.jsxs)(i.Fragment,{children:[(0,_.j)(t)&&(0,i.jsx)(Cn.MiniProfileFollowButton,{isSmall:j}),(0,_.j)(s)&&(0,i.jsx)(Nn.MiniProfilePinButton,{isSmall:j}),(0,i.jsx)(gn.y,{className:"popover_online_notification",content:function(e){var n=e.setPopoverClose;return(0,i.jsx)(jn.o,{data:S,onCloseClick:n})},trigger:(0,i.jsx)(wn.y,{subscribeOnlineNotificationButton:u,isSmall:j,isSubscribed:T}),onBeforeOpen:y,onClose:k}),(0,_.j)(r)&&(0,i.jsx)(be,{privateMessageButton:r,isDisabled:g,isSmall:j}),(0,_.j)(c)&&(0,i.jsx)(Sn,{sendTipButton:c}),(0,_.j)(c)&&(0,i.jsx)("div",{className:"bc_new_tip_modal __mini_profile js-new_tip_modal","data-holder":xn.f.MINI_PROFILE_HOLDER})]}),(0,i.jsxs)("div",{ref:C,className:"mplg_btn_hidden bc_flex bc_flex_items_center bc_flex_justify_f_end",children:[(0,i.jsx)(Tn.b,{followButton:t,isHoldingWidth:!0}),(0,i.jsx)(An.T,{pinButton:s,isHoldingWidth:!0}),(0,i.jsx)(wn.y,{subscribeOnlineNotificationButton:u,isHoldingWidth:!0,isSubscribed:T}),(0,i.jsx)(ve,{privateMessageButton:r}),(0,i.jsx)(yn,{sendTipButton:c})]})]}):null}),Ln=t(21492),Rn=(0,o.memo)(function(){return(0,a.d4)(function(e){return e.chatShowStatusOptions.isOffline})?null:(0,i.jsx)(w.A,{group:"mplg_status_icon",icon:"#svg_onst_live",url:ne.P1})});function Mn(e){var n;return null===(n=(0,z.c)(e))||void 0===n?void 0:n.profilePhoto}var Bn,On=t(90894),Hn=(0,o.memo)(function(){var e=function(){var e=(0,a.d4)(Mn),n=(e||{}).profileLink;return{actions:{handleProfileLinkClick:function(e){e.preventDefault(),(0,ke.M)(null==n?void 0:n.url)}},states:{image:(0,On.z)({image:null==e?void 0:e.image,username:null==e?void 0:e.username}).image,profileLink:n,isAvailable:(0,_.j)(e)}}}(),n=e.actions.handleProfileLinkClick,t=e.states,o=t.image,s=t.profileLink;return t.isAvailable?(0,i.jsxs)("a",{className:"mplg_profile_photo",href:(0,ee.FC)(null==s?void 0:s.url),rel:null==s?void 0:s.rel,target:null==s?void 0:s.target,title:null==s?void 0:s.title,onClick:n,children:[(0,i.jsx)(Ln.h,{className:"mplg_pp_img_wrp __round",image:o}),(0,i.jsx)(Rn,{})]}):null}),Dn=(0,o.memo)(function(){return(0,i.jsxs)("div",{className:"mplg_header bc_flex bc_flex_items_center bc_flex_justify_s_between",children:[(0,i.jsxs)("div",{className:"mplg_h_info bc_flex bc_flex_items_center",children:[(0,i.jsx)(Hn,{}),(0,i.jsx)(vn,{}),(0,i.jsx)(hn,{})]}),(0,i.jsx)(En,{})]})}),Fn=t(3949),zn=t(57933),Un=t(91651),Vn=t(35658),Wn=t(53445),Gn=t(61681),$n=function(e){var n=e.id,i=e.balance,a=void 0===i?0:i,s=e.buyTokensLink,l=e.getSocialProfilePopupDataApiUrl,r=e.price,c=e.type,u=e.isBuyTokenRequired,d=e.onClickBuyTokensLink,_=void 0===d?te.noop:d,p=e.onClickSignupLink,m=void 0===p?te.noop:p,h=e.onClickSocialProfileLink,f=void 0===h?te.noop:h,v=(0,o.useState)(u),b=v[0],g=v[1],x=function(e){var n=e.dataApiUrl,i=e.popupProps;return{openMiniProfileBuyedSocialPopup:(0,Wn.e)({fancyOptions:{wrapClassName:"bongacams_popup __open __social_by_popup",border:"none",closeBtn:!1,closeClick:!0,closeEsc:!0,outerCSS:{background:"transparent"},padding:0},loader:function(e){var i=[Vn.Ye.EXTRA_SOCIAL_BY_POPUP,I.isRTLCulture?Vn.Ye.EXTRA_SOCIAL_BY_POPUP_RTL:null].filter(Boolean);return Promise.all([(0,zn.AT)(n,{abortController:e}),t.e(973).then(t.bind(t,25894)),i.map(function(e){(0,Un.i)(e,document.head,{"data-exclude":!0},(0,Gn.j)())})])},popupProps:i}).openLoadPopupFancybox}}({dataApiUrl:(0,q.ip)("@api_get_purchased_social_profile_link_data?id=".concat(n)),popupProps:{id:n}}).openMiniProfileBuyedSocialPopup,j=function(e){var n=e.dataApiUrl,i=e.socialProfileId,o=e.socialProfileType;return{openMiniProfileBuySocialPopup:(0,Wn.e)({fancyOptions:{wrapClassName:"bongacams_popup __open __social_by_popup",border:"none",closeBtn:!1,closeClick:!0,closeEsc:!0,outerCSS:{background:"transparent"},padding:0},loader:function(e){var i=[Vn.Ye.EXTRA_SOCIAL_BY_POPUP,I.isRTLCulture?Vn.Ye.EXTRA_SOCIAL_BY_POPUP_RTL:null].filter(Boolean);return Promise.all([(0,zn.AT)(n,{abortController:e}),t.e(974).then(t.bind(t,60395)),i.map(function(e){(0,Un.i)(e,document.head,{"data-exclude":!0},(0,Gn.j)())})])},popupProps:{socialProfileId:i,socialProfileType:o}}).openLoadPopupFancybox}}({dataApiUrl:l,popupProps:{id:n},socialProfileId:n,socialProfileType:c}).openMiniProfileBuySocialPopup;(0,o.useEffect)(function(){g(Boolean(s)&&a0?"".concat(u,":"):"",c,":",r,":",l]})}),yt=t(67329),Pt=t(96800),St=t(84435),Tt=t(26397),At=t(35363),It={DELAY_HIDDEN_BETWEEN_FULL_SCREEN:function(){if(St.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:I.isRTLCulture?-10:0,Y:0},INITIAL_POSITION_OFFSET:{X:I.isRTLCulture?-20:20,Y:10}},Et=t(78116),Lt=t(96656),Rt=function(e){var n=e.containerRef,t=(0,Et.t)(function(){return n.current}),i=(0,Lt.l)();return{selfPadding:function(e,n,t){void 0===t&&(t=Ie.a);var i=Ee(e,t),a=i[0],s=i[1];return(0,o.useLayoutEffect)(function(){s(e())},n),a}(function(){if(n.current&&(null==t?void 0:t.width)){var e=getComputedStyle(n.current),i=parseFloat(e.paddingLeft)||0,o=parseFloat(e.paddingRight)||0,a=parseFloat(e.paddingTop)||0,s=parseFloat(e.paddingBottom)||0;return i||o||a||s?{bottom:s,left:i,right:o,top:a,x:i+o,y:s+a}:null}},[n,null==t?void 0:t.width]),selfRect:t,windowSize:i}},Mt=t(11742),Bt=t(14800),Ot=t(24464),Ht=t(19865),Dt=function(e,n){void 0===n&&(n=[]);var t=e.buyTokensLinkRef,i=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],p=d[1],h=!c,f=l&&_,v=f&&!h?a:null,b=(0,Ot.i)({transformRef:i,bounds:v,pointerOptions:{targetRef:i,excludeEntriesRefsMap:{pointerdown:[t]},throttleDelay:10},isEnabled:f}),g=b.cancelHeld,x=b.offset,j=b.isHeld,C=b.setOffset,N={bounds:a,cancelHeld:g,offset:x,isDragging:j,isEnabled:f,isReady:_,wasDrag:c,setOffset:C};return(0,o.useEffect)(function(){l&&!_&&h&&(s(N)&&!_&&p(!0))},[l,_,h,s,N]),(0,Ht.w)(function(){l&&_&&h&&!j&&s(N)},(0,m.fX)([l,_,v],n,!0)),!l||_||h||p(!0),l||!_||h||p(!1),j&&!c&&u(!0),N},Ft=t(80669),zt=function(e){var n=e.isChatFullScreen,t=e.isEnabled,i=Rt(e),a=i.selfPadding,s=!!i.selfRect&&void 0!==a,l=(0,o.useState)(!1),r=l[0],c=l[1],u=function(e){var n=e.props,t=e.selfPadding,i=e.selfRect,a=e.windowSize,s=e.isEnabled,l=e.wasMeasured,r=n.defaultCornerRef,c=i?i.width+((null==t?void 0:t.x)||0):0,u=i?i.height+((null==t?void 0:t.y)||0):0,d=(0,Et.t)(function(){return s?document.getElementById("js-cc_inner"):null},[s]),_=(0,Bt.r)({handlerOptions:{isEnabled:s},isRTL:I.isRTLCulture}),p=_.refreshScrollInfo,h=_.scrollInfo;(0,wt.K)(function(){s&&p()},[s]);var f=(0,o.useMemo)(function(){if(!a||!h||!s)return null;var e=It.GLOBAL_MARGIN;return(0,at._b)("ChatPaidShowCountdown Drag Classic bounds update").log({windowScroll:h,windowSize:a}),new DOMRect(h.scrollLeft+e.LEFT,h.scrollTop+e.TOP,a.width-c-e.LEFT-e.RIGHT,a.height-u-e.TOP-e.BOTTOM)},[a,h,s,c,u]),v=(0,o.useCallback)(function(e){var n=e.setOffset;if(!l||!r.current)return(0,at._b)("ChatPaidShowCountdown Drag Classic resetPosition skip").log(1),!1;var t=It.INITIAL_POSITION_OFFSET,i=(0,Mt.N)(r.current);if(!i)return(0,at._b)("ChatPaidShowCountdown Drag Classic resetPosition skip").log(2),!1;if((0,at._b)("ChatPaidShowCountdown Drag Classic resetPosition").log(),I.isRTLCulture){var o=document.documentElement.scrollWidth-document.documentElement.clientWidth;n({x:i.x2+o-c+t.X,y:i.y1+t.Y})}else n({x:i.x1+t.X,y:i.y1+t.Y});return!0},[r,c,l]);return Dt((0,m.Cl)((0,m.Cl)({},e),{bounds:f,resetPosition:v,isEnabled:s}),[d,v])}((0,m.Cl)((0,m.Cl)((0,m.Cl)({},e),i),{isEnabled:!n&&t&&s,wasMeasured:s})),d=function(e){var n=e.props,t=e.selfPadding,i=e.selfRect,a=e.windowSize,s=e.isEnabled,l=e.wasMeasured,r=n.fullscreenCornerRef,c=i?i.width+((null==t?void 0:t.x)||0):0,u=(0,o.useMemo)(function(){return a&&i&&s?(0,Ft.FR)()?((0,at._b)("ChatPaidShowCountdown Drag Fullscreen bounds update").log({selfRect:i,windowSize:a},!1),new DOMRect(0,0,a.width-i.width-(t?t.x:0),a.height-i.height-(t?t.y:0))):((0,at._b)("ChatPaidShowCountdown Drag Fullscreen bounds skip").warn("fullscreen state force disabled"),null):null},[s,t,i,a]),d=(0,o.useCallback)(function(e){var n=e.setOffset;if(!l||!r.current)return(0,at._b)("ChatPaidShowCountdown Drag Fullscreen resetPosition skip").log(1),!1;var t=It.INITIAL_POSITION_FULLSCREEN,i=(0,Mt.N)(r.current);return i?((0,at._b)("ChatPaidShowCountdown Drag Fullscreen resetPosition").log(),I.isRTLCulture?n({x:window.innerWidth-c+t.X,y:i.y1+t.Y}):n({x:i.x1+t.X,y:i.y1+t.Y}),!0):((0,at._b)("ChatPaidShowCountdown Drag Fullscreen resetPosition skip").log(2),!1)},[r,c,l]);return Dt((0,m.Cl)((0,m.Cl)({},e),{bounds:u,resetPosition:d,isEnabled:s}),[d])}((0,m.Cl)((0,m.Cl)((0,m.Cl)({},e),i),{isEnabled:n&&t&&s,wasMeasured:s})),_=(t?n?d:u:null)||{},p=_.bounds,h=void 0===p?null:p,f=_.cancelHeld,v=_.isDragging,b=void 0!==v&&v,g=_.isEnabled,x=void 0!==g&&g,j=_.isReady,C=void 0!==j&&j,N=_.wasDrag,w=!!h&&C&&x,k=!(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,At.E)(function(){if(b&&!n)return(0,yt.e)(),function(){(0,Pt.b)()}},[b,n]),(0,Tt.A)({handlerMap:{scroll:{invokeHandler:f}},isEnabled:t&&!n&&b&&!!St.BrowserDetect.isSafari_MacOS()}),(0,o.useEffect)(function(){if(w&&t){var e=setTimeout(function(){(0,at._b)("ChatPaidShowCountdown Drag show").log(),c(!0)},It.DELAY_VISIBILITY_TURN_ON);return function(){return clearTimeout(e)}}},[w,t]),!r||w&&t||((0,at._b)("ChatPaidShowCountdown Drag hide").log(),c(!1)),{isDragging:b,isDragReady:w,isSmoothing:k,isVisible:r}},Ut=t(16053),Vt=t(76933),Wt=t.n(Vt),Gt=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:")}},$t=(0,o.memo)(function(e){var n=e.paidShowPrice,t=e.paidShowType,a=e.remainingSeconds,s=function(){var e=(0,Ut.d4)(d.K5),n=(0,o.useRef)(null),t=(0,o.useRef)(null),i=(0,Ut.d4)(d.U7),a=(0,o.useState)(!1),s=a[0],l=a[1];return(0,Tt.A)({targetRef:n,handlerMap:{selectstart:{invokeHandler:function(e){e.preventDefault()}}},isEnabled:!!St.BrowserDetect.isSafari()}),(0,wt.K)(function(){l(!0);var e=setTimeout(function(){l(!1)},It.DELAY_HIDDEN_BETWEEN_FULL_SCREEN);return function(){return clearTimeout(e)}},[i]),{buyTokensLinkRef:t,containerRef:n,isChatFullScreen:i,isFullMobile:e,isFullScreenChanging:s,handleClickBuyTokens:function(e){e.preventDefault(),chat.buyTokensPopup()}}}(),l=s.buyTokensLinkRef,r=s.containerRef,c=s.isChatFullScreen,u=s.isFullMobile,_=s.isFullScreenChanging,p=s.handleClickBuyTokens,m=zt({buyTokensLinkRef:l,containerRef:r,props:e,isChatFullScreen:c,isEnabled:!_}),h=m.isDragging,f=m.isDragReady,v=m.isSmoothing,b=m.isVisible;return(0,i.jsxs)(i.Fragment,{children:[h&&(0,i.jsx)("div",{className:(0,Ct.A)([Wt().backdrop,c&&Wt().backdrop_fullscreen])}),(0,i.jsxs)("div",{ref:r,className:(0,Ct.A)([Wt().container,c&&Wt().container_fullscreen,!b&&Wt().container_hidden,b&&h&&Wt().container_dragging,f&&v&&!h&&Wt().container_smoothPersist]),children:[(0,i.jsx)(w.A,{group:Wt().icon,icon:"#svg_ch_time",url:k.g5}),(0,i.jsxs)("div",{className:Wt().content,children:[(0,i.jsxs)("p",{children:[Gt(t),jt.K.SPACE,(0,i.jsx)("span",{className:"bc_fw_bold",children:__("%tokens% %tokens_plural% / minute",{tokens:n,tokens_plural:on.kX.pluralise("tokens",n)})})]}),(0,i.jsx)("p",{children:__("Time remaining based on your Token balance:")}),(0,i.jsxs)("p",{children:[(0,i.jsx)("span",{className:"bc_fw_bold",children:(0,i.jsx)(kt,{remainingSeconds:a})}),jt.K.SPACE,(0,i.jsx)("a",{ref:l,href:(0,q.ip)("@member_buy_tokens"),onClick:p,onPointerDown:u?void 0:function(e){return e.stopPropagation()},children:__("Click here to buy more!")})]})]})]})]})}),Yt=(0,o.memo)(function(e){var n=function(){var e=(0,o.useState)(xt?60:0),n=e[0],t=e[1],i=(0,o.useState)(xt?"private":null),s=i[0],l=i[1],r=(0,a.d4)(pt.R1),c=(0,a.d4)(function(e){return e.isSpaRoutingLoader}),u=(0,a.d4)(function(e){return e.isChatPage});(0,bt.Z9)(mt.R.CHAT_PAID_SHOW_START,function(e){var n=e.detail,i=n.pricePerMinute,o=n.showType;if((0,gt.u)(i)||"number"!=typeof i||i<=0)return t(0),void(0,at._b)("ChatPaidShow onStartPaidShow").error("incorrect price",e.detail);l(o),t(i)}),(0,bt.Z9)(mt.R.CHAT_PAID_SHOW_STOP,function(){t(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}}(),t=n.paidShowPrice,s=n.paidShowType,l=n.remainingSeconds;return n.isVisible?(0,i.jsx)($t,(0,m.Cl)({},e,{paidShowPrice:t,paidShowType:s,remainingSeconds:l})):null}),qt=t(17266),Xt=(0,o.memo)(function(){var e=function(){(0,a.d4)(d.Oz),(0,a.d4)(l.Ml),(0,qt.S)();var e=s.A.getState(),n=(0,d.Hz)(e),t=n||{},i=t.sizeHolderHeight,o=t.sizeHolderWidth,r=t.isMobileStream,c=t.isVideoHd;return{height:i,width:o,isAvailable:(0,_.j)(n),isMobileStream:r,isVideoHd:c}}(),n=e.height,t=e.width,o=e.isAvailable,r=e.isMobileStream,c=e.isVideoHd;return o?(0,i.jsx)("svg",{className:(0,p.n)({"video_size_holder js-video_size_holder":!0,__hd:c,__mobile:r}),height:n,width:t,xmlns:"http://www.w3.org/2000/svg"}):null}),Kt=function(e){var n=e.tokensPerMinute;return(0,i.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,i.jsxs)("span",{className:"btpr_info js-btpr_info",children:["(",__("%tokens% %tokens_plural% per minute",{tokens:n,tokens_plural:on.kX.pluralise("tokens",n)}),")"]}),(0,i.jsx)("span",{className:"btn_animation"})]})},Zt=function(e){var n=e.tokensPerMinute;return(0,i.jsxs)("button",{className:"bc_btn bc_btn_private __two_rows bc_flex_column bc_flex_full_center",children:[__("Spy Private Chat!"),(0,i.jsxs)("span",{className:"btpr_info js-btpr_info",children:["(",__("%tokens% %tokens_plural% per minute",{tokens:n,tokens_plural:on.kX.pluralise("tokens",n)}),")"]}),(0,i.jsx)("span",{className:"btn_animation"})]})},Jt=function(e){var n=e.chatLocalData,t=n.groupChatTokensPerMinute,o=n.voyeurChatTokensPerMinute;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{id:"bGotoGroup2",className:"private_btn_wrp __two_rows",children:(0,i.jsx)(Kt,{tokensPerMinute:t})}),(0,i.jsx)("div",{id:"bGotoVoyeur2",className:"private_btn_wrp __two_rows",children:(0,i.jsx)(Zt,{tokensPerMinute:o})})]})},Qt={isShow:!0},ei=(0,o.memo)(function(){var e=(0,Ut.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],t=e[1],i=function(){t(!0)};return(0,o.useEffect)(function(){return document.addEventListener(mt.R.INVITE_POPUP_SHOW,i),function(){return document.removeEventListener(mt.R.INVITE_POPUP_SHOW,i)}},[]),{mount:n}}().mount;return s&&(0,_.j)(n)&&void 0!==a?(0,i.jsx)(H.N,{getComponent:function(){return Promise.resolve().then(t.bind(t,40742))},props:Qt}):null}),ni=(t(40742),function(e){var n=e.link,t=e.rel;return(0,i.jsx)("a",{id:"bBuyTokens",className:"buy_tokens",href:n,rel:t,children:__("Buy more Tokens!")})}),ti=function(e){var n=e.link,t=e.rel;return(0,i.jsx)("a",{id:"bSignup",href:n,rel:t,target:"_blank",children:__("Click here to join for FREE!")})},ii=t(20409),oi=function(e){var n=function(e){var n=e.balance,t=(0,a.d4)(pt.R1),i=n||t;return{amount:(0,ii.Z)(i),tokensPlural:on.kX.pluralise("tokens",i)}}(e),t=n.amount,o=n.tokensPlural;return(0,i.jsx)("span",{dangerouslySetInnerHTML:{__html:__("You have %s1%%amount% %tokens_plural%%s_end%.",{s1:"",amount:''.concat(t,""),tokens_plural:''.concat(o,""),s_end:""})}})},ai=(0,o.memo)(function(){var e=(0,a.d4)(d.UQ),n=(0,a.d4)(d.pU)||{},t=n.balance,o=n.buyTokens,s=n.buyVip,l=n.paidButtonCells,r=n.signup,c=rt.q.isEnabled(ot.i.DESKTOP_CHAT_JOIN_BUTTON_TEXT);return(0,i.jsx)("div",{className:"memberBalance",children:(0,i.jsx)("table",{children:(0,i.jsxs)("tbody",{children:[(0,_.j)(l)&&(0,i.jsxs)("tr",{children:[(0,i.jsx)("td",{id:"bPaidButtonsCell"}),(0,i.jsx)("td",{id:"bTipButtonCell"})]}),(e||(0,_.j)(t)||(0,_.j)(o)||(0,_.j)(s))&&(0,i.jsx)("tr",{children:(0,i.jsx)("td",{colSpan:2,children:(0,i.jsxs)("div",{id:"bMemberBalance",children:[(0,i.jsx)(oi,(0,m.Cl)({},t)),(0,_.j)(o)&&(0,i.jsxs)(i.Fragment,{children:[" ",(0,i.jsx)(ni,(0,m.Cl)({},o))]}),(0,_.j)(s)&&(0,i.jsx)("a",{id:"bBuyVip",href:null==s?void 0:s.link,rel:null==s?void 0:s.rel,style:{display:"none"}})]})})}),(0,_.j)(r)&&!c&&(0,i.jsx)("tr",{children:(0,i.jsx)("td",{colSpan:2,children:(0,i.jsx)("div",{id:"bMemberBalance",children:(0,i.jsx)(ti,(0,m.Cl)({},r))})})})]})})})}),si=function(e){var n=e.chatShowStatusOptions;if(!n||!(0,_.j)(n))return null;return(0,i.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 t=e.key;return(0,i.jsx)("strong",{className:"online",children:n.displayName},t)}})})},li=(0,o.memo)(function(){var e=(0,a.d4)(function(e){return e.chatShowStatusOptions});return(0,i.jsx)("div",{id:"bCamStatus",className:(0,p.n)({bc_flex:!0,column_header_info:!0,hidden:!(0,_.j)(e)}),children:(0,i.jsx)(si,{chatShowStatusOptions:e})})}),ri=t(7464),ci=function(){return(0,i.jsx)("div",{id:"bPaidButtonTopRow",children:(0,i.jsxs)("div",{id:"bPaidButtonGroup",className:"pbg_anim_wrp bc_flex",children:[(0,i.jsx)("button",{id:"bGotoGroup",className:"pbg_btn __group __first mls_btn mls_btn_dark_green","data-position":"start",children:(0,i.jsxs)("span",{className:"pbg_inner_container",children:[(0,i.jsx)("span",{className:"pbg_icon_hidden"}),(0,i.jsx)("span",{className:"pbg_container_text","data-text-after":__("%_tmp_%Private Chat"),"data-text-before":__("Send Tip"),children:(0,i.jsxs)("span",{className:"pbg_text js-pbg_text","data-text-before":__("%_tmp_%Group Chat"),children:[(0,i.jsx)(w.A,{group:"pbg_icon",icon:"#svg_ch_group_chat",url:k.g5}),(0,i.jsx)("span",{className:"js-pbg_text_inner",children:__("%_tmp_%Group Chat")})]})})]})}),(0,i.jsx)("button",{id:"bGotoPrivate",className:"pbg_btn __private mls_btn mls_btn_dark_green __middle",children:(0,i.jsxs)("span",{className:"pbg_inner_container",children:[(0,i.jsx)("span",{className:"pbg_icon_hidden"}),(0,i.jsx)("span",{className:"pbg_container_text","data-text-after":__("Send Tip"),"data-text-before":__("%_tmp_%Group Chat"),children:(0,i.jsxs)("span",{className:"pbg_text js-pbg_text","data-text-before":__("%_tmp_%Private Chat"),children:[(0,i.jsx)(w.A,{group:"pbg_icon",icon:"#svg_ch_private_chat",url:k.g5}),(0,i.jsx)("span",{className:"js-pbg_text_inner",children:__("%_tmp_%Private Chat")})]})})]})}),(0,i.jsx)("button",{id:"bGotoVoyeur",className:"pbg_btn __voyeur __middle mls_btn mls_btn_red",children:__("Spy Private Chat")}),(0,i.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,i.jsx)("button",{id:"bTip",className:"pbg_btn __tip mls_btn mls_btn_dark_green","data-position":"end",onClick:function(e){e.preventDefault(),(0,ri.i)()},children:(0,i.jsxs)("span",{className:"pbg_inner_container",children:[(0,i.jsx)("span",{className:"pbg_icon_hidden"}),(0,i.jsx)("span",{className:"pbg_container_text","data-text-after":__("%_tmp_%Group Chat"),"data-text-before":__("%_tmp_%Private Chat"),children:(0,i.jsxs)("span",{className:"pbg_text","data-text-before":__("Send Tip"),children:[(0,i.jsx)(w.A,{group:"pbg_icon",icon:"#svg_ch_send_tip",url:k.g5}),__("Send Tip")]})})]})})]})})},ui=t(42940),di=t(7635),_i=t(26774),pi=function(e){var n=e.isLover,t=e.onFadeOut,o=e.isFading;return n?(0,i.jsx)("span",{className:"lb_icon_wrp",children:(0,i.jsx)(w.A,{group:(0,p.n)({lb_icon:!0,__love:n}),icon:"#svg_ch_count_love",url:k.g5})}):(0,i.jsx)("span",{className:(0,p.n)({lb_icon_wrp:!0,__hide:o}),onAnimationEnd:t,children:(0,i.jsx)(w.A,{group:"lb_icon",icon:"#svg_ch_count_love_add",url:k.g5})})},mi=t(98768),hi=(0,o.memo)(function(e){var n=e.children,t=e.isPlaying,a=function(e){var n=e.props,t=n.onAnimationEnd,i=n.onAnimationReady,a=n.isPlaying,s=(0,o.useRef)(null),l=(0,mi.eT)({path:(0,q.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,at._b)("Chat Lovers Anim loadAnimation").log(s.current),r({container:s.current,loop:!1}))},[r,d]),(0,o.useEffect)(function(){u&&i()},[u,i]),(0,o.useEffect)(function(){a&&c&&c.addEventListener("complete",t)},[c,a,t]),(0,o.useMemo)(function(){a&&c&&((0,at._b)("Chat Lovers Anim play").log(),c.goToAndPlay(0,!0))},[a,c]),{svgAnimationRef:s}}({props:e}).svgAnimationRef;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("span",{className:(0,p.n)({lb_icon_wrp:!0,bc_hide:!t}),children:(0,i.jsx)("span",{className:"lb_icon",ref:a})}),!t&&n]})}),fi=t(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"}(Bn||(Bn={}));var vi=t(8269),bi=t(25551),gi=t(21755),xi=t(41669),ji=function(e){var n=function(e){var n=e.props.loversButton||{},t=n.username,i=n.isLover,a=n.isAuthenticated,s=n.isFreeMember,l=rt.q.isEnabled(ot.i.CHAT_LOVERS_ANIMATION),r=(0,o.useState)(Bn.STOP),c=r[0],u=r[1],d=(0,o.useState)(!1),_=d[0],p=d[1],m=(0,o.useRef)(!1),h=(0,o.useRef)(!1),f=[Bn.PLAY,Bn.DONE].includes(c),v=h.current&&c===Bn.RESIZE,b=[Bn.RESIZE,Bn.PENDING].includes(c),g=l&&(f||b),x=!g&&!i&&a&&!s,j=(0,o.useCallback)(function(){(0,at._b)("Chat Lovers Anim prepareAnimation").log(),u(function(e){return e===Bn.STOP?Bn.PENDING:e})},[]),C=(0,o.useCallback)(function(){p(!0),m.current=!0,h.current=!0,(0,at._b)("Chat Lovers Anim startAnimation").log(),u(function(e){return e===Bn.STOP?Bn.PENDING:e})},[]),N=(0,o.useCallback)(function(){(0,at._b)("Chat Lovers Anim onAnimationReady").log(),u(function(e){return e===Bn.PENDING?Bn.RESIZE:e})},[]),w=(0,o.useCallback)(function(){(0,at._b)("Chat Lovers Anim onResizeEnd").log(),u(function(e){return e===Bn.RESIZE?Bn.PLAY:e})},[]),k=(0,o.useCallback)(function(){(0,at._b)("Chat Lovers Anim onAnimationEnd").log(),u(function(e){return e===Bn.PLAY?m.current?Bn.DONE:Bn.STOP:e})},[]),y=(0,o.useCallback)(function(){p(!1),m.current=!1,(0,at._b)("Chat Lovers Anim onRequestEnd").log(),u(function(e){return e===Bn.DONE?Bn.STOP:e})},[]);return(0,fi.A)(function(){u(Bn.STOP)},[t]),(0,fi.A)(function(){u(function(e){return e===Bn.DONE?Bn.STOP:e})},[i,_]),(0,o.useEffect)(function(){c===Bn.STOP&&(h.current=!1)},[c]),{isAnimPlay:f,isAnimResize:v,isAnimating:g,isAnimatingAvailable:x,onAnimationEnd:k,onResizeEnd:w,onAnimationReady:N,onRequestEnd:y,startAnimation:C,prepareAnimation:j}}({props:e}),t=n.isAnimPlay,l=n.isAnimResize,r=n.isAnimating,u=n.isAnimatingAvailable,d=n.startAnimation,_=n.prepareAnimation,m=n.onAnimationReady,h=n.onAnimationEnd,f=n.onResizeEnd,v=function(e,n,t){var i=e.loversButton||{},l=i.apiUrl,r=i.loversCount,u=i.isAuthenticated,d=i.isFreeMember,_=i.isInChat,p=i.isLover,m=(0,o.useState)(p),h=m[0],f=m[1],v=(0,a.d4)(c.i4),b=(0,o.useMemo)(function(){var e=vi.O[v];return bi.g[e]},[v]),g=(0,o.useCallback)(function(){var e;s.A.getState().isChatPopup?chat.signupPopup():null===(e=xi.signupEvent)||void 0===e||e.call(void 0)},[]),x=(0,gi.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:g,onSuccess:function(e){var n=e.loversCount,i=e.message;n&&i&&!p?(chat.addServiceMessage(i,"service"),f(!1)):chat.addServiceMessage(i,"alert"),t()}}).handleLoversClick;return(0,o.useEffect)(function(){return document.addEventListener(mt.R.LOVERS_CLICK,x),function(){document.removeEventListener(mt.R.LOVERS_CLICK,x)}},[x]),{loversCount:r,tooltipText:b,isAddedLoverHintVisible:h,isLover:p,handleLoversClick:x,onMouseLeaveHandler:function(){p&&!h&&f(!0)}}}(e,d,n.onRequestEnd),b=v.loversCount,g=v.tooltipText,x=v.isAddedLoverHintVisible,j=v.isLover,C=v.handleLoversClick,N=v.onMouseLeaveHandler,w=(0,di.n)(j,r),k=(0,di.n)(b,r);return(0,i.jsxs)("div",{className:(0,p.n)({underChatButton:!0,underChatButtonHasHint:!w||w&&x}),id:"bLoversButton",onMouseLeave:N,onMouseEnter:(0,_i.s)(_,u),children:[(0,i.jsxs)("a",{id:"bLovers",className:(0,p.n)({chatBtn:!0,__disabled:w}),onClick:C,children:[r&&(0,i.jsx)(hi,{onAnimationEnd:h,onAnimationReady:m,isPlaying:t,children:(0,i.jsx)(pi,{isLover:!1,isFading:l,onFadeOut:f})}),!r&&(0,i.jsx)(pi,{isLover:w}),jt.K.SPACE,(0,i.jsx)("span",{id:"sLovers",children:__("%count% lovers%_lowercase_%",{count:(0,ii.Z)(k,{thousandSeparator:","})})},Date.now())]}),w&&x&&(0,i.jsx)("span",{className:"underChatButtonHint",children:__("You already sent love!")}),!w&&(0,i.jsx)("span",{className:"underChatButtonHint",children:g})]})},Ci=(0,Ut.Ng)(function(e){return{loversButton:e.loversButton}})(function(e){var n=e.loversButton;return(0,i.jsx)(ji,{loversButton:(0,m.Cl)((0,m.Cl)({},n),{isInChat:!0})})}),Ni=t(1236),wi=function(){return(0,i.jsxs)("div",{className:"js-cht_qoq_wrp cht_qoq_wrp",children:[(0,i.jsxs)("div",{className:"cht_qoq_hint",children:[(0,i.jsx)("div",{className:"cht_qoq_inner",children:(0,Ni.p)("Last week's %s1%winner%s2% of the Queen of Queens contest!",{s1:'',s2:""})}),(0,i.jsx)("div",{className:"cht_qoq_arrow"})]}),(0,i.jsx)("img",{className:"cht_qoq_icon",src:(0,q.oF)("svg/bc/chat/ch_win_qoq.svg"),alt:""})]})},ki=t(32502),yi=function(){var e,n=(e=(0,a.d4)(ki.ad),{state:{isAvailable:(null==e?void 0:e.isQoQWinner)||!1}}).state.isAvailable;return void 0!==n&&n?(0,i.jsx)(wi,{}):null},Pi=function(e){var n=e.displayName,t=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,i.jsx)("a",{className:"column_header_avatar_link",href:l,rel:"profile noreferrer",target:"_blank",onClick:r,children:(0,i.jsx)("img",{className:"column_header_avatar",alt:t,src:a})})},Si=function(){var e=function(){var e=(0,a.d4)(d.U7),n=(0,a.d4)(ui.C),t=(0,a.d4)(r.Sp),i=e&&(null==n?void 0:n.isAvatarAvailable),o=(0,_.j)(n),s=o&&e,l=o&&!e,c=o&&(null==t?void 0:t.isNewModel);return{actions:{handleClickToProfileNavigate:function(e){e.preventDefault(),(0,ke.M)(null==n?void 0:n.profileLink)}},state:{chatHeaderOptions:n,isShowBadgeNew:c,isShowFullscreenAvatar:i,isShowFullscreenTitle:s,isShowTitle:l}}}(),n=e.actions.handleClickToProfileNavigate,t=e.state,o=t.chatHeaderOptions,s=t.isShowBadgeNew,l=t.isShowFullscreenAvatar,c=t.isShowFullscreenTitle,u=t.isShowTitle,p=o||{},m=p.displayName,h=p.profileImage,f=p.profileLink;return(0,i.jsxs)(i.Fragment,{children:[l&&(0,i.jsx)(Pi,{displayName:m,profileImage:h,profileLink:f,onClick:n}),(0,i.jsxs)("h1",{id:"bChatRoomTitle",className:"bc_flex bc_flex_items_center",children:[c&&(0,i.jsx)("a",{className:"chat_title_link cr_name",href:f,rel:"profile noreferrer",target:"_blank",onClick:n,children:" ".concat(m," ")}),u&&(0,i.jsx)("span",{className:"cr_name",children:m}),s&&(0,i.jsx)(We.E,{classModifier:"__secondary",icon:Ve.S.NEW_LARGE})]})]})},Ti=t(8556),Ai=function(){var e=function(){var e=(0,Ti.isTokenInBodyClassList)("chatPopupBody"),n=(0,Ti.isTokenInBodyClassList)("embed_chat"),t=(0,a.d4)(ui.C),i=(0,a.d4)(c.b5),o=e&&n?(null==t?void 0:t.profileLinkPrefix)+encodeURIComponent("".concat(window.location.protocol,"://").concat(window.location.host,"/profile/").concat((0,D.o)(null==i?void 0:i.username))):null==t?void 0:t.profileLink;return{actions:{handleProfileLinkClick:function(t){e&&n||!o||(t.preventDefault(),(0,ke.M)(o))}},state:{profileLink:o,profileLinkPrefix:null==t?void 0:t.profileLinkPrefix}}}(),n=e.actions.handleProfileLinkClick,t=e.state,o=t.profileLink,s=t.profileLinkPrefix,l=__("Profile");return(0,i.jsx)("div",{className:"underChatButton underChatProfileButton",children:(0,i.jsxs)("a",{id:"bUnderChatViewProfile",className:"chatBtn bUnderChatViewProfile chatProfileLink","data-url_prefix":s,href:o,rel:"profile noreferrer",target:"_blank",onClick:n,children:[(0,i.jsx)(w.A,{group:"cpl_icon",icon:"#svg_ch_profile",url:k.g5}),l]})})},Ii=(0,o.memo)(function(){var e=(0,a.d4)(ui.C);return(0,_.j)(e)?(0,i.jsxs)("div",{className:"column-header",children:[(0,i.jsxs)("div",{className:"column-header-title",children:[(0,i.jsx)(Si,{}),(0,i.jsx)(yi,{}),(0,i.jsx)(H.N,{getComponent:function(){return t.e(985).then(t.bind(t,99127))}})]}),(0,i.jsxs)("div",{className:"column-header-buttons",children:[(0,i.jsx)(Ai,{}),(0,i.jsx)(Ci,{})]})]}):null}),Ei=function(){return(0,i.jsx)(w.A,{group:"scc_icon __off",icon:"#svg_ch_stop_webcam",url:k.g5})},Li=function(e){var n=e.children;return(0,i.jsx)("span",{className:"txt __off",children:n})},Ri=function(){return(0,i.jsx)(w.A,{group:"scc_icon __on",icon:"#svg_ch_start_webcam",url:k.g5})},Mi=function(e){var n=e.children;return(0,i.jsx)("span",{className:"txt __on",children:n})},Bi=function(e){function n(n){var t=e.call(this,n)||this;return t.showShareCam=function(){t.setState({isShow:!0})},t.hideShareCam=function(){t.setState({isShow:!1})},t.state={isShow:!1},t}return(0,m.C6)(n,e),n.prototype.componentDidMount=function(){document.addEventListener(mt.R.SHARE_CAM_SHOW,this.showShareCam),document.addEventListener(mt.R.SHARE_CAM_HIDE,this.hideShareCam)},n.prototype.componentWillUnmount=function(){document.removeEventListener(mt.R.SHARE_CAM_SHOW,this.showShareCam),document.removeEventListener(mt.R.SHARE_CAM_HIDE,this.hideShareCam)},n.prototype.render=function(){var e=this.props,n=e.onHideIconComponent,t=e.onHideTextComponent,o=e.onShowIconComponent,a=e.onShowTextComponent,s=e.onClick,l=this.state.isShow;return(0,i.jsxs)("a",{className:(0,p.n)({off:l,on:!l}),onClick:s,children:[!l&&o,!l&&a,l&&n,l&&t]})},n.defaultProps={onClick:te.noop,onHideIconComponent:null,onHideTextComponent:null,onShowIconComponent:null,onShowTextComponent:null},n}(o.Component),Oi=Bi,Hi=(0,o.memo)(function(e){var n=e.onClick;return(0,i.jsx)(Oi,{onClick:n,onHideIconComponent:(0,i.jsx)(Ei,{}),onHideTextComponent:(0,i.jsx)(Li,{children:__("Stop your webcam")}),onShowIconComponent:(0,i.jsx)(Ri,{}),onShowTextComponent:(0,i.jsx)(Mi,{children:__("Start your webcam")})})}),Di=(0,o.memo)(function(e){var n=e.onClick;return(0,i.jsx)(Oi,{onClick:n,onHideIconComponent:(0,i.jsx)(Ei,{}),onHideTextComponent:(0,i.jsx)(Li,{children:__("%_small_%Stop your webcam")}),onShowIconComponent:(0,i.jsx)(Ri,{}),onShowTextComponent:(0,i.jsx)(Mi,{children:__("%_small_%Start your webcam")})})}),Fi=(0,o.memo)(function(e){var n=e.children,t=(0,a.d4)(function(e){return e.chatOptionsNew});return(null==t?void 0:t.isShareCamControlsEnabled)?(0,i.jsx)("div",{className:"bShareCamControls chatBtn js-share-cam-controls",children:n}):null}),zi=(0,o.memo)(function(e){var n=e.onClick;return(0,i.jsx)(Oi,{onClick:n,onHideIconComponent:(0,i.jsx)(Ei,{}),onShowIconComponent:(0,i.jsx)(Ri,{})})}),Ui=t(12348),Vi=t(57321),Wi=function(){var e=function(){var e=(0,o.useState)(!1),n=e[0],t=e[1],i=(0,o.useRef)(0),a=(0,o.useRef)(!1),s=(0,o.useRef)(null),l=(0,o.useRef)(null),r=(0,o.useCallback)(function(){t(!0)},[]),c=(0,o.useCallback)(function(){t(!1)},[]),u=(0,o.useCallback)(function(e){if(i.current!==e&&(i.current=e,l.current)){if(0===e)return l.current.innerText="",void c();r(),l.current.innerText=(0,Vi.q)(e)}},[c,r]),d=(0,o.useCallback)(function(){s.current&&(s.current.cancelAnimation(),s.current=null)},[]),_=(0,o.useCallback)(function(e){e!==i.current&&(d(),s.current=(0,Ui.a)({animationDuration:5e3,from:i.current,to:e,onStepAnimate:u}),s.current.startAnimation())},[u,d]);return(0,o.useEffect)(function(){var e=function(e,n,t){void 0===t&&(t=!1);var o=((null==n?void 0:n.totalUsers)||0)+((null==n?void 0:n.totalGuests)||0),s=t&&!o;if(o!==i.current){var l=a.current;if(a.current=!s,t||!l)return d(),void u(o);_(o)}};return J.I.on("syncUserList",e),function(){J.I.off("syncUserList",e)}},[u,d,_]),(0,b.l)(function(){d()}),{counterRef:l,isShown:n}}(),n=e.counterRef,t=e.isShown;return(0,i.jsx)("a",{children:__("Users %num%",{"%num%":function(e){var o=e.key;return(0,i.jsx)("span",{ref:n,className:(0,p.jc)(t&&"__show","bChatUsersCount chat_users_count js-total-users")},o)}})})},Gi=(0,o.memo)(function(e){var n=e.children;return(0,i.jsxs)("div",{className:"chat_tabs_container",children:[(0,i.jsxs)("ul",{className:"mls_tabs js-tab-button-container",children:[(0,i.jsx)("li",{"data-tab":"history",className:"tab_history selected",children:(0,i.jsx)("a",{children:__("Chat")})}),(0,i.jsx)("li",{"data-tab":"users",className:"tab_users",children:(0,i.jsx)(Wi,{})})]}),(0,i.jsx)("div",{className:"tab_controls",children:n})]})}),$i=t(53864),Yi=function(){return t.e(977).then(t.bind(t,34083))},qi=function(){return t.e(978).then(t.bind(t,41961))},Xi=function(){return t.e(986).then(t.bind(t,99524))},Ki=function(){return t.e(979).then(t.bind(t,43926))},Zi=function(){var e,n=s.A.getState(),t=(0,c.b5)(n),m=(0,u.e)(n),h=(0,d.Hz)(n),f=(0,d.OD)(n),v=(0,d.UQ)(n),b=(0,d.K5)(n),g=(0,l.uD)(n),x=(0,r.LT)(n),N=(0,a.d4)(d.U7),k=(0,o.useRef)(null),S=(0,o.useRef)(null);(0,o.useEffect)(function(){var e;return(0,at._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 T=(chat.localData||{}).isTPLU,A=(0,lt.Z)((0,q.ip)("@common_profile?username=".concat((0,D.o)(null==t?void 0:t.username)),!0)),I=g?(0,lt.Z)(""):"",E=Boolean(null==h?void 0:h.isMobileStream),R=(0,_.j)(f),B=st.h.isEnabled("disable_vip"),F=x&&!N;return(0,i.jsxs)("div",{id:"mls_chatconsole",className:"innerchat",style:t?void 0:{display:"none"},children:[(0,i.jsxs)("div",{id:"chatContainer",className:(0,p.n)({chatContainer:!0,cc_amp:T,full_mobile:b}),children:[(0,i.jsx)(y,{}),F&&(0,i.jsx)(_t.e,{}),(0,i.jsxs)("div",{id:"js-cc_inner",className:"cc_inner",children:[(0,i.jsxs)("div",{className:"cam-column js-cam_column",children:[(0,i.jsxs)("div",{id:"chat_resizable_wrp",className:"chat_resizable_wrp js-chat_resizable_wrp",children:[(0,i.jsxs)("div",{id:"ResizablePane",className:(0,p.n)((e={"video_resizable_wrp js-video_resizable_wrp":!0},e.__mobile=E,e)),children:[(0,i.jsx)(Xt,{}),(0,i.jsxs)("div",{id:"EmbedSWFHolder",children:[(0,i.jsx)(ei,{}),(0,i.jsx)(ut.default,{children:(0,dt.q)()}),(0,i.jsx)("div",{id:"bChatFloatPlayerControl"})]})]}),(0,i.jsx)(ct.AdditionalContainer,{})]}),(0,i.jsx)(ci,{}),(0,i.jsx)(Jt,{chatLocalData:m}),!B&&(0,i.jsx)("div",{id:"bBuyVip2",children:(0,i.jsx)("button",{id:"bBuyVip2_btn",className:"bt35 bt35_green",onClick:function(e){e.preventDefault(),chat.buyVipPopup()},children:__("Buy VIP Status")})}),(0,i.jsx)(ai,{}),(0,i.jsx)(L,{})]}),(0,i.jsx)("div",{className:"chat-wrapper",children:(0,i.jsxs)("div",{className:"chat-column bc_full_size",children:[!F&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(Ii,{}),(0,i.jsx)(li,{}),(0,i.jsx)(_t.N,{}),(0,i.jsx)("div",{className:"tip_king_wrp js-tip_king_wrp"})]}),(0,i.jsxs)(O,{ref:S,children:[v&&(0,i.jsx)("a",{id:"bTipModel",style:{visibility:"hidden"},onClick:function(e){return e.preventDefault()}}),v&&(0,i.jsx)("a",{id:"bTipModelFromMiniProfile",style:{visibility:"hidden"},onClick:function(e){return e.preventDefault()}}),v&&(0,i.jsx)("a",{id:"bTipModelFromTipKing",style:{visibility:"hidden"},onClick:function(e){return e.preventDefault()}}),(0,i.jsxs)("div",{id:"public-chat",className:"chat-tab",children:[(0,i.jsx)(j,{}),(0,i.jsxs)(Gi,{children:[(0,i.jsx)("div",{className:"tc_item __empty"}),(0,i.jsxs)("div",{className:"tc_wrp",children:[(0,i.jsxs)("div",{className:"tc_wrp_inner",children:[(0,i.jsx)("div",{className:"tc_item __empty"}),(0,i.jsxs)("div",{className:"tc_wrp_inner_small",children:[(0,i.jsx)("div",{className:"tc_item __small",children:(0,i.jsx)(Fi,{children:(0,i.jsx)(zi,{onClick:$i.t})})}),(0,i.jsx)("div",{className:"tc_item",children:(0,i.jsx)(Fi,{children:(0,i.jsx)(Di,{onClick:$i.t})})})]})]}),(0,i.jsx)("div",{className:"tc_item",children:(0,i.jsx)(Fi,{children:(0,i.jsx)(Hi,{onClick:$i.t})})})]})]}),(0,i.jsxs)("div",{ref:k,className:"chat_tabs_content js-chat_tabs_content ".concat(it.h),children:[(0,i.jsxs)("div",{className:"chat_tabs_item js-chat_tabs_item_history","data-tab":"history",children:[F&&(0,i.jsx)(_t.N,{isInChat:!0}),(0,i.jsx)(P.D,{})]}),(0,i.jsx)("div",{className:"chat_tabs_item","data-tab":"users",style:{display:"none"},children:(0,i.jsx)(M,{})}),(0,i.jsx)("div",{className:"notificationContainer",children:(0,i.jsx)("div",{className:"notificationContainerWrapper js-notificationMessages"})})]}),(0,i.jsx)("div",{className:"bc_new_tip_modal __fixed_tip js-new_tip_modal","data-holder":xn.f.CHAT_HOLDER}),(0,i.jsx)("div",{className:"bc_new_tip_modal __fixed_tip js-new_tip_modal","data-holder":xn.f.TIP_KING_HOLDER})]}),(0,i.jsx)(C.c,{})]}),(0,i.jsxs)("div",{className:"stream-controls right-panel fs-chat-divider",children:[(0,i.jsxs)("div",{className:"controls-row",children:[(0,i.jsx)("div",{className:"stream-control stream-volume",children:(0,i.jsx)("div",{className:"input-range",children:(0,i.jsx)("input",{defaultValue:"75",type:"range"})})}),v&&(0,i.jsx)("button",{id:"cast-button-fs",className:"stream-control cast-control cast-button",is:"google-cast-button",style:{display:"none"}}),(0,i.jsx)("div",{className:"stream-control stream-fullscreen pl-fullscreen-button"}),(0,i.jsx)("a",{className:"stream-control stream-profile bUnderChatViewProfile","data-url_prefix":I,href:A,rel:"profile noreferrer",target:"_blank",title:__("Profile"),onClick:function(e){e.preventDefault(),(0,ke.M)(A)}}),(0,i.jsx)("div",{className:"stream-control stream-mycam",onClick:$i.t})]}),(0,i.jsx)("div",{className:"controls-row bottom",children:(0,i.jsx)("button",{className:"send-tip",onClick:function(e){e.preventDefault(),chat.tipPopup()},children:__("Send Tip")})})]})]})}),rt.q.isEnabled(ot.i.CHAT_PAID_SHOW_COUNTDOWN)&&(0,i.jsx)(Yt,{defaultCornerRef:k,fullscreenCornerRef:S})]}),(0,i.jsx)(tt,{})]}),R&&(0,i.jsx)(H.N,{getComponent:Yi}),v&&(0,i.jsx)(H.N,{getComponent:qi,props:{key:"tapTL",loader:Ki}}),v&&(0,i.jsx)(H.N,{getComponent:qi,props:{key:"tapPL",loader:Xi}}),(0,i.jsx)("div",{id:"bFontSizeTipHolder",style:{display:"none"},children:(0,i.jsxs)("div",{id:"bFontSizeTip",children:[(0,i.jsx)("span",{className:"fs-btn dec",children:(0,i.jsx)(w.A,{group:"fs_icon_symbol",icon:"#svg_icon_font_size_minus",url:ne.ed})})," ",(0,i.jsx)("span",{className:"fs-btn inc",children:(0,i.jsx)(w.A,{group:"fs_icon_symbol",icon:"#svg_icon_font_size_plus",url:ne.ed})})," ",(0,i.jsxs)("span",{className:"sf-ico",children:[(0,i.jsx)("div",{className:"fs_icon_text_overlay"}),(0,i.jsx)(w.A,{group:"fs_icon_text",icon:"#svg_icon_font_size_text",url:ne.ed})]})]})})]})}},77679:function(e,n,t){"use strict";var i=t(15215),o=t(74848),a=t(96540),s=t(83375),l=function(e){function n(n){var t=e.call(this,n)||this;return t.timeoutId=0,t.processTimer=function(){t.timeoutId&&window.clearTimeout(t.timeoutId),t.state.timeout>0&&(t.timeoutId=window.setTimeout(function(){t.setState({timeout:t.state.timeout-1},function(){t.state.timeout>0&&t.processTimer()})},1e3))},t.state={timeout:n.time},t}return(0,i.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 t=Math.floor(n%60),i=Math.floor(n/60%60),a=Math.floor(n/60/60%24),l={days:Math.floor(n/60/60/24),hours:a,minutes:("0"+i).slice(-2),seconds:("0"+t).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,t){"use strict";t.d(n,{CU:function(){return s},E_:function(){return a},Rm:function(){return o}});var i=t(63861),o=(0,i.oF)("svg_json/pin_unpin_button/pin.json",!0),a=(0,i.oF)("svg_json/pin_unpin_button/unpin.json",!0),s={PIN:"MiniProfilePinButton_PIN",UNPIN:"MiniProfilePinButton_UNPIN"}},74566:function(e,n,t){"use strict";t.d(n,{T:function(){return d}});var i=t(74848),o=t(26489),a=t(22078),s=t(43921),l=t(73437),r=t(83375),c=t(26774),u=t(70509),d=function(e){var n=e.animationContainerRef,t=e.pinButtonWrapRef,d=e.children,_=e.pinButton,p=e.isAnimatingAvailable,m=void 0!==p&&p,h=e.isAnimPlay,f=void 0!==h&&h,v=e.isHoldingWidth,b=void 0!==v&&v,g=e.isNoHint,x=void 0!==g&&g,j=e.isPinned,C=void 0!==j&&j,N=e.isSmall,w=void 0!==N&&N,k=e.prepareAnimation,y=void 0===k?l.noop:k,P=e.handlePin,S=void 0===P?l.noop:P,T=e.handleUnpin,A=void 0===T?l.noop:T,I=e.onMouseEnter,E=void 0===I?l.noop:I,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,z=void 0!==F&&F,U=M.isBannedLogged2Profile,V=void 0!==U&&U,W=M.isBannedProfile2Logged,G=void 0!==W&&W,$=M.isUnPinAvailable,Y=!(C||z||V||G),q=void 0!==$&&$&&C;if(!(0,a.j)(_)||!Y&&!q)return null;var X=b?(0,o.c)(O)>(0,o.c)(D):!C;return(0,i.jsxs)("div",{ref:t,className:(0,r.n)({"mplg_btn bc_flex":!0,__no_hint:x,__pin_animation:f&&X,__small:w}),onMouseEnter:E,onMouseLeave:R,children:[(0,i.jsx)(s.$,{animationContainerRef:n,className:(0,r.n)({"mplg_btn_icon_wrp __animated":!0,__pin:X,__pinned:!X}),hint:X===f?D:O,iconType:X?"#svg_btna_mpl_pin":"#svg_btna_mpl_pinned",testId:X?u.CU.PIN:u.CU.UNPIN,isAnimPlay:f,isInner:!0,isSmall:w,isWithAnimation:!0,handler:X?S:A,onMouseEnter:(0,c.s)(y,m)}),d]})}},32542:function(e,n,t){"use strict";t.r(n),t.d(n,{MiniProfilePinButton:function(){return C},updateMiniProfilePinButton:function(){return o}});var i=t(15215),o=function(e,n){var t,o=e.miniProfile;return o?{miniProfile:(0,i.Cl)((0,i.Cl)({},o),{actions:(0,i.Cl)((0,i.Cl)({},o.actions),{pinModelButton:(0,i.Cl)((0,i.Cl)({},null===(t=o.actions)||void 0===t?void 0:t.pinModelButton),n)})})}:e},a=t(74848),s=t(46517),l=t(89836),r=t(7635),c=t(96773),u=t(92227),d=t(12307),_=t(15514),p=t(39255),m=t(98768),h=t(74566),f=t(70509),v=t(96540),b=t(38588),g=t(80554),x=t(29622),j=t(73437),C=function(e){var n=e.isSmall,t=void 0!==n&&n,o=(0,s.d4)(c.pJ),C=(0,s.d4)(l.Hh),N=(0,s.d4)(p.i),w=(0,m.Rf)({logGroup:"pinButton",isAvailable:(null==o?void 0:o.isAuthenticated)&&!(null==o?void 0:o.isFreeMember)}),k=w.isAnimating,y=w.isAnimatingAvailable,P=w.isPlaying,S=w.prepareAnimation,T=w.resetAnimation,A=w.startAnimation,I=w.onAnimationEnd,E=w.onAnimationReady,L=w.onRequestEnd,R=(0,r.n)((null==o?void 0:o.isPinned)||!1,k),M=(0,m.zK)({path:R?f.E_:f.Rm,isPlaying:P,onAnimationEnd:I,onAnimationReady:E}).animationContainerRef,B=function(e){var n=e.liveTab,t=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,v.useRef)(null),h=(0,x.co)((0,i.Cl)((0,i.Cl)({},t),{liveTab:n,pinUserHintEventAvailable:a,useHandlePin:x.uG,useHandleUnPin:x.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")}})),f=h.isAvailableHintExplanation,C=h.isAvailableShowHintTooMany,N=h.isHideHint,w=h.isHideHintTooMany,k=h.isShowHintExplanation,y=h.isShowHintTooMany,P=h.handleCloseHint,S=h.handleCloseHintTooMany,T=h.handleHideHintExplanation,A=h.handlePinModel,I=h.handleShowHintExplanation,E=h.handleUnPinModel,L=(0,v.useCallback)(function(){var e=m.current;if(e){var n=e.offsetWidth,t=n?"".concat(n,"px"):"unset";e.style.setProperty("--mplg-btn-width",t)}},[]),R=(0,v.useCallback)(function(e){L(),A(e)},[A,L]),M=(0,v.useCallback)(function(e){L(),E(e)},[E,L]);return(0,v.useEffect)(function(){return document.addEventListener(g.R.PIN_CLICK,R),document.addEventListener(g.R.PIN_CLOSE_HINT,S),function(){document.removeEventListener(g.R.PIN_CLICK,R),document.removeEventListener(g.R.PIN_CLOSE_HINT,S)}},[S,R]),(0,b.A)(function(){l()},[null==t?void 0:t.username]),{pinButtonWrapRef:m,isAvailableHintExplanation:f,isAvailableShowHintTooMany:C,isHideHint:N,isHideHintTooMany:w,isShowHintExplanation:k,isShowHintTooMany:y,handleCloseHint:P,handleCloseHintTooMany:S,handleHideHintExplanation:T,handlePin:R,handleShowHintExplanation:I,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,z=B.isHideHintTooMany,U=B.isShowHintExplanation,V=B.isShowHintTooMany,W=B.handleCloseHint,G=B.handleCloseHintTooMany,$=B.handleHideHintExplanation,Y=B.handlePin,q=B.handleShowHintExplanation,X=B.handleUnpin,K=H&&U,Z=D&&V;return(0,a.jsxs)(h.T,{animationContainerRef:M,pinButtonWrapRef:O,pinButton:o,prepareAnimation:S,isAnimatingAvailable:y,isAnimPlay:P,isNoHint:F||z||H,isPinned:R,isSmall:t,handlePin:Y,handleUnpin:X,onMouseEnter:q,onMouseLeave:$,children:[K&&(0,a.jsx)(u.R,{pinHintType:d.Y.EXPLANATION,placementType:_.p.MINI_PROFILE,onClose:W}),Z&&(0,a.jsx)(u.R,{pinHintType:d.Y.TOO_MANY_PINS,placementType:_.p.MINI_PROFILE,onClose:G})]})}},84408:function(e,n,t){"use strict";t.d(n,{V:function(){return c}});var i=t(74848),o=t(96540),a=t(22078),s=t(19223),l=t(67385),r=t(17551),c=(0,o.memo)(function(){var e=(0,r.i)(),n=e.actions,t=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,h=u.videos,f=void 0===h?[]:h;return(0,a.j)(c)&&f.length?(0,i.jsxs)("div",{className:"mplg_list_row __video",children:[(0,i.jsx)("div",{className:"mplg_list_item __title",children:_}),(0,i.jsxs)("div",{className:"mplg_list_item bc_flex_column",children:[(0,i.jsx)("div",{className:"mplg_l_video_wrp bc_media_thumb_wrp bc_flex bc_flex_wrap",children:f.map(function(e){return(0,i.jsx)(l.Id,{data:e,onOpenGallery:t},e.thumbImage.src)})}),!!(null==m?void 0:m.url)&&(0,i.jsx)("div",{className:"mplg_l_link",children:(0,i.jsx)("button",{className:"bc_fake_link __btn",onClick:o,children:(0,s.b8)(null==m?void 0:m.text)})})]})]}):null})},3949:function(e,n,t){"use strict";t.d(n,{B:function(){return o}});var i=t(40793),o=function(e){var n;return null===(n=(0,i.c)(e))||void 0===n?void 0:n.socialProfiles}},96800:function(e,n,t){"use strict";t.d(n,{b:function(){return a}});var i=t(31179),o=t(85435),a=function(){var e;(0,i.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,t){"use strict";t.d(n,{h:function(){return i}});var i="js-instruction-step-5"},58927:function(e,n,t){"use strict";t.d(n,{v:function(){return f}});var i=t(74848),o=t(96540),a=t(15215),s=t(842),l=t(91651),r=t(61681),c=t(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=t(46517),_=t(23385),p=t(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([t.e(6),t.e(295),t.e(5),t.e(464),t.e(558),t.e(361),t.e(512)]).then(t.bind(t,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]]}})})}),h=(0,o.lazy)(function(){return(0,a.sH)(void 0,void 0,void 0,function(){var e;return(0,a.YH)(this,function(n){switch(n.label){case 0:return e=(0,a.fX)([Promise.all([t.e(6),t.e(295),t.e(5),t.e(288),t.e(517),t.e(558),t.e(361),t.e(508)]).then(t.bind(t,70565))],u(),!0),[4,Promise.all(e)];case 1:return[2,n.sent()[0]]}})})}),f=(0,o.memo)(function(e){var n,t,a=e.galleryKey,s=function(e){var n=e.galleryKey,t=(0,d.d4)(p.Qi),i=(null==t?void 0:t[n])||null,a=i||{},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:i}}}(e).states.currentGallery;return(null==s?void 0:s.isPhotoOpen)&&(null===(n=s.photoList)||void 0===n?void 0:n.length)?(0,i.jsx)(o.Suspense,{fallback:null,children:(0,i.jsx)(h,{currentItemIndex:s.currentItemIndex,galleryKey:a,options:s.options,pager:s.pager,photoList:s.photoList})}):(null==s?void 0:s.isVideoOpen)&&(null===(t=s.videoList)||void 0===t?void 0:t.length)?(0,i.jsx)(o.Suspense,{fallback:null,children:(0,i.jsx)(m,{currentItemIndex:s.currentItemIndex,galleryKey:a,options:s.options,pager:s.pager,videoList:s.videoList})}):null})},90894:function(e,n,t){"use strict";t.d(n,{z:function(){return l}});var i=t(15215),o=t(96540),a=t(73437),s=t(41669),l=function(e){var n=e.username,t=e.image,l=e.linkApiUrl,r=void 0===l?"":l,c=(0,o.useState)(t),u=c[0],d=c[1],_=(0,o.useState)(r),p=_[0],m=_[1];return function(e){var n=e.replacer,t=void 0===n?function(e){return e.replace("_avatarm","_profile_s")}:n,i=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&&i===n.data.data.username){var o=t(n.data.data.url);r(o,n.data.data.apiUrl)}};return s(document).on("onNoticeSocketMessage",e),function(){s(document).off("onNoticeSocketMessage",e)}},[r,t,i])}({username:n,onChangePhoto:(0,o.useCallback)(function(e,n){d(function(n){return(0,i.Cl)((0,i.Cl)({},n),{src:e})}),m(n)},[])}),(0,o.useEffect)(function(){d(function(e){return(0,i.Cl)((0,i.Cl)({},e),{src:null==t?void 0:t.src})})},[null==t?void 0:t.src]),{image:u,linkApiUrl:p}}},79007:function(e,n,t){"use strict";var i=t(73437),o=t(45667);n.A=function(e){var n,t=e.onEvent,a=void 0===t?i.noop:t;(0,o.o)({handles:(n={},n[5]=a,n)})}},19846:function(e,n,t){"use strict";t.d(n,{Py:function(){return o},R1:function(){return s},xB:function(){return a}});var i=function(e){return e.user},o=function(e){var n;return null===(n=i(e))||void 0===n?void 0:n.username},a=function(e){var n;return null===(n=i(e))||void 0===n?void 0:n.displayName},s=function(e){var n;return(null===(n=i(e))||void 0===n?void 0:n.balance)||0}},39255:function(e,n,t){"use strict";t.d(n,{i:function(){return o}});var i=t(83966),o=function(e){return function(e){return e.userEvents||{}}(e)[i.A.PIN_USER_HINT]||!1}},96688:function(e,n,t){"use strict";t.r(n),t.d(n,{AdditionalContainer:function(){return r}});var i=t(74848),o=t(96540),a=t(46517),s=t(87276),l=function(){return Promise.all([t.e(6),t.e(456)]).then(t.bind(t,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}),t=(0,o.useState)(!1),r=t[0],c=t[1];return(0,i.jsx)("div",{id:"stream-additional-container",children:!n&&((null==e?void 0:e.isVisible)||r)&&(0,i.jsx)(s.N,{getComponent:l,onLoad:function(){c(!0)}})})})},16994:function(e,n,t){"use strict";t.d(n,{e:function(){return i}});var i=function(e){return e.chatLocalData}},95290:function(e,n,t){"use strict";t.d(n,{d:function(){return i}});var i=16},16516:function(e,n,t){"use strict";t.d(n,{J:function(){return i}});var i=function(){return Boolean(window.IntersectionObserver)}}}]);