"use strict";(self.webpackChunkbongacams=self.webpackChunkbongacams||[]).push([[405,767,576,617,665,703,575],{47077:function(e,n,t){t.d(n,{E:function(){return d}});var i,o=t(74848),r=t(26580),a=t(53336),l=t(15215),s=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return(0,l.C6)(n,e),n.NEW="new",n.HOT="hot",n.CAPTION="caption",n.titles=((i={})[n.NEW]=__("new"),i[n.HOT]=__("hot"),i[n.CAPTION]=__("caption"),i),n}(t(53767).A),u=s,c=t(83375),d=function(e){var n=e.className,t=e.classModifier,i=e.data,l=e.icon,s=(0,c.jc)(n,t,"bc_text_badge");return(0,o.jsx)(o.Fragment,{children:(0,o.jsx)(function(){if(!(null==i?void 0:i.type))return(0,o.jsx)("span",{className:s,children:(0,o.jsx)(r.A,{group:"tb_icon",icon:l,url:a.s8})});switch(i.type){case u.CAPTION:var e=Boolean(n||t);return(0,o.jsxs)(o.Fragment,{children:[e&&(0,o.jsx)("span",{className:s,children:i.text}),!e&&i.text]});case u.HOT:return(0,o.jsx)("span",{className:s,children:(0,o.jsx)(r.A,{group:"tb_icon",icon:"#svg_tb_hot",url:a.s8})});case u.NEW:return(0,o.jsx)("span",{className:s,children:(0,o.jsx)(r.A,{group:"tb_icon",icon:"#svg_tb_new",url:a.s8})});default:return null}},{})})}},70792:function(e,n,t){t.d(n,{S:function(){return s}});var i=t(15215),o=t(74848),r=t(16053),a=t(99525),l=t(99128),s=function(e,n,t,s){void 0===t&&(t=l.w.replaceContainer),e().then(function(e){var l=e.default;t((0,o.jsx)(r.Kq,{store:a.A,children:(0,o.jsx)(l,(0,i.Cl)({refNode:n},s||{}))}),n)})}},82200:function(e,n,t){t.d(n,{Q:function(){return a}});var i,o=t(23110),r=t(18325),a=((i={})[r.A.COUPLE_F_F]=o.n.COUPLES,i[r.A.COUPLE_F_M]=o.n.COUPLES,i[r.A.COUPLE_M_M]=o.n.MALE,i[r.A.COUPLE_T_T]=o.n.TRANSSEXUAL,i[r.A.FEMALE]=o.n.FEMALE,i[r.A.MALE]=o.n.MALE,i[r.A.TRANSSEXUAL]=o.n.TRANSSEXUAL,i[o.n.COUPLES]=o.n.COUPLES,i)},15514:function(e,n,t){var i;t.d(n,{p:function(){return i}}),function(e){e.CHAT="chat",e.LISTING="listing",e.MINI_PROFILE="mini_profile",e.PROFILE="profile"}(i||(i={}))},44307:function(e,n,t){t.d(n,{Y:function(){return a}});var i=t(18325),o=t(82200),r=t(23110);function a(e){return[o.Q[e],[i.A.COUPLE_F_F].includes(e)?r.n.FEMALE:null].filter(Boolean)}},59675:function(e,n,t){t.d(n,{a:function(){return d}});var i,o=t(28534),r=t(11530),a=t(48291),l=t(2597),s=t(99525),u=t(52276),c=t(41669);function d(e){return void 0===e&&(e=!1),new Promise(function(n,t){if(i)return n(!0);var d=s.A.getState(),f=d.isAuthenticated,p=d.user,v=d.isMobile;return f?p.membership===l.A.FREE?(v?(0,r.F)():(c("a[rel=buy_tokens]").first().trigger("click"),e&&chat.addServiceMessage(__("Pin a model feature is for premium members only")+". "+__("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")),t(!1)):(i=!0,void n(!0)):(v?(0,a._)():(e&&window.chat&&chat.addServiceMessage(__("Pin a model feature is for premium members only"),"alert"),(0,o.y)(u.L.JOIN_POPUP_MANUAL,{force:!0})),t(!1))})}},41116:function(e,n,t){t.d(n,{Uz:function(){return a},hf:function(){return r},jR:function(){return s},pd:function(){return l}});var i=t(15215),o=t(17448),r=function(e,n){var t,r=(0,o.tX)(null===(t=null==e?void 0:e.profileWall)||void 0===t?void 0:t.followButton,{isAvailable:n});return{profileWall:(0,i.Cl)((0,i.Cl)({},e.profileWall),{followButton:r})}},a=function(e,n){var t,r=n.isFollow,a=n.canFollow,l=void 0===a||a,s=n.isFollowRequested,u=void 0!==s&&s,c=e.profileWall;if(!c)return e;var d=(0,o.KE)(c.followButton,{isFollow:r,canFollow:l,isFollowRequested:u,isBannedLogged2Profile:c.followButton.isBannedLogged2Profile,isBannedProfile2Logged:c.followButton.isBannedProfile2Logged,isFollowingDisabled:null===(t=c.followButton)||void 0===t?void 0:t.isFollowingDisabled});return{profileWall:(0,i.Cl)((0,i.Cl)({},c),{followButton:d})}},l=function(e,n){var t,r=(0,o.tX)(null===(t=null==e?void 0:e.profileWall)||void 0===t?void 0:t.followButton,{isBannedProfile2Logged:n});return{profileWall:(0,i.Cl)((0,i.Cl)({},e.profileWall),{followButton:r})}},s=function(e,n){var t,r=(0,o.tX)(null===(t=null==e?void 0:e.profileWall)||void 0===t?void 0:t.followButton,{isBannedLogged2Profile:n});return{profileWall:(0,i.Cl)((0,i.Cl)({},e.profileWall),{followButton:r})}}},24216:function(e,n,t){t.r(n),t.d(n,{initProfileFollowBtnDesktop:function(){return o},initProfileFollowBtnMobile:function(){return r},updateProfileFollow:function(){return a.Uz},updateProfileFollowIsAvailable:function(){return a.hf},updateProfileFollowIsBannedLogged2Profile:function(){return a.jR},updateProfileFollowIsBannedProfile2Logged:function(){return a.pd}});var i=t(70792),o=function(e){(0,i.S)(function(){return Promise.all([t.e(6),t.e(372),t.e(379),t.e(389),t.e(456)]).then(t.bind(t,15224))},e)},r=function(e){(0,i.S)(function(){return Promise.all([t.e(6),t.e(372),t.e(379),t.e(389),t.e(516)]).then(t.bind(t,63561))},e)},a=t(41116)},36482:function(e,n,t){t.d(n,{$I:function(){return s},G8:function(){return a},kq:function(){return r},qj:function(){return l}});var i=t(15215),o=t(17448),r=function(e,n){var t,r=(0,o.tX)(null===(t=null==e?void 0:e.profileWall)||void 0===t?void 0:t.followRedButton,{isAvailable:n});return{profileWall:(0,i.Cl)((0,i.Cl)({},e.profileWall),{followRedButton:r})}},a=function(e,n){var t,r=(0,o.tX)(null===(t=null==e?void 0:e.profileWall)||void 0===t?void 0:t.followRedButton,{isBannedProfile2Logged:n});return{profileWall:(0,i.Cl)((0,i.Cl)({},e.profileWall),{followRedButton:r})}},l=function(e,n){var t,r=(0,o.tX)(null===(t=null==e?void 0:e.profileWall)||void 0===t?void 0:t.followRedButton,{isBannedLogged2Profile:n});return{profileWall:(0,i.Cl)((0,i.Cl)({},e.profileWall),{followRedButton:r})}},s=function(e,n){var t,r=n.isFollow,a=n.canFollow,l=void 0===a||a,s=n.isFollowRequested,u=void 0!==s&&s,c=e.profileWall;if(!c)return e;var d=(0,o.KE)(c.followRedButton,{isFollow:r,canFollow:l,isFollowRequested:u,isBannedProfile2Logged:c.followRedButton.isBannedProfile2Logged,isBannedLogged2Profile:c.followRedButton.isBannedLogged2Profile,isFollowingDisabled:null===(t=c.followRedButton)||void 0===t?void 0:t.isFollowingDisabled});return{profileWall:(0,i.Cl)((0,i.Cl)({},c),{followRedButton:d})}}},46857:function(e,n,t){t.r(n),t.d(n,{initProfileDesktopFollowRedBtn:function(){return o},updateProfileFollowRed:function(){return r.$I},updateProfileFollowRedIsAvailable:function(){return r.kq},updateProfileFollowRedIsBannedLogged2Profile:function(){return r.qj},updateProfileFollowRedIsBannedProfile2Logged:function(){return r.G8}});var i=t(70792),o=function(e){(0,i.S)(function(){return Promise.all([t.e(6),t.e(372),t.e(379),t.e(385)]).then(t.bind(t,36503))},e)},r=t(36482)},11976:function(e,n,t){t.d(n,{r:function(){return l},E:function(){return r}});var i=t(15215),o=t(58884),r=function(e,n){var t,r=(0,o.ml)(null===(t=null==e?void 0:e.profileWall)||void 0===t?void 0:t.subscribeOnlineNotificationButton,n);return{profileWall:(0,i.Cl)((0,i.Cl)({},null==e?void 0:e.profileWall),{subscribeOnlineNotificationButton:r})}},a=t(70792),l=function(e){(0,a.S)(function(){return Promise.all([t.e(6),t.e(280),t.e(5),t.e(273),t.e(268),t.e(822),t.e(496),t.e(392),t.e(743),t.e(352)]).then(t.bind(t,25236))},e)}},59006:function(e,n,t){t.r(n),t.d(n,{default:function(){return K}});var i=t(74848),o=t(26580),r=t(96540),a=t(73437),l=(0,r.createContext)({addQuestion:a.noop,replacePaidQuestion:a.noop}),s=l.Provider,u=function(){return(0,r.useContext)(l)},c=t(16053),d=t(55140),f=t(19223),p=t(15215),v=t(63658),m=function(e){var n=e.isShowAdditionalText,t=e.onHideClick,o=e.onShowClick;return(0,i.jsxs)(i.Fragment,{children:[n?v.K.SPACE:"...".concat(v.K.SPACE),(0,i.jsxs)("span",{className:"psq_toggle_text",children:[!n&&(0,i.jsxs)("span",{onClick:o,children:[__("Show more%_sq_%")," "]}),n&&(0,i.jsxs)("span",{onClick:t,children:[" ",__("Hide")," "]})]})]})},h=t(57933),_=t(96575),w=t(46517),b=t(41669),g=function(e){var n=e.askForm,t=function(e){var n=e.formPopupApiUrl,t=u().addQuestion,i=(0,w.d4)(function(e){return e}).isAuthenticated;return{openAskPopup:function(){return(0,p.sH)(void 0,void 0,void 0,function(){var e,o,r,a;return(0,p.YH)(this,function(l){switch(l.label){case 0:return i?(e=(0,f.z6)(n),o=e.urlString,r=(0,p.Tt)(e,["urlString"]),[4,(0,h.AT)(o,r)]):(b.signupEvent.call(this),[2]);case 1:return"success"===(a=l.sent()).status&&(0,_.R)("@@ChatEvent/openSexQuestionnaireAskPopup",{askFormData:a.data,successCallback:t}),[2]}})})}}}({formPopupApiUrl:n.askButton.url}).openAskPopup;return(0,i.jsxs)("div",{className:"psq_ask_form bc_flex bc_flex_justify_s_between",children:[(0,i.jsx)("p",{className:"af_text",children:trans(n.caption.text,{"{{modelName}}":'',"{{/modelName}}":""})}),(0,i.jsx)("button",{className:"af_btn mls_btn mls_btn_red mls_btn_mini",onClick:t,type:n.askButton.type,children:n.askButton.text})]})},x=t(14667),k=function(e,n){var t=0,i=[],o=function(e){return e.trim().replace(/ +/gu," ")}(e).split(" ").some(function(e){if(e.match(/\s/u))return i.push(e),t+=1===e.length?0:e.length,!1;var o=e.match(x.default.standardSmileCollectionPattern);i.push(o?''.concat(e,""):e);var r=0===t;return t+=(o?1:e.length)+(r?0:1),!n&&t>300}),r=i.join(" ");return{restrictedText:n?r:r.substring(0,r.length-(t-300)),isTextOverflowed:o}},S=function(e){var n=e.text,t=e.isTextLimit,i=void 0===t||t,o=e.isFull,r=void 0!==o&&o,a=Array.from(n.matchAll(/(\r\n|\n|\r)/gu));return a.length>=3&&!r?{restrictedText:k(n.substring(0,a[2].index),!1).restrictedText,isTextOverflowed:!0}:k(n,!i||r)},A=function(e){var n=e.answerText,t=e.isTextLimit,i=(0,r.useState)(!1),o=i[0],a=i[1],l=(0,r.useState)(),s=l[0],u=l[1],c=function(e,n){void 0===n&&(n=!0);var t=S({text:e,isTextLimit:n}),i=t.restrictedText,o=t.isTextOverflowed;return{restrictedText:x.default.replace({message:i,isMultiline:!0}),isTextOverflowed:o}}(n,t),d=c.restrictedText,f=c.isTextOverflowed,p=(0,r.useState)(f),v=p[0],m=p[1],h=(0,r.useRef)(null),_=(0,r.useCallback)(function(e){v&&o&&u(function(e){var n=S({text:e,isFull:!0}).restrictedText;return x.default.replace({message:n,isMultiline:!0})}(e).substring(d.length)),f&&m(f)},[d,o,v,f]);(0,r.useEffect)(function(){return h&&h.current.querySelectorAll(".js-sia_smile.__hidden img").forEach(function(e){e.onload=function(){e.parentElement.classList.remove("__hidden"),e.parentElement.classList.remove("js-sia_smile")}}),function(){m(!1),a(!1)}},[n]),(0,r.useLayoutEffect)(function(){_(n)},[_,n]);return{restrictedText:d,additionalAnswerText:s,wrapperSmileElRef:h,isTextOverflow:v,isShowAdditionalText:o,handleShowMoreTextClick:function(){a(!0)},handleHideMoreTextClick:function(){a(!1)}}},C=t(40682),T=function(e){var n=e.question,t=e.index,r=A({answerText:n.answer}),a=r.restrictedText,l=r.additionalAnswerText,s=r.wrapperSmileElRef,u=r.isShowAdditionalText,c=r.isTextOverflow,f=r.handleShowMoreTextClick,p=r.handleHideMoreTextClick;return(0,i.jsxs)("li",{className:"psq_settings_item",children:[(0,i.jsx)("p",{className:"si_question",children:"".concat(t+1,". ").concat(n.question)}),(0,i.jsxs)("p",{className:"si_answer",children:[(0,i.jsx)(o.A,{group:"sia_icon",icon:"#svg_pw_sq_answer_arr",url:d._5}),(0,i.jsxs)("p",{ref:s,className:"sia_text",children:[(0,i.jsx)(C.E,{tagName:"span",html:a}),u&&(0,i.jsx)(C.E,{tagName:"span",html:l}),c&&(0,i.jsx)(m,{isShowAdditionalText:u,onHideClick:p,onShowClick:f})]})]})]})},N=t(47077),y=t(83375),E=function(e){var n=e.text,t=e.isActive,o=e.apiUrl,r=e.changeTab,a=e.badge,l=function(e){var n=e.changeTab,t=e.apiUrl;return{tabClickHandler:function(){n(t)}}}({changeTab:r,apiUrl:o}).tabClickHandler;return(0,i.jsxs)("span",{onClick:l,className:(0,y.n)({"tab_title bc_flex bc_flex_items_center":!0,__active:t}),children:[n,a&&"caption"===a.type&&v.K.SPACE,a&&(0,i.jsx)(N.E,{data:a})]})},P=function(e){var n=e.footer,t=e.isFullQuestionOpen,r=function(e){var n=e.changeIsFullQuestionOpen;return{handleLessButtonClick:function(){n(!1)},handleMoreButtonClick:function(){n(!0)}}}({changeIsFullQuestionOpen:e.changeIsFullQuestionOpen}),a=r.handleMoreButtonClick,l=r.handleLessButtonClick;return(0,i.jsxs)("div",{className:"psq_footer",children:[n.settingLink&&(0,i.jsxs)("a",{className:"qf_link",href:(0,f.FC)(n.settingLink.url),children:[(0,i.jsx)(o.A,{group:"qfl_icon",icon:"#svg_pw_gear",url:d._5}),n.settingLink.text]}),!t&&(0,i.jsx)("button",{className:"qf_btn qf_right",type:n.moreButton.type,onClick:a,children:n.moreButton.text}),t&&(0,i.jsx)("button",{className:"qf_btn qf_right",type:n.lessButton.type,onClick:l,children:n.lessButton.text})]})},L=t(4312),I=function(e){var n=e.questionnaireSexSettings,t=e.username,i=(0,r.useState)([]),o=i[0],a=i[1],l=(0,r.useState)(!1),s=l[0],u=l[1],c=(0,r.useState)(!1),d=c[0],f=c[1],v=n.footer,m=n.askForm,_=function(e){a(e)},w=(0,r.useCallback)(function(){f(!0),function(e,n){return(0,h.AT)((0,L.Rs)(e,"username",n),{method:"GET"})}(v.moreApiUrl,t).then(function(e){var n;_(null===(n=e.data)||void 0===n?void 0:n.questions.items),u(!0),f(!1)}).catch(function(e){console.error(e)}).then(function(){f(!1)})},[v.moreApiUrl,t]);(0,r.useEffect)(function(){s&&0===o.length&&w()},[o.length,s,w]);return{askForm:m,questions:s&&!d?(0,p.fX)((0,p.fX)([],n.questions,!0),o,!0):n.questions,footerData:v,isFullQuestionOpen:s,changeIsFullQuestionOpen:function(e){u(e)},updateQuestions:_}},j=function(e){var n=e.isMemberBanned,t=(0,p.Tt)(e,["isMemberBanned"]),o=I(t),r=o.questions,a=o.footerData,l=o.askForm,s=o.isFullQuestionOpen,u=o.changeIsFullQuestionOpen;return(0,i.jsxs)(i.Fragment,{children:[l&&!n&&(0,i.jsx)(g,{askForm:l}),(0,i.jsx)("ol",{className:"psq_list",children:r.map(function(e,n){return(0,i.jsx)(T,{question:e,index:n},n)})}),(0,i.jsx)(P,{footer:a,isFullQuestionOpen:s,changeIsFullQuestionOpen:u})]})},B=t(40172),D=t(41669),F=function(e){var n=function(e){var n=e.likeData,t=(0,w.d4)(B.UQ),i=(0,r.useRef)(!1),o=(0,r.useState)(n),a=o[0],l=o[1],s=(0,r.useCallback)(function(e){return(0,h.gQ)(e,{body:JSON.stringify({questionId:n.questionId}),method:"POST"})},[n.questionId]),u=function(e){l(function(n){return(0,p.Cl)((0,p.Cl)({},n),e)}),i.current=!1};(0,r.useEffect)(function(){u(n)},[n]);var c=(0,r.useCallback)(function(){return(0,p.sH)(void 0,void 0,void 0,function(){var e,n;return(0,p.YH)(this,function(o){switch(o.label){case 0:return t?!a.likeApiUrl&&!a.dislikeApiUrl||i.current?[2]:(i.current=!0,e=a.isLiked?a.dislikeApiUrl:a.likeApiUrl,[4,s(e)]):(D.signupEvent.call(this),[2]);case 1:return n=o.sent(),u(n.data),[2]}})})},[t,a.dislikeApiUrl,a.isLiked,a.likeApiUrl,s]);return(0,p.Cl)((0,p.Cl)({},a),{likeClickHandler:c})}({likeData:e.like}),t=n.likesCount,a=n.likeClickHandler,l=n.isLiked;return(0,i.jsxs)("div",{className:(0,y.n)({pi_like:!0,__like:l}),children:[t,(0,i.jsx)("button",{className:"pil_btn",onClick:a,children:(0,i.jsx)(o.A,{group:"pil_icon",icon:"#svg_pw_heart_like",url:d._5})})]})},q=t(34710),O=function(e){var n=e.question,t=n.text,o=n.anonymizeButton,r=function(e){var n=e.text,t=A({answerText:n,isTextLimit:!1}),i=t.restrictedText,o=t.wrapperSmileElRef,r=t.additionalAnswerText,a=t.isShowAdditionalText,l=t.isTextOverflow,s=t.handleShowMoreTextClick,c=t.handleHideMoreTextClick,d=u().replacePaidQuestion;return{messageText:i,wrapperSmileElRef:o,additionalAnswerText:r,isShowAdditionalText:a,isTextOverflow:l,handleShowMoreTextClick:s,createAnonymizeButtonClickHandler:function(e){return function(){return(0,p.sH)(void 0,void 0,void 0,function(){var n,t,i,o,r,a;return(0,p.YH)(this,function(l){switch(l.label){case 0:return e?(n=(0,f.z6)(e),t=n.method,i=n.body,o=n.urlString,[4,(0,q.mN)(o,{method:t,body:i})]):[2];case 1:return r=l.sent(),a=r.data,r.error?[2]:a?(d(a.paidQuestion),[2]):[2]}})})}},handleHideMoreTextClick:c}}({text:t,anonymizeButton:o}),a=r.messageText,l=r.wrapperSmileElRef,s=r.additionalAnswerText,c=r.isShowAdditionalText,d=r.isTextOverflow,v=r.handleShowMoreTextClick,h=r.handleHideMoreTextClick,_=r.createAnonymizeButtonClickHandler;return(0,i.jsxs)("div",{className:"pi_question",children:[n.profileLink.url&&(0,i.jsx)("a",{className:"pi_avatar_wrp",rel:"profile",href:n.profilePhoto.profileUrl,target:"_blank",children:(0,i.jsx)("img",{className:"pi_avatar",src:n.profilePhoto.image.src,alt:""})}),!n.profileLink.url&&(0,i.jsx)("span",{className:"pi_avatar_wrp",children:(0,i.jsx)("img",{className:"pi_avatar",src:n.profilePhoto.image.src,alt:""})}),(0,i.jsxs)("div",{className:"pi_info",children:[(0,i.jsxs)("div",{className:"pii_head",children:[n.profileLink.url&&(0,i.jsx)("a",{className:"pi_author",rel:"profile",href:(0,f.FC)(n.profileLink.url),children:n.profileLink.text}),!n.profileLink.url&&(0,i.jsx)("span",{className:"pi_author",children:" Anonymous "}),(0,i.jsx)("div",{className:"pi_date",children:n.formattedDateTime}),Boolean(n.likes)&&(0,i.jsx)(F,{like:n.likes}),o&&(0,i.jsx)("button",{onClick:_(o.url),children:o.text})]}),(0,i.jsxs)("span",{ref:l,children:[(0,i.jsx)(C.E,{tagName:"span",className:"pi_msg",html:a}),c&&(0,i.jsx)(C.E,{tagName:"span",html:s}),d&&(0,i.jsx)(m,{isShowAdditionalText:c,onHideClick:h,onShowClick:v})]})]})]})},U=function(e){var n=e.answer,t=function(e){var n=e.complaintButton,t=e.complaintPopupApiUrl,i=e.complainSendCaption,o=(0,r.useState)((0,p.Cl)((0,p.Cl)({},n),{text:i||(null==n?void 0:n.text),isSend:Boolean(i)})),a=o[0],l=o[1],s=function(e){l(function(n){return(0,p.Cl)((0,p.Cl)({},n),{isSend:!0,text:e})})};return{complaintStatus:a,complainHandler:function(){return(0,p.sH)(void 0,void 0,void 0,function(){var e;return(0,p.YH)(this,function(n){switch(n.label){case 0:return[4,(0,h.AT)(t,{method:"GET"})];case 1:return"success"===(e=n.sent()).status&&(0,_.R)("@@ChatEvent/openSexQuestionnaireComplainPopup",{complainData:e.data,successCallback:s}),[2]}})})}}}({complaintPopupApiUrl:n.complaintPopupApiUrl,complaintButton:n.complaintButton,complainSendCaption:n.complaintSent}),a=t.complaintStatus,l=t.complainHandler,s=A({answerText:n.text}),u=s.restrictedText,c=s.additionalAnswerText,f=s.wrapperSmileElRef,v=s.isShowAdditionalText,w=s.isTextOverflow,b=s.handleShowMoreTextClick,g=s.handleHideMoreTextClick;return(0,i.jsxs)("div",{className:"pi_answer",children:[(0,i.jsxs)("div",{className:"pia_wrp",children:[(0,i.jsx)(o.A,{group:"pia_arr",icon:"#svg_pw_sq_answer_arr",url:d._5}),(0,i.jsx)("span",{className:"pi_avatar_wrp",children:(0,i.jsx)("img",{className:"pi_avatar",src:n.profilePhoto.image.src,alt:n.profilePhoto.image.alt})})]}),(0,i.jsxs)("div",{className:"pi_info",children:[(0,i.jsxs)("div",{className:"pii_head",children:[(0,i.jsx)("span",{className:"pi_author",children:n.modelName}),a&&(0,i.jsxs)(i.Fragment,{children:[!a.isSend&&(0,i.jsx)("button",{className:"pi_complaint __action",onClick:l,type:a.type,children:a.text}),a.isSend&&(0,i.jsxs)("p",{className:"pi_complaint __send",children:[(0,i.jsx)(o.A,{group:"pic_icon",icon:"#svg_pw_check",url:d._5}),a.text]})]})]}),(0,i.jsxs)("p",{className:"pi_msg",ref:f,children:[(0,i.jsx)(C.E,{tagName:"span",html:u}),v&&(0,i.jsx)(C.E,{tagName:"span",html:c}),w&&(0,i.jsx)(m,{isShowAdditionalText:v,onHideClick:g,onShowClick:b})]})]})]})},M=t(72983),H=function(e){var n;return e.index===e.currentPage?(0,i.jsx)("span",{className:"bcp_item __current",children:e.caption||e.index}):(0,i.jsx)("a",{className:(0,y.n)((n={bcp_item:!0},n[e.classNameItem]=Boolean(e.classNameItem),n)),href:"#",onClick:function(n){e.clickHandler(e.index),n.preventDefault()},children:e.caption||e.index})},R=function(e){var n;if(e.numberOfPages<2)return null;var t=[];if(e.currentPage>1){var o=(0,i.jsx)("span",{dangerouslySetInnerHTML:{__html:M.isRTLCulture?"→":"←"}});t.push((0,i.jsx)(H,(0,p.Cl)({index:e.currentPage-1,caption:o,classNameItem:"__arrow"},e)))}var r=1,a=e.numberOfPages;a>10&&(r=Math.min(a-9,Math.max(1,e.currentPage-5)),a=Math.max(10,Math.min(a,e.currentPage+4)));for(var l=r;l<=a;l++)t.push((0,i.jsx)(H,(0,p.Cl)({index:l},e)));if(e.currentPage1&&(0,i.jsx)("div",{className:(0,y.n)((n={bc_pager:!0},n[e.className]=Boolean(e.className),n)),children:t})},Q=function(e){if(!(null==e?void 0:e.count))return{};var n=function(e){return Math.ceil((null==e?void 0:e.count)/(null==e?void 0:e.perPage))}(e);return{count:n,currentOffset:(null==e?void 0:e.offset)/(null==e?void 0:e.perPage)}},W=function(e){var n=function(e){var n=e.pagerData,t=e.updatePaidQuestionData,i=(0,r.useState)(0),o=i[0],a=i[1],l=(0,r.useState)(0),s=l[0],u=l[1];return(0,r.useEffect)(function(){var e=Q(n),t=e.count,i=e.currentOffset;a(i),u(t)},[n]),{clickPaginatorHandler:function(e){t(n.url,{offset:(e-1)*n.perPage})},currentIndex:o,numberOfPage:s}}({pagerData:e.pagerData,updatePaidQuestionData:e.updatePaidQuestionData}),t=n.clickPaginatorHandler,o=n.numberOfPage,a=n.currentIndex;return(0,i.jsx)("div",{className:"psq_footer",children:(0,i.jsx)(R,{className:"qf_right",currentPage:a+1,numberOfPages:o,clickHandler:t})})},Y=function(e){var n=e.answerLinkData,t=e.questionId,r=function(e){var n=e.questionId,t=e.apiUrl;return{answerLinkHref:(0,L.wm)(t,"",{questionId:n})}}({apiUrl:(0,f.FC)(n.url),questionId:t}).answerLinkHref;return(0,i.jsxs)("a",{className:"pi_answer_link",href:r,children:[(0,i.jsx)(o.A,{group:"al_icon",icon:"#svg_pw_sq_answer_arr",url:d._5}),(0,i.jsx)("span",{className:"al_text",children:n.text})]})},X=function(e){var n=e.paidQuestionData,t=e.isMemberBanned,o=e.updatePaidQuestionData,r=function(e){var n,t=e.paidQuestionData,i=null===(n=null==t?void 0:t.questions)||void 0===n?void 0:n.items,o=null==t?void 0:t.questions.pager;return{user:(0,w.d4)(function(e){return e}).user,items:i,pagerData:o}}({paidQuestionData:n,updatePaidQuestionData:o}),a=r.user,l=r.items,s=r.pagerData;return(0,i.jsxs)(i.Fragment,{children:[n.questions.askForm&&!t&&(0,i.jsx)(g,{askForm:n.questions.askForm}),(0,i.jsx)("ol",{className:"psq_list __paid",children:null==l?void 0:l.map(function(e){return(0,i.jsxs)("li",{className:(0,y.n)({psq_paid_item:!0,__own:a.displayName===e.question.profileLink.text}),"data-questionid":e.questionId,children:[(0,i.jsx)(O,{question:e.question}),e.answerLink&&(0,i.jsx)(Y,{answerLinkData:e.answerLink,questionId:e.questionId}),e.answer&&(0,i.jsx)(U,{answer:e.answer})]},e.questionId)})}),(0,i.jsx)(W,{pagerData:s,updatePaidQuestionData:o})]})},V=t(63861),G=(0,c.Ng)(function(e){return{questionnaireData:{questionnaireSexSettings:e.questionnaireSexSettings,username:e.profileWall.username},isMemberBanned:e.isMemberBanned}})(function(e){var n=e.questionnaireData,t=e.isMemberBanned,a=function(e){var n=e.questionnaireSexSettings,t=e.username,i=(0,r.useState)(n.questions)[0],o=(0,r.useState)(!1),a=o[0],l=o[1],s=(0,r.useState)(),u=s[0],c=s[1],d=(0,r.useState)(null),f=d[0],v=d[1],m=(0,r.useState)(n.tabs.tabs),_=m[0],w=m[1],b=(0,r.useMemo)(function(){return new AbortController},[]),g=n.footer,x=(0,r.useCallback)(function(e,n){var t=(0,L.wm)(e,"",n);return(0,h.AT)(t,{method:"GET",abortController:b})},[b]),k=(0,r.useCallback)(function(e){for(var n=[],i=1;i'.concat(__(e.error),""))},"json"),!1}),ee(".show_video_view .pm_close").one("click",function(){(0,r.e9)()}),i(),i=(0,C.To)(document,[{code:"Enter",key:13}],function(){ee(".js-private_player .vpr_btn.__play, .js-private_player .vpr_btn.__pause").trigger("click")})},beforeClose:function(){i()}}),!1)}),P.BrowserDetect.detectIE()&&(0,j.isTokenInBodyClassList)("lang_ar")&&(ee(window).on("resize",d),d()),ee(document).on("click",".js-pin_model, .js-unpin_model",function(e){_(e)});var f=function(){document.querySelector("#scheduleTooltips")&&t.e(544).then(t.bind(t,14676)).then(function(e){e.ScheduleTooltip.init()})},p=document.getElementById("profileWallGifts");p&&W(p);var v=document.getElementById("sexQuestionnaire");v&&(l((0,B.json_parse)(document.querySelector("#sexQuestionnaireData").innerHTML)),K(v));var m=document.getElementById("profileModelFollowButton");m&&(0,H.initProfileFollowBtnDesktop)(m);var h=document.getElementById("profileModelSubscribeOnlineNotificationButton");h&&(0,X.r)(h);var w=document.getElementById("profilePinUserButton");w&&V(w);var b=document.getElementById("profileFollowRedButton");b&&(0,Q.initProfileDesktopFollowRedBtn)(b);var g=document.getElementById("profileBanMemberButton");g&&O(g);var x=document.getElementById("profileBestMemberButton");x&&U(x);var k=document.querySelector(".js-profile_header_photo_block");k&&Y(k);var S=document.querySelector(".js-profile_videos");S&&$(S);var A=document.querySelector(".js-profile_albums_photo");A&&z(A);var ne=document.querySelector(".js-profile_password_galleries");ne&&G(ne);var te=document.querySelector("#profileAlbumsCreateAlbum");te&&q(te);var ie,oe=document.querySelector("#profileAlbumsSharedAlbums");oe&&(ie=oe,(0,F.S)(function(){return Promise.all([t.e(540),t.e(518)]).then(t.bind(t,66574))},ie));var re=document.querySelector("#profileAlbumsProtectedAlbums");re&&function(e){(0,F.S)(function(){return Promise.all([t.e(540),t.e(472)]).then(t.bind(t,29462))},e)}(re);var ae=document.getElementById("profileFollowers");ae&&R(ae);var le=document.querySelector("#videoList");le&&Z(le);var se=document.querySelector("#videoListCustom");se&&M(se);var ue=document.querySelector("#profileSnapshotDocuments");ue&&J(ue),P.BrowserDetect.isTouchDevice()?f():ee(".js-schedule_wrp").one("mousemove",f),ee(".js-album-access_btn").on("click",N.w),ee("body").on("click",".js-profile_fake_link[data-href]",function(e){e.preventDefault(),e.stopPropagation();var n=ee(this).data("href");n&&(location.href=n)}),document.addEventListener("@@profileSendTip/success",function(e){var n=e.detail,t=n.amount,i=n.displayName;(0,E.c)([{message:__("You sent {{highlight}}%amount% %tokens_plural%{{/highlight}} to model {{modelName}}%model_name%{{/modelName}}",{amount:t,model_name:i,tokens_plural:D.kX.pluralise("tokens",t),"{{highlight}}(.*?){{/highlight}}":function(e){var n=e.args[0];return(0,o.jsx)("span",{className:"bc_bold",children:n})},"{{modelName}}(.*?){{/modelName}}":function(e){var n=e.args[0];return(0,o.jsx)("span",{className:"bc_bold bc_text_ellipsis bc_dir_ltr",children:n})}}),type:y.y.TIP_WAS_SENDED}]),(0,s.R)("@@popup/close",{modalType:"NEW_TIP_MODEL_POPUP"})}),document.addEventListener("@@profileSendMessage/success",function(e){var n=e.detail.recipientsDisplayNames;(0,E.c)([{message:__("%your_message_link% has been sent to %user_list%",{user_list:''.concat(n,""),your_message_link:__("Your message")}),type:y.y.MESSAGE_SENT}]),(0,s.R)("@@popup/close",{modalType:"NEW_TIP_MODEL_POPUP"})})},e}();function te(){(new ne).init()}},22078:function(e,n,t){function i(e){return!(null==e||!1===(null==e?void 0:e.isAvailable)||0===Object.keys(e).length)}t.d(n,{j:function(){return i}})},37092:function(e,n,t){t.d(n,{w:function(){return s}});var i=t(15215),o=t(34710),r=t(57933),a=t(63861),l=t(41669);function s(e){return(0,i.sH)(this,void 0,void 0,function(){var n,t,s,u,c;return(0,i.YH)(this,function(i){switch(i.label){case 0:return e.preventDefault(),n=l(this).closest("form"),[4,(0,r.gQ)((0,a.ip)("@api_album_get_access"),{method:"POST",body:JSON.stringify({id:+l(this).attr("data-album-id"),password:n.find("#album_access_password").val()})})];case 1:return t=i.sent(),s=null===(c=null==t?void 0:t.errors)||void 0===c?void 0:c.password,Boolean(!s||0===(null==s?void 0:s.length))?window.location.reload():(u=(null==s?void 0:s[0])||o.Rb,n.find(".form_errors_in_row").html(''.concat(u,"
"))),[2,!1]}})})}},19769:function(e,n,t){t.d(n,{a:function(){return s}});var i=t(96540),o=t(73437),r=t(63861),a=t(63065),l=t(85340),s=function(e){var n=e.followLinkUrl,t=e.send,s=e.successCallback,u=void 0===s?o.noop:s,c=e.username,d=e.isAuthenticated,f=e.isNeedBuyToken,p=e.onError,v=void 0===p?o.noop:p,m=e.onIsNeedBuyToken,h=e.onNotIsAuthenticated,_=e.onSend,w=void 0===_?o.noop:_,b=function(e){var n=e.isAuthenticated,t=e.isNeedBuyToken,r=(0,i.useCallback)(function(e){var i=e.sendFollowLocal,r=void 0===i?o.noop:i,a=e.onIsNeedBuyToken,l=void 0===a?o.noop:a,s=e.onNotIsAuthenticated,u=void 0===s?o.noop:s;return function(e){e.preventDefault(),n?t?l():r():u()}},[n,t]);return{handleFollowBuilder:r}}({isAuthenticated:d,isNeedBuyToken:f}).handleFollowBuilder,g=function(e){var n=e.followLinkUrl,t=e.username,o=(0,l.h)().sendApiRequest;return{sendFollow:(0,i.useCallback)(function(){var e=n||(0,r.ip)("@api_follower_follow"),i={username:(0,a.o)(t)};return o(e,{body:JSON.stringify(i),headers:{"Content-Type":"application/json"}})},[n,t,o])}}({followLinkUrl:n,username:c}).sendFollow;return{handleDefaultFollow:b({sendFollowLocal:(0,i.useCallback)(function(){w(),(t||g)().then(function(e){!e||e.errors?v():u(e)})},[v,w,t,g,u]),onIsNeedBuyToken:m||o.noop,onNotIsAuthenticated:h||o.noop})}}},27560:function(e,n,t){t.d(n,{N:function(){return s}});var i=t(96540),o=t(73437),r=t(63861),a=t(63065),l=t(85340),s=function(e){var n=e.send,t=e.successCallback,s=void 0===t?o.noop:t,u=e.unfollowLinkUrl,c=e.username,d=e.isAuthenticated,f=e.isNeedBuyToken,p=e.onError,v=void 0===p?o.noop:p,m=e.onIsNeedBuyToken,h=e.onNotIsAuthenticated,_=e.onSend,w=void 0===_?o.noop:_,b=function(e){var n=e.isAuthenticated,t=e.isNeedBuyToken,r=(0,i.useCallback)(function(e){var i=e.sendUnFollowLocal,r=void 0===i?o.noop:i,a=e.onIsNeedBuyToken,l=void 0===a?o.noop:a,s=e.onNotIsAuthenticated,u=void 0===s?o.noop:s;return function(e){e.preventDefault(),n?t?l():r():u()}},[n,t]);return{handleUnFollowBuilder:r}}({isAuthenticated:d,isNeedBuyToken:f}).handleUnFollowBuilder,g=function(e){var n=e.unfollowLinkUrl,t=e.username,o=(0,l.h)().sendApiRequest;return{sendUnFollow:(0,i.useCallback)(function(){var e=n||(0,r.ip)("@api_follower_unfollow"),i=(0,a.o)(t);return o(e,{body:JSON.stringify({username:i}),headers:{"Content-Type":"application/json"}})},[o,n,t])}}({unfollowLinkUrl:u,username:c}).sendUnFollow;return{handleDefaultUnFollow:b({sendUnFollowLocal:(0,i.useCallback)(function(){w(),(n||g)().then(function(e){!e||e.errors?v():s(e)})},[v,w,n,g,s]),onIsNeedBuyToken:m||o.noop,onNotIsAuthenticated:h||o.noop})}}},17448:function(e,n,t){t.d(n,{EA:function(){return o},KE:function(){return a},tX:function(){return l},aL:function(){return s.a},NS:function(){return u.N}});var i=t(22078),o=function(e){return!(0,i.j)(e)||!((!(null==e?void 0:e.isBannedProfile2Logged)||(null==e?void 0:e.isAlreadyFollow))&&((null==e?void 0:e.isUnfollowButtonVisible)||(null==e?void 0:e.isFollowButtonVisible)||(null==e?void 0:e.isRequestedButtonVisible))&&!(null==e?void 0:e.isBannedLogged2Profile))},r=t(15215),a=function(e,n){var t=n.isFollowingDisabled,i=n.isFollow,o=(null==n?void 0:n.isFollowRequested)||!1,a=void 0===n.canFollow||n.canFollow,l=!0===n.isAvailable||!0===(null==e?void 0:e.isAvailable);return(0,r.Cl)((0,r.Cl)({},e),{isAlreadyFollow:Boolean(i&&!o),isAvailable:l,isFollowButtonVisible:l&&!t&&!i&&!o&&a,isFollowRequested:o,isRequestedButtonVisible:o,isUnfollowButtonVisible:Boolean(i&&!o)})},l=function(e,n){return(0,r.Cl)((0,r.Cl)({},e),n)},s=t(19769),u=t(27560)},11530:function(e,n,t){t.d(n,{F:function(){return d},j:function(){return f}});var i=t(96540),o=t(73437),r=t(15215),a=t(63861),l=t(14811),s="buy_tokens",u=t(84435),c=t(41669),d=function(e){var n,t=document.getElementById(s);if(t){var i=null===(n=document.querySelector("body"))||void 0===n?void 0:n.classList.contains("chat_visible"),o=t.querySelector(".bc-header a[data-rel=back]");!i&&u.BrowserDetect.isIOS()&&o&&!o.classList.contains("__back_fix")&&(o.classList.add("__back_fix"),o.addEventListener("click",function(e){e.preventDefault(),o.classList.remove("__back_fix"),c.mobile.changePage("#main",{transition:"slide",reverse:!0,isReplaceState:!0})},{once:!0}));var d=new URLSearchParams((0,r.Cl)({},(null==e?void 0:e.customAmount)&&{price:e.customAmount.toString()})).toString();t.classList.add("page_swipe_fix"),c.mobile.changePage("#".concat(s),(0,r.Cl)((0,r.Cl)({},d&&{dataUrl:"?".concat(d,"#").concat(s)}),{isReplaceState:u.BrowserDetect.isIOS()&&!i,transition:"slide"}))}else location.href=(0,l.Z)((0,a.ip)("@member_buy_tokens"))},f=function(e){return void 0===e&&(e=o.noop),(0,i.useCallback)(function(){e(),d()},[e])}},48291:function(e,n,t){t.d(n,{_:function(){return l},L:function(){return r}});var i=t(96540),o=t(73437),r=function(e){return void 0===e&&(e=o.noop),(0,i.useCallback)(function(){e(),l()},[e])},a=t(79276),l=function(){return(0,a.JX)("login_join")}},51101:function(e,n,t){t.d(n,{L8:function(){return p},AK:function(){return m},wm:function(){return s},$9:function(){return c},wd:function(){return u}});var i=t(45667),o=t(73437),r=function(e){var n,t=e.onEvent,r=void 0===t?o.noop:t;(0,i.o)({handles:(n={},n[1]=r,n)})},a=t(96540),l=t(63065),s=function(e){var n=e.username,t=e.onEvent,i=void 0===t?o.noop:t,s=(0,a.useCallback)(function(e){var t,o,r,a,s=(0,l.o)(n);((0,l.o)(null===(t=null==e?void 0:e.data)||void 0===t?void 0:t.ban_username)===s||Boolean(null===(o=null==e?void 0:e.data)||void 0===o?void 0:o.author)&&(0,l.o)(null===(r=null==e?void 0:e.data)||void 0===r?void 0:r.username)===s&&(0,l.o)(null===(a=null==e?void 0:e.data)||void 0===a?void 0:a.author)!==s)&&i()},[i,n]);r({onEvent:s})},u=function(e){var n,t=e.onEvent,r=void 0===t?o.noop:t;(0,i.o)({handles:(n={},n[2]=r,n)})},c=function(e){var n=e.username,t=e.onEvent,i=void 0===t?o.noop:t,r=(0,a.useCallback)(function(e){var t,o,r,a,s=(0,l.o)(n);((null===(t=null==e?void 0:e.data)||void 0===t?void 0:t.usernames)?null===(r=null===(o=null==e?void 0:e.data)||void 0===o?void 0:o.usernames)||void 0===r?void 0:r.some(function(e){return(0,l.o)(e)===s}):(0,l.o)(null===(a=null==e?void 0:e.data)||void 0===a?void 0:a.username)===s)&&i()},[i,n]);u({onEvent:r})},d=t(15215),f=t(41669),p=function(e,n){if(f.noticeSocket){var t=e.authorLinkForBanHtml,i=e.lt;e.users.forEach(function(e){var o=e.ut,r=e.username,a=e.ban_username;if(!a||r===n){var l=(0,d.Cl)((0,d.Cl)({author:null!=n?n:"",username:r,ut:o},a&&{ban_username:a}),t&&!a&&{author_link_for_ban_html:t,lt:i});f.noticeSocket.send({data:{data:l,type:1},type:"user"})}})}},v=t(41669),m=function(e){if(v.noticeSocket){var n={username:e.username,usernames:e.usernames,ut:e.ut};v.noticeSocket.send({data:{data:n,type:2},type:"user"})}}},67257:function(e,n,t){var i;t.d(n,{y:function(){return i}}),function(e){e.ACCOUNT_SETTINGS_ERROR="account_settings_error",e.ACCOUNT_SETTINGS_SUCCESS="account_settings_success",e.BAN="ban",e.FAN_BOOST_RECEIVED="fanBoostReceived",e.FOLLOW="follow",e.GIFT_SENT="gift_sent",e.LOVE_SEND="loveSend",e.LOVE_WAS_SENDED="loveWasSended",e.MESSAGE_SENT="messageSent;",e.NOTIFICATION_DISABLE="disableNotification",e.NOTIFICATION_ENABLE="enableNotification",e.PIN="pin",e.PIN_TOO_MANY="pin_too_many",e.RESTRICTION="restriction",e.TIP_WAS_SENDED="tipWasSended",e.UN_BAN="un_ban",e.UNFOLLOW="unfollow",e.UNPIN="unpin",e.WISH_TIP_SENT="wishTipSent"}(i||(i={}))},99655:function(e,n,t){t.d(n,{c:function(){return o}});var i=t(15215),o=function(e){(0,i.sH)(void 0,void 0,void 0,function(){return(0,i.YH)(this,function(n){switch(n.label){case 0:return[4,Promise.all([t.e(280),t.e(747)]).then(t.bind(t,81490))];case 1:return n.sent().openToastrContentUserSync(e),[2]}})})}},45667:function(e,n,t){t.d(n,{o:function(){return a}});var i=t(96540),o=t(73437),r=t(41669),a=function(e){var n=e.handles;(0,i.useEffect)(function(){var e=function(e,t){if(t&&"user"===t.type){var i=t.data;if(i&&i.type){var r=n[i.type]||o.noop;"function"==typeof r&&r(i)}}};return r(document).on("onNoticeSocketMessage",e),function(){r(document).off("onNoticeSocketMessage",e)}},[n])}},96575:function(e,n,t){t.d(n,{R:function(){return o}});var i=t(44198);function o(e,n){(0,i._b)("BCC bcAppDispatch").warn(e,{payload:n}),"function"==typeof window.bcAppDispatch&&window.bcAppDispatch(e,n)}Object.prototype.hasOwnProperty.call(window,"legacyAppDispatch")||(window.legacyAppDispatch=function(e,n){(0,i._b)("BCC legacyAppDispatch").warn(e,{payload:n}),document.dispatchEvent(new CustomEvent(e,{detail:n}))})},55140:function(e,n,t){t.d(n,{WA:function(){return r},Xe:function(){return o},_5:function(){return i},b7:function(){return a}});var i="sprite/bc/profile_wall2.svg",o="sprite/bc/profile3.svg",r="sprite/bc/profile_light2.svg",a="sprite/bc/profile_delete.svg"},29599:function(e,n,t){var i;function o(){if("visualViewport"in window){var e=window.visualViewport.offsetTop||0;i!==e&&(i=e,document.documentElement.style.setProperty("--viewport-offset-top","".concat(e,"px")))}}function r(){i=0,document.documentElement.style.setProperty("--viewport-offset-top","0px")}t.d(n,{Q:function(){return o},m:function(){return r}})},30149:function(e,n,t){t.d(n,{qV:function(){return x},To:function(){return r}});var i=function(e){return!!(null==e?void 0:e.code)},o=function(e){return i(e)?null==e?void 0:e.code:null==e?void 0:e.keyCode},r=function(e,n,t){var r=[],a=!1,l=0,s=function(){r=[],a=!1},u=function(e){if(!e.repeat){var u=i(e),c=o(e),d=u?c.toLowerCase():""+c;r.push(d);var f=n.map(function(e){return u?e.code.toLowerCase():""+e.key}),p=f.filter(function(e){return!r.filter(function(n){return n&&(e.length>=n.length?-1!==e.indexOf(n):-1!==n.indexOf(e))}).length}).length,v=!f.filter(function(e){return!r.filter(function(n){return n&&(e.length>=n.length?-1!==e.indexOf(n):-1!==n.indexOf(e))}).length}).length;p&&(clearTimeout(l),l=window.setTimeout(s,300)),v&&!a&&(e.preventDefault(),a=!0,t())}},c=function(e){var n=i(e),t=o(e),l=n?t.toLowerCase():""+t;r=r.filter(function(e){return e!==l}),a=!1};return e.addEventListener("keydown",u),e.addEventListener("keyup",c),window.addEventListener("focus",s),function(){e.removeEventListener("keydown",u),e.removeEventListener("keyup",c),window.removeEventListener("focus",s)}},a=t(84435),l=t(85374);if(/^2(54|65|66)$/.test(t.j))var s=t(29599);var u=t(41669);function c(){return"undefined"!=typeof window&&"undefined"!=typeof document}var d,f,p="visualViewport"in window,v=Boolean(a.BrowserDetect.isSafari()),m=0,h=null;function _(e){var n,t,i,o=e.target;if("INPUT"===o.tagName){m=Date.now(),a.BrowserDetect.isChrome_Android()&&"text"===o.getAttribute("type")&&setTimeout(function(){o.setAttribute("data-base-type","text"),o.setAttribute("type","search")}),d=null===(n=u.mobile.activePage)||void 0===n?void 0:n.find(".js-header_auto_hide");var r=null===(i=null===(t=document.querySelector("html"))||void 0===t?void 0:t.classList)||void 0===i?void 0:i.contains("scroll_disable");p&&d.length&&!r&&(v&&window.innerHeight150){var o=window.scrollX,r=window.scrollY;window.scrollTo(o,r),a.BrowserDetect.isChrome_Android()&&"text"===t.getAttribute("data-base-type")&&t.setAttribute("type","text"),d=null===(n=u.mobile.activePage)||void 0===n?void 0:n.find(".js-header_auto_hide"),p&&d.length&&(v&&requestAnimationFrame(function(){document.documentElement.style.top=""}),window.visualViewport.removeEventListener("resize",s.Q),window.visualViewport.removeEventListener("scroll",w),(0,s.m)())}}var g=(0,l.s)(function(){h=window.scrollY},50);function x(){c()&&(document.addEventListener("focus",_,!0),document.addEventListener("blur",b,!0),window.addEventListener("scroll",g))}},67374:function(e,n,t){t.d(n,{I_:function(){return d},qu:function(){return i},bk:function(){return s},xc:function(){return l}});var i={maxDelay:6e5,retries:1/0},o=t(15215),r=t(41669),a=[],l=function(e){r.noticeSocket&&e&&a.indexOf(e)>=0&&(a=a.filter(function(n){return n!==e}),r.noticeSocket.send({data:{data:{model:e},type:2},type:"cms"}))},s=function(e){(0,o.fX)([],a,!0).map(function(e){return l(e)}),function(e){r.noticeSocket&&e&&a.indexOf(e)<0&&(a.push(e),r.noticeSocket.send({data:{data:{model:e},type:1},type:"cms"}))}(e)},u=t(99525),c=t(26859),d=function(){function e(){var n=u.A.getState().isAuthenticated;this.isAuthenticated=n,this.idb=new c.bp(e.dbName)}return e.getInstance=function(){return e.instance||(e.instance=new this),e.instance},e.prototype.isAvailable=function(){return this.idb.isAvailable()},e.prototype.checkAndSaveAllowing=function(e){return(0,o.sH)(this,void 0,void 0,function(){var n,t,i,r,a;return(0,o.YH)(this,function(o){switch(o.label){case 0:return e?this.isAvailable()?(n=this.getUnmuteKey(),[4,this.getData(n)]):[2,!0]:[2,!1];case 1:return t=o.sent()||{},i=t[e],(r=!i||Date.now()>=i)?(a=u.A.getState().config,t[e]=Date.now()+(null==a?void 0:a.notificationsMutePeriod),[4,this.setData(n,t)]):[3,3];case 2:o.sent(),o.label=3;case 3:return[2,r]}})})},e.prototype.clearNotificationMuteData=function(){return(0,o.sH)(this,void 0,void 0,function(){var e;return(0,o.YH)(this,function(n){switch(n.label){case 0:return this.isAvailable()?(e=this.getUnmuteKey(),[4,this.removeData(e)]):[2];case 1:return n.sent(),[2]}})})},e.prototype.getNotificationMuteData=function(){},e.prototype.checkIsAuth=function(){return(0,o.sH)(this,void 0,void 0,function(){var e;return(0,o.YH)(this,function(n){switch(n.label){case 0:return[4,this.getData("isAuth")];case 1:return e=n.sent(),!this.isAuthenticated||e?[3,3]:[4,this.setData("isAuth",!0)];case 2:return n.sent(),[3,5];case 3:return this.isAuthenticated||!e?[3,5]:[4,this.removeData("isAuth")];case 4:n.sent(),n.label=5;case 5:return[2]}})})},e.prototype.getToken=function(){return this.getData("token")},e.prototype.saveToken=function(e){return(0,o.sH)(this,void 0,void 0,function(){return(0,o.YH)(this,function(n){switch(n.label){case 0:return[4,this.setData("token",e)];case 1:return n.sent(),[2]}})})},e.prototype.removeToken=function(){return(0,o.sH)(this,void 0,void 0,function(){return(0,o.YH)(this,function(e){switch(e.label){case 0:return[4,this.removeData("token")];case 1:return e.sent(),[2]}})})},e.prototype.updateConfig=function(){return(0,o.sH)(this,void 0,void 0,function(){var e;return(0,o.YH)(this,function(n){switch(n.label){case 0:return this.isAvailable()?(e=u.A.getState().config,[4,this.setData("mutePeriod",null==e?void 0:e.notificationsMutePeriod)]):[3,2];case 1:n.sent(),n.label=2;case 2:return[2]}})})},e.prototype.getData=function(e){return(0,o.sH)(this,void 0,void 0,function(){return(0,o.YH)(this,function(n){switch(n.label){case 0:return[4,this.idb.open()];case 1:return n.sent(),[2,this.idb.getItem(e)]}})})},e.prototype.setData=function(e,n){return(0,o.sH)(this,void 0,void 0,function(){return(0,o.YH)(this,function(t){switch(t.label){case 0:return[4,this.idb.open()];case 1:return t.sent(),[4,this.idb.setItem(e,n)];case 2:return t.sent(),[2]}})})},e.prototype.removeData=function(e){return(0,o.sH)(this,void 0,void 0,function(){return(0,o.YH)(this,function(n){switch(n.label){case 0:return[4,this.idb.open()];case 1:return n.sent(),[4,this.idb.removeItem(e)];case 2:return n.sent(),[2]}})})},e.prototype.getUnmuteKey=function(){var n=u.A.getState().user;return"".concat("um_").concat((null==n?void 0:n.username)||e.guestName)},e.dbName="notificationSettings",e.guestName="guest",e}()},14811:function(e,n,t){t.d(n,{Z:function(){return r}});var i=t(63861),o=t(99525),r=function(e){return o.A.getState().isEmbed?(0,i.ip)("@hit_url?url=".concat(encodeURIComponent(e))):e}},63658:function(e,n,t){var i;t.d(n,{K:function(){return i}}),function(e){e.SPACE=" ",e.NON_BREAKING_SPACE=" ",e.WBR="",e.BULL="•",e.RAQUO="»",e.LAQUO="«",e.M_DASH="—",e.N_DASH="–",e.COPY="©"}(i||(i={}))},2597:function(e,n,t){var i,o=t(15215),r=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return(0,o.C6)(n,e),n.FREE="free",n.GOLD="gold",n.PLATINUM="platinum",n.UNLIMITED="unlimited",n.SAPPHIRE="sapphire",n.TITAN="titan",n.DIAMOND="diamond",n.EXCLUSIVE="exclusive",n.titles=((i={})[n.DIAMOND]=__("Diamond"),i[n.EXCLUSIVE]=__("Exclusive"),i[n.FREE]=__("Free"),i[n.GOLD]=__("Gold"),i[n.PLATINUM]=__("Platinum"),i[n.SAPPHIRE]=__("Sapphire"),i[n.TITAN]=__("Titan"),i[n.UNLIMITED]=__("Unlimited"),i),n.isHigherThanFree=function(e){return[n.DIAMOND,n.EXCLUSIVE,n.GOLD,n.PLATINUM,n.SAPPHIRE,n.TITAN,n.UNLIMITED].includes(e)},n.isHigherThanGold=function(e){return[n.DIAMOND,n.EXCLUSIVE,n.PLATINUM,n.SAPPHIRE,n.TITAN,n.UNLIMITED].includes(e)},n.isHigherThanPlatinum=function(e){return[n.DIAMOND,n.EXCLUSIVE,n.SAPPHIRE,n.TITAN,n.UNLIMITED].includes(e)},n.isEliteMember=function(e){return[n.DIAMOND,n.EXCLUSIVE,n.SAPPHIRE,n.TITAN].includes(e)},n.getAsOrderedArray=function(){return[n.FREE,n.GOLD,n.PLATINUM,n.UNLIMITED,n.SAPPHIRE,n.TITAN,n.DIAMOND,n.EXCLUSIVE]},n}(t(53767).A);n.A=r}}]);