/*! VERSION | 10.78.9 */"use strict";(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[418],{85037:(e,t,l)=>{l.d(t,{m:()=>c});var i=l(64553),a=l(27378),s=l(11850),r=l(29413),n=l(99748),o=l(98846);let d=(0,o.n)({resolved:{},chunkName:()=>"AddToCalendarTooltip",isReady(e){let t=this.resolve(e);return!0===this.resolved[t]&&!!l.m[t]},importAsync:()=>l.e(4857).then(l.bind(l,17019)),requireAsync(e){let t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){let t=this.resolve(e);return l(t)},resolve:()=>17019},{fallback:void 0,ssr:!1}),c=({children:e,className:t,tooltipPlacement:l,wrapperRef:o,buttonClassName:c,iconClassName:m})=>{let[u,p,h]=(0,s.eW)(),v=(0,a.useRef)(null),E=null!=o?o:v;return(0,a.useEffect)(()=>{d.preload()},[]),a.createElement("div",{className:t},a.createElement("div",{ref:E},a.createElement(i.Z,{className:c,onClick:p},e,a.createElement(r.Z,{className:(0,n.AK)("add-to-calendar-button__icon",m),img:"calendar-add"}))),u&&a.createElement(d,{onClick:h,onClose:p,ref:E,placement:l}))}},57077:(e,t,l)=>{l.d(t,{Lp:()=>s,NP:()=>r,yL:()=>n});var i=l(27378);let a=i.createContext(null),s=({children:e,eventTimeData:t,source:l})=>i.createElement(a.Provider,{value:{eventTimeData:t,source:l}},e),r=()=>{var e;return null===(e=(0,i.useContext)(a))||void 0===e?void 0:e.eventTimeData},n=()=>{var e;return null===(e=(0,i.useContext)(a))||void 0===e?void 0:e.source}},56802:(e,t,l)=>{l.d(t,{R:()=>o});var i=l(27378),a=l(56322),s=l(99748),r=l(10809),n=l(23849);let o=({tooltipRef:e,onClose:t,isVisible:l,targetId:o,placement:d,absolutePlacement:c,isForcePlacement:m,model:u,buttonLocation:p,onClick:h,shouldMethodsListBeExpanded:v,shouldRenderWithoutPortal:E})=>{let g=(0,i.useRef)(null);return(0,i.useEffect)(()=>{!c&&g.current&&g.current.updatePosition()},[c]),i.createElement(a.Z,{onClick:h,isForcePlacement:m,targetId:o,placement:d,className:(0,s.AK)("notifications-tooltip",{hidden:!l,absolute:c,[`absolute-${c}`]:c}),isForceVisible:!0,isMobileRelative:!1,ref:(0,r.lq)([e,g]),indentation:10,maxWidth:350,shouldRenderWithoutPortal:E},i.createElement(n.Z,{key:String(null==u?void 0:u.id)+String(l),model:u,shouldPreserveVerticalPosition:!c,shouldStopPropagation:!0,onClose:t,buttonLocation:p,isVisible:!!l,shouldMethodsListBeExpanded:v}))}},23849:(e,t,l)=>{l.d(t,{Z:()=>A});var i=l(18775),a=l(27378),s=l(48204),r=l(4289),n=l(1961),o=l(53835),d=l(69353),c=l(73545),m=l(77382),u=l(82362),p=l(35826),h=l(30486),v=l(29413),E=l(75997),g=l(3034),f=l(59593),b=l(99748),_=l(56509),y=l(64696),C=l(58543),N=l(63256),P=l(16289),k=l(74012),S=l(65103);let M={updateModelSubscription:n.r6,toggleModelNotifications:n.oj,showModal:m.K4,toggleTelegramBot:P.BJ,showIosPushInstructionsConditionally:n.cV};class T extends a.Component{renderTop(){let{isSubscribed:e,isMobile:t}=this.props;return a.createElement("div",{className:"main-settings"},a.createElement("div",{className:"bell"},a.createElement(v.Z,{img:e?"notifications-2":"notifications-off-2"})),a.createElement("span",{className:"notifications-tooltip-title"},(0,_.dW)("notificationsTooltip.title")),a.createElement(E.Z,{size:t?"default":"medium",className:"main-switcher",theme:"light",isChecked:e,onChange:this.onToggleMainSwitcher}))}renderWarningHintBase(e,t){let{isVisible:l}=this.props,{expandState:i,instanceId:s}=this.state,r=l&&"expanded"===i,n=`${s}_${e}`;return a.createElement("span",{id:n,className:"notifications-tooltip-warning-hint"},a.createElement(v.Z,{img:"exclamation-circle"}),r&&a.createElement(g.Z,{maxWidth:250,hideDelay:150,placement:"top",targetId:n,isMobileRelative:!1},t))}renderWarningHint(e,t){let l=`notification-tooltip-${e}-warning`;return this.renderWarningHintBase(l,a.createElement(h.Z,{messageId:`notificationsTooltip.${t}`,elements:{link:a.createElement(r.rU,{to:{pathname:"/notifications",state:{openedSection:e}}})}}))}renderEmail(){let{notifications:e,currentUser:t,isEmailEnabled:l,isUserWithoutEmail:i}=this.props;return a.createElement("div",{className:(0,b.AK)("method","method-email",{"method-disabled":!l||i})},a.createElement("span",null,(0,_.dW)("notificationsTooltip.email"),i&&this.renderWarningHintBase("notification-tooltip-email-warning",a.createElement(h.Z,{messageId:"notificationsTooltip.addEmail",elements:{link:a.createElement(r.rU,{to:{pathname:"/settings"}})}})),!i&&!l&&this.renderWarningHint("email","enableEmail")),a.createElement(E.Z,{theme:"light",isChecked:null!=t&&!!t.isEmailVerified&&e.isEmail,onChange:l?this.toggleSubscription("isEmail"):void 0}))}renderWebPush(){let{notifications:e,currentUser:t,isPushEnabled:l,isWebPushiOSEnabled:i,isWebPushiOSNewBadge:s}=this.props,r=i&&f.BROWSER_CAPABILITIES.iosPwaSupport,n=t?e.isPush:e.isGuestPush;return a.createElement("div",{className:(0,b.AK)("method",{"method-disabled":!l})},a.createElement("span",null,r?a.createElement(a.Fragment,null,(0,_.dW)("notificationsTooltip.webPushViaApp"),s&&a.createElement(p.Z,{className:"notifications-tooltip-content__badge-new",type:"new"},"NEW")):(0,_.dW)("notificationsTooltip.webPush"),(n||!r)&&a.createElement(o.B,{place:"viewcam",render:e=>this.renderWarningHintBase("notification-tooltip-push-warning",e)})),a.createElement(E.Z,{theme:"light",isChecked:n,onChange:l?this.toggleSubscription(t?"isPush":"isGuestPush"):void 0}))}renderTelegram(){let{currentUser:e,isTelegramConnected:t,notifications:l}=this.props;if(!e)return null;if(!t){let t=()=>{this.isConnectTelegramClicked=!0};return a.createElement("div",{className:"method method-disabled"},a.createElement(r.rU,{className:"connect-link",to:`/api/front/users/${e.id}/telegram`,target:"_blank",onClick:t},(0,_.dW)("notificationsTooltip.connectTelegram")),a.createElement(r.rU,{to:`/api/front/users/${e.id}/telegram`,target:"_blank",onClick:t},a.createElement(E.Z,{theme:"light",isChecked:!1,onChange:void 0})))}return a.createElement("div",{className:"method"},a.createElement("span",null,(0,_.dW)("notificationsTooltip.telegram")),a.createElement(E.Z,{theme:"light",isChecked:l.isTelegram,onChange:this.toggleSubscription("isTelegram")}))}renderPlasma(){let{currentUser:e,isPlasmaConnected:t,notifications:l,hasModelPlasma:i,isPlasmaEnabled:s}=this.props;return e&&i?t?a.createElement("div",{className:(0,b.AK)("method",{"method-disabled":!s})},a.createElement("span",null,(0,_.dW)("notificationsTooltip.plasma"),!s&&this.renderWarningHint("plasma","enablePlasmaNotifications")),a.createElement(E.Z,{theme:"light",isChecked:l.isPlasma,onChange:s?this.toggleSubscription("isPlasma"):void 0})):a.createElement("div",{className:"method method-disabled",onClick:()=>{this.isConnectPlasmaClicked=!0,this.props.showModal(f.MODAL_TYPES.PLASMA_MESSENGER,{openedFrom:f.u$.NOTIFICATIONS_TOOLTIP})}},a.createElement("span",{className:"connect-link"},(0,_.dW)("notificationsTooltip.connectPlasma")),a.createElement(E.Z,{theme:"light",isChecked:!1,onChange:void 0})):null}renderTelegramSocketSubscription(){let e="expanded"===this.state.expandState,{currentUser:t,isVisible:l}=this.props;return t&&l&&e?a.createElement(u.Z,{key:"telegramUpdateEvent",eventsWithCallbacks:[{subscriptionKey:`telegramUpdate:${t.id}`,callback:this.telegramConnectEventHandler}]}):null}clearAnimationTimers(){this.actualHeightRaf&&(cancelAnimationFrame(this.actualHeightRaf),this.actualHeightRaf=null),this.animationEndTimer&&(clearInterval(this.animationEndTimer),this.animationEndTimer=null)}componentDidMount(){(0,y.Z)(this.propsUpdateToActionsMap,{},this.props)}componentDidUpdate(e){(0,y.Z)(this.propsUpdateToActionsMap,e,this.props)}componentWillUnmount(){this.clearAnimationTimers()}render(){let{onClose:e,className:t,isMobile:l,shouldPreserveVerticalPosition:i,isSubscribed:s,shouldMethodsListBeExpanded:r}=this.props;return a.createElement("div",{onClick:this.onWrapperClick,className:(0,b.AK)("notifications-tooltip-content",t,this.state.expandState,{active:s,mobile:l,"preserve-vertical-position":i})},a.createElement("div",{className:"visible-wrapper"},a.createElement("div",{className:"close",onClick:e},a.createElement(v.Z,{img:"close-3"})),this.renderTop(),a.createElement("div",{ref:this.handleMethodsWrapperRef,className:(0,b.AK)("methods-wrapper",{animated:!r})},a.createElement("div",{className:"methods",key:String("collapsed"===this.state.expandState)},a.createElement("span",{className:"methods-title"},(0,_.dW)("notificationsTooltip.methodsTitle")),this.renderEmail(),this.renderWebPush(),this.renderTelegram(),this.renderPlasma()))),this.renderTelegramSocketSubscription())}constructor(e){super(e),(0,i._)(this,"actualHeightRaf",null),(0,i._)(this,"animationEndTimer",null),(0,i._)(this,"methodsWrapperRef",{current:null}),(0,i._)(this,"isConnectTelegramClicked",!1),(0,i._)(this,"isConnectPlasmaClicked",!1),(0,i._)(this,"toggleSubscription",e=>t=>{let{model:l,currentUser:i,buttonLocation:a,isUserWithoutEmail:s}=this.props;("isGuestPush"===e||"isPush"===e)&&t&&this.props.showIosPushInstructionsConditionally(),"isEmail"===e&&t&&i&&!i.isEmailVerified&&this.props.showModal(f.MODAL_TYPES.CONFIRM_EMAIL,{isWrapperCloseDisabled:!0,variant:s?"addEmail":"default"}),this.props.updateModelSubscription({modelId:null==l?void 0:l.id,[e]:t},l,a)}),(0,i._)(this,"propsUpdateToActionsMap",[{update:"isSubscribed",action:()=>{this.props.isSubscribed&&this.expandMethodsWrapper()}},{update:["isSubscribed","currentUserId","isVisible"],action:()=>{this.isConnectTelegramClicked=!1,this.isConnectPlasmaClicked=!1}},{update:"isTelegramConnected",action:()=>{this.isConnectTelegramClicked&&this.props.isTelegramConnected&&!this.props.notifications.isTelegram&&this.toggleSubscription("isTelegram")(!0),this.isConnectTelegramClicked=!1}},{update:"isPlasmaConnected",action:()=>{this.isConnectPlasmaClicked&&this.props.isPlasmaConnected&&!this.props.notifications.isPlasma&&this.toggleSubscription("isPlasma")(!0),this.isConnectPlasmaClicked=!1}}]),(0,i._)(this,"handleMethodsWrapperRef",e=>{this.methodsWrapperRef.current=e,this.props.shouldMethodsListBeExpanded&&this.expandMethodsWrapper()}),(0,i._)(this,"expandMethodsWrapper",()=>{let e=this.methodsWrapperRef.current,t="collapsed"===this.state.expandState;t&&e&&(this.actualHeightRaf=requestAnimationFrame(()=>{e.style.height=`${e.scrollHeight}px`,this.setState({expandState:"expanding"}),this.animationEndTimer=window.setTimeout(()=>{this.setState({expandState:"expanded"})},500)}))}),(0,i._)(this,"onToggleMainSwitcher",()=>{let{model:e,buttonLocation:t}=this.props;return this.props.toggleModelNotifications({model:e,buttonLocation:t})}),(0,i._)(this,"telegramConnectEventHandler",({isEnabled:e,telegramUsername:t})=>{this.props.toggleTelegramBot(e,t)}),(0,i._)(this,"onWrapperClick",e=>{this.props.shouldStopPropagation&&e.stopPropagation()}),this.state={expandState:e.isSubscribed?"expanded":"collapsed",instanceId:`notification-tooltip-content_${Date.now()}`}}}let A=(0,s.$j)((e,{model:t})=>{let{personalNotifications:{subscription:l}}=e,i=(0,k.ts)(e);return{currentUser:i,currentUserId:null==i?void 0:i.id,notifications:(0,d.KZ)(e,null==t?void 0:t.id),isSubscribed:(0,d.LW)(e,null==t?void 0:t.id),isTelegramConnected:(0,k.hi)(e),isPlasmaConnected:(0,N.Lwo)(e),hasModelPlasma:(0,c.wi)(e),isEmailEnabled:!!(!i||(null==l?void 0:l.isEmail)),isUserWithoutEmail:(0,S.vE)(e),isPushEnabled:!!(!i||(null==l?void 0:l.isPush)),isPlasmaEnabled:!!(!i||(null==l?void 0:l.isPlasma)),isWebPushiOSEnabled:(0,C.rU)(e),isWebPushiOSNewBadge:(0,N.kML)(e)}},M)(T)},53835:(e,t,l)=>{l.d(t,{B:()=>_});var i=l(27378),a=l(4289),s=l(30486),r=l(95345),n=l(86571),o=l(59593),d=l(96552),c=l(8054),m=l(56509),u=l(94380),p=l(95654),h=l(58543),v=l(52729),E=l(16289),g=l(74012),f=l(2810);let b={link_newLine:"PushNotificationWarningText__link_newLine#x2"},_=({render:e=e=>i.createElement(i.Fragment,null,e),place:t})=>{let l=(0,u.T)(),_=(0,p.C)(f.nW),y=(0,p.C)(g.M7),C=(0,p.C)(h.rU),N=(0,c.R)(),P=()=>l((0,v.Rl)()),k=()=>d.P4.show(n.q,{}),S=C&&o.BROWSER_CAPABILITIES.iosPwaSupport;return S?o.BROWSER_CAPABILITIES.isPWA?o.BROWSER_CAPABILITIES.iosPushSupport?"default"===N?e(i.createElement(s.Z,{messageId:"notificationsTooltip.enablePushNotifications",elements:{link:i.createElement("a",{onClick:"viewcam"===t?()=>{y&&!_?l((0,E.Mg)({isPush:!0})):P()}:P})}})):"viewcam"===t&&y&&!_?e(i.createElement(s.Z,{messageId:"notificationsTooltip.enablePushNotificationsForModel",elements:{link:i.createElement(a.rU,{to:{pathname:"/notifications",state:{openedSection:"push"}}})}})):"denied"===N?e(i.createElement(s.Z,{messageId:"notificationsTooltip.pwaBlockedPushInstruction",elements:{link:i.createElement("a",{className:b.link_newLine,onClick:()=>d.P4.show(r.D,{})})}})):null:e(i.createElement(s.Z,{messageId:"notificationsTooltip.enablePushNotifications",elements:{link:i.createElement("a",{onClick:k})}})):e(i.createElement(s.Z,{messageId:"notificationsTooltip.installPwa",elements:{link:i.createElement("a",{onClick:k})}})):"viewcam"===t&&y&&!_?e(i.createElement(s.Z,{messageId:"notificationsTooltip.enableBrowserNotifications",elements:{link:i.createElement(a.rU,{to:{pathname:"/notifications",state:{openedSection:"push"}}})}})):"notifications-page"===t&&"granted"!==N?e((0,m.dW)("notificationsTable.pushDisabledTT")):null}},98233:(e,t,l)=>{l.d(t,{Z:()=>C});var i=l(18775),a=l(27378),s=l(48204),r=l(1961),n=l(56802),o=l(69353),d=l(77382),c=l(11850),m=l(80936),u=l(39120),p=l(99382),h=l(29413),v=l(3034),E=l(99748),g=l(56509),f=l(66483);let b="subscribe-btn",_={toggleModelNotifications:r.oj,showModal:d.K4};class y extends a.Component{render(){let e;let{isSubscribed:t,style:l="default",subscribeCaption:i,subscribedCaption:s,user:r,preventResponsiveCaption:o,size:d="default",isLayoutUpToL:c,isCurrentUserModelOrStudio:m,buttonLocation:f,uiBlocking:{isVisible:_}}=this.props;if(!r.isModel||m)return null;let y="small"===d;return e=t&&!o?s||(0,g.dW)("button.subscription.unSubscribe"):i||(0,g.dW)("button.subscription.subscribe"),a.createElement(u.Z,{...this.props,propsUpdateToActionsMap:this.propsUpdateToActionsMap},a.createElement(p.ZP,{className:(0,E.AK)("subscribe-button",{subscribed:t}),onClick:this.subscribeButtonClickHandler,size:"default",type:"anchor",style:t?"default":l,id:b,innerRef:this.buttonRef,"aria-label":e},a.createElement(h.Z,{img:t?"notifications-off":"notifications"}),!y&&a.createElement("span",null,e),y&&!_&&a.createElement(v.Z,{placement:"top",targetId:b,isMobileRelative:!1},e)),_&&a.createElement(n.R,{buttonLocation:`PushNotificationPopupAfterClickOn_${f}`,model:r,isForcePlacement:!0,placement:c?"bottom":"left",targetId:b,isVisible:!0,onClose:this.props.uiBlocking.unlockUI}))}constructor(...e){super(...e),(0,i._)(this,"isSubscribeClicked",!1),(0,i._)(this,"buttonRef",a.createRef()),(0,i._)(this,"propsUpdateToActionsMap",[{update:"isSubscribed",action:()=>{this.isSubscribeClicked&&this.props.isSubscribed&&this.buttonRef.current&&!this.props.withoutTooltip&&this.props.uiBlocking.lockUI(),this.isSubscribeClicked=!1}}]),(0,i._)(this,"subscribeButtonClickHandler",()=>{let{user:e,buttonLocation:t,isSubscribed:l}=this.props;this.isSubscribeClicked=!l,this.props.toggleModelNotifications({model:e,buttonLocation:t})})}}let C=(0,c.xl)((0,m.y)("isLayoutUpToL")((0,s.$j)((e,t)=>{var l;let{auth:{isLoggedIn:i,isLoggingOut:a,currentUser:s},profile:r}=e,{user:n}=t;return{isCurrentUserModelOrStudio:(0,f.ly)(e),currentUser:s,isEmailVerified:null===(l=r.user)||void 0===l?void 0:l.isEmailVerified,isSubscribed:(0,o.LW)(e,n.id),isLoggedIn:i&&!a}},_)(y)))},14740:(e,t,l)=>{l.d(t,{k:()=>a});var i=l(98846);let a=(0,i.n)({resolved:{},chunkName:()=>"testimonials",isReady(e){let t=this.resolve(e);return!0===this.resolved[t]&&!!l.m[t]},importAsync:()=>l.e(7845).then(l.bind(l,92189)),requireAsync(e){let t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){let t=this.resolve(e);return l(t)},resolve:()=>92189})},70104:(e,t,l)=>{l.d(t,{V6:()=>n,Zl:()=>r,ov:()=>s,rS:()=>o,rf:()=>c,to:()=>d});var i=l(80406);let a=e=>e.scheduleInformer,s=(0,i.P1)([a],e=>null==e?void 0:e.isEnabled),r=(0,i.P1)([a],e=>null==e?void 0:e.isLoaded),n=(0,i.P1)([a],e=>null==e?void 0:e.readableOffset),o=(0,i.P1)([a],e=>null==e?void 0:e.timeslots),d=({viewCam:e})=>e.nextBroadcast,c=e=>{let t=d(e),l=!!(null==t?void 0:t.day);return l}},58089:(e,t,l)=>{l.d(t,{Z:()=>n});var i=l(27378),a=l(40547),s=l(98846);let r=(0,s.n)({resolved:{},chunkName:()=>"editableCollection-components",isReady(e){let t=this.resolve(e);return!0===this.resolved[t]&&!!l.m[t]},importAsync:()=>l.e(2959).then(l.bind(l,32730)),requireAsync(e){let t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){let t=this.resolve(e);return l(t)},resolve:()=>32730},{resolveComponent:e=>e.EditableCollectionsLimiter}),n=({children:e,fallback:t})=>i.createElement(r,{fallback:null!=t?t:i.createElement(a.Z,null)},e)},61395:(e,t,l)=>{l.d(t,{Z:()=>o});var i=l(27378),a=l(29413),s=l(3034),r=l(95654),n=l(82512);let o=function(){let e=(0,i.useRef)(null),t=(0,r.C)(n.JT);return t?i.createElement("div",{className:"allow-using-content-indicator",ref:e},i.createElement(a.Z,{img:"flag-simple"}),i.createElement(s.Z,{targetRef:e,placement:"bottom"},"Allows using content in promos")):null}},34607:(e,t,l)=>{l.d(t,{Z:()=>r});var i=l(27378),a=l(29413),s=l(56509);let r=({isActive:e=!1,id:t,onClick:l})=>i.createElement("span",{className:"edit-button",onClick:l,id:t},e?i.createElement("button",{className:"btn btn-extra-small btn-apply",type:"button"},(0,s.dW)("button.save")):i.createElement(a.Z,{img:"edit"}))},75094:(e,t,l)=>{l.d(t,{Z:()=>m,d:()=>c});var i=l(64553),a=l(27378),s=l(1948),r=l(29413),n=l(48168),o=l(96552),d=l(99748);let c=({href:e,isTrusted:t,onUntrustedLinkClick:l,children:i,style:r,className:n})=>a.createElement(s.Z,{className:n,style:r,target:"_blank",href:t?e:void 0,onClick:e=>{t||l(e)}},i),m=({id:e,model:t,src:l,className:s,externalLink:m,children:u,style:p})=>a.createElement(i.Z,{style:p,className:(0,d.AK)(s,"image-with-preview-wrapper"),onClick:()=>o.P4.show(n.k,{src:l,externalLink:m,contentId:e,model:t})},l&&a.createElement("img",{alt:"",className:(0,d.AK)("image-with-preview"),src:l}),!!m&&a.createElement(c,{className:"image-with-preview-external-link",href:m.href,isTrusted:m.isTrusted,onUntrustedLinkClick:m.onUntrustedLinkClick,style:m.style},a.createElement(r.Z,{className:"image-with-preview-external-link-icon",img:"link"})),u)},48168:(e,t,l)=>{l.d(t,{k:()=>r});var i=l(27378),a=l(98655),s=l(98846);let r=(0,s.n)({resolved:{},chunkName:()=>"PreviewModal",isReady(e){let t=this.resolve(e);return!0===this.resolved[t]&&!!l.m[t]},importAsync:()=>l.e(3062).then(l.bind(l,46135)),requireAsync(e){let t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){let t=this.resolve(e);return l(t)},resolve:()=>46135},{ssr:!1,fallback:i.createElement(a.c,null)})},71449:(e,t,l)=>{l.d(t,{Z:()=>i.Z});var i=l(75094)},30464:(e,t,l)=>{l.d(t,{Z:()=>o});var i,a=l(18775),s=l(27378),r=l(99748);class n extends(i=s.Component){componentDidUpdate(e){e.activeItemIndex!==this.props.activeItemIndex&&this.startAnimation(e.activeItemIndex,this.props.activeItemIndex)}startAnimation(e,t){let l=this.getGhostStyle(e),i=this.getGhostStyle(t);if(l&&i&&this.ghostRef.current){if(this.ghostRef.current.animate){this.setState({inAnimation:!0});let e=this.ghostRef.current.animate([l,i],{duration:this.props.animationDuration,easing:this.props.animationEasing});e.onfinish=this.handleAnimationEnd,Object.assign(this.ghostRef.current.style,i)}else Object.assign(this.ghostRef.current.style,i),this.handleAnimationEnd()}}getGhostStyle(e){let t=this.containerRef.current.querySelectorAll(".pill-control-item")[e];return t?{height:`${t.offsetHeight}px`,width:`${t.offsetWidth}px`,left:`${t.offsetLeft}px`,top:`${t.offsetTop}px`}:null}render(){let{items:e,activeItemIndex:t,isMultiLines:l,onClick:i,className:a,itemClassName:n,withLinks:o,size:d,children:c}=this.props,{inAnimation:m}=this.state;return s.createElement("div",{className:(0,r.AK)("pill-control",a,`pill-control--${d}`,{"multi-lines":l,"in-animation":m}),ref:this.containerRef},s.createElement("div",{className:"pill-control-ghost",ref:this.ghostRef}),(e||s.Children.toArray(c)).map((e,a)=>s.createElement("div",{key:a,className:(0,r.AK)("pill-control-item",n,{active:a===t&&!m,"next-active":a===t&&m,"multi-lines":l,"with-links":o}),onClick:()=>i(a)},e)))}constructor(e){super(e),(0,a._)(this,"containerRef",s.createRef()),(0,a._)(this,"ghostRef",s.createRef()),(0,a._)(this,"handleAnimationEnd",()=>{this.ghostRef.current&&this.setState({inAnimation:!1}),this.props.onAnimationEnd&&this.props.onAnimationEnd(this.props.activeItemIndex)}),this.state={inAnimation:!1}}}(0,a._)(n,"defaultProps",{animationEasing:"ease-in",animationDuration:600,size:"medium"});let o=n},8741:(e,t,l)=>{l.d(t,{A:()=>o});var i=l(27378),a=l(4289),s=l(30486),r=l(29413),n=l(3034);let o=({position:e=0,points:t,tooltipText:l="",href:o})=>{let d=(0,i.useRef)(null);if(!e)return null;let c=l||i.createElement(i.Fragment,null,i.createElement(r.Z,{img:"stripchat-logo"}),i.createElement(s.Z,{messageId:"bestModels.strippoints",parameters:{points:t},choiceParameter:"points"})),m=i.createElement(i.Fragment,null,i.createElement(r.Z,{img:"best-models"}),i.createElement("div",{className:"rating-position-label-count"},e)),u=i.createElement(n.Z,{isMobileRelative:!1,targetRef:d,placement:"top"},c);return o?i.createElement(i.Fragment,null,i.createElement(a.rU,{to:o,className:"rating-position-label-wrapper",ref:d},m),u):i.createElement(i.Fragment,null,i.createElement("div",{className:"rating-position-label-wrapper",ref:d},m),u)}},8054:(e,t,l)=>{l.d(t,{R:()=>r});var i=l(27378),a=l(98375);let s=()=>(0,a._4)()?"default":(0,a._8)()?"granted":"denied",r=()=>{let[e,t]=(0,i.useState)(s);return(0,i.useEffect)(()=>{let l=setInterval(()=>{let l=s();e!==l&&t(l)},500);return()=>clearInterval(l)},[e]),e}},81519:(e,t,l)=>{l.d(t,{Z:()=>f});var i=l(64553),a=l(27378),s=l(77382),r=l(11850),n=l(29413),o=l(56322),d=l(61435),c=l(59593),m=l(99748),u=l(56509),p=l(94380),h=l(7685),v=l(51858),E=l(53727),g=l(99605);let f=({className:e,variant:t,album:l,video:f})=>{let b=(0,h.L)("media-additional-menu-button-"),[_,y]=(0,r.eW)(),C=(0,p.T)(),[N,P]=(0,a.useState)(!1),k=(0,a.useCallback)(e=>{e.preventDefault(),y(e)},[y]);return a.createElement("div",{className:(0,m.AK)(e,"media-additional-menu",`media-additional-menu--${t}`,{shown:_})},a.createElement("div",{id:b,className:(0,m.AK)("media-additional-menu__button",{shown:_}),onClick:k},a.createElement(n.Z,{img:"more-vertical"})),a.createElement(g.Z,{isOpen:N,onClose:()=>P(!1),text:(0,u.dW)(`media.actions.remove${l?"Album":"Video"}`,{name:l?l.name:f.title}),additionalConfirmationText:(0,u.dW)("editableCollection.additionalConfirmations.whoPaidStillHaveAccess",{items:(0,u.dW)(`editableCollection.additionalConfirmations.${l?"albums":"videos"}`)}),buttons:[{id:"cancel",text:(0,u.dW)("button.cancel"),onClick:()=>P(!1)},{id:"remove",text:(0,u.dW)("media.actions.remove"),onClick:()=>{l&&C((0,v.Od)([l.id])),f&&C((0,E.Od)([f.id]))},style:"delete"}]}),_&&a.createElement(o.Z,{portalContainerId:d.y.IDS.PORTAL_CONTAINER_UNDER_HEADER,isForceVisible:!0,className:(0,m.AK)("media-additional-menu-dropdown",`media-additional-menu-dropdown--${t}`),targetId:b,placement:"bottom-left",isMobileRelative:!1},a.createElement("div",null,a.createElement(i.Z,{className:(0,m.AK)("media-additional-menu-dropdown__section","a11y-button"),onClick:()=>{l&&C((0,s.K4)(c.MODAL_TYPES.EDIT_ALBUM,{albumId:Number(l.id)})),f&&C((0,E.eP)(f.id))}},a.createElement(n.Z,{img:"edit"}),(0,u.dW)("media.actions.edit")),a.createElement(i.Z,{className:(0,m.AK)("media-additional-menu-dropdown__section","a11y-button"),onClick:()=>P(!0)},a.createElement(n.Z,{img:"trash"}),(0,u.dW)("media.actions.remove")))))}},44180:(e,t,l)=>{l.d(t,{v:()=>m});var i=l(27378),a=l(55363),s=l(1017),r=l(99382),n=l(30486),o=l(29413),d=l(85353),c=l(56509);let m=({variant:e,count:t,username:l,onActionClick:m,isHiddenCounter:u,isOwnProfile:p,isLoading:h})=>i.createElement(i.Fragment,null,i.createElement("div",{className:"user-media-page-header"},i.createElement("div",{className:"user-media-page-header__left"},i.createElement(o.Z,{className:"user-media-page-header__icon",img:"videos"===e?"camera-4":"photo-2"}),i.createElement("div",null,i.createElement("h1",{className:"user-media-page-header__title"},(0,c.dW)(`media.${e}PageTitle`,{username:l})),!u&&i.createElement("div",{className:"user-media-page-header__counter"},i.createElement(n.Z,{messageId:`media.${e}Count`,choiceParameter:"count",parameters:{count:t}})))),p&&i.createElement("div",{className:"user-media-page-header__right"},i.createElement(a.Z,null,({isEditMode:t})=>t?i.createElement("div",null):i.createElement(r.ZP,{className:"user-media-page-header__upload-button",onClick:e=>{e.currentTarget.blur(),m()}},i.createElement(o.Z,{img:"plus-rounded"}),(0,c.dW)("videos"===e?"videos.uploadVideo":"gallery.albums.createAlbum"))),i.createElement(s.Z,{className:"user-media-page-header__edit-button"}))),p&&!t&&i.createElement("div",{className:"user-media-page-header-empty"},h?i.createElement(d.Z,{isCentered:!0}):i.createElement(i.Fragment,null,i.createElement(o.Z,{className:"user-media-page-header-empty__icon",img:"videos"===e?"camera-4":"photo-2"}),i.createElement("div",{className:"user-media-page-header-empty__title"},(0,c.dW)(`media.empty.${e}.title`)),i.createElement("div",{className:"user-media-page-header-empty__description"},(0,c.dW)(`media.empty.${e}.description`)),i.createElement(r.ZP,{className:"user-media-page-header-empty__action",onClick:m},(0,c.dW)("videos"===e?"videos.uploadVideo":"gallery.albums.createAlbum")))))},15998:(e,t,l)=>{l.d(t,{Z:()=>g});var i=l(27378),a=l(1017),s=l(61395),r=l(38981),n=l(99382),o=l(30486),d=l(29413),c=l(99748),m=l(56509),u=l(95654),p=l(50423),h=l(62203);let v=(e,t)=>t?"videos"===e?"media.manageVideos":"media.manageAlbums":"videos"===e?"media.allVideosCount":"media.allPhotosCount",E=(e,t,l)=>{let{isLayoutUpToL:i,isLayoutMoreThanM:a,isLayoutUpToS:s}=(0,p.iP)("isLayoutMoreThanM","isLayoutUpToL","isLayoutUpToS"),r=t+(e?1:0);return"photos"===l?s?r>=6:r>=(a&&i?8:9):r>=6},g=({children:e,isOwnProfile:t,user:l,topCount:p,bottomCount:g,mediaType:f,hasContent:b,shouldShowGalleryWithNoItems:_})=>{let y=(0,u.C)(h.ok),C=l.isModel?`/${l.username}/${f}`:`/user/${l.username}/${f}`,N=E(t,p,f);return p||b||_?i.createElement(r.e,{id:"videos"===f?"user-videos":"user-gallery",className:(0,c.AK)("page-block","profile-media-panel-wrapper"),scrollToOptions:{offset:-150,duration:250}},i.createElement("div",{className:"profile-media-panel-wrapper__header"},y?i.createElement("div",{className:"profile-media-panel-wrapper__header-text"},i.createElement("h2",null,(0,m.dW)("videos"===f?"videosTitle":"albumsTitle")),!t&&i.createElement(s.Z,null),!!p&&i.createElement("span",{className:"profile-media-panel-wrapper__count"},p)):i.createElement("h2",{className:"profile-media-panel-wrapper__header-text"},(0,m.dW)("videos"===f?"videosTitle":"albumsTitle"),!t&&i.createElement(s.Z,null),!!p&&i.createElement("span",{className:"profile-media-panel-wrapper__count"},p)),t?!!(b||p)&&i.createElement(a.Z,{className:"edit-button"}):i.createElement(n.ZP,{className:"profile-media-panel-wrapper__see-all-top",to:C,type:"link"},(0,m.dW)("button.seeAll")," ",i.createElement(d.Z,{img:"chevron-right"}))),e,N&&i.createElement(n.ZP,{type:"link",style:"apply",className:"profile-media-panel-wrapper__see-all-bottom",to:C},i.createElement(o.Z,{messageId:v(f,t),choiceParameter:"notFormattedCount",parameters:{notFormattedCount:g,count:Number(g).toLocaleString()}}))):null}},72064:(e,t,l)=>{l.d(t,{Z:()=>f});var i=l(27378),a=l(48204),s=l(55363),r=l(50538),n=l(58042),o=l(29413),d=l(99748),c=l(56509),m=l(95654),u=l(63256),p=l(49217),h=l(10634),v=l(81326),E=l(66483),g=l(81519);let f=(0,a.$j)((e,t)=>({isAlbumOwnerModel:(0,E.Sw)(e,t.album.userId)}))(({album:e,isOwnProfile:t,isAlbumOwnerModel:l,onAlbumClick:a,username:E,shouldHideEditKebab:f})=>{let b=(0,m.C)(u.qX),_=t?e.previewUnverified:e.preview||e.previewMicro,y=t?e.photosCountUnverified:e.photosCount,C=!y;return i.createElement(s.Z,{id:null==e?void 0:e.id},({isEditMode:s,isSelected:m,handleSelect:u})=>i.createElement("li",{className:"albums-list-item",key:e.id},i.createElement("div",{className:(0,d.AK)("album",{empty:C}),onClick:()=>{s?e.isReserved||null==u||u():a(e)},"data-album-id":e.id},s&&!e.isReserved&&i.createElement("div",{className:(0,d.AK)("album-in-edit-mode-overlay",{selected:m})}),_?i.createElement(n.$,{alt:(0,c.B)("seo.modelPhotos.alt",{seoExtra:!1,username:E,albumname:e.name,count:""}),className:(0,d.AK)("album-img",{"album-img-restricted":!t&&!(0,v.CI)(e)}),src:_}):i.createElement("div",{className:"album-img-empty"},i.createElement(o.Z,{img:"files",size:50})),i.createElement(p.Z,{isOwnProfile:t,modifier:"profile",variant:"cover",album:e}),b?!!y&&i.createElement("span",{className:"albums-list-item__count"},y):i.createElement("div",{className:"album-footer"},i.createElement("span",{className:"album-name"},e.name),!!y&&i.createElement("span",{className:"album-photos-count"},y))),i.createElement("div",{className:"album-controls"},!e.isReserved&&t&&!s&&!f&&i.createElement(g.Z,{variant:"media-list-item",album:e,className:"albums-list-item__additional-menu"}),s&&!e.isReserved&&i.createElement(r.Z,{handleSelect:u,isSelected:m,id:String(e.id)})),b&&i.createElement("div",{className:"albums-list-item__title"},e.name),l&&i.createElement("div",{className:"likes-counter-wrapper",onClick:()=>{s?e.isReserved||null==u||u():a(e)}},i.createElement(h.Z,{albumId:e.id,userId:e.userId}))))})},59715:(e,t,l)=>{l.d(t,{Z:()=>Z});var i,a=l(18775),s=l(28128),r=l(27378),n=l(48204),o=l(3620),d=l(73545),c=l(33914),m=l(77382),u=l(82362),p=l(59593),h=l(64696),v=l(80176),E=l(82168),g=l(63256),f=l(98371),b=l(27251),_=l(98853),y=l(23780),C=l(54836),N=l(21044),P=l(81326),k=l(74012),S=l(65754),M=l(38933),T=l(20243);let A={hideModal:m.VG,showModal:m.K4,loadAlbums:C.p8,routerPush:v.J5,loadOneAlbum:y.xI},I=(e,t)=>{var l,i;return(null===(l=e.user)||void 0===l?void 0:l.id)===(null===(i=t.user)||void 0===i?void 0:i.id)&&e.isUserMyFriend!==t.isUserMyFriend};class w extends(i=r.Component){componentDidMount(){(0,h.Z)(this.propsUpdateToActionsMap,{},this.props)}componentDidUpdate(e){(0,h.Z)(this.propsUpdateToActionsMap,e,this.props)}render(){let{user:e}=this.props,t=[`albumUpdated:${e.id}`];return r.createElement(u.Z,{events:t})}constructor(...e){super(...e),(0,a._)(this,"propsUpdateToActionsMap",[{update:["user.username","currentUser.username","pageNumber",I,d.xj,"needVerifyAge"],action:()=>{let{needVerifyAge:e,user:t}=this.props,l=!t.isModel;l||e||this.fetchAlbums()}},{update:(e,t)=>{let{albums:l,mediaType:i,selectedAlbum:a,photoId:r,albumPhotos:n}=t,o=(0,s.Z)(n,{id:r});return i===N.oZ.PHOTOS&&!!(null==l?void 0:l.length)&&!a||!!r&&!!(null==n?void 0:n.length)&&!o},action:()=>{let{user:e}=this.props;this.props.routerPush(`/${e.username}/photos`),setTimeout(()=>E.Z.reset(),50)}},{update:(e,t)=>{let{albumPhotos:l,albums:i,mediaType:a,selectedAlbum:s}=t,{isVisitorsAgreementAccepted:r,currentModalName:n}=t,o=!e.mediaType||!n,d=a===N.oZ.PHOTOS&&s,c=(null==l?void 0:l.length)&&(null==i?void 0:i.length),m=e.selectedAlbum&&s&&e.selectedAlbum!==s&&n===p.MODAL_TYPES.UNIVERSAL_MEDIA_VIEWER;return!!(d&&c&&o&&r||m)},action:()=>{var e;let{albumPhotos:t,user:l,photoId:i,selectedAlbum:a,needVerifyAge:s}=this.props;s||this.props.showModal(p.MODAL_TYPES.UNIVERSAL_MEDIA_VIEWER,{selectedItemId:i?Number(i):null===(e=t[0])||void 0===e?void 0:e.id,userPhotos:t,user:l,selectedAlbum:a,likeMode:p.mK.ALBUM,bookmarkMode:p.HY.ALBUM})}}]),(0,a._)(this,"fetchAlbums",async()=>{let{mediaId:e,isSsrActive:t,limit:l,user:i,pageNumber:a,extraLoadPagesCount:s}=this.props;t||(e&&await this.props.loadOneAlbum(i.username,e),this.props.loadAlbums(i.username,{limit:l*(1+s),offset:a?l*(a-1-s):void 0}))})}}(0,a._)(w,"defaultProps",{extraLoadPagesCount:0});let Z=(0,o.EN)((0,n.$j)((e,t)=>{var l;let{isOwnProfile:i,user:a}=t,s=i?(0,P.ok)(e):(0,P.MU)(e,{user:a}),r=i?(0,T.Gn)(e):(0,T.ep)(e),{mediaType:n,mediaId:o,photoId:d}=(0,M.U)(e)||{},m=o?s.find(({id:e})=>e===o)||(null===(l=(0,P.KB)(e))||void 0===l?void 0:l[o]):null,u=!i&&a&&(0,S.zM)(e,a.id);return{isUserMyFriend:u,mediaType:n,isSsrActive:(0,f.ne)(e),userFanClub:(0,c._W)(e),mediaId:o,photoId:d,albumPhotos:o&&r?r[o]:[],selectedAlbum:m,albums:s,currentModalName:(0,b.WH)(e),currentUser:(0,k.ts)(e),needVerifyAge:(0,g.m5e)(e),isVisitorsAgreementAccepted:(0,_.IG)()}},A)(w))},69024:(e,t,l)=>{l.d(t,{J:()=>a});var i=l(98846);let a=(0,i.n)({resolved:{},chunkName:()=>"videos",isReady(e){let t=this.resolve(e);return!0===this.resolved[t]&&!!l.m[t]},importAsync:()=>Promise.all([l.e(6611),l.e(1813),l.e(9997),l.e(5905)]).then(l.bind(l,13506)),requireAsync(e){let t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){let t=this.resolve(e);return l(t)},resolve:()=>13506})},4625:(e,t,l)=>{l.d(t,{k:()=>p});var i=l(27378),a=l(3620),s=l(95366),r=l(82168),n=l(95654),o=l(70172),d=l(50423),c=l(69247),m=l(27251),u=l(98853);let p=e=>{let{isLayoutUpToL:t}=(0,d.iP)("isLayoutUpToL"),l=(0,n.C)(u.IG),p=(0,n.C)(e=>(0,c.q2)(e,{isLayoutUpToL:t})),{key:h,state:v}=(0,a.TH)(),E=(0,n.C)(m.WH),g=(0,o.D)(E),f=`.${s.ByQ}, .${s.XnR}`;(0,i.useEffect)(()=>{e||setTimeout(()=>{let e=document.querySelector(f);if(e&&!(null==v?void 0:v.saveScroll)){let t=e.getBoundingClientRect();if(!g&&t.bottom>0&&t.top<window.innerHeight/2)return;r.Z.to(f,{duration:t.bottom>0?s.ct3:0,scrollDownOnly:!!g,offset:p})}})},[h,v,l])}},42191:(e,t,l)=>{l.d(t,{Z:()=>G});var i=l(27378),a=l(38901),s=l(28865),r=l(18794),n=l(94853),o=l(51302),d=l(55363),c=l(72297),m=l(10728),u=l(91090),p=l(56509),h=l(80176),v=l(94380),E=l(95654),g=l(3620),f=l(20717);let b=(e=!1)=>{let{search:t}=(0,g.TH)();return(0,i.useMemo)(()=>(0,f.Qf)(t,e),[t,e])};var _=l(63256),y=l(49217),C=l(81519),N=l(44180),P=l(66155),k=l(82362),S=l(59593),M=l(94057),T=l(21044);let A=i.memo(({userId:e})=>{let t=(0,v.T)();return i.createElement(k.Z,{eventsWithCallbacks:[{subscriptionKey:`imageUpload:${e}`,callback:({name:e,thumbName:l})=>{e===S.Wh.THUMB&&t((0,M.Bn)(l))}},{subscriptionKey:`newNotification:${e}`,callback:({notification:e})=>{e.type===T.PERSONAL_NOTIFICATION_TYPES.USER_PHOTO_DECLINED&&t((0,M.zD)())}}]})});var I=l(59715),w=l(15110),Z=l(4625),R=l(25772),W=l(27),D=l(93776),O=l(51858),L=l(94778);let U=()=>(e,t)=>{let{photosOrders:l,photosByAlbumId:i}=t().myPhotos,a=t().myPhotos.photos,s=new Set;(0,L.Z)(l).forEach(e=>{let t=a.find(({id:t})=>t===Number(e));t&&s.add(t.albumId)}),s.forEach(t=>{let a={};i[t].forEach(({id:e,order:t})=>{a[e]=l[e]||t}),e((0,M.QD)(Number(t),a[t]))})};var $=l(81326),x=l(20243);let G=({isOwnProfile:e,user:t,modelData:l})=>{var g,f;let k=(0,v.T)(),{page:S}=b(!0),[T,L]=(0,i.useState)(0),[G,F]=(0,i.useState)(S||1);(0,Z.k)(!t.isModel),(0,i.useEffect)(()=>{1===S&&k((0,h.sb)(t.isModel?`/${t.username}/photos`:`/user/${t.username}/photos`))},[S,t.username,k,t.isModel]);let B=(0,E.C)(t=>e?(0,$.jV)(t):(0,$.g_)(t)),K=(0,E.C)(e?W.qz:$.yA),H=(0,E.C)(l=>e?(0,$.ok)(l):(0,$.MU)(l,{user:t})),V=(0,E.C)(e?x.HA:x.LT),z=(0,E.C)(x.yP),j=(0,E.C)(_.m5e),q=H.flatMap(({id:e,isReserved:t})=>{var l;return[...t?[]:[String(e)],...null!==(g=null===(l=V[e])||void 0===l?void 0:l.map(t=>`${e}-${t.id}`))&&void 0!==g?g:[]]}),Y=G>=B/w.zU;return i.createElement(o.Z,{allItemIds:q,itemsNameForConfirmTranslationsKey:"editableCollection.items",sectionName:(0,p.dW)("editableCollection.sections.myPhotos"),onItemsRemove:e=>{let t=e.filter(e=>!e.includes("-")).map(e=>Number(e)),l=t.flatMap(e=>V[e]).map(({id:e})=>e),i=e.filter(e=>e.includes("-")).map(e=>Number(e.split("-")[1])).filter(e=>!l.includes(e));t.length&&k((0,O.Od)(t)),i.length&&k((0,M.Od)(i))},onRemoveClick:()=>{z&&k(U())},onCancelClick:()=>{k((0,M.$D)())},additionalConfirmationText:(0,p.dW)("editableCollection.additionalConfirmations.whoPaidStillHaveAccess",{items:(0,p.dW)("editableCollection.additionalConfirmations.photos")}),editableCollectionId:n.g.allPhotos,getRemoveButtonTextTranslationKey:e=>e?z?"editableCollection.buttons.removeAndSave":"button.remove":"button.save",getIsRemoveButtonDisabled:e=>!e&&!z},e&&i.createElement(A,{userId:t.id}),i.createElement("div",{className:"user-photos-page"},i.createElement(I.Z,{isOwnProfile:e,user:t,limit:w.zU,pageNumber:G,extraLoadPagesCount:T}),i.createElement(R.f,null,({handleCreateAlbum:l})=>i.createElement(N.v,{isLoading:K,count:B,isOwnProfile:e,username:t.username,variant:"photos",onActionClick:l,isHiddenCounter:j})),j&&i.createElement(a.u,{model:t,modelData:l},i.createElement(s.R,{isForceWhiteText:!0,triggerSource:u.Dt.AVP_MODELS_ALBUMS})),!j&&H.map(l=>i.createElement(d.Z,{id:String(l.id),key:l.id},({isEditMode:a,isSelected:s,handleSelect:r,handleSelectById:n})=>i.createElement("div",{key:l.id,className:"user-photos-page__album"},i.createElement("div",{className:"user-photos-page__album-header"},i.createElement("div",{className:"user-photos-page__album-title"},i.createElement("h2",{className:"user-photos-page__album-name"},l.name),i.createElement("span",{className:"user-photos-page__album-photos-count"},l.photosCountUnverified||l.photosCount," ",e&&" •")),e&&i.createElement(y.Z,{album:l,variant:"badge"}),!l.isReserved&&e&&!a&&i.createElement(C.Z,{className:"user-photos-page__album-more-button",album:l,variant:"media-page"}),a&&!l.isReserved?i.createElement("div",{className:"user-photos-page__album-select-checkbox"},i.createElement(c.Z,{handleSelect:()=>{var e;r(!0),null===(e=V[l.id])||void 0===e||e.forEach(e=>{n(`${l.id}-${e.id}`,!s)})},isSelected:!!s,id:String(l.id)})):null),i.createElement(P.Z,{isEditMode:a,isAlbumSelected:s,isEditable:e,selectedAlbum:l,albumPhotos:null!==(f=V[l.id])&&void 0!==f?f:[],shouldHideEditButton:!0,user:t,isOwnProfile:e})))),K&&i.createElement(D.aN,{className:"user-photos-page__album-loader"}),!Y&&i.createElement(r.Z,{additionalClassName:"user-photos-page__see-more",onClick:()=>{L(e=>e+1),F(G+1),k((0,h.J5)(`/${t.username}/photos?page=${G+1}`,{saveScroll:!0}))}}),i.createElement(m.Z,{getLink:e=>`/${t.username}/photos${e>1?`?page=${e}`:""}`,currentPage:G,itemsCount:B,pageChangeCallback:e=>{F(e),L(0),k((0,h.J5)(t.isModel?`/${t.username}/photos?page=${e}`:`/user/${t.username}/photos?page=${e}`))},pageSize:w.zU,hiddenButtons:!1,additionalClassName:"user-photos-page__pagination"})))}},25772:(e,t,l)=>{l.d(t,{f:()=>o});var i=l(27378),a=l(77382),s=l(55363),r=l(59593),n=l(94380);let o=({children:e})=>{let t=(0,n.T)();return i.createElement(s.Z,{id:-1},({handleCancelEditing:l})=>e({handleCreateAlbum:()=>{null==l||l(),t((0,a.K4)(r.MODAL_TYPES.EDIT_ALBUM))}}))}},22540:(e,t,l)=>{l.d(t,{Mm:()=>m,bZ:()=>u,ec:()=>p});var i=l(27378),a=l(4289),s=l(30486),r=l(3034),n=l(56509),o=l(95654),d=l(63256);let c=()=>{let e=(0,o.C)(d.PTs),t=e?["privateMessages2","modelStreamPreviews","invisibleMode","seasonalOffers","spicyEmoji","anonymousTips","customBadge","changeUsername","moderation","technicalSupport"]:["privateChat","modelStreamPreviews","emoji","customBadge","invisibleMode","changeUsername","anonymousTips","moderateRooms","support"].filter(Boolean);return i.createElement("ul",{className:"ultimate-tooltip-list"},t.map(e=>i.createElement("li",{key:e},(0,n.dW)(`userLevels.features.${e}`))))},m=({...e})=>i.createElement(r.Z,{...e,className:"ultimate-membership-tooltip profile",hideDelay:300,isMobileRelative:!1,maxWidth:310},i.createElement("div",{className:"tooltip-second-title"},i.createElement(s.Z,{messageId:"userLevels.ultimatePerks",elements:{accent:i.createElement("b",null)}})),i.createElement(c,null),i.createElement("div",{className:"ultimate-tooltip-footer"},i.createElement(a.rU,{to:"/subscriptions"},(0,n.dW)("userLevels.readMore")))),u=({...e})=>i.createElement(r.Z,{...e,className:"ultimate-membership-tooltip short",hideDelay:300,isMobileRelative:!1,maxWidth:310},i.createElement("div",{className:"tooltip-second-title"},i.createElement(s.Z,{messageId:"userLevels.ultimatePerksEnjoy",elements:{accent:i.createElement("b",null)}})),i.createElement(c,null)),p=({period:e,price:t,...l})=>i.createElement(r.Z,{...l,className:"ultimate-membership-tooltip full",hideDelay:300,isMobileRelative:!1,maxWidth:310},i.createElement(i.Fragment,null,i.createElement("div",{className:"tooltip-title"},i.createElement("div",{className:"ultimate-star"},i.createElement("div",{className:"ultimate-star-icon"}),i.createElement("div",{className:"ultimate-star-glow-center"})),i.createElement("div",null,i.createElement(s.Z,{messageId:"userLevels.ultimateMembership",elements:{accent:i.createElement(i.Fragment,null),newline:i.createElement(i.Fragment,null)}}))),i.createElement("div",{className:"tooltip-description"},i.createElement(s.Z,{messageId:"userLevels.ultimateMembershipTooltip.description",parameters:{days:e,amount:t}})),i.createElement("hr",null),i.createElement("div",{className:"tooltip-second-title"},i.createElement(s.Z,{messageId:"userLevels.ultimateMembershipTooltip.secondTitle"})),i.createElement("div",{className:"tooltip-second-description"},i.createElement(s.Z,{messageId:"userLevels.ultimateMembershipTooltip.secondDescription",elements:{accent:i.createElement("b",null)}}))),i.createElement(c,null))},58932:(e,t,l)=>{l.d(t,{Z:()=>v});var i=l(26606),a=l(27378),s=l(3319),r=l(29413),n=l(3034),o=l(99748),d=l(56509),c=l(20717),m=l(95654),u=l(62203),p=l(22014);let h=e=>p.Hc.includes(e)?"movie-tv":p.M4.includes(e)?"music":p.kR.includes(e)?"sexual-interests":"",v=({active:e,onClick:t=()=>{},onRemoveClick:l,interest:p,disabled:v,clickable:E,compact:g,href:f,dark:b})=>{let _=(0,m.C)(u.ok),y=h(p),C=(0,c.jz)(y?`users/components/ui/InterestsModal/images/groups/${y}.png`:`users/components/ui/InterestsModal/images/items/${p}.png`),N=(0,d.dW)(`interests.items.${p}`),P=e=>{e.preventDefault(),e.stopPropagation(),null==l||l(p)},k=_?i.Z:s.Z;return a.createElement(a.Fragment,null,f?a.createElement(k,{className:(0,o.AK)("interest-item",{"interest-item--active":e,"interest-item--disabled":v,"interest-item--clickable":!0,"interest-item--compact":g,"interest-item--dark":b}),id:`tooltip-${p}`,..._?{onClick:()=>{window.open(f,"_blank")}}:{href:f}},a.createElement("img",{className:"interest-item__image",src:C,alt:"",width:16,height:16}),N,l&&a.createElement("div",{className:"interest-item__remove-button",onClick:P},a.createElement(r.Z,{className:"interest-item__remove-button-icon",img:"close-4",size:16}))):a.createElement(i.Z,{className:(0,o.AK)("interest-item",{"interest-item--active":e,"interest-item--disabled":v,"interest-item--clickable":E,"interest-item--compact":g,"interest-item--with-remove":!!l}),onClick:e=>{e.preventDefault(),e.stopPropagation(),v||t(p)},id:`tooltip-${p}`},a.createElement("img",{className:"interest-item__image",src:C,alt:"",width:16,height:16}),N,l&&a.createElement("div",{className:"interest-item__remove-button",onClick:P},a.createElement(r.Z,{className:"interest-item__remove-button-icon",img:"close-4",size:16}))),v&&a.createElement(n.u,{isMobileRelative:!1,maxWidth:150,targetId:`tooltip-${p}`,placement:"top"},(0,d.dW)("interests.limitTooltip")))}},68838:(e,t,l)=>{l.d(t,{O:()=>r});var i=l(27378),a=l(98655),s=l(98846);let r=(0,s.n)({resolved:{},chunkName:()=>"InterestsModal",isReady(e){let t=this.resolve(e);return!0===this.resolved[t]&&!!l.m[t]},importAsync:()=>l.e(9333).then(l.bind(l,87126)),requireAsync(e){let t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){let t=this.resolve(e);return l(t)},resolve:()=>87126},{ssr:!1,fallback:i.createElement(a.c,null)})},62848:(e,t,l)=>{let i;l.d(t,{ZP:()=>io});var a,s,r,n,o,d=l(18775),c=l(27378),m=l(48204),u=l(4289),p=l(84807),h=l(80406);function v(e){return e.broadcastSchedule}let E=(0,h.P1)(v,e=>e.loading),g=(0,h.P1)(v,e=>e.schedule),f=(0,h.P1)(v,e=>e.scheduleTimezoneOffset),b=(0,h.P1)(v,e=>{var t;return(null===(t=e.schedule)||void 0===t?void 0:t.isEnabled)||!1});var _=l(25225),y=l(10642),C=l(56509),N=l(52729),P=l(74012),k=l(68466);function S(e,t){return(l,i,{Api:a})=>{l({type:k.DLl});let s=(0,P.rc)(i()),r=g(i())||(0,_.u)(),n={...r,isEnabled:void 0!==t?t:r.isEnabled,schedule:function(e){let t=JSON.parse(JSON.stringify(e)),l=!1;return Object.values(t).forEach(e=>{!e.isEnabled&&e.periods.some(([e,t])=>null===e||null===t)&&(e.periods=[],l=!0)}),l&&y.ZP.error("Broken broadcasting schedule",e),t}(e)};a.put(`/models/${s}/broadcastSchedule`,n).then(()=>{l({type:k.Z_Q,data:{schedule:n}})}).catch(()=>{l({type:k.vh}),l((0,N.s9)((0,C.dW)("errors.serverError")))})}}var M=l(38981),T=l(85353),A=l(59593),I=l(99748),w=l(59188),Z=l(15971),R=l(30486),W=l(29413),D=l(75997);function O(e){let t=e.timezone.replace(/([+-])0/,"$1").replace(":00",""),l=c.createElement(u.rU,{className:"broadcast-schedule_timezone-link",to:"/settings"}),i="broadcastSettings.blocks.schedule.header";return c.createElement("div",{className:"broadcast-schedule__header"},c.createElement("div",{className:"broadcast-schedule__title-container"},c.createElement("span",{className:"broadcast-schedule__title"},c.createElement(W.Z,{img:"calendar",className:"broadcast-schedule__title-icon"}),(0,C.dW)(`${i}.title`)),c.createElement("div",{className:"broadcast-schedule__header-actions"},c.createElement("div",{onClick:e.toggleExpanded,className:(0,I.AK)("broadcast-schedule__header-arrow",{"broadcast-schedule__header-arrow--active":e.expanded})},c.createElement(W.Z,{img:"arrow-down-2"})),c.createElement(D.Z,{size:"default",theme:"light",isChecked:e.enabled,onChange:e.onSwitchClick,iconVisibility:!1,className:"broadcast-schedule__header-switch"}))),c.createElement(R.Z,{className:"broadcast-schedule__header-description",messageId:`${i}.description`,parameters:{timezone:t},elements:{link:l,br:c.createElement("br",null)}}))}var L=l(95654);let U=(0,m.$j)(function(e){return{schedule:g(e),timezone:f(e),loading:E(e)}},{save:S,load:function(){return(e,t,{Api:l})=>{e({type:k.DJP});let i=(0,P.rc)(t());l.get(`/models/${i}/broadcastSchedule`).then(t=>{var l;let i=t.broadcastSchedule||(0,_.u)();e((l=t.readableOffset,{type:k.P4n,data:{schedule:i,scheduleTimezoneOffset:l}}))}).catch(()=>{e({type:k.Eve}),e((0,N.s9)((0,C.dW)("errors.serverError")))})}},toggleSchedule:function(e){return(t,l)=>{let i=g(l())||(0,_.u)();t(S(i.schedule,e))}}})(e=>{let t=function(e){let t=(0,L.C)(b),[l,i]=(0,c.useState)(!1);return{expanded:l,enabled:t,onSwitchClick:()=>{e(!t),i(!0)},toggleExpanded:()=>{i(!l)}}}(e.toggleSchedule),l=t.expanded&&e.loading;(0,w.H)(e.load);let i=l=>{let i=(0,C.dW)("broadcastSettings.blocks.schedule.saveBtn");return c.createElement(Z.Z,{saveButtonTitle:i,maxPeriodsPerDay:A.HJ,className:(0,I.AK)("broadcast-schedule__form",{"broadcast-schedule__form--hidden":!t.expanded,"broadcast-schedule__form--loading":e.loading,"broadcast-schedule__form--disabled":!t.enabled}),scheduleDays:l,onSave:e.save})};return c.createElement(M.e,{id:"broadcast-schedule",scrollToOptions:{offset:-150,duration:250},className:"broadcast-schedule__settings-block"},c.createElement(O,{...t,timezone:e.timezone}),e.schedule?i(e.schedule.schedule):c.createElement("div",null,i((0,_.u)().schedule)),l?c.createElement(T.Z,{isCentered:!0}):null)});var $=l(18596),x=l(38901),G=l(28865),F=l(37051),B=l(10269),K=l(29502),H=l(95366),V=l(46839),z=l(73545),j=l(80936),q=l(39120),Y=l(38487),J=l(82168),X=l(92081),Q=l(62203),ee=l(66483);let et={showActionMenu:B._f,setSelectedTipMenuIndex:K.VC};class el extends c.Component{render(){let{activities:e,isInteractive:t,username:l,isStripchat:i}=this.props,{isShadowTop:a,isShadowBottom:s}=this.state;if(!(null==e?void 0:e.length))return null;let r=this.state.isMobileCollapsed&&e.length>15;return c.createElement(q.Z,{propsUpdateToActionsMap:this.propsUpdateToActionsMap,...this.props},c.createElement("div",{className:"profile-tip-menu"},c.createElement("header",{className:"profile-tip-menu__header"},c.createElement(W.Z,{className:"profile-tip-menu__header-icon",img:"chat-actions"}),i?c.createElement("h3",{className:"profile-tip-menu__header-text"},(0,C.dW)("actionList.tipMenu.profileTitle",{username:l})):c.createElement("h2",{className:"profile-tip-menu__header-text"},(0,C.dW)("actionList.tipMenu.title"))),c.createElement("div",{className:(0,I.AK)("profile-tip-menu__activities",{"profile-tip-menu__activities--shadow-top":a,"profile-tip-menu__activities--shadow-bottom":s,"profile-tip-menu__activities--collapsed":r})},c.createElement(Y.Z,{additionalClassName:"profile-tip-menu__scroll-container",libOptions:this.psLibOptions,onScrollY:this.onScroll,onNativeScroll:this.onScroll,containerRef:this.setScrollContainerRef},e.map(({activity:e,price:l},i,{length:a})=>c.createElement("div",{key:e,onClick:t?()=>this.onClick(i,e,l):void 0,className:(0,I.AK)("profile-tip-menu__activity-wrapper",{"profile-tip-menu__activity-wrapper--interactive":t})},c.createElement("div",{className:(0,I.AK)("profile-tip-menu__activity",{"profile-tip-menu__activity--last":i===a-1})},c.createElement("span",null,e),c.createElement("span",null,(0,X.k)(l))))),r&&c.createElement("button",{type:"button",onClick:()=>this.setState({isMobileCollapsed:!1}),className:"profile-tip-menu__show-more"},(0,C.dW)("button.showMore"),c.createElement(W.Z,{img:"chevron-right",className:"profile-tip-menu__chevron"}))))))}constructor(e){super(e),(0,d._)(this,"scrollContainer",null),(0,d._)(this,"propsUpdateToActionsMap",[{update:["isLayoutUpToL",e=>{var t,l;return(null===(t=e.activities)||void 0===t?void 0:t.length)!==(null===(l=this.props.activities)||void 0===l?void 0:l.length)}],action:()=>{this.scrollContainer&&this.scrollElement(this.scrollContainer)}}]),(0,d._)(this,"onClick",(e,t,l)=>{let{isLayoutUpToL:i}=this.props;this.props.showActionMenu(H.pow.TIP_MENU,void 0,{amplitudeEventProps:{prodType:H.Hrc.TIP,prodSubtype:H.hZ6.DEFAULT,isFromMenu:!0},amount:l,source:H.buX.TIP_MENU,message:t,onClose:F.Z}),this.props.setSelectedTipMenuIndex(e),i||J.Z.reset()}),(0,d._)(this,"scrollElement",({scrollTop:e,scrollHeight:t,clientHeight:l})=>{let{isShadowTop:i,isShadowBottom:a}=this.state,s=e>10,r=t-10>=e+l;(i!==s||a!==r)&&this.setState({isShadowTop:s,isShadowBottom:r})}),(0,d._)(this,"onScroll",e=>{this.scrollElement(e.target)}),(0,d._)(this,"setScrollContainerRef",e=>{this.scrollContainer=e}),(0,d._)(this,"psLibOptions",{suppressScrollX:!0}),this.state={isShadowTop:!1,isShadowBottom:!1,isMobileCollapsed:!0}}}let ei=(0,j.y)("isLayoutUpToL")((0,m.$j)(e=>({activities:(0,z.v4)(e),isStripchat:(0,Q.ok)(e),isInteractive:!(0,ee.ly)(e)&&(0,V.Ks)(e)}),et)(el));var ea=l(6848),es=l(14740),er=l(43587),en=l(77382),eo=l(58089),ed=l(25750),ec=l(82362),em=l(91090),eu=l(87937),ep=l(64696),eh=l(58543),ev=l(63256),eE=l(16023),eg=l(988),ef=l(69247),eb=l(80092),e_=l(94853),ey=l(51302),eC=l(94380),eN=l(51858);let eP=({albums:e,children:t})=>{let l=(0,eC.T)(),i=e.filter(({isReserved:e})=>!e).map(({id:e})=>e);return c.createElement(ey.Z,{allItemIds:i,itemsNameForConfirmTranslationsKey:"editableCollection.albums",onItemsRemove:e=>l((0,eN.Od)(e)),editableCollectionId:e_.g.albums,additionalConfirmationText:(0,C.dW)("editableCollection.additionalConfirmations.whoPaidStillHaveAccess",{items:(0,C.dW)("editableCollection.additionalConfirmations.albums")})},t)};var ek=l(83550),eS=l(71447),eM=l(54690),eT=l(80176),eA=l(72064),eI=l(25772);let ew=()=>c.createElement(eI.f,null,({handleCreateAlbum:e})=>c.createElement("li",{className:"albums-list-item album-creator-wrapper"},c.createElement("div",{className:"album-creator",onClick:e},c.createElement("div",{className:"album-creator-content"},c.createElement(W.Z,{size:28,img:"plus-unframed"}),c.createElement("span",{className:"album-creator-text"},(0,C.dW)("gallery.albums.createAlbum"))))));class eZ extends c.Component{componentDidMount(){this.props.emitUiEvent(A.Q7.ALBUM_BLOCK_WAS_SHOWN,{userId:this.props.user.id})}render(){let{albums:e,isEditMode:t,isOwnProfile:l,className:i,user:a}=this.props;return c.createElement("div",{className:(0,I.AK)(i,"albums-gallery-root-v2",{"edit-mode":t})},c.createElement("ul",{className:"albums-list"},l&&c.createElement(eS.Z,{type:e_.d.album},c.createElement(ew,null)),e.map(e=>c.createElement(eS.Z,{key:e.id,type:e_.d.album},c.createElement(eA.Z,{username:a.username,album:e,isOwnProfile:l,onAlbumClick:this.albumClickHandler})))))}constructor(...e){super(...e),(0,d._)(this,"albumClickHandler",e=>{let{user:t,addPhotos:l}=this.props;if(e.photosCount||e.previewUnverified){let l;l=t.isModel?`/${t.username}/photos/${e.id}`:t.isStudio?`/studio/${t.username}/photos/${e.id}`:`/user/${t.username}/photos/${e.id}`,this.props.routerPush(l)}else l(e)})}}let eR={emitUiEvent:ek.gz,routerPush:eT.J5,showModal:en.K4},eW=(0,m.$j)(null,eR)((0,eM.x)(eZ));var eD=l(15110),eO=l(6083),eL=l(62668),eU=l(99382),e$=l(32465),ex=l(13219),eG=l(98941),eF=l(81535),eB=l(65103);let eK=({className:e,currentUser:t})=>{let l=(0,eC.T)(),i=(0,L.C)(eh.JP),a=(0,L.C)(eO.K0),s=(0,L.C)(eB.j9),r=(0,L.C)(eB.Tz),[n,o,d]=(0,e$.O)(!1),m=()=>l((0,ex.gi)(!0)),p=e=>{e.stopPropagation(),l((0,eL.MP)("messages"))};if(a===eG.I$.APPROVED)return n?c.createElement(eF.Q,{onClose:d}):null;let h=null;if(h=a===eG.I$.NOT_REVIEWED?c.createElement(R.Z,{messageId:i?"userKyc.photosPanelNew.pending":"userKyc.photosPanel.pending",elements:{clockIcon:c.createElement("span",{className:"user-kyc-photos-panel__pending-icon-wrapper"},c.createElement(W.Z,{className:"user-kyc-photos-panel__pending-icon",img:"clock"}),"\xa0"),em:c.createElement("span",{className:"user-kyc-photos-panel__pending-em"})}}):a!==eG.I$.REJECTED||r?c.createElement(R.Z,{messageId:i?"userKyc.photosPanelNew.verify":"userKyc.photosPanel.verify",elements:{link:s?c.createElement(u.rU,{to:"/studio/documents",className:"user-kyc-photos-panel__verify-link"}):c.createElement("a",{onClick:o,className:"user-kyc-photos-panel__verify-link"})}}):c.createElement(R.Z,{messageId:i?"userKyc.photosPanelNew.rejected":"userKyc.photosPanel.rejected",elements:{link:s?c.createElement(u.rU,{to:"/studio/documents",className:"user-kyc-photos-panel__rejected-link"}):c.createElement("a",{onClick:()=>{o(),m()},className:"user-kyc-photos-panel__rejected-link"}),em:c.createElement("span",{className:"user-kyc-photos-panel__rejected-em"})}}),i&&t){var v;let i=(null==t?void 0:null===(v=t.userRanking)||void 0===v?void 0:v.realLeague)&&"grey"!==t.userRanking.realLeague;return i?c.createElement("div",{className:(0,I.AK)("user-kyc-photos-panel",e)},n&&c.createElement(eF.Q,{onClose:d}),h,c.createElement("br",null),(0,C.dW)("userKyc.photosPanelNew.hint"),!s&&c.createElement("div",{className:"user-kyc-photos-panel__messenger-info"},c.createElement(R.Z,{messageId:"userKyc.photosPanelNew.sendInMessage",elements:{link:c.createElement("a",{onClick:p,className:"user-kyc-photos-panel__messenger-link"})}}),c.createElement(W.Z,{className:"user-kyc-photos-panel__messenger-icon",img:"reply-2"}))):c.createElement("div",{className:(0,I.AK)("user-kyc-photos-panel",e)},c.createElement("div",{className:"user-kyc-photos-panel__messenger-info"},c.createElement(W.Z,{img:"lock-1",className:"user-kyc-photos-panel__lock-icon"}),c.createElement(R.Z,{messageId:"userKyc.photosPanelNew.userDescription",elements:{levelsLink:c.createElement(u.rU,{to:`/user/${t.username}/league`,className:"user-kyc-photos-panel__levels-link"}),buyTokensLink:c.createElement("a",{onClick:()=>l((0,en.U1)({triggerSource:em.ee.USER_ALBUMS_SECTION})),className:"user-kyc-photos-panel__buy-tokens-link"})}})),c.createElement("div",{className:"user-kyc-photos-panel__action"},c.createElement(eU.ZP,{style:"money",size:"small",onClick:()=>l((0,en.U1)({triggerSource:em.ee.USER_ALBUMS_SECTION}))},(0,C.dW)("button.buyTokens"))))}return c.createElement("div",{className:(0,I.AK)("user-kyc-photos-panel",e)},n&&c.createElement(eF.Q,{onClose:d}),h,!s&&c.createElement("div",{className:"user-kyc-photos-panel__messenger-info"},c.createElement(R.Z,{messageId:"userKyc.photosPanel.sendInMessage",elements:{link:c.createElement("a",{onClick:p,className:"user-kyc-photos-panel__messenger-link"})}}),c.createElement(W.Z,{className:"user-kyc-photos-panel__messenger-icon",img:"reply-2"})))};var eH=l(81326),eV=l(20243),ez=l(15998),ej=l(59715);let eq={KycPanel:"UserGalleryV2__KycPanel#sN"},eY=(0,m.$j)((e,t)=>{let{myAlbums:l,userAlbums:i}=e,{isOwnProfile:a,user:s}=t,r=a?(0,eH.jV)(e):(0,eH.g_)(e),n=a?(0,eV.wT)(e):(0,eH.g6)(e,s.username),o=eD.S8-(a?1:0),d=(a?(0,eH.ok)(e):(0,eH.MU)(e,{user:s})).slice(0,o),c=a?!l.isPending:!i.isPending&&d.length>0;return{albums:d,albumsCount:r,photosCount:n,isGalleryAvailable:c}})(({isGalleryAvailable:e,isOwnProfile:t,albums:l,user:i,albumsCount:a,photosCount:s,shouldShowGalleryWithNoItems:r})=>{let n=(0,L.C)(P.ts);return c.createElement(c.Fragment,null,c.createElement(ej.Z,{isOwnProfile:t,user:i,limit:eD.S8}),e&&c.createElement(eP,{albums:l},c.createElement(ez.Z,{shouldShowGalleryWithNoItems:r,mediaType:"photos",user:i,isOwnProfile:t,topCount:a,hasContent:!!a,bottomCount:s},!(null==i?void 0:i.isModel)&&t&&n&&!!a&&c.createElement(eK,{currentUser:n,className:eq.KycPanel}),c.createElement(eW,{albums:l,isOwnProfile:t,user:i}))))});var eJ=l(69024),eX=l(23780),eQ=l(28237),e0=l(26338),e1=l(29955),e2=l(96301),e8=l(16421),e5=l(61171),e3=l(58927),e4=l(74753),e9=l(3034),e6=l(85049),e7=l(77558),te=l(21044),tt=l(72614);let tl=e=>{var t;let l=(null===(t=e.epicGoals)||void 0===t?void 0:t.list)||[];return l.filter(e=>e.goal>e.spent)[0]||l[0]||{}},ti=e=>e.epicGoals.errorMessage,ta=e=>e.epicGoals.isSavingPending,ts=e=>{var t;let l=(null===(t=e.epicGoals)||void 0===t?void 0:t.list)||[],i=tl(e),a=i.goal&&i.goal<=i.spent,s=[];return a?[,...s]=l:s=l.filter(e=>e.goal<=e.spent),s},tr=e=>{var t;return!!(null===(t=e.epicGoals)||void 0===t?void 0:t.isEnabled)},tn=({className:e,model:t,message:l,isPrivateTip:i})=>{let a=(0,eC.T)();return c.createElement(eU.ZP,{size:"medium",className:e,style:i?"private":"apply",onClick:()=>a((0,ek.d2)(A.FO.PROFILE_EPIG_GOAL,{modelId:t.id,source:H.buX.EPIC_GOAL,additionalParam:{...l&&{message:l},amplitudeEventProps:{prodType:H.Hrc.TIP,prodSubtype:H.buX.EPIC_GOAL},isPrivateTip:i},shouldScrollToChat:i}))},c.createElement("span",{className:"button-text"},(0,C.dW)("button.contribute")))};!function(e){e.UPDATE="update",e.CREATE="create"}(a||(a={}));class to extends c.PureComponent{componentDidMount(){this.props.loadEpicGoals(this.props.user.id)}componentDidUpdate(e){(0,e0.Z)(e.currentEpicGoal,this.props.currentEpicGoal)||this.setState({isEditMode:(0,e1.Z)(this.props.currentEpicGoal)&&!!this.props.editable,editorMode:(0,e1.Z)(this.props.currentEpicGoal)?a.CREATE:a.UPDATE,formData:this.getFormData(),formErrors:{},initialFormData:this.getFormData()}),this.props.epicGoalSaveErrorMessage!==e.epicGoalSaveErrorMessage&&this.setState({formErrors:this.props.epicGoalSaveErrorMessage?{description:{message:this.props.epicGoalSaveErrorMessage}}:{}})}render(){let{isEditMode:e,isDeleteModalOpen:t,deleteDescription:l}=this.state,{currentEpicGoal:i,editable:a,isEpicGoalsEnabled:s,isAchievedCurrentEpicGoal:r}=this.props,n=a||!(0,e1.Z)(i)&&s,o=(0,I.AK)("epic-goals","page-block",{"epic-goals--reached":r&&!e}),d=(0,I.AK)("epic-goals__body",{"epic-goals__body--disabled":!s});return c.createElement(c.Fragment,null,n&&c.createElement(c.Fragment,null,c.createElement(M.e,{id:"epic-goals",scrollToOptions:{offset:-150,duration:250},className:o},c.createElement("div",{className:"epic-goals__header"},this.renderHeader()),c.createElement("div",{className:d},e&&a?this.renderEditor():this.renderViewer())),t&&c.createElement(e8.Z,{onConfirm:this.deleteEpicGoalConfirm,onCancel:()=>this.setState({isDeleteModalOpen:!1}),okText:(0,C.dW)("epicGoals.delete"),isModerModal:!0,isNegativeModal:!0},c.createElement("p",null,(0,C.dW)(`epicGoals.confirmations.${l}`)))),this.renderSocket())}constructor(e){super(e),(0,d._)(this,"dropdownRef",c.createRef()),(0,d._)(this,"getFormData",()=>{let{currentEpicGoal:e,isAchievedCurrentEpicGoal:t}=this.props;return{description:t?"":e.description,goal:t?"":e.goal}}),(0,d._)(this,"toggleEditorMode",()=>{let{isEditMode:e}=this.state;this.setState({isEditMode:!e})}),(0,d._)(this,"onToggleEpicGoalsEnabled",async e=>{var t;if(null===(t=this.props.currentEpicGoal)||void 0===t?void 0:t.id)try{await this.props.toggleEpicGoal(e)}catch(e){this.setState({isEditMode:!0})}}),(0,d._)(this,"onChangeField",(e,t)=>{if(null==t?void 0:t.target){let{formData:l,formErrors:i}=this.state;delete i[e],this.setState({formData:{...l,[e]:null==t?void 0:t.target.value},formErrors:i})}}),(0,d._)(this,"resetForm",()=>{this.setState({formData:this.getFormData(),initialFormData:this.getFormData(),formErrors:{}})}),(0,d._)(this,"cancelHandler",()=>{let{currentEpicGoal:e}=this.props;(null==e?void 0:e.id)&&this.toggleEditorMode(),this.resetForm()}),(0,d._)(this,"validateForm",()=>{let{currentEpicGoal:e}=this.props,{formData:t,editorMode:l}=this.state,i={},s=2e3;if(l===a.UPDATE){var r;s=(null==e?void 0:e.id)&&(null==e?void 0:e.spent)>2e3?(null!==(r=null==e?void 0:e.spent)&&void 0!==r?r:0)+1:2e3}let n=2e3===s?(0,C.dW)("epicGoals.validation.newGoal",{tokens:Number(s).toLocaleString()}):(0,C.dW)("epicGoals.validation.goal",{tokens:Number(s-1).toLocaleString()});t.description||(i.description={message:(0,C.dW)("epicGoals.validation.description")}),(!t.goal||Number(t.goal)<s)&&(i.goal={message:n}),Number(t.goal)>999999&&(i.goal={message:(0,C.dW)("epicGoals.validation.maxGoal",{tokens:999999})});let o=Object.keys(i).reduce((e,t)=>{var l;return e[t]={details:{[t]:null===(l=i[t])||void 0===l?void 0:l.message},message:null},e},{});return this.setState({formErrors:o}),(0,e1.Z)(i)}),(0,d._)(this,"getFieldError",e=>{let{formErrors:t}=this.state;return t[e]}),(0,d._)(this,"createNewHandler",e=>{e.preventDefault(),this.setState({editorMode:a.CREATE,isEditMode:!0,isDropdownOpened:!1,formData:this.getFormData()})}),(0,d._)(this,"removeEpicGoalHandler",(e,t)=>{e.preventDefault();let{currentEpicGoal:l}=this.props,i="deleteEpicGoal";t===l.id&&(i="deleteCurrentEpicGoal"),this.setState({epicGoalIdForDelete:t,isDeleteModalOpen:!0,deleteDescription:i})}),(0,d._)(this,"deleteEpicGoalConfirm",()=>{let{currentEpicGoal:e}=this.props,{epicGoalIdForDelete:t}=this.state;t&&this.props.removeEpicGoal(t),this.setState({isDeleteModalOpen:!1}),t===e.id&&this.setState({editorMode:a.CREATE,isEditMode:!1,formData:this.getFormData()})}),(0,d._)(this,"saveEpicGoalHandler",async()=>{let{formData:e,editorMode:t}=this.state;if(this.validateForm()){this.setState({isCreatingOrUpdating:!0});try{t===a.CREATE?await this.props.createEpicGoal(e):await this.props.updateEpicGoal(this.props.currentEpicGoal.id,e),this.setState({isEditMode:!1})}finally{this.setState({isCreatingOrUpdating:!1})}}}),(0,d._)(this,"changeEpicGoalCallback",({epicGoal:e,isEnabled:t,isDeleted:l})=>{l?this.props.patchEpicGoals(te.TB.REMOVE,e,t):this.props.patchEpicGoals(te.TB.PATCH,e,t)}),(0,d._)(this,"renderEditor",()=>{let{formData:e,initialFormData:t,editorMode:l,isCreatingOrUpdating:i}=this.state,{currentEpicGoal:s,isSavingPending:r}=this.props,n=l===a.UPDATE,o=!(0,e0.Z)(e,t);return c.createElement("div",{className:"epic-goal-editor"},c.createElement("div",{className:"epic-goal-editor__description"},(0,C.dW)("epicGoals.editorDescription")),c.createElement("div",{className:"epic-goal-editor__fields"},c.createElement(e4.Z,{className:(0,I.AK)("epic-goal-editor__title",{error:this.getFieldError("description")}),id:"description",placeholder:(0,C.dW)("epicGoals.titlePlaceholder"),maxLength:60,size:"small",onChange:e=>this.onChangeField("description",e),value:e.description,disabled:r}),this.getFieldError("description")&&c.createElement("div",{className:"field-error"},c.createElement(e3.Z,{error:this.getFieldError("description"),fieldName:"description",targetId:"description",placement:"top"})),c.createElement(e4.Z,{className:(0,I.AK)("epic-goal-editor__tokens",{error:this.getFieldError("goal")}),id:"goal",placeholder:(0,C.dW)("epicGoals.tokensPlaceholder"),size:"small",maxLength:6,onChange:e=>this.onChangeField("goal",e),value:e.goal,type:"number",disabled:r}),this.getFieldError("goal")&&c.createElement("div",{className:"field-error"},c.createElement(e3.Z,{error:this.getFieldError("goal"),fieldName:"goal",targetId:"goal",placement:"top"}))),c.createElement("div",{className:"epic-goal-editor__actions"},c.createElement("div",{className:"epic-goal-editor__actions-group"},c.createElement(eU.ZP,{style:"apply",onClick:this.saveEpicGoalHandler,disabled:!o||i,loading:r},n?(0,C.dW)("epicGoals.save"):(0,C.dW)("epicGoals.publish")),c.createElement(eU.ZP,{style:"default",onClick:this.cancelHandler,disabled:(0,e1.Z)(s)||i},(0,C.dW)("epicGoals.cancel"))),n&&c.createElement(eU.ZP,{className:"epic-goal-editor__delete-button",style:"default",onClick:e=>this.removeEpicGoalHandler(e,s.id),disabled:i||r},c.createElement(W.Z,{img:"trash",size:14}),c.createElement("span",{className:"button-title"},(0,C.dW)("epicGoals.delete")))))}),(0,d._)(this,"renderAchievedEpicGoal",e=>{let{editable:t}=this.props;return c.createElement("div",{className:"achieved-epic-goals__item",key:e.id},c.createElement("div",{className:"achieved-epic-goals__left-side"},c.createElement("div",{className:"achieved-epic-goals__title"},e.description),c.createElement("div",{className:"achieved-epic-goals__tokens"},(0,C.dW)("epicGoals.tokensCount",{tokens:Number(e.goal).toLocaleString()})),c.createElement("div",{className:"achieved-epic-goals__users"},c.createElement(R.Z,{messageId:"epicGoals.usersCount",parameters:{users:e.usersCount},choiceParameter:"users"}))),t&&c.createElement("button",{className:"achieved-epic-goals__delete-button",type:"button",onClick:t=>this.removeEpicGoalHandler(t,e.id)},c.createElement(W.Z,{img:"trash",size:16})))}),(0,d._)(this,"renderViewer",()=>{let{currentEpicGoal:e,achievedEpicGoals:t,user:l,currentUser:i,isAchievedCurrentEpicGoal:a,isCamAvailable:s}=this.props;return c.createElement("div",{className:(0,I.AK)("epic-goal-viewer",{"epic-goal-viewer--model":i.isModel})},c.createElement("div",{className:"epic-goal-viewer__current-goal"},c.createElement("div",{className:"epic-goal-viewer__goal-title"},e.description),c.createElement("div",{className:"epic-goal-viewer__tips-count"},c.createElement(R.Z,{messageId:"epicGoals.usersCount",parameters:{users:e.usersCount},choiceParameter:"users"}))),c.createElement(tt.xt,{total:e.goal,value:e.spent,isReached:a}),c.createElement("div",{className:"epic-goal-viewer__actions"},c.createElement("div",{className:"epic-goal-viewer__tips-count"},c.createElement(R.Z,{messageId:"epicGoals.usersCount",parameters:{users:e.usersCount},choiceParameter:"users"})),!i.isModel&&!a&&c.createElement(tn,{className:"epic-goal-tip-button",model:l,message:e.description,isPrivateTip:!s})),!!t.length&&c.createElement(e2.Z,{className:"achieved-epic-goals",header:(0,C.dW)("epicGoals.achievedGoalsTitle")},t.map(this.renderAchievedEpicGoal)))}),(0,d._)(this,"renderHeaderActions",()=>{let{isEpicGoalsEnabled:e,editable:t,isAchievedCurrentEpicGoal:l,currentEpicGoal:i}=this.props,{isEditMode:a,isDropdownOpened:s}=this.state;return t?c.createElement("div",{className:"epic-goals__header-actions"},!a&&!l&&c.createElement("button",{className:"epic-goals__edit-button",type:"button",onClick:this.toggleEditorMode},c.createElement(W.Z,{img:"edit",size:16})),!a&&!l&&c.createElement(D.Z,{iconVisibility:!1,size:"default",theme:"light",isChecked:e,onChange:this.onToggleEpicGoalsEnabled}),!a&&l&&c.createElement(c.Fragment,null,c.createElement("button",{className:(0,I.AK)("epic-goals__more-button",{"epic-goals__more-button--opened":s}),type:"button",onClick:e=>{e.stopPropagation(),this.setState({isDropdownOpened:!s})},ref:this.dropdownRef},c.createElement(W.Z,{img:"menu-mobile",size:14})),s&&c.createElement(e5.Z,{stateValueGetter:()=>s,onClose:()=>this.setState({isDropdownOpened:!1}),isMobileViewEnabled:!1,position:"left",initiatorRef:this.dropdownRef},c.createElement("button",{type:"button",onClick:this.createNewHandler},c.createElement(W.Z,{img:"plus-unframed",size:14}),(0,C.dW)("epicGoals.createNew")),c.createElement("hr",null),c.createElement("button",{type:"button",onClick:e=>this.removeEpicGoalHandler(e,i.id)},c.createElement(W.Z,{img:"trash",size:14}),(0,C.dW)("epicGoals.delete"))))):null}),(0,d._)(this,"renderHeader",()=>{let{editable:e,user:{username:t}}=this.props,l="epic-goals__header-tooltip";return c.createElement(c.Fragment,null,c.createElement("h2",{className:"epic-goals__header-title"},(0,C.B)("epicGoals.title",{username:t}),c.createElement("div",{className:"tooltip-info",id:l},c.createElement(W.Z,{img:"question"})),c.createElement(e9.Z,{placement:"top",targetId:l,isMobileRelative:!1,maxWidth:300},c.createElement(R.Z,{className:"epic-goals__header-title-tooltip",messageId:e?"epicGoals.modelTooltipNew":"epicGoals.tooltipNew",elements:{br:c.createElement("div",{className:"epic-goals__tooltip-br"})}}))),this.renderHeaderActions())}),(0,d._)(this,"renderSocket",()=>{let{user:e}=this.props;return c.createElement(ec.Z,{eventsWithCallbacks:[{subscriptionKey:`epicGoalChanged:${e.id}`,callback:this.changeEpicGoalCallback}]})});let{currentEpicGoal:t,editable:l}=this.props;this.state={isEditMode:(0,e1.Z)(t)&&!!l,editorMode:(0,e1.Z)(this.props.currentEpicGoal)?a.CREATE:a.UPDATE,isDropdownOpened:!1,formData:this.getFormData(),initialFormData:this.getFormData(),formErrors:{},isDeleteModalOpen:!1,epicGoalIdForDelete:null,deleteDescription:"deleteEpicGoal",isCreatingOrUpdating:!1}}}let td=(0,m.$j)(e=>{let t=tl(e),l=ts(e),i=!!(t.goal&&t.goal<=t.spent),{isCamAvailable:a}=e.viewCam;return{currentEpicGoal:t,achievedEpicGoals:l,isEpicGoalsEnabled:tr(e),epicGoalSaveErrorMessage:ti(e),isSavingPending:ta(e),isAchievedCurrentEpicGoal:i,currentUser:(0,P.ts)(e)||{},isCamAvailable:a}},{loadEpicGoals:e=>async(t,l,{Api:i})=>{t({type:e7.Jki});try{let{epicGoals:l,isEnabled:a}=await i.get(`/models/${e}/epicGoals`);t({type:e7.o5X,data:{list:l||[]}}),t({type:e7.Cky,data:{isEnabled:a}}),t({type:e7.PKZ})}catch(e){t({type:e7.HB_})}},removeEpicGoal:e=>async(t,l,{Api:i})=>{let a=l(),s=(0,P.rc)(a);try{await i.del(`/models/${s}/epicGoals/${e}`);let l=a.epicGoals.list.filter(t=>t.id!==e);t({type:e7.o5X,data:{list:l}})}catch(e){y.ZP.error("EpicGoal remove error",e)}},createEpicGoal:e=>async(t,l,{Api:i})=>{let a=l(),s=(0,P.rc)(a);t({type:e7.u6P});try{let{epicGoal:l}=await i.post(`/models/${s}/epicGoals`,e),r=[l,...a.epicGoals.list];t({type:e7.o5X,data:{list:r}})}catch(l){let e=(0,e6.Vc)(l,A.Gz.EPIC_GOAL_DESCRIPTION);if(e)throw t({type:e7.kZo,data:{errorMessage:e}}),l;y.ZP.error("EpicGoal create error",l)}},updateEpicGoal:(e,t)=>async(l,i,{Api:a})=>{let s=i(),r=(0,P.rc)(s);l({type:e7.u6P});try{let{epicGoal:i}=await a.put(`/models/${r}/epicGoals/${e}`,t),n=s.epicGoals.list.map(t=>t.id===e?{...t,...i}:t);l({type:e7.o5X,data:{list:n}})}catch(t){let e=(0,e6.Vc)(t,A.Gz.EPIC_GOAL_DESCRIPTION);if(e)throw l({type:e7.kZo,data:{errorMessage:e}}),t;y.ZP.error("EpicGoal update error",t)}},patchEpicGoals:(e,t,l)=>async(i,a)=>{let s=a(),r=s.epicGoals.list.some(e=>e.id===t.id);if(e===te.TB.PATCH){if(r){let e=s.epicGoals.list.map(e=>e.id===t.id?t:e);i({type:e7.o5X,data:{list:e}})}else{let e=[t,...s.epicGoals.list];i({type:e7.o5X,data:{list:e}})}}else if(e===te.TB.REMOVE){let e=s.epicGoals.list.filter(e=>e.id!==t.id);i({type:e7.o5X,data:{list:e}})}void 0!==l&&i({type:e7.Cky,data:{isEnabled:l}})},toggleEpicGoal:e=>async(t,l,{Api:i})=>{let a=l(),s=(0,P.rc)(a);t({type:e7.u6P});try{await i.patch(`/models/${s}/epicGoals`,{isEnabled:e}),t({type:e7.Cky,data:{isEnabled:e}})}catch(l){let e=(0,e6.Vc)(l,A.Gz.EPIC_GOAL);if(e)throw t({type:e7.kZo,data:{errorMessage:e}}),l;y.ZP.error("EpicGoal change status error",l)}}})(to);var tc=l(28128),tm=l(23615),tu=l.n(tm),tp=l(96226),th=l(34607),tv=l(71449),tE=l(83705),tg=l(22407),tf=l(98371),tb=l(29598);let{PANELS:t_}=te.UPDATE_TYPES;class ty extends c.Component{renderSocket(){let{currentUser:e,isOwnProfile:t}=this.props;return t&&e?c.createElement(ec.Z,{eventsWithCallbacks:[{subscriptionKey:`imageUpload:${e.id}`,callback:this.imageUploadEventHandler}]}):null}renderRestore(e){return c.createElement("div",{className:"profile-panel-restore-overlay"},c.createElement(eU.ZP,{className:"restore-button",onClick:this.restorePanel(e)},(0,C.dW)("button.restore")))}renderPreModerationNote(){return c.createElement(tp.R,{messageId:"preModeration.imageNotReviewed",additionalText:"preModeration.notReviewedAdditional",variant:"tall"})}renderPanelContent(e,t){let{isEditMode:l}=this.state,{isOwnProfile:i,modelPanelsToBeRemoved:a,pendingImages:s,isTouchDevice:r,model:n}=this.props,o=!s.includes(e.id),d=a.includes(e.id),m=t&&!r?{"data-panel-id":e.id,draggable:l,onDragStart:this.panelDragStartHandler,onDragEnd:this.panelDragEndHandler,onDragOver:this.panelDragOverHandler}:{},u=(0,I.AK)("profile-panel",{dropzone:!t,"edit-mode":t&&l}),{body:p,details:h,imageLink:v,imageUrl:E,title:g,isUnderPreModeration:f}=e;return c.createElement("div",{className:u,...m},c.createElement("div",{className:"profile-panel-bg"},t&&l&&this.renderControls(e),t&&l&&d&&this.renderRestore(e),g&&c.createElement("div",{className:"profile-panel-title"},g),E&&c.createElement(c.Fragment,null,o&&i&&f&&this.renderPreModerationNote(),c.createElement(tv.Z,{model:n,id:e.id,src:o?E:"","data-panel-id":e.id,externalLink:v?{href:v,isTrusted:h.isTrusted,onUntrustedLinkClick:t=>this.panelImageLinkHandler(t,e)}:void 0,className:(0,I.AK)("profile-panel-image"),style:{pointerEvents:l?"none":"auto"}},i&&!o&&c.createElement(T.Z,null))),p&&c.createElement("div",{className:"profile-panel-body"},p)))}renderDropZone(e,t){let{dragOverPanelId:l,dragOverDirection:i}=this.state,a=l===e.id&&this.draggingPanelId!==e.id,s=this.getPanelById(this.draggingPanelId),r=s&&a&&(-1===i&&"top"===t||1===i&&"bottom"===t);return c.createElement("div",{className:`profile-panel-dropzone ${t}`},r&&this.renderPanelContent(s,!1))}renderPanel(e,t){let l=(0,I.AK)("profile-panel-wrapper",{dragging:this.draggingPanelId===e.id},{alone:this.getIsPanelAloneInColumn(e,t)});return c.createElement("div",{className:l,key:e.id,onDragEnter:this.createPanelWrapperDragEnterHandler(e.id,t)},this.renderDropZone(e,"top"),this.renderPanelContent(e,!0),this.renderDropZone(e,"bottom"))}renderAddZone(e){let t=this.getPanelById(this.draggingPanelId);return t?c.createElement("div",{className:"profile-panel-wrapper new",key:"panel-add-zone",onDragEnter:()=>{this.setState({dragOverPanelId:-1,dragOverColumn:e,dragOverDirection:1})}},c.createElement("div",{className:"profile-panel-dropzone top"},this.state.dragOverColumn===e&&this.renderPanelContent(t,!1))):null}renderAddPanel(){return c.createElement("div",{className:"profile-panel-add"},c.createElement("button",{className:"profile-panel-add-btn",onClick:this.addProfilePanel,type:"button"},c.createElement(W.Z,{img:"plus-unframed",size:28}),c.createElement("span",null,(0,C.dW)("profile.profilePanels.addPanel"))))}renderPanelsColumn(e){let{panelsGrouped:t}=this.props;return c.createElement("div",{className:"profile-column"},!t[e]&&this.renderAddZone(e),(0,tE.U)(t[e],t=>this.renderPanel(t,e)))}render(){let{className:e,isOwnProfile:t,isUpdating:l,panelsCount:i}=this.props,{isEditMode:a}=this.state;return c.createElement(M.e,{id:"profile-panels",scrollToOptions:{offset:-150,duration:250},className:(0,I.AK)("profile-panels",e,{"edit-mode":a,pending:l})},t&&c.createElement("div",{className:"profile-panels-header"},c.createElement("h2",null,(0,C.dW)("profile.profilePanels.header")),this.renderInfoTooltip(),!!i&&(l?c.createElement(T.Z,{size:21}):c.createElement(th.Z,{isActive:a,onClick:this.editButtonClickHandler}))),t&&this.renderAddPanel(),c.createElement("div",{className:"profile-panels-grid"},this.renderPanelsColumn(0),this.renderPanelsColumn(1)),this.renderSocket())}constructor(...e){super(...e),(0,d._)(this,"draggingPanelId",null),(0,d._)(this,"state",{dragOverColumn:null,dragOverPanelId:null,dragOverDirection:0,isEditMode:!1}),(0,d._)(this,"getPanelById",e=>(0,tc.Z)(this.props.panelsGrouped[0],t=>t.id===e)||(0,tc.Z)(this.props.panelsGrouped[1],t=>t.id===e)),(0,d._)(this,"getIsPanelAloneInColumn",(e,t)=>this.props.panelsGrouped[t].length<=1),(0,d._)(this,"imageUploadEventHandler",({name:e,thumbName:t})=>{e===A.Wh.NORMAL&&this.props.modelPanelImageRemovePending(t)}),(0,d._)(this,"editButtonClickHandler",()=>{this.state.isEditMode?(this.props.applyPanelsDeletion(),this.setState({isEditMode:!1})):this.setState({isEditMode:!0})}),(0,d._)(this,"addProfilePanel",()=>{this.props.showModal(A.MODAL_TYPES.PROFILE_PANEL,{isNew:!0})}),(0,d._)(this,"renderInfoTooltip",(e="profile-panels-help-tooltip")=>c.createElement(c.Fragment,null,c.createElement("div",{className:"tooltip-info",id:e},c.createElement(W.Z,{img:"question"})),c.createElement(e9.Z,{placement:"right",targetId:e,isMobileRelative:!1},c.createElement(R.Z,{messageId:"profile.profilePanels.headerTooltip",elements:{br:c.createElement("br",null)}})))),(0,d._)(this,"renderControlIcon",(e,t,l,{onMouseDown:i})=>c.createElement("div",{className:(0,I.AK)("control-icon-wrapper",{"control-icon-wrapper-drag-n-drop":"drag-n-drop"===t}),onClick:l,onMouseDown:i,"data-panel-id":e.id},c.createElement(W.Z,{img:t,size:14}))),(0,d._)(this,"settingsClickHandler",e=>()=>{this.props.showModal(A.MODAL_TYPES.PROFILE_PANEL,{panel:e})}),(0,d._)(this,"setToRemove",e=>()=>{this.props.setProfilePanelToRemove(e.id)}),(0,d._)(this,"restorePanel",e=>()=>{this.props.unsetProfilePanelToRemove(e.id)}),(0,d._)(this,"renderControls",e=>c.createElement("div",{className:"panel-controls"},this.renderControlIcon(e,"settings",this.settingsClickHandler(e),{}),this.renderControlIcon(e,"close-5",this.setToRemove(e),{}))),(0,d._)(this,"getAspectRatio",({width:e,height:t})=>t/e*100),(0,d._)(this,"panelDragOverHandler",e=>{let t=e.currentTarget.getBoundingClientRect(),l=t.top+t.height/2,i=e.clientY>=l?1:-1;this.setState({dragOverDirection:i})}),(0,d._)(this,"panelDragStartHandler",e=>{this.draggingPanelId=Number(e.target.dataset.panelId),e.dataTransfer.setData("text/plain","anything")}),(0,d._)(this,"panelDragEndHandler",()=>{this.props.reorderModelPanels(this.draggingPanelId,this.state.dragOverPanelId,this.state.dragOverColumn,this.state.dragOverDirection),this.draggingPanelId=null,this.setState({dragOverPanelId:null,dragOverDirection:0})}),(0,d._)(this,"panelImageLinkHandler",(e,t)=>{t&&this.props.showModal(A.MODAL_TYPES.EXTERNAL_URL_WARNING,{url:t.imageLink})}),(0,d._)(this,"createPanelWrapperDragEnterHandler",(e,t)=>l=>{if(!this.state.isEditMode||A.BROWSER_CAPABILITIES.touch||!l.target){l.preventDefault();return}this.setState({dragOverPanelId:e,dragOverColumn:t})})}}let tC={applyPanelsDeletion:ex.OH,modelPanelImageRemovePending:ex.zP,reorderModelPanels:ex.zr,setProfilePanelToRemove:ex.pc,showModal:en.K4,unsetProfilePanelToRemove:ex.s2,updatePrepare:ex.Fh,updateProfile:ex.ck};ty.propTypes={className:tu().string,currentUser:tu().object,isOwnProfile:tu().bool,model:tu().object.isRequired,isSucceeded:tu().bool,isUpdating:tu().bool,modelPanelsToBeRemoved:tu().arrayOf(tu().number).isRequired,panelsCount:tu().number,panelsGrouped:tu().object.isRequired,pendingImages:tu().arrayOf(tu().number).isRequired,updateError:tu().instanceOf(Error),...(0,tg.d)(tC)};let tN=(0,m.$j)((e,t)=>{let{auth:{currentUser:l}}=e,{isOwnProfile:i}=t;return{currentUser:l,isSucceeded:(0,eB.rg)(e,t_),isUpdating:(0,eB.fc)(e,t_),modelPanelsToBeRemoved:(0,tb.Af)(e),panelsGrouped:i?(0,tb.cI)(e):(0,tb.bR)(e),panelsCount:(0,tb.gM)(e),pendingImages:(0,tb.O9)(e),updateError:(0,eB.by)(e,t_),isTouchDevice:(0,tf.HZ)(e)}},tC)(ty);var tP=l(30713),tk=l(40068);let{DESCRIPTION:tS}=te.UPDATE_TYPES;class tM extends c.Component{componentDidMount(){!this.props.isUpdating&&this.textareaRef&&this.updateAutoSize()}componentDidUpdate(){!this.props.isUpdating&&this.textareaRef&&this.updateAutoSize()}renderEditMode(e,t){var l;let{maxLength:i,user:a}=this.props;return c.createElement("div",{className:"textarea-container"},c.createElement("div",{className:"textarea-wrapper"},c.createElement(tP.gN,{initialValue:null===(l=a.profile)||void 0===l?void 0:l.description,name:"description",render:({input:l})=>c.createElement("textarea",{...l,autoFocus:!0,disabled:e,maxLength:i,onChange:(...e)=>{this.updateAutoSize(),l.onChange(...e)},onKeyDown:e=>this.submitOnCtrlEnter(e,t),ref:e=>{this.textareaRef=e}})})),c.createElement("div",{className:"auto-size",ref:e=>{this.autoSizeRef=e}}))}render(){let{className:e,isEditable:t,isUpdating:l,user:i}=this.props,{isEditMode:a}=this.state;return c.createElement(tP.l0,{onSubmit:this.handleSubmit},({handleSubmit:s,submitting:r,form:n})=>{var o;return c.createElement("form",{onSubmit:s},c.createElement("div",{className:(0,I.AK)("user-description",e,{"edit-mode":a,pending:l||r})},t&&c.createElement("div",{className:"edit-button-container"},a?c.createElement(eU.ZP,{className:"edit-button",type:"submit",style:"apply",size:"extra-small",disabled:l||r,loading:l||r},(0,C.dW)("button.save")):c.createElement("a",{className:"edit-button",onClick:this.handleEditClick},c.createElement(W.Z,{img:"edit"}))),c.createElement("div",{className:"user-description-header"},c.createElement("h2",null,(0,C.dW)("profile.description.title"))),a?this.renderEditMode(l||r,n.submit):c.createElement("p",{className:"description-text"},null===(o=i.profile)||void 0===o?void 0:o.description)))})}constructor(e){super(e),(0,d._)(this,"textareaRef",null),(0,d._)(this,"autoSizeRef",null),(0,d._)(this,"submitOnCtrlEnter",(e,t)=>{"Enter"===e.code&&e.ctrlKey&&(e.preventDefault(),t())}),(0,d._)(this,"updateAutoSize",()=>{let{autoSizeRef:e,textareaRef:t}=this;t&&e&&(t.value.length?/\n$/.test(t.value)?e.textContent=`${t.value}.`:e.textContent=t.value.replace(/\s$/,"."):e.textContent=".")}),(0,d._)(this,"handleEditClick",()=>{this.props.updatePrepare(tS),this.setState({isEditMode:!0})}),(0,d._)(this,"handleSubmit",async({description:e})=>{var t;await this.props.updateProfile({description:null!==(t=null==e?void 0:e.trim())&&void 0!==t?t:""},tS),this.props.isSucceeded&&this.setState({isEditMode:!1})}),this.state={isEditMode:!1}}}let tT={updatePrepare:ex.Fh,updateProfile:ex.ck},tA=(0,m.$j)((e,t)=>{let{auth:l}=e,{user:i}=t,{currentUser:a}=l,s=!!a&&a.id===i.id;return{isEditable:s,isUpdating:(0,eB.fc)(e,tS),isSucceeded:(0,eB.rg)(e,tS),maxLength:(0,tk.U0)(e),updateError:(0,eB.by)(e,tS)}},tT)(tM);var tI=l(48848),tw=l(1166),tZ=l(48583),tR=l(47838),tW=l(78983),tD=l(87489);let tO=({user:e})=>{var t,l;if(!e.profile)return null;let i=new Date(e.profile.birthDate),a=new Date,s=`birth-date-${e.id}`,r=`birth-date-today-${e.id}`,n=a.getDate()===i.getDate()&&a.getMonth()===i.getMonth();return c.createElement("div",{className:"birth-date-block"},c.createElement("div",{id:s},(null===(t=e.profile)||void 0===t?void 0:t.age)&&c.createElement(R.Z,{choiceParameter:"age",messageId:"profile.yearsOld",parameters:{age:null===(l=e.profile)||void 0===l?void 0:l.age}}),c.createElement(e9.Z,{isMobileRelative:!1,placement:"top",targetId:s},(0,tW.mr)(i,tW.TIME_FORMATS.HUMAN_DATE))),n&&c.createElement("div",{id:r},c.createElement(W.Z,{img:"birthday-cake",size:12}),c.createElement(e9.Z,{isMobileRelative:!1,placement:"top",targetId:r},(0,C.dW)("profile.todayIsBirthDay",{modelName:e.username}))))};var tL=l(9843);let tU=({countryCode:e,countryLabel:t,isOwnProfile:l,isModel:i})=>{let a=(0,L.C)(P.ts);return c.createElement("div",{className:"country-wrapper"},c.createElement("span",{className:"country"},c.createElement(tL.Z,{country:e}),t),i&&l&&a&&c.createElement("span",{className:"country-tip"},(0,C.dW)(`profile.modelOwnProfileCountryTip.${a.country?"visible":"hidden"}`)," ",c.createElement(R.Z,{messageId:"profile.modelOwnProfileCountryTip.changeVisibility",elements:{link:c.createElement(u.rU,{to:"/settings",className:"privacy-link"})}})))},t$=({userRanking:e,isOwnProfile:t})=>{let l=t?null==e?void 0:e.realLeague:null==e?void 0:e.league,i=t?null==e?void 0:e.realLevel:null==e?void 0:e.level,a=(0,c.useMemo)(()=>(0,C.dW)("userLevels.statusLevel",{league:(0,C.dW)(`userLevels.leagues.${l}`),level:null!=i?i:"?"}),[l,i]);return c.createElement("div",{className:(0,I.AK)("user-status")},c.createElement("span",{className:`user-status-name color-league-${l}`},`${a[0].toUpperCase()}${a.slice(1).toLowerCase()}`))};var tx=l(22540);let tG=({user:e,isOwnProfile:t,isStatusLevelVisible:l})=>{let i=(0,eC.T)(),a=(0,L.C)(P.ts),{isModel:s,isStudio:r,isUltimate:n}=e,o=t&&!(s||r)&&!(null==a?void 0:a.isUltimate),d=t&&(null==a?void 0:a.isUltimate)&&!(null==a?void 0:a.isUltimatePermanent)&&!(null==a?void 0:a.isRebillEnabled),m=o||d&&(null==a?void 0:a.mayRenewRebill),u=(0,c.useCallback)(()=>{i((0,ek.d2)(A.FO.PROFILE_RENEW))},[i]);return c.createElement("div",{className:"user-status"},c.createElement("span",{className:(0,I.AK)("user-status-name",{"color-league-legend":n})},(0,C.dW)(n?"userLevels.ultimate":"userLevels.ultimateNone")),l&&c.createElement("div",{className:"user-status-info"},c.createElement("span",{className:"status-help",id:"user_status"},"?",c.createElement(tx.Mm,{targetId:"user_status",indentation:8,placement:"bottom"}))),d&&a&&c.createElement(R.Z,{className:"user-status-until",elements:{strong:c.createElement("strong",null)},messageId:"profile.membershipTill",parameters:{date:(0,tW.mr)(a.subscriptionExpiresAt,tW.TIME_FORMATS.DAY_AND_LONG_MONTH)}}),m&&c.createElement(eU.ZP,{className:"user-status-ultimate-button",size:"small",style:"ultimate",type:o?"link":"button",to:o?"/subscriptions":void 0,onClick:o?void 0:u},c.createElement("span",{className:"user-level-ultimate-badge user-level-ultimate-badge-light user-level-ultimate-badge-size-small"}),(0,C.dW)(o?"profile.upgrade":"profile.renew")))},tF=(e,t)=>{if(!t)return`preferenceValues.${e}`;let l=t.toLowerCase(),i=-1!==l.indexOf("female")||-1!==l.indexOf("trann");return i?`preferenceValues.${e}ForFemale`:`preferenceValues.${e}`},tB=e=>e===H.oY8?"":`/${e}`,tK=(e,t,l,i)=>{var a,s,r,n,o,d;let{isSupport:m,isStudio:u,isAdmin:p}=e,h=(0,tD.PN)(),v=(0,L.C)(ev.ox$),E=(0,L.C)(ev.D4h),g=t&&!m&&!u&&!p,f=(null==e?void 0:null===(s=e.profile)||void 0===s?void 0:null===(a=s.interests)||void 0===a?void 0:a.length)&&!t,b=(0,c.useMemo)(()=>g||f,[g,f]),_=(0,c.useMemo)(()=>{var t;return(null===(t=e.userRanking)||void 0===t?void 0:t.level)&&!(0,ee.U)(e)},[e]),y=!!(e.isStudio&&t),N=!!(e.isModel&&t),[P,k]=(0,c.useMemo)(()=>{var t,l,i,a,s,r,n;let o=N?null==h?void 0:h.profileCountry:null===(t=e.profile)||void 0===t?void 0:t.country,d=o?(0,tc.Z)(v,{code:o}):void 0;if(d){let t=(0,C.dW)(`country.${d.code}`),o=t===d.code?d.title:t,c=(null===(l=e.profile)||void 0===l?void 0:l.region)&&(null===(i=e.profile)||void 0===i?void 0:i.country)&&E[null===(a=e.profile)||void 0===a?void 0:a.country]?(0,tc.Z)(E[null===(s=e.profile)||void 0===s?void 0:s.country],{code:null===(r=e.profile)||void 0===r?void 0:r.region}):null,m=N?o:(0,tw.Z)([o,c?c.title:null,null===(n=e.profile)||void 0===n?void 0:n.city]).join(", ");return[d.code,m]}return[null,null]},[N,v,E,null===(r=e.profile)||void 0===r?void 0:r.city,null===(n=e.profile)||void 0===n?void 0:n.region,null==h?void 0:h.profileCountry,null===(o=e.profile)||void 0===o?void 0:o.country]),S=(0,L.C)(ev.Vbs),M=(0,c.useMemo)(()=>{var t,l;return(null===(t=e.profile)||void 0===t?void 0:t.languages)&&(null===(l=e.profile)||void 0===l?void 0:l.languages.length)!==0?S.filter(({code:t})=>{var l;return(0,tZ.Z)(null===(l=e.profile)||void 0===l?void 0:l.languages,t)}).map(({code:e})=>(0,C.dW)(`language.${e}`)).join(", "):null},[S,null===(d=e.profile)||void 0===d?void 0:d.languages]);return(0,c.useMemo)(()=>{var a;let s=(t,l)=>{var i,a;return(0,tR.Z)(l)?l.length?l.map(e=>(0,C.dW)(`preferenceValues.${e}`)).join(", "):null:"bodyType"===t&&(null===(i=e.profile)||void 0===i?void 0:i.gender)?(0,C.dW)(tF(l,null===(a=e.profile)||void 0===a?void 0:a.gender)):(0,C.dW)(`preferenceValues.${l}`)},r=e=>(null==h?void 0:h[e])?{detailKey:e,value:h[e]}:null,n=(t,l=!0)=>{var i;let a=null===(i=e.profile)||void 0===i?void 0:i[t];return(0,e1.Z)(a)||!a?null:{detailKey:t,value:l?s(t,a):a}},o=y?[r("studioWebsite"),r("studioName"),r("studioAdditionalContact")]:[],d=[n("name",!1),P&&k?{detailKey:"from",value:c.createElement(tU,{countryCode:P,countryLabel:k,isOwnProfile:t,isModel:e.isModel})}:null,_?{detailKey:"level",value:c.createElement(t$,{userRanking:e.userRanking,isOwnProfile:t})}:null,_?{detailKey:"membership",value:c.createElement(tG,{user:e,isOwnProfile:t,isStatusLevelVisible:l})}:null,M?{detailKey:"languages",value:M}:null,e.profile&&(0,tW.qb)(null===(a=e.profile)||void 0===a?void 0:a.birthDate)?{detailKey:"age",value:c.createElement(tO,{user:e})}:null,n("interestedIn"),n("bodyType"),n("specifics"),n("ethnicity"),n("hairColor"),n("eyeColor"),n("subculture"),b?{detailKey:"interests",value:i()}:null,...o];return d.filter(e=>null!==e)},[P,k,t,l,i,b,_,e,M,y,h])},tH=({detailKey:e,children:t})=>c.createElement("div",{className:`field-row field-row--${e}`,key:e},c.createElement("div",{className:"field-label"},(0,C.dW)(`profile.info.detailsRead.${e}`),":"),c.createElement("div",{className:"field-value"},t));var tV=l(1948),tz=l(20717),tj=l(82512);let tq=({user:e,isOwnProfile:t})=>{let l=(0,tD.PN)(),i=(0,L.C)(t=>(0,tj.mN)(t,e.id)),a=(0,c.useMemo)(()=>{if(!(null==l?void 0:l.isApprovedModel))return{};let e=Object.keys(i).reduce((e,t)=>{if(i[t]){var l;e[t]=null===(l=i[t])||void 0===l?void 0:l.link}return e},{}),t={...e,amazonWishlist:null==l?void 0:l.amazonWishlist};return Object.keys(t).reduce((e,l)=>(t[l]&&(e[l]=(0,tz.jh)(t[l]),"fancentro"===l&&(e[l]=(0,tz.uG)(e[l]))),e),{})},[i,null==l?void 0:l.amazonWishlist,null==l?void 0:l.isApprovedModel]),s=Object.keys(a);if(!s.length){let e=!!((null==l?void 0:l.isApprovedModel)&&t);return e?c.createElement(tH,{detailKey:"socialLinks"},c.createElement(R.Z,{className:"user-social-network-links__empty-hint",messageId:"profile.info.detailsRead.socialLinksHint",elements:{icon:c.createElement(W.Z,{img:"edit"})}})):null}let r=(0,tE.U)(s,(e,t)=>[c.createElement(tV.Z,{key:e,className:"field-link",href:a[e],target:"_blank"},(0,C.dW)(`profile.info.detailsRead.${e}`)),t!==s.length-1?", ":""]);return c.createElement(tH,{detailKey:"socialLinks"},r)},tY=({isOwnProfile:e,isStatusLevelVisible:t,user:l,renderInterests:i})=>{let a=tK(l,e,t,i);return 0===a.length?null:c.createElement("div",{className:"details"},a.map(({detailKey:e,value:t})=>c.createElement(tH,{key:e,detailKey:e},t)),c.createElement(tq,{isOwnProfile:e,user:l}))};var tJ=l(75845),tX=l(52931),tQ=l(58932);let t0=({interests:e,isModel:t})=>{let l=(0,c.useRef)(null),i=(0,L.C)(tJ.x7),a=tB(i),s=(0,c.useMemo)(()=>(0,tX.D)(e||[]),[e]);return c.createElement("div",{className:(0,I.AK)("user-info-editable__interests"),ref:l},null==s?void 0:s.map(e=>c.createElement(tQ.Z,{key:e,interest:e,compact:!0,href:t?void 0:`/search${a}/interests/${e}`})))},t1=({isBanned:e,isGeoBanned:t,isProfileAvailable:l,user:i})=>{let a;let s=(0,L.C)(ee.ly),r=(0,L.C)(({auth:e})=>e.currentUser),n=(0,L.C)(({auth:e})=>e.isLoggedIn&&!e.isLoggingOut),o=(0,L.C)(Q.ok),d=!i.isDeleted&&l&&!e&&!t&&!i.isBlocked;return e?a=(0,C.dW)(i.isModel?"privateMessages.cannotSend.youAreBannedByModel":"privateMessages.cannotSend.youAreBannedByUser"):t&&(a=(0,C.dW)("camChat.yourCountryIsBlockedByModel")),c.createElement("div",{className:"user-info"},c.createElement("div",{className:"info"},o&&i.isModel&&c.createElement("h2",null,(0,C.dW)("profile.welcomeToWebcamRoom",{username:i.username})),!l&&c.createElement("p",null,(0,C.dW)("profile.availableOnlyTo.nobody")),!!a&&c.createElement("p",null,a),d&&c.createElement(tY,{isOwnProfile:!1,isStatusLevelVisible:!n||!s,user:i,renderInterests:()=>{var e;let t=null===(e=i.profile)||void 0===e?void 0:e.interests;return(null==t?void 0:t.length)?c.createElement(t0,{interests:t,isModel:!!(null==r?void 0:r.isModel)}):null}})))};var t2=l(41230),t8=l(97060),t5=l(60963);let t3=(0,h.P1)([t5.rE],e=>({...te.d2,myClub:e})),t4=()=>{let e=(0,eC.T)(),t=(0,L.C)(t3);return l=>{let i=Object.keys(t).reduce((e,i)=>{let a=RegExp(t[i],"gi"),s=l[i]&&-1===l[i].search(a);return s&&(e[i]=[`errors.validation.${i}`]),e},{});if(Object.keys(i).length){e((0,ex.dz)(new t8.p8("Validation error",i)));return}e((0,ex.ck)({...l},te.UPDATE_TYPES.INFO,void 0,!1,!0))}};var t9=l(57174),t6=l(21313),t7=l(44054),le=l(81437),lt=l(91456);let ll=({isOpen:e,onClose:t,currentShowProfileTo:l,onShowProfileToSelect:i,onProfileVisibilitySave:a})=>{let s=(0,eC.T)(),r=(0,L.C)(ee.kr),n=(0,L.C)(lt.e7);return((0,c.useEffect)(()=>{!r&&e&&i("registered")},[e]),n)?c.createElement(t6.Z,{open:e,closeIconPosition:"rightHeader",contentClassName:"profile-visibility-modal",onClose:t},c.createElement("div",{className:"profile-visibility-modal__content"},c.createElement("h3",{className:"profile-visibility-modal__title"},(0,C.dW)("profile.profileVisibility.title")),c.createElement("div",{className:"profile-visibility-modal__description"},c.createElement(R.Z,{messageId:"profile.profileVisibility.description",elements:{link:c.createElement(u.rU,{className:"profile-visibility-modal__link",to:"/settings"})}})),c.createElement(t7.Z,{className:"profile-visibility-modal__select",value:l,onSelect:e=>{i(e.value)},options:n.map(e=>{let t=`settings.privacy.options.showProfileTo.${e}`,l=(0,C.dW)(t);return{value:e,label:l===t?e:l}})})),c.createElement("div",{className:"profile-visibility-modal__footer"},c.createElement(t9.ZP,{className:"profile-visibility-modal__button",onClick:t},(0,C.dW)("button.cancel")),c.createElement(t9.ZP,{onClick:()=>{a(),s((0,le.nT)(!0)),t()},className:"profile-visibility-modal__button",style:"apply"},(0,C.dW)("saveChanges")))):null};var li=l(32284);let la="male",ls="female",lr={male:la,female:ls,tranny:ls,maleFemale:ls,males:la,females:ls,trannies:ls,maleTranny:ls,femaleTranny:ls},ln=e=>{if(!e)return ls;let t=lr[e];return t||ls},lo=[ls,la],ld=({gender:e})=>{let t=e?ln(e):null;return c.createElement("div",{className:"body-type-image-preloader"},(t?[t]:lo).map(e=>c.createElement("span",{key:e,className:e})))};var lc=l(40686);let lm=()=>(0,L.C)(lc.w7);var lu=l(77397),lp=l(76482);let lh=({bodyType:e,gender:t})=>{let l=ln(t),i=(0,tz.jz)(`users/components/ui/UserInfo/BodyTypeTooltip/images/${l}/${e}.jpg`),a=`select.tooltips.bodyType.${l}.${e}`,s=(0,C.dW)(`${a}.title`),r=(0,C.dW)(`${a}.text`);return c.createElement("div",{className:"body-type-tooltip"},c.createElement("img",{className:"body-type-image",src:i,alt:s}),c.createElement("h3",{className:"tooltip-title"},s),c.createElement("p",{className:"tooltip-text"},r))},lv=(0,h.P1)(ev.ox$,e=>e.map(({code:e})=>({label:(0,C.dW)(`country.${e}`),value:e}))),lE=(0,h.P1)([ev.D4h,(e,t)=>t],(e,t)=>(t&&e[t]?e[t]:[]).map(({code:e,title:t})=>({label:t,value:e}))),lg=(0,h.P1)([lt.Ko,(e,t)=>t],(e,t)=>{var l,i;return(null!==(s=t?null==e?void 0:null===(l=e.data)||void 0===l?void 0:l.userGenders:null==e?void 0:null===(i=e.data)||void 0===i?void 0:i.genders)&&void 0!==s?s:[]).map(e=>({label:(0,C.dW)(`gender.${e}`),value:e}))}),lf=(0,h.P1)([ev.Vbs,lt.Ko],(e,t)=>e.filter(({code:e})=>{var l;return(0,tZ.Z)(null!==(r=null==t?void 0:null===(l=t.data)||void 0===l?void 0:l.languages)&&void 0!==r?r:[],e)}).map(({code:e,native:t})=>({label:`${(0,C.dW)(`language.${e}`)} (${t})`,value:e}))),lb=(0,h.P1)([lt.Ko,(e,t)=>t],(e,t)=>{var l;return(null!==(n=null==e?void 0:null===(l=e.data)||void 0===l?void 0:l.bodyTypes)&&void 0!==n?n:[]).map(e=>({label:(0,C.dW)(tF(e,t)),value:e}))}),l_=(0,h.P1)([t5.AB],e=>({...te.ES,myClub:`${e}/stripchat`,faphouse:(0,C.dW)("profile.info.detailsRead.faphousePlaceholder")})),ly=(0,lu.Z)((e,t,l)=>e.length>0?e.map(e=>({value:e.id,label:e.name})):(0,tw.Z)([t&&l?{value:l,label:t}:void 0])),lC=e=>{let t=(0,eC.T)(),l=(0,tD.PN)(),i=(0,L.C)(ee.A4),a=(0,L.C)(ee.$O),s=(0,L.C)(lc.hh),r=(0,L.C)(l_),n=(0,L.C)(ev.D4h),o=(0,L.C)(ev.tN8),d=(0,c.useMemo)(()=>(e.country&&n[e.country]?n[e.country]:[]).length>0,[n,e.country]),m=(0,c.useMemo)(()=>(0,lp.Z)(l=>{if(!l){t((0,ex.Rw)());return}t((0,ex.zT)({start:l,country:e.country}))},500),[t,e.country]);return(0,c.useMemo)(()=>{let t=i?null:{name:"country",type:"select",selectProps:{isSearchable:!0,optionsSelector:lv,optionRenderer:e=>c.createElement("span",null,c.createElement(tL.Z,{country:e.value})," ",e.label)}},n=d&&!i&&e.country?{name:"region",type:"select",selectProps:{isSearchable:!0,optionsSelector:t=>lE(t,e.country)}}:null,u=!i&&e.country?{name:"cityId",type:"select",returnOptionAsValue:!0,showWithoutOptions:!0,selectProps:{isClearable:!0,isSearchable:!0,onInputChange:m,optionsSelector:t=>ly(t.profile.cities,e.city,e.cityId)}}:null,p=(null==l?void 0:l.isApprovedModel)?s.map(e=>({name:e,type:"text",inputProps:{placeholder:r[e]}})):[],h=(null==l?void 0:l.isApprovedModel)?{name:"amazonWishlist",type:"text",inputProps:{placeholder:"https://amzn.com/w/stripchatWishlist"}}:null,v=a?[{name:"studioWebsite",type:"text",inputProps:{}},{name:"studioName",type:"text",inputProps:{}},{name:"studioAdditionalContact",type:"text",inputProps:{}}]:[],E=[{name:"name",type:"text",inputProps:{maxLength:40}},{name:"gender",type:"select",selectProps:{isDisabled:!(null==l?void 0:l.isGenderEditable),isClearable:!0,optionsSelector:e=>lg(e,null==l?void 0:l.isGenderEditable)}},{name:"interestedIn",type:"select",selectProps:{isClearable:!0,optionsSelector:e=>(0,lt.l1)(e,"interestedIn")}},{name:"birthDate",className:"user-info-editable__birth-input",type:"date"},t,n,u,{name:"languages",type:"select",className:"user-info-editable__language-select",helpTextParams:{param1:o.toString()},selectProps:{isMultiple:!0,optionsSelector:lf}},{name:"bodyType",type:"select",selectProps:{isClearable:!0,id:"body-type",optionsSelector:t=>lb(t,e.gender),renderTooltipContent:t=>c.createElement(lh,{bodyType:t,gender:e.gender})}},{name:"specifics",type:"select",selectProps:{isClearable:!0,isMultiple:!0,optionsSelector:e=>(0,lt.l1)(e,"specificsByGender")}},{name:"ethnicity",type:"select",selectProps:{isClearable:!0,optionsSelector:e=>(0,lt.l1)(e,"ethnicities")}},{name:"hairColor",type:"select",selectProps:{isClearable:!0,optionsSelector:e=>(0,lt.l1)(e,"hairColors")}},{name:"eyeColor",type:"select",selectProps:{isClearable:!0,optionsSelector:e=>(0,lt.l1)(e,"eyeColors")}},{name:"subculture",type:"select",selectProps:{isClearable:!0,optionsSelector:e=>(0,lt.l1)(e,"subcultures")}},...p,h,{isModel:i,user:e,name:"interests",type:"interests",autoSave:!1},...v];return E.filter(e=>null!==e)},[i,a,s,d,e,null==l?void 0:l.isApprovedModel,null==l?void 0:l.isGenderEditable,m,o,r])},lN=({errors:e,firstError:t,labelName:l,className:i,shouldDisplayHelpText:a=!1,children:s,helpTextParams:r})=>{let n=(0,c.useRef)(),o=(0,c.useRef)(null),d=`profile.info.help.${l}`,m=(0,C.dW)(d,r),u=m!==d;return(0,c.useEffect)(()=>{n.current&&t&&n.current.scrollIntoView({behavior:"smooth",block:"center"})},[t]),c.createElement("div",{className:(0,I.AK)("field-row",i),key:l},c.createElement("div",{className:"field-label"},`${(0,C.dW)(`profile.info.detailsRead.${l}`)}:`),c.createElement("div",{className:"field-value",id:`user_info_editable_${l}`,ref:o},s,a&&u&&c.createElement("div",{className:"field-help"},m)),e.length>0&&c.createElement("div",{className:"field-tooltip"},c.createElement(e3.Z,{error:{message:e.join(". ")},tooltipRefExtractor:(e,t)=>{t&&(n.current=t.tooltipRef.parentElement)},targetRef:o})))},lP=({field:e,value:t,onChange:l,...i})=>c.createElement(lN,{shouldDisplayHelpText:!0,...i},c.createElement(e4.Z,{value:t,onChange:t=>{l(e.name,t.target.value)},type:"date"}));var lk=l(96552),lS=l(68838);let lM=({field:e,value:t,onChange:l})=>{let i=(0,eC.T)(),a=(0,L.C)(tJ.x7),{autoSave:s,isModel:r,name:n}=e,o=(0,c.useMemo)(()=>(0,tX.D)(t||[]),[t]),d=tB(a),m=e=>{l(n,e),s&&i((0,ex.ck)({interests:e},te.UPDATE_TYPES.INTERESTS))},u=(0,c.useMemo)(()=>s?void 0:e=>{l(n,null==o?void 0:o.filter(t=>t!==e))},[n,s,l,o]);return c.createElement(c.Fragment,null,c.createElement("button",{type:"button",className:(0,I.AK)("user-info-editable__choose-interests",{"user-info-editable__choose-interests--grey":null==o?void 0:o.length}),onClick:()=>lk.P4.show(lS.O,{interests:o||[],isModel:r,onSave:m})},(0,C.dW)("interests.choose")),!!(null==o?void 0:o.length)&&c.createElement(c.Fragment,null,c.createElement("div",{className:"user-info-editable__interests-divider"}),null==o?void 0:o.map(e=>c.createElement(tQ.Z,{key:e,disabled:!1,interest:e,active:!1,compact:!0,href:s&&!r?`/search${d}/interests/${e}`:void 0,onRemoveClick:u}))))},lT=({field:e,value:t,onChange:l,...i})=>c.createElement(lN,{shouldDisplayHelpText:!0,...i},c.createElement(lM,{field:e,value:t,onChange:l}));var lA=l(46118),lI=l(62540);let lw=({field:e,value:t,onChange:l,...i})=>{let{optionsSelector:a,...s}=e.selectProps,r=(0,L.C)(a),n=(0,c.useMemo)(()=>e.selectProps.isMultiple?(0,lA.Z)((0,lI.Z)(t),r.map(e=>e.value)):t,[e.selectProps.isMultiple,t,r]);return e.showWithoutOptions||(null==r?void 0:r.length)?c.createElement(lN,{shouldDisplayHelpText:!0,...i},c.createElement(t7.P,{...s,options:r,value:n,onSelect:t=>{let i;i=e.returnOptionAsValue?t:e.selectProps.isMultiple?t?(0,tE.U)(t,e=>null==e?void 0:e.value):[]:t?t.value:null,l(e.name,i)}})):(y.ZP.warn("UserInfoEditable.SelectField has empty options provided",e),null)};try{i=RegExp("(\\p{Emoji_Presentation}|\\p{Extended_Pictographic})","gu")}catch{}let lZ=e=>{if(!i)return e;let t=!window.LEGACY&&"Segmenter"in Intl?[...new Intl.Segmenter().segment(e)].map(e=>e.segment):e.split("");return t.filter(e=>{var t;return!(null===(t=i)||void 0===t?void 0:t.test(e))}).join("")},lR=({field:e,value:t,onChange:l,...i})=>c.createElement(lN,{shouldDisplayHelpText:!0,...i},c.createElement("input",{className:"input",type:"text",value:t,onChange:t=>{l(e.name,lZ(t.target.value))},...e.inputProps})),lW=({field:e,...t})=>"text"===e.type?c.createElement(lR,{field:e,...t}):"date"===e.type?c.createElement(lP,{field:e,...t}):"select"===e.type?c.createElement(lw,{field:e,...t}):"interests"===e.type?c.createElement(lT,{field:e,...t}):null,lD=(e,t)=>e.isModel&&"birthDate"===t.name?"displayedBirthDate":"cityId"===t.name?"city":t.name,lO=({user:e,onUserChange:t})=>{let l=lC(e),i=(0,L.C)(e=>(0,eB.by)(e,te.UPDATE_TYPES.INFO)),a=(0,L.C)(e=>e.availableSettings.isPending),s=(l,i)=>{let a={...e,[l]:i};"country"===l&&(a.region="",a.city="",a.cityId=0),"cityId"===l&&(a.cityId=i?i.value:0,a.city=i?i.label:""),t(a)};if(a)return c.createElement(T.Z,null);let r=!1;return c.createElement("div",{className:"details details-edit-mode"},l.map(t=>{var l,a;let n=i&&null!==(a=null===(l=i.details)||void 0===l?void 0:l[t.name])&&void 0!==a?a:[],o=n.map(e=>e.message?e.message:(0,C.dW)(e)),d=n.length>0&&!r;return d&&(r=!0),c.createElement(lW,{key:t.name,labelName:lD(e,t),field:t,value:e[t.name],onChange:s,errors:o,firstError:d,className:t.className,helpTextParams:t.helpTextParams})}),!e.isModel&&c.createElement(R.Z,{className:"user-info-editable__settings-info",messageId:"profile.youCanChangeWhoSeeInSettings",elements:{settingsLink:c.createElement(u.rU,{to:"/settings",className:"user-info-editable__settings-link"})}}))},lL=()=>{let e="user_info_editable_edit_button",t=lm(),[l,i]=(0,c.useState)(t),a=(0,eC.T)(),[s,r]=(0,c.useState)(!1),[n,o]=(0,c.useState)(!1),d=(0,c.useRef)(!1),m=(0,L.C)(ee.A4),u=(0,L.C)(ee.kr),p=(0,L.C)(e=>(0,eB.rg)(e,te.UPDATE_TYPES.INFO)),h=(0,L.C)(e=>(0,eB.fc)(e,te.UPDATE_TYPES.INFO)),v=(0,L.C)(e=>(0,eB.by)(e,te.UPDATE_TYPES.INFO)),E=(0,L.C)(e=>e.availableSettings.isPending),g=t4();(0,c.useEffect)(()=>{p&&r(!1)},[p]),(0,t2.l)(()=>{(null==l?void 0:l.id)===(null==t?void 0:t.id)&&s||i(t)},[t,l,s]);let f=!m&&(!u||(null==t?void 0:t.showProfileTo)==="nobody"&&!d.current),b=()=>{g({...l}),d.current=!1};return c.createElement(M.e,{id:"user-info",scrollToOptions:{offset:-150,duration:250},className:"user-info-editable"},c.createElement("div",{className:"edit-button-container"},c.createElement(th.Z,{id:e,isActive:s,onClick:()=>{if(!s){a((0,ex.Fh)(te.UPDATE_TYPES.INFO)),r(!0);return}if(f){o(!0),d.current=!0;return}b()}}),!!v&&(0,e1.Z)(v.details)&&c.createElement(e3.Z,{error:v,targetId:e})),c.createElement("h2",null,(0,C.dW)("profile.myInformation")),c.createElement("div",{className:(0,I.AK)("user-info",{"is-pending":E||h,"is-edit-mode":s})},c.createElement("div",{className:"info"},s?c.createElement(lO,{user:l,onUserChange:e=>{i({...l,...e})}}):c.createElement(tY,{isOwnProfile:!0,isStatusLevelVisible:!0,user:(0,li.T$)(t),renderInterests:()=>c.createElement(lM,{field:{isModel:m,user:l,name:"interests",type:"interests",autoSave:!0},value:l.interests,onChange:()=>{}})}))),c.createElement(ld,{gender:t.gender}),!m&&c.createElement(ll,{isOpen:n,currentShowProfileTo:null==l?void 0:l.showProfileTo,onShowProfileToSelect:e=>{i(t=>({...t,showProfileTo:e}))},onClose:()=>o(!1),onProfileVisibilitySave:b}))};var lU=l(65754),l$=l(46607),lx=l(72228);let lG=[{messageId:"enableModeList.specialCategory",iconName:"categories-2"},{messageId:"enableModeList.streamQuality",iconName:"camera-settings-ds"}],lF=[{messageId:"forbiddenList.fullyNaked"},{messageId:"forbiddenList.showNude"},{messageId:"forbiddenList.showActivities"},{messageId:"forbiddenList.showSexToys"},{messageId:"forbiddenList.tipMenuPresets"}],lB=[{messageId:"youCanDo.privateShows"},{messageId:"youCanDo.privateMessages"},{messageId:"youCanDo.paidPhotos"}],lK=({isError:e,titleMessageId:t,items:l})=>{let i=e?"close-7":"check-circle";return c.createElement(c.Fragment,null,c.createElement("p",{className:(0,I.AK)("flirting-mode-modal__list-title",{"flirting-mode-modal__list-title--accent-error":e})},(0,C.dW)(`profile.flirtingMode.${t}`)),c.createElement("ul",{className:"flirting-mode-modal__list"},l.map(({messageId:t,iconName:l})=>c.createElement("li",{className:"flirting-mode-modal__list-item",key:t},c.createElement(W.Z,{img:l||i,className:(0,I.AK)("flirting-mode-modal__icon",{[`flirting-mode-modal__icon--${l}`]:l,"flirting-mode-modal__icon--error":e,"flirting-mode-modal__icon--success":!e&&!l})}),(0,C.dW)(`profile.flirtingMode.${t}`)))))},lH=({onClose:e,isConfirmStep:t,isOpen:l,isPending:i,onConfirm:a})=>c.createElement(t6.Z,{onClose:e,closeIconPosition:"rightHeader",open:l,contentClassName:"flirting-mode-modal"},c.createElement(W.Z,{img:"candy-color",size:56}),c.createElement("p",{className:"flirting-mode-modal__heading"},(0,C.dW)("profile.flirtingMode.title")),c.createElement("p",{className:"flirting-mode-modal__description"},(0,C.dW)("profile.flirtingMode.description")),c.createElement(lK,{titleMessageId:"enableModeList.title",items:lG}),c.createElement(lK,{titleMessageId:"forbiddenList.title",items:lF,isError:!0}),c.createElement(lK,{titleMessageId:"youCanDo.title",items:lB}),c.createElement("div",{className:"flirting-mode-modal__footer"},c.createElement("p",{className:"flirting-mode-modal__info"},c.createElement(R.Z,{messageId:"profile.flirtingMode.breakRules",elements:{link:c.createElement(lx.Ll,{supportLinkKey:"flirtingModeRules",className:"flirting-mode-modal__link"})}})),c.createElement(eU.ZP,{className:"flirting-mode-modal__button",onClick:a,loading:i,style:t?"apply-primary":void 0},(0,C.dW)(`profile.flirtingMode.${t?"enableBtn":"okBtn"}`)),c.createElement("p",{className:"flirting-mode-modal__footer-text"},(0,C.dW)("profile.flirtingMode.anytimeDisable")))),lV="flirtingModeSwitcher",lz=({isFlirtingMode:e})=>{let[t,l]=(0,c.useState)(!1),[i,a]=(0,c.useState)(!1),s=(0,L.C)(eB.xV),r=(0,tW.Oi)(null==s?void 0:s.nonNudeBlockedTill),n=null==s?void 0:s.isNonNudeBlocked,o=!n&&!e,d=(0,eC.T)(),m=()=>{l(!1),a(!1)},u=()=>{a(!0),d((0,ex.fb)(!0)).then(()=>{m()})};return c.createElement("div",{className:"flirting-mode"},c.createElement("h2",null,(0,C.dW)("profile.flirtingMode.title")),c.createElement(eU.ZP,{className:"flirting-mode__link privacy-link",onClick:()=>{l(!0)},style:"transparent"},(0,C.dW)("profile.flirtingMode.howItWorks")),c.createElement("div",{className:"flirting-mode__switcher"},n&&c.createElement(e9.Z,{targetId:lV,placement:"top",isMobileRelative:!1,isForceVisible:!1},c.createElement(R.Z,{messageId:"profile.flirtingMode.tooltip",elements:{link:c.createElement(lx.Ll,{supportLinkKey:"flirtingModeRules"})},parameters:{days:r},choiceParameter:"days"})),c.createElement(D.Z,{isDisabled:n,iconVisibility:!1,size:"default",theme:"light",isChecked:e,onChange:()=>{if(!n){if(e){d((0,ex.fb)(!1));return}l(!0)}},id:lV})),c.createElement(lH,{isConfirmStep:o,isOpen:t,isPending:i,onClose:m,onConfirm:()=>{if(!o){m();return}u()}}))};var lj=l(33914),lq=l(1961);function lY(){return(e,t)=>{let l=(0,lj.T2)(t());e((0,lq.oj)({model:l,buttonLocation:A.FO.SCHEDULE_INFORMER_NOTIFICATION_TOGGLER}))}}function lJ(e){return(0,eu.sk)()?F.Z:async(t,l,{Api:i})=>{let a=l(),s=(0,P.ts)(a),r=!s||s.isGuest;try{let{broadcastSchedule:{schedule:l,isEnabled:a},readableOffset:s}=await i.get(`/models/${e}/broadcastSchedule`,r?{timezoneOffset:A.BROWSER_CAPABILITIES.timezoneOffset}:void 0);t({type:k.lCL,data:{timeslots:l,readableOffset:s,isEnabled:a}})}catch(e){t({type:k.lCL,data:{timeslots:{},readableOffset:"",isEnabled:!1}})}}}var lX=l(45106),lQ=l(57077),l0=l(56802),l1=l(35840),l2=l(69353),l8=l(70104),l5=l(50867),l3=l(85037);let l4=({startTime:e,endTime:t,highlighted:l,isOngoing:i,isComing:a,rootElemRef:s})=>c.createElement(c.Fragment,null,(0,tW.mr)(e,tW.TIME_FORMATS.TIME),c.createElement("span",null,"\xa0–\xa0"),(0,tW.mr)(t,tW.TIME_FORMATS.TIME),l&&c.createElement(e9.Z,{targetRef:s,isMobileRelative:!1,placement:"top"},i&&(0,C.dW)("schedule.tooltip.ongoing")||a&&(0,C.dW)("schedule.tooltip.coming"))),l9=c.memo(({start:e,end:t,isToday:l})=>{let i=(0,c.useRef)(null),a=(0,c.useMemo)(()=>(0,tW.YF)(new Date,tW.Ju.day),[]),s=(0,c.useMemo)(()=>(0,tW.yG)(a,{seconds:e}),[a,e]),r=(0,c.useMemo)(()=>(0,tW.yG)(a,{seconds:t}),[a,t]),n=(0,c.useMemo)(()=>Date.now()<=+s,[s]),o=(0,c.useMemo)(()=>Date.now()>=+s&&!(Date.now()>=+r),[s,r]),d=(0,c.useMemo)(()=>l&&(n||o),[l,n,o]);return c.createElement(l3.m,{wrapperRef:i,tooltipPlacement:"bottom",className:(0,I.AK)("schedule-informer__timeslot",{"schedule-informer__timeslot_highlighted":d}),buttonClassName:"schedule-informer__add-to-calendar-button",iconClassName:"schedule-informer__add-to-calendar-icon"},c.createElement(l4,{startTime:s,endTime:r,highlighted:d,isOngoing:o,isComing:n,rootElemRef:i}))}),l6=c.memo(({isEnabled:e,isLoaded:t,isNotificationsOn:l,model:i,onToggleNotifications:a,onRequestTimeslots:s,readableOffset:r,timeslots:n})=>{let o=(0,L.C)(Q.ok),d=(0,c.useMemo)(()=>r||(0,A.EP)(),[r]),m=function(e=15e3){let[t,l]=(0,c.useState)(Date.now());return(0,c.useEffect)(()=>{let t=setTimeout(()=>l(Date.now()),e);return()=>{clearTimeout(t)}},[e]),(0,tW.mr)(new Date(t),tW.TIME_FORMATS.TIME)}(),u=(0,c.useMemo)(()=>{let e=new Date().getDay();return 0===e?6:e-1},[]),[p,h]=(0,c.useState)(!1);return((0,c.useEffect)(()=>{i&&s(i.id)},[s,i]),t&&e&&Object.values(n).some(({isEnabled:e})=>e))?c.createElement("div",{className:"page-block schedule-informer"},c.createElement("div",{className:"schedule-informer__title-group"},c.createElement("div",null,c.createElement(o?"h3":"h2",null,c.createElement(W.Z,{img:"calendar",className:"schedule-informer__title-icon"})," ",(0,C.dW)("schedule.informerTitle")),c.createElement("div",{className:"schedule-informer__subtitle"},(0,C.dW)("schedule.informerTzNote")," — ",d," ",m)),c.createElement("div",{className:"schedule-informer__notify-me",id:"schedule-informer__notify-me"},c.createElement(l5.Z,{onChange:e=>{a(),h(e)},icon:l?"notifications-2":"notifications-off-2",isChecked:l},(0,C.dW)("schedule.notifySwitcherCaption")),c.createElement(l0.R,{onClose:()=>{h(!1)},isVisible:p,model:i,targetId:"schedule-informer__notify-me",placement:"bottom"}))),c.createElement("div",{className:"schedule-informer__table"},A.tz.map(e=>{let t=A.tz.indexOf(e),l=n[e],i=u===t,a="schedule-informer__day-name_today";return c.createElement("div",{key:e,className:(0,I.AK)("schedule-informer__day",{"schedule-informer__day_empty":!(null==l?void 0:l.isEnabled)})},c.createElement("div",{className:"schedule-informer__day-name-container"},c.createElement("div",{className:(0,I.AK)("schedule-informer__day-name",{"schedule-informer__day-name_today":i})},c.createElement("span",{id:i?a:void 0},(0,tW.YV)(t),i&&c.createElement(e9.Z,{targetId:a,isMobileRelative:!1,placement:"top"},(0,C.dW)("schedule.tooltip.today"))))),(null==l?void 0:l.isEnabled)?c.createElement("div",{className:"schedule-informer__timeslots"},l.periods.map(([t,l])=>c.createElement(lQ.Lp,{key:`${t}-${l}`,eventTimeData:{dayName:e,start:t,end:l},source:em.mw.SCHEDULE_WIDGET},c.createElement(l9,{isToday:i,start:t,end:l})))):c.createElement("div",{className:"schedule-informer__timeslots"},(0,C.dW)("schedule.noStreamsMark")))}))):null}),l7=(0,m.$j)(function(e){let t=(0,l1.n5)(e);return{isEnabled:(0,l8.ov)(e),isLoaded:(0,l8.Zl)(e),isNotificationsOn:!!t&&(0,l2.pg)(e,t),model:(0,lj.T2)(e),readableOffset:(0,l8.V6)(e),timeslots:(0,l8.rS)(e)}},e=>(0,lX.DE)({onToggleNotifications:lY,onRequestTimeslots:lJ},e))(l6),ie=c.forwardRef(({shouldRender:e},t)=>{let l=(0,eC.T)();return((0,c.useEffect)(()=>{e||l({type:k.vrT})},[l,e]),e)?c.createElement("div",{ref:t},c.createElement(l7,null)):null}),it=(e,t)=>!!(e.viewCamProfileShowToken!==t.viewCamProfileShowToken&&t.viewCamProfileShowToken),il=(e,t)=>!t.isOwnProfile&&!!t.canShowEpicGoal&&e.isEpicGoalLoading&&!t.isEpicGoalLoading;class ii extends(o=c.Component){componentDidMount(){this.preventAutoScrollRestoration(),(0,ep.Z)(this.propsUpdateToActionsMap,{},this.props)}componentDidUpdate(e){(0,ep.Z)(this.propsUpdateToActionsMap,e,this.props)}componentWillUnmount(){this.restoreAutoScrollRestoration()}getParsedViewCamShowToken(){let{viewCamProfileShowToken:e}=this.props;return e?e.toString():""}scrollToSection(){if((0,eu.sk)())return;let{profileRef:e,galleryRef:t,videosRef:l,scheduleRef:i,testimonialsRef:a}=this,{viewCamScrollOffset:s}=this.props,r=this.getParsedViewCamShowToken();switch(r){case"Symbol(profile)":if(!document.querySelector(`.${H.nuE}`))return;e.current&&J.Z.set(`.${H.nuE}`,H.ct3,!1,s);break;case"Symbol(epic-goal)":document.querySelector(`.${H.GO_}`)&&J.Z.set(`.${H.GO_}`,H.ct3,!1,s);break;case"Symbol(#gallery)":if(!t.current)return;J.Z.set(t.current,H.ct3,!1,s);break;case"Symbol(#videos)":if(!l.current)return;J.Z.set(l.current,H.ct3,!1,s);break;case"Symbol(#schedule)":(null==i?void 0:i.current)?J.Z.set(i.current,H.ct3,!1,s):(null==l?void 0:l.current)&&J.Z.set(l.current,H.ct3,!1,s);break;case"Symbol(#testimonials)":(null==a?void 0:a.current)&&(J.Z.set(a.current,H.ct3,!1,s),this.props.scrollToProfileSection(""))}}getIsNeedScrollToKnights(){return"Symbol(#knights)"===this.getParsedViewCamShowToken()}renderSocket(){let{isOwnProfile:e,user:t}=this.props,l=[`userBanned:${t.id}`,`userUnbanned:${t.id}`];return!e&&t&&l.push(`userUpdated:${t.id}`),c.createElement(ec.Z,{events:l})}renderProfileDescription(){var e;let{user:t,isProfileAvailable:l,isBanned:i,isGeoBanned:a,isDeleted:s,isOwnProfile:r,needVerifyAge:n}=this.props;return r||l&&!i&&!a&&!s&&(t.isModel||(null===(e=t.profile)||void 0===e?void 0:e.description))?t.isModel?n?null:c.createElement(tN,{model:t,isOwnProfile:r}):c.createElement(tA,{key:t.id,className:"page-block",user:t}):null}renderUserInfo(){let{isBanned:e,isGeoBanned:t,isOwnProfile:l,isProfileAvailable:i,user:a}=this.props;return l?c.createElement(lL,null):c.createElement(t1,{isBanned:e,isGeoBanned:t,isProfileAvailable:i,user:a})}renderBroadcastSchedule(){let{isOwnProfile:e,user:t}=this.props,l=e&&t.isModel;return l?c.createElement(U,null):null}renderScheduleInformer(){let{isOwnProfile:e,user:t}=this.props,l=!e&&t.isModel;return c.createElement(ie,{shouldRender:l,ref:this.scheduleRef})}render(){let{friendIds:e,friendshipCount:t,isBanned:l,isEmbedded:i,isFriendsVisible:a,isGeoBanned:s,isOwnProfile:r,isProfileAvailable:n,knights:o,modelFanClubTiers:d,user:m,isModelsFeedEnabled:p,canShowEpicGoal:h,hideMedia:v,canShowFlirtingMode:E,isFlirtingMode:g,needVerifyAge:f,isTestimonialsInModelProfileEnabled:b,modelData:_,isShowReviewsOnModelPageEnabled:y}=this.props,C=n&&f&&m.isModel&&!r,N=n&&!l&&!s,P=!m.isModel&&f,k=N&&!P||r,S=r?y:b,M=S&&m.isModel&&((null==_?void 0:_.doPrivate)||(null==_?void 0:_.doP2p)||r);return c.createElement("div",{className:"profile",ref:this.profileRef},c.createElement(tD.Nv,{modelData:_},this.renderSocket(),i&&!p&&c.createElement("div",{className:"profile-header"},c.createElement(u.rU,{to:`/${m.username}`,className:"icon-wrapper"},c.createElement(W.Z,{img:"close-2",size:14}))),C&&c.createElement(x.u,{model:m,modelData:_},c.createElement(G.R,{isForceWhiteText:!0,triggerSource:em.Dt.AVP_PROFILE_SHUTTER})),m&&!m.isDeleted&&!m.isBlocked&&c.createElement("div",{className:"columns"},c.createElement("div",{className:"column xs-12 s-12 m-12 l-7 xl-7 xxl-7"},c.createElement("div",{className:"page-block"},this.renderUserInfo()),M&&c.createElement(es.k,{ref:this.testimonialsRef}),c.createElement("div",{className:H.GO_}),h&&c.createElement(td,{editable:r,user:m}),this.renderBroadcastSchedule(),this.renderProfileDescription()),k&&c.createElement("div",{className:"column xs-12 s-12 m-12 l-5 xl-5 xxl-5"},E&&c.createElement("div",{className:"page-block"},c.createElement(lz,{isFlirtingMode:!!g})),c.createElement(eo.Z,{fallback:c.createElement(ed.Z,null)},c.createElement("div",{ref:this.videosRef},!v&&m.isModel&&c.createElement(eJ.J,{listClassName:"profile-media-panel-wrapper__videos-list",videosLimit:eD.Or,wrapper:"profile",shouldShowUploader:r,isOwnProfile:r,modelData:_,user:m})),c.createElement("div",{ref:this.galleryRef},!v&&c.createElement(eY,{shouldShowGalleryWithNoItems:!m.isModel,isOwnProfile:r,user:m})),this.renderScheduleInformer(),!!o.length&&(!f||r)&&c.createElement($.Z,{className:"page-block",counter:o.length>9?o.length:void 0,hasMore:o.length>9,isOwnProfile:r,knights:o.slice(0,9),modelFanClubTiers:d,user:m,isNeedScroll:this.getIsNeedScrollToKnights()}),!r&&c.createElement(ei,{username:m.username}),a&&c.createElement(tI.Z,{className:"page-block",counter:e.length>9?t:void 0,friendIds:e.slice(0,9),hasMore:t>9,isOwnProfile:r,modelFanClubTiers:d,username:m.username}))))))}constructor(...e){super(...e),(0,d._)(this,"galleryRef",c.createRef()),(0,d._)(this,"profileRef",c.createRef()),(0,d._)(this,"scheduleRef",c.createRef()),(0,d._)(this,"testimonialsRef",c.createRef()),(0,d._)(this,"videosRef",c.createRef()),(0,d._)(this,"isAutoScrollRestorationPrevented",!1),(0,d._)(this,"propsUpdateToActionsMap",[{update:it,action:()=>{this.props.shouldSkipScroll||this.scrollToSection()}},{update:il,action:()=>{this.props.shouldSkipScroll||setTimeout(()=>this.scrollToSection(),100)}}]),(0,d._)(this,"preventAutoScrollRestoration",()=>{var e;(null===(e=window.history)||void 0===e?void 0:e.scrollRestoration)==="auto"&&(window.history.scrollRestoration="manual",this.isAutoScrollRestorationPrevented=!0)}),(0,d._)(this,"restoreAutoScrollRestoration",()=>{this.isAutoScrollRestorationPrevented&&(window.history.scrollRestoration="auto",this.isAutoScrollRestorationPrevented=!1)})}}(0,d._)(ii,"defaultProps",{shouldRenderWatchButton:!0,isModelsFeedEnabled:!1});let ia={loadCurrentAlbumPhotos:eQ.a,loadUserAlbums:eX.zD,showPurchaseModal:en.U1,scrollToProfileSection:p.Cp},is=(0,er.IS)("user"),ir=(0,lU.bN)("user"),io=(0,j.y)("isLayoutUpToL")((0,m.$j)((e,t)=>{let{auth:{currentUser:l,isLoggedIn:i,isLoggingOut:a},viewCam:{viewCamProfileShowToken:s}}=e,{isOwnProfile:r,user:n,modelData:o,isProfileLoading:d}=t,c=!r&&!!n&&(0,l$.r0)(e,n.id),m=!r&&!!n&&(0,l$.mp)(e,n.id),u=null==n?void 0:n.isDeleted,p=!!r||!!(null==n?void 0:n.profile)||!!d,h=r?(0,lU.lt)(e):ir(e,t),v=r&&h.length>0,E=(0,ev.m5e)(e),g=n?(0,ea.dN)(e,n.username):null,f=(null==n?void 0:n.isModel)&&(r&&(null==o?void 0:o.isApprovedModel)||!(null==l?void 0:l.isModel)&&!(null==l?void 0:l.isStudio)),b=(0,eg.Us)(e)||(0,Q.Km)(e)||E,_=(0,eh.k0)(e),y=(null==l?void 0:l.isModel)&&r&&_;return{currentUser:l,isBanned:c,isDeleted:u,isGeoBanned:m,isFriendsVisible:v,isLoggedIn:i&&!a,isProfileAvailable:p,hideMedia:b,needVerifyAge:E,friendIds:h,friendshipCount:(0,lU.mX)(e),knights:is(e,t),modelFanClubTiers:g,viewCamProfileShowToken:s,shouldSkipScroll:(0,eE.uo)(e),canShowEpicGoal:f,isEpicGoalLoading:e.epicGoals.isLoading,viewCamScrollOffset:(0,ef.q2)(e,t),canShowFlirtingMode:y,isFlirtingMode:(0,eB.ai)(e),isTestimonialsInModelProfileEnabled:(0,eb.YB)(e),isShowReviewsOnModelPageEnabled:(0,eh.jq)(e)}},ia)(ii))},86320:(e,t,l)=>{l.d(t,{Z:()=>eS});var i=l(18775),a=l(27378),s=l(48204),r=l(79208),n=l(97554),o=l(96226),d=l(82362),c=l(57174),m=l(29413),u=l(85353),p=l(59593),h=l(96552),v=l(99748),E=l(56509),g=l(62512),f=l(63256),b=l(7786),_=l(88051);let y=({src:e,poster:t})=>{let l=(0,a.useRef)(null),[i,s]=(0,a.useState)(!1);return(0,a.useEffect)(()=>{if(p.BROWSER_CAPABILITIES.safari&&l.current){var e,t;let i=null===(t=l.current)||void 0===t?void 0:null===(e=t.children)||void 0===e?void 0:e[0];i instanceof HTMLVideoElement&&(i.controls=!1,i.muted=!0,i.setAttribute("playsinline",""),i.setAttribute("muted",""),i.autoplay=!0,setTimeout(()=>{let e=i.play();e.then&&e.then(()=>{}).catch(()=>{l.current&&(l.current.style.display="none"),s(!0)})},0))}},[]),i?a.createElement("img",{src:e,alt:"Muted Video"}):a.createElement("div",{className:"profile-cover__video-parent",ref:l,dangerouslySetInnerHTML:{__html:`
        <video
          class="profile-cover__video"
          width="100%"
          height="100%"
          autoplay
          preload="auto"
          loop
          muted
          poster="${t}"
          playsinline
        >
            <source src="${e}" type="video/mp4" />
        </video>`}})};var C=l(6083),N=l(11850),P=l(61171),k=l(94380),S=l(95654),M=l(21044),T=l(2894),A=l(98941),I=l(93776),w=l(81535);let Z=({onVerifyClick:e})=>{let[t,l,i]=(0,I.O0)(!1);return a.createElement("div",{className:"profile-cover-dropdown__hint"},a.createElement(I.IJ,{messageId:"profileCover.hint",elements:{link:a.createElement("a",{onClick:t=>{e(t),l()},className:"user-kyc-photos-panel__verify-link"})}}),t&&a.createElement(w.Q,{onClose:i}))},R=({canRemove:e,onPhotoUpload:t,onCoverReposition:l,uploadedMediaType:i,isVideoAvailable:s,isCoverReposition:r,isProcessing:n,isComputerVisionForUserPhotosEnabled:o})=>{let[d,c,u]=(0,N.eW)(),[h,g]=(0,a.useState)(M.Nq.IMAGE),f=(0,k.T)(),_=(0,S.C)(C.K0),y=_===A.I$.APPROVED,I=(0,a.useRef)(null),w=o&&!y&&!s,R=T.yI.join(", ");return a.createElement("div",{className:(0,v.AK)("profile-cover-dropdown",{"profile-cover-dropdown--new":w})},a.createElement("button",{className:"profile-cover-dropdown__button",type:"button",onClick:c},a.createElement(m.Z,{img:"edit",size:12}),a.createElement("span",null,(0,E.dW)("profileCover.editCover"))),a.createElement("form",{className:"hidden"},a.createElement("input",{accept:{image:"image/png,image/jpeg,image/gif",video:R}[h],onChange:e=>{var l,i;let{files:a}=e.target;(null==a?void 0:a.length)&&(h===M.Nq.IMAGE&&(null==t||t(),f((0,b.mJ)(a[0]))),h===M.Nq.VIDEO&&f((0,b.$x)(a[0])),null==I||null===(i=I.current)||void 0===i||null===(l=i.form)||void 0===l||l.reset())},ref:I,type:"file"})),d&&a.createElement(P.Z,{className:"profile-cover-dropdown__tooltip",stateValueGetter:()=>d,isMobileViewEnabled:!1,background:"light",position:"left",shadow:!0},w&&a.createElement(Z,{onVerifyClick:u}),a.createElement("button",{className:"profile-cover-dropdown__action",type:"button",onClick:e=>{e.preventDefault(),e.stopPropagation(),g(M.Nq.IMAGE),(null==I?void 0:I.current)&&setTimeout(()=>{var e;return null==I?void 0:null===(e=I.current)||void 0===e?void 0:e.click()},0)}},a.createElement(m.Z,{img:"album",size:14}),i===M.Nq.IMAGE?(0,E.dW)("profileCover.updatePhoto"):(0,E.dW)("profileCover.uploadPhoto")),s&&a.createElement("button",{className:"profile-cover-dropdown__action",type:"button",onClick:e=>{e.stopPropagation(),g(M.Nq.VIDEO),(null==I?void 0:I.current)&&setTimeout(()=>{var e;return null==I?void 0:null===(e=I.current)||void 0===e?void 0:e.click()},0)}},a.createElement(m.Z,{img:"camera",size:14}),i===M.Nq.VIDEO?(0,E.dW)("profileCover.updateVideo"):(0,E.dW)("profileCover.uploadVideo")),e&&p.BROWSER_CAPABILITIES.desktop&&!p.BROWSER_CAPABILITIES.isTablet&&!n&&a.createElement("button",{className:(0,v.AK)("profile-cover-dropdown__action",{"profile-cover-dropdown__action--active":r}),type:"button",onClick:e=>{e.stopPropagation(),l()}},a.createElement(m.Z,{img:"drag-n-drop-vertical",size:14}),(0,E.dW)("profileCover.repositionCover")),e&&a.createElement(a.Fragment,null,a.createElement("hr",null),a.createElement("button",{className:"profile-cover-dropdown__action",type:"button",onClick:e=>{e.stopPropagation(),f((0,b._P)())}},a.createElement(m.Z,{img:"trash",size:14}),(0,E.dW)("profileCover.removeCover")))))};var W=l(7637),D=l(92487),O=l(16421),L=l(15720),U=l(13219),$=l(51299),x=l(74012),G=l(65103);let{AVATAR:F}=M.UPDATE_TYPES;class B extends a.Component{componentDidMount(){let{targetElement:e}=this;e&&(0,g.H0)(this,e,"click",this.showTooltip)}componentWillUnmount(){(0,g.OM)(this)}componentDidUpdate(e){if((0,L.w8)(this.props,e))return;let{hasUserAvatarUpdateSucceeded:t}=this.props,{isDeleteAvatarConfirmationOpen:l,isPhotoUploadPopupOpen:i}=this.state;t&&(l=!1,i=!1),(0,L.Tz)(this,{isDeleteAvatarConfirmationOpen:l,isPhotoUploadPopupOpen:i})}get targetElement(){return this.props.targetId?document.getElementById(this.props.targetId):null}renderSocket(){if(!this.props.isLoggedIn)return null;let{currentUser:e}=this.props;return e?a.createElement(d.Z,{eventsWithCallbacks:[{subscriptionKey:`imageUpload:${e.id}`,callback:this.imageUploadEventHandler}]}):null}render(){var e;let{availableSettings:t,isLoadingAvailableSettings:l,isUpdatingUserAvatar:i,targetId:s,withModerationStatus:r,modelData:n,user:o}=this.props,{isDeleteAvatarConfirmationOpen:d,isPhotoUploadPopupOpen:c,isImageLoading:u,isDropdownVisible:p}=this.state,h=!!(null==o?void 0:null===(e=o.profile)||void 0===e?void 0:e.avatarUrl);return a.createElement("div",{className:"user-avatar-editable"},p&&a.createElement(P.Z,{className:"dropdown-menu",stateValueGetter:()=>p,onClose:()=>this.setDropdownVisible(!1),isMobileViewEnabled:!1,background:"light",position:"bottom",shadow:!0},a.createElement("button",{type:"button",onClick:this.updatePhotoClickHandler,disabled:l,className:"dropdown-menu-item"},a.createElement(m.Z,{img:"photo-2"}),h?(0,E.dW)("button.updatePhoto"):(0,E.dW)("profileCover.uploadPhoto")),h&&a.createElement("div",{className:"dropdown-menu-item-splitter"},a.createElement("button",{type:"button",onClick:this.deleteAvatarClickHandler},a.createElement(m.Z,{img:"trash"}),(0,E.dW)("button.delete")))),c&&a.createElement($.d,{isInPortal:!0,avatarSettings:null==t?void 0:t.avatar,isPending:l||i,onClose:this.photoUploadPopupCloseHandler,onSave:this.photoUploadPopupSaveHandler}),d&&a.createElement(O.Z,{isInPortal:!0,onConfirm:this.deleteAvatarConfirm,onCancel:this.deleteAvatarCancel,okText:(0,E.dW)("button.delete")},a.createElement("p",null,(0,E.dW)("profile.deleteAvatar.confirm"))),a.createElement("div",{className:(0,v.AK)("user-info",{"is-pending":l||i})},a.createElement("div",{className:(0,v.AK)("avatar-wrapper",{"is-loading":u})},a.createElement(_.Z,{isAwardBadgeVisible:!0,levelBadgeSize:"big",shouldShowLevelBadge:!0,shouldShowRealLevel:!0,isLoading:u,user:o,modelData:n,withModerationStatus:r}),a.createElement("div",{className:"avatar-upload",id:s},a.createElement(m.Z,{img:"photo-3"})))),this.renderSocket())}constructor(e){super(e),(0,i._)(this,"setDropdownVisible",e=>{this.setState({isDropdownVisible:e})}),(0,i._)(this,"showTooltip",e=>{e.stopPropagation();let{isImageLoading:t,isDropdownVisible:l}=this.state,i=this.targetElement;!t&&i&&e.currentTarget.id===i.id&&this.setState({isDropdownVisible:!l})}),(0,i._)(this,"imageUploadEventHandler",({name:e})=>{e===p.Wh.FULL&&this.setState({isImageLoading:!1})}),(0,i._)(this,"updatePhotoClickHandler",()=>{this.setDropdownVisible(!1),this.props.updatePrepare(F),this.setState({isPhotoUploadPopupOpen:!0})}),(0,i._)(this,"photoUploadPopupCloseHandler",()=>{this.setState({isPhotoUploadPopupOpen:!1})}),(0,i._)(this,"photoUploadPopupSaveHandler",e=>{this.setState({isImageLoading:!0}),this.props.updateProfile({avatar:e},F,{isMultipart:!0}).then(()=>{this.setState({isImageLoading:!1})})}),(0,i._)(this,"deleteAvatarClickHandler",()=>{this.setDropdownVisible(!1),this.setState({isDeleteAvatarConfirmationOpen:!0})}),(0,i._)(this,"deleteAvatarConfirm",()=>{this.props.updateProfile({avatar:null},F,{notifications:{success:(0,E.dW)("profile.deleteAvatar.success")}})}),(0,i._)(this,"deleteAvatarCancel",()=>{this.setState({isDeleteAvatarConfirmationOpen:!1})}),this.state={isDeleteAvatarConfirmationOpen:!1,isPhotoUploadPopupOpen:!1,isDropdownVisible:!1,isImageLoading:!1}}}let K={updatePrepare:U.Fh,updateProfile:U.ck},H=(0,s.$j)(e=>{let{availableSettings:{data:t,isPending:l}}=e;return{availableSettings:t,currentUser:(0,x.ts)(e),hasUserAvatarUpdateSucceeded:(0,G.rg)(e,F),isLoggedIn:(0,x.Cg)(e),isLoadingAvailableSettings:l,isUpdatingUserAvatar:(0,G.fc)(e,F)}},K)(B);var V=l(98233),z=l(98568),j=l(16023),q=l(17459),Y=l(53229),J=l(44589),X=l(99382),Q=l(3034);class ee extends a.Component{render(){let{currentUser:e,isInFavorites:t,isLoggedIn:l,user:i,customContent:s,style:r="default",size:n="default"}=this.props,o=!l||!(null==e?void 0:e.isModel)&&!(null==e?void 0:e.isStudio),d=i.isModel&&o;if(!d)return null;let c="small"===n,u=a.createElement(m.Z,{img:"heart-fill"}),p=(0,E.dW)(t?"button.removeFromFavorites":"button.addToFavorites"),h="favorite-btn";return a.createElement(X.ZP,{onClick:this.clickHandler,size:"default",style:r,className:(0,v.AK)("favorite-button",{favorited:t}),id:h,"aria-label":p},"large"===n&&u,c?u:a.createElement("span",null,s||p),c&&a.createElement(Q.Z,{placement:"top",targetId:h,isMobileRelative:!1},p))}constructor(...e){super(...e),(0,i._)(this,"clickHandler",()=>{let{user:e}=this.props;this.props.toggleFavorite(e)})}}let et={toggleFavorite:Y.ZN},el=(0,s.$j)((e,t)=>{let{auth:{currentUser:l,isLoggedIn:i,isLoggingOut:a}}=e,{user:s}=t;return{currentUser:l,isInFavorites:(0,J.D9)(e,s.id),isLoggedIn:i&&!a}},et)(ee);var ei=l(53902),ea=l(62612),es=l(93223),er=l(46607);let en=(0,s.$j)((e,t)=>{let{user:l}=t;return{isViewCamPage:(0,j.mT)(e),isBanned:(0,er.r0)(e,l.id),isGeoBanned:(0,er.mp)(e,l.id),isMoreVisibleReportButtonEnabled:(0,f.TWc)(e),isDSAReportModelContentMessageEnabled:(0,f.hzN)(e)}})(({isViewCamPage:e,user:t,isBanned:l,isGeoBanned:i,isMoreVisibleReportButtonEnabled:s,isDSAReportModelContentMessageEnabled:r})=>{let{isModel:o}=t,d=o?"small":"default",c=!t.isDeleted&&!(l||i)&&!t.isBlocked;return c?a.createElement("div",{className:(0,v.AK)("action-buttons user-action-buttons",{user:!o})},a.createElement("div",{className:"action-buttons-container"},a.createElement(z.Z,{source:"profileControlPanel"}),a.createElement(el,{user:t,style:"outline",size:"small"}),a.createElement(V.Z,{key:null==t?void 0:t.id,buttonLocation:"profileButton",user:t,style:"outline",size:"small"}),a.createElement("div",{className:"splitter"}),a.createElement(ei.Z,{user:t,style:"outline",size:d}),a.createElement(es.Z,{user:t,toolTipId:"user-actions-send-pm",shouldOpen:e?"privateTab":"chat",style:"outline",size:d}),a.createElement(q.l,{recipient:t}),o&&a.createElement(n.Z,{className:(0,v.AK)("user-action-buttons__model-additional-menu--margins",!s&&"user-action-buttons__model-additional-menu"),isReportHidden:r,shouldSwitchToNextModelOnNotInterested:!0,report:{source:"profile"},variant:"profile",model:t}),o&&r&&a.createElement(ea.g,{className:"user-action-buttons__report-btn model-additional-menu__button",reportedUser:t,reportType:"model",iconSize:20,isTextHidden:!0}))):null});var eo=l(75845),ed=l(8741),ec=l(50423),em=l(62203);let eu=({size:e=16})=>a.createElement("div",{className:"flirting-icon"},a.createElement(m.Z,{img:"candy",size:e}),a.createElement("div",{className:"flirting-icon__text"},"Flirting"));var ep=l(1948);let eh=({name:e,link:t})=>a.createElement(ep.Z,{className:"xh-porn-star-button",href:t,target:"_blank",rel:"noopener noreferrer"},a.createElement("span",{className:"pornstar-label"},a.createElement(m.Z,{img:"star",className:"star-full pornstar-star",fill:"currentColor",height:12,width:12}),"Pornstar"),a.createElement("span",{className:"pornstar-name"},e));var ev=l(7474),eE=l(40686),eg=l(82512),ef=l(66483),eb=l(5132);let e_=(0,a.memo)(e=>{var t,l;let{isNonNudeWL:i,isProfileAvailable:s,topModelsLink:r,contestTop:n,user:o,xHamsterPornStarLinkData:d,shouldShowRealLevel:c,isMediaPage:m,isFlirtingModeEnabled:u,modelData:p}=e,{isLayoutMoreThanL:h}=(0,ec.iP)("isLayoutMoreThanL"),v=o.isModel&&s?{to:`/${o.username}`}:null,g=!i&&!!n.position&&Number(n.position)<=M.D9,f=u&&(null==p?void 0:p.isNonNude),{userRanking:b}=o,_=null!==(t=null==b?void 0:b.realLevel)&&void 0!==t?t:null==b?void 0:b.level,y=null!==(l=null==b?void 0:b.realLeague)&&void 0!==l?l:null==b?void 0:b.league;return a.createElement("div",{className:"username-panel"},h&&a.createElement("div",{className:"username-panel__status-icons"},a.createElement(eb.Z,{isUltimateIconTooltipVisible:!0,levelBadgeSize:"regular",isUltimateIconVisible:!0,user:o})),a.createElement("div",{className:"username-panel__content"},a.createElement(m?"span":"h2",{className:"username-panel__title"},!h&&a.createElement(eb.Z,{isUltimateIconTooltipVisible:!0,levelBadgeSize:"regular",isUltimateIconVisible:!0,user:o}),a.createElement(ev.Z,{shouldShowRealLevel:c,isLevelStatusVisible:!0,placeId:"user-info",user:o,link:v,hideIcons:!0}),o.isModel&&a.createElement("div",{className:"username-panel__icons"},f&&a.createElement(eu,null),g&&a.createElement(ed.A,{tooltipText:(0,E.dW)("profile.contestTooltip"),href:r,position:n.position,points:n.points}))),o.isModel&&d&&a.createElement("div",{className:"username-panel__subtitle"},a.createElement(eh,d)),!o.isModel&&!o.isStudio&&a.createElement("div",{className:"username-panel__subtitle"},a.createElement("span",{className:"username-panel__ranking"},(0,E.dW)(`userLevels.leagues.${y}`,{color:(0,E.dW)(`userLevels.leaguesColor.${y}`)})," | ",(0,E.dW)("userLevels.levelNumber",{level:null!=_?_:"?"})))))}),ey=(0,s.$j)((e,t)=>{let{user:l,modelData:i}=t,a=(null==i?void 0:i.isPornStar)?(0,eg.Lz)(e,l.id):null,s=(0,eo.FA)(null==i?void 0:i.contestGender);return{xHamsterPornStarLinkData:a,contestTop:(0,ef.bh)(e,l.id),isMediaPage:(0,j.HK)(e),topModelsLink:(0,eo.hm)(e,null==s?void 0:s.route),isNonNudeWL:(0,em.Km)(e),isFlirtingModeEnabled:(0,f.VgH)(e),isOwnProfile:(0,eE.nf)(e)}})(e_);var eC=l(2811),eN=l(32284);let eP={saveCoverSettings:b.sd};class ek extends a.PureComponent{componentDidMount(){(0,g.H0)(this,window,"mousemove",this.onDrag),(0,g.H0)(this,window,"mouseup",this.onDragEnd)}componentWillUnmount(){(0,g.OM)(this)}static getDerivedStateFromProps(e,t){var l,i,a,s,r,n;let{user:o,editable:d}=e;return d&&(null==o?void 0:null===(l=o.profile)||void 0===l?void 0:l.avatarUrl)&&t.avatarUrl!==(null==o?void 0:null===(i=o.profile)||void 0===i?void 0:i.avatarUrl)&&t.isFirstRender?{avatarUrl:null==o?void 0:null===(n=o.profile)||void 0===n?void 0:n.avatarUrl,isFirstRender:!1}:d&&(null==o?void 0:null===(a=o.profile)||void 0===a?void 0:a.avatarUrl)&&t.avatarUrl!==(null==o?void 0:null===(s=o.profile)||void 0===s?void 0:s.avatarUrl)&&!t.isFirstRender?{isAvatarLoading:!0,avatarUrl:null==o?void 0:null===(r=o.profile)||void 0===r?void 0:r.avatarUrl}:null}getIsHiddenByAgeVerification(){let{needVerifyAge:e,user:t,currentUserId:l}=this.props;return e&&t.id!==l}renderSocket(){let{editable:e,user:t}=this.props,{isAvatarLoading:l,isPhotoCoverLoading:i}=this.state,s=[];return e&&s.push(a.createElement(d.Z,{key:"videoEvent",events:[`introsUpdated:${t.id}`]})),l&&s.push(a.createElement(d.Z,{key:"avatarEvent",eventsWithCallbacks:[{subscriptionKey:`imageUpload:${t.id}`,callback:this.avatarUploadEventHandler}]})),i&&s.push(a.createElement(d.Z,{key:"imageEvent",eventsWithCallbacks:[{subscriptionKey:`imageUpload:${t.id}`,callback:this.imageCoverUploadEventHandler}]})),s}renderPreModerationNote(){return a.createElement(o.R,{messageId:"preModeration.backgroundNotReviewed",additionalMessageId:"preModeration.notReviewedAdditional",className:"profile-cover__pre-moderation-note"})}render(){var e,t;let{editable:l,user:i,isProfileAvailable:s,hasCover:o,userCoverPreview:d,isModel:u,isUnderPreModeration:p,shouldHidePhotosUploadForUsers:g,isMoreVisibleReportButtonEnabled:f,isNewFlow:b,isLive:y,modelData:C,isShareLinksButtonEnabled:N,currentUserIsModel:P,currentUserId:k,isDSAReportModelContentMessageEnabled:S}=this.props,M=y?`/${i.username}`:(0,eN.jC)(i),{isCoverReposition:T,isChanging:A,currentPosition:I,initalPosition:w,isPhotoCoverLoading:Z}=this.state,D=this.getIsHiddenByAgeVerification(),O=T?w:d.heightShift,L=o&&!Z&&!D,U=L&&p,$=i.id===k,x=null!==(t=null==C?void 0:C.avatarUrlOriginal)&&void 0!==t?t:null===(e=i.profile)||void 0===e?void 0:e.avatarUrlOriginal;return a.createElement(a.Fragment,null,U&&(!g||b)&&this.renderPreModerationNote(),a.createElement("div",{className:"profile-cover"},o&&!d.isProcessing&&!T&&(!g||b)&&!D&&a.createElement("div",{className:"profile-cover__fullscreen-button",onClick:this.handleFullscreenClick},a.createElement(m.Z,{img:"fullscreen-on",size:28})),a.createElement("div",{className:"profile-cover__media"},a.createElement("div",{className:(0,v.AK)("profile-cover__media-container",{"has-cover":o&&!d.isProcessing&&(!g||b),processing:d.isProcessing}),onClick:this.handleFullscreenClick,onMouseDown:this.handleDragStart,onDrag:e=>e.preventDefault(),onDragStart:e=>e.preventDefault(),style:{"--intro-height-shift":`100% ${A?I:O}%`}},T&&a.createElement(a.Fragment,null,a.createElement("div",{className:"profile-cover__reposition-indicator"},a.createElement(m.Z,{img:"drag-reposition",size:26}),(0,E.dW)("profileCover.dragToReposition")),a.createElement("div",{className:"profile-cover__reposition-actions"},a.createElement("div",{className:"profile-cover__reposition-description"},(0,E.dW)("profileCover.dragDescription")),a.createElement(c.ZP,{style:"white-outline",onClick:this.handleResetCoverPosition},(0,E.dW)("button.cancel")),a.createElement(c.ZP,{style:"apply",onClick:this.handleSaveCoverPosition},(0,E.dW)("button.save")))),L&&(!g||b)?this.renderCoverMedia():this.renderCoverPlaceholder())),l&&!T&&(!g||b)&&a.createElement(R,{canRemove:o,onPhotoUpload:this.handlePhotoUpload,onCoverReposition:this.handleCoverReposition,uploadedMediaType:d.type,isVideoAvailable:u,isCoverReposition:T,isProcessing:!!(null==d?void 0:d.isProcessing),isComputerVisionForUserPhotosEnabled:b}),a.createElement("div",{className:"profile-cover__info"},a.createElement("div",{className:"left-wrapper"},a.createElement("div",{className:"profile-cover__avatar-wrapper"},l?a.createElement(H,{targetId:"avatar-editable-wrapper",withModerationStatus:!0,user:i,modelData:C}):a.createElement(_.Z,{onClick:x?()=>h.P4.show(W.r,{avatarUrl:x,user:i}):void 0,className:(0,v.AK)({"avatar--clickable":x}),modelData:C,showLiveBadge:!0,isAwardBadgeVisible:!0,isLink:!0,profileUrl:M,levelBadgeSize:"big",shouldShowLevelBadge:!0,user:i,withModerationStatus:!0})),a.createElement(ey,{user:i,modelData:C,isProfileAvailable:s,shouldShowRealLevel:!!l})),i.isModel&&!f&&a.createElement(n.Z,{model:i,report:{source:"profile"},className:"profile-cover__model-additional-menu",variant:"profile",isReportHidden:S}),!l&&a.createElement(en,{user:i}),N&&P&&$&&a.createElement(r.w,{isProfilePlace:!0})),this.renderSocket()))}constructor(e){super(e),(0,i._)(this,"handlePhotoUpload",()=>{this.setState({isPhotoCoverLoading:!0})}),(0,i._)(this,"handleCoverReposition",()=>{let{userCoverPreview:{heightShift:e}}=this.props;this.setState({isCoverReposition:!0,initalPosition:e,currentPosition:e})}),(0,i._)(this,"handleDragStart",e=>{let{isCoverReposition:t}=this.state;t&&(e.stopPropagation(),this.setState({isChanging:!0,startPosition:e.pageY}))}),(0,i._)(this,"onDrag",e=>{let{isChanging:t,startPosition:l,initalPosition:i,isCoverReposition:a}=this.state;if(a&&(e.stopPropagation(),t)){let t=e.pageY-l,a=i-Math.round(t/364*100);a>=0&&a<=100&&this.setState({currentPosition:a})}}),(0,i._)(this,"onDragEnd",e=>{let{currentPosition:t,isCoverReposition:l}=this.state;l&&(e.stopPropagation(),this.setState({isChanging:!1,initalPosition:t}))}),(0,i._)(this,"handleSaveCoverPosition",()=>{let{currentPosition:e}=this.state;this.setState({isCoverReposition:!1}),this.props.saveCoverSettings({heightShift:e})}),(0,i._)(this,"handleResetCoverPosition",()=>{let{userCoverPreview:{heightShift:e}}=this.props;this.setState({isCoverReposition:!1,initalPosition:e,currentPosition:e})}),(0,i._)(this,"handleFullscreenClick",()=>{let{user:e,hasCover:t,userCoverPreview:l,shouldHidePhotosUploadForUsers:i,isNewFlow:a,needVerifyAge:s}=this.props,{isCoverReposition:r}=this.state;r||i&&!a||s||!t||l.isProcessing||h.P4.show(D.m,{user:e})}),(0,i._)(this,"renderCoverPlaceholder",()=>{var e,t;let{user:l,editable:i,userCoverPreview:s,shouldHidePhotosUploadForUsers:r,isNewFlow:n}=this.props,{isAvatarLoading:o,isPhotoCoverLoading:d}=this.state,c=null;return c=!(null===(e=l.profile)||void 0===e?void 0:e.avatarUrl)||o||r&&!n||this.getIsHiddenByAgeVerification()?a.createElement("div",{className:"pattern-image"}):a.createElement("img",{className:"blured-image",src:null===(t=l.profile)||void 0===t?void 0:t.avatarUrl,alt:""}),a.createElement(a.Fragment,null,c,i&&o||(d||s.isProcessing)&&a.createElement("div",{className:"media-processing"},a.createElement(u.Z,{size:48}),a.createElement("div",{className:"loader-text"},(0,E.dW)("profileCover.videoProcessing"))))}),(0,i._)(this,"renderCoverMedia",()=>{let{userCoverPreview:e}=this.props,{isPhotoCoverLoading:t}=this.state;return e.isProcessing||t?a.createElement(a.Fragment,null,this.renderCoverPlaceholder()):e.type===M.Nq.VIDEO&&e.src&&e.preview?a.createElement(y,{src:e.src,poster:e.preview}):e.type===M.Nq.IMAGE&&e.src?a.createElement("img",{src:e.src,alt:""}):null}),(0,i._)(this,"avatarUploadEventHandler",({name:e})=>{e===p.Wh.FULL&&this.setState({isAvatarLoading:!1})}),(0,i._)(this,"imageCoverUploadEventHandler",({fileName:e})=>{let{userCoverPreview:t}=this.props;e===(null==t?void 0:t.src)&&this.setState({isPhotoCoverLoading:!1,isCoverReposition:!!(p.BROWSER_CAPABILITIES.desktop&&!p.BROWSER_CAPABILITIES.isTablet),initalPosition:t.heightShift})}),this.state={isAvatarLoading:!1,isCoverReposition:!1,isPhotoCoverLoading:!1,avatarUrl:null,isChanging:!1,isFirstRender:!0,startPosition:0,initalPosition:50,currentPosition:0}}}let eS=(0,s.$j)((e,t)=>{var l;let{user:{isModel:i,id:a,userRanking:s},isComputerVisionForUserPhotosEnabled:r,editable:n}=t,o=!n||r&&(null==s?void 0:s.realLeague)&&"grey"!==s.realLeague;return{isUnderPreModeration:(0,eC.sB)(e,a),userCoverPreview:(0,eC.Mo)(e),hasCover:(0,eC.st)(e),isModel:(0,G.GS)(e),shouldHidePhotosUploadForUsers:!i,isMoreVisibleReportButtonEnabled:(0,f.TWc)(e),needVerifyAge:(0,f.m5e)(e),currentUserId:(0,x.rc)(e),currentUserIsModel:null===(l=(0,x.ts)(e))||void 0===l?void 0:l.isModel,isNewFlow:o,isShareLinksButtonEnabled:(0,f.mUy)(e),isDSAReportModelContentMessageEnabled:(0,f.hzN)(e)}},eP)(ek)},39709:(e,t,l)=>{l.d(t,{l:()=>r});var i=l(27378),a=l(4289),s=l(23865);let r=({className:e,menuItems:t})=>{let l=t.findIndex(e=>e.isActive());return i.createElement("div",{className:`profile-navigation header-sub ${e}`},i.createElement("div",{className:"widescreen-container navigation-container"},i.createElement(s.Z,{className:"nav-left",activeIndex:l},t.map(({key:e,label:t,to:l,isActive:s,count:r})=>i.createElement(a.OL,{key:e,className:"navbar-item",to:l,isActive:s,replace:!0},r?i.createElement(i.Fragment,null,t,i.createElement("span",{className:"header-sub-item-count"},r)):t)))))}},7637:(e,t,l)=>{l.d(t,{r:()=>r});var i=l(27378),a=l(98655),s=l(98846);let r=(0,s.n)({resolved:{},chunkName:()=>"ProfileAvatarModal",isReady(e){let t=this.resolve(e);return!0===this.resolved[t]&&!!l.m[t]},importAsync:()=>l.e(6688).then(l.bind(l,44246)),requireAsync(e){let t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){let t=this.resolve(e);return l(t)},resolve:()=>44246},{ssr:!1,fallback:i.createElement(a.c,null)})},92487:(e,t,l)=>{l.d(t,{m:()=>r});var i=l(27378),a=l(98655),s=l(98846);let r=(0,s.n)({resolved:{},chunkName:()=>"ProfileCoverModal",isReady(e){let t=this.resolve(e);return!0===this.resolved[t]&&!!l.m[t]},importAsync:()=>l.e(9921).then(l.bind(l,20543)),requireAsync(e){let t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){let t=this.resolve(e);return l(t)},resolve:()=>20543},{ssr:!1,fallback:i.createElement(a.c,null)})},48848:(e,t,l)=>{l.d(t,{Z:()=>y});var i=l(18775),a=l(29955),s=l(27378),r=l(48204),n=l(94853),o=l(51302),d=l(71447),c=l(31370),m=l(57662),u=l(58632),p=l(25750),h=l(99748),v=l(56509),E=l(4043),g=l(21044),f=l(66483);class b extends s.Component{render(){let{className:e,counter:t,friends:l,hasMore:i,isOwnProfile:a,isPending:r,isUsersPending:d,username:m,...u}=this.props,E=a?(0,v.dW)("myFriends"):(0,v.dW)("friendsTitle",{username:m}),f=t?` (${t})`:"",b=i&&!r,_=l.slice(0,g.S$);return s.createElement(o.Z,{allItemIds:_.map(({id:e})=>e),itemsNameForConfirmTranslationsKey:"editableCollection.users",sectionName:(0,v.dW)("seo.title.friends"),onItemsRemove:this.listEditHandler,editableCollectionId:n.g.friends,fallback:s.createElement(p.Z,null)},s.createElement(c.Z,{isEditable:a,isPending:r||d,title:s.createElement(s.Fragment,null,s.createElement("h2",null,E)," ",f),...u,className:(0,h.AK)("user-friends",e)},[..._.map(this.renderFriendItem),...b?[this.renderHasMoreItem()]:[]]))}constructor(...e){super(...e),(0,i._)(this,"listEditHandler",e=>{(0,a.Z)(e)||this.props.removeFriends(e)}),(0,i._)(this,"renderFriendItem",e=>{let{modelFanClubTiers:t}=this.props;return s.createElement(d.Z,{key:e.id,type:n.d.userRef},s.createElement(m.Z,{id:e.id,fanClubTier:null==t?void 0:t[e.id],user:e}))}),(0,i._)(this,"renderHasMoreItem",()=>{let{isOwnProfile:e,username:t}=this.props,l=e?"/friends":`/user/${t}/friends`;return s.createElement(u.Z,{key:"empty",linkTo:l})})}}let _={removeFriends:E.Od},y=(0,r.$j)((e,t)=>{let{users:l}=e;return{isUsersPending:l.isPending,friends:(0,f.KY)(e,t.friendIds)}},_)(b)},51299:(e,t,l)=>{l.d(t,{d:()=>s});var i=l(27378),a=l(98846);let s=(0,a.n)({resolved:{},chunkName:()=>"users",isReady(e){let t=this.resolve(e);return!0===this.resolved[t]&&!!l.m[t]},importAsync:()=>l.e(2681).then(l.bind(l,83249)),requireAsync(e){let t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){let t=this.resolve(e);return l(t)},resolve:()=>83249},{fallback:i.createElement(i.Fragment,null)})},81535:(e,t,l)=>{l.d(t,{Q:()=>a});var i=l(98846);let a=(0,i.n)({resolved:{},chunkName:()=>"user-wizard",isReady(e){let t=this.resolve(e);return!0===this.resolved[t]&&!!l.m[t]},importAsync:()=>(0,i.J)(()=>Promise.all([l.e(161),l.e(9064)]).then(l.bind(l,39718))),requireAsync(e){let t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){let t=this.resolve(e);return l(t)},resolve:()=>39718})},38933:(e,t,l)=>{l.d(t,{U:()=>d,Y:()=>c});var i=l(80406),a=l(16023),s=l(21044),r=l(81326),n=l(20243),o=l(69452);let d=(0,i.P1)([a.zq,a.eb],(e,t)=>{var l,i,a,s,r,n;let o=null!==(n=null===(l=null!=e?e:t)||void 0===l?void 0:l.match.params)&&void 0!==n?n:{},{mediaType:d}=o,{photoId:c,mediaId:m}=o;return(c=null!=c?c:null===(a=m)||void 0===a?void 0:null===(i=a.split("-"))||void 0===i?void 0:i[1],m=null===(r=m)||void 0===r?void 0:null===(s=r.split("-"))||void 0===s?void 0:s[0],d&&m)?{mediaType:d,mediaId:parseInt(m,10),...c&&{photoId:parseInt(c,10)}}:null}),c=(0,i.P1)([d,e=>e],(e,t)=>{let{mediaType:l,mediaId:i,photoId:a}=e||{};switch(l){case s.oZ.ALBUM:return a?(0,n.tG)(t,i,a):(0,r.vC)(t,i);case s.oZ.VIDEOS:return(0,o.Mq)(t,i);default:return null}})},2811:(e,t,l)=>{l.d(t,{Gq:()=>m,Mo:()=>d,_6:()=>o,sB:()=>p,st:()=>u,uM:()=>c});var i=l(80406),a=l(21044),s=l(74012);let r=e=>{var t,l,i,s,r,n,o,d,c,m,u,p,h,v,E;return(null===(t=e.userCover)||void 0===t?void 0:t.type)===a.Nq.VIDEO?(null===(c=e.userCover)||void 0===c?void 0:null===(d=c.previews)||void 0===d?void 0:d["720p"])||(null===(u=e.userCover)||void 0===u?void 0:null===(m=u.previews)||void 0===m?void 0:m["480p"])||(null===(h=e.userCover)||void 0===h?void 0:null===(p=h.previews)||void 0===p?void 0:p["360p"])||(null===(E=e.userCover)||void 0===E?void 0:null===(v=E.previews)||void 0===v?void 0:v["240p"]):(null===(i=e.userCover)||void 0===i?void 0:null===(l=i.thumbs)||void 0===l?void 0:l.thumb)||(null===(r=e.userCover)||void 0===r?void 0:null===(s=r.thumbs)||void 0===s?void 0:s.thumbTablet)||(null===(o=e.userCover)||void 0===o?void 0:null===(n=o.thumbs)||void 0===n?void 0:n.thumbPhone)},n=e=>{var t,l,i,a,s,r,n,o;return(null===(l=e.userCover)||void 0===l?void 0:null===(t=l.trailers)||void 0===t?void 0:t["720p"])||(null===(a=e.userCover)||void 0===a?void 0:null===(i=a.trailers)||void 0===i?void 0:i["480p"])||(null===(r=e.userCover)||void 0===r?void 0:null===(s=r.trailers)||void 0===s?void 0:s["360p"])||(null===(o=e.userCover)||void 0===o?void 0:null===(n=o.trailers)||void 0===n?void 0:n["240p"])},o=({userCover:e})=>{var t,l;return(null==e?void 0:null===(t=e.settings)||void 0===t?void 0:t.heightShift)!==void 0?null==e?void 0:null===(l=e.settings)||void 0===l?void 0:l.heightShift:a.lM},d=e=>{var t,l,i,s,d;return(null===(t=e.userCover)||void 0===t?void 0:t.type)===a.Nq.VIDEO?{type:null===(l=e.userCover)||void 0===l?void 0:l.type,src:n(e),preview:r(e),heightShift:o(e),isProcessing:null===(i=e.userCover)||void 0===i?void 0:i.isProcessing}:{type:null===(s=e.userCover)||void 0===s?void 0:s.type,src:null===(d=e.userCover)||void 0===d?void 0:d.src,heightShift:o(e)}},c=e=>e.userCover,m=e=>{var t,l;return(null===(t=e.userCover)||void 0===t?void 0:t.type)===a.Nq.IMAGE?null===(l=e.userCover)||void 0===l?void 0:l.src:null},u=e=>{var t;return!!(null===(t=e.userCover)||void 0===t?void 0:t.type)},p=(0,i.P1)([(e,t)=>t,s.rc,e=>{var t;return null===(t=e.userCover)||void 0===t?void 0:t.isUnderPreModeration}],(e,t,l)=>e===t&&l)},46118:(e,t,l)=>{l.d(t,{Z:()=>v});var i=l(90497),a=l(8484),s=l(13744),r=l(40670),n=l(42052),o=l(58923),d=Math.min;let c=function(e,t,l){for(var c=l?r.Z:s.Z,m=e[0].length,u=e.length,p=u,h=Array(u),v=1/0,E=[];p--;){var g=e[p];p&&t&&(g=(0,i.Z)(g,(0,n.Z)(t))),v=d(g.length,v),h[p]=!l&&(t||m>=120&&g.length>=120)?new a.Z(p&&g):void 0}g=e[0];var f=-1,b=h[0];e:for(;++f<m&&E.length<v;){var _=g[f],y=t?t(_):_;if(_=l||0!==_?_:0,!(b?(0,o.Z)(b,y):c(E,y,l))){for(p=u;--p;){var C=h[p];if(!(C?(0,o.Z)(C,y):c(e[p],y,l)))continue e}b&&b.push(y),E.push(_)}}return E};var m=l(92042),u=l(93530);let p=function(e){return(0,u.Z)(e)?e:[]};var h=(0,m.Z)(function(e){var t=(0,i.Z)(e,p);return t.length&&t[0]===e[0]?c(t):[]});let v=h}}]);