/*! VERSION | 11.1.0 */"use strict";(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[3712],{82348:(e,t,l)=>{l.d(t,{Z:()=>a});let a={overlay:"Modal__overlay#s0","appear-overlay":"Modal__appear-overlay#G6",appearOverlay:"Modal__appear-overlay#G6",overlay_clickable:"Modal__overlay_clickable#ho",overlayClickable:"Modal__overlay_clickable#ho",closeIcon:"Modal__closeIcon#PR",hidden:"Modal__hidden#Bq",scrollableOverlay:"Modal__scrollableOverlay#SW",root:"Modal#ph",appear:"Modal__appear#Se",root_masked:"Modal_masked#kT",rootMasked:"Modal_masked#kT",hide:"Modal__hide#_L",root_fullscreen:"Modal_fullscreen#Ev",rootFullscreen:"Modal_fullscreen#Ev",content:"Modal__content#zn",outsideContent:"Modal__outsideContent#dq"}},53873:(e,t,l)=>{l.d(t,{W:()=>n});var a=l(98846),r=l(80176);let n=(0,a.n7)({resolved:{},chunkName:()=>"models-studios",isReady(e){let t=this.resolve(e);return!0===this.resolved[t]&&!!l.m[t]},importAsync:()=>Promise.all([l.e(9641),l.e(7305),l.e(3929)]).then(l.bind(l,32402)),requireAsync(e){let t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){return l(this.resolve(e))},resolve:()=>32402});n.checkAccess=r.zF},40904:(e,t,l)=>{l.d(t,{i:()=>n});var a=l(98846),r=l(80176);let n=(0,a.n7)({resolved:{},chunkName:()=>"models",isReady(e){let t=this.resolve(e);return!0===this.resolved[t]&&!!l.m[t]},importAsync:()=>Promise.all([l.e(9641),l.e(6425),l.e(9562),l.e(7782),l.e(9813),l.e(4427),l.e(8821),l.e(3132),l.e(927),l.e(5881),l.e(8351),l.e(6638),l.e(3196)]).then(l.bind(l,42549)),requireAsync(e){let t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){return l(this.resolve(e))},resolve:()=>42549});n.checkAccess=r._v},5961:(e,t,l)=>{l.d(t,{Z:()=>s});var a=l(98846),r=l(80176);let n=(0,a.n7)({resolved:{},chunkName:()=>"earnings",isReady(e){let t=this.resolve(e);return!0===this.resolved[t]&&!!l.m[t]},importAsync:()=>Promise.all([l.e(9641),l.e(6638),l.e(6711)]).then(l.bind(l,45898)),requireAsync(e){let t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){return l(this.resolve(e))},resolve:()=>45898});n.checkAccess=r.uT;let s=n},47537:(e,t,l)=>{l.d(t,{S:()=>n});var a=l(98846),r=l(80176);let n=(0,a.n7)({resolved:{},chunkName:()=>"models",isReady(e){let t=this.resolve(e);return!0===this.resolved[t]&&!!l.m[t]},importAsync:()=>Promise.all([l.e(9641),l.e(6425),l.e(9562),l.e(7782),l.e(9813),l.e(4427),l.e(8821),l.e(3132),l.e(927),l.e(5881),l.e(8351),l.e(6638),l.e(3196)]).then(l.bind(l,26159)),requireAsync(e){let t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){return l(this.resolve(e))},resolve:()=>26159});n.checkAccess=r._v},92276:(e,t,l)=>{l.d(t,{Z:()=>s});var a=l(98846),r=l(80176);let n=(0,a.n7)({resolved:{},chunkName:()=>"user-knights",isReady(e){let t=this.resolve(e);return!0===this.resolved[t]&&!!l.m[t]},importAsync:()=>Promise.all([l.e(4427),l.e(3085)]).then(l.bind(l,75208)),requireAsync(e){let t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){return l(this.resolve(e))},resolve:()=>75208});n.checkAccess=r.vQ;let s=n},15768:(e,t,l)=>{l.d(t,{K:()=>n});var a=l(98846),r=l(80176);let n=(0,a.n7)({resolved:{},chunkName:()=>"models",isReady(e){let t=this.resolve(e);return!0===this.resolved[t]&&!!l.m[t]},importAsync:()=>Promise.all([l.e(9641),l.e(6425),l.e(9562),l.e(7782),l.e(9813),l.e(4427),l.e(8821),l.e(3132),l.e(927),l.e(5881),l.e(8351),l.e(6638),l.e(3196)]).then(l.bind(l,59151)),requireAsync(e){let t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){return l(this.resolve(e))},resolve:()=>59151});n.checkAccess=r._v},8680:(e,t,l)=>{l.d(t,{h:()=>n});var a=l(98846),r=l(80176);let n=(0,a.n7)({resolved:{},chunkName:()=>"models",isReady(e){let t=this.resolve(e);return!0===this.resolved[t]&&!!l.m[t]},importAsync:()=>Promise.all([l.e(9641),l.e(6425),l.e(9562),l.e(7782),l.e(9813),l.e(4427),l.e(8821),l.e(3132),l.e(927),l.e(5881),l.e(8351),l.e(6638),l.e(3196)]).then(l.bind(l,7110)),requireAsync(e){let t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){return l(this.resolve(e))},resolve:()=>7110});n.checkAccess=r._v},12881:(e,t,l)=>{l.d(t,{H:()=>n,Z:()=>s});var a=l(98846),r=l(80176);let n=(0,a.n7)({resolved:{},chunkName:()=>"news",isReady(e){let t=this.resolve(e);return!0===this.resolved[t]&&!!l.m[t]},importAsync:()=>l.e(9697).then(l.bind(l,56086)),requireAsync(e){let t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){return l(this.resolve(e))},resolve:()=>56086});n.checkAccess=r.Tn;let s=(0,a.n7)({resolved:{},chunkName:()=>"news",isReady(e){let t=this.resolve(e);return!0===this.resolved[t]&&!!l.m[t]},importAsync:()=>l.e(9697).then(l.bind(l,33370)),requireAsync(e){let t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){return l(this.resolve(e))},resolve:()=>33370});s.checkAccess=r.zF},20769:(e,t,l)=>{l.d(t,{Z:()=>s});var a=l(98846),r=l(80176);let n=(0,a.n7)({resolved:{},chunkName:()=>"notifications",isReady(e){let t=this.resolve(e);return!0===this.resolved[t]&&!!l.m[t]},importAsync:()=>l.e(1909).then(l.bind(l,76682)),requireAsync(e){let t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){return l(this.resolve(e))},resolve:()=>76682});n.checkAccess=r.ZT;let s=n},19120:(e,t,l)=>{l.d(t,{H:()=>n});var a=l(98846),r=l(80176);let n=(0,a.n7)({resolved:{},chunkName:()=>"models-studios",isReady(e){let t=this.resolve(e);return!0===this.resolved[t]&&!!l.m[t]},importAsync:()=>Promise.all([l.e(9641),l.e(7305),l.e(3929)]).then(l.bind(l,80056)),requireAsync(e){let t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){return l(this.resolve(e))},resolve:()=>80056});n.checkAccess=r.Kp},96993:(e,t,l)=>{l.d(t,{o:()=>n});var a=l(98846),r=l(80176);let n=(0,a.n7)({resolved:{},chunkName:()=>"models-studios",isReady(e){let t=this.resolve(e);return!0===this.resolved[t]&&!!l.m[t]},importAsync:()=>Promise.all([l.e(9641),l.e(7305),l.e(3929)]).then(l.bind(l,58774)),requireAsync(e){let t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){return l(this.resolve(e))},resolve:()=>58774});n.checkAccess=r.Kp},68359:(e,t,l)=>{l.d(t,{Z:()=>a});let a=(0,l(98846).n7)({resolved:{},chunkName:()=>"kyc-by-link",isReady(e){let t=this.resolve(e);return!0===this.resolved[t]&&!!l.m[t]},importAsync:()=>Promise.all([l.e(7782),l.e(5124)]).then(l.bind(l,69262)),requireAsync(e){let t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){return l(this.resolve(e))},resolve:()=>69262})},35817:(e,t,l)=>{l.d(t,{S:()=>n});var a=l(98846),r=l(80176);let n=(0,a.n7)({resolved:{},chunkName:()=>"studios",isReady(e){let t=this.resolve(e);return!0===this.resolved[t]&&!!l.m[t]},importAsync:()=>Promise.all([l.e(9641),l.e(7782),l.e(7305),l.e(5881),l.e(8342)]).then(l.bind(l,58832)),requireAsync(e){let t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){return l(this.resolve(e))},resolve:()=>58832});n.checkAccess=r.Fg},4509:(e,t,l)=>{l.d(t,{z:()=>n});var a=l(98846),r=l(80176);let n=(0,a.n7)({resolved:{},chunkName:()=>"studios",isReady(e){let t=this.resolve(e);return!0===this.resolved[t]&&!!l.m[t]},importAsync:()=>Promise.all([l.e(9641),l.e(7782),l.e(7305),l.e(5881),l.e(8342)]).then(l.bind(l,14536)),requireAsync(e){let t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){return l(this.resolve(e))},resolve:()=>14536});n.checkAccess=r.Wl},37212:(e,t,l)=>{l.d(t,{k:()=>n});var a=l(98846),r=l(80176);let n=(0,a.n7)({resolved:{},chunkName:()=>"studios",isReady(e){let t=this.resolve(e);return!0===this.resolved[t]&&!!l.m[t]},importAsync:()=>Promise.all([l.e(9641),l.e(7782),l.e(7305),l.e(5881),l.e(8342)]).then(l.bind(l,86361)),requireAsync(e){let t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){return l(this.resolve(e))},resolve:()=>86361});n.checkAccess=r.Wl},93831:(e,t,l)=>{l.d(t,{V:()=>n});var a=l(98846),r=l(80176);let n=(0,a.n7)({resolved:{},chunkName:()=>"studios",isReady(e){let t=this.resolve(e);return!0===this.resolved[t]&&!!l.m[t]},importAsync:()=>Promise.all([l.e(9641),l.e(7782),l.e(7305),l.e(5881),l.e(8342)]).then(l.bind(l,77616)),requireAsync(e){let t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){return l(this.resolve(e))},resolve:()=>77616});n.checkAccess=r.Y7},19531:(e,t,l)=>{l.d(t,{Y:()=>n});var a=l(98846),r=l(80176);let n=(0,a.n7)({resolved:{},chunkName:()=>"studios",isReady(e){let t=this.resolve(e);return!0===this.resolved[t]&&!!l.m[t]},importAsync:()=>Promise.all([l.e(9641),l.e(7782),l.e(7305),l.e(5881),l.e(8342)]).then(l.bind(l,56040)),requireAsync(e){let t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){return l(this.resolve(e))},resolve:()=>56040});n.checkAccess=r.Y7},69799:(e,t,l)=>{l.d(t,{J:()=>n});var a=l(98846),r=l(80176);let n=(0,a.n7)({resolved:{},chunkName:()=>"studios",isReady(e){let t=this.resolve(e);return!0===this.resolved[t]&&!!l.m[t]},importAsync:()=>Promise.all([l.e(9641),l.e(7782),l.e(7305),l.e(5881),l.e(8342)]).then(l.bind(l,15450)),requireAsync(e){let t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){return l(this.resolve(e))},resolve:()=>15450});n.checkAccess=r.Y7},52477:(e,t,l)=>{l.d(t,{O:()=>n});var a=l(98846),r=l(80176);let n=(0,a.n7)({resolved:{},chunkName:()=>"models",isReady(e){let t=this.resolve(e);return!0===this.resolved[t]&&!!l.m[t]},importAsync:()=>Promise.all([l.e(9641),l.e(6425),l.e(9562),l.e(7782),l.e(9813),l.e(4427),l.e(8821),l.e(3132),l.e(927),l.e(5881),l.e(8351),l.e(6638),l.e(3196)]).then(l.bind(l,65709)),requireAsync(e){let t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){return l(this.resolve(e))},resolve:()=>65709});n.checkAccess=r.J$},82587:(e,t,l)=>{l.d(t,{Z:()=>s});var a=l(98846),r=l(80176);let n=(0,a.n7)({resolved:{},chunkName:()=>"user-tokens",isReady(e){let t=this.resolve(e);return!0===this.resolved[t]&&!!l.m[t]},importAsync:()=>Promise.all([l.e(7305),l.e(360)]).then(l.bind(l,24064)),requireAsync(e){let t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){return l(this.resolve(e))},resolve:()=>24064});n.checkAccess=r.sr;let s=n},49246:(e,t,l)=>{l.d(t,{l:()=>f,Z:()=>C});var a=l(27378),r=l(48204),n=l(99382),s=(l(29413),l(74753)),i=l(85353),o=l(41452),c=l(38487),d=l(99748),m=l(97606),u=l(68020),p=l(34251),h=l(8495),v=l(25306),E=l(78983);let g=({modelAgreement:e,person:t,user:l,canonicalDomainName:a,regions:r,username:n,i18n:{formatTime:s,fromApiToRenderFormat:i,trans:o}})=>{let c={beneficialOwner:o("studioDocumentsPage.fields.beneficialOwner"),authorizedRepresentative:o("studioDocumentsPage.fields.authorizedRepresentative")},d=(null==t?void 0:t.country)?null==r?void 0:r[t.country]:void 0,m="";if(d){var u;m=(null===(u=d.filter(({code:e})=>e===(null==t?void 0:t.region))[0])||void 0===u?void 0:u.title)||""}let g={address:null==t?void 0:t.address,birthDate:i((null==t?void 0:t.birthDate)||"",E.TIME_FORMATS.HUMAN_DATE),companyName:(0,v.ts)(),companyAddress:(0,h.wX)(),studioCompanyName:null==t?void 0:t.companyName,date:s(new Date,E.TIME_FORMATS.HUMAN_DATE),name:`${null==t?void 0:t.lastName} ${null==t?void 0:t.firstName}`,canonicalHost:a,canonicalHostUppercase:a.toUpperCase(),idNumber:null==t?void 0:t.idNumber,registrationNumber:null==t?void 0:t.registrationNumber,zip:null==t?void 0:t.zip,city:null==t?void 0:t.city,country:(null==t?void 0:t.country)?o(`country.${null==t?void 0:t.country}`):"",region:m||"-",whoApplying:(null==t?void 0:t.whoApplying)?c[t.whoApplying]:"",firstName:null==t?void 0:t.firstName,lastName:null==t?void 0:t.lastName,username:n||(null==l?void 0:l.username)},b=["companyName","companyAddress"];return e.replace(/%(\w+)%/g,(e,t)=>"address"!==t||g[t]?b.includes(t)?g[t]||e:(0,p.Z)(g[t]||e):"")},b="agreement-popup-checkbox",f=(0,a.memo)(({isSigned:e,person:t,onClose:l,preventDefaultOnSubmit:r,onSign:u,title:p,isLoading:h,isCloseDisabled:v,checkboxLabel:E,isInBackground:f,isDesktopColumn:C,modelAgreement:y,user:N,canonicalDomainName:_,regions:k,username:A,className:S,isStudioAgreement:T,externalAgreement:w})=>{let P=(0,m.QT)(),{trans:M}=P,[I,R]=(0,a.useState)(!1),Z=e||I,L=(0,a.useMemo)(()=>(null==t?void 0:t.agreement)||g({modelAgreement:w||y,person:t,user:N,canonicalDomainName:_,regions:k,username:A,i18n:P}),[t,w,y,N,_,k,A,P]),D=e=>{r&&e.preventDefault(),u(L)},B=(0,a.useCallback)(()=>a.createElement(a.Fragment,null,p||M(T?"studioDocumentsPage.modalTitle":"documentsPage.agreement.modalTitle")),[T,p,M]),F=!Z||h||!L;return a.createElement(o.Z,{className:(0,d.AK)("agreement-popup",{"agreement-popup--desktop-column":C,"agreement-popup--loading":h}),modalInnerClassName:S,onClose:l,isInBackground:f,isWrapperCloseDisabled:!0,header:B(),footer:a.createElement(a.Fragment,null,a.createElement("div",{className:"agreement-footer-top"},a.createElement("div",{className:"agreement-popup-input"},a.createElement(s.Z,{checked:Z,id:b,theme:"grey",onChange:()=>{R(e=>!e)},type:"checkbox"}),a.createElement("label",{htmlFor:b},E||M(T?"studioDocumentsPage.modalCheckboxLabel":"documentsPage.agreement.agreeCheckboxCaption"))),a.createElement(n.ZP,{type:"submit",loading:h,onClick:D,disabled:F,style:"default-filled",size:"medium"},M("documentsPage.agreement.signButtonCaption"))),a.createElement("div",{className:"agreement-footer-bottom"},!v&&a.createElement(n.ZP,{onClick:l,style:"default-outline",size:"medium"},M("documentsPage.agreement.cancelButtonCaption")),a.createElement(n.ZP,{type:"submit",loading:h,onClick:D,disabled:F,style:"default-filled",size:"medium"},M("documentsPage.agreement.signButtonCaption"))))},L?a.createElement(c.Z,null,a.createElement("div",{className:"agreement-text",dangerouslySetInnerHTML:{__html:L}})):a.createElement(i.Z,{isCentered:!0}))});f.defaultProps={isInBackground:!1,isCloseDisabled:!1,isDesktopColumn:!1,isLoading:!1,preventDefaultOnSubmit:!0,onClose:()=>!1};let C=(0,r.$j)(e=>{var t,l;return{modelAgreement:(null==e?void 0:null===(t=e.persons)||void 0===t?void 0:t.modelAgreement)||"",canonicalDomainName:(null==e?void 0:null===(l=e.whiteLabels)||void 0===l?void 0:l.canonicalDomainName)||"",regions:(0,u.D4)(e)}})(f)},92562:(e,t,l)=>{l.d(t,{Z:()=>f});var a=l(27378),r=l(48204),n=l(89838),s=l(1786),i=l(59374),o=l(97065),c=l(71504),d=l(99382),m=l(29413),u=l(84423),p=l(97606),h=l(243),v=l(12278),E=l(29315),g=l(58320);let b={stopBroadcast:n.b_,showModelWizardForce:o.eX},f=(0,r.$j)(e=>({currentUser:(0,v.ts)(e),isBroadcasting:(0,s.fT)(e),isLoggedIn:(0,v.Cg)(e),isStartBroadcastAllowed:(0,c.IC)(e),isExternalBroadcast:(0,g.hv)(e),isPageAllowedToStartBroadcast:(0,h.BD)(e)}),b)(({isBroadcasting:e,isExternalBroadcast:t,isLoggedIn:l,isPageAllowedToStartBroadcast:r,size:n="default",className:s="",withIcon:o=!0,stopBroadcast:c,currentUser:h,isStartBroadcastAllowed:v,showModelWizardForce:g})=>{let{trans:b}=(0,p.QT)(),f=(0,a.useCallback)(()=>{c({stopReason:"stopBroadcastingClick"})},[c]),C=(0,E.u)({isStopButton:!0,shouldCheckModelStatusManually:!1}),y=(0,a.useCallback)(e=>{if(!v){e.preventDefault(),g();return}(null==h?void 0:h.isEmailVerified)||(e.preventDefault(),u.P4.show(i.W,{variant:"confirmEmailWarning"}))},[h,v,g]);return!l||t?null:e?a.createElement(d.ZP,{style:"end-broadcasting",size:n,className:s,onClick:f,disabled:C},o&&a.createElement(m.Z,{img:"stop",size:13}),a.createElement("span",null,b("header.endBroadcasting"))):r?a.createElement(d.ZP,{style:"apply",size:n,to:"/start-broadcasting",type:"link",className:s,onClick:y},o&&a.createElement(m.Z,{img:"play-2",size:14}),a.createElement("span",null,b("button.broadcastCenter"))):null})},72152:(e,t,l)=>{l.d(t,{e:()=>n});var a=l(27378),r=l(98655);let n=(0,l(98846).n7)({resolved:{},chunkName:()=>"CallMeLaterModal",isReady(e){let t=this.resolve(e);return!0===this.resolved[t]&&!!l.m[t]},importAsync:()=>l.e(341).then(l.bind(l,49850)),requireAsync(e){let t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){return l(this.resolve(e))},resolve:()=>49850},{ssr:!1,fallback:a.createElement(r.c,null)})},15430:(e,t,l)=>{l.d(t,{z:()=>n});var a=l(27378),r=l(97969);let n=({onSubmit:e,onClose:t,id:l,isOpen:n})=>a.createElement(r.Y,{onClose:t,onSubmit:e,id:l,isOpen:n,title:"tokensHistory.clearHistoryModal.title",description:"tokensHistory.clearHistoryModal.description",confirmation:"tokensHistory.clearHistoryModal.confirmation"})},59374:(e,t,l)=>{l.d(t,{W:()=>n});var a=l(27378),r=l(98655);let n=(0,l(98846).n7)({resolved:{},chunkName:()=>"ConfirmEmailModal",isReady(e){let t=this.resolve(e);return!0===this.resolved[t]&&!!l.m[t]},importAsync:()=>l.e(7984).then(l.bind(l,86054)),requireAsync(e){let t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){return l(this.resolve(e))},resolve:()=>86054},{ssr:!1,fallback:a.createElement(r.c,null)})},97969:(e,t,l)=>{l.d(t,{Y:()=>n});var a=l(27378),r=l(98655);let n=(0,l(98846).n7)({resolved:{},chunkName:()=>"DeleteActivityBaseModal",isReady(e){let t=this.resolve(e);return!0===this.resolved[t]&&!!l.m[t]},importAsync:()=>l.e(9417).then(l.bind(l,98022)),requireAsync(e){let t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){return l(this.resolve(e))},resolve:()=>98022},{ssr:!1,resolveComponent:e=>e.DeleteActivityBaseModal,fallback:a.createElement(r.c,null)})},44143:(e,t,l)=>{l.d(t,{a:()=>n});var a=l(27378),r=l(98655);let n=(0,l(98846).n7)({resolved:{},chunkName:()=>"EndPrivateConfirmationModal",isReady(e){let t=this.resolve(e);return!0===this.resolved[t]&&!!l.m[t]},importAsync:()=>l.e(4322).then(l.bind(l,37279)),requireAsync(e){let t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){return l(this.resolve(e))},resolve:()=>37279},{ssr:!1,fallback:a.createElement(r.c,null)})},6267:(e,t,l)=>{l.d(t,{s:()=>s});var a=l(27378),r=l(99748);let n={root:"Discount#BO"},s=e=>a.createElement("span",{className:(0,r.AK)(n.root,e.className)},"-",e.discount,"%")},15867:(e,t,l)=>{l.d(t,{O:()=>d});var a=l(51932),r=l(94380),n=l(95654),s=l(80167),i=l(243),o=l(31843),c=l(27);let d=()=>{let e=(0,n.C)(c.cq),t=(0,n.C)(i.mT),l=(0,r.T)();return(0,s.a)("KeyC",()=>{if(e.length){l((0,o.uO)(e[0]));return}t&&l((0,a.cU)(!0))},{shouldPreventEvent:!0}),null}},25604:(e,t,l)=>{l.d(t,{U:()=>n});var a=l(27378),r=l(20717);let n=({className:e})=>{let t=(0,r.jz)("cams/components/ui/GoldenDiamond/images/golden-diamond.svg");return a.createElement("img",{className:e,src:t,alt:"Golden Diamond"})}},54026:(e,t,l)=>{l.d(t,{Z:()=>s});var a=l(27378),r=l(99748),n=l(20717);let s=({className:e,isExclusive:t,hasShadow:l=!0})=>{let s=(0,n.jz)(`cams/components/ui/HeartImage/images/heart${t?"-exclusive":""}.svg`);return a.createElement("img",{className:(0,r.AK)("heart-image",e,{"heart-image--shadow":l}),src:s,alt:`heart${t?"-exclusive":""}`})}},1581:(e,t,l)=>{l.d(t,{T:()=>E,Z:()=>g});var a=l(18775),r=l(27378),n=l(48204),s=l(8512),i=l(77382),o=l(65804),c=l(29413),d=l(99973),m=l(99748),u=l(97606),p=l(65103);let h={showModal:i.K4};class v extends r.Component{renderContent(){let{isKiirooConnected:e,user:t}=this.props;return e?t.isModel?this.props.i18n.trans("kiirooAlert.userConnected"):this.props.i18n.trans("kiirooAlert.modelConnected"):r.createElement(o.Z,{className:"kiiroo-alert-content",elements:{link:r.createElement("a",{className:"start-private-modal-alert-link ",onClick:this.connectKiirooCkickHandler})},messageId:"kiirooAlert.modelNotConnected"})}render(){let{isKiirooConnected:e,isPartnerKiirooConnected:t,user:l,className:a}=this.props,n=null==l?void 0:l.isModel;return t&&(!n||e)?r.createElement("div",{className:(0,m.AK)("start-private-modal-alert",a)},r.createElement(c.Z,{img:"lovense"}),this.renderContent()):null}constructor(...e){super(...e),(0,a._)(this,"connectKiirooCkickHandler",()=>{this.props.showModal(d.Ny.KIIROO_SETTINGS)})}}(0,a._)(v,"defaultProps",{isKiirooConnected:!1,isPartnerKiirooConnected:!1,user:{isModel:!1},className:void 0});let E=(0,u.GV)(v),g=(0,n.$j)(e=>({isKiirooConnected:(0,s.eo)(e),isPartnerKiirooConnected:(0,s.XD)(e),user:(0,p.xV)(e)}),h)(E)},33858:(e,t,l)=>{l.d(t,{P:()=>c,U:()=>o});var a=l(27378),r=l(31542),n=l(35506),s=l(59188);let i="bs-actions-menu-portal-container",o=()=>a.createElement("div",{id:i}),c=({children:e})=>{let[t,l]=(0,a.useState)(null);return(0,s.H)(()=>{let e=document.getElementById(i);if(!e){n.ZP.error("[BSActionsMenuPortal]: no portal container found");return}l(e)}),t&&(0,r.createPortal)(e,t)}},45265:(e,t,l)=>{l.d(t,{pG:()=>C,Zj:()=>f,vr:()=>y});var a=l(27378),r=l(53738),n=l(38924),s=l(11850),i=l(84423),o=l(99748),c=l(95654),d=l(41230),m=l(62663),u=l(27251),p=l(12712),h=l(24933),v=l(79336),E=l(29421);let g={root:"BSActionsMenuPositioner#xp",root_completelyHidden:"BSActionsMenuPositioner_completelyHidden#p3",menuWrapper:"BSActionsMenuPositioner__menuWrapper#it",backgroundWrapper:"BSActionsMenuPositioner__backgroundWrapper#uE",root_theatreMode:"BSActionsMenuPositioner_theatreMode#vT",menu:"BSActionsMenuPositioner__menu#Pv",menu_shrinkToBottom:"BSActionsMenuPositioner__menu_shrinkToBottom#DY",backgroundBoundary:"BSActionsMenuPositioner__backgroundBoundary#O9",background:"BSActionsMenuPositioner__background#JG",root_visible:"BSActionsMenuPositioner_visible#kB"},b={FOOTER:'footer[class^="footer-container"]',VIDEO:`.${v.j.boundaryY}`},f="bsa-actions-menu-positioner",C=250,y=({children:e,isShrinkToBottom:t,onClose:l})=>{let v=(0,c.C)(E.pk),y=(0,c.C)(n.AR),N=(0,c.C)(u.k$),_=(0,c.C)(p.z),[k,A,S]=(0,s.eW)(),T=(0,a.useRef)(null),w=(0,a.useRef)(null),P=(0,a.useRef)(null),[M,I]=(0,a.useState)(""),[R,Z]=(0,a.useState)(""),[L,D]=(0,a.useState)(""),[B,F]=(0,a.useState)(!0),{windowHeight:O,windowWidth:x}=(0,m.do)("windowHeight","windowWidth"),U=(0,a.useRef)(!1),H=(0,r.Z)(()=>{v&&(U.current=!0,setTimeout(()=>{U.current=!1},25),A(void 0,!0))}),K=(0,r.Z)(()=>{!v||k||U.current||i.P4.has(h.f)||l()});(0,d.l)(H,[y,N]),(0,d.l)(K,[k]);let V=(0,r.Z)(()=>{w.current=w.current||document.querySelector(b.VIDEO),P.current=P.current||document.querySelector(b.FOOTER);let e=T.current,t=w.current,l=P.current;if(!e||!t||!l)return;let a=l.getBoundingClientRect(),r=t.getBoundingClientRect();I(`${a.bottom-r.bottom}px`),Z(`-${a.height}px`),D(`${e.offsetHeight}px`),F(!1)});(0,a.useLayoutEffect)(()=>{if(!v)return;V();let e=setInterval(V,1e3);return()=>clearInterval(e)},[v,O,x,V,t]);let $=!v&&B;return a.createElement("div",{onClick:S,className:(0,o.AK)(g.root,{[g.root_visible]:v,[g.root_completelyHidden]:$,[g.root_theatreMode]:_})},a.createElement("div",{style:{height:M,bottom:R},className:g.backgroundBoundary},a.createElement("div",{className:g.backgroundWrapper},a.createElement("div",{style:{height:L,transitionDuration:`${C}ms`},className:g.background}))),a.createElement("div",{className:g.menuWrapper},a.createElement("div",{style:{transitionDuration:`${C}ms`},onTransitionEnd:e=>{e.target!==e.currentTarget||v||F(!0)},ref:T,className:(0,o.AK)(g.menu,{[g.menu_shrinkToBottom]:t}),id:f},!$&&e)))}},8457:(e,t,l)=>{l.r(t),l.d(t,{default:()=>x});var a,r=l(27378),n=l(18775),s=l(48204),i=l(4289),o=l(6848),c=l(29449),d=l(65804),m=l(15921),u=l(3034),p=l(97606),h=l(12278),v=l(7474),E=l(19171),g=l(30399),b=l(79561),f=l(29421);let C=e=>r.createElement("span",{className:"no-wrap"},r.createElement(m.Z,{className:"king-icon",img:"king"})," ",e.children);class y extends(a=r.Component){renderInvisibleUsers(){let{invisibles:e}=this.props;return e?r.createElement("div",{className:"invisible-wrapper",id:"users_info_invisibles"},r.createElement("div",{className:"invisible-count"},r.createElement("span",null,"("),r.createElement("span",{className:"info-item-invisibles"},e,r.createElement(m.Z,{img:"invisible",className:"info-item-invisibles-icon",size:15})),r.createElement("span",null,")")),r.createElement(u.Z,{isMobileRelative:!1,placement:"top",targetId:"users_info_invisibles"},r.createElement(d.Z,{messageId:"camMembers.invisibleDescriptionUltimate",elements:{link:r.createElement(i.rU,{to:"/subscriptions"})}}))):null}renderBecomeKing(){let{kingSettings:{becomeKingThreshold:e},kingInfo:t}=this.props;if(!t)return null;let l=e&&Number(e)>0;return r.createElement("div",{className:"become-king-wrapper"},l?r.createElement(d.Z,{className:"become-king-info",messageId:"viewCam.info.becomeKingOfRoomForMobile",parameters:{amount:e,king:this.props.i18n.trans("camMembers.king")},elements:{accent:r.createElement("span",{className:"king-threshold"}),kingWrapper:r.createElement(C,null)}}):r.createElement(r.Fragment,null,r.createElement(m.Z,{img:"king",className:"king-icon"})," ",r.createElement("span",null,this.props.i18n.trans("viewCam.info.toBeKing"))))}renderKing(){let{chatOwner:e,currentUserId:t,modelFanClubTiers:l,modelFanClubTiersTerm:a,knightIds:n,kingInfo:s,kingUser:i}=this.props,o=s&&i,c=t===e.id;return r.createElement("div",{className:"king-block"},r.createElement("div",{className:"model-chat-users-info-item"},r.createElement("div",{id:"users_list_king_info"},`${this.props.i18n.trans("camMembers.king")}:`,o&&r.createElement(r.Fragment,null,r.createElement("span",{className:"info-item-grey"},r.createElement(v.Z,{isAdminIconVisible:!0,isAdditionIconVisible:!1,isLevelLeagueStatusVisible:!1,isUltimateIconVisible:!1,isColored:!0,isGenderIconHidden:!0,isVrIconVisible:!0,isKnight:c&&(null==n?void 0:n.includes(i.id)),isMyKnight:c,isModelIconVisible:c,isNoteIndicatorVisible:!0,isVisibleTierTooltip:!1,fanClubTier:l&&i?l[null==i?void 0:i.id]:null,fanClubTierTerm:null==a?void 0:a[i.id],modelId:e.id,placeId:"users-info",size:14,tooltipProps:{maxWidth:180},user:i}),r.createElement(m.Z,{img:"king",className:"info-item-grey-icon"})),r.createElement("span",{className:"info-item-grey"},`${s.kingAmount} tk`)),!o&&this.renderBecomeKing())),this.renderKingTooltip(),r.createElement(E.Z,null))}renderKingTooltip(){let{kingInfo:e,kingUser:t}=this.props;return e?r.createElement(u.Z,{targetId:"users_list_king_info",placement:"top",isMobileRelative:!1},t&&r.createElement(d.Z,{className:"king-wrapper-tooltip-title",messageId:"viewCam.info.tooltip.title",elements:{username:r.createElement(v.Z,{user:t,isIconVisible:!1,placeId:"users-info-king"}),tokens:r.createElement("span",{className:"king-wrapper-tooltip-tokens"},e.kingAmount)}}),r.createElement(d.Z,{className:"king-wrapper-tooltip-description",messageId:"viewCam.info.tooltip.description",elements:{tokens:r.createElement("span",{className:"king-wrapper-tooltip-tokens"},e.selfAmount)}}),r.createElement(E.Z,null)):null}render(){let{ultimateUsers:e,greenUsers:t,greyAndGuestUsers:l,currentUserId:a,chatOwner:n,placeId:s}=this.props;return e||t||l?r.createElement("div",{className:"model-chat-users-info"},r.createElement("div",{className:"model-chat-users-info-content"},"model-navbar-modal"!==s&&r.createElement("div",{className:"model-chat-users-info-watching-now"},this.props.i18n.trans("camMembers.watchingNow",{amount:e+t+l})),this.renderKing(),!!e&&r.createElement("div",{className:"model-chat-users-info-item"},`${this.props.i18n.trans("camMembers.ultimate")}:`,r.createElement("span",{className:"info-item-ultimate"},e),this.renderInvisibleUsers()),!!t&&r.createElement("div",{className:"model-chat-users-info-item"},`${this.props.i18n.trans("camMembers.usersWithTokens")}:`,r.createElement("span",{className:"info-item-grey"},t)),!!l&&r.createElement("div",{className:"model-chat-users-info-item"},`${this.props.i18n.trans("camMembers.others")}:`,r.createElement("span",{className:"info-item-grey"},l)),n.id===a&&r.createElement(c.E,null))):null}}(0,n._)(y,"defaultProps",{kingSettings:{},placeId:""});let N=(0,p.GV)(y),_=(0,s.$j)(e=>{let{camMembers:{invisibles:t}}=e,l=(0,g.MV)(e),a=(0,f.Kd)(e),r=(0,f.qF)(e);return{currentUserId:(0,h.rc)(e),modelFanClubTiers:l?(0,o.dN)(e,l):null,modelFanClubTiersTerm:l?(0,o.Hj)(e,l):null,ultimateUsers:(0,o.Ko)(e),greenUsers:(0,o.RD)(e),greyAndGuestUsers:(0,o.n4)(e),invisibles:t,kingInfo:a,kingUser:r,kingSettings:(0,b.LF)(e)}})(N);var k=l(7185),A=l(99748),S=l(15720),T=l(87489),w=l(49196),P=l(32284);let M={setMessageToUser:k.HL};class I extends r.Component{renderMember(e){let{isLoggedIn:t,isChatOwner:l,chatOwner:a,currentUser:n,kingId:s,modelFanClubTiers:i,modelFanClubTiersTerm:o,knightIds:c,currentUserBroadcasting:d}=this.props,m=t&&e.id===n.id;return r.createElement("li",{key:e.id},r.createElement(w.Z,{isAdminIconVisible:!0,isGenderIconHidden:!0,isVrIconVisible:!0,isKing:s===e.id,isMyKnight:l,isModelIconVisible:m,isNoteIndicatorVisible:!0,isKnight:Array.isArray(c)&&c.includes(e.id),fanClubTier:i?i[e.id]:null,fanClubTierTerm:null==o?void 0:o[e.id],isFavoritesYouIconVisible:d,favoritesYou:e.hasFavorited,modelId:a.id,placeId:"user-list",size:14,user:(0,P.T$)(e),modelData:(0,T.tA)(e),onUserNameContentClick:this.clickUserNameHandler,isMyRecorder:l,shouldShowReportButton:!0}))}renderMoreGreyAndGuestUsersCount(){let{moreGreyAndGuestUsersCount:e}=this.props;return e?r.createElement("div",{className:"more-users"},this.props.i18n.trans("camMembers.moreUsersGrayLevel",{count:e},"count")):null}render(){let{members:e}=this.props;return r.createElement("div",{className:(0,A.AK)("model-chat-users-list","model-chat-users-list-levels")},r.createElement("div",{className:"users-list"},r.createElement("ul",null,e.map(e=>this.renderMember(e))),this.renderMoreGreyAndGuestUsersCount()))}constructor(...e){super(...e),(0,n._)(this,"shouldComponentUpdate",(0,S.aV)({props:["chatOwner","currentUser","kingId","moreGreyAndGuestUsersCount","members","modelFanClubTiers"]})),(0,n._)(this,"clickUserNameHandler",e=>{e&&this.props.setMessageToUser(e)})}}let R=(0,p.GV)(I),Z=(0,s.$j)((e,{chatOwner:t})=>{let{auth:{isLoggedIn:l,currentUser:a}}=e,r=(0,o.Zw)(e),n=(0,f.hj)(e),s=(0,o.p1)(e);return{isLoggedIn:l,currentUser:a,kingId:n,members:r,modelFanClubTiers:(0,o.dN)(e,t.username),modelFanClubTiersTerm:(0,o.Hj)(e,t.username),moreGreyAndGuestUsersCount:s,currentUserBroadcasting:!!a&&a.id===(null==t?void 0:t.id)}},M)(R);var L=l(91065),D=l(29048),B=l(38487),F=l(57498),O=l(62663);let x=({chatOwner:e=null,isChatOwner:t=!1,knightIds:l=[],placeId:a})=>{let n=(0,r.useRef)(null),{isLayoutMoreThanL:s}=(0,O.do)("isLayoutMoreThanL");return((0,F.R)(n,n,!s),e)?r.createElement("div",{className:"model-chat-users",id:L.K},r.createElement(B.Z,{additionalClassName:(0,A.AK)({"model-chat-users-list-info":"model-navbar-modal"!==a}),containerRef:n},r.createElement(_,{chatOwner:e,knightIds:l,placeId:a}),r.createElement(Z,{chatOwner:e,knightIds:l,isChatOwner:t})),!t&&r.createElement(D.P,{chatOwnerId:e.id,knightIds:l})):null}},96499:(e,t,l)=>{l.d(t,{J4:()=>o,m3:()=>d});var a=l(27378),r=l(95366),n=l(34806),s=l(95654);let i=(0,a.createContext)(null),o=i.Provider,c={small:1,medium:1,large:1,xlarge:1.3},d=()=>{let e=(0,a.useContext)(i),t=(0,s.C)(n.yv);return null===e?{isXLFontSize:!1,isFullscreen:!1,fontSize:void 0,fontSizeIconFactor:1}:e?{isXLFontSize:!1,isFullscreen:!0,fontSize:void 0,fontSizeIconFactor:1}:{isXLFontSize:t===r.ums.XLARGE,isFullscreen:!1,fontSize:t,fontSizeIconFactor:t&&c[t]||1}}},50001:(e,t,l)=>{l.d(t,{Z:()=>v});var a=l(47722),r=l(27378),n=l(48204),s=l(1786),i=l(29413),o=l(99748),c=l(97606),d=l(80167),m=l(60673),u=l(40671),p=l(79561);let h={goTo:u.dX,resetAnalytics:m.WZ},v=(0,n.$j)(e=>{let{viewCam:{isNextModelAvailable:t}}=e,l=(0,s.rt)(e);return{isSwitchingAvailable:!(0,p.Hn)(e)&&t&&!l}},h)(({isSwitchingAvailable:e,resetAnalytics:t,className:l,bordered:n,goTo:s})=>{let{trans:m}=(0,c.QT)(),u=()=>{e&&(s("next"),t())};return((0,d.a)("Shift,KeyN",u),e)?r.createElement(a.mI,{className:(0,o.AK)("next-model-button",l,{"next-model-button--bordered":n}),onClick:u},r.createElement("span",{className:"next-model-button-label"},m("viewCam.nextModel")),r.createElement(i.Z,{img:"next-small",size:15})):null})},38901:(e,t,l)=>{l.d(t,{u:()=>u});var a=l(66813),r=l(27378),n=l(35506),s=l(17473),i=l(7386),o=l(99748),c=l(95654),d=l(50399),m=l(68020);let u=({model:e,children:t,isHiddenImage:l,isViewcam:u,modelData:p,isTranslucent:h,hideSnapshot:v,className:E})=>{var g;let b=(0,c.C)(m.FO),f=(0,c.C)(d.h6),C=(0,c.C)(m.cV),y=(0,r.useRef)(),N=e&&"profile"in e?null===(g=e.profile)||void 0===g?void 0:g.avatarUrl:void 0,_=null,k=!1;if(!l){let{url:t,isSnapshot:l}=(0,a.iJ)({model:e,modelData:p,snapshotUrlTemplate:b,hasWebpSupport:f,mode:"blurred"});_=t,k=!l}let[A,S]=(0,r.useState)(null),[T,w]=(0,r.useState)(!1),P=(0,r.useCallback)((e,t)=>{y.current&&y.current.cancelFetching();try{y.current=new a.hc(e,t,"number"==typeof C?1e3*C:void 0,(e,t)=>{S(e),w(t||!1)},n.ZP)}catch(e){(0,i.R)(e)&&n.ZP.error(e)}},[C]);return(0,r.useEffect)(()=>(!k&&_&&N?P(_,N):(_!==A&&S(_),k!==T&&w(k)),()=>{var e;return null===(e=y.current)||void 0===e?void 0:e.cancelFetching()}),[_,A,k,T,N,y,P,l]),r.createElement("div",{className:(0,o.AK)("non-nude-shutter-background",E,h&&"non-nude-shutter-background--translucent")},A&&!v&&r.createElement("div",{className:(0,o.AK)("non-nude-shutter-background__wrap",T&&"non-nude-shutter-background__wrap--blur",u&&"non-nude-shutter-background__wrap--viewcam")},r.createElement("img",{src:A,className:"non-nude-shutter-background__image",alt:"Background"})),h&&r.createElement(s.M,{mode:"soft"}),r.createElement("div",{className:"non-nude-shutter-background__content"},t))}},61229:(e,t,l)=>{l.d(t,{R:()=>T});var a=l(27378),r=l(47722),n=l(42962),s=l(57174),i=l(84423),o=l(51573),c=l(99748),d=l(97606),m=l(20717),u=l(94380),p=l(59188),h=l(36886),v=l(14151),E=l(49743);let g={root:"NonNudeShutterWithTeasing#sc",kebabMenu:"NonNudeShutterWithTeasing__kebabMenu#Hi",videoWrapper:"NonNudeShutterWithTeasing__videoWrapper#cg",content:"NonNudeShutterWithTeasing__content#GX",button:"NonNudeShutterWithTeasing__button#HJ",header:"NonNudeShutterWithTeasing__header#eE",fire:"NonNudeShutterWithTeasing__fire#M1",title:"NonNudeShutterWithTeasing__title#pZ",description:"NonNudeShutterWithTeasing__description#zS",timeHint:"NonNudeShutterWithTeasing__timeHint#AA",voltageIcon:"NonNudeShutterWithTeasing__voltageIcon#CC",timeHintText:"NonNudeShutterWithTeasing__timeHintText#tB",landscape:"NonNudeShutterWithTeasing__landscape#Dr",portrait:"NonNudeShutterWithTeasing__portrait#Lz"},b=e=>e.isXConverter?"hls":"native",f=({teaser:e,model:t})=>{let l=(0,a.useRef)(null),r=()=>{let l={contentId:e.id,contentUser:t,contentType:"video",subContentType:"teaser"},a={type:"video",src:e.url,duration:e.duration,muted:!0,playerType:b(e)};i.P4.show(E.q,{...l,...a})};(0,p.H)(()=>{var e;null!==(e=l.current)&&void 0!==e||(l.current=document.querySelector(".video-player__fullscreen"));let t=e=>{e.stopPropagation(),r()};return l.current&&l.current.addEventListener("click",t,!0),()=>{var e;null===(e=l.current)||void 0===e||e.removeEventListener("click",t,!0)}})},C=({triggerSource:e,teaser:t,className:l,model:i})=>{let{trans:p}=(0,d.QT)();f({teaser:t,model:i});let E=(0,u.T)(),C=(0,h.t)(),y=(0,a.useRef)(null),N=(0,m.jz)("common/components/ui/PromoBanner/assets/common/promo-icon-placeholder.svg"),_=(0,m.jz)("cams/components/ui/NonNudeShutterProfile/assets/voltage.png"),{aspectRatio:k}=t;(0,a.useLayoutEffect)(()=>{y.current&&(k<=1?(y.current.style.width="100%",y.current.style.height="auto"):(y.current.style.height="100%",y.current.style.width="auto"),y.current.style.aspectRatio=`1 / ${k}`)},[k]);let A=k<=1?"landscape":"portrait";return a.createElement("div",{className:(0,c.AK)(g.root,g[A],l)},a.createElement("div",{className:g.videoWrapper,ref:y},a.createElement(r.Y7,{key:t.url,canPlay:!0,isAutoPlay:!0,duration:t.duration,isShowBuffering:!0,muted:!0,loop:!0,isKeysEnabled:!0,isShowControlsOnClickMobile:!0,type:b(t),poster:t.fullCoverUrl,videoUrl:t.url,theme:v.kB,isServerRenderOrHydration:!C}),a.createElement(n.O,{subContentType:"teaser",className:g.kebabMenu,contentUser:i,contentId:t.id,contentType:"video",position:"landscape"===A?"left":"right"})),a.createElement("div",{className:g.content},a.createElement("div",{className:g.header},a.createElement("img",{src:N,className:g.fire,alt:"fire"}),a.createElement("div",{className:g.title},p("viewCam.nonNudeShutter.title"))),a.createElement("div",{className:g.description},p("viewCam.nonNudeShutter.descriptionViewcam")),a.createElement(s.ZP,{style:"blue-2",size:"large",className:g.button,onClick:()=>{E((0,o.WL)(e))}},p("viewCam.nonNudeShutter.button")),a.createElement("div",{className:g.timeHint},a.createElement("img",{src:_,className:g.voltageIcon,alt:"Voltage icon"}),a.createElement("span",{className:g.timeHintText},p("viewCam.nonNudeShutter.timeHint")))))};var y=l(50557),N=l(95654),_=l(42339),k=l(79561),A=l(29421);let S=e=>e?"viewCam.nonNudeShutter.descriptionViewcam":"viewCam.nonNudeShutter.descriptionProfile",T=({isBig:e,isForceWhiteText:t,isForceNoTeaser:l,isViewcam:r,triggerSource:n,className:i,model:p})=>{let{trans:h}=(0,d.QT)(),v=(0,u.T)(),E=(0,N.C)(k.UY),g=(0,N.C)(_.ouq),b=(0,N.C)(A.Xv),f=(0,m.jz)("common/components/ui/PromoBanner/assets/common/promo-icon-placeholder.svg"),T=(0,m.jz)("cams/components/ui/NonNudeShutterProfile/assets/voltage.png"),w=(0,c.AK)("non-nude-shutter-profile",i,{"non-nude-shutter-profile--big":e,"non-nude-shutter-profile--force-white-text":t}),P=g&&r&&!l;return P&&!E?a.createElement("div",{className:"non-nude-shutter-profile__loader"}):P&&b&&p?a.createElement(y.s,null,a.createElement(C,{model:p,className:i,teaser:b,triggerSource:n})):a.createElement("div",{className:w},a.createElement("div",null,a.createElement("img",{src:f,className:"non-nude-shutter-profile__icon",alt:"icon"})),a.createElement("div",{className:"non-nude-shutter-profile__title"},h("viewCam.nonNudeShutter.title")),a.createElement("div",{className:"non-nude-shutter-profile__description"},h(S(r))),a.createElement(s.ZP,{style:"blue-2",size:"large",className:"non-nude-shutter-profile__button",onClick:()=>{v((0,o.WL)(n))}},h("viewCam.nonNudeShutter.button")),a.createElement("div",{className:"non-nude-shutter-profile__time-hint"},a.createElement("img",{src:T,className:"non-nude-shutter-profile__voltage-icon",alt:"Voltage icon"}),a.createElement("span",{className:"non-nude-shutter-profile__time-hint-text"},h("viewCam.nonNudeShutter.timeHint"))))}},95808:(e,t,l)=>{l.d(t,{c:()=>p});var a=l(27378),r=l(57174),n=l(65804),s=l(91090),i=l(51573),o=l(97606),c=l(20717),d=l(94380),m=l(95654),u=l(71227);let p=()=>{let{trans:e}=(0,o.QT)(),t=(0,d.T)(),l=(0,c.jz)("cams/components/ui/NonNudeVerifyBanner/resources/verified.svg");return(0,m.C)(u.m5)?a.createElement("div",{className:"non-nude-verify-banner",onClick:()=>{t((0,i.WL)(s.Dt.AVP_BANNER))}},a.createElement("div",null,a.createElement("img",{src:l,alt:"icon",className:"non-nude-verify-banner__icon"})),a.createElement("div",{className:"non-nude-verify-banner__left"},a.createElement("div",{className:"non-nude-verify-banner__texts"},a.createElement("div",{className:"non-nude-verify-banner__title"},a.createElement(n.Z,{messageId:"viewCam.nonNudeShutter.banner.title",elements:{highlight:a.createElement("span",{className:"non-nude-verify-banner__highlight"})}})),a.createElement("div",{className:"non-nude-verify-banner__description"},e("viewCam.nonNudeShutter.banner.description"))),a.createElement("div",null,a.createElement(r.ZP,{style:"blue",className:"non-nude-verify-banner__button"},e("viewCam.nonNudeShutter.button"))))):null}},96518:(e,t,l)=>{l.d(t,{Z:()=>d});var a=l(27378),r=l(31896);let n=({text:e="",icon:t,className:l,...n})=>{let s="string"==typeof e?e.split(" "):[];if(0===s.length||!t)return a.createElement(r.ZP,{className:l,...n},e,t);let i=s[s.length-1],o=s.slice(0,s.length-1);return a.createElement(r.ZP,{...n,className:l},o.length>0?`${o.join(" ")} `:"",a.createElement("span",{className:"text-icon-glue"},a.createElement("span",{className:"text-icon-glue-breakable-word"},i),t))};var s=l(57857),i=l(99748),o=l(86938);let c=(e,t)=>t||(e?a.createElement(o.Z,null):null),d=({text:e,isVerified:t,customIcon:l,titleClassName:r="",seoDescription:o,isH1:d=!0,children:m,actionButtons:u,titleLevel:p="1",className:h,...v})=>{let[E,g]=(0,a.useState)(!1),b=(0,a.useCallback)(()=>g(!E),[E]);(0,a.useEffect)(()=>g(!1),[o]);let f="0"===p?d?s.dE:s.Ex:d?s.br:s.pb,C=c(t,l);return a.createElement("div",{...v,className:(0,i.AK)("index-page-header-wrapper",h)},a.createElement("div",{className:(0,i.AK)("index-page-header",r)},a.createElement("div",{className:(0,i.AK)("index-page-title-wrapper",{"index-page-title-wrapper--with-actions":!!u})},a.createElement(f,null,a.createElement(n,{type:"0"===p?"title-l0":"title-l1",text:e,icon:C})),!!u&&a.createElement("div",{className:"index-page-title__action-buttons index-page-title__action-buttons-desktop"},u))),m,!!o&&a.createElement("div",{className:(0,i.AK)("index-page-header-description",{"hidden-description":!E}),onClick:b},o),!!u&&a.createElement("div",{className:"index-page-title__action-buttons index-page-title__action-buttons-mobile"},u))}},50582:(e,t,l)=>{l.d(t,{S:()=>u});var a=l(37051),r=l(27378),n=l(61676),s=l(95366),i=l(97606),o=l(82168),c=l(94380),d=l(82311);let m=[s.bON.PENDING_MODIFIED,s.bON.PENDING_NEW],u=(0,r.memo)(({type:e})=>{let{trans:t}=(0,i.QT)(),l=(0,c.T)(),s=m.includes(e),u=(0,r.useMemo)(()=>s?()=>{o.Z.reset(),l((0,n.mc)(!0))}:a.Z,[l,s]);return r.createElement(d.w,{style:"warning",text:t(`paymentsSettings.notification.${e}`),buttonText:s?t("button.clearPaymentSettings"):void 0,onButtonClick:u})})},33844:(e,t,l)=>{l.d(t,{CY:()=>o,DU:()=>i,Ip:()=>s,Nl:()=>a,T4:()=>n,lc:()=>r});let a={E_PAY_SERVICE:"epayservice",SEPA:"sepa",DIRECTA_24:"directa24",QIWI:"qiwi",CRYPTO_CURRENCY:"cryptocurrency",CARD:"card",JCB:"card2",PAXUM:"paxum",RU_PAY:"cardRupay",UNION_PAY:"cardUnionPay"},r={amex:"American Express",diners:"Diners Club International",discover:"Discover Card",jcb:"JCB",mastercard:"Mastercard",unionpay:"UnionPay",visa:"Visa"},n=()=>void 0,s={code:"individualPerson",type:"person",isRequired:!0},i={code:"businessPerson",type:"person",isRequired:!0},o="person.type"},6035:(e,t,l)=>{l.d(t,{K:()=>n});var a=l(27378),r=l(98655);let n=(0,l(98846).n7)({resolved:{},chunkName:()=>"PlasmaMessengerModal",isReady(e){let t=this.resolve(e);return!0===this.resolved[t]&&!!l.m[t]},importAsync:()=>l.e(3405).then(l.bind(l,2405)),requireAsync(e){let t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){return l(this.resolve(e))},resolve:()=>2405},{ssr:!1,fallback:a.createElement(r.c,null)})},21581:(e,t,l)=>{l.d(t,{z:()=>o});var a=l(37051),r=l(27378),n=l(99382),s=l(29413),i=l(97606);let o=e=>{let t;let{trans:l}=(0,i.QT)(),{devices:o,check:c=a.Z,isChecking:d,...m}=e;if(o||(t=r.createElement("div",{className:"start",...m},l("viewCam.cam2CamTooltip.description"),r.createElement(n.ZP,{onClick:c,loading:d},l("viewCam.cam2CamTooltip.button")))),(null==o?void 0:o.audio)&&o.video&&(t=r.createElement("div",{className:"success",...m},r.createElement(s.Z,{img:"check-round-fat"}),l("viewCam.cam2CamTooltip.success"))),o&&(!o.audio||!o.video)){let e="";e=l(o.audio?"viewCam.cam2CamTooltip.cantAccessCamera":o.video?"viewCam.cam2CamTooltip.cantAccessMic":"viewCam.cam2CamTooltip.cantAccessCameraOrMic");let a=l(o.audio||o.video?"viewCam.cam2CamTooltip.makeSureItIs":"viewCam.cam2CamTooltip.makeSureTheyAre");t=r.createElement("div",{className:"warning",...m},r.createElement("div",{className:"warning-title"},r.createElement(s.Z,{img:"warning"}),e),r.createElement("ul",null,a,r.createElement("li",null,l("viewCam.cam2CamTooltip.turnedOn")),r.createElement("li",null,l("viewCam.cam2CamTooltip.allowed")),r.createElement("li",null,l("viewCam.cam2CamTooltip.upToDateDrivers"))))}return t}},93199:(e,t,l)=>{l.d(t,{L:()=>a});let a=(0,l(98846).n7)({resolved:{},chunkName:()=>"private-request",isReady(e){let t=this.resolve(e);return!0===this.resolved[t]&&!!l.m[t]},importAsync:()=>Promise.all([l.e(9641),l.e(9794)]).then(l.bind(l,35891)),requireAsync(e){let t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){return l(this.resolve(e))},resolve:()=>35891})},380:(e,t,l)=>{l.d(t,{s:()=>n});var a=l(27378),r=l(98655);let n=(0,l(98846).n7)({resolved:{},chunkName:()=>"RateShowModal",isReady(e){let t=this.resolve(e);return!0===this.resolved[t]&&!!l.m[t]},importAsync:()=>l.e(9460).then(l.bind(l,27390)),requireAsync(e){let t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){return l(this.resolve(e))},resolve:()=>27390},{ssr:!1,fallback:a.createElement(r.c,null)})},67155:(e,t,l)=>{l.d(t,{s:()=>n});var a=l(27378),r=l(98655);let n=(0,l(98846).n7)({resolved:{},chunkName:()=>"RateShowModal",isReady(e){let t=this.resolve(e);return!0===this.resolved[t]&&!!l.m[t]},importAsync:()=>l.e(9460).then(l.bind(l,36015)),requireAsync(e){let t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){return l(this.resolve(e))},resolve:()=>36015},{ssr:!1,fallback:a.createElement(r.c,null)})},84926:(e,t,l)=>{l.d(t,{T:()=>i});var a=l(56878),r=l(27378),n=l(29413),s=l(99748);let i=({rating:e,className:t,starIconClassName:l})=>{let i=(0,a.Z)(5);return r.createElement("span",{className:(0,s.AK)("rating-stars",t)},i.map((t,a)=>{let i;let o=a+1;return i=e>=o-.5&&e{l.d(t,{j:()=>m});var a=l(64553),r=l(27378),n=l(99973),s=l(99748),i=l(41230),o=l(62663),c=l(5509);let d=null,m=()=>{let{windowWidth:e,windowHeight:t,windowOrientation:l,visualViewportWidth:m,visualViewportHeight:u}=(0,o.do)("windowWidth","windowHeight","windowOrientation","visualViewportWidth","visualViewportHeight"),p=(0,r.useRef)({visualViewportWidth:m,visualViewportHeight:u});return(0,r.useEffect)(()=>{let{visualViewportHeight:e,visualViewportWidth:t}=p.current;if(n.BROWSER_CAPABILITIES.desktop||!t||!e||!(m!==t||u!==e)||m!==t)return;let a=document.activeElement&&"INPUT"===document.activeElement.tagName,r=u<=e,s=a&&"portrait"===l&&r;a&&"landscape"===l&&r||s?document.body.classList.add("opened-mobile-keyboard"):document.body.classList.remove("opened-mobile-keyboard")},[m,u,l]),(0,r.useEffect)(()=>{(0,c.bG)({windowWidth:e,windowHeight:t})},[e,t]),(0,i.l)(()=>{let e=document.activeElement&&"INPUT"===document.activeElement.tagName;n.BROWSER_CAPABILITIES.android&&e&&(0,a.Z)(()=>(0,s.zT)(document.activeElement))},[e,t]),(0,r.useEffect)(()=>{d=null},[l]),(0,r.useEffect)(()=>{let e=.01*window.innerHeight;document.documentElement.style.setProperty("--vh",`${e}px`),(n.BROWSER_CAPABILITIES.desktop||null===d||ed&&e-d>100)&&(d=e,document.documentElement.style.setProperty("--vh-min",`${d}px`))},[t]),(0,r.useEffect)(()=>{p.current={visualViewportWidth:m,visualViewportHeight:u}},[m,u]),null}},18794:(e,t,l)=>{l.d(t,{Z:()=>c});var a=l(37051),r=l(27378),n=l(57174),s=l(15921),i=l(99748),o=l(97606);let c=({onClick:e=a.Z,isDisabled:t=!1,isSeeAllButton:l=!1,additionalClassName:c="",url:d,buttonTitle:m,buttonIcon:u})=>{let{trans:p}=(0,o.QT)(),h=l?"multipleCategories.seeAll":"button.seeMore",v=l?"chevron-right":"chevron-down";return r.createElement("div",{className:(0,i.AK)("see-more-models-button",c)},r.createElement("div",{className:"see-more-divider"}),r.createElement("div",{className:"see-more-button-background"},d?r.createElement(n.ZP,{disabled:t,className:(0,i.AK)("see-more-button",{"see-all-button":l}),onClick:e,to:d,type:"link"},m||p(h),r.createElement(s.Z,{className:"see-more-icon",img:u||v})):r.createElement(n.ZP,{disabled:t,className:(0,i.AK)("see-more-button",{"see-all-button":l}),onClick:e},m||p(h),r.createElement(s.Z,{className:"see-more-icon",img:u||v}))),r.createElement("div",{className:"see-more-divider"}))}},51094:(e,t,l)=>{l.d(t,{O:()=>a});let a=(0,l(98846).n7)({resolved:{},chunkName:()=>"cams-components-ui-StartBroadcastingSettingsModal-StartBroadcastingSettingsModal",isReady(e){let t=this.resolve(e);return!0===this.resolved[t]&&!!l.m[t]},importAsync:()=>Promise.all([l.e(8734),l.e(580),l.e(4260)]).then(l.bind(l,26765)),requireAsync(e){let t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){return l(this.resolve(e))},resolve:()=>26765})},5637:(e,t,l)=>{l.d(t,{G:()=>n});var a=l(27378),r=l(98655);let n=(0,l(98846).n7)({resolved:{},chunkName:()=>"StartGroupShowModal",isReady(e){let t=this.resolve(e);return!0===this.resolved[t]&&!!l.m[t]},importAsync:()=>l.e(3333).then(l.bind(l,20296)),requireAsync(e){let t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){return l(this.resolve(e))},resolve:()=>20296},{ssr:!1,fallback:a.createElement(r.c,null)})},71580:(e,t,l)=>{l.d(t,{Z:()=>i});var a=l(27378),r=l(99748),n=l(95654),s=l(66483);let i=({title:e,description:t,className:l,...i})=>(0,n.C)(s.A4)?a.createElement("div",{...i,className:(0,r.AK)("tag-info-for-model",l)},a.createElement("h3",{className:"tag-info-for-model-title"},e),a.createElement("span",{className:"tag-info-for-model-content"},t)):null},39906:(e,t,l)=>{l.d(t,{Z:()=>C});var a=l(27378),r=l(53522),n=l(4852),s=l(95366),i=l(83550),o=l(11850),c=l(29413),d=l(99748),m=l(97606),u=l(83705),p=l(80176),h=l(94380),v=l(95654),E=l(20727),g=l(98371),b=l(33915);let f={girls:"female",men:"male",trans:"tranny",couples:"maleFemale"},C=({isHallOfFame:e,gender:t,locationState:l,isStaticPosition:C,isMobileLabel:y,isMobileLeft:N,amplitudeNavElement:_,shouldReleaseInterface:k,overrideLocationChange:A})=>{let{trans:S}=(0,m.QT)(),[T,w]=(0,o.eW)(),P=(0,o.tI)(),M=(0,v.C)(g.YF),I=(0,E.Z)(l),R=(0,v.C)(r.vb),Z=(0,v.C)(b.Iz),L=null!=t?t:Z.primaryTagId,D=(0,h.T)(),B=(0,a.useCallback)(t=>()=>(k&&P(),_&&D((0,i.d2)(_,{pageSection:t})),A)?(P(),A(t)):e?D((0,p.J5)(`/top/${t}/${n.F.HALL_OF_FAME}`,I.current)):R?D((0,p.sb)(`/tags/${t}`)):D((0,p.J5)(`/${t}`)),[k,_,A,e,R,D,P,I]),F=S(`tags.${L}`);return a.createElement("div",{className:(0,d.AK)("tags-preference-dropdown",{"tags-preference-dropdown--static":C,"tags-preference-dropdown--mobile-left":N,"tags-preference-dropdown--mobile-label":y})},a.createElement("div",{className:"tags-preference-desktop-layout"},a.createElement("div",{className:"tags-preference-dropdown-wrapper"},a.createElement("div",{onClick:M?e=>{e.preventDefault(),w(e)}:void 0,className:(0,d.AK)("tags-preference-dropdown-trigger",{active:T}),title:F},a.createElement("div",{className:"tags-preference-current-type"},a.createElement(c.Z,{img:f[L]}),a.createElement("span",{className:(0,d.AK)("tags-preference-label",{"media-up-to-m-hidden":!y})},F),!M&&a.createElement("select",{className:"tags-preference-mobile-select",value:L,onChange:e=>B(e.target.value)()},(0,u.U)(s.s08,e=>a.createElement("option",{key:e,value:e},S(`tags.${e}`,{stripTags:!0}))))),a.createElement("span",{className:"selectbox-arrow"},a.createElement(c.Z,{img:"sort"}))),T&&M&&a.createElement("div",{className:"tags-preference-dropdown-content"},(0,u.U)(s.s08,e=>{let t=L===e;return a.createElement("div",{key:e,className:(0,d.AK)("tags-preference-type-item",{active:t}),onClick:B(e)},a.createElement(c.Z,{img:f[e]}),S(`tags.${e}`,{stripTags:!0}))})))))}},35279:(e,t,l)=>{l.d(t,{c:()=>g,Y:()=>E});var a=l(94111),r=l(27378),n=l(95366),s=l(99748),i=l(97606),o=l(9102),c=l(20717),d=l(95654),m=l(62663),u=l(12278);let p={root:"UserTierLogo#w_",lord:"UserTierLogo__lord#eJ",animation:"UserTierLogo__animation#nn",info:"UserTierLogo__info#CG",userName:"UserTierLogo__userName#E6",tierName:"UserTierLogo__tierName#AB",tier1:"UserTierLogo__tier1#fz",tier2:"UserTierLogo__tier2#Bd",tier3:"UserTierLogo__tier3#Be"},h={tier1:"soldier",tier2:"lord",tier3:"prince"},v="cams/components/ui/UserFanClub/UserFanClubSubscribeModal/UserFanClubSubscribeModalBody/UserTierLogo/assets",E=async()=>{(0,o.b)();let e=[(0,c.jz)(`${v}/soldier.riv`),(0,c.jz)(`${v}/lord.riv`),(0,c.jz)(`${v}/prince.riv`)].map(e=>fetch(e).then(e=>e)),t=new Promise(e=>{setTimeout(e,250)});try{await Promise.race([Promise.all(e),t])}catch(e){}},g=({selectedTier:e})=>{let{trans:t}=(0,i.QT)(),l=(0,d.C)(u.ts),o=`${v}/${h[e]}.riv`,E=(0,r.useRef)(null),{windowOrientation:g}=(0,m.do)("windowOrientation"),{RiveComponent:b}=(0,a.useRive)({src:(0,c.jz)(o),autoplay:!0,stateMachines:"State Machine 1",layout:new a.Layout({fit:a.Fit.Cover,alignment:a.Alignment.Center})});return(0,a.useResizeCanvas)({containerRef:E,riveLoaded:!0,canvasElem:null}),r.createElement("div",{className:p.root},r.createElement("div",{ref:E,className:(0,s.AK)(p.animation,{[p.lord]:"tier2"===e})},r.createElement(b,{key:`${e}${g}`})),r.createElement("div",{className:p.info},r.createElement("div",{className:(0,s.AK)(p.tierName,[p[e]])},t(n.HN4[e])),r.createElement("div",{className:p.userName},null==l?void 0:l.username)))}},48173:(e,t,l)=>{l.d(t,{_:()=>d,l:()=>m});var a=l(27378),r=l(35279),n=l(98655),s=l(84423),i=l(53788),o=l(98846),c=l(51e3);let d=(0,o.n7)({resolved:{},chunkName:()=>"UserFanClubSubscribeModal",isReady(e){let t=this.resolve(e);return!0===this.resolved[t]&&!!l.m[t]},importAsync:()=>l.e(7217).then(l.bind(l,68394)),requireAsync(e){let t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){return l(this.resolve(e))},resolve:()=>68394},{ssr:!1,fallback:a.createElement(n.c,null)}),m=()=>{(0,i.db)("fanClub:clickJoinFanClub",({data:e})=>{!1!==e.isShowModal&&((0,c.K4)("fanclub_modal_open"),(0,r.Y)().then(()=>s.P4.show(d,{source:e.source,currentCustomBenefit:e.currentCustomBenefit,modelUsername:e.modelUsername||"",selectedTier:e.selectedTierTab})))})}},7994:(e,t,l)=>{l.d(t,{F:()=>o});var a=l(27378),r=l(40108),n=l(55551),s=l(99748);let i={root:"UserFanClubTier#rI"},o=({classNames:e={},tier:t,iconSize:l})=>a.createElement("div",{className:(0,s.AK)(i.root,e.root)},a.createElement(r.g,{size:l,tier:t,className:e.icon}),a.createElement(n.H,{tier:t,className:e.label}))},40108:(e,t,l)=>{l.d(t,{Q:()=>s,g:()=>i});var a=l(27378),r=l(29413),n=l(99748);let s={tier1:"diamond-soldier",tier2:"diamond-lord",tier3:"diamond-prince"},i=({tier:e,size:t,className:l})=>a.createElement(r.Z,{img:e?s[e]:"diamond",size:t,className:(0,n.AK)(l,{[`tier-icon-${e}`]:e})})},55551:(e,t,l)=>{l.d(t,{H:()=>o});var a=l(27378),r=l(95366),n=l(99748),s=l(97606);let i={tier1:"UserFanClubTierLabel__tier1#T8",tier2:"UserFanClubTierLabel__tier2#GC",tier3:"UserFanClubTierLabel__tier3#_E"},o=({className:e,tier:t,withColor:l=!0})=>{let{trans:o}=(0,s.QT)();return a.createElement("span",{className:(0,n.AK)({[i[t]]:l},e)},o(r.HN4[t]))}},57999:(e,t,l)=>{l.d(t,{y:()=>n});var a=l(27378),r=l(98655);let n=(0,l(98846).n7)({resolved:{},chunkName:()=>"PairYouOwnToyModal",isReady(e){let t=this.resolve(e);return!0===this.resolved[t]&&!!l.m[t]},importAsync:()=>l.e(1640).then(l.bind(l,51568)),requireAsync(e){let t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){return l(this.resolve(e))},resolve:()=>51568},{ssr:!1,fallback:a.createElement(r.c,null)})},43967:(e,t,l)=>{l.d(t,{Z:()=>f});var a=l(18775),r=l(47722),n=l(27378),s=l(48204),i=l(53522),o=l(22791),c=l(77382),d=l(29413),m=l(99973),u=l(99748),p=l(97606),h=l(23342),v=l(29421);let E={showModal:c.K4,showAppropriateVRModal:o.B};class g extends n.Component{componentDidMount(){let{shouldReturnToWebXR:e}=this.props;(m.BROWSER_CAPABILITIES.oculusQuestDevice||e)&&(0,m.ZE)().then(e=>this.setState({isWebXrAvailable:e}))}render(){let{isFullscreen:e,isVrBranch:t,kind:l,className:a,model:s,isVrButtonVisibleForReturnUrl:i}=this.props;if(!i)return null;let{isWebXrAvailable:o}=this.state,c=null==s?void 0:s.isVr,m="viewCam"===l,p="login"===l,h="buy-tokens"===l,v="sidebar"===l,E="compact"===l,g="ultimate-membership"===l,b="header-sub"===l,f=!e&&!v&&!E&&(t||c)||p||h,C=m&&o&&c;if(!o&&!f)return null;let y=n.createElement(r.mI,{className:(0,u.AK)("watch-vr",!C&&a,{"watch-vr--view-cam":m,"watch-vr--login":p||h||g,"watch-vr--buy-tokens":h,"watch-vr--sidebar":v,"watch-vr--compact":E,"watch-vr--without-text":E||o&&m&&!c,"watch-vr--without-text-on-mobile":m,"watch-vr--black":o&&m,"watch-vr--half-black":!o&&m,"watch-vr--gradient":!m,"watch-vr--gradient-hover":!(o&&m&&c),"watch-vr--header-sub":b}),onClick:this.handleWatchVrClick},p||h||g?n.createElement(n.Fragment,null,n.createElement(d.Z,{img:"arrow-left"}),this.props.i18n.trans("vr.vrPage.backToVr"),n.createElement(d.Z,{img:"vr"})):n.createElement(n.Fragment,null,n.createElement(d.Z,{img:"vr-3",className:"watch-vr__icon"}),n.createElement("span",{className:"watch-vr__text"},this.props.i18n.trans(`vr.vrPage.${m?"vr":"enterVr"}`))));return C?n.createElement("div",{className:(0,u.AK)(C&&a,"watch-vr wrapper watch-vr--gradient-hover")},y):b?n.createElement("div",{className:"watch-vr-header-wrapper"},y):y}constructor(e){super(e),(0,a._)(this,"handleWatchVrClick",async e=>{e.preventDefault(),e.stopPropagation(),await this.props.showAppropriateVRModal(this.props.model)}),this.state={isWebXrAvailable:!1}}}let b=(0,p.GV)(g),f=(0,s.$j)(e=>({isVrBranch:(0,i.CM)(e),isFullscreen:(0,v.ni)(e),model:(0,v.X0)(e),shouldReturnToWebXR:(0,h.jl)(e),isVrButtonVisibleForReturnUrl:(0,h.oF)(e)}),E)(b)},15196:(e,t,l)=>{l.d(t,{U:()=>n});var a=l(27378),r=l(98655);let n=(0,l(98846).n7)({resolved:{},chunkName:()=>"WatchWebXrModal",isReady(e){let t=this.resolve(e);return!0===this.resolved[t]&&!!l.m[t]},importAsync:()=>l.e(253).then(l.bind(l,85138)),requireAsync(e){let t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){return l(this.resolve(e))},resolve:()=>85138},{ssr:!1,fallback:a.createElement(r.c,null)})},87444:(e,t,l)=>{l.d(t,{l:()=>E});var a=l(27378),r=l(53738);let n={computeBottomPosition:function(e){let{offsetHeight:t,offsetWidth:l,mediaHeight:a,mediaWidth:r}=e;return(t-l/r*a)/2},computeRightPosition:function(e){let{offsetHeight:t,offsetWidth:l,mediaHeight:a,mediaWidth:r}=e;return(l-t/a*r)/2},getHeightScale:function(e){let{offsetHeight:t,mediaHeight:l}=e;return t/l>1?t/l:l/t},getWidthScale:function(e){let{offsetWidth:t,mediaWidth:l}=e;return t/l>1?t/l:l/t}},s={right:0,bottom:0},i={offsetHeight:0,offsetWidth:0},o=(e,t)=>e.bottom===t.bottom&&e.right===t.right;var c=l(59188);let d=e=>{let t=(0,a.useRef)(null),l=(0,a.useRef)({right:0,bottom:0}),d=(0,r.Z)(()=>{let a=function(e){let t=function(e){if(!e||!e.mediaWidth||!e.mediaHeight)return s;let t=n.getWidthScale(e),l=n.getHeightScale(e),a=n.computeBottomPosition(e),r=n.computeRightPosition(e);return t<=l?a<0?{right:r,bottom:0}:{right:0,bottom:a}:r<0?{right:0,bottom:a}:{right:r,bottom:0}}(e);return t.bottom<0||t.right<0?s:t}(function(e){let t=null==e?void 0:e.parentElement;return e&&t?{offsetWidth:Math.min(e.offsetWidth,t.offsetWidth),offsetHeight:Math.min(e.offsetHeight,t.offsetHeight),mediaHeight:e.videoHeight,mediaWidth:e.videoWidth}:i}(e));t.current&&!o(l.current,a)&&(t.current.style.right=`${a.right}px`,t.current.style.bottom=`${a.bottom}px`)});return(0,c.H)(()=>{e&&d()}),{ref:t,updatePosition:d}},m={root:"Watermark#gY"};var u=l(99748),p=l(95654),h=l(59609);let v=(0,a.forwardRef)(({videoElement:e},t)=>{let l=(0,p.C)(h.Q4),{ref:r,updatePosition:n}=d(e);return(0,a.useImperativeHandle)(t,()=>({updatePosition:n}),[n]),a.createElement("div",{ref:r,className:(0,u.AK)(m.root,"watermark"),style:{backgroundImage:l||void 0}})}),E=a.memo(v)},28273:(e,t,l)=>{l.d(t,{Z:()=>c});var a=l(27378),r=l(94380),n=l(95654),s=l(12278),i=l(68531),o=l(42339);let c=()=>{let e=(0,r.T)(),t=(0,n.C)(s.rc),l=(0,n.C)(o.FpX),c=(0,a.useRef)(),{activityUpdater:d}=l;return(0,a.useEffect)(()=>{c.current&&clearTimeout(c.current);let l=async()=>{await e((0,i.f8)());let t=1e3*((null==d?void 0:d.updateTimeout)||300);c.current=setTimeout(l,t)};return(null==d?void 0:d.isEnabled)&&t&&l(),()=>{c.current&&clearTimeout(c.current)}},[e,null==d?void 0:d.updateTimeout,null==d?void 0:d.isEnabled,t]),null}},78225:(e,t,l)=>{l.d(t,{j:()=>s});var a=l(27378),r=l(29413),n=l(99748);let s=({textAlign:e="left",title:t,description:l,className:s,icon:i,style:o="danger",withoutBorderRadius:c,id:d})=>{let m=i?"left":e;return a.createElement("div",{id:d,role:"alert",className:(0,n.AK)(s,"banner",`banner--align-${m}`,{[`banner--${o}`]:o,"banner--without-border-radius":c})},i&&a.createElement(r.Z,{img:i,className:"banner__icon"}),a.createElement("div",{className:"banner__content"},t&&a.createElement("div",{className:"banner__title"},t),a.createElement("div",{className:"banner__description"},l)))}},17073:(e,t,l)=>{l.d(t,{j:()=>a.j});var a=l(78225)},50557:(e,t,l)=>{l.d(t,{s:()=>n});var a=l(27378),r=l(36886);let n=({fallback:e=null,children:t})=>{let l=(0,r.t)();return a.createElement(a.Fragment,null,l?t:e)}},43373:(e,t,l)=>{l.d(t,{r:()=>n});var a=l(27378),r=l(98655);let n=(0,l(98846).n7)({resolved:{},chunkName:()=>"[dynamic@CookiesSelectModal]",isReady(e){let t=this.resolve(e);return!0===this.resolved[t]&&!!l.m[t]},importAsync:()=>l.e(5325).then(l.bind(l,45861)),requireAsync(e){let t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){return l(this.resolve(e))},resolve:()=>45861},{ssr:!1,fallback:a.createElement(r.c,null),displayName:"cookiesSettings"})},99485:(e,t,l)=>{l.d(t,{E:()=>u});var a=l(27378),r=l(15921),n=l(3034),s=l(99748),i=l(97606),o=l(12710),c=l(95654),d=l(3818);let m={"cv-detected-icon":"CvDetectedIcon__cv-detected-icon#w6"},u=({tag:e,hasTooltip:t,className:l})=>{let u=(0,c.C)(d.uG),{trans:p}=(0,i.QT)();if(!u.has(e.id))return null;if(t){let t=(0,o.MX)();return a.createElement(a.Fragment,null,a.createElement("span",{id:`cv-icon-${e.id}-${t}`},a.createElement(r.Z,{className:(0,s.AK)(m["cv-detected-icon"],l),img:"sparks",size:20})),a.createElement(n.Z,{isMobileRelative:!1,placement:"top",shouldPreventDefault:!0,targetId:`cv-icon-${e.id}-${t}`,showDelay:200},p("seo.indexHeadings.categoryWithCVDetectedContent",{category:p(`tagGenders.${e.primaryTagId}.${e.id}`)})))}return a.createElement(r.Z,{className:(0,s.AK)(m["cv-detected-icon"],l),img:"sparks",size:20})}},97759:(e,t,l)=>{l.d(t,{Z:()=>b});var a,r=l(18775),n=l(17945),s=l(27378),i=l(48204),o=l(35506),c=l(80936),d=l(1948),m=l(99382),u=l(64741),p=l(99748),h=l(12710);let v=()=>{let e=[];for(let t=0;t<24;t+=1)e.push(Math.floor(36*Math.random()).toString(36));return e.join("")+Date.now().toString(36)},E={apiLog:o.t$};class g extends(a=s.Component){checkIsErrorThrottledAndSaveTimestamp(e){let t=e.message;if(!t||"string"!=typeof t)return!1;let l=g.errorTimestamps[t]||0,a=Date.now();return g.errorTimestamps[t]=a,a-l{let{supportUrl:t,uniqToken:l,className:a}=e,r=`${t}?hash=${l}`;return s.createElement("div",{className:(0,p.AK)(a,"error-boundary")},s.createElement("div",{className:"content"},s.createElement("h1",{className:"title"},s.createElement("div",null,"Sorry, an error has occurred"),s.createElement("div",null,"Please, reload the page.")),s.createElement(m.ZP,{className:"button",onClick:()=>location.reload()},"Reload Page"),s.createElement("div",{className:"text"},"If this error occurs again,"," ",s.createElement(d.Z,{href:r,target:"_blank"},"contact support")," ","or try again later."),s.createElement("div",{className:"text-error"},"Error number:",s.createElement("span",{className:"text-error-number"},l))))},logSearchKey:"blackScreen"});let b=(0,c.H)("windowWidth","windowHeight")((0,i.$j)(e=>{let{currentModalName:t}=e.ui;return{currentModalName:t}},E)(g))},81944:(e,t,l)=>{l.d(t,{f:()=>c,q:()=>d});var a=l(47722),r=l(27378),n=l(11850),s=l(29413),i=l(99748),o=l(61171);let c=({className:e,position:t,children:l,variant:c,blockingId:d})=>{let m=(0,r.useRef)(null),[u,p]=(0,n.eW)(d),h=(0,r.useCallback)(()=>u,[u]);return r.createElement("div",{className:(0,i.AK)(e,"kebab-menu",`kebab-menu--${c}`,{shown:u})},r.createElement(a.mI,{className:(0,i.AK)("kebab-menu__button",{shown:u}),onClick:p,ref:m},r.createElement(s.Z,{img:"more-vertical"})),u&&r.createElement(o.Z,{background:"base",className:(0,i.AK)("kebab-menu__dropdown"),stateValueGetter:h,position:t,initiatorRef:{current:null}},r.createElement("div",null,l)))},d=({className:e,onClick:t,children:l})=>r.createElement(a.mI,{className:(0,i.AK)(e,"kebab-menu__dropdown-section"),onClick:e=>{e.preventDefault(),t()}},l)},42962:(e,t,l)=>{l.d(t,{O:()=>d});var a=l(27378),r=l(81944),n=l(61435),s=l(95654),i=l(12278),o=l(71227),c=l(20436);let d=({contentId:e,contentType:t,className:l,contentUser:d,isReportButtonHidden:m,blockingId:u,position:p="top-left",subContentType:h})=>{let v=(0,s.C)(i.rc),E=(0,s.C)(o.PO);return!E||v===d.id||m?null:a.createElement(r.f,{blockingId:u,className:l,position:p,variant:"viewer-model-report"},E&&a.createElement(c.f,{subContentType:h,iconSize:"medium",reportType:"content",reportedUser:d,contentType:t,contentId:e,className:"kebab-menu__dropdown-section",portalContainerId:n.i.REPORT_LIMIT_PORTAL_CONTAINER}))}},98742:(e,t,l)=>{l.d(t,{Z:()=>h});var a=l(47722),r=l(27378),n=l(97759),s=l(65804),i=l(29413),o=l(99748),c=l(97606),d=l(95654),m=l(68020);let u={root:"LoadableErrorBoundary#Jc",content:"LoadableErrorBoundary__content#Zq",title:"LoadableErrorBoundary__title#kE",text:"LoadableErrorBoundary__text#FK",reloadButton:"LoadableErrorBoundary__reloadButton#dE"},p=()=>{let e=(0,d.C)(m.VK),{trans:t}=(0,c.QT)();return r.createElement("div",{className:(0,o.AK)(u.root)},r.createElement("div",{className:u.content},r.createElement("strong",{className:u.title},r.createElement(i.Z,{img:"warning-triangle-outline-ds",size:20}),t("loadableError.title")),r.createElement(s.Z,{messageId:"loadableError.refreshing",className:u.text,wrapper:"p",elements:{button:r.createElement(a.mI,{className:u.reloadButton,onClick:()=>{location.reload()}})}}),r.createElement("p",{className:u.text},t("loadableError.adblock",{host:e}))))},h=({children:e})=>r.createElement(n.Z,{logSearchKey:"loadableBlackScreen",ErrorComponent:p},e)},29499:(e,t,l)=>{l.d(t,{Z:()=>n});var a=l(27378),r=l(85353);let n=()=>a.createElement("div",{className:"loadable-loader loader-container"},a.createElement(r.Z,{isCentered:!0}))},97554:(e,t,l)=>{l.d(t,{Z:()=>b});var a=l(27378),r=l(11850),n=l(29413),s=l(56322),i=l(99748),o=l(87937),c=l(95654),d=l(7685),m=l(12278),u=l(71227),p=l(20436),h=l(17723),v=l(61435),E=l(52345),g=l(16040);let b=({id:e,className:t,model:l,variant:b,onNotInterestedClick:f,isSilentToggleNotInterested:C=!1,shouldSwitchToNextModelOnNotInterested:y=!1,portalRootId:N=v.y.IDS.PORTAL_CONTAINER_UNDER_HEADER,report:_,isInFavorites:k=!1,showNotInterestedConfirmModal:A,isReportHidden:S})=>{let T=(0,c.C)(h.bl),w=(0,c.C)(m.Tv),P=(0,c.C)(u.PO),M=_&&(w||P)&&!S,I=(0,d.L)("model-additional-menu-button-"),[R,Z]=(0,r.eW)(),L=(0,a.useCallback)(e=>{e.preventDefault(),Z(e)},[Z]);if(!T&&!M)return null;let D=!(0,o.sk)()&&R&&a.createElement(s.Z,{portalContainerId:N,isForceVisible:!0,className:(0,i.AK)("model-additional-menu-dropdown",`model-additional-menu-dropdown--${b}`),targetId:null!=e?e:I,placement:"bottom-left",isMobileRelative:!1},a.createElement("div",{onClick:e=>{e.preventDefault()}},T&&a.createElement(E.$,{isInFavorites:k,isSilentToggleNotInterested:C,shouldSwitchToNextModel:y,onNotInterestedClick:f,model:l,className:"model-additional-menu-dropdown__section",showConfirmModal:A}),M&&_&&(P?a.createElement(p.f,{source:_.source,className:"model-additional-menu-dropdown__section",reportedUser:l,reportType:"model",shouldHideTooltipTriangle:!0}):a.createElement(g.t,{model:l,className:"model-additional-menu-dropdown__section",source:_.source}))));return a.createElement("div",{className:(0,i.AK)(t,"model-additional-menu",`model-additional-menu--${b}`,{shown:R})},a.createElement("div",{id:null!=e?e:I,className:(0,i.AK)("model-additional-menu__button",{shown:R}),onClick:L},a.createElement(n.Z,{img:"more-vertical"})),D)}},52345:(e,t,l)=>{l.d(t,{$:()=>C});var a=l(47722),r=l(27378),n=l(65804),s=l(16421),i=l(29413),o=l(3034),c=l(99748),d=l(97606),m=l(37226),u=l(94380),p=l(95654),h=l(7685),v=l(40580),E=l(12278),g=l(42339),b=l(35087),f=l(17723);let C=({isSilentToggleNotInterested:e,shouldSwitchToNextModel:t=!1,onNotInterestedClick:l,className:C,model:y,isInFavorites:N,showConfirmModal:_=!0})=>{let{trans:k}=(0,d.QT)(),A=(0,p.C)(g.TWc),S=(0,p.C)(E.q4),[T,w]=(0,r.useState)(!1),P=(0,u.T)(),M=(0,h.L)("not-interested-model-button-"),I=(0,r.useRef)(null),R=(0,p.C)(f.ph),Z=(0,p.C)(f.U9),L=(0,p.C)(e=>(0,f.l$)(e,null==y?void 0:y.id));(0,r.useEffect)(()=>{I.current=document.getElementById(M)},[M]);let D=R&&!L&&!N,B=`not-interested-for-${S}`,F=a=>{if(N){P((0,v.Ng)([y.id]));return}l&&!L?l(a):P(L?(0,b.J2)([y],e):(0,b.KH)(y,{isSilent:e,shouldSwitchToNextModel:t}))};return r.createElement(r.Fragment,null,r.createElement(a.mI,{id:M,className:(0,c.AK)(C,{disabled:D}),onClick:e=>{if(D){e.stopPropagation();return}if(_&&!m.x.get(B)&&A&&!L){e.stopPropagation(),w(!0);return}F(e)}},D&&r.createElement(o.Z,{targetId:M,placement:"top",gap:-10,isMobileRelative:!1},r.createElement("div",null,r.createElement(n.Z,{messageId:"modelAdditionalMenu.reachedNotInterestedModelsLimitTooltip",choiceParameter:"amount",parameters:{amount:Z}}))),!N&&r.createElement(i.Z,{img:L?"visible-eye":"invisible-eye"}),r.createElement("span",null,k(N?"modelAdditionalMenu.items.removeFromFavorites":L?"modelAdditionalMenu.items.interestedAgain":"modelAdditionalMenu.items.notInterested"))),T&&r.createElement(s.Z,{title:k("modelAdditionalMenu.notInterestedModal.title",{username:y.username}),okText:k("modelAdditionalMenu.notInterestedModal.hide"),className:"not-interested-confirmation-modal",onCancel:()=>w(!1),onConfirm:()=>{var e;L||m.x.set(B,"accepted"),null===(e=I.current)||void 0===e||e.click()},okButtonStyle:"accept",isModerModal:!0,isInPortal:!0},r.createElement("p",{className:"confirmation-modal-description"},k("modelAdditionalMenu.notInterestedModal.description"))))}},16040:(e,t,l)=>{l.d(t,{t:()=>h});var a=l(47722),r=l(27378),n=l(29413),s=l(3034),i=l(84423),o=l(99748),c=l(97606),d=l(95654),m=l(7685),u=l(39890),p=l(29421);let h=({className:e,model:t,source:l})=>{let{trans:h}=(0,c.QT)(),v=(0,r.useRef)(null),E=(0,d.C)(p.a4),g=(0,m.L)("report-model-button-");return r.createElement(a.mI,{className:(0,o.AK)(e,"a11y-button",{disabled:!E}),onClick:e=>{if(!E){e.stopPropagation();return}i.P4.show(u.W,{reporterType:"user",user:t,source:l})},ref:v,id:g},!E&&r.createElement(s.Z,{targetRef:v,placement:"top",gap:-10,isMobileRelative:!1},r.createElement("div",null,h("modelAdditionalMenu.disabledReportTooltip"))),r.createElement(n.Z,{img:"report-triangle"}),h("modelAdditionalMenu.items.report"))}},59259:(e,t,l)=>{l.d(t,{Q:()=>a});let a={NEW:"New",LOVENSE_TOY:"LovenseToy",KIIROO_TOY:"KiirooToy",LIVE:"Live",MOBILE:"Mobile",VR:"VR",GROUP_SHOW_ANNOUNCED:"GroupShowAnnounced",TICKET_SHOW_ANNOUNCED:"TicketShowAnnounced",GROUP_SHOW:"GroupShow",TICKET_SHOW:"TicketShow",PRIVATE:"Private",PLASMA:"Plasma",UP_FOR_PRIVATE:"UpForPrivate"}},13904:(e,t,l)=>{l.d(t,{N:()=>n});var a=l(95366),r=l(59259);let n=({isNew:e,isMobile:t,isLive:l,isVr:n,isLovense:s,isKiiroo:i,doSpy:o,hasPlasma:c,upForPrivate:d,status:m,hasGroupShowAnnouncement:u,groupShowType:p},{isLiveVisible:h,isPlasmaVisible:v,isPrivateVisible:E,isUpForPrivateVisible:g})=>{let b=t?r.Q.MOBILE:null,f=e?r.Q.NEW:null,C=h&&l?r.Q.LIVE:null,y=s&&r.Q.LOVENSE_TOY||i&&r.Q.KIIROO_TOY||null;if(g&&d)return[r.Q.UP_FOR_PRIVATE];if(v&&!C&&c)return[r.Q.PLASMA];if(E&&o&&[a.MODEL_STATUSES.STATUS_PRIVATE,a.MODEL_STATUSES.STATUS_VIRTUAL_PRIVATE].includes(m))return[b,r.Q.PRIVATE].filter(Boolean);if(m===a.MODEL_STATUSES.STATUS_GROUP_SHOW)return[b,"ticket"===p?r.Q.TICKET_SHOW:r.Q.GROUP_SHOW,f].filter(Boolean);let N=null;return(u&&(N="ticket"===p?r.Q.TICKET_SHOW_ANNOUNCED:r.Q.GROUP_SHOW_ANNOUNCED),n)?[C,r.Q.VR,N||y,f].filter(Boolean):b?(y?[C,N||b,y,f]:[C,b,N,f]).filter(Boolean):[C,N,y,f].filter(Boolean)}},7352:(e,t,l)=>{l.d(t,{j:()=>r});var a=l(59259);let r=e=>e.filter(e=>e!==a.Q.NEW)},80821:(e,t,l)=>{l.d(t,{B:()=>E,LL:()=>m,YE:()=>h,gs:()=>p,pC:()=>d,sm:()=>u,wj:()=>v});var a=l(66813),r=l(80406),n=l(95366),s=l(38667),i=l(87937),o=l(80092),c=l(71227);function d({modelAvatarUrl:e,modelPreviewUrlThumbBig:t,modelPreviewUrlThumbSmall:l,quality:a,shouldBeBlurred:r,isNonNudeWL:s}){return r?e:s?"":a===n.Yf2.BIG?t:l}function m({isSsrActive:e,modelId:t,nextSnapshotUrl:l}){let a="",r="";if((0,i.sk)())a=l;else if((0,i.C5)()&&e){let{bg:e,fallback:l}=function(e){let t=`#model-list-item-${e} .image-background`,l=document.querySelector(t);return l?{bg:l.src,fallback:l.style.backgroundImage}:{bg:"",fallback:""}}(t);a=e,r=l}return{candidate:a,fallbackCandidate:r}}function u(e){return e.includes("blurred")||e.includes("pixelated")?e.replace("pixelated","blurred"):e.includes("thumbs")?e.replace("thumbs","blurred"):void 0}function p({isMobileStream:e,hasCover:t}){return t&&e}function h({hasCover:e,previewImage:t}){return!e||!t||t.includes(a.KN)}let v=(0,r.P1)([c.m5,o.Sk,(e,t)=>t],(e,t,l)=>(0,s.tB)({needVerifyAge:e,isNonNudeCategoryEnabled:t,isModelNonNude:l}));function E(e,t){if(!e)return;if(e.startsWith("http://")||e.startsWith("https://")||!t)return e;let l=t.replace(/\/$/,"");return e.startsWith("/")?`${l}${e}`:`${l}/${e}`}},97172:(e,t,l)=>{l.d(t,{x:()=>_});var a=l(27378),r=l(81688),n=l(95654),s=l(62203),i=l(80092),o=l(71227),c=l(42339),d=l(80821),m=l(66813),u=l(95366),p=l(50399),h=l(68020);let v=({model:e,quality:t,shouldShowPopularSnapshot:l,mode:r})=>{let s=(0,n.C)(h.uL),i=(0,n.C)(h.FO),o=(0,n.C)(p.h6),c=(0,n.C)(h.Vp),v=(0,m.iJ)({isLowQualityPreview:t===u.Yf2.SMALL,isPopularTimeStamp:l,modelData:{snapshotTimestamp:e.snapshotTimestamp,popularSnapshotTimestamp:e.popularSnapshotTimestamp,previewUrlThumbBig:(0,d.B)(e.previewUrlThumbBig,s),previewUrlThumbSmall:(0,d.B)(e.previewUrlThumbSmall,s),status:e.status},model:{id:e.id,profile:{avatarUrl:(0,d.B)(e.avatarUrl,s)}},mode:r,snapshotUrlTemplate:i,hasWebpSupport:o},null).url,{candidate:E,fallbackCandidate:g}=(0,d.LL)({modelId:e.id,nextSnapshotUrl:v,isSsrActive:c}),[b,f]=(0,a.useState)(E),[C,y]=(0,a.useState)(g),[N,_]=(0,a.useState)(!0);return{previewImage:b,fallbackImage:C,hasCover:N,nextSnapshotUrl:v,handleResultDefined:(0,a.useCallback)(e=>{f(e||""),y(""),_(!!e)},[])}};var E=l(9957),g=l(35506),b=l(99973),f=l(7386),C=l(8031);let y=({shouldBeBlurred:e,nextSnapshotUrl:t,onResultDefined:l,isNonNudeWL:r,quality:s,model:i})=>{let o=(0,n.C)(h.uL),c=(0,n.C)(h.cV),u=(0,a.useRef)(),p=(0,a.useCallback)(()=>{var a;null===(a=u.current)||void 0===a||a.cancelFetching();let n=(0,d.pC)({modelPreviewUrlThumbSmall:(0,d.B)(i.previewUrlThumbSmall,o),modelPreviewUrlThumbBig:(0,d.B)(i.previewUrlThumbBig,o),modelAvatarUrl:(0,d.B)(i.avatarUrl,o),shouldBeBlurred:e,isNonNudeWL:r,quality:s});try{u.current=new m.hc(t,n,"number"==typeof c?c*C.Zv:void 0,l,g.ZP)}catch(e){(0,f.R)(e)&&g.ZP.error(e)}},[i.previewUrlThumbSmall,i.previewUrlThumbBig,i.avatarUrl,o,e,r,s,t,c,l]),{ref:v,inView:y}=(0,E.YD)({rootMargin:"300px",skip:!b.BROWSER_CAPABILITIES.intersectionObserver,triggerOnce:!0});return(0,a.useEffect)(()=>{if(y||!b.BROWSER_CAPABILITIES.intersectionObserver)return p(),()=>{var e;return null===(e=u.current)||void 0===e?void 0:e.cancelFetching()}},[i.id,i.status,y,p]),v},N=(e,t)=>{if(e)return t?"pixelated":"blurred"},_=({model:e,shouldShowPopularSnapshot:t,quality:l})=>{let m=(0,n.C)(o.m5),u=(0,n.C)(s.Hw),p=m&&u,h=(0,n.C)(t=>(0,d.wj)(t,e.isNonNude))||p,E=(0,n.C)(i.Yr)||p,g=(0,n.C)(c.bd3),b=(0,n.C)(c.CNs),f=(0,n.C)(s.Km),C=(0,r.O)(),_=!h||E,{previewImage:k,nextSnapshotUrl:A,fallbackImage:S,hasCover:T,handleResultDefined:w}=v({model:e,shouldShowPopularSnapshot:t,quality:l,mode:N(h,E)}),P=(0,d.gs)({isMobileStream:e.isMobile,hasCover:T}),M=(0,d.YE)({hasCover:T,previewImage:k});return{ref:y({onResultDefined:w,nextSnapshotUrl:A,shouldBeBlurred:h,isNonNudeWL:f,quality:l,model:e}),isPreviewOrAvatar:(0,a.useMemo)(()=>!!(k&&!(0,d.sm)(k)),[k]),noCover:M,shouldBackgroundShowBlur:P,fallbackImage:S,canHaveBlurredBg:_,shouldLazyLoadImage:g&&C>b,previewImage:k,nextSnapshotUrl:A,shouldBeBlurred:h}}},53603:(e,t,l)=>{l.d(t,{T:()=>c});var a=l(27378),r=l(38667),n=l(97606),s=l(95654),i=l(243),o=l(62203);let c=(e,t)=>{let{trans:l}=(0,n.QT)(),c=(0,s.C)(o.gb),d=(0,s.C)(i.BH);return(0,a.useMemo)(()=>t&&c?l(`modelImageAlt.${e}.${c}`,{modelname:(0,r.ks)(t,d)}):"",[t,c,l,e,d])}},49938:(e,t,l)=>{l.d(t,{a:()=>d});var a=l(27378),r=l(15921),n=l(99748),s=l(97606),i=l(95366);let o=({doSpy:e,status:t})=>e||t!==i.MODEL_STATUSES.STATUS_PRIVATE?t===i.MODEL_STATUSES.STATUS_P2P||t===i.MODEL_STATUSES.STATUS_P2P_VOICE?{icon:"lock-1",labelTransKey:"modelList.status.exclusivePrivate"}:t===i.MODEL_STATUSES.STATUS_PRIVATE||t===i.MODEL_STATUSES.STATUS_VIRTUAL_PRIVATE?{icon:"spy-on",labelTransKey:"modelList.status.spy"}:{}:{icon:"lock-1",labelTransKey:"modelList.status.private"},c={root:"ModelThumbPrivateCover#_j",content:"ModelThumbPrivateCover__content#Fp",label:"ModelThumbPrivateCover__label#y7",icon:"ModelThumbPrivateCover__icon#XI",iconWrapper:"ModelThumbPrivateCover__icon-wrapper#jA",active:"ModelThumbPrivateCover__active#sX"},d=(0,a.memo)(({isActive:e,status:t,doSpy:l})=>{let{trans:i}=(0,s.QT)(),{labelTransKey:d,icon:m}=o({status:t,doSpy:l});return d&&m?a.createElement("div",{className:(0,n.AK)(c.root,{[c.active]:e})},a.createElement("div",{className:c.content},a.createElement("div",{className:c.iconWrapper},a.createElement(r.Z,{className:c.icon,img:m})),a.createElement("span",{className:c.label},i(d)))):null})},79420:(e,t,l)=>{l.d(t,{Z:()=>o});var a=l(27378),r=l(1948),n=l(57174),s=l(95654),i=l(71227);let o=({supportLinkKey:e,as:t="anchor",style:l,buttonStyle:o,locale:c,...d})=>{let m=(0,s.C)(t=>e?(0,i.K9)(t,{key:e,localeForce:c}):void 0);return"button"===t?m?a.createElement(n.ZP,{...d,styles:l,style:o,type:"anchor",rel:"nofollow",href:m,target:"_blank"}):a.createElement(n.ZP,{...d,styles:l,style:o,rel:"nofollow"}):a.createElement(r.Z,{...d,style:l,rel:"nofollow",href:m,target:"_blank"})}},1689:(e,t,l)=>{l.d(t,{Z:()=>o});var a=l(27378),r=l(1948),n=l(99382),s=l(95654),i=l(71227);let o=({wikiLinkKey:e,as:t="anchor",buttonStyle:l,buttonSize:o,locale:c,style:d,...m})=>{let u=(0,s.C)(t=>(0,i.Li)(t,{key:e,locale:c}));return"button"===t?a.createElement(n.ZP,{...m,styles:d,style:l,size:o,type:"anchor",rel:"nofollow",href:u,target:"_blank"}):a.createElement(r.Z,{...m,style:d,rel:"nofollow",href:u,target:"_blank"})}},72228:(e,t,l)=>{l.d(t,{w4:()=>n,Ll:()=>s.Z,MT:()=>i.Z});var a=l(27378),r=l(1948);let n=({href:e,target:t,...l})=>a.createElement(r.Z,{...l,target:null!=t?t:"_blank",href:e,rel:"nofollow"});var s=l(79420),i=l(1689)},45793:(e,t,l)=>{l.d(t,{Z:()=>p});var a=l(27378),r=l(35506),n=l(88056),s=l(85353),i=l(64402),o=l(97606),c=l(94030),d=l(17342);let m=()=>(r.ZP.info("PageWrapper renderPending()"),a.createElement("div",{className:"loader-container"},a.createElement(s.Z,{isCentered:!0}))),u=()=>(r.ZP.info("PageWrapper renderFailed()"),a.createElement(i.Z,null)),p=e=>{let t;let{children:l,className:r,title:s,titleKey:i,description:p,descriptionKey:h,descriptionOg:v,isDataFailed:E,isDataPending:g,indexingType:b,willScrollTop:f=!0,scrollTopDependency:C=null}=e,y=(0,o.QT)();return(0,c.j)(C,f),t=g?e.renderPending?e.renderPending():m():E?e.renderFailed?e.renderFailed():u():l,a.createElement("div",{className:r||"page-wrapper"},a.createElement(n.Z,{title:(0,d.f)({title:s,titleKey:i,i18n:y}),description:(0,d.v)({description:p,descriptionKey:h,i18n:y}),descriptionOg:v||p,indexingType:b}),t)}},17342:(e,t,l)=>{l.d(t,{f:()=>a,v:()=>r});let a=({title:e,titleKey:t,i18n:{transSeo:l}})=>e||l(t||"seo.title.default",{seoExtra:!1}),r=({description:e,descriptionKey:t,i18n:{transSeo:l}})=>e||l(t||"seo.description.default",{seoExtra:!1})},56676:(e,t,l)=>{l.d(t,{Z:()=>p});var a=l(18775),r=l(76482),n=l(27378),s=l(48204),i=l(50624),o=l(42815),c=l(42339),d=l(79561);let m={privateHistoryUpdate:i.YW};class u extends n.Component{componentDidMount(){let{features:{privateLogRecorder:e}}=this.props;e&&o.ZP.updateRecordLogEnabled(e.isRecordLogEnabled),this.updateLPrivateDataLogger()}componentDidUpdate(e){let{isInPrivate:t}=e,{isInPrivate:l,showId:a}=this.props;if(l&&a&&o.ZP.updateShowId(a),t!==l&&l){o.ZP.startRecord();return}this.updateLPrivateDataLogger()}componentWillUnmount(){this.updateLPrivateDataLogger.cancel()}render(){return null}constructor(...e){super(...e),(0,a._)(this,"updateLPrivateDataLogger",(0,r.Z)(()=>{let{isInPrivate:e}=this.props,t=o.ZP.hasData();e?o.ZP.startRecord():t&&this.updatePrivateData()},5e3)),(0,a._)(this,"updatePrivateData",()=>{o.ZP.stopRecord();let e=o.ZP.getData();this.props.privateHistoryUpdate(e)})}}let p=(0,s.$j)(e=>({showId:(0,d.cu)(e),isInPrivate:(0,d.wp)(e)||(0,d.UP)(e),features:(0,c.N$r)(e)}),m)(u)},39120:(e,t,l)=>{l.d(t,{Z:()=>n});var a=l(27378),r=l(64696);class n extends a.Component{componentDidMount(){(0,r.Z)(this.props.propsUpdateToActionsMap,{},this.props)}componentDidUpdate(e){(0,r.Z)(this.props.propsUpdateToActionsMap,e,this.props)}render(){var e;return null!==(e=this.props.children)&&void 0!==e?e:null}}},9577:(e,t,l)=>{l.d(t,{U:()=>s});var a=l(47722),r=l(27378),n=l(99748);let s=({link:e,className:t})=>{let[s,i]=(0,r.useState)(""),[o,c]=(0,r.useState)(!1);return(0,r.useEffect)(()=>{if(!e)return;let t=!1;return(async()=>{c(!0);let a=await l.e(1487).then(l.t.bind(l,69640,19));if(t)return;let r=await a.toString(e,{type:"svg"});if(t)return;let n=`data:image/svg+xml;base64,${btoa(r)}`;c(!1),i(n)})(),()=>{t=!0}},[e]),r.createElement("div",{className:(0,n.AK)("qr-code",t,{"qr-code--loading":o})},s&&r.createElement("img",{"data-qr-link":e,src:s,alt:"qr code",className:"qr-code__image"}),o&&r.createElement(a.rs,{size:20,color:"default"}))}},3319:(e,t,l)=>{l.d(t,{Z:()=>g});var a=l(27378),r=l(20717),n=l(95654),s=l(62203),i=l(68020);let o=/^https?:\/\/([a-z]{2}\.)?/,c=e=>e.replace(o,""),d=e=>{var t;return null!==(t=null==e?void 0:e.startsWith("http"))&&void 0!==t&&t},m=e=>!!e&&/^https:\/\/(\w+\.)?(my\.club|fanclub\.dev)/.test(e),u=(e,t)=>e.startsWith("/")||c(e).startsWith(t),p=(e,t)=>d(e)?u(e,t)||m(e)?"own":"outer":"non-http",h=(e,t)=>[...new Set(`${e||""} ${t}`.split(" ").filter(Boolean))].join(" "),v={"non-http":({rel:e})=>({rel:null==e?void 0:e.trim()}),own:({rel:e})=>({rel:h(e,"noopener")}),outer:({rel:e})=>({rel:e?h(e,"noopener"):"nofollow noreferrer noopener",target:"_blank"})},E=[{regexp:/^https:\/\/(\w+\.)?(my\.club|fanclub\.dev)/,attributes:({rel:e,hostName:t,href:l=""})=>({href:(0,r.uR)(l,t),rel:h(e,"noopener")})}],g=e=>{var t;let{children:l,innerRef:r,...o}=e,c=(0,n.C)(i.VK),d=p(e.href,c),m=(0,n.C)(s.Lp),u=v[d]({...e,hostName:m}),h=(null===(t=E.find(({regexp:t})=>t.test(e.href||"")))||void 0===t?void 0:t.attributes({...e,hostName:m}))||{},g={};return"overrideRel"in e&&(g.rel=e.overrideRel,delete o.overrideRel),"target"in e&&(g.target=e.target||void 0,delete o.target),a.createElement("a",{ref:r,...o,...u,...h,...g},l)}},1948:(e,t,l)=>{l.d(t,{Z:()=>a.Z});var a=l(3319)},186:(e,t,l)=>{l.d(t,{Z:()=>s});var a=l(27378),r=l(35506);class n extends a.Component{static getDerivedStateFromError(){return{isFailed:!0}}componentDidCatch(e,t){r.ZP.error(e,t),this.props.onError&&this.props.onError(e,t)}render(){let{fallbackContent:e,children:t}=this.props,{isFailed:l}=this.state;return l?e||"":t}constructor(e){super(e),this.state={isFailed:!1}}}let s=n},84935:(e,t,l)=>{l.d(t,{Z:()=>h});var a=l(27378),r=l(35840),n=l(37112),s=l(95654),i=l(13743),o=l(27251),c=l(12278),d=l(58320),m=l(65103),u=l(79561),p=l(29421);let h=a.memo(()=>{let e=(0,s.C)(u.cu),t=(0,s.C)(u.Zu),l=(0,s.C)(m.Ms),a=(0,s.C)(c.rc),h=(0,s.C)(r.n5),v=(0,s.C)(i.fm),E=(0,s.C)(d.Aq),g=(0,s.C)(d.Sf),b=(0,s.C)(c.PY),f=(0,s.C)(u.vX),C=(0,s.C)(o.PF),y=(0,s.C)(p.$u),N=(0,s.C)(u.cB);return n.Z.setFields({isCamEnabled:f.isCamEnabled,isMicEnabled:f.isMicEnabled,guestId:b||void 0,isDocumentVisible:C,groupShowType:N,fingerprint:null==v?void 0:v.fingerprintV1,isOwnShow:y,username:l,modelId:h,player:E,volume:g,showId:e,userId:a,mode:t}),null})},36846:(e,t,l)=>{l.d(t,{Z:()=>i});var a=l(27378),r=l(53788);let n=({eventKey:e})=>((0,r.db)(`wsMessage:${e}`,()=>{}),null),s=({eventWithCallback:e})=>{let t=e.subscriptionKey;return(0,r.db)(`wsMessage:${t}`,({data:t})=>{e.callback(t)}),null},i=({events:e,eventsWithCallbacks:t})=>a.createElement(a.Fragment,null,null==e?void 0:e.map(e=>a.createElement(n,{key:e,eventKey:e})),null==t?void 0:t.map(e=>a.createElement(s,{key:e.subscriptionKey,eventWithCallback:e})))},37154:(e,t,l)=>{l.d(t,{Z:()=>v});var a=l(6966),r=l(27378),n=l(48204),s=l(93704),i=l(64741),o=l(243),c=l(59609),d=l(62203),m=l(71227),u=l(68020),p=l(75682),h=l(87400);let v=(0,n.$j)(e=>({canonicalUrl:(0,h.Z)(e),currentLocale:function(e){return({br:"pt-BR"})[e]||e}((0,u._f)(e)),currentURL:(0,m.j4)(e),metaOgImageUrl:(0,c._w)(e),alternateLangLinks:(0,p.Q)(e),isStripChat:(0,d.ok)(e),isXhlOrMirror:(0,d.cv)(e),isViewCamPage:(0,o.mT)(e),isSupportPage:!!(0,o.Ee)(e),siteName:(0,d.hA)(e),hostName:(0,d.Lp)(e),isHomepageBranch:(0,s.hH)(e),streamHostPreconnectUrl:(0,m.Lb)(e)}))(({alternateLangLinks:e,canonicalUrl:t,currentLocale:l="en",currentURL:n,metaOgImageUrl:s,siteName:o,isStripChat:c,isSupportPage:d,isXhlOrMirror:m,isViewCamPage:u,hostName:p,isHomepageBranch:h,streamHostPreconnectUrl:v})=>{let E=[];(c||m)&&(u||E.push((0,a.by)("type","website"),(0,a.by)("image",s)),E.push((0,a.by)("url",n),(0,a.UE)("card","summary_large_image")),E.push({tagName:"HEAD",attrs:{prefix:"og: http://ogp.me/ns# fb: http://ogp.me/ns/fb# website: http://ogp.me/ns/website#"}}),c?E.push((0,a.by)("site_name","Stripchat – Free Live Cams Community")):E.push((0,a.by)("site_name",`${o} – Free Live Webcams`)),c?E.push((0,a.UE)("creator","@stripchat"),(0,a.UE)("site","@stripchat")):E.push((0,a.UE)("creator","@xhamstercom"),(0,a.UE)("site","@xhamstercom"))),Array.isArray(e)&&E.push(...e.map(e=>({tagName:"LINK",attrs:{rel:"alternate",href:e.href,hreflang:e.hreflang}}))),d&&E.push({tagName:"LINK",attrs:{rel:"canonical",href:i.oo}});let g="en"!==l;if(h&&!g){let e="/"===p[p.length-1]?p:`${p}/`;E.push({tagName:"SCRIPT",attrs:{type:"application/ld+json",id:"google_search_snippet"},textContent:JSON.stringify({"@context":"https://schema.org","@type":"WebSite",url:`https://${e}`,potentialAction:{"@type":"SearchAction",target:`https://${p}/search/{search_term_string}`,"query-input":"required name=search_term_string"}})})}return v&&E.push({tagName:"LINK",attrs:{rel:"preconnect",href:v}}),r.createElement(a.ZP,{canonicalUrl:t,locale:l,tags:E})})},88056:(e,t,l)=>{l.d(t,{Z:()=>d});var a=l(6966),r=l(27378),n=l(64515),s=l(87937),i=l(97606),o=l(95654);let c=(0,s.C5)()?()=>(0,o.C)(n.k9):()=>0,d=(0,r.memo)(({title:e,imageOg:t,descriptionOg:l,tags:n,...s})=>{let{transSeo:o}=(0,i.QT)(),d=c(),m=Array.isArray(n)?n:[],u=`${d>0?`(${d}) `:""}`;return e&&m.push((0,a.by)("title",e)),t&&m.push((0,a.by)("image",t)),l&&m.push((0,a.by)("description",l)),r.createElement(a.ZP,{...s,title:e?`${u}${e} | ${o("seo.title.ending")}`:void 0,tags:m})})},70301:(e,t,l)=>{l.d(t,{I:()=>p});var a=l(27378),r=l(50557),n=l(97759),s=l(95654),i=l(33921),o=l(17650);let c=()=>{"serviceWorker"in navigator&&!window.LEGACY&&navigator.serviceWorker.getRegistrations().then(e=>e.forEach(e=>{e.active&&e.scope.endsWith("/moengage/")&&e.unregister()}))},d=()=>{let e=(0,s.C)(o.nf);return((0,a.useEffect)(()=>{e||c()},[e]),e)?a.createElement(i.D,null):null};var m=l(1996);let u=()=>null,p=()=>a.createElement(r.s,null,a.createElement(n.Z,{ErrorComponent:u},a.createElement(d,null),a.createElement(m.H,null)))},57268:(e,t,l)=>{l.d(t,{Z:()=>i});var a=l(27378),r=l(35826),n=l(95654),s=l(68020);let i=e=>{let t=(0,n.C)(s.r7);return!(0,n.C)(s.hI)||t?null:a.createElement(r.Z,{type:"alert-small",...e},"!")}},45979:(e,t,l)=>{l.d(t,{Z:()=>Z});var a=l(27378),r=l(4289),n=l(65804),s=l(29413),i=l(92644),o=l(3034),c=l(99748),d=l(97606),m=l(12710),u=l(95654),p=l(68020),h=l(47722),v=l(11850),E=l(61171),g=l(12278),b=l(91456),f=l(99382),C=l(89057),y=l(8950),N=l(75997),_=l(94380),k=l(52729),A=l(84185),S=l(7474);let T=e=>{let{trans:t}=(0,d.QT)(),l=(0,_.T)(),r=(0,u.C)(g.ts),o=(0,u.C)(b.DF),[c,m]=(0,a.useState)(null==r?void 0:r.userRanking.level),[p,h]=(0,a.useState)((null==r?void 0:r.userRanking.realLevel)!==(null==r?void 0:r.userRanking.level));if(!r)return null;let v=c!==r.userRanking.level,E=async a=>{a.preventDefault();let r=o.find(e=>e.level===c);try{await l((0,A.r4)(r.league,r.level)),l((0,k.LX)(t("userLevels.leagueLegend.maskModal.successNotification"),"mask-league"))}catch(e){l((0,k.s9)(t("errors.serverError"),"mask-league"))}e.onClose()};return a.createElement(C.Z,{className:"modal-wrapper mask-league-modal",onClose:e.onClose,source:"profileLeague",titlePosition:"outside",isWrapperCloseDisabled:!0},a.createElement("div",{className:"mask-league-modal-header"},a.createElement(i.Z,{league:r.userRanking.realLeague,level:r.userRanking.realLevel,size:"big"}),a.createElement("span",{className:"mask-league-modal-header-league"},t(`userLevels.leagues.${r.userRanking.realLeague}`))),a.createElement("p",null,t("userLevels.leagueLegend.maskModal.description1"),a.createElement("br",null),t("userLevels.leagueLegend.maskModal.description2"),a.createElement("br",null),a.createElement("br",null),t("userLevels.leagueLegend.maskModal.description3")),!(null==o?void 0:o.length)&&a.createElement("div",{className:"mask-league-modal-unlock"},a.createElement(s.Z,{img:"lock"}),a.createElement("div",null,a.createElement(n.Z,{messageId:"userLevels.leagueLegend.maskModal.unlockDescription",elements:{accent:a.createElement("span",{className:"color-league-diamond"})},wrapper:null}),a.createElement("br",null),t("userLevels.leagueLegend.maskModal.unlockDescription2"))),!!(null==o?void 0:o.length)&&a.createElement(a.Fragment,null,a.createElement("div",{className:"mask-league-modal-switcher-wrapper"},t("userLevels.leagueLegend.menu.mask"),a.createElement(N.Z,{size:"small",isChecked:p,onChange:()=>{p&&l((0,A.p6)()),h(!p)}})),p&&a.createElement("form",{className:"mask-league-modal-form",onSubmit:E},a.createElement("p",null,t("userLevels.leagueLegend.maskModal.chooseStatus")),o.map(({league:e,level:t,isEx:l})=>a.createElement("div",{key:t},a.createElement(y.Z,{checked:t===c,name:"mask-level",value:t,onChange:e=>m(Number(e.target.value)),theme:"primary"},a.createElement(S.Z,{levelBadgeSize:"regular",placeId:`mask-league-modal-${t}`,isUltimateIconVisible:!1,isGenderIconHidden:!0,user:{...r,userRanking:{league:e,level:t,isEx:l}}})))),a.createElement("div",{className:"mask-league-modal-form-controls"},a.createElement("div",null,a.createElement(f.ZP,{disabled:!v,style:"apply-primary",type:"submit"},t("settings.save")),a.createElement(f.ZP,{disabled:!v,onClick:e.onClose,style:"default-restyled",type:"button"},t("settings.cancel")))))))},w=({className:e,tooltipPosition:t="bottom-left"})=>{var l,r;let{trans:o}=(0,d.QT)(),m=(0,u.C)(b.lM),p=(0,u.C)(g.ts),[f,C]=(0,v.eW)(),[y,N]=(0,a.useState)(!1);if(!p)return null;let _=null===(l=p.userRanking)||void 0===l?void 0:l.realLeague;return a.createElement(a.Fragment,null,a.createElement("span",{className:(0,c.AK)("profile-progress-block-menu",e)},a.createElement(h.mI,{className:(0,c.AK)("profile-progress-block-menu__btn",{"profile-progress-block-menu__btn--active":f}),onClick:C},a.createElement(s.Z,{img:"menu-mobile",className:"profile-progress-block-menu__icon"})),f&&a.createElement(E.Z,{className:"dropdown-menu",stateValueGetter:()=>f,isMobileViewEnabled:!1,position:t,background:"light",shadow:!0},a.createElement(h.mI,{className:(0,c.AK)("profile-progress-block-menu__item"),onClick:()=>N(!0)},!!(null===(r=p.userRanking)||void 0===r?void 0:r.realLevel)&&a.createElement(i.Z,{icon:"mask",league:"royal"===_||"legend"===_?_:"diamond",level:p.userRanking.realLevel}),o("userLevels.leagueLegend.menu.mask")),!m&&a.createElement("div",{className:"profile-progress-block-menu__unlock"},a.createElement(s.Z,{img:"lock",className:"profile-progress-block-menu__unlock-icon"}),a.createElement("div",null,a.createElement(n.Z,{elements:{accent:a.createElement("span",{className:"color-league-diamond"})},messageId:"userLevels.leagueLegend.menu.startingFrom",wrapper:null}),a.createElement("br",null),o("userLevels.leagueLegend.menu.startingFromKeep"))))),y&&a.createElement(T,{onClose:()=>N(!1)}))},P=(e,t)=>{let l=t.realLevel+1;return Object.keys(e.leagueLevels).find(t=>{let a=e.leagueLevels[t];return l>=a[0]&&l<=a[1]})},M=(e,t)=>{let l=t.userRanking.realLevel;return[e.levelExperience[l],e.levelExperience[l+1]]},I=e=>a.createElement("span",{className:"user-levels-league-progress-view-value"},e,"%"),R=(e,t,l)=>a.createElement("span",{className:"user-levels-league-progress-view-value xp"},a.createElement(n.Z,{messageId:"userLevels.experienceProgress",parameters:{count1:(0,m.ER)(t-e),count2:(0,m.ER)(l-e)},elements:{accent:a.createElement("span",{className:"accent"})}})),Z=({countType:e="percent",useLink:t,user:l,size:n="regular",isShowTooltip:m,shouldHideMaskDropdown:h})=>{var v;let{trans:E}=(0,d.QT)(),g=(0,u.C)(p.W5);if(!(null===(v=l.userRanking)||void 0===v?void 0:v.league)||!g)return null;let[b,f]=M(g,l)||[],C=f?0|Math.min(100,(l.userRanking.experience-b)/(f-b)*100):100,y=!!(m&&"legend"!==l.userRanking.realLeague),N=P(g,l.userRanking),_=`progress-block-${l.id}-${n}-${e}`,k=a.createElement(a.Fragment,null,a.createElement("div",{className:"user-levels-league-progress-header"},a.createElement("span",{className:"user-levels-league-progress-league-name"},a.createElement(i.Z,{size:n,league:l.userRanking.realLeague,level:l.userRanking.realLevel}),a.createElement("span",{className:"user-levels-league-progress-league-name-number"},E("userLevels.level")),!h&&a.createElement(w,{tooltipPosition:"right"})),!!t&&a.createElement("span",{className:"user-levels-league-progress-all"},E(`userLevels.leagues.${l.userRanking.realLeague}`),a.createElement(s.Z,{img:"chevron-right",size:14})),!t&&!!N&&a.createElement("span",{className:"user-levels-league-progress-next-league"},E(`userLevels.leagues.${N}`))),a.createElement("div",{className:`user-levels-league-progress-view user-levels-league-progress-view-size-${n} user-levels-league-progress-view-league-${l.userRanking.realLeague}`,id:_},a.createElement("span",{className:"user-levels-league-progress-line",style:{width:`${100-C}%`}}),"legend"===l.userRanking.realLeague?a.createElement("span",{className:"user-levels-league-progress-view-value user-levels-league-progress-view-winner"},E("userLevels.youAreLegend")):a.createElement(a.Fragment,null,"percent"===e&&I(C),"xp"===e&&R(b,l.userRanking.experience,f)),"legend"!==l.userRanking.realLeague&&a.createElement("span",{className:"user-levels-league-progress-view-percent"},E("userLevels.levelNumber",{level:l.userRanking.realLevel+1})),y&&a.createElement(o.Z,{className:"user-levels-league-progress-tooltip",isMobileRelative:!1,targetId:_},`${E("userLevels.nextLevel")}: `,R(b,l.userRanking.experience,f))));return t?a.createElement(r.rU,{className:(0,c.AK)(`user-levels-league-progress user-levels-league-progress-size-${n}`,{"user-levels-league-progress--ultimate":l.isUltimate}),to:`/user/${l.username}/league`},k):a.createElement("div",{className:`user-levels-league-progress user-levels-league-progress-size-${n}`},k)}},35317:(e,t,l)=>{l.d(t,{Z:()=>f});var a=l(27378),r=l(48204),n=l(4289),s=l(83550),i=l(99382),o=l(65804),c=l(29413),d=l(92644),m=l(99973),u=l(33440),p=l(64515),h=l(99748),v=l(97606),E=l(98131),g=l(12278);let b={clearLevelNotification:u.bK,emitButtonEvent:s.d2},f=(0,r.$j)(e=>({levelNotification:(0,p.oq)(e),shouldShowAlmost10LvlNotice:(0,E.Wt)(e),realLeague:(0,g.OL)(e),realLevel:(0,g.eo)(e)}),b)(e=>{let t;let{trans:l}=(0,v.QT)(),{levelNotification:r,realLevel:s,realLeague:u,shouldShowAlmost10LvlNotice:p}=e;if(!s||!u)return null;if(p)t="userLevels.notification.almostLevel10";else{if(!r)return null;let{previousLeague:e,previousUltimateStatus:l}=r,a="royal"===u&&u!==e,n=a&&!l.isUltimate;t=a&&l.isUltimate&&!l.isUltimatePermanent?"userLevels.notification.newLeagueBecomeUltimatePermanent":n?"userLevels.notification.newLeagueBecomeUltimate":"legend"===u?"userLevels.notification.newLegendLevel":e!==u?"userLevels.notification.newLeague":"userLevels.notification.newLevel"}return a.createElement("div",{className:(0,h.AK)("user-level-notification",`user-level-notification-league-${u}`,{"user-level-notification--almost-level-10":p})},a.createElement("div",{className:"user-level-notification__badge"},a.createElement(d.Z,{level:s,league:u,isShadow:!0})),a.createElement("div",{className:"user-level-notification__content"},a.createElement("div",{className:"user-level-notification__text"},a.createElement(o.Z,{messageId:t,elements:{level:a.createElement("span",{className:"user-level-notification__level"}),levelUp:a.createElement("span",{className:"user-level-notification__level-up"}),start:a.createElement("span",{className:"user-level-notification__almost-level-10-start"}),end:a.createElement("span",{className:"user-level-notification__almost-level-10-end"}),accent:a.createElement("b",{className:`color-league-${u}`}),iconUltimate:a.createElement("span",{className:"ultimate-star"}),ultimateLink:a.createElement(n.rU,{className:"color-league-ultimate",to:"/subscriptions"})},parameters:{level:s,league:l(`userLevels.leaguesShort.${u}`)},wrapper:null})),p&&a.createElement(i.ZP,{className:"user-level-notification__buy-tokens-button",style:"money",onClick:()=>e.emitButtonEvent(m.FO.ALMOST_10_LEVEL_NOTIFICATION_TOKENS_BTN)},l("button.getTokens"))),a.createElement("div",{className:"user-level-notification__close",onClick:e.clearLevelNotification},a.createElement(c.Z,{size:11,img:"close-3"})))})},51006:(e,t,l)=>{l.d(t,{F:()=>s});var a=l(27378),r=l(56322),n=l(97606);let s=({league:e,isVisibleExTooltip:t,className:l})=>{let{trans:s}=(0,n.QT)(),i=(0,a.useRef)(null),o=s("camChat.exLeagueDescription",{league:s(`userLevels.leaguesShort.${e}`)});return t?a.createElement("span",{className:l},a.createElement("sup",{ref:i},"ex"),a.createElement(r.a,{isOtimized:!1,targetRef:i,dataTooltip:o,placement:"right",className:`color-league-${e}`},o)):a.createElement("sup",{className:`color-league-${e}`},"ex")}},37652:(e,t,l)=>{l.d(t,{H:()=>o,Z:()=>m});var a=l(27378),r=l(4289),n=l(99748),s=l(97606),i=l(51006);let o=(e,t)=>`user-levels-name-${e.id}-${t}`,c=(e,t,l,a,r)=>a?l||(null==t?void 0:t.isEx)?"color-league-grey":e.hasAdminBadge?"user-levels-username-admin":d(t,r):"";function d(e,t){return e?`color-league-${t?e.realLeague:e.league}`:"color-league-default"}let m=e=>{let{trans:t}=(0,s.QT)(),{children:l,link:m,user:u,onClick:p,onMouseEnter:h,onMouseLeave:v,isAnonymous:E,className:g,textClassName:b,isColored:f=!0,isVisibleExTooltip:C=!0,rightSideComponent:y=null,placeId:N,shouldShowRealLevel:_,userRankingFallback:k,...A}=e,S=k||u.userRanking,T=E?t("camChat.someone"):u.username,w=`user-levels-username-text${b?` ${b}`:""}`,P=a.createElement(a.Fragment,null,l,a.createElement("span",{className:w,id:o(u,N),onClick:p,onMouseEnter:h,onMouseLeave:v},T),!!((null==S?void 0:S.isEx)&&!u.isAdmin&&!u.isSupport)&&a.createElement(i.F,{league:_?S.realLeague:S.league,isVisibleExTooltip:C,className:d(S,_)}),y);return m?a.createElement(r.rU,{...A,className:(0,n.AK)("user-levels-username","user-levels-username-link",c(u,S,E,f,_),g),...m},P):a.createElement("div",{...A,className:(0,n.AK)("user-levels-username",c(u,S,E,f,_),g)},P)}},5010:(e,t,l)=>{l.d(t,{b:()=>p});var a=l(27378),r=l(8054),n=l(33440),s=l(94349),i=l(87937),o=l(70203),c=l(94380),d=l(95654),m=l(12278),u=l(52729);let p=()=>{let e=(0,a.useRef)(null),t=(0,d.C)(m.ts),l=(0,r.R)(),p=(0,d.C)(s.Ym),h=(0,c.T)();return(0,a.useEffect)(()=>((0,i.C5)()&&t&&p&&("denied"===l||"granted"===l?h((0,n.ZX)()):e.current=window.setTimeout(()=>{h((0,u.Rl)()),h((0,n.ZX)())},o.m.get("WEB_PUSH_REMINDER_TIMEOUT")||3e3)),()=>{null!==e.current&&clearTimeout(e.current)}),[t,h,l,p]),null}},23501:(e,t,l)=>{l.d(t,{HD:()=>i,Vo:()=>s,jB:()=>o});var a=l(27378),r=l(95654),n=l(12278);let s=a.createContext(null),i=({children:e})=>{let t=(0,r.C)(n.ts);return a.createElement(s.Provider,{value:t},e)},o=s.Consumer},11850:(e,t,l)=>{l.d(t,{eW:()=>N,pY:()=>C,tI:()=>_,xG:()=>y,xl:()=>k,zx:()=>f});var a=l(37051),r=l(77397),n=l(91343),s=l(27378),i=l(95406),o=l(87937);let c="main",d={},m={},u={},p=e=>e.split("_")[0],h=e=>{let t=u[p(e)];null==t||t()},v=(e=c)=>{let t=d[e];if(!t)return;let l=m[t];delete m[t],d[e]=null,l&&(l(),h(t))},E=e=>{Object.entries(d).forEach(([t,l])=>{l&&t.includes(e)&&t!==e&&v(t)})},g=(e=c)=>{v(e),E(e)},b=s.createContext(c),f=({children:e})=>{let t=(0,s.useContext)(b),l=(0,i.Z)(()=>(0,n.x0)()),a=t.length?`${t}.${l}`:l;return s.createElement(b.Provider,{value:a},e)},C=()=>{let e=(0,s.useContext)(b);return(0,s.useCallback)(()=>{g(e)},[e])},y=(0,o.sk)()?e=>!1:e=>{var t;let l=(0,s.useContext)(b),[,a]=(0,s.useReducer)(e=>e+1,0);return(0,s.useEffect)(()=>(u[e]=a,()=>{delete u[e]}),[e]),!!(null===(t=d[l])||void 0===t?void 0:t.startsWith(e))},N=(0,o.sk)()?e=>[!1,a.Z,a.Z]:e=>{let t=(0,s.useContext)(b),l=(0,i.Z)(()=>`${null!=e?e:""}_${(0,n.x0)()}`),[,a]=(0,s.useReducer)(e=>e+1,0);void 0===d[t]&&(d[t]=null),(0,s.useEffect)(()=>()=>{delete m[l]},[l]),m[l]=a;let r=(0,s.useCallback)((e,a)=>{var r,n;null==e||e.stopPropagation();let s=d[t];d[t]=l!==s||a?l:null,s&&(null===(n=m[s])||void 0===n||n.call(m),h(s)),null===(r=m[l])||void 0===r||r.call(m),h(l),E(t)},[t,l]);return[l===d[t],r,(0,s.useCallback)(e=>{E(t),e.stopPropagation()},[t])]},_=(0,o.sk)()?()=>()=>a.Z:(0,r.Z)((e=c)=>()=>{g(e)});function k(e){let t=t=>{let[l,a]=N(),r=_(),n=(0,s.useMemo)(()=>({isVisible:l,lockUI:a,unlockUI:r}),[l,a,r]);return s.createElement(e,{...t,uiBlocking:n})};return t.displayName="WithUIBlocking",t}},94853:(e,t,l)=>{var a,r;l.d(t,{d:()=>r,g:()=>a}),function(e){e.friends="friends",e.knights="knights",e.videos="videos",e.photos="photos",e.allPhotos="allPhotos",e.albums="albums",e.myCollection="myCollection",e.favorites="favorites",e.notInterestedModels="notInterestedModels",e.persons="persons",e.bannedUsers="bannedUsers"}(a||(a={})),function(e){e.album="album",e.photo="photo",e.video="video",e.privateVideos="privateVideos",e.publicVideos="publicVideos",e.feedPhotos="feedPhotos",e.userRef="userRef",e.messengerMedia="messengerMedia"}(r||(r={}))},70967:(e,t,l)=>{l.d(t,{Z:()=>p});var a=l(27378),r=l(3620),n=l(35506),s=l(69442),i=l(99973),o=l(7386),c=l(87937),d=l(80176),m=l(28656);let u=new WeakMap,p=function(e){let t=u.get(e);return t||(t=(0,r.EN)(t=>{let l=(0,a.useContext)(s.Z),r=(0,d.W2)(t,e.checkAccess);if((0,m.L)(()=>{if(r)try{t.history.replace(r)}catch(e){(0,o.R)(e)&&n.ZP.info(e,{redirectLocation:r})}},[r]),r&&(0,c.sk)()){let e="string"==typeof r?r:r.pathname;l&&(l.status=i.EH.TEMPORARY_REDIRECT,l.redirectUrl=e);try{t.history.replace(r)}catch(e){e instanceof Error&&console.error(`Redirect failed: ${e.message} ${JSON.stringify(r)}`)}}return r?null:a.createElement(e,t)}),u.set(e,t)),t}},80936:(e,t,l)=>{l.d(t,{H:()=>n});var a=l(27378),r=l(25605);let n=(...e)=>t=>{let l=(0,a.forwardRef)((l,n)=>{let s=(0,r.do)(...e),i={...l,...s};return a.createElement(t,{ref:n,...i})});return l.displayName="WithWindowSize",l}},85347:(e,t,l)=>{l.d(t,{j:()=>s});var a=l(27378),r=l(95473);let n=a.memo(({route:e})=>(0,r.H)(e.routes)),s=e=>{let{route:t}=e;return a.createElement(n,{route:t})}},51316:(e,t,l)=>{l.d(t,{C:()=>eI});var a=l(18775),r=l(27378),n=l(48204),s=l(95473),i=l(53522),o=l(25143),c=l(37120),d=l(15867),m=l(33858),u=l(93199),p=l(33330),h=l(36562),v=l(99759),E=l(71504),g=l(6083),b=l(35506),f=l(28273),C=l(50557),y=l(23501),N=l(11850),_=l(80936),k=l(17261),A=l(56676),S=l(95125),T=l(45933),w=l(96552),P=l(84935),M=l(36846),I=l(70301),R=l(15170),Z=l(577),L=l(36664),D=l(16797),B=l(22967),F=l(66919),O=l(17363),x=l(13418),U=l(69393),H=l(92644),K=l(10018),V=l(70381),$=l(77852),W=l(66929),z=l(61435),q=l(81688),Q=l(35317),j=l(5010),G=l(61536),Y=l(55731),J=l(74633),X=l(69899),ee=l(82414),et=l(6155),el=l(99748),ea=l(87937),er=l(98846),en=l(64696),es=l(62512),ei=l(70203),eo=l(37226),ec=l(243),ed=l(69247),em=l(62182),eu=l(95559),ep=l(80995),eh=l(61999),ev=l(64032),eE=l(70377),eg=l(47725),eb=l(9098),ef=l(12132),eC=l(80262),ey=l(43338),eN=l(82766),e_=l(29561),ek=l(98941),eA=l(82512),eS=l(30399);let eT=r.memo(({route:e})=>(0,s.H)(e.routes)),ew=(0,er.n7)({resolved:{},chunkName:()=>"Chats",isReady(e){let t=this.resolve(e);return!0===this.resolved[t]&&!!l.m[t]},importAsync:()=>Promise.all([l.e(9641),l.e(3616),l.e(8734),l.e(6425),l.e(9562),l.e(3558),l.e(3508),l.e(1080),l.e(2999)]).then(l.bind(l,55251)),requireAsync(e){let t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){return l(this.resolve(e))},resolve:()=>55251},{fallback:void 0,ssr:!1});class eP extends r.Component{componentDidUpdate(e){ei.m.has("showOnboarding")&&this.props.showOnboardingModalAction(),(0,en.Z)(this.propsUpdateToActionsMap,e,this.props)}componentDidMount(){(0,en.Z)(this.propsUpdateToActionsMap,{},this.props),(0,es.Mt)(this,()=>{eo.x.remove("loginTriggerSource")})}componentWillUnmount(){(0,es.OM)(this)}getMainPersonEvents(){let{logginedUser:e,socketIdForMainPersonConfigChange:t}=this.props,l=[];return e&&t&&l.push(`mainPersonConfigUpdated@${t}`),l}renderSocket(){let{logginedUser:e,userKycPersonStatus:t}=this.props,l=e?[`userUpdated@${e.id}`,`userSensitiveUpdated#${e.id}`,`userPurchaseCompleted#${e.id}`,`publicRecordingUpdated#${e.id}`,`giftVoucherCreated#${e.id}`,`giftTokensSent#${e.id}`,`ageVerification#${e.id}`,`videoPurchased#${e.id}`,`usernameChange#${e.id}`]:[],a=e&&(e.isModel||e.isStudio||t===ek.I$.NOT_REVIEWED)?[`personReviewed@${e.id}#${e.id}`]:[],n=(null==e?void 0:e.isModel)?[`privateProposed#${e.id}`,`privateProposalCanceled@${e.id}#${e.id}`,`modelVerificationChanged#${e.id}`,`broadcastPixelizationSettingsUpdated#${e.id}`,`payoutAlertUpdated#${e.id}`]:[],s=this.getMainPersonEvents();return r.createElement(M.Z,{events:["clearChatMessages","newModelEvent",...l,...n,...a,...s]})}renderClientHandlersComponent(){let{logginedUser:e}=this.props;return r.createElement(r.Fragment,null,r.createElement(B.Z,null),r.createElement(F.ZP,null),r.createElement(w.Z,null),r.createElement(S.Z,null),r.createElement(ef.C,null),r.createElement(o.Z,null),r.createElement(p.j,null),(null==e?void 0:e.isModel)&&r.createElement(u.L,null),r.createElement(h.Z,null),r.createElement(eE.z,null),this.renderSocket())}render(){let{logginedUser:e,classNameByGloballyActiveBranch:t,history:{location:l},isShowTokenFreeController:a,route:n,isNavbarVisible:s,isOverlaySidebarPage:i,isStickyHeaderMobile:o,isStickySubHeaderMobile:u,isStickyViewCamSubHeaderMobile:p,isStickyHeaderDesktop:h,isStickySubHeaderDesktop:E,isLiveTagsPage:g,isStickyHeaderActive:b,isSettingsPage:N,isNotificationsVisible:_,shouldUseModelWizard:S,isNewSlidableCategorySegmentEnabled:w}=this.props,M="/terms"===l.pathname;return r.createElement(y.HD,null,r.createElement(z.y,{id:z.y.IDS.BODY_CONTAINER}),r.createElement(H.l,null),r.createElement(K.Z,null),r.createElement("div",{onClick:this.handleClick,className:(0,el.AK)("main-layout",t,{"live-tags":g,"sticky-header-mobile":o,"sticky-subheader-mobile":u,"sticky-viewcam-subheader-mobile":p,"sticky-header-desktop":h,"sticky-subheader-desktop":E,"main-layout__with-navbar":s,"index-page-new-paddings":w})},S&&r.createElement(v.V,null),r.createElement("div",{className:"wrapper"},r.createElement(z.y,{id:z.y.IDS.PORTAL_CONTAINER_UNDER_HEADER}),r.createElement(Y.k,null),_&&r.createElement(eN.Z,null),r.createElement(eg.P,null),r.createElement(x.Z,null),r.createElement(U.Z,{isMobile:!0}),r.createElement(X.U,null),r.createElement(ee.g,{isMobile:!0}),r.createElement(O.Z,null),r.createElement("main",{id:"app",className:(0,el.AK)("main-layout-main","main-layout-main-multiple-column",{"main-layout-main-single-column":i})},r.createElement(R.Z,null),r.createElement("div",{className:(0,el.AK)("main-layout-main-right",{"main-layout-main-right-single-column":i})},r.createElement(C.s,null,r.createElement(ep.Z,null),_&&r.createElement(r.Fragment,null,r.createElement(Q.Z,null),r.createElement(W.Z,null))),r.createElement(q.X,null,r.createElement("div",{className:(0,el.AK)("main-layout-main-content",{"main-layout-main-content-scroll":M||N})},r.createElement(eT,{route:n}))))),e&&r.createElement(ew,null),r.createElement(d.O,null),r.createElement(V.z,null),r.createElement(L._,null),r.createElement(m.U,null),r.createElement(eh.L,null)),r.createElement(D.$,null)),r.createElement(P.Z,null),r.createElement(f.Z,null),r.createElement(A.Z,null),r.createElement(T.Z,null),r.createElement(C.s,null,r.createElement(eu.u,null)),r.createElement(c.H,null),(0,ea.C5)()&&this.renderClientHandlersComponent(),a&&r.createElement(J.T,null),b&&r.createElement($.x,null),r.createElement(Z.Z,null),r.createElement(k.T,null),r.createElement(ey.z,null),r.createElement(I.I,null),r.createElement(G.V,null),r.createElement(j.b,null))}constructor(...e){super(...e),(0,a._)(this,"propsUpdateToActionsMap",[{update:"isLayoutShaded",action:()=>this.layoutShadedChangeHandler(this.props)}]),(0,a._)(this,"layoutShadedChangeHandler",e=>{let t=document.getElementById("body");e.isLayoutShaded?null==t||t.classList.add("shaded"):null==t||t.classList.remove("shaded")}),(0,a._)(this,"handleClick",e=>{b.ZP.info("MainLayout.handleClick",e),this.props.uiBlocking.unlockUI(),eC.Z.initialize()})}}let eM={showOnboardingModalAction:e_.S},eI=(0,_.H)("isLayoutUpToL")((0,N.xl)((0,n.$j)((e,t)=>{var l,a;let{auth:r,auth:{currentUser:n,isLoggedIn:s,isLoggingOut:o},ui:{isLayoutShaded:c}}=e,d=(0,ec.gF)(e,{route:t.route}),m=(0,eS.Ed)(e);return{auth:r,logginedUser:s&&!o?n:null,classNameByGloballyActiveBranch:null!==(a=null==d?void 0:null===(l=d.meta)||void 0===l?void 0:l.layoutClassName)&&void 0!==a?a:"",isNavbarVisible:(0,ev.Og)(e),isLayoutShaded:c,shouldUseModelWizard:(0,E.Eo)(e),isOverlaySidebarPage:(0,ec.pO)(e),isShowTokenFreeController:!!m||(0,et.du)(e),isStickyHeaderDesktop:(0,ed.gT)(e),isStickyHeaderMobile:(0,ed._K)(e),isStickySubHeaderMobile:(0,ed.fU)(e),isStickyViewCamSubHeaderMobile:(0,ed.Uu)(e),isStickySubHeaderDesktop:(0,ed.FW)(e),isStickyHeaderActive:(0,ed.qy)(e,t),isLiveTagsPage:(0,i.vb)(e),isSettingsPage:(0,ec.u8)(e),userKycPersonStatus:(0,g.K0)(e),isNotificationsVisible:(0,em.RO)(e),socketIdForMainPersonConfigChange:(0,eA.$R)(e),isNewSlidableCategorySegmentEnabled:(0,eb.j)(e)}},eM)(eP)))},17261:(e,t,l)=>{l.d(t,{T:()=>u});var a=l(27378),r=l(38753),n=l(99973),s=l(60159),i=l(62512),o=l(95654),c=l(66483);let d=[{component:l(7995).L,getShouldPreload:()=>!0},{component:s.Z,getShouldPreload:()=>!0},{component:r.J,getShouldPreload:c.A4}],m=({component:e,getShouldPreload:t})=>{let l=(0,o.C)(t);(0,a.useEffect)(()=>{if(!l)return;let t=(0,i._E)("touchstart",c),a=(0,i._E)("mousemove",c),r=(0,i._E)("scroll",c),s=n.BROWSER_CAPABILITIES.touch&&setTimeout(c,3e3),o=()=>{t(),a(),r(),s&&clearTimeout(s)};function c(){e.load(),o()}return o},[l,e])},u=(0,a.memo)(()=>(d.forEach(m),null))},873:(e,t,l)=>{l.d(t,{Z:()=>ei});var a=l(18775),r=l(27378),n=l(48204),s=l(95473),i=l(45106),o=l(37046),c=l(35506),d=l(77382),m=l(83550),u=l(50557),p=l(23501),h=l(11850),v=l(80936),E=l(56676),g=l(84935),b=l(36846),f=l(36664),C=l(31804),y=l(35463),N=l(7263),_=l(90134),k=l(38830),A=l(68074),S=l(61435),T=l(95654),w=l(95083),P=l(988);let M={"logo-with-language-section":"FooterWithoutAdult__logo-with-language-section#QX","row-copyright":"FooterWithoutAdult__row-copyright#mJ",inner:"FooterWithoutAdult__inner#d0","top-labels":"FooterWithoutAdult__top-labels#Bi"},I=()=>{let e=(0,T.C)(w.pw),t=(0,T.C)(P.Us);return r.createElement(A.b,{hidden:!1},r.createElement("div",{className:M.inner},r.createElement(N.Q,{left:r.createElement(r.Fragment,null,r.createElement(k.P,{className:M["logo-with-language-section"],logoHref:e}),r.createElement(_.i,{className:M["top-labels"]}))}),r.createElement(y.z,{statementLink:"/alt/2257",statementLinkTarget:"_blank"}),!t&&r.createElement(C.v,{className:M["row-copyright"]})),r.createElement(S.y,{id:S.y.IDS.FOOTER_PORTAL_CONTAINER}))};var R=l(84094),Z=l(22371),L=l(29746),D=l(91090),B=l(97606),F=l(82168),O=l(81027),x=l(39627),U=l(68020);let H=()=>{let{trans:e}=(0,B.QT)(),t=(0,T.C)(R.u),l=(0,T.C)(Z.Xt),a=(0,T.C)(w.pw),n=(0,T.C)(U._f);return r.createElement("header",{className:"header-top-without-adult"},r.createElement("div",{className:"header-top-without-adult__container"},r.createElement("nav",{className:"header-top-without-adult__nav-left"},r.createElement(L.Z,{to:a,onClick:F.Z.reset}),r.createElement(O.Z,{className:"header-top-without-adult__live-counter",isWithoutAdult:!0})),r.createElement("nav",{className:"header-top-without-adult__nav-right"},!l&&r.createElement(x.Z,{className:"btn btn-signup",triggerSource:D.Dt.HEADER,type:"alt/signup",forceFollowLink:!0},r.createElement("span",{className:"media-after-m-hidden"},e("ru"!==n?"login.joinNowMobileHeaderNew":"login.joinNowMobileHeader")),r.createElement("span",{className:"media-up-to-s-hidden"},e("login.joinNow"))),!t&&r.createElement(x.Z,{className:"btn btn-outline",triggerSource:D.Dt.HEADER,type:"alt/login",forceFollowLink:!0},e("login.logIn")))))};var K=l(10018),V=l(99973),$=l(99748),W=l(64696),z=l(62512),q=l(80176),Q=l(37226),j=l(20717),G=l(59683),Y=l(243),J=l(62182),X=l(71227),ee=l(52729),et=l(80995),el=l(80262),ea=l(68358);let er=r.memo(({route:e})=>(0,s.H)(e.routes));class en extends r.Component{componentDidUpdate(e){let{location:t}=e,{pathname:l}=t,{pathname:a}=this.props.location;l!==a&&this.props.hideAllNotificationsExcept({redirectFromForgotPasswordPage:"/alt/forgot-password"===l&&"/"===a,redirectAfterMediaViewer:l.includes("/profile/videos/")&&!a.includes("/profile/videos/")}),(0,W.Z)(this.propsUpdateToActionsMap,e,this.props)}componentDidMount(){(0,W.Z)(this.propsUpdateToActionsMap,{},this.props);let{location:e}=this.props,{affiliateId:t,pushNotification:l,p:a}=(0,j.Qf)(e);a&&Q.x.set(V.K_,a),t&&(this.props.updateAffiliateIdForAuthorized(t),this.props.emitUiEvent(V.Q7.SEND_AFFILIATE_ID_ON_LOAD,{affiliateId:t})),(0,z.Mt)(this,()=>{Q.x.remove("loginTriggerSource")}),this.props.emitUiEvent(V.Q7.SETUP_DATA_FROM_LOCATION_ON_LOAD),this.props.emitUiEvent(V.Q7.CHECK_FOR_FIRST_TIME_VISITOR),l&&this.props.emitUiEvent(V.Q7.PUSH_NOTIFICATION_CLICKED,{type:l})}componentWillUnmount(){(0,z.OM)(this)}renderSocket(){let{logginedUser:e}=this.props,t=e?[`userUpdated@${e.id}`,`userSensitiveUpdated#${e.id}`,`userPurchaseCompleted#${e.id}`,`ageVerification#${e.id}`]:[];return r.createElement(b.Z,{events:t})}render(){var e,t;let{globallyActiveBranch:l,route:a,isAltTermsPage:n}=this.props,s=null!==(t=null==l?void 0:null===(e=l.meta)||void 0===e?void 0:e.layoutClassName)&&void 0!==t?t:"";return r.createElement(p.HD,null,r.createElement(K.Z,null),r.createElement("div",{onClick:this.handleClick,className:(0,$.AK)("layout-without-adult",s)},r.createElement("div",{className:"wrapper"},r.createElement(S.y,{id:S.y.IDS.PORTAL_CONTAINER_UNDER_HEADER}),r.createElement(H,null),r.createElement("main",{id:"app",className:(0,$.AK)("layout-without-adult__main",{})},r.createElement("div",{className:(0,$.AK)("layout-without-adult__main-right",{})},r.createElement(u.s,null,r.createElement(et.Z,{isShowOnlySystemNotifications:!0})),r.createElement("div",{className:(0,$.AK)("layout-without-adult__main-content",{"layout-without-adult__main-content--with-overflow":n})},r.createElement(er,{route:a})))),r.createElement(f._,null)),r.createElement(I,null)),this.renderSocket(),r.createElement(g.Z,null),r.createElement(E.Z,null))}constructor(...e){super(...e),(0,a._)(this,"propsUpdateToActionsMap",[{update:J.Wy,action:()=>this.layoutShadedChangeHandler(this.props)},{update:["isVerifyAgeCompaignActive","isLoggedIn"],action:()=>{this.props.isVerifyAgeCompaignActive&&this.props.isLoggedIn&&this.props.showPurchaseModal({promoCampaignName:ea.vw})}}]),(0,a._)(this,"layoutShadedChangeHandler",e=>{let t=document.getElementById("body");e.isLayoutShaded?null==t||t.classList.add("shaded"):null==t||t.classList.remove("shaded")}),(0,a._)(this,"handleClick",e=>{c.ZP.info("MainLayout.handleClick",e),this.props.uiBlocking.unlockUI(),el.Z.initialize()})}}let es={showPurchaseModal:d.U1,emitUiEvent:m.gz,hideAllNotificationsExcept:ee.CJ,routerReplace:q.sb,updateAffiliateIdForAuthorized:o.H},ei=(0,i.qC)((0,n.$j)((e,t)=>{let{auth:{currentUser:l,isLoggedIn:a,isLoggingOut:r},ui:{isLayoutShaded:n}}=e;return{isPromoCampaignsLoading:(0,G.yW)(e),needVerifyAge:(0,X.m5)(e),logginedUser:a&&!r?l:null,isLoggedIn:a,isVerifyAgeCompaignActive:(0,G.PA)(e),globallyActiveBranch:(0,Y.gF)(e,{route:t.route}),isLayoutShaded:n,isAltTermsPage:(0,Y.Rq)(e),isViewCamPage:(0,Y.mT)(e)}},es),(0,v.H)("isLayoutUpToL"),h.xl)(en)},21341:(e,t,l)=>{l.d(t,{Z:()=>s});var a=l(98846),r=l(80176);let n=(0,a.n7)({resolved:{},chunkName:()=>"about",isReady(e){let t=this.resolve(e);return!0===this.resolved[t]&&!!l.m[t]},importAsync:()=>l.e(2443).then(l.bind(l,49114)),requireAsync(e){let t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){return l(this.resolve(e))},resolve:()=>49114});n.checkAccess=r.Ku;let s=n},15757:(e,t,l)=>{l.d(t,{Z:()=>a});let a=(0,l(98846).n7)({resolved:{},chunkName:()=>"callme",isReady(e){let t=this.resolve(e);return!0===this.resolved[t]&&!!l.m[t]},importAsync:()=>l.e(6209).then(l.bind(l,62171)),requireAsync(e){let t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){return l(this.resolve(e))},resolve:()=>62171})},3341:(e,t,l)=>{l.d(t,{Z:()=>m});var a=l(27378),r=l(48204),n=l(78983),s=l(97606),i=l(98846),o=l(94030),c=l(62203);let d=(0,i.n7)({resolved:{},chunkName:()=>"staticPages-CookiePage",isReady(e){let t=this.resolve(e);return!0===this.resolved[t]&&!!l.m[t]},importAsync:()=>l.e(8661).then(l.bind(l,4427)),requireAsync(e){let t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){return l(this.resolve(e))},resolve:()=>4427},{resolveComponent:e=>e.CookiePage}),m=(0,r.$j)(e=>({canonicalDomainName:(0,c.Lp)(e),isWhiteLabel:(0,c.bT)(e),isXhlOrMirror:(0,c.cv)(e)}))(({canonicalDomainName:e,isWhiteLabel:t,isXhlOrMirror:l})=>{let{formatTime:r,transSeo:i}=(0,s.QT)(),c=r(new Date,n.TIME_FORMATS.HUMAN_DATE);return(0,o.j)(),a.createElement(d,{canonicalDomainName:e,isWhiteLabel:t,isXhlOrMirror:l,transSeo:i,todayDate:c})})},6280:(e,t,l)=>{l.d(t,{Z:()=>c});var a=l(27378),r=l(78983),n=l(97606),s=l(98846),i=l(94030);let o=(0,s.n7)({resolved:{},chunkName:()=>"staticPages-DMCAPage",isReady(e){let t=this.resolve(e);return!0===this.resolved[t]&&!!l.m[t]},importAsync:()=>l.e(7995).then(l.bind(l,73330)),requireAsync(e){let t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){return l(this.resolve(e))},resolve:()=>73330},{resolveComponent:e=>e.DMCAPage}),c=()=>{let{formatTime:e,transSeo:t}=(0,n.QT)(),l=e(new Date,r.TIME_FORMATS.HUMAN_DATE),s=e(new Date(2020,6,27),r.TIME_FORMATS.HUMAN_DATE);return(0,i.j)(),a.createElement(o,{transSeo:t,effectiveDate:l,lastModifiedDate:s})}},16628:(e,t,l)=>{l.d(t,{Z:()=>m});var a=l(27378),r=l(97606),n=l(98846),s=l(94030),i=l(20717),o=l(95654),c=l(71227);let d=(0,n.n7)({resolved:{},chunkName:()=>"staticPages-DSAEuResearchPage",isReady(e){let t=this.resolve(e);return!0===this.resolved[t]&&!!l.m[t]},importAsync:()=>l.e(7269).then(l.bind(l,62052)),requireAsync(e){let t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){return l(this.resolve(e))},resolve:()=>62052},{resolveComponent:e=>e.DSAEuResearchPage}),m=()=>{let{transSeo:e}=(0,r.QT)(),t=(0,o.C)(e=>(0,c.K9)(e,{key:"makeRequest"})),l=(0,i.jz)("resources/ResearchFormApplication.pdf");return(0,s.j)(),a.createElement(d,{transSeo:e,formLink:l,makeRequestLink:t})}},87694:(e,t,l)=>{l.d(t,{Z:()=>s});var a=l(98846),r=l(80176);let n=(0,a.n7)({resolved:{},chunkName:()=>"model-about",isReady(e){let t=this.resolve(e);return!0===this.resolved[t]&&!!l.m[t]},importAsync:()=>l.e(6261).then(l.bind(l,66334)),requireAsync(e){let t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){return l(this.resolve(e))},resolve:()=>66334});n.checkAccess=r.z7;let s=n},29587:(e,t,l)=>{l.d(t,{Z:()=>d});var a,r=l(18775),n=l(27378),s=l(45793),i=l(64402),o=l(80176);class c extends(a=n.Component){render(){return n.createElement(s.Z,{titleKey:"seo.title.404"},n.createElement("div",{className:"page not-found-page"},n.createElement(i.Z,null)))}}(0,r._)(c,"checkAccess",o.eE);let d=c},55774:(e,t,l)=>{l.d(t,{Z:()=>a});let a=(0,l(98846).n7)({resolved:{},chunkName:()=>"common-components-pages-ParentalControlPage-ParentalControlPage",isReady(e){let t=this.resolve(e);return!0===this.resolved[t]&&!!l.m[t]},importAsync:()=>l.e(6670).then(l.bind(l,69434)),requireAsync(e){let t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){return l(this.resolve(e))},resolve:()=>69434})},79519:(e,t,l)=>{l.d(t,{Z:()=>u});var a=l(27378),r=l(78983),n=l(97606),s=l(98846),i=l(94030),o=l(95654),c=l(62203),d=l(68020);let m=(0,s.n7)({resolved:{},chunkName:()=>"staticPages-PrivacyPage",isReady(e){let t=this.resolve(e);return!0===this.resolved[t]&&!!l.m[t]},importAsync:()=>l.e(9465).then(l.bind(l,7456)),requireAsync(e){let t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){return l(this.resolve(e))},resolve:()=>7456},{resolveComponent:e=>e.PrivacyPage}),u=()=>{let{formatTime:e,transSeo:t}=(0,n.QT)(),l=(0,o.C)(c.bT),s=(0,o.C)(c.cv),u=(0,o.C)(d.VK),p=e(new Date,r.TIME_FORMATS.HUMAN_DATE);return(0,i.j)(),a.createElement(m,{host:u,isWhiteLabel:l,isXhlOrMirror:s,transSeo:t,todayDate:p})}},95983:(e,t,l)=>{l.d(t,{Z:()=>a});let a=(0,l(98846).n7)({resolved:{},chunkName:()=>"terms",isReady(e){let t=this.resolve(e);return!0===this.resolved[t]&&!!l.m[t]},importAsync:()=>l.e(1929).then(l.bind(l,79190)),requireAsync(e){let t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){return l(this.resolve(e))},resolve:()=>79190})},66606:(e,t,l)=>{l.d(t,{$o:()=>r,PX:()=>s,tM:()=>n});var a=l(98846);let r=(0,a.n7)({resolved:{},chunkName:()=>"static-pages",isReady(e){let t=this.resolve(e);return!0===this.resolved[t]&&!!l.m[t]},importAsync:()=>l.e(6667).then(l.bind(l,2338)),requireAsync(e){let t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){return l(this.resolve(e))},resolve:()=>2338}),n=(0,a.n7)({resolved:{},chunkName:()=>"static-pages",isReady(e){let t=this.resolve(e);return!0===this.resolved[t]&&!!l.m[t]},importAsync:()=>l.e(6667).then(l.bind(l,588)),requireAsync(e){let t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){return l(this.resolve(e))},resolve:()=>588}),s=(0,a.n7)({resolved:{},chunkName:()=>"static-pages",isReady(e){let t=this.resolve(e);return!0===this.resolved[t]&&!!l.m[t]},importAsync:()=>l.e(6667).then(l.bind(l,9983)),requireAsync(e){let t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){return l(this.resolve(e))},resolve:()=>9983})},69442:(e,t,l)=>{l.d(t,{Z:()=>a});let a=l(27378).createContext(null)},95125:(e,t,l)=>{l.d(t,{Z:()=>B,j:()=>L});var a=l(29955),r=l(86257),n=l(27378),s=l(3620),i=l(54898),o=l(35228),c=l(66468),d=l(37046),m=l(75878),u=l(83550),p=l(91090),h=l(64741),v=l(99973),E=l(49927),g=l(33440),b=l(80176),f=l(20717),C=l(94380),y=l(95654),N=l(31560),_=l(41230),k=l(28656),A=l(785),S=l(243),T=l(50399),w=l(71337),P=l(68020),M=l(52729),I=l(98853),R=l(38933);let Z=!1,L=({store:e,history:t})=>{let{dispatch:l,getState:n}=e,s=n();if((0,S.ib)(s)||Z)return;Z=!0;let o=(0,S.Ig)(s),m=(0,f.Qf)(location),{affiliateId:C,pushNotification:y,refferedFromTelegram:N,messageType:_="",chatId:k=""}=m;if(N&&l((0,g.WW)({messageType:_,chatId:k})),C&&(l((0,d.H)(C)),l((0,u.gz)(v.Q7.SEND_AFFILIATE_ID_ON_LOAD,{affiliateId:C}))),l((0,u.gz)(v.Q7.SETUP_DATA_FROM_LOCATION_ON_LOAD)),l((0,u.gz)(v.Q7.CHECK_FOR_FIRST_TIME_VISITOR)),y&&l((0,u.gz)(v.Q7.PUSH_NOTIFICATION_CLICKED,{type:y})),(0,a.Z)(m))return;let A=(0,f.Oh)((0,r.Z)(m,[...p.z2,"twitterEmail","twitterName","twitterId","time",o?"":"hash","isLoggedIn",...h.vH,"affiliateId","action","reason","params","data","showModal","fScreen","userReferralProgram","error","userId","subscriptionPreselected","signature","xhUsername",h.O,i.g1,c.zo,i.oj,i.yF,E.KP]));l((0,b.sb)({...t.location,search:A?`?${A}`:""}))},D=()=>{let e=(0,s.TH)(),t=(0,C.T)(),l=(0,A.D)(e.pathname),a=(0,N.q)(),r=(0,n.useRef)(null);(0,_.l)(()=>{t((0,M.CJ)({redirectFromForgotPasswordPage:"/forgot-password"===l&&"/"===e.pathname,redirectAfterMediaViewer:!!r.current,redirectAfterRedeemGift:"/redeem-gift"===l})),r.current=(0,R.U)(a.getState())},[e.pathname,t,a])},B=()=>{let e=(0,y.C)(I.Yz),t=(0,y.C)(P.tY),l=(0,A.D)(e&&!t),a=(0,y.C)(T.TK),r=(0,N.q)(),c=(0,C.T)(),d=(0,s.k6)();return(0,k.L)(()=>{L({store:r,history:d})},[r,d]),(0,n.useEffect)(()=>{(!e||(0,P.tY)(r.getState()))&&c((0,m.QW)())},[e,c,r]),(0,n.useEffect)(()=>{(0,o.e)(a.action)&&c((0,w.di)({userId:a.userId,signature:a.signature,loginMethod:i.nj[a.action]}))},[a,c]),(0,_.l)(()=>{l&&t&&c((0,m.QW)())},[l,e]),D(),null}},45933:(e,t,l)=>{l.d(t,{Z:()=>h});var a=l(69396),r=l(27378),n=l(48204),s=l(37705),i=l(99973),o=l(77602),c=l(68020),d=l(71739),m=l(66483);class u extends r.Component{shouldComponentUpdate(e){return(null==e?void 0:e.shouldRedirect)&&e.shouldRedirect!==this.props.shouldRedirect}render(){let{url:e,shouldRedirect:t}=this.props;return this.props.markRedirectToPreferredGenderAsDone(),t?r.createElement(s.Z,{status:i.EH.TEMPORARY_REDIRECT,to:e}):null}}let p={markRedirectToPreferredGenderAsDone:d.a8.actions.markRedirectToPreferredGenderAsDone},h=(0,n.$j)(e=>{let t=(0,o.Qo)(e).replace("couples","girls"),l=(0,a.Z)(e,"router.location.pathname"),r=(0,m.ly)(e),{isRedirectedToPreferredGender:n}=e.configV3,s=!n&&!r&&["men","trans","girls"].includes(t)&&"/"===l&&t!==(0,c.JB)(e);return{url:`/${t}`,shouldRedirect:s}},p)(u)},37705:(e,t,l)=>{l.d(t,{Z:()=>i});var a=l(27378),r=l(3620),n=l(69442),s=l(99973);let i=(0,r.EN)(e=>a.createElement(n.Z.Consumer,null,t=>{let l;let{status:n=s.EH.TEMPORARY_REDIRECT,to:i,location:{search:o=""},...c}=e,d=o;if(i&&("object"==typeof i?({pathname:l,search:d=""}=i,d||(d=o)):l=i),t&&(t.status=n,t.redirectUrl=l?`${l}${d}`:""),!i)return null;let m={pathname:l,search:d};return a.createElement(r.l_,{to:m,...c})}))},96552:(e,t,l)=>{l.d(t,{Z:()=>_});var a=l(27378),r=l(3620),n=l(35476),s=l(43571),i=l(93704),o=l(56694),c=l(53522),d=l(78472),m=l(83550),u=l(94380),p=l(95654),h=l(243),v=l(27251),E=l(33915),g=l(73804),b=l(36190),f=l(1700);let C=new Map,y=new Map,N=!1,_=()=>{let e=(0,r.k6)(),t=(0,u.T)(),l=(0,p.C)(s.YJ),_=(0,p.C)(c.vb),k=(0,p.C)(h.VT),A=(0,p.C)(n.Ph),S=(0,p.C)(d.PH),T=(0,p.C)(i.yq),w=(0,p.C)(c.CE),P=(0,p.C)(o.Gg),M=(0,p.C)(E.fK),I=(0,p.C)(v.gb),R=(0,p.C)(b.P$),Z=(0,p.C)(f.mq),L=(0,p.C)(g.SG),D=Z&&!L,[B,F]=(0,a.useState)(!1),O=()=>{};(0,a.useEffect)(()=>{if(I){let{pathname:l}=e.location,a=Number(y.get(l));setTimeout(()=>{window.scrollTo(0,a),y.delete(l),t((0,m.yu)(!1))},5),F(!1)}},[I]);let x=(t,l)=>{let{pathname:a}=e.location;if("POP"!==l){C.set(a,0);return}y.set(a,Number(C.get(a)||0)),F(!0)};return(0,a.useEffect)(()=>(window.history.scrollRestoration="manual",O=e.listen(x),()=>{window.history.scrollRestoration="auto",O()}),[]),(0,a.useEffect)(()=>{let t=()=>{(T||w)&&(M||R)||N||(window.requestAnimationFrame(()=>{window.scrollY>15&&C.set(e.location.pathname,window.scrollY),N=!1}),N=!0)};return O=e.listen(x),window.addEventListener("scroll",t),()=>{O(),window.removeEventListener("scroll",t)}},[T,w,M,R]),(0,a.useEffect)(()=>{B&&(T||P||w||S||A||_||l||k)&&!M&&!R&&(!w||!D)&&t((0,m.yu)(!0))},[B,D,T,P,w,M,R,S,A,k,_,l,t]),null}},53616:(e,t,l)=>{let a;l.d(t,{Z:()=>k});var r,n=l(18775),s=l(6524),i=l(27378),o=l(29413),c=l(38487),d=l(99973),m=l(84423),u=l(99748),p=l(64696),h=l(62512),v=l(82168),E=l(76743),g=l(47722),b=l(97606);let f=["text","textarea","password","email","tel","number","search","url"],C=0,y=()=>((0,m.GT)(),null),N=({closeButtonClickHandler:e,children:t})=>{let{trans:l}=(0,b.QT)();return i.createElement(g.mI,{className:"button-close",onClick:e,"aria-label":l("aria.controls.close")},t)};class _ extends(r=i.Component){get styles(){return{wrapper:{},dialog:{},closeButton:{}}}static getDerivedStateFromProps(e){return{isWrapperCloseDisabled:e.isWrapperCloseDisabled,titlePosition:e.titlePosition}}componentDidMount(){let{modalWrapperRef:e,contentRef:t}=this;this.addBodyStyle(),(0,h.H0)(this,document,"keydown",this.keyDownHandler),e&&(0,h.H0)(this,e,"scroll",this.changeScrollHandler),(0,h.H0)(this,window,"orientationchange",this.orientationEventHandler),d.BROWSER_CAPABILITIES.iOS&&t&&((0,h.H0)(this,t,"blur",this.blurEventHandler,!0),(0,h.H0)(this,t,"focus",this.focusEventHandler,!0)),this.propsUpdateToActionsMap&&(0,p.Z)(this.propsUpdateToActionsMap,{},this.props)}componentDidUpdate(e){this.propsUpdateToActionsMap&&(0,p.Z)(this.propsUpdateToActionsMap,e,this.props)}get modalWrapperClassName(){return(0,u.AK)(this.props.className,this.additionalClassName)}componentWillUnmount(){this.addStylesAnimationFrame&&window.cancelAnimationFrame(this.addStylesAnimationFrame),this.removeBodyStyle(),clearTimeout(a),(0,h.OM)(this)}addBodyStyle(){let{isInBackground:e}=this.props;if(e)return;let{body:t,scrollingElement:l}=document,a=window.innerWidth-t.scrollWidth,r=document.querySelector("html");this.modalWrapperRef.style.top="1px",this.addStylesAnimationFrame=window.requestAnimationFrame(()=>{C=v.Z.get(),t.scrollTop=0,this.props.ignoreScrollBarWidth||(t.style.paddingRight=`${a}px`),t.style.marginTop=`-${C}px`,r.classList.add("disable-scroll"),this.modalWrapperRef&&(this.modalWrapperRef.style.top="0"),l&&window.requestAnimationFrame(()=>{l.scrollTop=0}),this.addStylesAnimationFrame=null})}removeBodyStyle(){let{isInBackground:e}=this.props;if(e)return;let{body:t,scrollingElement:l}=document,a=document.querySelector("html");t.style.scrollBehavior="auto",t.style.paddingRight=0,t.style.marginTop="",a.classList.remove("disable-scroll"),t.scrollTop=C,l&&(l.scrollTop=C),t.style.scrollBehavior=""}renderTitle(){let{title:e}=this.props;return e||null}renderCloseIcon(){let{closeIcon:e,closePosition:t}=this.props;return i.createElement(o.Z,{img:e||("top"===t?"close-5":"close")})}renderCloseButton(){let{closePosition:e,isCloseBtnShown:t}=this.props;return t&&i.createElement(N,{closeButtonClickHandler:this.closeButtonClickHandler},this.renderCloseIcon())}renderContent(){return this.props.children}renderModalHeader(){let{closePosition:e,isCloseBtnShown:t}=this.props;return i.createElement("div",{className:(0,u.AK)("modal-header",{"top-placed":"top"===e})},i.createElement("div",{className:"modal-title"},this.renderTitle()),this.renderCloseButton())}renderFooterContent(){return null}renderFooter(){let e=this.renderFooterContent();return e?i.createElement("div",{className:"modal-footer",ref:e=>{this.modalFooterRef=e}},e):null}renderModalContentInners(){let{isContentBackgroundSolid:e,isCloseBtnShownOnFullscreen:t}=this.props;return i.createElement(i.Fragment,null,i.createElement("div",{className:(0,u.AK)("modal-content",`modal-header-${this.state.titlePosition}`,{fullscreen:this.state.isFullscreen,"close-btn-on-fullscreen":t,"solid-background":e}),onClick:this.bodyClickHandler,ref:e=>{this.contentRef=e},style:this.styles.dialog},"none"!==this.state.titlePosition&&this.renderModalHeader(),this.renderContent()),this.renderFooter())}renderModalContent(){let{hasChildFocused:e}=this.state,t=d.BROWSER_CAPABILITIES.iOS&&e;return i.createElement("div",{ref:e=>{this.modalWrapperRef=e},className:(0,u.AK)("modal-wrapper",this.modalWrapperClassName,{"is-ios-keyboard-opened":t}),onClick:this.wrapperClickHandler},this.props.hasInnerScroll?this.renderScrollableContainer():this.renderModalContentInners(),i.createElement("div",{className:"ios-with-keyboard-scroll-fix"}),i.createElement(y,null))}render(){let{isInPortal:e}=this.props;return i.createElement(E.x,{isInPortal:e},this.renderModalContent())}constructor(e){if(super(e),(0,n._)(this,"isChildJustFocused",!1),(0,n._)(this,"addStylesAnimationFrame",null),(0,n._)(this,"additionalClassName",""),(0,n._)(this,"onChangeFocus",e=>{d.BROWSER_CAPABILITIES.iOS&&this.state.hasChildFocused!==e&&(this.setState({hasChildFocused:e}),e&&(this.isChildJustFocused=!0,setTimeout(()=>{this.isChildJustFocused=!1},10)))}),(0,n._)(this,"focusEventHandler",()=>{clearTimeout(a),(f.includes(document.activeElement.type)||document.activeElement.isContentEditable)&&this.onChangeFocus(!0)}),(0,n._)(this,"blurEventHandler",()=>{clearTimeout(a),a=setTimeout(()=>{console.log("blurEventHandler"),this.onChangeFocus(!1)},300)}),(0,n._)(this,"orientationEventHandler",()=>{let{modalWrapperRef:e}=this;e&&(setTimeout(()=>{let{hasChildFocused:e}=this.state;console.log("orientationEventHandler",e),this.onChangeFocus(e)},10),this.changeScrollHandler())}),(0,n._)(this,"bodyClickHandler",e=>{e.stopPropagation(),this.props.onClick&&this.props.onClick(e)}),(0,n._)(this,"closeButtonClickHandler",e=>{e.preventDefault(),this.closeHandler(e,"closeButtonClickHandler")}),(0,n._)(this,"changeScrollHandler",()=>{let{modalWrapperRef:e}=this,t=e.scrollTop,l=e.scrollHeight,a=t+e.offsetHeight;0===t?e.scrollTop=1:a===l&&(e.scrollTop=t-1)}),(0,n._)(this,"wrapperClickHandler",e=>{e.preventDefault();let t=this.modalFooterRef&&this.modalFooterRef.contains(e.target);this.state.isWrapperCloseDisabled||t||!this.props.shouldCloseOnClickBackground||this.isChildJustFocused||this.closeHandler(e,"wrapperClickHandler")}),(0,n._)(this,"keyDownHandler",e=>{!this.props.isWrapperCloseDisabled&&this.props.isCloseBtnShown&&e.keyCode===d.KEY_CODES.escape&&this.props.shouldCloseOnKeys&&this.closeHandler(e,"keyDownHandler")}),(0,n._)(this,"closeHandler",(e,t)=>{this.props.onClose(e,t)}),(0,n._)(this,"touchScrollHandler",e=>{e.stopPropagation()}),(0,n._)(this,"toggleFullscreenHandler",e=>{let t=(0,s.Z)(e)?!this.state.isFullscreen:e;this.setState({isFullscreen:t})}),(0,n._)(this,"onAutoFocus",()=>{setTimeout(()=>{this.onChangeFocus(!0)},50)}),(0,n._)(this,"renderScrollableContainer",()=>i.createElement(c.Z,null,this.renderModalContentInners())),this.constructor===_)throw TypeError("Cannot construct Abstract instances directly");this.state={isFullscreen:e.isDefaultFullscreen,hasChildFocused:!1,..._.getDerivedStateFromProps(this.props)}}}(0,n._)(_,"defaultProps",{hasInnerScroll:!1,isDefaultFullscreen:!1,isWrapperCloseDisabled:!1,showOverlay:!0,title:null,titlePosition:"inside",isInPortal:!1,isCloseBtnShown:!0,isInBackground:!1,isContentBackgroundSolid:!1,isCloseBtnShownOnFullscreen:!1,shouldCloseOnClickBackground:!0,shouldCloseOnKeys:!0,className:""});let k=_},25720:(e,t,l)=>{l.d(t,{jJ:()=>W,ZP:()=>q,rA:()=>z});var a=l(27378),r=l(1217),n=l(99748),s=l(87937),i=l(62512),o=l(95654),c=l(41230),d=l(36886),m=l(62663),u=l(243),p=l(69247),h=l(99973),v=l(46675),E=l(13025),g=l(61435);let b=({isOpen:e,onClose:t,children:l,overlayProps:r,contentProps:s,...i})=>{let o=(0,v.t)(t,!e);return a.createElement(E.Z,{...i,open:!0,visible:null!=e&&e,onClose:t,overlayProps:{...r,className:(0,n.AK)("sidebar-overlay",null==r?void 0:r.className),onClick:o,children:a.createElement("div",{className:(0,n.AK)("sidebar-overlay-overlay",{"sidebar-overlay-overlay-open":e})})},dialogProps:{...s,className:(0,n.AK)("sidebar-dialog",null==s?void 0:s.className,{"sidebar-dialog-open":e}),onClick:o},shouldPreventOverlayTouchmove:h.BROWSER_CAPABILITIES.iOS},a.createElement(a.Fragment,null,l,a.createElement(g.y,{id:g.y.IDS.SIDEBAR_PORTAL_CONTAINER})))};var f=l(42024),C=l(76482),y=l(3620),N=l(4289),_=l(43967),k=l(50557),A=l(29413),S=l(3034),T=l(7685),w=l(38772);let P={banner:"GoUltimateBanner__banner#_b",hover:"GoUltimateBanner__hover#wn",icon:"GoUltimateBanner__icon#hv",iconContainer:"GoUltimateBanner__iconContainer#vv",pulse:"GoUltimateBanner__pulse#hh",text:"GoUltimateBanner__text#ZN",close:"GoUltimateBanner__close#XG",tooltip:"GoUltimateBanner__tooltip#Lr",compact:"GoUltimateBanner__compact#oj"},M=({className:e,compact:t=!1})=>{let l=(0,T.L)("go-ultimate-"),r=(0,y.$B)("/subscriptions"),{isClicked:s,isShow:i,text:o,onClose:c,onClick:d}=(0,w.Y)("banner");return!i||r?null:a.createElement(N.rU,{id:l,className:(0,n.AK)(e,P.banner,{[P.compact]:t}),onClick:d,to:"/subscriptions"},a.createElement("div",{className:P.hover}),a.createElement("div",{className:P.iconContainer},a.createElement("span",{className:P.pulse}),a.createElement("i",{className:P.icon})),!t&&a.createElement(a.Fragment,null,a.createElement("span",{className:P.text},o),s&&a.createElement(A.Z,{onClick:c,className:P.close,img:"close-ds"})),t&&a.createElement(S.Z,{className:P.tooltip,placement:"right",targetId:l,gap:6},o))};var I=l(2219),R=l(91090),Z=l(95406),L=l(24744),D=l(82168),B=l(59188),F=l(10315),O=l(54753),x=l(42339),U=l(79561),H=l(61485),K=l(1783);let V=(0,y.EN)(({onHideSidebar:e,isCompact:t,isOverscrollNone:l=!1,isResetScrollOnLinkClick:r})=>{let[s,i]=(0,a.useState)(!0),c=(0,a.useRef)(null),d=(0,o.C)(U.o9),m=(0,o.C)(x.EZA),u=(0,Z.Z)(()=>(0,C.Z)(()=>i(!0),1500)),p=()=>{i(!1),u()};(0,B.H)(()=>u.cancel),(0,F.Z)(c,!l);let h=(0,a.useCallback)(()=>{e(),!d&&r&&requestAnimationFrame(()=>{(0,L.qA)(document.body),D.Z.reset()})},[e,d,r]);return a.createElement("div",{ref:c,className:(0,n.AK)("app-sidebar-full-content-scroll-container",{"hide-scrollbar":s,compact:t}),onMouseEnter:p,onScroll:p},a.createElement("div",{className:"app-sidebar-full-content-padded"},a.createElement(I.Z,{type:t?"extra-compact":"compact",className:"app-sidebar-full-content-tokens-giveaway media-up-to-m-hidden"}),a.createElement(k.s,null,a.createElement(M,{className:"media-up-to-m-hidden",compact:t})),a.createElement("div",{className:"app-sidebar-full-content-vr-button-container"},a.createElement(_.Z,{kind:t?"compact":"sidebar"})),a.createElement(O.Z,{key:"categoriesInLeftColumn",amplitudeNavElement:R.a.SIDEBAR,showCounts:!0,shouldShowHome:!0,className:(0,n.AK)("model-list-filter","app-sidebar-full-content-categories",{"app-sidebar-full-content-categories-compact":t}),onLinkClick:h,isCompact:t}),a.createElement(K.Z,{className:(0,n.AK)("app-sidebar-full-content-links",{"visually-hidden":t}),onHideSidebar:e}),a.createElement(H.Z,{className:(0,n.AK)("app-sidebar-full-content-lang",{"visually-hidden":t})}),m&&a.createElement(N.rU,{className:"app-sidebar-full-content-messenger-link",to:"/webview/messenger"},"MESSENGER")))}),$=e=>e.matchMedia("(max-width: 1023px)"),W="NON_OVERLAY_SIDEBAR_ID",z=()=>{let[e,t]=(0,a.useState)(!!(0,s.C5)()&&$(window).matches);(0,a.useEffect)(()=>(0,i.V1)($(window),"change",e=>t(e.matches)),[]);let l=(0,o.C)(u.pO);return e||l},q=()=>{let{isOverlaySidebarShown:e,headerBottom:t,handleHideSidebar:l,isSidebarCollapsed:s}=(0,f.s)(),i=(0,o.C)(u.pO),h=z(),{isLayoutUpToL:v}=(0,m.do)("isLayoutUpToL"),E=(0,o.C)(e=>(0,p.qy)(e,{isLayoutUpToL:v})),g=(0,r.V)();(0,c.l)(l,[h]);let C=(0,d.t)();return h&&C?a.createElement(b,{contentProps:{className:(0,n.AK)("app-sidebar-content")},overlayProps:{style:{top:`${t}px`},className:"app-sidebar-overlay"},isOpen:e,onClose:l},a.createElement(V,{onHideSidebar:l,isCompact:!1,isResetScrollOnLinkClick:E})):a.createElement("div",{className:(0,n.AK)("app-sidebar-content app-sidebar-content-non-overlay",{"app-sidebar-content-non-overlay-collapsed":s,"app-sidebar-content-non-overlay-hidden":i,"app-sidebar-content--join-sc-banner-visible":g}),id:W},a.createElement(V,{onHideSidebar:l,isCompact:s,isOverscrollNone:E,isResetScrollOnLinkClick:E}))}},42024:(e,t,l)=>{l.d(t,{F:()=>i,s:()=>s});var a=l(37051),r=l(27378);let n=r.createContext({isOverlaySidebarShown:!1,headerBottom:void 0,handleHideSidebar:a.Z,toggleSidebar:a.Z,isSidebarCollapsed:!1,expandSidebar:a.Z,collapseSidebar:a.Z}),s=()=>r.useContext(n),i=({children:e})=>{let[t,l]=(0,r.useState)(!1),[a,s]=(0,r.useState)(void 0),[i,o]=(0,r.useState)(!1),c=(0,r.useCallback)((e,t)=>{s(e),t?l(e=>!e):o(e=>!e)},[s,l,o]),d=(0,r.useCallback)(()=>l(!1),[l]),m=(0,r.useCallback)(()=>o(!1),[o]),u=(0,r.useCallback)(()=>o(!0),[o]),p=(0,r.useMemo)(()=>({isOverlaySidebarShown:t,toggleSidebar:c,headerBottom:a,handleHideSidebar:d,isSidebarCollapsed:i,expandSidebar:m,collapseSidebar:u}),[t,c,a,d,i,m,u]);return r.createElement(n.Provider,{value:p},e)}},61485:(e,t,l)=>{l.d(t,{Z:()=>h});var a=l(27378),r=l(99748),n=l(87937),s=l(94380),i=l(95654),o=l(36886),c=l(62182),d=l(36286),m=l(71227),u=l(4759),p=l(29413);let h=({headerClassName:e,className:t,isLarge:l,...h})=>{let v=(0,i.C)(e=>e.configV3.initialCommon.i18n.current),E=(0,n.C5)()?window.location:{},g=(0,s.T)(),b=(0,i.C)(m.OK),f=(0,i.C)(c.Vb),C=(0,o.t)(),y=(0,a.useCallback)((e,t)=>{e.preventDefault(),e.stopPropagation(),g((0,d.wo)(t))},[g]);return f[v]?a.createElement(u.Z,{...h,headerClassName:(0,r.AK)(e,"app-sidebar-lang-select-trigger"),contentClassName:"app-sidebar-lang-select-content",header:a.createElement(a.Fragment,null,a.createElement(p.Z,{img:"i18n",className:"app-sidebar-lang-select-trigger-icon",size:l?17:14}),a.createElement("span",{className:(0,r.AK)("app-sidebar-lang-select-trigger-text",{"app-sidebar-lang-select-trigger-text--large":l})},f[v].title)),className:(0,r.AK)("app-sidebar-lang-select",t),scrollOffsetOnExpand:200},a.createElement("ul",{className:"app-sidebar-lang-select-list"},C&&Object.entries(f).map(([e,t])=>{let l="en"!==v?E.hostname.split(`${f[v].subDomain}.`).join(""):E.hostname,n=b?`?affiliateId=${b}`:"",s=t.subDomain?`${t.subDomain}.`:"",i=e===f[v].locale;return a.createElement("li",{key:e,className:"app-sidebar-lang-select-list-item"},a.createElement("a",{href:`https://${s}${l+E.pathname}${n}`,rel:"nofollow",onClick:t=>y(t,e),className:(0,r.AK)("app-sidebar-lang-select-list-link",{"app-sidebar-lang-select-list-link-active":i})},t.title,i&&a.createElement(p.Z,{img:"check-1",className:"app-sidebar-lang-select-list-link-icon",size:13})))}))):null}},1783:(e,t,l)=>{l.d(t,{Z:()=>k,e:()=>_});var a=l(47722),r=l(37051),n=l(27378),s=l(4289),i=l(1948),o=l(46977),c=l(84423),d=l(99748),m=l(97606),u=l(95654),p=l(90690),h=l(59609),v=l(62203),E=l(12278),g=l(42339),b=l(68020),f=l(77332),C=l(65103),y=l(52391),N=l(77970);let _=({url:e,onClick:t,...l})=>e.startsWith("/")?n.createElement(s.rU,{...l,to:e,onClick:t}):n.createElement(i.Z,{...l,href:e,rel:"noopener",onClick:"_blank"===l.target?r.Z:t}),k=(0,n.memo)(({onHideSidebar:e,className:t,...l})=>{let{trans:r}=(0,m.QT)(),_=(0,u.C)(g.dxs),k=(0,u.C)(C.au),A=(0,u.C)(b.s5),S=(0,u.C)(v.hA),T=(0,u.C)(f.Y),w=(0,u.C)(h.qA),{blog:P}=(0,u.C)(p.d),M=(0,u.C)(h.mv),I=(0,u.C)(h.Z0),R=(0,u.C)(E.M7),Z=(0,u.C)(v.ok),L=(0,u.C)(E.ts),D=(0,u.C)(b.ln),B=!L||!(null==L?void 0:L.isModel)&&!(null==L?void 0:L.isStudio),F=Z&&B,O=Z&&!B;return n.createElement("ul",{...l,className:(0,d.AK)("app-sidebar-links",t)},F&&n.createElement("li",{className:"app-sidebar-links-item"},n.createElement(s.rU,{onClick:e,to:"/about"},r("footer.about"))),O&&n.createElement("li",{className:"app-sidebar-links-item"},n.createElement(s.rU,{onClick:e,to:"/become-a-model"},r("footer.aboutStripchat"))),!!P&&n.createElement("li",{className:"app-sidebar-links-item"},n.createElement(i.Z,{href:P,target:"_blank"},r("footer.blog"))),n.createElement("li",{className:"app-sidebar-links-item"},n.createElement(y.Z,{onClick:e},r("footer.contactSupport"))),n.createElement("li",{className:"app-sidebar-links-item"},n.createElement(s.rU,{rel:"nofollow noopener",to:"/support/billing"},r("footer.billingSupport"))),n.createElement("li",{className:"app-sidebar-links-item"},n.createElement(s.rU,{onClick:e,to:"/report"},r("footer.reportContent"))),n.createElement("li",{className:"app-sidebar-links-item"},n.createElement(i.Z,{href:`mailto:${D}`,target:"_blank"},r("footer.mediaInquiries"))),_&&(A||!A&&!k)&&n.createElement("li",{className:"app-sidebar-links-item"},n.createElement(a.mI,{onClick:()=>{e(),c.P4.show(o.a,{})}},r("recSystem.title"))),n.createElement("li",{className:"app-sidebar-links-item"},n.createElement(s.rU,{rel:"nofollow noopener",onClick:e,to:"/privacy"},r("footer.privacyPolicy"))),n.createElement("li",{className:"app-sidebar-links-item"},n.createElement(s.rU,{rel:"nofollow noopener",onClick:e,to:"/terms"},r("footer.termsOfUse"))),n.createElement(N.B,{isLoggedIn:R,url:M,className:"app-sidebar-links-item",onClick:e,currentUser:L,isSidebar:!0}),n.createElement(N.t,{isLoggedIn:R,className:"app-sidebar-links-item",url:I,currentUser:L,isSidebar:!0}),!T&&!!w&&n.createElement("li",{className:"app-sidebar-links-item"},n.createElement(i.Z,{rel:"nofollow",href:w,target:"_blank"},r("footer.provideFeedback",{siteName:S}))),n.createElement("li",{className:"app-sidebar-links-item"},n.createElement(s.rU,{rel:"nofollow noopener",onClick:e,to:"/2257"},r("footer.complianceStatementShort"))))})},77970:(e,t,l)=>{l.d(t,{B:()=>E,t:()=>g});var a=l(27378),r=l(11850),n=l(65804),s=l(29413),i=l(99973),o=l(97606),c=l(95654),d=l(68020),m=l(56322),u=l(61435),p=l(1783);let h=({isTouchable:e,isSidebar:t})=>e&&t?u.y.IDS.SIDEBAR_PORTAL_CONTAINER:t?void 0:u.y.IDS.FOOTER_PORTAL_CONTAINER,v=({className:e,isSidebar:t,isTouchable:l,children:n,linkTitle:s})=>{let i=(0,a.useRef)(null),[o,c]=(0,r.eW)();return a.createElement(a.Fragment,null,a.createElement("li",{className:e},a.createElement("a",{ref:i,onClick:c,type:"button"},s)),a.createElement(m.Z,{className:"tooltip-list",placement:"top",targetRef:i,isForceVisible:o,isMobileRelative:!1,maxWidth:232,triggerOnClick:!0,forceScrollListen:t,portalContainerId:h({isSidebar:!!t,isTouchable:l})},n))},E=({isLoggedIn:e,url:t,onClick:l,className:r,currentUser:m,isSidebar:u})=>{let{trans:h}=(0,o.QT)();if(!(0,c.C)(d.h1))return null;if(!e)return a.createElement("li",{className:r},a.createElement(p.e,{url:t,onClick:l},h("footer.becomeAModel")));let E=i.BROWSER_CAPABILITIES.touch;return(null==m?void 0:m.isModel)||(null==m?void 0:m.isStudio)?null:a.createElement(v,{isSidebar:u,isTouchable:E,className:r,linkTitle:h("footer.becomeAModel")},a.createElement("div",{className:"tooltip-list__title"},h("footer.tooltips.modelTitle")),a.createElement("ol",{className:"tooltip-list__list"},a.createElement("li",{className:"tooltip-list__item"},h("footer.tooltips.logOut")),E?a.createElement(a.Fragment,null,a.createElement("li",{className:"tooltip-list__item"},a.createElement(n.Z,{wrapper:null,messageId:"footer.tooltips.clickToOpenSidebar",elements:{burger:a.createElement(s.Z,{img:"menu",size:14,className:"tooltip-list__icon"})}})),a.createElement("li",{className:"tooltip-list__item"},h("footer.tooltips.scrollModel"))):a.createElement(a.Fragment,null,a.createElement("li",{className:"tooltip-list__item"},h("footer.tooltips.createAFreeAccount")),a.createElement("li",{className:"tooltip-list__item"},h("footer.tooltips.wantToBecomeAModel"))),a.createElement("li",{className:"tooltip-list__item"},h("footer.tooltips.completeRegistration"))))},g=({isLoggedIn:e,url:t,onClick:l,className:r,currentUser:c,isSidebar:d})=>{let{trans:m}=(0,o.QT)();if(!e)return a.createElement("li",{className:r},a.createElement(p.e,{url:t,onClick:l},m("footer.studioSignup")));let u=i.BROWSER_CAPABILITIES.touch;return(null==c?void 0:c.isModel)||(null==c?void 0:c.isStudio)?null:a.createElement(v,{isSidebar:d,isTouchable:u,className:r,linkTitle:m("footer.studioSignup")},a.createElement("div",{className:"tooltip-list__title"},m("footer.tooltips.studioTitle")),a.createElement("ol",{className:"tooltip-list__list"},a.createElement("li",{className:"tooltip-list__item"},m("footer.tooltips.logOut")),u?a.createElement(a.Fragment,null,a.createElement("li",{className:"tooltip-list__item"},a.createElement(n.Z,{wrapper:null,messageId:"footer.tooltips.clickToOpenSidebar",elements:{burger:a.createElement(s.Z,{img:"menu",size:14,className:"tooltip-list__icon"})}})),a.createElement("li",{className:"tooltip-list__item"},m("footer.tooltips.scrollStudio"))):a.createElement(a.Fragment,null,a.createElement("li",{className:"tooltip-list__item"},m("footer.tooltips.createAFreeAccount")),a.createElement("li",{className:"tooltip-list__item"},m("footer.tooltips.wantToBecomeAModel")),a.createElement("li",{className:"tooltip-list__item"},m("footer.tooltips.wantToBecomeAStudio"))),a.createElement("li",{className:"tooltip-list__item"},m("footer.tooltips.completeRegistration"))))}},46977:(e,t,l)=>{l.d(t,{a:()=>n});var a=l(27378),r=l(98655);let n=(0,l(98846).n7)({resolved:{},chunkName:()=>"RecommendationSystemSettingsModal",isReady(e){let t=this.resolve(e);return!0===this.resolved[t]&&!!l.m[t]},importAsync:()=>l.e(7610).then(l.bind(l,31807)),requireAsync(e){let t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){return l(this.resolve(e))},resolve:()=>31807},{ssr:!1,fallback:a.createElement(r.c,null)})},15170:(e,t,l)=>{l.d(t,{Z:()=>a.ZP});var a=l(25720)},84315:(e,t,l)=>{l.d(t,{Z:()=>d});var a=l(27378),r=l(97606),n=l(95654),s=l(68020),i=l(15921),o=l(48058),c=l(55280);let d=({place:e=0,hallOfFameByYears:t=null,isTooltipVisible:l=!0,username:d,topMedalHeight:m})=>{let u=(0,a.useRef)(null),{trans:p}=(0,r.QT)(),h=(0,n.C)(s._f),v=(null==t?void 0:t.position)&&t.position>=1&&t.position<=3;return"number"==typeof e&&e>=1&&e<=3||v?v?a.createElement(c.Y,{topMedalHeight:"number"==typeof m?m:26,isTooltipVisible:l,containerRef:u,position:t.position,year:t.year,className:"award-place"}):a.createElement("div",{ref:u,className:"award-place award-place-top",title:l&&d?p("topBestPlace",{username:d,place:(0,o.m)(e,h)}):void 0},a.createElement(i.Z,{img:`medal-${e}`,className:`icon-medal-${e}`})):null}},55280:(e,t,l)=>{l.d(t,{Y:()=>u});var a=l(27378),r=l(29413),n=l(99748),s=l(97606),i=l(95654),o=l(68020),c=l(48058);let d=30/35,m=30/26,u=({topMedalHeight:e,isTooltipVisible:t,containerRef:l,year:u,position:p,className:h})=>{let v=e*m,E=v/d,g=E/35,b=(0,i.C)(o._f),{trans:f}=(0,s.QT)();return a.createElement("div",{ref:l,className:(0,n.AK)(h,"award-place-hall-of-fame-by-year"),title:t?f("hallOfFameByYears.placeTooltip",{place:(0,c.m)(p,b),year:u}):void 0},a.createElement("div",{style:{width:E,height:v},className:"award-place-hall-of-fame-by-year__content"},a.createElement(r.Z,{style:{transform:`scale(${g})`},img:"award-hall-of-fame-by-year",className:`award-place-hall-of-fame-by-year__icon award-place-hall-of-fame-by-year__icon--place_${p}`}),a.createElement("div",{style:{transform:`scale(${g})`},className:"award-place-hall-of-fame-by-year__year"},u)))}},35826:(e,t,l)=>{l.d(t,{Z:()=>n});var a=l(1166),r=l(27378);let n=({className:e,type:t,...l})=>{let n=(0,a.Z)([e,"badge",`badge-${t||"default"}`]).join(" ");return r.createElement("div",{className:n,...l})}},99382:(e,t,l)=>{l.d(t,{ZP:()=>d});var a=l(47722),r=l(27378),n=l(4289),s=l(1948),i=l(99748);let o=e=>{switch(e){case"extra-small":return 10;case"small":return 15;case"medium":return 25;case"large":return 27;default:return 20}},c=e=>{let{active:t,className:l,disabled:c,overflowVisible:d,size:m,loading:u,children:p,innerRef:h,styles:v,display:E,style:g,type:b,...f}=e,C=(0,i.AK)(l,"btn",`btn-${g}`,`btn-${E}`,m?`btn-${m}`:null,t?"active":null,c?"disabled":null,d?"overflow-visible":null,{"btn-loading":u});if("anchor"===b){let{onClick:t,onMouseEnter:l,id:n,role:i,autoFocus:c,href:d,target:E,rel:g}=e;return r.createElement(s.Z,{innerRef:h,onClick:t,onMouseEnter:l,id:n,role:i,autoFocus:c,href:d,target:E,rel:g,style:v,className:C},p,u&&r.createElement(a.rs,{size:o(m)}))}if("link"===b){let{onClick:t,onMouseEnter:l,id:s,role:i,autoFocus:c,to:d,replace:E,target:g,rel:b}=e;return r.createElement(n.rU,{innerRef:h,to:d,onClick:t,onMouseEnter:l,id:s,role:i,replace:E,target:g,rel:b,autoFocus:c,style:v,className:C},p,u&&r.createElement(a.rs,{size:o(m)}))}return r.createElement("button",{...f,style:v,className:C,type:b,ref:h},p,u&&r.createElement("div",{className:"btn-loader-overlay"},r.createElement(a.rs,{size:o(m),color:"none"})))};c.defaultProps={type:"button",style:"default",display:"inline-block"};let d=c},57174:(e,t,l)=>{l.d(t,{ZP:()=>d});var a=l(47722),r=l(27378),n=l(4289),s=l(1948),i=l(99748);[...a.K7];let o=e=>a.K7.includes(e),c=(e,t)=>o(t)||!t?{componentClassName:e,componentStyle:t}:{componentClassName:(0,i.AK)(`btn-v2-${t}`,e),componentStyle:null},d=({style:e,children:t,className:l,type:i,withRealDisable:o,...d})=>{let{componentClassName:m,componentStyle:u}=c(l,e),p={};return"anchor"===i?(p.Component=s.Z,p.type="button"):"link"===i?(p.Component=n.rU,p.type="button"):p.type=i,r.createElement(a.lf,{...d,...p,withRealDisable:o,className:m,style:u},t)}},65766:(e,t,l)=>{l.d(t,{Z:()=>s});var a=l(27378),r=l(99748);let n=e=>{switch(e){case"top":default:return"css-tooltip-top";case"bottom":return"css-tooltip-bottom";case"left":return"css-tooltip-left";case"top-left":return"css-tooltip-top-left";case"right":return"css-tooltip-right"}},s=({tooltip:e,children:t,as:l="div",position:s,className:i,disable:o,wrap:c,...d})=>a.createElement(l,{...d,"data-tooltip":o?"":e,className:(0,r.AK)(i,o?"":n(s),{"css-tooltip-wrap":c})},t)},92144:(e,t,l)=>{l.d(t,{Z:()=>a.Z});var a=l(65766)},22441:(e,t,l)=>{l.d(t,{Z:()=>s});var a=l(18775),r=l(27378),n=l(29697);class s extends r.Component{componentDidMount(){this.props.isVisible&&this.setState({shouldRender:!0})}componentDidUpdate(e,t){this.state.shouldRender!==t.shouldRender&&this.state.isBlockVisible!==this.state.shouldRender?this.updateState=window.setTimeout(()=>{this.setState(e=>({isBlockVisible:e.shouldRender}))}):this.props.isVisible!==e.isVisible&&(this.props.isVisible?this.state.shouldRender||(this.updateState=window.setTimeout(()=>{this.setState({shouldRender:!0})})):this.state.isBlockVisible&&(this.updateState=window.setTimeout(()=>{this.setState({isBlockVisible:!1})})))}componentWillUnmount(){clearInterval(this.updateState)}render(){return this.state.shouldRender?r.createElement(n.Z,{classNames:this.props.classNames,timeout:this.props.timeout,in:this.state.isBlockVisible,onExited:this.handleExit},this.props.children):null}constructor(e){super(e),(0,a._)(this,"updateState",void 0),(0,a._)(this,"handleExit",()=>{this.setState({shouldRender:!1,isBlockVisible:!1})}),this.state={shouldRender:!1,isBlockVisible:!1}}}},49815:(e,t,l)=>{l.d(t,{Z:()=>i,i:()=>s});var a=l(27378),r=l(29413),n=l(99748);let s=({checkedIconComponent:e,inputClassName:t,boxClassName:l,checkedIcon:s="check-1",className:i,children:o,isError:c,size:d="medium",contentClassName:m,...u})=>{let p=(0,a.useId)(),h=u.id||p;return a.createElement("label",{className:(0,n.AK)("checkbox-ds",i,`checkbox-ds--${d}`),htmlFor:h},a.createElement("span",{className:(0,n.AK)("checkbox-ds__box",l,{"checkbox-ds__box--checked":u.checked,"checkbox-ds__box--disabled":u.disabled,"checkbox-ds__box--error":c})},a.createElement("input",{className:(0,n.AK)("checkbox-ds__input",t),type:"checkbox",...u,id:h}),u.checked&&(e||a.createElement(r.Z,{img:s,className:"checkbox-ds__icon"}))),a.createElement("div",{className:(0,n.AK)("checkbox-ds__content",m)},o))},i=s},577:(e,t,l)=>{l.d(t,{Z:()=>n});var a=l(27378),r=l(36886);let n=()=>(0,r.t)()?a.createElement("div",{className:"hidden",id:"client-render"}):null},85276:(e,t,l)=>{l.d(t,{Z:()=>v});var a=l(18775),r=l(36012),n=l.n(r),s=l(27378),i=l(99382),o=l(29413),c=l(74753),d=l(3034),m=l(99748),u=l(97606),p=l(12710);class h extends s.Component{componentWillUnmount(){this.timer&&clearTimeout(this.timer)}render(){let{className:e,value:t,buttonLabel:l}=this.props,{isInputFocused:a,isTooltipShown:r}=this.state;return s.createElement("div",{className:(0,m.AK)("clipboardable-input-wrapper",e,{focused:a})},s.createElement(c.Z,{className:"clipboardable-input",onBlur:this.inputBlurHandler,onFocus:this.inputFocusHandler,readOnly:!0,type:"text",value:t}),r&&s.createElement(d.Z,{isForceVisible:!0,placement:"bottom",ref:this.tooltipRef,targetId:this.btnId},s.createElement(o.Z,{img:"check",fill:"#93bb3b"}),this.props.i18n.trans("clipboardableInput.copied")),s.createElement(i.ZP,{className:"clipboardable-btn",onClick:this.copyHandler,id:this.btnId,disabled:r},null!=l?l:this.props.i18n.trans("clipboardableInput.copy")))}constructor(e){super(e),(0,a._)(this,"tooltipRef",s.createRef()),(0,a._)(this,"timer",void 0),(0,a._)(this,"btnId",void 0),(0,a._)(this,"copyHandler",e=>{let{value:t,hideTooltipTimeout:l=3e3,onCopy:a,isSuccessTooltip:r=!0}=this.props;e.stopPropagation(),n()(t),r&&(this.setState({isTooltipShown:!0}),this.timer=setTimeout(()=>{this.setState({isTooltipShown:!1})},l)),a&&a()}),(0,a._)(this,"inputBlurHandler",()=>{this.setState({isInputFocused:!1})}),(0,a._)(this,"inputFocusHandler",()=>{this.setState({isInputFocused:!0})}),this.btnId=e.id?`btn${e.id}`:`btn${(0,p.Im)()}`,this.state={isTooltipShown:!1,isInputFocused:!1}}}let v=(0,u.GV)(h)},96301:(e,t,l)=>{l.d(t,{Z:()=>m});var a=l(47722),r=l(27378),n=l(29413),s=l(99748),i=l(79278),o=l(5439),c=l(59188),d=l(33251);let m=({header:e,afterIconContent:t,children:l,className:m,isCollapsedInitial:u=!0,contentClassName:p,headerClassName:h,scrollOffsetOnExpand:v,onToggle:E,collapsedClassName:g="",iconClassName:b,headerCollapsedClassName:f="",contentCollapsedClassName:C="",style:y})=>{let[N,_]=(0,r.useState)(!u),[k,A]=(0,r.useState)(u),S=(0,d.r)({isCollapsedInitial:u,setIsCollapsed:A}),T=(0,r.useRef)(null),w=(0,r.useRef)(!1);return(0,c.H)(()=>{w.current=!0}),(0,r.useEffect)(()=>{if(w.current&&!k&&v&&T.current){let e=(0,o.r)(T.current);e&&(0,i.y)(e,{top:v})}},[k,v]),r.createElement("div",{className:(0,s.AK)("collapse-section",m,{"collapse-section-collapsed":k,[g]:g&&k}),style:y,ref:T},r.createElement(a.mI,{className:(0,s.AK)("collapse-section-header",h,{"collapse-section-header-collapsed":k,[f]:f&&k}),onClick:()=>{k&&_(!0),A(!k),S(!k),null==E||E(!k)}},e,r.createElement(n.Z,{img:"close-arrow",className:(0,s.AK)("collapse-section-icon-close",b,{"collapse-section-icon-close-collapsed":k})}),t),l&&r.createElement("div",{className:(0,s.AK)("collapse-section-content",p,{"collapse-section-content-collapsed":k,[C]:C&&k}),onTransitionEnd:e=>{"height"===e.propertyName&&_(!1)}},N&&l))}},33251:(e,t,l)=>{l.d(t,{r:()=>m,w:()=>d});var a=l(37051),r=l(63345),n=l(27378),s=l(95406),i=l(59188),o=l(41230);let c=(0,n.createContext)({openedCollapseId:"",setOpenedCollapseId:a.Z}),d=({children:e})=>{let[t,l]=(0,n.useState)(""),a=(0,n.useMemo)(()=>({openedCollapseId:t,setOpenedCollapseId:l}),[t,l]);return n.createElement(c.Provider,{value:a},e)},m=({isCollapsedInitial:e,setIsCollapsed:t})=>{let l=(0,s.Z)(()=>(0,r.Z)("collapse")),{openedCollapseId:a,setOpenedCollapseId:d}=(0,n.useContext)(c);return(0,i.H)(()=>{e||d(l)}),(0,o.l)(()=>{a&&a!==l&&t(!0)},[a]),e=>d(e?"":l)}},4759:(e,t,l)=>{l.d(t,{Z:()=>a.Z});var a=l(96301)},81775:(e,t,l)=>{l.d(t,{c:()=>i});var a=l(27378);let r={root:"CollapsedV2#B0",root_closed:"CollapsedV2_closed#r2",root_opened:"CollapsedV2_opened#Ok",root_clickAll:"CollapsedV2_clickAll#Du",reversed:"CollapsedV2__reversed#JA",contentWrapper:"CollapsedV2__contentWrapper#gy",contentWrapper_isOpen:"CollapsedV2__contentWrapper_isOpen#L1",content:"CollapsedV2__content#eh",header:"CollapsedV2__header#eU",iconClose:"CollapsedV2__iconClose#L8",iconClose_opened:"CollapsedV2__iconClose_opened#PQ"};var n=l(29413),s=l(99748);let i=({headerContent:e,children:t,onToggle:l,className:i,headerClassName:o,contentClassName:c,chevronIconClassName:d,isCollapsedInitial:m=!1,isReversed:u=!1,clickArea:p="header"})=>{let[h,v]=(0,a.useState)(m),E=()=>{null==l||l(!h),v(!h)},g="component"!==p&&h?void 0:E,b="header"===p&&h?E:void 0;return a.createElement("div",{onClick:g,className:(0,s.AK)(r.root,i,{[r.reversed]:u,[r.root_clickAll]:"component"===p,[r.root_closed]:!h,[r.root_opened]:h})},a.createElement("div",{className:(0,s.AK)(r.header,o),onClick:b},e,a.createElement(n.Z,{img:"chevron-down-ds",className:(0,s.AK)(r.iconClose,d,{[r.iconClose_opened]:h})})),a.createElement("div",{className:(0,s.AK)(r.contentWrapper,{[r.contentWrapper_isOpen]:h})},a.createElement("div",{className:(0,s.AK)(r.content,c)},t)))}},65804:(e,t,l)=>{l.d(t,{Z:()=>i});var a=l(27378),r=l(186),n=l(99748),s=l(97606);let i=e=>{let{className:t,wrapper:l="span"}=e,{replaceTags:i}=(0,s.QT)(),o=i(e);return a.createElement(r.Z,{key:e.messageId},l?a.createElement(l,{className:(0,n.AK)(t),id:e.id},o):o)}},16421:(e,t,l)=>{l.d(t,{Z:()=>c});var a=l(27378),r=l(99382),n=l(89057),s=l(29413),i=l(99748),o=l(97606);let c=e=>{let{trans:t}=(0,o.QT)(),{cancelText:l,okText:c,className:d,children:m,description:u,isModerModal:p,isPositiveModal:h,isNegativeModal:v,title:E,onCancel:g,onConfirm:b,isInPortal:f,okButtonStyle:C,isOkLoading:y,isOkDisabled:N,..._}=e,k=[];if(k.push(a.createElement(r.ZP,{onClick:g,key:1},l||t("button.cancel"))),b){let e=h?"apply":"primary";e=v?"delete":e,e=null!=C?C:e,k.push(a.createElement(r.ZP,{loading:y,disabled:N,className:"confirmation-modal-btn-confirm",onClick:b,key:2,style:e},c||t("button.ok")))}return h&&k.reverse(),a.createElement(n.Z,{isInPortal:f,className:(0,i.AK)("confirmation-modal",d,{"is-modern":p}),onClose:g,source:"confirmationModal",titlePosition:"outside",..._},p&&a.createElement("div",{onClick:g,className:"confirmation-modal-close"},a.createElement(s.Z,{img:"close-3",width:14,height:14})),E?a.createElement("h3",{className:"confirmation-modal-title"},E):null,u?a.createElement("h3",{className:"confirmation-modal-description"},u):null,m,a.createElement("div",{className:"confirmation-modal-controls controls"},k))}},36664:(e,t,l)=>{l.d(t,{_:()=>p});var a=l(29955),r=l(27378),n=l(93409),s=l(98846),i=l(95654),o=l(36886),c=l(5509),d=l(58543),m=l(12278);let u=(0,s.n7)({resolved:{},chunkName:()=>"[dynamic@CookiesReminderContent]",isReady(e){let t=this.resolve(e);return!0===this.resolved[t]&&!!l.m[t]},importAsync:()=>l.e(8478).then(l.bind(l,82306)),requireAsync(e){let t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){return l(this.resolve(e))},resolve:()=>82306},{ssr:!1,fallback:void 0}),p=()=>{let e=(0,i.C)(d.pB),t=(0,o.t)(),l=(0,i.C)(m.ts);return((0,r.useEffect)(()=>{let t="ignored";if(e)try{let e=n.ZP.get("c");if(e){let l=JSON.parse(e);t=(0,a.Z)(l.thirdParties)?"essentialAccepted":"allAccepted"}}catch(e){}(0,c.C2)(t)},[l,e]),e||!t)?null:r.createElement(u,null)}},62741:(e,t,l)=>{l.d(t,{A_:()=>d,EZ:()=>m,ZP:()=>u});var a=l(63345),r=l(27378),n=l(12710),s=l(87766),i=l(95654),o=l(13743);function c(e,t){let l=(t-Date.now())/1e3,a=l<=0;return{totalSecondsLeft:l,days:(0,n.Bu)(l/86400),hours:(0,n.Bu)(l/3600%24),minutes:(0,n.Bu)(l/60%60),seconds:(0,n.Bu)(l%60),isDisabled:a||!e&&l>86400,isCompleted:a}}let d=(e,t,l=!1)=>{let n=(0,i.C)(o.lY),[d,m]=(0,r.useState)(c(l,e+n));return(0,r.useEffect)(()=>{let r=(0,a.Z)("CountdownTimer_");return s.Z.startInterval(r,1e3,()=>{let a=c(l,e+n);a.isCompleted&&"function"==typeof t&&t(),m(a)}),()=>{s.Z.stopInterval(r)}},[e,t,l,n]),d},m=({days:e,hours:t,minutes:l,seconds:a,className:n,shouldShowDays:s,shouldHideZeroHours:i,separator:o,isDisabled:c})=>c?null:r.createElement("span",{className:n},s&&r.createElement("span",{className:"days"},e),o&&s?r.createElement("span",{className:"separator"},o):null,!(i&&parseInt(t,10))&&r.createElement(r.Fragment,null,r.createElement("span",{className:"hours"},t),o?r.createElement("span",{className:"separator"},o):null),r.createElement("span",{className:"minutes"},l),o?r.createElement("span",{className:"separator"},o):null,r.createElement("span",{className:"seconds"},a)),u=({onTimeEnd:e,endTimestamp:t,shouldShowDays:l,...a})=>{let n=d(t,e,l);return r.createElement(m,{shouldShowDays:l,...a,...n})}},9843:(e,t,l)=>{l.d(t,{Z:()=>s});var a=l(27378),r=l(99748),n=l(20717);let s=(0,a.forwardRef)(({size:e="small",country:t,className:l="",children:s,style:i,id:o,title:c},d)=>{let m=(0,r.AK)("country-flag",`country-flag--${e}`,l),u=(0,n.jz)("common/components/ui/CountryFlag/images/");return a.createElement("span",{style:{...i,backgroundImage:`url('${u}${t.toLowerCase()}.svg')`},className:m,ref:d,id:o,title:c},s)})},30085:(e,t,l)=>{l.d(t,{Z:()=>o});var a=l(27378),r=l(9843),n=l(95654),s=l(68020),i=l(79561);let o=a.memo(({children:e,country:t,size:l="small",...o})=>{let c=(0,n.C)(s.gv),d=(0,i.NX)(c,t);return a.createElement(r.Z,{...o,size:l,country:d},e)})},39951:(e,t,l)=>{l.d(t,{w:()=>A});var a=l(27378),r=l(99748),n=l(31609),s=l(85353),i=l(38487),o=l(3034),c=l(97606);let d=({checked:e,disabled:t,rowId:l})=>{let n=`row-select-${l}`;return a.createElement("label",{className:(0,r.AK)("cell-checkbox",{disabled:t},{checked:e}),id:n},a.createElement("input",{type:"checkbox",className:"input-checkbox",defaultChecked:e,disabled:t,onClick:e=>e.stopPropagation()}),a.createElement("span",{className:"check-mark"}))},m=({children:e,className:t,id:l,onClick:n})=>a.createElement("div",{id:l,className:(0,r.AK)("data-table-body-row",t),onClick:n},e),u=({columnsCount:e,children:t,className:l,flexBasis:r})=>a.createElement("div",{className:l,style:{flexBasis:r||`${100/e}%`}},t),p=({data:e,columns:t,isPending:l,loadError:p,options:h,selectedRowsIds:v,selectableColumnIndex:E,setSelectedRowsIds:g,permanentlySelectedRowsIds:b,isTableBodyScrollable:f,renderEmpty:C})=>{let{trans:y}=(0,c.QT)(),N=(0,a.useRef)(!1),_=(0,a.useRef)(),{translationId:k,withLoader:A,bodyRowClassName:S,bodyCellClassName:T,columnClassName:w,shouldForceShowLoaderOnPending:P,checkboxTooltipMessage:M}=h,I=null!=E;(0,a.useEffect)(()=>{N.current&&!_.current?_.current=!0:N.current=!0},[l]);let R=e=>{if(!I)return;let t=e[E];if(null==t?void 0:t.id){if(!(null==v?void 0:v.includes(t.id))){null==g||g([...v||[],t.id]);return}null==g||g((v||[]).filter(e=>e!==t.id))}},Z=(e,t)=>e.renderBody?e.renderBody(t):t,L=e=>{if((0,n.Z)(e.id))return null;let t=null==v?void 0:v.includes(e.id),l=(b||[]).includes(e.id);return a.createElement(d,{rowId:e.id,disabled:l,checked:t||l})},D=(e,l)=>{let n=`row-key-${l}`;return a.createElement(m,{id:n,key:n,className:S},e.map((e,l)=>{let n=t[l],s=`cell-key-${l}`;return a.createElement(u,{key:s,columnsCount:t.length,flexBasis:n.flexBasis,className:(0,r.AK)("data-table-body-cell",w,T,n.bodyClassNames,n.columnClassNames)},Z(n,e))}))},B=(e,l)=>{let s=`row-key-${l}`;if(!I)return null;let i=e[E],c=!(0,n.Z)(null==i?void 0:i.id)&&(null==b?void 0:b.includes(null==i?void 0:i.id));return a.createElement(m,{id:s,key:s,className:(0,r.AK)(S,{"selectable-body-row":I&&!c}),onClick:()=>!c&&R(e)},c&&M&&a.createElement(o.Z,{isMobileRelative:!1,targetId:`row-select-${null==i?void 0:i.id}`,hoverTargetId:s,placement:"left"},M),e.map((e,l)=>{let n=t[l],s=`cell-key-${l}`;return a.createElement(u,{key:s,columnsCount:t.length,flexBasis:n.flexBasis,className:(0,r.AK)("data-table-body-cell",w,T,n.bodyClassNames,n.columnClassNames)},I&&E===l&&L(e),Z(n,e))}))},F=()=>p?a.createElement(m,{id:"data-table-body-error",className:"data-table-body-error"},p.message):!_.current||e.length||P&&l?l&&A?a.createElement("div",{className:"data-table-loader"},a.createElement(s.Z,null)):e.map(I?B:D):(null==C?void 0:C())||a.createElement(m,{id:"data-table-empty-table",className:S},a.createElement("span",{className:"data-table-text-empty"},y(`${k}.table.emptyTable`)));return f?a.createElement(i.Z,{additionalClassName:"data-table-scrollbar-container"},a.createElement("div",{className:"data-table-body"},F())):a.createElement("div",{className:"data-table-body"},F())},h=({children:e,className:t})=>a.createElement("div",{className:(0,r.AK)("data-table-footer-row",t)},e),v=({columns:e,options:t})=>{let{trans:l}=(0,c.QT)(),{translationId:n}=t,s=e=>e.footer?e.footer.text||l(`${n}.table.columns.${e.name}`):e.renderFooter?e.renderFooter():null,{footerRowClassName:i,footerCellClassName:o,columnClassName:d}=t;return a.createElement("div",{className:"data-table-footer"},a.createElement(h,{className:i},e.map(t=>a.createElement(u,{key:t.name,columnsCount:e.length,flexBasis:t.flexBasis,className:(0,r.AK)("data-table-footer-cell",d,o,t.footerClassNames,t.columnClassNames)},s(t)))))};var E=l(20412);let g=({children:e,className:t})=>a.createElement("div",{className:(0,r.AK)("data-table-head-row",t)},e);var b=l(76482),f=l(29413),C=l(74753),y=l(95406);let N=({value:e="",placeholder:t="",iconPosition:l="right",setValue:n,children:s,debounceTime:i})=>{let o=a.createRef(),c=(0,a.useCallback)(()=>{o.current&&o.current.focus()},[o]),[d,m]=(0,a.useState)(!1),[u,p]=(0,a.useState)(e),h=()=>{n(""),p(""),m(!d)};(0,a.useEffect)(()=>{d&&c()},[c,d]);let v=(0,y.Z)(()=>0===i?n:(0,b.Z)(n,i||500));return d?a.createElement("div",{className:"searchable-head open"},a.createElement(C.Z,{ref:o,size:"small",placeholder:t,onChange:e=>{p(e.target.value),v(e.target.value)},value:u,className:"input"}),a.createElement("div",{role:"button",className:"icon-container",onClick:h},a.createElement(f.Z,{img:"close-3",className:"icon-close"}))):a.createElement("div",{className:(0,r.AK)("searchable-head close",{"icon-first":"left"===l})},a.createElement("div",null,s),a.createElement("div",{role:"button",className:"icon-container",onClick:h},a.createElement(f.Z,{img:"search-3",className:"icon-search"})))},_=({isActive:e,direction:t,setDirection:l,children:n})=>a.createElement("div",{role:"button",className:(0,r.AK)("sortable-head",{[t]:e}),onClick:()=>{l(t===E.COLUMN_SORT_DIRECTIONS.ASC?E.COLUMN_SORT_DIRECTIONS.DESC:E.COLUMN_SORT_DIRECTIONS.ASC)}},a.createElement("span",null,n),a.createElement(f.Z,{img:"sort",className:"icon-sort"})),k=({columns:e,options:t,sortedColumn:l,setSortedColumn:n})=>{let{trans:s}=(0,c.QT)(),{translationId:i}=t,o=(e,t)=>{var r;if(!(null===(r=t.head)||void 0===r?void 0:r.sortable))return e;let s=(null==l?void 0:l.id)===t.id,i=s?null==l?void 0:l.direction:E.COLUMN_SORT_DIRECTIONS.ASC;return a.createElement(_,{isActive:s,direction:i||E.COLUMN_SORT_DIRECTIONS.ASC,setDirection:e=>null==n?void 0:n({id:t.id||"",direction:e})},e)},d=e=>{if(e.head){let t=e.head.text||s(`${i}.table.columns.${e.name}`);return e.head.search?a.createElement(N,e.head.search,o(t,e)):o(t,e)}if(e.renderHeadComponent){let t=e.renderHeadComponent;return a.createElement(t,null)}return e.renderHead?e.renderHead():s(`${i}.table.columns.${e.name}`)},{headRowClassName:m,headCellClassName:p,columnClassName:h}=t;return a.createElement("div",{className:"data-table-head"},a.createElement(g,{className:m},e.map(t=>a.createElement(u,{key:t.name,columnsCount:e.length,flexBasis:t.flexBasis,className:(0,r.AK)("data-table-head-cell",h,p,t.headClassNames,t.columnClassNames)},d(t)))))},A=({data:e,columns:t,loadError:l,isPending:n,options:s,sortedColumn:i,setSortedColumn:o,selectableColumnIndex:c,selectedRowsIds:d=[],permanentlySelectedRowsIds:m=[],setSelectedRowsIds:u,isTableBodyScrollable:h=!1,renderEmpty:E})=>a.createElement("div",{className:(0,r.AK)("data-table",s.rootClassName)},a.createElement(k,{columns:t,options:s,sortedColumn:i,setSortedColumn:o}),a.createElement(p,{data:e,columns:t,isPending:n,loadError:l,options:s,selectableColumnIndex:c,selectedRowsIds:d,setSelectedRowsIds:u,permanentlySelectedRowsIds:m,isTableBodyScrollable:h,renderEmpty:E}),a.createElement(v,{columns:t,options:s}))},20412:(e,t,l)=>{l.d(t,{COLUMN_SORT_DIRECTIONS:()=>a});let a={ASC:"asc",DESC:"desc"}},89057:(e,t,l)=>{l.d(t,{Z:()=>h});var a=l(47722),r=l(23615),n=l.n(r),s=l(27378),i=l(48204),o=l(83550),c=l(53616),d=l(99973),m=l(99748);class u extends c.Z{componentDidMount(){super.componentDidMount();let{source:e}=this.props;this.props.emitUiEvent(d.Q7.DEFAULT_MODAL_MOUNT,{source:e})}renderContent(){let{modalBodyAdditionalClassName:e,onBodyClick:t}=this.props,l=t?a.mI:"div";return s.createElement(l,{className:(0,m.AK)("modal-body",e),onClick:t},this.props.children)}}let p={emitUiEvent:o.gz};u.propTypes={...u.propTypes,source:n().string.isRequired,modalBodyAdditionalClassName:n().string,onBodyClick:n().func,emitUiEvent:n().func.isRequired},u.defaultProps={...u.defaultProps,className:"default-modal",modalBodyAdditionalClassName:""};let h=(0,i.$j)(null,p)(u)},61171:(e,t,l)=>{l.d(t,{Z:()=>c});var a=l(85925),r=l(27378),n=l(11850),s=l(80936),i=l(99748),o=l(95654);let c=(0,s.H)("windowWidth","isLayoutUpToS")(({arrowSize:e,background:t,children:l,className:s,contentClassName:c,initiatorRef:d,isLayoutUpToS:m,isMobileViewEnabled:u=!0,hideArrow:p,mobilePosition:h,onClose:v=()=>!1,position:E,shadow:g=!1,spaced:b=!1,windowWidth:f,stateValueGetter:C,isFixed:y,triggerRef:N})=>{let _=(0,r.useRef)(null),[k,A]=(0,n.eW)(),S=(0,o.C)(C||a.Z),T=C?S:k;function w(){if((!m||!u)&&(null==d?void 0:d.current)&&T){let{left:e,width:t}=d.current.getBoundingClientRect(),{offsetWidth:l}=_.current,a=f-document.documentElement.offsetWidth,r=f-a-e,n=(t-l)/2;r{_.current.style.marginLeft=n?`${n}px`:""})}}function P(){(null==d?void 0:d.current)&&requestAnimationFrame(()=>{var e;null===(e=d.current)||void 0===e||e.classList[T?"add":"remove"]("dropdown-expanded")})}return(0,r.useEffect)(()=>{let e=()=>{(null==N?void 0:N.current)&&(null==_?void 0:_.current)&&"top"===E&&(_.current.style.position="fixed",_.current.style.top=`${(null==N?void 0:N.current.getBoundingClientRect().top)-_.current.getBoundingClientRect().height-15}px`,_.current.style.left=`${(null==N?void 0:N.current.getBoundingClientRect().left)-_.current.getBoundingClientRect().width/2+7}px`)};if(y&&_.current){var t;_.current.style.height=`${null===(t=_.current)||void 0===t?void 0:t.getBoundingClientRect().height}px`,window.addEventListener("scroll",e,!0),e()}document.removeEventListener("scroll",e)},[]),(0,r.useEffect)(()=>{let e=e=>{_.current&&!_.current.contains(e.target)&&T&&v()};return setTimeout(()=>{document.addEventListener("click",e)}),()=>{document.removeEventListener("click",e)}},[v,T]),(0,r.useEffect)(w,[w]),(0,r.useEffect)(P,[P]),r.createElement("div",{className:(0,i.AK)("dropdown-wrapper",s,E,{[`mobile-${h}`]:h,mobile:m&&u}),ref:_,onClick:function(e){e.stopPropagation(),k||A(e)}},T&&r.createElement("div",{className:(0,i.AK)("dropdown-content",e,c,`background-${t||"strong"}`,c,{shadow:g,spaced:b,"dropdown-content--hidden-arrow":p})},l))})},17359:(e,t,l)=>{l.d(t,{B:()=>n});var a=l(27378),r=l(97606);let n=({defaultMessage:e=null,fieldName:t=null,error:l})=>{let{trans:n}=(0,r.QT)();if(!l)return null;let{details:s}=l,i=e||n("errors.unknownError");if(t&&(null==s?void 0:s[t])){let e=s[t];i=Array.isArray(e)?e.join(". "):e}else if(l.message)i=l.message;else if(l.element)return a.createElement("span",{className:"error-message"},l.element);return i?a.createElement("span",{className:"error-message",dangerouslySetInnerHTML:{__html:i}}):null}},58927:(e,t,l)=>{l.d(t,{Z:()=>o});var a=l(37051),r=l(27378),n=l(17359),s=l(3034),i=l(99748);let o=({className:e,children:t,isMobileRelative:l=!1,isOneLine:o=!1,placement:c="right",targetId:d,targetRef:m,maxWidth:u,tooltipRefExtractor:p=a.Z,onClick:h,gap:v,id:E,...g})=>r.createElement(s.Z,{isMobileRelative:l,isOneLine:o,placement:c,targetRef:m,targetId:d,maxWidth:u,gap:v,id:E,className:(0,i.AK)([e,"error"]),isForceVisible:!0,ref:e=>{p(d,e)},onClick:h},t,r.createElement(n.B,g))},16797:(e,t,l)=>{l.d(t,{$:()=>ef});var a=l(27378),r=l(31804),n=l(35463),s=l(90134),i=l(38830),o=l(99748);let c={root:"BlockContainer#ay"},d=({children:e,className:t})=>a.createElement("div",{className:(0,o.AK)(c.root,t)},e);var m=l(4289),u=l(1948);let p={root:"BlockListItem#fA"},h=({children:e,className:t,component:l,...r})=>{let n={className:(0,o.AK)(p.root,t),...r};return"Link"===l?a.createElement(m.rU,n,e):"SafeLink"===l?a.createElement(u.Z,n,e):"div"===l?a.createElement("div",n,e):void 0===l&&r.renderItem?r.renderItem({className:n.className}):null};var v=l(29413);let E={root:"BlockListItemSocialLink#Em",icon:"BlockListItemSocialLink__icon#Dk"},g=({children:e,className:t,iconName:l,href:r,external:n})=>n?a.createElement(h,{component:"SafeLink",href:r,target:"_blank",className:(0,o.AK)(E.root,t)},a.createElement(v.Z,{img:l,size:14,className:E.icon}),e):a.createElement(h,{component:"Link",to:r,className:(0,o.AK)(E.root,t)},a.createElement(v.Z,{img:l,size:14,className:E.icon}),e),b={root:"BlockTitle#z1"},f=({children:e,className:t})=>a.createElement("span",{className:(0,o.AK)(b.root,t)},e);var C=l(97606),y=l(95654),N=l(90690),_=l(62203),k=l(12278),A=l(68020);let S={"link-inquiries":"FollowBlock__link-inquiries#Rd"},T={blog:"stripchat-logo",facebook:"facebook-square",instagram:"instagram-original",snapchat:"snapchat",twitter:"x-logo-ds",reddit:"reddit"},w=["blog","facebook","instagram","snapchat","twitter","reddit"],P=({className:e})=>{let{trans:t}=(0,C.QT)(),l=(0,y.C)(N.d),r=(0,y.C)(_.hA),n=(0,y.C)(k.ts),s=(0,y.C)(_.ok),i=(0,y.C)(A.ln),o=n&&!n.isGuest&&!n.isModel&&!n.isStudio,c=!n||!(null==n?void 0:n.isModel)&&!(null==n?void 0:n.isStudio),m=[];s&&c&&m.push(a.createElement(g,{key:"about",href:"/about",iconName:"about",external:!1},t("footer.about"))),s&&!c&&m.push(a.createElement(g,{key:"about-models",href:"/become-a-model",iconName:"about",external:!1},t("footer.aboutStripchat")));let u=w.map(e=>{let r=l[e];return r?a.createElement(g,{key:e,href:r,external:!0,iconName:T[e]},t(`footer.${e}`)):null}).filter(Boolean);u.length&&m.push(...u);let p=a.createElement(g,{key:"news",href:"/news",iconName:"news",external:!1},t("footer.news"));return(o&&m.push(p),s&&m.push(a.createElement(g,{key:"inquiries",href:`mailto:${i}`,iconName:"inquiries",external:!0,className:S["link-inquiries"]},t("footer.mediaInquiries"))),0===m.length)?null:a.createElement(d,{className:e},a.createElement(f,null,r),m)};var M=l(65804),I=l(52391),R=l(84423),Z=l(59609),L=l(42339),D=l(78957),B=l(77332),F=l(82512),O=l(1689),x=l(65103);let U=()=>{let{trans:e}=(0,C.QT)(),t=(0,y.C)(_.bT),l=(0,y.C)(x.M7),r=(0,y.C)(x.j9),n=(0,y.C)(x.GS),s=(0,a.useMemo)(()=>!l,[l]);return t?null:s||r?a.createElement(h,{component:"div"},a.createElement(O.Z,{wikiLinkKey:"dmcaProtection"},e("footer.dmcaProtection"))):n?a.createElement(h,{component:"div"},a.createElement(u.Z,{href:"/settings/#dmca"},e("footer.dmcaProtection"))):null},H={feedback:"HelpBlock__feedback#ce"},K=({className:e})=>{let{trans:t}=(0,C.QT)(),l=(0,y.C)(_.hA),r=(0,y.C)(Z.qA),n=(0,y.C)(F.n6),s=(0,y.C)(L.oaO),i=(0,y.C)(k.rc),o=(0,y.C)(B.Y),c=void 0!==i&&o;return a.createElement(d,{className:e},a.createElement(f,null,t("footer.help")," & ",t("footer.support")),a.createElement(h,{component:"div"},a.createElement(I.Z,null,t("footer.contactSupport"))),a.createElement(h,{component:"Link",rel:"nofollow noopener",to:"/support/billing"},t("footer.billingSupport")),!c&&!!r&&a.createElement(h,{component:"SafeLink",rel:"nofollow",href:r,target:"_blank"},t("footer.provideFeedback",{siteName:l})),c&&a.createElement(h,{className:H.feedback,component:"div",onClick:()=>{R.P4.show(D.S,{isRadiosVisible:!0,description:t("userFeedback.feedback-modal.description.default"),iconVariant:"default",source:"footer",newsId:void 0})}},t("footer.giveFeedback")),a.createElement(U,null),n&&s&&a.createElement(h,{component:"SafeLink",rel:"nofollow",href:"/unseen",target:"_blank"},a.createElement(M.Z,{messageId:"footer.unseenHelp",elements:{br:a.createElement("br",null)}})))};var V=l(99973),$=l(32284);let W=({className:e,isEuDsaPageVisible:t})=>{let{trans:l}=(0,C.QT)(),r=(0,y.C)(k.ts),n=(0,y.C)(x.j9);return a.createElement(d,{className:e},a.createElement(f,null,l("footer.legal")),a.createElement(h,{rel:"nofollow noopener",to:"/privacy",component:"Link"},l("footer.privacyPolicy")),a.createElement(h,{component:"Link",rel:"nofollow noopener",to:"/terms"},l("footer.termsOfUse")),a.createElement(h,{component:"Link",rel:"nofollow noopener",to:"/dmca"},l("footer.dmcaPolicy")),a.createElement(h,{component:"Link",rel:"nofollow noopener",to:"/cookies-policy"},l("footer.cookiesPolicy")),a.createElement(h,{component:"Link",rel:"nofollow noopener",to:"/parental-control"},l("footer.parentalControlGuide")),t&&a.createElement(h,{component:"Link",rel:"nofollow noopener",to:"/eu-dsa"},l("footer.euDigitalServicesAct")),!(0,$.gl)(r)&&!n&&a.createElement(h,{component:"Link",rel:"nofollow noopener",to:"/eu-research"},l("footer.euResearchProgram")),a.createElement(h,{component:"SafeLink",rel:"nofollow",href:V.bc.ANTI_SLAVERY,target:"_blank"},l("footer.antiSlaveryHelp")))};var z=l(77970);let q=({className:e})=>{let{trans:t}=(0,C.QT)(),l=(0,y.C)(Z.mv),r=(0,y.C)(Z.Z0),n=(0,y.C)(Z.wR),s=(0,y.C)(k.ts),i=(0,y.C)(k.M7);return a.createElement(d,{className:e},a.createElement(f,null,t("footer.workWithUs")),a.createElement(h,{renderItem:({className:e})=>a.createElement(z.B,{className:e,isLoggedIn:i,url:l,currentUser:s})}),a.createElement(h,{renderItem:({className:e})=>a.createElement(z.t,{className:e,isLoggedIn:i,url:r,currentUser:s})}),a.createElement(h,{component:"SafeLink",target:"_blank",href:n,rel:"nofollow"},t("footer.webmasters")))};var Q=l(988),j=l(71227);let G={root:"NavigationsListSection#ND",item:"NavigationsListSection__item#fU"},Y=({className:e})=>{let t=(0,y.C)(_.Km),l=(0,y.C)(Q.Us),r=(0,y.C)(j.kT);return l?null:a.createElement("div",{className:(0,o.AK)(G.root,e)},a.createElement(P,{className:G.item}),a.createElement(W,{className:G.item,isEuDsaPageVisible:r}),!t&&a.createElement(q,{className:G.item}),a.createElement(K,{className:G.item}))};var J=l(9957),X=l(38034);let ee={root:"PWAQrCodeSection#m7",textWrapper:"PWAQrCodeSection__textWrapper#uK",qrCode:"PWAQrCodeSection__qrCode#mj",title:"PWAQrCodeSection__title#xz",description:"PWAQrCodeSection__description#st"};var et=l(59188),el=l(36886),ea=l(58543),er=l(98371),en=l(89598);let es=()=>{let{trans:e}=(0,C.QT)(),[t,l]=(0,a.useState)(!1),r=(0,y.C)(_.hA),n=(0,y.C)(k.KM),{inView:s,ref:i}=(0,J.YD)({triggerOnce:!0,skip:!t});return(0,et.H)(()=>{setTimeout(()=>{l(!0)},2e3)}),a.createElement("div",{className:ee.root,onClick:()=>{s&&R.P4.show(X.C,{})}},a.createElement("div",{ref:i,className:ee.qrCode},s&&a.createElement(en.D,{className:(0,o.AK)(ee.qrCode,ee.qrCode_big)})),a.createElement("div",{className:ee.textWrapper},a.createElement("div",{className:ee.title},e("pwaQrCode.titleUser",{siteName:r})),a.createElement("div",{className:ee.description},e(n?"pwaQrCode.descriptionModel":"pwaQrCode.footer.description"))))},ei=()=>{let e=(0,el.t)(),t=(0,y.C)(er.Sx),l=(0,y.C)(ea.pX);return e&&l&&!t?a.createElement(es,null):null},eo={root:"SeoDescriptionSection#wz"},ec=()=>{let{trans:e}=(0,C.QT)(),t=(0,y.C)(_.Km),l=(0,y.C)(_.ok),r=(0,y.C)(_.hA),n=(0,a.useMemo)(()=>l?e("footer.welcomeToSiteBlock_sc",{siteName:r}):e(t?"footer.welcomeToSiteBlockNonNude":"footer.welcomeToSiteBlock",{siteName:r}),[t,l,r,e]),s=(0,a.useMemo)(()=>l?e("footer.whatIsSiteBlock_sc",{siteName:r}):e(t?"footer.whatIsSiteBlockNonNude":"footer.whatIsSiteBlock",{siteName:r}),[t,l,r,e]);return a.createElement("div",{className:eo.root},a.createElement("p",null,n),a.createElement("p",null,s),a.createElement("p",null,e("footer.modelsAreConfirmedBlock")))},ed={root:"TakeTourSection#Yy",btn:"TakeTourSection__btn#h3"},em=({className:e})=>{let{trans:t}=(0,C.QT)(),l=(0,y.C)(k.ts),r=(0,y.C)(_.Km),n=(0,y.C)(Q.Us),s=(0,y.C)(_.ok),i=(0,a.useMemo)(()=>l&&(l.isModel||l.isStudio)?"tourModel":"tour",[l]);return r||n||!s?null:a.createElement("div",{className:(0,o.AK)(ed.root,e)},a.createElement(O.Z,{wikiLinkKey:i,className:(0,o.AK)("btn btn-small btn-take-tour",ed.btn)},t("footer.takeTour")))},eu={labels:"RowTop__labels#M0","labels-item":"RowTop__labels-item#ck",labelsItem:"RowTop__labels-item#ck","left-tour":"RowTop__left-tour#qc",leftTour:"RowTop__left-tour#qc","left-nav":"RowTop__left-nav#ev",leftNav:"RowTop__left-nav#ev"};var ep=l(7263);let eh=({className:e})=>a.createElement(ep.Q,{className:(0,o.AK)(eu.root,e),left:a.createElement(a.Fragment,null,a.createElement(i.P,{logoHref:"/"}),a.createElement(Y,{className:eu["left-nav"]}),a.createElement(em,{className:(0,o.AK)(eu["left-tour"],eu["take-tour"])}),a.createElement(ec,null),a.createElement(s.i,{className:eu.labels,labelClassName:eu["labels-item"]}),a.createElement(ei,null)),right:a.createElement(a.Fragment,null,a.createElement(Y,null),a.createElement(em,null))});var ev=l(68074),eE=l(61435),eg=l(62182);let eb={inner:"Footer__inner#zr","row-top":"Footer__row-top#m1","row-labels":"Footer__row-labels#nK","row-copyright":"Footer__row-copyright#WT"},ef=()=>{let e=(0,y.C)(Q.Us),t=(0,y.C)(eg.Gn);return a.createElement(ev.b,{hidden:!t},a.createElement("div",{className:eb.inner},a.createElement(eh,{className:eb["row-top"]}),a.createElement(n.z,{className:eb["row-labels"],statementLink:"/2257",statementLinkRel:"nofollow"}),!e&&a.createElement(r.v,{className:eb["row-copyright"]})),a.createElement(eE.y,{id:eE.y.IDS.FOOTER_PORTAL_CONTAINER}))}},31804:(e,t,l)=>{l.d(t,{v:()=>m});var a=l(27378),r=l(8495),n=l(25306),s=l(99748),i=l(95654),o=l(62203),c=l(68020);let d={root:"RowBottom#qj",item:"RowBottom__item#l9",address:"RowBottom__address#lY"},m=({className:e})=>{let t=(0,i.C)(o.UZ),l=(0,i.C)(c.VK);return a.createElement("div",{className:(0,s.AK)(d.root,e)},a.createElement("div",{className:d.item},"\xa9 ",new Date().getFullYear()," ",t||l," "),a.createElement("div",{className:(0,s.AK)(d.item,d.address)},a.createElement("span",null,a.createElement(n.ZP,null),"\xa0",a.createElement(r.ZP,null))))}},35463:(e,t,l)=>{l.d(t,{z:()=>d});var a=l(27378),r=l(4289),n=l(90134),s=l(71436),i=l(99748),o=l(97606);let c={root:"RowLabels#QP","labels-container":"RowLabels__labels-container#zh","statement-container":"RowLabels__statement-container#F3","statement-link":"RowLabels__statement-link#NX","agreement-icon":"RowLabels__agreement-icon#sZ"},d=({className:e,statementLink:t,statementLinkRel:l,statementLinkTarget:d})=>{let{trans:m}=(0,o.QT)();return a.createElement("div",{className:(0,i.AK)(c.root,e)},a.createElement(n.i,{className:c["labels-container"]}),a.createElement("div",{className:c["statement-container"]},a.createElement(r.rU,{className:c["statement-link"],to:t,rel:l,target:d},m("footer.complianceStatement")),a.createElement(s.t,{className:c["agreement-icon"],img:"agreement",fetchPriority:"low"})))}},7263:(e,t,l)=>{l.d(t,{Q:()=>s});var a=l(27378),r=l(99748);let n={root:"RowTopContainer#yN",left:"RowTopContainer__left#HV",right:"RowTopContainer__right#rG"},s=({className:e,left:t,right:l})=>a.createElement("div",{className:(0,r.AK)(n.root,e)},a.createElement("div",{className:(0,r.AK)(n.left)},t),!!l&&a.createElement("div",{className:(0,r.AK)(n.right)},l))},90134:(e,t,l)=>{l.d(t,{i:()=>h});var a=l(27378),r=l(1948),n=l(71436),s=l(99973),i=l(99748),o=l(97606),c=l(95654),d=l(62203),m=l(42339),u=l(82512);let p={label:"LabelSection__label#DR","label-support":"LabelSection__label-support#io",logo:"LabelSection__logo#ZX","logo-rta":"LabelSection__logo-rta#YO","logo-safe":"LabelSection__logo-safe#yd","logo-asacp":"LabelSection__logo-asacp#I7","logo-support":"LabelSection__logo-support#Ym","logo-unseen":"LabelSection__logo-unseen#KT"},h=({className:e,labelClassName:t})=>{let{trans:l}=(0,o.QT)(),h=(0,c.C)(u.n6),v=(0,c.C)(m.oaO),E=(0,c.C)(d.ok);return a.createElement("div",{className:e},E?a.createElement(r.Z,{"aria-label":l("aria.rtaLabel"),href:s.bc.RTALABEL,className:(0,i.AK)(p.label,t)},a.createElement(n.t,{fetchPriority:"low",className:(0,i.AK)(p.logo,p["logo-rta"]),img:"rta-logo",shouldUseTheme:!0})):a.createElement("div",{className:(0,i.AK)(p.label,t)},a.createElement(n.t,{fetchPriority:"low",className:(0,i.AK)(p.logo,p["logo-rta"]),img:"rta-logo",shouldUseTheme:!0})),a.createElement("div",{className:(0,i.AK)(p.label,t)},a.createElement(n.t,{fetchPriority:"low",className:(0,i.AK)(p.logo,p["logo-safe"]),img:"safe-labeling",shouldUseTheme:!0})),E?a.createElement(r.Z,{"aria-label":l("aria.asacpLabel"),href:s.bc.ASACP,className:(0,i.AK)(p.label,t)},a.createElement(n.t,{fetchPriority:"low",className:(0,i.AK)(p.logo,p["logo-asacp"]),img:"asacp",shouldUseTheme:!0})):a.createElement("div",{className:(0,i.AK)(p.label,t)},a.createElement(n.t,{fetchPriority:"low",className:(0,i.AK)(p.logo,p["logo-asacp"]),img:"asacp",shouldUseTheme:!0})),a.createElement(r.Z,{"aria-label":l("aria.pineappleSupport"),href:s.bc.PINEAPPLE_SUPPORT,className:(0,i.AK)(p.label,p["label-support"],t)},a.createElement(n.t,{fetchPriority:"low",className:(0,i.AK)(p.logo,p["logo-support"]),img:"pineapple-support"})),h&&v&&a.createElement(r.Z,{href:s.bc.UNSEEN,className:(0,i.AK)(p.label,t),target:"_blank"},a.createElement(n.t,{fetchPriority:"low",className:(0,i.AK)(p.logo,p["logo-unseen"]),img:"unseen",shouldUseTheme:!0})))}},38830:(e,t,l)=>{l.d(t,{P:()=>E});var a=l(27378),r=l(4289),n=l(90717),s=l(45598),i=l(99748),o=l(97606),c=l(94380),d=l(95654),m=l(62182),u=l(36286),p=l(71227),h=l(68020);let v={root:"LogoWithLanguageSection#mr",logoContainer:"LogoWithLanguageSection__logoContainer#EL",logo:"LogoWithLanguageSection__logo#YX",dropdown:"LogoWithLanguageSection__dropdown#bC"},E=({className:e,logoHref:t})=>{let l=(0,c.T)(),{trans:E}=(0,o.QT)(),g=(0,d.C)(h._f),b=(0,d.C)(m.Vb),f=(0,d.C)(p.OK),C=(0,a.useCallback)(e=>{l((0,u.wo)(e))},[l]),y=(0,a.useCallback)(e=>{let t="en"!==g?location.hostname.split(`${b[g].subDomain}.`).join(""):location.hostname,l=b[e],a=l.subDomain?`${l.subDomain}.`:"",r=f?`?affiliateId=${f}`:"";return`https://${a}${t+location.pathname}${r}`},[f,g,b]);return a.createElement("div",{className:(0,i.AK)(v.root,e)},a.createElement(r.OL,{"aria-label":E("aria.logoLabel"),className:v.logoContainer,to:t},a.createElement(s.Z,{type:"monochrome",className:v.logo})),a.createElement("div",{className:v.dropdown},a.createElement(n.Z,{currentLocale:g,languages:b,getItemHref:y,onChangeLocale:C})))}},38034:(e,t,l)=>{l.d(t,{C:()=>n});var a=l(27378),r=l(98655);let n=(0,l(98846).n7)({resolved:{},chunkName:()=>"PwaModal",isReady(e){let t=this.resolve(e);return!0===this.resolved[t]&&!!l.m[t]},importAsync:()=>l.e(4782).then(l.bind(l,44970)),requireAsync(e){let t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){return l(this.resolve(e))},resolve:()=>44970},{ssr:!1,fallback:a.createElement(r.c,null)})},68074:(e,t,l)=>{l.d(t,{b:()=>i,o:()=>s});var a=l(27378),r=l(99748);let n={root:"footer-container#jW","root--hidden":"footer-container#Mo"},s="MAIN_FOOTER_ID",i=({children:e,className:t,hidden:l})=>a.createElement("footer",{id:s,className:(0,r.AK)(n.root,{[n["root--hidden"]]:l},t)},e)},22967:(e,t,l)=>{l.d(t,{Z:()=>o});var a=l(48204),r=l(53129),n=l(99973),s=l(59188);let i={webDriverLog:r.e},o=(0,a.$j)(null,i)(e=>((0,s.H)(()=>{n.BROWSER_CAPABILITIES.webDriver&&e.webDriverLog()}),null))},66919:(e,t,l)=>{l.d(t,{ZP:()=>k});var a,r=l(18775),n=l(64489),s=l(27378),i=l(48204),o=l(40347),c=l(62668),d=l(83550),m=l(99973),u=l(40650),p=l(24004),h=l(87937),v=l(42815),E=l(62512),g=l(62182),b=l(71337);let f=m.BROWSER_CAPABILITIES.android?"(max-device-aspect-ratio: 1/1)":"(orientation: portrait)",C=(0,h.C5)()?window.matchMedia(f):null,y=!!(0,h.C5)()&&(()=>{try{let e=()=>{};return navigator.connection.addEventListener("change",e),navigator.connection.removeEventListener("change",e),!0}catch{return!1}})();class N extends(a=s.Component){componentDidMount(){(0,E.H0)(this,window,"focus",this.focusEventHandler),(0,E.H0)(this,window,"blur",this.blurEventHandler),(0,E.H0)(this,window,"online",this.onlineEventHandler),(0,E.H0)(this,window,"offline",this.offlineEventHandler),(0,E.H0)(this,window,"storage",this.storageUpdateHandler),p._4.create(p.tJ.AUTH,this.authUpdateHandler),C&&C.addListener(this.orientationChangeEventHandler),y&&(navigator.connection.addEventListener("change",this.connectionChangeHandlerDebounced),this.connectionChangeHandler()),this.props.shouldPreventPageClose&&this.lockPage(),this.props.updateDocumentVisibility(),(0,E.H0)(this,document,"visibilitychange",this.props.updateDocumentVisibility),navigator.onLine?this.onlineEventHandler():this.offlineEventHandler(),this.orientationChangeEventHandler()}componentDidUpdate(e){e.shouldPreventPageClose!==this.props.shouldPreventPageClose&&(this.props.shouldPreventPageClose?this.lockPage():this.unlockPage())}componentWillUnmount(){(0,E.OM)(this),C&&C.removeListener(this.orientationChangeEventHandler),y&&navigator.connection.removeEventListener("change",this.connectionChangeHandlerDebounced)}render(){return null}constructor(...e){super(...e),(0,r._)(this,"onlineEventHandler",()=>{v.ZP.addUI("online",!0),this.props.updateOnlineStatus(!0)}),(0,r._)(this,"offlineEventHandler",()=>{v.ZP.addUI("online",!1),this.props.updateOnlineStatus(!1)}),(0,r._)(this,"connectionChangeHandler",()=>{this.props.updateConnectionSpeed(1024*navigator.connection.downlink)}),(0,r._)(this,"connectionChangeHandlerDebounced",(0,n.Z)(this.connectionChangeHandler,100)),(0,r._)(this,"orientationChangeEventHandler",()=>{if((0,h.sk)())return;let e=C.matches;this.props.updateWindowOrientation(e?"portrait":"landscape")}),(0,r._)(this,"focusEventHandler",()=>{v.ZP.addUI("focus",!0),this.props.updateWindowFocus(!0)}),(0,r._)(this,"blurEventHandler",()=>{v.ZP.addUI("focus",!1),this.props.updateWindowFocus(!1)}),(0,r._)(this,"authUpdateHandler",({data:e})=>{let{type:t}=e||{};t===p.J9&&this.props.loginThroughPostMessage(),t===p.ZR&&this.props.logoutThroughPostMessage()}),(0,r._)(this,"storageUpdateHandler",({key:e})=>{if(e){if(Object.values(u.dA).includes(e)){this.props.syncLocalStorage();return}Object.values(u.sO).includes(e)&&this.props.syncSessionStorage()}}),(0,r._)(this,"lockPage",()=>{window.addEventListener("beforeunload",this.pageCloseBlockingHandler)}),(0,r._)(this,"unlockPage",()=>{window.removeEventListener("beforeunload",this.pageCloseBlockingHandler)}),(0,r._)(this,"pageCloseBlockingHandler",e=>{e.preventDefault(),e.returnValue=""})}}(0,r._)(N,"defaultProps",{shouldPreventPageClose:!1});let _={logoutThroughPostMessage:b.wC,loginThroughPostMessage:b.LN,updateDocumentVisibility:c.uP,updateWindowFocus:d.P2,updateWindowOrientation:d.Pk,updateOnlineStatus:d.yA,updateConnectionSpeed:c.qJ,syncLocalStorage:o.Wd,syncSessionStorage:o.$2},k=(0,i.$j)(e=>({shouldPreventPageClose:(0,g.TA)(e)}),_)(N)},14359:(e,t,l)=>{l.d(t,{Z:()=>o});var a=l(27378),r=l(4289),n=l(29413),s=l(38772);let i={tag:"GoUltimateTag__tag#Fh",icon:"GoUltimateTag__icon#CQ",close:"GoUltimateTag__close#lG"},o=()=>{let{isClicked:e,isShow:t,text:l,onClose:o,onClick:c}=(0,s.Y)("tag");return t?a.createElement(r.rU,{className:i.tag,onClick:c,to:"/subscriptions"},a.createElement("i",{className:i.icon}),a.createElement("span",null,l),e&&a.createElement(n.Z,{onClick:o,className:i.close,img:"close-ds"})):null}},38772:(e,t,l)=>{l.d(t,{Y:()=>f});var a=l(27378),r=l(83550),n=l(91090),s=l(99973),i=l(97606),o=l(70203),c=l(94380),d=l(95654),m=l(80092),u=l(12278),p=l(65103),h=l(66483);let v="GO_ULTIMATE_CLICK",E="GO_ULTIMATE_CLOSED",g={tag:n.CI.INDEX_BUBBLES_SUBSCRIPTION,banner:n.CI.MAIN_SUBSCRIPTION},b={banner:"userLevels.getExtraBenefits",tag:"userLevels.getPerks"},f=e=>{let{trans:t}=(0,i.QT)(),[l,n]=(0,a.useState)(!!o.m.get(v)),[f,C]=(0,a.useState)(!!o.m.get(E)),y=(0,d.C)(m.X3),N=(0,d.C)(p.JR),_=(0,d.C)(h.Kr),k=(0,d.C)(u.KM),A=(0,c.T)();return{isShow:!f&&!_&&!k&&(N||!N&&y),text:t(b[e]),isClicked:l,onClick:()=>{A((0,r.d2)(s.FO.GO_ULTIMATE_PROMO_BANNER,{pageSection:g[e]})),o.m.set(v,"1"),n(!0)},onClose:e=>{e.preventDefault(),o.m.set(E,"1"),C(!0)}}}},96322:(e,t,l)=>{l.d(t,{Z:()=>y});var a=l(18775),r=l(76482),n=l(27378),s=l(48204),i=l(67782),o=l(11850),c=l(80936),d=l(99748),m=l(98846),u=l(64696),p=l(80167),h=l(62182),v=l(12278),E=l(93381);let g=(0,m.n7)({resolved:{},chunkName:()=>"PersonalNotificationsModalPanel",isReady(e){let t=this.resolve(e);return!0===this.resolved[t]&&!!l.m[t]},importAsync:()=>Promise.all([l.e(9641),l.e(6425),l.e(9813),l.e(3508),l.e(2841),l.e(1658)]).then(l.bind(l,44543)),requireAsync(e){let t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){return l(this.resolve(e))},resolve:()=>44543},{fallback:void 0,ssr:!1}),b=(0,m.n7)({resolved:{},chunkName:()=>"TokensMenu",isReady(e){let t=this.resolve(e);return!0===this.resolved[t]&&!!l.m[t]},importAsync:()=>l.e(2817).then(l.bind(l,66455)),requireAsync(e){let t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){return l(this.resolve(e))},resolve:()=>66455},{fallback:void 0,ssr:!1}),f=({isDropdownVisible:e,onEscape:t})=>((0,p.a)("Escape",e?t:void 0),null);class C extends n.Component{componentDidMount(){this.props.isDropdownOpen&&this.props.uiBlocking.lockUI(),(0,u.Z)(this.propsUpdateToActionsMap,{},this.props)}componentDidUpdate(e){(0,u.Z)(this.propsUpdateToActionsMap,e,this.props)}renderDropdown(){let{type:e,className:t,componentClassName:l,uiBlocking:{isVisible:a},isLoggedId:r}=this.props,s={className:(0,d.AK)("header-dropdown","with-new-messenger",t,l,{active:a}),dropdownLinkClickHandler:this.dropdownLinkClickHandler,dropdownLinkRefHandler:this.dropdownLinkRefHandler,dropdownRootRefHandler:this.dropdownRootRefHandler,dropdownContentRefHandler:this.dropdownContentRefHandler,isDropdownOpen:a,keepDropdownOpen:this.keepDropdownOpen};return"userMenu"===e?n.createElement(E.Z,{...s,onClick:this.props.onClick}):"personalNotifications"===e&&r?n.createElement(g,{onClick:this.props.onClick}):"tokensMenu"===e&&r?n.createElement(b,{...s,onClick:this.props.onClick}):"wizardUserMenu"===e?n.createElement(i.Z,s):null}render(){let e=this.renderDropdown();return e?n.createElement(n.Fragment,null,e,n.createElement(f,{isDropdownVisible:this.props.uiBlocking.isVisible,onEscape:this.props.uiBlocking.unlockUI})):null}constructor(...e){super(...e),(0,a._)(this,"dropdownRenderRootRef",null),(0,a._)(this,"dropdownContentRef",null),(0,a._)(this,"propsUpdateToActionsMap",[{update:h.oC,action:()=>this.adjustDropdownContentPositioning(this.props)}]),(0,a._)(this,"adjustDropdownContentPositioning",e=>{if(this.dropdownContentRef){let t;let{isLayoutUpToS:l,windowWidth:a}=e,{left:r}=this.dropdownRenderRootRef.getBoundingClientRect(),{offsetWidth:n}=this.dropdownContentRef,s=a-document.documentElement.offsetWidth,i=a-s-r;i{e.stopPropagation()}),(0,a._)(this,"dropdownLinkClickHandler",e=>{e.preventDefault(),this.props.uiBlocking.lockUI(e)}),(0,a._)(this,"dropdownRootRefHandler",e=>{this.dropdownRenderRootRef=e}),(0,a._)(this,"dropdownLinkRefHandler",e=>{let t=new MutationObserver((0,r.Z)(()=>this.adjustDropdownContentPositioning(this.props),500,{leading:!0}));e?t.observe(e,{childList:!0,characterData:!0,subtree:!0}):t.disconnect()}),(0,a._)(this,"dropdownContentRefHandler",e=>{this.dropdownContentRef=e,e&&this.adjustDropdownContentPositioning(this.props)})}}let y=(0,s.$j)(e=>({isLoggedId:(0,v.M7)(e)}))((0,c.H)("windowWidth","windowHeight","isLayoutUpToS")((0,o.xl)(C)))},17363:(e,t,l)=>{l.d(t,{Z:()=>y});var a=l(27378),r=l(69742),n=l(65101),s=l(48204),i=l(83550),o=l(99973),c=l(97606),d=l(94380),m=l(988),u=l(73804),p=l(42339),h=l(68020),v=l(17723),E=l(65103);let g=(e,{trans:t},l)=>{let{isStudioApiDocumentationEnabled:a,isFraudsterVerificationRequired:r,isModel:n,isSandbox:s,isReferralProgramAvailable:c,isStudio:d,profileUrl:m,shouldUseModelOrStudioWizard:u,isCurrentUserStudioAdmin:p,hasNotInterestedModels:h,newsEnabled:v}=e;return[{label:t("userMenu.broadcastCenter"),route:"/start-broadcasting",isEnabled:n},{label:t("userMenu.myProfile"),route:m,isEnabled:!0},{label:t("userMenu.myFeed"),route:"/model/timeline",isEnabled:n},{label:t("userMenu.myFanClub"),route:"/model/fan-club",isEnabled:n},{label:t("userMenu.myFriends"),route:"/friends",isEnabled:!0},{label:t("userMenu.myKnights"),route:"/model/knights",isEnabled:n},{label:t("userMenu.myNotifications"),route:"/notifications",isEnabled:!n&&!d},{label:t("userMenu.settingsAndPrivacy"),route:"/settings",isEnabled:!0},{label:t("userMenu.mySubscriptions"),route:"/subscriptions",isEnabled:!n&&!d},{label:t("userMenu.notInterested"),route:"/not-interested",isEnabled:!n&&!d&&h},{label:t("userMenu.documentVerification"),route:"/verification",isEnabled:r&&!s},{label:t("userMenu.referralProgram"),route:"/user-referral",isEnabled:n&&c&&!s},{label:t("userMenu.documents"),route:"/model/documents",isEnabled:n&&!s},{label:t("userMenu.documents"),route:"/studio/documents",isEnabled:d&&!s&&u},{label:t("userMenu.bannedUsers"),route:"/model/bans",isEnabled:n},{label:t("userMenu.studioAdmin"),route:"/studio-admin",isEnabled:p},{label:t("userMenu.news"),route:"/news",isEnabled:v,onClick:()=>{l((0,i.d2)(o.FO.GO_TO_NEWS_BUTTONS,{source:"profile"}))}},{label:t("userMenu.studioApi"),route:"/studio/api",isEnabled:d&&a}].filter(e=>e.isEnabled)},b=(0,s.$j)(e=>{let{auth:{currentUser:t,isLoggedIn:l,isLoggingOut:a}}=e;if(!l||a||!t)return{isLoggedIn:l&&!a};let{isModel:r,isStudio:n,username:s}=t;return{isStudioApiDocumentationEnabled:(0,p.ajW)(e),isFraudsterVerificationRequired:(0,E.qx)(e),isModel:r,isSandbox:(0,m.Us)(e),isReferralProgramAvailable:(0,h.XV)(e),isStudio:n,isLoggedIn:!0,profileUrl:(0,u.Lw)(e,s),shouldUseModelOrStudioWizard:(0,h.Sr)(e),isCurrentUserStudioAdmin:(0,h.cu)(e),hasNotInterestedModels:(0,v.JY)(e),newsEnabled:!r&&!n}})(e=>{let{isLoggedIn:t}=e,l=(0,c.QT)(),r=(0,d.T)();return t?a.createElement(n.Z,{items:g(e,l,r),hasSearch:!0,hasCategories:!0}):null});var f=l(80176),C=l(95654);let y=()=>{switch((0,C.C)(f.P4)){case o.C2.PROFILE:return a.createElement(b,null);case o.C2.BEST_MODEL:return a.createElement(r.G,null);case o.C2.SIDEBAR:return a.createElement(n.Z,{hasVrReturn:!0,hasSearch:!0,hasCategories:!0,withSidebar:!0});case o.C2.DEFAULT:return a.createElement(n.Z,{hasSearch:!0,hasCategories:!0});case o.C2.NONE:default:return null}}},65101:(e,t,l)=>{l.d(t,{Z:()=>j});var a,r=l(27378),n=l(18775),s=l(48204),i=l(53522),o=l(50001),c=l(39906),d=l(43967),m=l(77382),u=l(83550),p=l(11850),h=l(80936),v=l(29413),E=l(91090),g=l(99973),b=l(84423),f=l(99748),C=l(97606),y=l(10315),N=l(53678),_=l(69247),k=l(54753),A=l(46024),S=l(94159),T=l(71227),w=l(80176),P=l(95083),M=l(62182),I=l(77602);let R={routerReplace:w.sb,routerGo:w.L7},Z=(0,s.$j)(e=>({historyStack:e.ui.historyStack,indexLink:(0,I.Tq)(e),reversedWords:(0,P.Ji)(e),isDSAReportModelContentMessageAvailable:(0,T.PO)(e)}),R)(e=>r.createElement("button",{className:(0,f.AK)("btn nav-right-close-btn",{"nav-right-close-btn--box-shadow":!e.isDSAReportModelContentMessageAvailable}),type:"button",onClick:()=>{let t=(0,M.mh)(e.historyStack,e.reversedWords);t<0&&Math.abs(t){e.preventDefault(),e.stopPropagation(),this.props.emitButtonEvent(g.FO.VIEWCAM_CATEGORIES),b.P4.show(A.Q,{amplitudeNavElement:E.a.SUBHEADER_CATEGORIES,shouldHideOnLinkClick:!0})}),(0,n._)(this,"dropDownMenuClickHandler",e=>{e.stopPropagation()})}}(0,n._)(D,"defaultProps",{hasCategories:!1,hasNextModel:!1,hasSearch:!0});let B=(0,C.GV)(D),F=(0,p.xl)((0,h.H)("isLayoutUpToL")((0,s.$j)(function(e,t){let{modelSearch:{searchString:l,isSearchFormExpanded:a}}=e;return{isCategoriesHidden:(0,i.vb)(e),isSearchFormExpanded:a,searchString:l,amplitudePageSectionForSubheaderCategoriesOpen:(0,N.MC)(e),isStickyHeaderActive:(0,_.qy)(e,t),isDSAReportModelContentMessageAvailable:(0,T.PO)(e)}},L)(B)));var O=l(78246),x=l(89061),U=l(4289),H=l(1948),K=l(23865);class V extends r.Component{render(){let{items:e}=this.props;if(!(null==e?void 0:e.length))return r.createElement("div",{className:"nav-left"});let t=e.findIndex(e=>e.isActive);return r.createElement(K.Z,{className:"nav-left",activeIndex:t},e.map(this.renderItem))}constructor(...e){super(...e),(0,n._)(this,"renderItem",e=>{let{badge:t=null,badgeRight:l=null,className:a,href:n,customItem:s,isActive:i,label:o,route:c,count:d,onClick:m}=e,u=d?r.createElement("span",{className:"header-sub-item-count"},d):null,p=null;n?p=r.createElement(H.Z,{rel:e.rel,className:"link",href:n,onClick:m,...(0,O.Z)(i)?{isActive:i}:{}},t,(0,x.Z)(o),u,l):s?p=s:c&&(p=r.createElement(U.OL,{className:"link",to:c,onClick:m,...(0,O.Z)(i)?{isActive:i}:{}},t,(0,x.Z)(o),u,l));let h=[n,c,o,m?m.toString():""].join(":");return r.createElement("div",{className:(0,f.AK)("header-sub-item-wrapper",a),key:h},p)})}}var $=l(95654),W=l(62203),z=l(46619),q=l(57778),Q=l(61435);let j=(0,r.memo)(({hasCategories:e=!1,hasNextModel:t=!1,hasSearch:l=!1,isWidescreen:a=!1,withSidebar:n,items:s,className:i="",preferredOrder:o,children:c,hasVrReturn:d})=>{let m=(0,$.C)(W.Km),u=(0,$.C)(q.bb);return r.createElement("div",{className:(0,f.AK)("header-sub",i,{"header-sub-with-sidebar":n})},r.createElement(Q.y,{id:Q.y.IDS.HEADER_SUB_PORTAL_CONTAINER}),r.createElement("div",{className:(0,f.AK)("container",{"search-expanded":u,"widescreen-container":a})},s?r.createElement(V,{items:s}):r.createElement(r.Fragment,null,!!c&&c,!c&&r.createElement(z.Z,{preferredOrder:o})),r.createElement(F,{hasSearch:l&&!m,hasCategories:e&&!m,hasNextModel:t,hasVrReturn:d})))})},13418:(e,t,l)=>{l.d(t,{Z:()=>x});var a=l(27378),r=l(48204),n=l(4289),s=l(92562),i=l(62668),o=l(83550),c=l(80936),d=l(96322),m=l(29413),u=l(29746),p=l(3034),h=l(91090),v=l(7478),E=l(99748),g=l(97606),b=l(12710),f=l(82168),C=l(94380),y=l(243),N=l(988),_=l(62182),k=l(27251),A=l(62203),S=l(50399),T=l(81027),w=l(94159),P=l(77602),M=l(12278),I=l(72567),R=l(65103),Z=l(25720),L=l(42024),D=l(47722);let B=({onClick:e})=>{let{trans:t}=(0,g.QT)(),l=(0,Z.rA)(),r=(0,L.s)();return a.createElement(D.mI,{className:"sidebar-trigger",onClick:t=>{t.stopPropagation(),e(l,r)},"aria-label":t("aria.controls.toggleMenu")},a.createElement(m.Z,{img:"menu",className:"sidebar-trigger-icon"}))},F=a.memo(({onHideGuestsTooltip:e,landingAction:t,isModel:l,isSandbox:r,isStudio:i,favoritedCount:c,isGuestFavoritesTooltipHidden:y,isLoggedIn:N,isNonNudeWL:_,isLayoutUpToM:k,isAboutPage:A,isHeaderTopVisible:S,isModelAboutPage:P,topModelsLink:M})=>{let{trans:R}=(0,g.QT)(),D=(0,C.T)(),F=(0,a.useRef)(null),O=(0,Z.rA)(),x=(0,L.s)(),U=(0,a.useCallback)(()=>{e()},[e]),H=(0,a.useCallback)(()=>t===I.Su.PERSONAL_NOTIFICATIONS,[t]),K=(0,a.useCallback)(()=>{var e,t;let l=null===(e=F.current)||void 0===e?void 0:e.getBoundingClientRect();x.toggleSidebar(null!==(t=null==l?void 0:l.bottom)&&void 0!==t?t:0,O)},[x,O]),V=()=>{x.handleHideSidebar()},$=(0,a.useMemo)(()=>!_&&!r,[_,r]);return a.createElement("header",{className:(0,E.AK)("header-top-wrapper",{hidden:!S}),ref:F},a.createElement("div",{className:(0,E.AK)("header-top",{guest:!N,"header-top--without-shadow":A||P,"is-model-user":l,"is-studio-user":i,"is-guest-user":!N})},a.createElement("div",{className:(0,E.AK)("header-top-container")},a.createElement("nav",{className:"nav-left"},a.createElement(B,{onClick:K}),a.createElement(u.Z,{onClick:f.Z.reset}),a.createElement(T.Z,{className:"header-top__live-counter"}),$&&a.createElement("div",{className:"nav-link media-up-to-s-hidden"},a.createElement(n.OL,{to:M,onClick:()=>D((0,o.d2)(h.a.TOP_MODELS_LINK))},a.createElement(m.Z,{img:"best-models"}),a.createElement("span",{className:"media-up-to-m-hidden"},R("header.bestModels"))))),a.createElement("div",{className:"header-top-search-wrapper"},a.createElement(w.Z,{forceExpanded:!0})),a.createElement("nav",{className:"nav-right"},N&&a.createElement(d.Z,{type:"personalNotifications",onClick:V,isDropdownOpen:H()}),N&&i&&a.createElement("div",{className:"nav-button"},a.createElement(n.OL,{activeClassName:"disabled",className:"btn btn-apply",to:"/studio",exact:!0},R("header.studioModels"))),l&&a.createElement("div",{className:(0,E.AK)("header-top-favorites","nav-link",{active:!y}),id:"header_favorites_button"},l&&N?a.createElement(a.Fragment,null,a.createElement(m.Z,{img:"favorited"}),a.createElement("span",{className:"favorites-count"},(0,b.ER)(c)),a.createElement(p.Z,{isMobileRelative:!1,placement:"top",shouldPreventDefault:!0,targetId:"header_favorites_button"},R("header.favorites_model_tooltip"))):a.createElement(n.OL,{"aria-label":R("header.myFavorites"),to:"/favorites"},a.createElement(m.Z,{img:"favorited"}))),l&&!y&&a.createElement(p.Z,{className:"header-top-favorites-tooltip",indentation:8,isForceVisible:!0,isMobileRelative:!1,maxWidth:k?220:320,placement:"bottom",targetId:"header_favorites_button"},a.createElement("div",{className:"header-top-favorites-tooltip-close-button",onClick:U},a.createElement(m.Z,{img:"close-3",className:"header-top-favorites-tooltip-close-icon"})),R("header.myFavoritesTooltip")),a.createElement("div",{className:"nav-button media-up-to-m-hidden"},a.createElement(s.Z,null)),N&&a.createElement(d.Z,{type:"tokensMenu",onClick:V}),a.createElement(d.Z,{type:"userMenu",onClick:V}))),a.createElement(v.n,null)))});F.displayName="HeaderTop";let O={onHideGuestsTooltip:i.Hw},x=(0,c.H)("isLayoutUpToM")((0,r.$j)(e=>{var t;let{auth:{isLoggingOut:l}}=e,a=(0,R.xV)(e),r=(0,S.TK)(e);return{isModel:(0,R.GS)(e),isStudio:(0,R.j9)(e),favoritedCount:a?a.favoritedCount:0,isGuestFavoritesTooltipHidden:(0,k.oW)(e),isNonNudeWL:(0,A.Km)(e),isLoggedIn:!l&&(0,M.M7)(e),isSandbox:(0,N.Us)(e),topModelsLink:(0,P.hm)(e),landingAction:null!==(t=null==r?void 0:r.action)&&void 0!==t?t:"",isAboutPage:(0,y.jt)(e),isHeaderTopVisible:(0,_.LB)(e),isModelAboutPage:(0,y.dm)(e)}},O)(F))},15921:(e,t,l)=>{l.d(t,{Z:()=>i});var a=l(96415),r=l(27378),n=l(99748);let s={icon:"IconV2__icon#YR"},i=e=>{let{className:t,...l}=e;return r.createElement(a.l,{...l,className:(0,n.AK)(s.icon,t)})}},29413:(e,t,l)=>{l.d(t,{Z:()=>s});var a=l(96415),r=l(27378),n=l(99748);let s=e=>{let{className:t,img:l,...s}=e;return r.createElement(a.l,{...s,img:l,className:(0,n.AK)("icon",`icon-${l}`,t)})}},71436:(e,t,l)=>{l.d(t,{t:()=>o});var a=l(27378),r=l(99748),n=l(20717),s=l(95654),i=l(62203);let o=({className:e,img:t,extension:l="png",shouldUseTheme:o,fetchPriority:c})=>{let d=(0,s.C)(i.LK),m=`${t}${o&&d?"-light":""}`;return a.createElement("img",{alt:m,className:(0,r.AK)("icon icon-static",`icon-${t}`,e),src:(0,n.jz)(`common/images/static-icons/${m}.${l}`),fetchpriority:c})}},74753:(e,t,l)=>{l.d(t,{Z:()=>i});var a=l(27378),r=l(29413),n=l(99748);let s=new Set(["text","number","email","password","tel","date"]),i=(0,a.forwardRef)(({display:e="inline-block",size:t="default",theme:l="default",type:i="text",isError:o,className:c,...d},m)=>{var u;let p=(0,a.useRef)(null),h=m||p,v="date"===i,E=s.has(i),g=(0,n.AK)(c,e,`${i}-${t} theme-${l}`,{"has-value":!!(null===(u=h.current)||void 0===u?void 0:u.value),[i]:!E,input:E,error:o}),b=a.createElement("input",{className:g,type:i,ref:h,...d,...v?{placeholder:"YYYY-MM-DD"}:{}});return v?a.createElement("div",{className:"input-date-wrapper"},b,a.createElement(r.Z,{img:"calendar",className:"input-date-wrapper__calendar-icon"})):b})},69393:(e,t,l)=>{l.d(t,{Z:()=>d});var a=l(27378),r=l(68910),n=l(95654),s=l(243),i=l(12278),o=l(45216),c=l(23766);let d=({isMobile:e})=>{let t=(0,n.C)(o.lG),l=(0,n.C)(s.Ol),d=(0,n.C)(i.ts),m=(0,n.C)(i.M7),u=(0,n.C)(c.BN),p=(0,n.C)(c.aT),h=(0,n.C)(c.KK);return a.createElement(r.f,{isVisible:t,location:l,currentUser:d,isLoggedIn:m,purchaseSucceededToken:u,isPurchaseCompleted:p,hasPurchaseFailed:h,isMobile:e})}},90717:(e,t,l)=>{l.d(t,{Z:()=>E});var a=l(18775),r=l(27378),n=l(11850),s=l(29413),i=l(99748);let o={root:"LanguageMenuDropdownDesktopItem#o3",root__selected:"LanguageMenuDropdownDesktopItem__selected#AL",inner:"LanguageMenuDropdownDesktopItem__inner#Mt",inner__selected:"LanguageMenuDropdownDesktopItem__inner__selected#z_",icon:"LanguageMenuDropdownDesktopItem__icon#NS"},c={root:"LanguageMenuDropdownDesktopItemLabel#bD"},d=({children:e})=>r.createElement("span",{className:c.root},e),m=(0,r.memo)(({children:e,className:t,selected:l,href:a,locale:n,onClick:c})=>{let m=e=>{e.preventDefault(),e.stopPropagation(),c(n)};return r.createElement("div",{className:(0,i.AK)(o.root,{[o.root__selected]:l},t)},void 0===a&&r.createElement("span",{onClick:m,className:(0,i.AK)(o.inner,{[o.inner__selected]:l})},r.createElement(d,null,e),l&&r.createElement(s.Z,{className:o.icon,img:"check-1",size:13})),void 0!==a&&r.createElement("a",{className:(0,i.AK)(o.inner,{[o.inner__selected]:l}),href:a,rel:"nofollow",onClick:m},r.createElement(d,null,e),l&&r.createElement(s.Z,{className:o.icon,img:"check-1",size:13})))});var u=l(99973),p=l(83705);let h={trigger:"LanguageMenuDropdown__trigger#B1",icon:"LanguageMenuDropdown__icon#H9"};class v extends r.Component{componentDidMount(){this.props.isOpen&&this.props.uiBlocking.lockUI()}renderMobileDropDown(){let{languages:e,currentLocale:t}=this.props;return e[t]?r.createElement("select",{id:"language_dropdown",className:"language-mobile-list",onChange:this.onSelectLanguageEventHandler,value:t},(0,p.U)(e,(e,t)=>r.createElement("option",{key:t,value:t},e.title))):null}render(){var e;let{languages:t,currentLocale:l,className:a,uiBlocking:{isVisible:n}}=this.props;return r.createElement("div",{className:(0,i.AK)(a,"language-dropdown")},r.createElement("label",{htmlFor:"language_dropdown",onClick:u.BROWSER_CAPABILITIES.showNativeSelect?void 0:this.openDropdownHandler,className:(0,i.AK)("trigger",h.trigger,{active:n})},r.createElement(s.Z,{className:h.icon,img:"i18n",size:14}),null===(e=t[l])||void 0===e?void 0:e.title,r.createElement("span",{className:"selectbox-arrow"},r.createElement(s.Z,{className:h.icon,img:"sort",size:10})),this.renderMobileDropDown()),this.renderDesktopDropdown())}constructor(...e){super(...e),(0,a._)(this,"openDropdownHandler",e=>{e.preventDefault(),e.stopPropagation(),this.props.uiBlocking.lockUI(e)}),(0,a._)(this,"onSelectLanguageEventHandler",e=>{e.preventDefault(),e.stopPropagation(),this.props.onChangeLocale(e.target.value)}),(0,a._)(this,"renderDesktopDropdown",()=>{let{languages:e,currentLocale:t,uiBlocking:{isVisible:l},getItemHref:a}=this.props;return!l||u.BROWSER_CAPABILITIES.showNativeSelect?null:r.createElement("div",{className:"language-list"},(0,p.U)(e,(e,l)=>r.createElement(m,{key:l,className:"language-item",locale:l,selected:l===t,href:null==a?void 0:a(l),onClick:this.props.onChangeLocale},e.title)))})}}let E=(0,n.xl)(v)},92644:(e,t,l)=>{l.d(t,{l:()=>h,Z:()=>v});var a=l(27378),r=l(99748);let n={grey:["#C2C2C2","#333333"],bronze:["#FFA666","#6B2D00"],silver:["#CAD5E2","#2E4156"],gold:["#FFC80F","#7E3A01"],diamond:["#EF33FF","#560198"],royal:["#FE3939","#850000"],legend:["#FE3939","#850000"],blue:["#8EBDE7","#194B76"]},s=e=>a.createElement("text",{textAnchor:"middle",fontSize:"51",x:"50%",y:"50%",dy:20},e),i=()=>a.createElement("path",{d:"M50 20.387l8.703 17.634 19.461 2.828-14.082 13.727 3.324 19.382L50 64.807l-17.406 9.151 3.324-19.382-14.082-13.727 19.461-2.828L50 20.387z"}),o=()=>a.createElement("path",{d:"M 78.145 34.29 C 76.714 33.701 75.078 34.027 73.991 35.108 C 72.79 36.297 71.295 37.776 65.249 37.776 C 59.804 37.776 55.698 40.982 52.699 43.322 C 51.854 43.981 50.626 44.939 50.147 45.24 C 49.669 44.903 48.877 44.132 48.323 43.593 C 45.94 41.277 42.34 37.776 36.657 37.776 C 30.38 37.776 27.011 36.1 26.009 35.108 C 24.915 34.027 23.277 33.701 21.855 34.29 C 20.431 34.874 19.502 36.251 19.502 37.776 C 19.502 48.346 21.194 62.768 35.827 65.989 C 41.793 67.3 43.956 68.868 45.385 69.907 C 46.508 70.722 47.906 71.735 50 71.735 C 52.094 71.735 53.492 70.72 54.615 69.906 C 56.044 68.868 58.207 67.299 64.171 65.987 C 78.806 62.77 80.498 48.346 80.498 37.776 C 80.498 36.251 79.569 34.874 78.145 34.29 L 78.145 34.29 Z M 30.939 49.333 C 30.939 49.333 39.628 47.998 43.646 51.632 C 46.188 53.93 46.188 56.229 46.188 58.527 C 30.939 58.527 30.939 49.333 30.939 49.333 L 30.939 49.333 Z M 53.812 58.527 C 53.812 56.229 53.812 53.93 56.354 51.632 C 60.372 47.998 69.061 49.333 69.061 49.333 C 69.061 49.333 69.061 58.527 53.812 58.527 L 53.812 58.527 Z"}),c="badge-level-filter-top-icon",d=()=>a.createElement("g",{filter:`url(#${c})`,transform:"matrix(2 0 0 2 18 18)"},a.createElement("path",{d:"M7 11.4c.3-.6.5-1 .7-1 .3 0 .4.4.8 1l.5 1.2.2.3.4.1 1.3.2c.7.1 1 .2 1.1.4.1.2-.2.5-.7 1l-.9.9-.2.3v.4l.2 1.2c.1.7.2 1 0 1.2-.2.2-.5 0-1.2-.3l-1-.6-.5-.2-.3.2-1.2.6c-.6.3-.9.5-1.1.3-.2-.1-.1-.5 0-1.2l.2-1.2v-.4c0-.1 0-.2-.2-.3l-1-1c-.5-.4-.7-.7-.6-.9 0-.2.4-.3 1-.4L6 13h.3l.3-.4.5-1.2ZM15.8 2.7c.3-.6.4-1 .7-1 .2 0 .4.4.7 1l1 1.9c0 .2 0 .3.2.3l.3.1 2.1.3c.7.1 1 .2 1.2.4 0 .2-.2.5-.7 1l-1.5 1.5-.3.3v.4l.4 2c.1.7.2 1 0 1.2-.2.2-.5 0-1.2-.3l-1.8-1-.4-.1-.4.1-1.8 1c-.7.3-1 .5-1.2.3-.2-.1-.1-.5 0-1.2l.4-2v-.4l-.3-.3-1.5-1.5c-.5-.5-.7-.8-.7-1 .1-.2.5-.3 1.2-.4l2-.3h.4l.2-.4 1-2ZM24.5 11.4c.3-.6.5-1 .7-1 .3 0 .4.4.8 1l.5 1.2.2.3.4.1 1.3.2c.7.1 1 .2 1.1.4.1.2-.2.5-.7 1l-.9.9-.2.3v.4l.2 1.2c.1.7.2 1 0 1.2-.2.2-.5 0-1.2-.3l-1-.6-.5-.2-.3.2-1.2.6c-.6.3-.9.5-1.1.3-.2-.1-.1-.5 0-1.2l.2-1.2v-.4c0-.1 0-.2-.2-.3l-1-1c-.5-.4-.7-.7-.6-.9 0-.2.4-.3 1-.4l1.4-.2h.3l.3-.4.5-1.2ZM18.5 26.2h-4c-.3 0-.5-.4-.5-1V14.8c0-.5.2-1 .5-1h4c.3 0 .5.5.5 1v10.6c0 .5-.2 1-.5 1ZM9.7 26.2h-4c-.2 0-.5-.2-.5-.4v-5.3c0-.3.3-.5.6-.5h4c.2 0 .4.2.4.5v5.3c0 .2-.2.4-.5.4ZM27.2 26.2h-4c-.2 0-.5-.2-.5-.4v-5.3c0-.3.3-.5.6-.5h4c.2 0 .4.2.4.5v5.3c0 .2-.2.4-.5.4Z"})),m=()=>a.createElement("path",{d:"M 32.317 67 C 29.873 67 27.697 66.583 25.789 65.748 C 23.881 64.854 22.241 63.691 20.87 62.26 C 19.499 60.77 18.455 59.011 17.74 56.984 C 17.025 54.957 16.667 52.781 16.667 50.455 C 16.667 48.13 16.995 45.984 17.651 44.016 C 18.366 41.989 19.38 40.26 20.691 38.829 C 22.003 37.339 23.613 36.176 25.52 35.342 C 27.428 34.447 29.575 34 31.959 34 C 33.927 34 35.716 34.298 37.325 34.894 C 38.995 35.491 40.515 36.295 41.886 37.309 C 43.317 38.263 44.629 39.396 45.821 40.707 C 47.073 41.959 48.295 43.301 49.488 44.732 C 50.621 43.36 51.783 42.019 52.976 40.707 C 54.228 39.396 55.539 38.263 56.911 37.309 C 58.342 36.295 59.862 35.491 61.472 34.894 C 63.141 34.298 64.93 34 66.837 34 C 69.222 34 71.369 34.417 73.277 35.252 C 75.184 36.087 76.794 37.249 78.106 38.74 C 79.418 40.171 80.431 41.87 81.146 43.837 C 81.862 45.805 82.22 47.951 82.22 50.276 C 82.22 52.602 81.862 54.778 81.146 56.805 C 80.431 58.832 79.418 60.621 78.106 62.171 C 76.794 63.661 75.155 64.854 73.187 65.748 C 71.279 66.583 69.133 67 66.748 67 C 64.9 67 63.171 66.732 61.561 66.195 C 59.951 65.599 58.431 64.854 57 63.959 C 55.629 63.006 54.317 61.932 53.065 60.74 C 51.813 59.488 50.621 58.206 49.488 56.894 C 48.236 58.206 47.013 59.488 45.821 60.74 C 44.629 61.932 43.347 63.006 41.976 63.959 C 40.664 64.854 39.203 65.599 37.593 66.195 C 36.043 66.732 34.285 67 32.317 67 Z M 32.228 57.968 C 33.361 57.968 34.493 57.759 35.626 57.341 C 36.759 56.865 37.832 56.298 38.846 55.642 C 39.859 54.927 40.813 54.152 41.707 53.317 C 42.602 52.423 43.407 51.558 44.122 50.724 C 43.407 49.949 42.572 49.114 41.618 48.22 C 40.664 47.266 39.65 46.401 38.577 45.626 C 37.564 44.851 36.491 44.225 35.358 43.748 C 34.225 43.211 33.092 42.943 31.959 42.943 C 29.873 42.943 28.203 43.748 26.951 45.358 C 25.759 46.908 25.163 48.667 25.163 50.634 C 25.163 52.781 25.789 54.539 27.041 55.911 C 28.293 57.282 30.022 57.968 32.228 57.968 Z M 66.927 57.968 C 69.133 57.968 70.832 57.252 72.025 55.821 C 73.217 54.39 73.813 52.631 73.813 50.545 C 73.813 48.458 73.157 46.669 71.846 45.179 C 70.594 43.688 68.864 42.943 66.659 42.943 C 65.466 42.943 64.303 43.211 63.171 43.748 C 62.098 44.225 61.054 44.851 60.041 45.626 C 59.087 46.401 58.163 47.266 57.269 48.22 C 56.374 49.114 55.569 49.949 54.854 50.724 C 55.629 51.618 56.463 52.512 57.358 53.407 C 58.252 54.241 59.206 55.016 60.219 55.732 C 61.233 56.388 62.276 56.924 63.35 57.341 C 64.482 57.759 65.675 57.968 66.927 57.968 Z"}),u=()=>a.createElement("path",{d:"M35 27.5H65C66.9891 27.5 68.8968 28.2902 70.3033 29.6967C71.7098 31.1032 72.5 33.0109 72.5 35V65C72.5 66.9891 71.7098 68.8968 70.3033 70.3033C68.8968 71.7098 66.9891 72.5 65 72.5H35C33.0109 72.5 31.1032 71.7098 29.6967 70.3033C28.2902 68.8968 27.5 66.9891 27.5 65V35C27.5 33.0109 28.2902 31.1032 29.6967 29.6967C31.1032 28.2902 33.0109 27.5 35 27.5ZM66.8545 66.5541C67.3231 66.0059 67.5552 65.2941 67.5 64.575V61.65L56.25 50.45C55.9322 50.1601 55.5176 49.9994 55.0875 49.9994C54.6574 49.9994 54.2428 50.1601 53.925 50.45L35 67.5H65C65.719 67.4426 66.3859 67.1024 66.8545 66.5541ZM40.625 35C37.5184 35 35 37.5184 35 40.625C35 43.7316 37.5184 46.25 40.625 46.25C43.7316 46.25 46.25 43.7316 46.25 40.625C46.25 37.5184 43.7316 35 40.625 35Z"}),p="badge-level-filter-glow",h=a.memo(()=>a.createElement("div",{className:"level-badge-filters"},a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg"},a.createElement("defs",null,Object.entries(n).map(([e,t])=>{let l=`badge-level-filter-${e}`;return a.createElement("linearGradient",{key:e,id:l,x1:".5",y1:"0",x2:".5",y2:"1",gradientTransform:"matrix(88.809 0 0 97.645 5.595 1.178)",gradientUnits:"userSpaceOnUse"},a.createElement("stop",{offset:"0%",stopColor:t[0]}),a.createElement("stop",{offset:"100%",stopColor:t[1]}))}),a.createElement("filter",{id:p,x:"0",y:"0",width:"100",height:"100",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},a.createElement("feOffset",{dy:"5"}),a.createElement("feGaussianBlur",{stdDeviation:"10",result:"offset-blur"}),a.createElement("feComposite",{operator:"out",in:"SourceGraphic",in2:"offset-blur",result:"inverse"}),a.createElement("feFlood",{floodColor:"white",floodOpacity:"0.3",result:"color"}),a.createElement("feComposite",{operator:"in",in:"color",in2:"inverse",result:"shadow"}),a.createElement("feComposite",{operator:"over",in:"shadow",in2:"SourceGraphic"})),a.createElement("filter",{id:c,x:".8",y:".4",width:"31.4",height:"29.8",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},a.createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),a.createElement("feColorMatrix",{in:"SourceAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),a.createElement("feOffset",{dy:"1.3"}),a.createElement("feGaussianBlur",{stdDeviation:"1.3"}),a.createElement("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.3 0"}),a.createElement("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow_286_9949"}),a.createElement("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow_286_9949",result:"shape"}))))),()=>!0),v=e=>{let t;let l=e.letter?"badge-level-filter-blue":`badge-level-filter-${e.league}`;return t="mask"===e.icon?o():"infinity"===e.icon?m():"top"===e.icon?d():"album"===e.icon?u():"legend"===e.league?i():s(e.letter||e.level),a.createElement("span",{className:(0,r.AK)("level-badge",`level-badge-size-${e.size||"regular"}`,{[`level-badge-league-${e.league}`]:e.isShadow,"level-badge-shadow":e.isShadow})},a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100"},a.createElement("path",{filter:`url(#${p})`,fill:`url(#${l})`,d:"M43.681 2.863a12.69 12.69 0 0112.638 0l15.865 9.108 15.803 8.988a12.693 12.693 0 016.418 11.058L94.367 50l.038 17.983a12.692 12.692 0 01-6.418 11.058l-15.803 8.988-15.865 9.108a12.69 12.69 0 01-12.638 0l-15.865-9.108-15.803-8.988a12.69 12.69 0 01-6.418-11.058L5.633 50l-.038-17.983a12.691 12.691 0 016.418-11.058l15.803-8.988 15.865-9.108z"}),a.createElement("path",{d:"M43.9419 4.777a12.1761 12.1761 90 0112.1262 0l15.2225 8.7391l15.163 8.624a12.1789 12.1789 90 016.1581 10.6102L92.5751 50.005l0.0365 17.2547a12.178 12.178 90 01-6.1581 10.6102l-15.163 8.624l-15.2225 8.7391a12.1761 12.1761 90 01-12.1262 0l-15.2225-8.7391l-15.163-8.624a12.1761 12.1761 90 01-6.1581-10.6102L7.4349 50.005l-0.0365-17.2547a12.177 12.177 90 016.1581-10.6102l15.163-8.624l15.2225-8.7391z",className:"level-badge-stroke"}),t))}},3478:(e,t,l)=>{l.d(t,{Z:()=>n});var a=l(27378),r=l(99748);let n=({children:e,className:t})=>a.createElement("span",{className:(0,r.AK)("line-through-text",t)},e)},85353:(e,t,l)=>{l.d(t,{Z:()=>s});var a=l(27378),r=l(99748);let n={"horizontal-dots":({size:e,className:t})=>a.createElement("div",{className:t,style:{width:`${e}px`}},a.createElement("div",{className:"horizontal-dots"},[,,,,].fill(null).map((e,t)=>a.createElement("div",{className:"loader-circle",key:t})))),"sector-circle":({size:e,className:t})=>a.createElement("div",{className:t,style:{height:`${e}px`,width:`${e}px`}},a.createElement("div",{className:"sector-circle"})),"fading-circles":({size:e,className:t,...l})=>a.createElement("div",{...l,className:t,style:{height:`${e}px`,width:`${e}px`}},a.createElement("div",{className:"fading-circle",style:{height:`${e}px`,width:`${e}px`}},Array(12).fill(null).map((e,t)=>a.createElement("div",{className:`loader-circle${t+1} loader-circle`,key:t}))))},s=({size:e=64,loaderType:t="fading-circles",className:l,isCentered:s,isInline:i,"aria-label":o})=>{let c=(0,r.AK)("loader",l,{centered:s,inline:i}),d=n[t];return a.createElement(d,{role:o?"status":void 0,"aria-busy":!!o||void 0,"aria-label":o,size:e,className:c})}},41452:(e,t,l)=>{let a;l.d(t,{Z:()=>v});var r=l(18775),n=l(27378),s=l(76743),i=l(99973),o=l(84423),c=l(99748),d=l(62512),m=l(82168);let u=0,p=()=>((0,o.GT)(),null);class h extends n.Component{componentDidMount(){this.addBodyStyle(),(0,d.H0)(this,document,"keydown",this.keyDownHandler),this.modalWrapperRef&&(0,d.H0)(this,this.modalWrapperRef,"scroll",this.changeScrollHandler),(0,d.H0)(this,window,"orientationchange",this.orientationEventHandler),i.BROWSER_CAPABILITIES.iOS&&this.modalContentRef&&((0,d.H0)(this,this.modalContentRef,"blur",this.blurEventHandler,!0),(0,d.H0)(this,this.modalContentRef,"focus",this.focusEventHandler,!0))}componentWillUnmount(){this.addStylesAnimationFrame&&window.cancelAnimationFrame(this.addStylesAnimationFrame),(0,d.OM)(this),this.removeBodyStyle(),clearTimeout(a)}addBodyStyle(){if(this.props.isInBackground)return;let{body:e}=document,t=window.innerWidth-e.scrollWidth,l=document.querySelector("html");this.modalWrapperRef&&(this.modalWrapperRef.style.top="1px"),this.addStylesAnimationFrame=window.requestAnimationFrame(()=>{u=m.Z.get(),e.scrollTop=0,e.style.paddingRight=`${t}px`,e.style.marginTop=`-${u}px`,null==l||l.classList.add("disable-scroll"),this.modalWrapperRef&&(this.modalWrapperRef.style.top="0"),this.addStylesAnimationFrame=null})}removeBodyStyle(){let{isInBackground:e}=this.props;if(e)return;let{body:t}=document,l=document.querySelector("html");t.style.scrollBehavior="auto",t.style.paddingRight="0",t.style.marginTop="",null==l||l.classList.remove("disable-scroll"),m.Z.set(u),window.requestAnimationFrame(()=>{t.style.scrollBehavior=""})}render(){let{children:e,footer:t,header:l,modalInnerClassName:a}=this.props,r=n.createElement("div",{ref:e=>{this.modalWrapperRef=e},className:(0,c.AK)("base-modal-wrapper",this.props.className),onClick:this.wrapperClickHandler},n.createElement("div",{className:(0,c.AK)("base-modal",a),onClick:this.bodyClickHandler},l&&n.createElement("div",{className:"modal-header"},l),e&&n.createElement("div",{className:"modal-content",ref:e=>{this.modalContentRef=e}},e),t&&n.createElement("div",{className:"modal-footer",ref:e=>{this.modalFooterRef=e}},t)),n.createElement(p,null));return n.createElement(s.x,{isInPortal:this.props.isInPortal},r)}constructor(...e){super(...e),(0,r._)(this,"modalFooterRef",null),(0,r._)(this,"contentRef",null),(0,r._)(this,"modalContentRef",null),(0,r._)(this,"modalWrapperRef",null),(0,r._)(this,"addStylesAnimationFrame",null),(0,r._)(this,"onChangeFocus",e=>{i.BROWSER_CAPABILITIES.iOS&&this.state.hasChildFocused!==e&&(this.setState({hasChildFocused:e}),this.updatePosition())}),(0,r._)(this,"focusEventHandler",()=>{clearTimeout(a),this.onChangeFocus(!0)}),(0,r._)(this,"blurEventHandler",()=>{clearTimeout(a),a=setTimeout(()=>{this.onChangeFocus(!1)},300)}),(0,r._)(this,"updatePosition",()=>{if(!this.modalWrapperRef||!this.contentRef)return;let{hasChildFocused:e}=this.state;e?(this.modalWrapperRef.style.alignItems="flex-start",this.contentRef.style.marginTop="10px"):(this.modalWrapperRef.style.alignItems="center",this.contentRef.style.marginTop="")}),(0,r._)(this,"orientationEventHandler",()=>{this.modalWrapperRef&&(setTimeout(()=>{this.onChangeFocus(this.state.hasChildFocused)},10),this.changeScrollHandler())}),(0,r._)(this,"bodyClickHandler",e=>{e.stopPropagation()}),(0,r._)(this,"changeScrollHandler",()=>{if(this.modalWrapperRef){let e=this.modalWrapperRef.scrollTop,t=this.modalWrapperRef.scrollHeight,l=e+this.modalWrapperRef.offsetHeight;if(0===e){this.modalWrapperRef.scrollTop=1;return}l===t&&(this.modalWrapperRef.scrollTop=e-1)}}),(0,r._)(this,"wrapperClickHandler",e=>{var t;let{isWrapperCloseDisabled:l}=this.props;e.preventDefault();let a=null===(t=this.modalFooterRef)||void 0===t?void 0:t.contains(e.currentTarget);l||a||this.closeHandler(e)}),(0,r._)(this,"keyDownHandler",e=>{let{isWrapperCloseDisabled:t,isCloseBtnShown:l}=this.props;!t&&l&&e.keyCode===i.KEY_CODES.escape&&this.closeHandler(e)}),(0,r._)(this,"closeHandler",e=>{this.props.onClose&&this.props.onClose(e)})}}(0,r._)(h,"defaultProps",{isInPortal:!1,isDefaultFullscreen:!1,isWrapperCloseDisabled:!1,isInBackground:!1,onClose:()=>!1});let v=h},13025:(e,t,l)=>{l.d(t,{Z:()=>u});var a=l(27378),r=l(76743),n=l(99973),s=l(84423),i=l(99748),o=l(87937),c=l(24744),d=l(29688),m=l(5223);let u=({open:e,onClose:t,dialogProps:l,overlayProps:u,visible:p,children:h,isCloseOnClickOutside:v=!0,shouldPreventOverlayTouchmove:E,shouldUseOldModalsContext:g=!0})=>{let b=n.BROWSER_CAPABILITIES.isDialogSupported?"dialog":"div",f=null==l?void 0:l.onClick,{modalIndex:C}=(0,s.GT)(!(0,o.sk)()&&e&&p,!g),y=(0,a.useRef)(C);y.current=C;let N=(0,a.useCallback)(e=>{e.nativeEvent.stopImmediatePropagation(),e.stopPropagation()},[]),_=(0,a.useRef)((0,m.n)()),k=(0,a.useRef)(null);(0,a.useEffect)(()=>{let e=k.current;if(!e||!E)return;let t=e=>{e.target===e.currentTarget&&e.preventDefault()};return e.addEventListener("touchmove",t,{passive:!1}),()=>e.removeEventListener("touchmove",t)},[E]),(0,a.useLayoutEffect)(()=>(e&&(void 0===p||p)&&(0,c.Lh)(document.body,_.current,(0,d.B)()),()=>{e&&(void 0===p||p)&&(0===y.current||!g)&&(0,c.aT)(document.body)}),[e,p,g]);let A=(0,a.useCallback)(e=>{null==f||f(e),N(e)},[N,f]);return(0,o.sk)()||!e?null:a.createElement(r.x,{isInPortal:!0},a.createElement("div",{...u,className:(0,i.AK)("modal-base-overlay",null==u?void 0:u.className),onClick:v?t:void 0,ref:k},null==u?void 0:u.children,a.createElement(b,{...l,open:e,className:(0,i.AK)("modal-base-body",null==l?void 0:l.className),onClick:A},h)))}},21313:(e,t,l)=>{l.d(t,{Z:()=>m});var a=l(96415),r=l(47722),n=l(37051),s=l(27378),i=l(99748),o=l(87937),c=l(80167),d=l(13025);let m=({open:e,onClose:t,children:l,header:m,footer:u,closeIconPosition:p,isCloseIconDisabled:h=!1,isCloseOnClickOutside:v=!0,isFullscreen:E=!1,className:g,contentClassName:b,overlayClassName:f,closeIconClassName:C,shouldUseOldModalsContext:y=!0,...N})=>{let[_,k]=(0,s.useState)(!1),A=h?n.Z:null!=t?t:n.Z;(0,c.a)("Escape",e?()=>A():void 0);let S=e=>{e.stopPropagation(),k(!0)},T=e=>{e.stopPropagation(),k(!1)},w=(0,i.AK)("modal-ds-close-icon",C,{"modal-ds-close-icon-disabled":h,"modal-ds-close-icon-remove-hover":_});return(0,o.sk)()?null:s.createElement(d.Z,{open:e,onClose:A,shouldUseOldModalsContext:y,isCloseOnClickOutside:v,overlayProps:{className:(0,i.AK)("modal-ds-overlay",f,{"modal-ds-overlay--fullscreen":E,"modal-ds-overlay__close-outside":v}),children:"topRight"===p&&s.createElement(r.mI,{onClick:A,onMouseOver:T,onMouseLeave:S,className:"modal-ds-close-icon-top-right"},s.createElement(a.l,{className:w,img:"close-3"}))},dialogProps:{...N,className:(0,i.AK)("modal-ds-body",g,{"with-footer":!!u}),onMouseOver:S,onMouseLeave:T}},(m||"rightHeader"===p)&&s.createElement("div",{className:"modal-ds-header"},m,"rightHeader"===p&&s.createElement(r.mI,{onClick:A,onMouseOver:T,onMouseLeave:S,className:"modal-ds-close-icon-in-header"},s.createElement(a.l,{className:w,img:"close-3"}))),s.createElement("div",{className:(0,i.AK)("modal-ds-content",b)},l),u&&s.createElement("div",{className:"modal-ds-footer"},u))}},98655:(e,t,l)=>{l.d(t,{c:()=>d});var a=l(27378),r=l(31542),n=l(85353),s=l(84423),i=l(87937),o=l(80167),c=l(82348);let d=()=>{let{closeLayer:e}=(0,a.useContext)(s.by);return((0,o.a)("Escape",e),(0,i.C5)())?r.createPortal(a.createElement("div",{className:c.Z.overlay,onClick:e},a.createElement(n.Z,{isCentered:!0})),document.body):null}},52719:(e,t,l)=>{l.d(t,{Z:()=>f});var a=l(47722),r=l(37051),n=l(27378),s=l(11850),i=l(29413),o=l(76743),c=l(38487),d=l(99973),m=l(84423),u=l(99748),p=l(87937),h=l(97606),v=l(24744),E=l(80167),g=l(14542),b=l(82348);let f=({shouldPreventCloseByClickOutside:e,shouldHideCloseIcon:t,outsideTopContent:l,contentClassName:f,isCloseDisabled:C,onClose:y=r.Z,isFullscreen:N,className:_,overlayClassName:k,portalRootId:A,contentRef:S,overlayRef:T,isVisibleAfterOpenAnotherModal:w,disableMask:P,isScrollableOverlay:M,shouldResetContentClassName:I,hasUiBlockingElements:R,...Z})=>{let{trans:L}=(0,h.QT)(),[D,B]=(0,n.useState)(!1),F=(0,n.useRef)(null),O=T||F,x=(0,n.useRef)(null),U=S||x,{isTopLayer:H,layerIndex:K}=(0,m.gj)(),V=(0,g.a)(U),$=(0,s.tI)(),W=e=>{if(d.BROWSER_CAPABILITIES.isReducedAnimatedPreferred){y(e);return}B(!0),setTimeout(()=>{y(e)},250)};if((0,E.a)("Escape",e?void 0:()=>W("esc")),(0,n.useLayoutEffect)(()=>{if(!(K>0))return(0,v.Do)()},[K]),(0,p.sk)())return null;let z=t=>{e||t.target!==O.current||(t.preventDefault(),W("backdrop"))},q=(0,u.AK)(b.Z.root,_,N&&b.Z.root_fullscreen,(D||!w&&!H)&&b.Z.hidden,V&&!P&&b.Z.root_masked),Q=(0,u.AK)(b.Z.overlay,k,(D||!w&&!H)&&b.Z.hidden,!e&&b.Z.overlay_clickable,{[b.Z.scrollableOverlay]:M});return n.createElement(o.x,{isInPortal:!0,portalRootId:A},n.createElement("div",{"aria-hidden":!H||void 0,className:Q,onClick:()=>{R&&$()},onMouseDown:z,onTouchEnd:z,ref:O},n.createElement("dialog",{open:!0,...Z,className:q},(!t||l)&&n.createElement("div",{className:b.Z.outsideContent},l,n.createElement(a.mI,{"aria-label":L("button.close"),className:b.Z.closeIcon,disabled:C,onClick:()=>W("close-btn")},n.createElement(i.Z,{img:"close-3"}))),n.createElement(c.Z,{additionalClassName:(0,u.AK)(f,{[b.Z.content]:!I}),containerRef:U,disablePs:M,animationName:b.Z.appear},Z.children))))}},10018:(e,t,l)=>{l.d(t,{Z:()=>aO});var a,r,n=l(18775),s=l(23615),i=l.n(s),o=l(27378),c=l(48204);let d={root:"AllSpiesLeftModal#pp",icon:"AllSpiesLeftModal__icon#WP",content:"AllSpiesLeftModal__content#HJ",title:"AllSpiesLeftModal__title#Dr",description:"AllSpiesLeftModal__description#iu",button:"AllSpiesLeftModal__button#F6"};var m=l(45311),u=l(77382),p=l(57174),h=l(65804),v=l(29413),E=l(21313),g=l(99973),b=l(97606),f=l(94380),C=l(95654);let y=e=>{let{trans:t}=(0,b.QT)(),l=(0,C.C)(m.Mu),a=(0,f.T)();return(0,o.useEffect)(()=>{l&&a((0,u.VG)(g.Ny.ALL_SPIES_LEFT_MODAL))},[a,l]),o.createElement(E.Z,{open:!0,onClose:e.onClose,closeIconPosition:"rightHeader",className:d.root},o.createElement("div",{className:d.content},o.createElement(v.Z,{className:d.icon,img:"eye-off-ds",size:48}),o.createElement(h.Z,{className:d.title,messageId:"privateToSpyModeTransition.allSpiesLeftModal.title",wrapper:"div"}),o.createElement(h.Z,{className:d.description,messageId:"privateToSpyModeTransition.allSpiesLeftModal.description",wrapper:"div"}),o.createElement(p.ZP,{className:d.button,style:"apply-2-ds",onClick:e.onClose},t("privateToSpyModeTransition.allSpiesLeftModal.button"))))};var N=l(15430),_=l(49509),k=l(86257),A=l(69396),S=l(89838),T=l(33491),w=l(1689),P=l(99382),M=l(85276),I=l(89057),R=l(99748),Z=l(83705),L=l(68020),D=l(58320);let B={generateExternalToken:S.Mo};class F extends o.Component{componentDidMount(){let{externalBroadcastToken:e}=this.props;e||this.props.generateExternalToken()}render(){let{streamNameToken:e,className:t,hostRoot:l,externalBroadcastSettings:a}=this.props,r=(0,_.Z)(l.replace(/(.+)\.(.+)/,"$1")),n=(0,k.Z)(a,["url"]);return o.createElement(I.Z,{className:(0,R.AK)("external-broadcast-specification",t),onClose:this.closeClickHandler,source:"externalBroadcast",titlePosition:"outside"},o.createElement("div",{className:"broadcast-specification-header"},o.createElement("div",{className:"header-title"},o.createElement(v.Z,{img:"camera-settings",size:50}),o.createElement("span",{className:"text-external-broadcast"},this.props.i18n.trans("externalBroadcast.header",{siteName:r}))),o.createElement("div",{className:"header-sub-title"},this.props.i18n.trans("externalBroadcast.copy")),o.createElement("div",{className:"header-input-wrapper"},o.createElement("div",{className:"header-copy"},this.props.i18n.trans("externalBroadcast.server")),o.createElement(M.Z,{value:(0,A.Z)(a,"url"),readOnly:!0})),o.createElement("div",{className:"header-input-wrapper"},o.createElement("div",{className:"header-copy"},this.props.i18n.trans("externalBroadcast.token")),o.createElement(M.Z,{value:e,readOnly:!0})),o.createElement("div",{className:"header-generate-token-wrapper"},o.createElement("span",{className:"header-generate-token",onClick:this.regenerateTokenClickHandler},o.createElement(h.Z,{className:"header-generate-token-label",messageId:"externalBroadcast.refreshToken",elements:{icon:o.createElement(v.Z,{img:"renew"}),link:o.createElement("span",null)}})))),o.createElement("div",{className:"broadcast-specification-settings"},o.createElement("div",{className:"settings-title"},this.props.i18n.trans("externalBroadcast.settings.title")),o.createElement("div",{className:"settings-description"},o.createElement(h.Z,{messageId:"externalBroadcast.settings.description",elements:{span:o.createElement("span",{className:"settings-description-highlighted"})}})),(0,Z.U)(n,(e,t)=>o.createElement("div",{className:(0,R.AK)("settings-row",`settings-row-${t}`),key:t},o.createElement("div",{className:"settings-name"},this.props.i18n.trans(`externalBroadcast.settings.${t}`)),o.createElement("div",{className:"settings-value"},e))),o.createElement("div",{className:"settings-description-important"},"* ",this.props.i18n.trans("externalBroadcast.settings.important"))),o.createElement("div",{className:"broadcast-specification-footer"},o.createElement("span",{className:"broadcast-specification-help"},o.createElement(w.Z,{wikiLinkKey:"howToUseOBS",className:"broadcast-specification-link"},o.createElement(v.Z,{img:"info-circle"}),this.props.i18n.trans("externalBroadcast.help"))),o.createElement(P.ZP,{onClick:this.closeClickHandler},this.props.i18n.trans("externalBroadcast.close"))))}constructor(...e){super(...e),(0,n._)(this,"closeClickHandler",()=>{this.props.onClose()}),(0,n._)(this,"regenerateTokenClickHandler",()=>{this.props.generateExternalToken()})}}let O=(0,b.GV)(F),x=(0,c.$j)(e=>({externalBroadcastSettings:(0,T.WW)(e),externalBroadcastToken:(0,T.FD)(e),hostRoot:(0,L.VK)(e),streamNameToken:(0,D.Eg)(e)}),B)(O);var U=l(1786),H=l(52872),K=l(8512),V=l(83550),$=l(1948),W=l(65103),z=l(63345),q=l(95366),Q=l(37051),j=l(58927),G=l(74753),Y=l(60232);let J=({isSingleLevel:e=!0,level:t,error:l=null,onRemoveLevel:a=Q.Z,onChange:r=Q.Z})=>{let{trans:n}=(0,b.QT)(),s=Object.values(q.pnr).map(e=>({value:e,label:n(`kiirooSettingsModal.settings.levels.${e}`)}));return o.createElement("div",{className:(0,R.AK)("kiiroo-settings-level",{error:l}),id:`${t.id}`},o.createElement("div",{className:"kiiroo-settings-level-wrapper"},o.createElement("div",{className:"kiiroo-settings-level-duration"},o.createElement(G.Z,{name:"duration",value:t.duration||"",onChange:e=>{let{currentTarget:{name:l,value:a}}=e,n=Number(a);Number.isNaN(n)||r({...t,[l]:n})},size:"small",type:"text",maxLength:5})),o.createElement("div",{className:"kiiroo-settings-level-vibration"},o.createElement(Y.Z,{onSelect:({value:e})=>{r({...t,vibration:e})},value:t.vibration,options:s,size:"small"})),!e&&o.createElement("div",{className:"kiiroo-settings-level-remove","data-level-id":t.id,onClick:()=>{a(t)}},o.createElement(v.Z,{img:"close-5"}))),l&&o.createElement(j.Z,{error:l,targetId:`${t.id}`}))},X={id:Number((0,z.Z)()),min:null,max:null,duration:null,vibration:q.pnr.LOW},ee="kiirooSettingsModal.settings.header",et={updateKiirooSettings:H.VQ};class el extends o.Component{componentDidMount(){let{settings:e}=this.props,t=e.length?e.slice(0,1):[X];this.setState({hasSettingsChanged:!1,settings:this.getLevelsWithId(t)})}componentDidUpdate(e){let{settings:t}=e,{settings:l}=this.props;if(l!==t){let e=l.length?l.slice(0,1):[X];this.setState({hasSettingsChanged:!1,settings:this.getLevelsWithId(e)})}}render(){let{hasSettingsChanged:e,settings:t}=this.state,l=t.length<=1;return o.createElement("div",{className:"kiiroo-settings"},o.createElement("div",{className:"kiiroo-settings-levels"},o.createElement("div",{className:"kiiroo-settings-header"},o.createElement("div",{className:"kiiroo-settings-header-item"},this.props.i18n.trans(`${ee}.duration`)),o.createElement("div",{className:"kiiroo-settings-header-item"},this.props.i18n.trans(`${ee}.vibration`))),t.map(e=>o.createElement(J,{level:e,key:e.id,onRemoveLevel:this.handleRemoveLevel,onChange:this.onChange,error:this.state.errors[e.id],isSingleLevel:l}))),!(t.length>=1)&&o.createElement("div",{className:"kiiroo-settings-add-level",onClick:this.handleAddLevel},o.createElement(v.Z,{img:"plus-unframed"}),this.props.i18n.trans("kiirooSettingsModal.settings.addLevel")),o.createElement("div",{className:"kiiroo-settings-any-tip"},this.props.i18n.trans("kiirooSettingsModal.settings.anyTip")),o.createElement("div",{className:"kiiroo-settings-actions"},o.createElement(p.ZP,{size:"large",style:e?"apply":"default",onClick:this.handleUpdateKiirooSettings,disabled:!e},e?this.props.i18n.trans("kiirooSettingsModal.settings.save"):this.props.i18n.trans("kiirooSettingsModal.settings.saved"))))}constructor(e){super(e),(0,n._)(this,"handleAddLevel",()=>{let{settings:e}=this.state,t={...X,id:Number((0,z.Z)())};this.setState({hasSettingsChanged:!0,settings:[...e,t]})}),(0,n._)(this,"handleRemoveLevel",e=>{let{settings:t}=this.state,l=t.filter(t=>t.id!==e.id);this.setState({hasSettingsChanged:!0,settings:l})}),(0,n._)(this,"onChange",e=>{let{settings:t}=this.state,l=t.reduce((t,l)=>(l.id===e.id?t.push(e):t.push(l),t),[]);this.setState({hasSettingsChanged:!0,settings:l})}),(0,n._)(this,"getLevelsWithId",e=>e.map(e=>({...e,id:Number((0,z.Z)())}))),(0,n._)(this,"getLevelsWitouthId",e=>e.map(({id:e,...t})=>t)),(0,n._)(this,"getIsLevelError",e=>!!e.min&&!!e.max&&e.max!e.min&&!e.max&&!e.duration),(0,n._)(this,"getIsLevelEmpty",e=>!e.duration),(0,n._)(this,"getIsLevelIntersection",e=>{let{settings:t}=this.state;return!this.getIsLevelEmpty(e)&&t.filter(t=>t.id!==e.id&&e.id>t.id).some(t=>!!e.min&&!!t.min&&e.min<=t.min||!!e.min&&!!t.max&&e.min<=t.max||!!e.max&&!!t.min&&e.maxe.reduce((e,t)=>{let l=this.getIsLevelEmpty(t),a=this.getIsLevelError(t),r=this.getIsLevelIntersection(t);return a?e[t.id]={message:this.props.i18n.trans("kiirooSettingsModal.settings.errors.reverse")}:r?e[t.id]={message:this.props.i18n.trans("kiirooSettingsModal.settings.errors.intersection")}:l&&(e[t.id]={message:this.props.i18n.trans("kiirooSettingsModal.settings.errors.empty")}),e},{})),(0,n._)(this,"getLevelsWithoutEmpty",()=>{let{settings:e}=this.state;if(e.length>1){let t=e.filter(e=>!this.getIsLevelFieldsEmpty(e));return t.length>=1?t:[X]}return e}),(0,n._)(this,"saveKiirooSettings",e=>{let t=this.getLevelsWitouthId(e);this.props.updateKiirooSettings(t)}),(0,n._)(this,"handleUpdateKiirooSettings",()=>{let e=this.getLevelsWithoutEmpty(),t=this.getValidateLevels(e);this.setState({settings:e,errors:t}),Object.keys(t).length||this.saveKiirooSettings(e)}),this.state={hasSettingsChanged:!1,settings:[],errors:{}}}}(0,n._)(el,"defaultProps",{settings:[X]});let ea=(0,b.GV)(el),er=(0,c.$j)(null,et)(ea),en=({device:e})=>{let{trans:t}=(0,b.QT)();return o.createElement("div",{className:"kiiroo-settings-modal-wizard-device"},o.createElement("div",{className:"kiiroo-settings-modal-wizard-device-type"},o.createElement(v.Z,{img:"lovense",size:17}),o.createElement("div",{className:"kiiroo-settings-modal-wizard-device-label"},o.createElement("div",{className:"kiiroo-settings-modal-wizard-device-name"},e),o.createElement("div",{className:"kiiroo-settings-modal-wizard-device-status"},t("kiirooSettingsModal.settings.devices.connected")))),o.createElement("div",{className:"kiiroo-settings-modal-wizard-device-badge"}))},es={emitButtonEvent:V.d2,updateKiirooToken:H.VX,loadKiirooSettings:H.tP};class ei extends o.Component{componentDidMount(){let{isBroadcastInitialized:e,isKiirooAuth:t,user:l}=this.props;this.setState({isKiirooAuth:t}),t?(e&&this.props.loadKiirooSettings(null==l?void 0:l.id),e||this.props.emitButtonEvent(g.FO.VIEWCAM_KIIROO_CONNECTED)):(this.props.updateKiirooToken(),e||this.props.emitButtonEvent(g.FO.VIEWCAM_KIIROO_CONNECTION))}componentDidUpdate(e,t){let{isKiirooAuth:l,kiirooToken:a}=e,{isKiirooAuth:r,kiirooToken:n,user:s}=this.props,{isKiirooAuth:i}=this.state,o=r!==i&&t.isKiirooAuth===i;n===a&&(o&&this.setState({isKiirooAuth:r}),r&&r!==l&&this.props.loadKiirooSettings(null==s?void 0:s.id))}renderTitle(){let{user:e}=this.props,{isKiirooAuth:t}=this.state;return(null==e?void 0:e.isModel)?t?this.props.i18n.trans("kiirooSettingsModal.model.modalDeviceTitle"):this.props.i18n.trans("kiirooSettingsModal.model.modalAuthTitle"):t?this.props.i18n.trans("kiirooSettingsModal.user.modalDeviceTitle"):this.props.i18n.trans("kiirooSettingsModal.user.modalAuthTitle")}renderToyAuth(){let{kiirooToken:e}=this.props;return o.createElement("div",{className:"kiiroo-settings-modal-wizard auth"},g.BROWSER_CAPABILITIES.touch&&o.createElement("div",{className:"kiiroo-settings-modal-wizard-alert"},this.props.i18n.trans("kiirooSettingsModal.auth.alert")),o.createElement("ul",{className:"kiiroo-settings-modal-wizard-descriptions"},o.createElement("li",{className:"kiiroo-settings-modal-wizard-description"},o.createElement(h.Z,{elements:{strong:o.createElement("strong",null)},messageId:"kiirooSettingsModal.auth.step1"})),o.createElement("li",{className:"kiiroo-settings-modal-wizard-description"},this.props.i18n.trans("kiirooSettingsModal.auth.step2")),o.createElement("li",{className:"kiiroo-settings-modal-wizard-description"},this.props.i18n.trans("kiirooSettingsModal.auth.step3")),o.createElement("li",{className:"kiiroo-settings-modal-wizard-description"},this.props.i18n.trans("kiirooSettingsModal.auth.step4"))),o.createElement("div",{className:"kiiroo-settings-modal-wizard-qrcode"},o.createElement("img",{src:`http://api.qrserver.com/v1/create-qr-code/?data=${e}`,alt:"qrcode"})))}renderToyDevices(){let{kiirooDevices:e,isKiiroOnline:t}=this.props;return(null==e?void 0:e.length)&&t?o.createElement(o.Fragment,null,(0,Z.U)(e,e=>o.createElement(en,{device:e,key:e}))):o.createElement("div",{className:"kiiroo-settings-modal-wizard-device error"},this.props.i18n.trans("kiirooSettingsModal.settings.noDevicesConnectedMessage"))}renderToySettings(){let{kiirooDevices:e,kiirooSettings:t,user:l}=this.props,a=null==e?void 0:e.length;return o.createElement("div",{className:"kiiroo-settings-modal-wizard settings"},!(null==l?void 0:l.isModel)&&o.createElement("div",{className:"kiiroo-settings-modal-wizard-title"},this.props.i18n.trans("kiirooSettingsModal.user.devices.title")),!(null==l?void 0:l.isModel)&&o.createElement("div",{className:"kiiroo-settings-modal-wizard-description"},this.props.i18n.trans("kiirooSettingsModal.user.devices.description")),(null==l?void 0:l.isModel)&&o.createElement("div",{className:"kiiroo-settings-modal-wizard-devices-header"},a?this.props.i18n.trans("kiirooSettingsModal.settings.connectedDevices"):this.props.i18n.trans("kiirooSettingsModal.settings.noDevicesConnected")),o.createElement("div",{className:"kiiroo-settings-modal-wizard-devices"},this.renderToyDevices()),!(null==l?void 0:l.isModel)&&o.createElement("div",{className:"back-to-model"},o.createElement(P.ZP,{style:"default",onClick:this.closeClickHandler},this.props.i18n.trans("kiirooSettingsModal.user.backToModel"))),(null==l?void 0:l.isModel)&&o.createElement(o.Fragment,null,o.createElement("div",{className:"kiiroo-settings-modal-wizard-settings-header"},this.props.i18n.trans("kiirooSettingsModal.settings.vibrationSettings")),o.createElement("div",{className:"kiiroo-settings-modal-wizard-settings"},o.createElement(er,{settings:t}))))}render(){let{isKiirooAuth:e}=this.state;return o.createElement(I.Z,{className:"modal-wrapper kiiroo-settings-modal",onClose:this.closeClickHandler,source:"kiirooSettingsModal",titlePosition:"outside",title:this.renderTitle()},o.createElement("div",{className:"kiiroo-settings-modal-content"},!e&&this.renderToyAuth(),e&&this.renderToySettings()),o.createElement("div",{className:(0,R.AK)("kiiroo-settings-modal-footer",{levels:e})},o.createElement($.Z,{className:"kiiroo-settings-modal-footer-link",href:"https://cdn.stripst.com/pdf/kiiro_howto.pdf"},o.createElement(v.Z,{img:"info-circle"}),this.props.i18n.trans("kiirooSettingsModal.footer.learnMore")),e&&o.createElement("a",{className:"kiiroo-settings-modal-footer-link",onClick:this.reconnectClickHandler},this.props.i18n.trans("kiirooSettingsModal.footer.reconnect"))))}constructor(e){super(e),(0,n._)(this,"closeClickHandler",()=>{this.props.onClose()}),(0,n._)(this,"reconnectClickHandler",()=>{this.props.updateKiirooToken(),this.setState({isKiirooAuth:!1})}),this.state={isKiirooAuth:!1}}}let eo=(0,b.GV)(ei),ec=(0,c.$j)(e=>{var t;return{isBroadcastInitialized:(0,U.rt)(e),isKiirooAuth:null!==(t=(0,K.uU)(e))&&void 0!==t&&t,isKiiroOnline:(0,K.uz)(e),kiirooDevices:(0,K.QA)(e),kiirooSettings:(0,K.wD)(e),kiirooToken:(0,K.GD)(e),user:(0,W.xV)(e)}},es)(eo);var ed=l(4630),em=l(52391),eu=l(78983),ep=l(8031);let eh=({currentUser:e,onClose:t})=>{let{formatDuration:l,trans:a}=(0,b.QT)(),r=(0,f.T)(),n=(0,C.C)(T.uK),s=(0,C.C)(L.eU),[i,c]=(0,o.useState)(!1),[d,m]=(0,o.useState)(!1),{dayToEnd:u,hoursToEnd:p}=function(e,t){let l=Date.parse(e),a=t*ep.Zv,r=(0,eu.og)(Date.now(),l,eu.$v.milliseconds),n=(0,eu.og)(a,r,eu.$v.milliseconds),s=(0,eu.og)(a,r,eu.$v.days),i=Math.round((n-s*ep.xR)/ep.ee);return 6===s&&24===i?{dayToEnd:7,hoursToEnd:0}:{dayToEnd:s,hoursToEnd:i}}(n,s),g=l({days:u,hours:p}),y=u<=0&&p<=0;return o.createElement(E.Z,{closeIconPosition:"rightHeader",contentClassName:"leaving-banned-studios-modal",onClose:t,open:!0},i?o.createElement(o.Fragment,null,o.createElement("p",{className:"leaving-banned-studios-modal__title"},a("broadcast.leaveStudioConfirmModal.title")),o.createElement("p",{className:"leaving-banned-studios-modal__description"},a("broadcast.leaveStudioConfirmModal.description"),o.createElement("br",null),o.createElement("span",{className:"leaving-banned-studios-modal__email"},e.email)),o.createElement("p",{className:"leaving-banned-studios-modal__description"},o.createElement(h.Z,{messageId:"broadcast.leaveStudioConfirmModal.contactSupport",elements:{link:o.createElement(em.Z,null)}})),o.createElement("div",{className:"leaving-banned-studios-modal__action"},o.createElement(P.ZP,{className:"leaving-banned-studios-modal__button",loading:d,onClick:()=>{m(!0),r((0,ed.Eq)(null==e?void 0:e.id))},style:"default"},a("broadcast.leaveStudioConfirmModal.confirmDetaching")))):o.createElement(o.Fragment,null,o.createElement(v.Z,{img:"account-blocked-colored"}),o.createElement("p",{className:"leaving-banned-studios-modal__title"},a("broadcast.studioBlockedModal.title")),o.createElement("p",{className:"leaving-banned-studios-modal__description"},a("broadcast.studioBlockedModal.description")),o.createElement("ul",{className:"leaving-banned-studios-modal__list"},o.createElement("li",{className:"leaving-banned-studios-modal__list-item"},o.createElement(h.Z,{messageId:y?"broadcast.studioBlockedModal.leaveStudio":"broadcast.studioBlockedModal.leaveStudioWithTime",elements:{br:o.createElement("br",null),accent:o.createElement("span",{className:"leaving-banned-studios-modal__time"})},parameters:{time:g}})),o.createElement("li",{className:"leaving-banned-studios-modal__list-item"},a("broadcast.studioBlockedModal.logOutToCreate"))),o.createElement("div",{className:"leaving-banned-studios-modal__action"},o.createElement(P.ZP,{className:"leaving-banned-studios-modal__button",onClick:()=>{c(!0)},style:"default",disabled:!y},a("broadcast.studioBlockedModal.leaveButton")))))};var ev=l(75997),eE=l(62203);let eg={toggleLovenseSettings:H.U5};class eb extends o.Component{render(){let{siteName:e,lovenseFaq:t,lovenseToken:l,isEnabled:a,lovenseSettingsUrl:r}=this.props;return o.createElement(I.Z,{isWrapperCloseDisabled:!0,className:"modal-wrapper lovense-settings-modal",onClose:this.closeClickHandler,source:"lovenseSettingsModal",titlePosition:"outside"},o.createElement("div",{className:"lovense-settings-modal-content"},o.createElement("span",{className:"lovense-settings-modal-content-header"},this.props.i18n.trans("lovenseSettingsModal.header")),o.createElement("div",{className:"lovense-settings-modal-content-description"},this.props.i18n.trans("lovenseSettingsModal.description.body"),o.createElement("ul",null,o.createElement("li",null,this.props.i18n.trans("lovenseSettingsModal.description.step1",{siteName:e})),o.createElement("li",null,this.props.i18n.trans("lovenseSettingsModal.description.step2",{siteName:e})),o.createElement("li",null,this.props.i18n.trans("lovenseSettingsModal.description.step3",{siteName:e})))),o.createElement("div",{className:"lovense-settings-modal-content-allow"},o.createElement("span",{className:"title"},this.props.i18n.trans("lovenseSettingsModal.allowLovense",{siteName:e})),o.createElement(ev.Z,{theme:"light",isChecked:a,onChange:this.switcherClickHandler})),o.createElement("div",{className:"lovense-settings-modal-content-actions"},o.createElement(P.ZP,{style:"apply",type:"anchor",disabled:!a,href:`${r}?mToken=${l}`},o.createElement(v.Z,{img:"external-link"}),this.props.i18n.trans("lovenseSettingsModal.settings")))),t&&o.createElement("div",{className:"lovense-settings-modal-content-learn-more"},o.createElement(v.Z,{img:"info-circle"}),o.createElement($.Z,{href:t},this.props.i18n.trans("lovenseSettingsModal.learnMore"))))}constructor(...e){super(...e),(0,n._)(this,"closeClickHandler",()=>{this.props.onClose()}),(0,n._)(this,"switcherClickHandler",e=>{this.props.toggleLovenseSettings(e)})}}let ef=(0,b.GV)(eb),eC=(0,c.$j)(e=>({siteName:(0,eE.hA)(e),lovenseFaq:(0,L.CT)(e,"lovenseFaq"),lovenseToken:(0,K.to)(e),lovenseSettingsUrl:(0,K.RX)(e),isEnabled:(0,K.F$)(e)}),eg)(ef);var ey=l(53616),eN=l(86974),e_=l(3034),ek=l(85049);let eA="model-fan-club-edit-custom-benefit-modal-content-description",eS="model-fan-club-edit-custom-benefit-modal-content-name";class eT extends ey.Z{renderRemoveConfirmation(){return o.createElement("div",{style:{textAlign:"center"}},o.createElement("h3",null,this.props.i18n.trans("fanClub.benefits.form.shouldDeleteBenefit")),o.createElement("form",{className:"model-fan-club-edit-custom-benefit-modal-content-controls",style:{width:"200px",margin:"20px auto 0"}},o.createElement(P.ZP,{onClick:()=>this.setState({isVisibleConfirmation:!1}),style:"default-restyled",type:"button"},this.props.i18n.trans("fanClub.benefits.form.keepBenefit")),o.createElement(P.ZP,{onClick:this.handleConfirmRemove,style:"accept",type:"submit"},this.props.i18n.trans("button.delete"))))}renderExample(e){return o.createElement("span",{className:"example-wrapper"},o.createElement("span",{className:"example-title"},`${this.props.i18n.trans("example")} ${e}`),o.createElement("span",{className:"example-text"},o.createElement(h.Z,{elements:{accent:o.createElement("span",{className:"accent"})},messageId:`fanClub.benefits.examples.${e}.title`})),o.createElement("span",{className:"example-text"},o.createElement(h.Z,{elements:{accent:o.createElement("span",{className:"accent"})},messageId:`fanClub.benefits.examples.${e}.description`})))}renderTitleError(){let e=this.getTitleErrorMessage();return e?o.createElement(j.Z,{error:{message:e},targetId:eS,placement:"top"}):null}renderDescriptionError(){let{descriptionErrorMessage:e}=this.state;return e?o.createElement(j.Z,{error:{message:e},targetId:eA,placement:"top"}):null}renderContent(){if(this.state.isVisibleConfirmation)return this.renderRemoveConfirmation();let{description:e,hasUrlInTitle:t,isExistedName:l,isVisibleExample:a,name:r,descriptionErrorMessage:n,nameErrorMessage:s,isPending:i}=this.state,c=this.state.name!==this.props.params.name||this.state.description!==this.props.params.description;return o.createElement("div",{className:"model-fan-club-edit-custom-benefit-modal-content",onClick:()=>this.setState({isVisibleExample:!1})},o.createElement("span",{className:"model-fan-club-edit-custom-benefit-modal-content-close",onClick:this.closeButtonClickHandler},o.createElement(v.Z,{img:"close-3",size:12})),o.createElement("h3",null,"Custom Extra Benefit"),o.createElement("div",{className:"text-block"},this.props.i18n.trans("fanClub.benefits.form.customBenefitInfo")," ",o.createElement("span",{className:"interactive primary",id:"custom-benefit-form-example-tooltip",onClick:e=>{e.stopPropagation(),this.setState({isVisibleExample:!a})}},this.props.i18n.trans("examplesShow")," ",a&&o.createElement(e_.Z,{className:"model-fan-club-tooltip",isMobileRelative:!1,isForceVisible:!0,targetId:"custom-benefit-form-example-tooltip"},this.renderExample(1),this.renderExample(2)))),o.createElement("form",{onSubmit:this.handleSubmit},o.createElement("label",{className:"label"},o.createElement("div",{className:"label-title text-block"},o.createElement(h.Z,{elements:{accent:o.createElement("span",{className:"accent"})},messageId:"fanClub.benefits.form.customBenefitInputName"})," ",o.createElement("span",{style:{whiteSpace:"nowrap"}},this.props.i18n.trans("fanClub.benefits.form.customBenefitInputNameForAll"),o.createElement("span",{id:"custom-benefit-form-name-tooltip",style:{display:"inline-block"}},o.createElement(v.Z,{img:"question",size:18}),o.createElement(e_.Z,{className:"model-fan-club-tooltip",isMobileRelative:!1,placement:"top",targetId:"custom-benefit-form-name-tooltip"},this.props.i18n.trans("fanClub.benefits.form.customBenefitInputNameTooltip"))))),o.createElement(G.Z,{autoComplete:"off",autoCorrect:"off",autoCapitalize:"off",className:(0,R.AK)({error:l||s}),display:"block",id:eS,maxLength:30,onChange:this.handleChangeName,placeholder:this.props.i18n.trans("fanClub.benefits.form.customBenefitInputNamePlaceholder"),value:r,disabled:i}),this.renderTitleError()),o.createElement("label",{className:"label"},o.createElement("span",{className:"label-title text-block"},o.createElement(v.Z,{img:"lock-1",size:18}),o.createElement(h.Z,{elements:{accent:o.createElement("span",{className:"accent"})},messageId:"fanClub.benefits.form.customBenefitInputDescription"})),o.createElement(eN.Z,{maxLength:300,onChange:this.handleChangeDescription,placeholder:this.props.i18n.trans("fanClub.benefits.form.customBenefitInputDescriptionPlaceholder"),value:e,className:(0,R.AK)({error:n}),id:eA,disabled:i}),this.renderDescriptionError()),o.createElement("div",{className:"model-fan-club-edit-custom-benefit-modal-content-controls"},o.createElement("div",null,o.createElement(P.ZP,{disabled:!c||l||t||!r.trim(),style:"apply-primary",type:"submit",loading:i},this.props.i18n.trans("settings.save")),o.createElement(P.ZP,{disabled:!c||i,onClick:this.handleCancelClick,style:"default-restyled",type:"button"},this.props.i18n.trans("settings.cancel"))),!!this.props.params.onRemove&&o.createElement("span",{className:"remove",onClick:this.handleRemoveClick},this.props.i18n.trans("fanClub.benefits.form.deleteBenefit")))),o.createElement("div",{className:"model-fan-club-edit-custom-benefit-modal-footer"},o.createElement(h.Z,{elements:{link:o.createElement(w.Z,{className:"accent interactive",wikiLinkKey:"rulesForModels"})},messageId:"fanClub.benefits.agreeTermsOfUse"})))}constructor(e){super(e),(0,n._)(this,"handleSubmit",async e=>{var t,l;e.preventDefault(),this.setState({isPending:!0});let a=await (null===(t=(l=this.props.params).onSubmit)||void 0===t?void 0:t.call(l,{description:this.state.description.trim(),name:this.state.name.trim(),previousName:this.props.params.name})),r=(0,ek.ZB)(a);if(r){this.setState(e=>({...e,...r,isPending:!1}));return}this.closeButtonClickHandler(e)}),(0,n._)(this,"handleCancelClick",e=>{e.preventDefault(),this.closeButtonClickHandler(e)}),(0,n._)(this,"handleRemoveClick",e=>{e.preventDefault(),this.setState({isVisibleConfirmation:!0})}),(0,n._)(this,"handleConfirmRemove",e=>{var t,l;e.preventDefault(),null===(t=(l=this.props.params).onRemove)||void 0===t||t.call(l,this.props.params.name),this.closeButtonClickHandler(e)}),(0,n._)(this,"handleChangeName",e=>{let{value:t}=e.target;this.setState({name:t.replace(/^\s+/,""),isExistedName:this.props.params.reservedNames.includes(t.toLowerCase().trim()),hasUrlInTitle:/\bhttps?:\/\//i.test(t),nameErrorMessage:null})}),(0,n._)(this,"handleChangeDescription",e=>{this.setState({description:e.target.value.replace(/^\s+/,""),descriptionErrorMessage:null})}),(0,n._)(this,"getTitleErrorMessage",()=>{let{nameErrorMessage:e,isExistedName:t,hasUrlInTitle:l}=this.state;return e||(t?this.props.i18n.trans("fanClub.benefits.error.alreadyUsedName"):l?this.props.i18n.trans("fanClub.benefits.error.urlName"):null)}),this.state={...this.state,description:this.props.params.description,name:this.props.params.name,hasUrlInTitle:!1,isExistedName:!1,isVisibleConfirmation:!1,isVisibleExample:!1,titleErrorMessage:null,nameErrorMessage:null,descriptionErrorMessage:null,isPending:!1}}}let ew=(0,b.GV)(eT);var eP=l(53719);class eM extends ey.Z{renderTitle(){return o.createElement("span",null,this.props.i18n.trans("modelWarningModal.title"))}renderContent(){return o.createElement("div",{className:"modal-body"},o.createElement(v.Z,{img:"wrong",size:80}),o.createElement("div",{className:"description"},this.props.i18n.trans("modelWarningModal.description")),o.createElement("div",null,o.createElement(h.Z,{messageId:"modelWarningModal.reason",elements:{reasonWrapper:o.createElement("span",{className:"reason-wrapper"})},parameters:{reason:this.props.reason}})),o.createElement("div",{className:"accept-wrapper"},o.createElement(G.Z,{checked:this.state.isWarningAccepted,id:"accept_warning_checkbox",type:"checkbox",onChange:this.changeCheckboxValue}),o.createElement("label",{htmlFor:"accept_warning_checkbox"},this.props.i18n.trans("modelWarningModal.agreeAndAccept"))),o.createElement("div",null,o.createElement(P.ZP,{size:"medium",style:"apply",onClick:this.onClickEventHandler,disabled:!this.state.isWarningAccepted},this.props.i18n.trans("button.close"))))}constructor(e){super(e),(0,n._)(this,"onClickEventHandler",()=>{let{warningId:e}=this.props;this.props.acceptWarning(e),this.setState({isWarningAccepted:!1})}),(0,n._)(this,"changeCheckboxValue",e=>{this.setState({isWarningAccepted:e.target.checked})}),this.state={isWarningAccepted:!1}}}(0,n._)(eM,"defaultProps",{...ey.Z.defaultProps,titlePosition:"outside",isCloseBtnShown:!1,isWrapperCloseDisabled:!0,className:"model-warning-modal"});let eI=(0,b.GV)(eM),eR={acceptWarning:eP.nt},eZ=(0,c.$j)(null,eR)(eI);var eL=l(1581),eD=l(85353),eB=l(30399),eF=l(29421);let eO=({activities:e})=>{let{trans:t}=(0,b.QT)();return o.createElement(o.Fragment,null,e.map((l,a)=>{let r=t(`broadcast.activities.${l}`)===`broadcast.activities.${l}`?l:t(`broadcast.activities.${l}`);return o.createElement("span",{key:l,className:"private-activity"},r,a===e.length-1?"":", ")}))},ex=(0,c.$j)(e=>({model:(0,eB.ux)(e),privateActivities:(0,eF.sW)(e),publicActivities:(0,eF.k)(e)}))(({model:e,privateActivities:t,publicActivities:l})=>{var a;let{trans:r}=(0,b.QT)();return o.createElement("div",{className:"private-activities"},o.createElement("span",{className:"private-activities-title"},o.createElement("span",{className:"private-activities-name"},null!==(a=null==e?void 0:e.username)&&void 0!==a?a:"")," ",r("viewCam.confirmation.activities"),":"),o.createElement(eO,{activities:[...t,...l]}))});var eU=l(53788),eH=l(90813),eK=l(79561);let eV={CHROME:"https://www.google.com/chrome/",SAFARI:"https://support.apple.com/downloads/safari",FIREFOX:"https://www.mozilla.org/en-US/firefox/new/"},e$={CHROME:eV.CHROME,SAFARI:eV.SAFARI},eW=({mode:e})=>{let t=`supported-browsers-tooltip-${e}`,l=g.BROWSER_CAPABILITIES.firefox&&e===q.hBS.MODE_P2P,a=l?e$:eV,r=(0,Z.U)(a,(e,t)=>o.createElement("li",{key:t},o.createElement($.Z,{className:"link",href:e},(0,_.Z)(t))));return o.createElement("div",{className:"private-mode-info",id:t},o.createElement(h.Z,{messageId:`viewCam.confirmation.showNotAvailable.show.${e}`,elements:{link:o.createElement("a",{className:"link"})}}),o.createElement("div",{className:"private-mode-info-tooltip"},o.createElement(e_.Z,{isMobileRelative:!1,placement:"top",targetId:t,maxWidth:270},l&&o.createElement(h.Z,{className:"cam2cam-in-firefox",messageId:"viewCam.confirmation.showNotAvailable.firefoxCam2Cam"}),o.createElement("ul",null,r),o.createElement(h.Z,{className:"download",messageId:"viewCam.confirmation.showNotAvailable.download"}))))},ez=({spyRate:e,isFreeSpyTrialAvailable:t,isFanClubFreeSpyAvailableForCurrentUser:l})=>{let{trans:a}=(0,b.QT)();return e?l?o.createElement(o.Fragment,null,a("fanClub.spyDescription")):t?o.createElement(h.Z,{messageId:"viewCam.freeSpyTrialTokensPerMinute",choiceParameter:"tokens",parameters:{tokens:e,time:q.LOf},elements:{br:o.createElement("br",null),yellow:o.createElement("span",{className:"controls-info-price"})}}):o.createElement(h.Z,{messageId:"viewCam.tokensPerMinute",choiceParameter:"tokens",parameters:{tokens:e},className:"controls-info-price"}):null},eq={emitButtonEvent:V.d2},eQ=(0,c.$j)(e=>{let{viewCam:{userFanClub:t}}=e,l=(0,eH.lR)(t);return{model:(0,eF.X0)(e),isFanClubFreeSpyAvailable:l,isFanClubSubscribed:(0,eH.hd)(t),isFanClubFreeSpyAvailableForCurrentUser:(0,eH.aw)(t),isSpySupported:(0,eK.yu)(e),minTierForSpying:(0,eH.Y4)(t),isFreeSpyTrialAvailable:(0,eK.fj)(e)}},eq)(e=>{let{trans:t}=(0,b.QT)(),l=(0,eU.v1)(),{isSpySupported:a,isFanClubFreeSpyAvailableForCurrentUser:r,isFanClubSubscribed:n,isFanClubFreeSpyAvailable:s,isFreeSpyTrialAvailable:i,minTierForSpying:c,model:d}=e;return d?o.createElement("div",{className:"modes"},o.createElement("div",{className:"mode-wrapper"},o.createElement("div",{className:"description"},o.createElement(h.Z,{messageId:"viewCam.confirmation.description.spy",elements:{strong:o.createElement("strong",null)},parameters:{model:d.username}})),o.createElement("div",{className:(0,R.AK)("controls",{disabled:!a})},o.createElement(P.ZP,{display:"block",size:"medium",style:"primary",disabled:!a,onClick:()=>{e.emitButtonEvent(g.FO.START_PRIVATE_MODAL_SPY,{isFree:r,minProp:"spyMinimum",modelId:d.id,privateType:"spy"})}},t(r?"button.spyNowFree":"button.spyNow")),o.createElement("div",{className:"controls-info"},o.createElement(ez,{spyRate:d.spyRate,isFanClubFreeSpyAvailableForCurrentUser:r,isFreeSpyTrialAvailable:i})),a&&!r&&s&&o.createElement(P.ZP,{style:"gray-ds",className:"additional-info-join-fan-club-button",onClick:e=>{e.preventDefault(),l.emit("fanClub:clickJoinFanClub",{selectedTierTab:c})}},o.createElement(v.Z,{img:"diamond",className:"additional-info-join-fan-club-button-icon"}),t(n?"fanClub.upgradeForSpyFree":"fanClub.joinForSpyFree"))),!a&&o.createElement(eW,{mode:q.hBS.SPY}))):null});class ej extends ey.Z{renderContent(){let{model:e,isConnectionPending:t}=this.props,l=!e||t;return o.createElement(o.Fragment,null,o.createElement("div",{className:"modal-body"},o.createElement("div",{className:"start-spy-modal-header"},o.createElement(h.Z,{elements:{strong:o.createElement("strong",null)},messageId:"viewCam.confirmation.title.spy",parameters:{model:null==e?void 0:e.username}})),o.createElement(eL.Z,null),l?o.createElement("div",{className:"loader-wrapper"},o.createElement(eD.Z,null)):o.createElement(eQ,null),o.createElement(ex,null)),o.createElement("div",{className:"annex"},this.props.i18n.trans("viewCam.confirmation.annex.spy")))}}(0,n._)(ej,"defaultProps",{...ey.Z.defaultProps,className:"start-spy-modal",titlePosition:"outside"});let eG=(0,b.GV)(ej);var eY=l(39120),eJ=l(17577),eX=l(84423),e0=l(13743),e1=l(47289),e7=l(19046),e2=l(95100),e8=l(59188),e3=l(62663);let e9="private_mode_show_more_id",e4="exclusive_mode_show_more_id",e6=(e,t)=>{let[l,a]=(0,o.useState)(3),{isLayoutMoreThanTablet:r}=(0,e3.do)("isLayoutMoreThanTablet");return(0,e8.H)(()=>{if(!e.current||t||!r)return;let l=e.current.getBoundingClientRect().height,n=document.getElementById(e4),s=document.getElementById(e9);if(!n||!s)return;let i=n.getBoundingClientRect().bottom-s.getBoundingClientRect().bottom;!(i{let[a,r]=(0,o.useState)(!0),[n,s]=(0,o.useState)(e.length>6),i=(0,o.useRef)(null),c=e6(i,l),d=Math.ceil(e.length/2),m=e.slice(0,d),u=e.slice(d);return(0,o.useEffect)(()=>{c>=e.length/2&&!l&&s(!1)},[c,l,e.length]),o.createElement(o.Fragment,null,o.createElement("ul",{className:"show-more-list__list show-more-list--line-height-test"},o.createElement("li",{ref:i,className:"show-more-list__item"},"-")),o.createElement("div",{className:"show-more-list",id:l?e4:e9},[m,u].map((e,t)=>o.createElement("ul",{className:"show-more-list__list",key:t},o.createElement("li",{className:"show-more-list__item show-more-list__item--hidden"},"-"),e.map((e,t)=>o.createElement("li",{key:e,className:(0,R.AK)("show-more-list__item",{"show-more-list__item--hidden":t>=c&&a&&n})},o.createElement("div",{className:"show-more-list__icon-wrapper"},o.createElement(v.Z,{className:"show-more-list__icon",size:8,img:"check"})),e))))),n&&t({isCollapsed:a,onClick:()=>r(e=>!e)}))};var te=l(80092);let tt=({onClick:e,isCollapsed:t,isPrivateModalActivitiesEnabled:l})=>{let{trans:a}=(0,b.QT)(),r=`viewCam.privateModal.show${t?"More":"Less"}${l?"Improved":""}`;return o.createElement("button",{type:"button",onClick:e,className:(0,R.AK)("toggle",{"toggle--improved":l})},a(r),l&&o.createElement(v.Z,{size:8,img:"chevron-down-2",className:(0,R.AK)("toggle-icon",{"toggle-icon--expanded":!t})}))},tl=({activities:e,emptyContent:t,isPrivateModalActivitiesEnabled:l,isExclusive:a})=>{let{isLayoutMoreThanTablet:r}=(0,e3.do)("isLayoutMoreThanTablet");return 0===e.length?o.createElement(o.Fragment,null,t):l?o.createElement(e5,{isExclusive:a,items:e,renderButton:({onClick:e,isCollapsed:t})=>o.createElement(tt,{isPrivateModalActivitiesEnabled:!0,onClick:e,isCollapsed:t})}):o.createElement(e2.g,{items:e,isInlineContent:!0,linesCount:r?3:2,renderButton:({onClick:e,isCollapsed:t})=>o.createElement(tt,{onClick:e,isCollapsed:t,isPrivateModalActivitiesEnabled:!1})})},ta=({activities:e,title:t,emptyTitle:l,emptyContent:a,isExclusive:r,gender:n})=>{let{trans:s,hasTranslation:i}=(0,b.QT)(),c=(0,C.C)(te.Q),d=(0,C.C)(te.KV);if(!e.length&&!l&&!a)return null;let m=e.length?t:l||t,u=(d?(0,e7.y)(e,n):e).map(e=>i(`broadcast.activities.${e}`)?s(`broadcast.activities.${e}`):e);return o.createElement("div",{className:(0,R.AK)("private-modal-activities",{exclusive:r,"private-modal-activities--improved":c})},!!m&&o.createElement("span",{className:(0,R.AK)("title",{"title--improved":c,"title--exclusive":r})},m),o.createElement(tl,{activities:u,isPrivateModalActivitiesEnabled:c,isExclusive:r,emptyContent:a}))};var tr=l(46675),tn=l(36916),ts=l(21581);let ti=({iconClassName:e,skipAutoCheck:t})=>{let l="private-modal-cam2cam-tooltip",a=(0,o.useRef)(),[r,n]=(0,o.useState)(),[s,i]=(0,o.useState)(!1),[c,d]=(0,o.useState)(!1),[m,u]=(0,o.useState)(!1),p=(0,o.useCallback)(()=>d(!1),[]),h=(0,o.useCallback)(()=>d(!0),[]),E=(0,o.useCallback)(()=>i(!0),[]),b=(0,tr.t)(t?p:()=>{},!c),f=(0,o.useCallback)(e=>{e.stopPropagation(),e.nativeEvent.stopImmediatePropagation()},[]);(0,o.useEffect)(()=>{let e=document.querySelector(".private-modal");if(!e)return;let l=()=>{var e;null===(e=a.current)||void 0===e||e.documentUpdateHandler()};return e.addEventListener("scroll",l),t||e.addEventListener("click",p),()=>{e.removeEventListener("scroll",l),t||e.removeEventListener("click",p)}},[p,t]),(0,o.useEffect)(()=>{c||(n(void 0),i(!1))},[c]),(0,o.useEffect)(()=>{if(t&&(!c||!s))return;let e=!1;return(async()=>{let l=await (0,tn.Tb)("audio");if(e)return;let a=await (0,tn.Tb)("video");!e&&(n({audio:l,video:a}),i(!1),!t&&l&&a&&(m||d(!1),u(!0)))})(),()=>{e=!0}},[c,s,t,m]),(0,o.useEffect)(()=>{t||(E(),d(!0))},[t,E]);let C={};return g.BROWSER_CAPABILITIES.touch&&(C={onTouchStart:c?p:h,onClick:b}),g.BROWSER_CAPABILITIES.touch||c||(C={onMouseEnter:h,onClick:b}),g.BROWSER_CAPABILITIES.touch||!c||s||r||(C={onMouseLeave:p,onClick:b}),!g.BROWSER_CAPABILITIES.touch&&c&&(s||r)&&(C={onClick:p}),o.createElement("span",{className:"private-modal-cam2cam-tooltip",id:l,...C},o.createElement(v.Z,{className:e,img:"question"}),c&&o.createElement(e_.Z,{maxWidth:310,ref:a,isForceVisible:!0,placement:"bottom",targetId:l,isMobileRelative:!1},o.createElement(ts.z,{devices:r,check:E,isChecking:s,onClick:f,onTouchStart:f})))},to=({icon:e,content:t,tooltip:l,accent:a})=>{let r=(0,C.C)(te.Q);return o.createElement("div",{className:(0,R.AK)("private-modal-feature",{accent:a,"private-modal-feature--improved":r})},o.createElement(v.Z,{className:"feature-icon",img:e}),o.createElement("span",null,t,l&&o.createElement("span",{className:"feature-tooltip",id:l.id},"\xa0",o.createElement(v.Z,{className:"feature-tooltip-icon",img:"question"}),o.createElement(e_.Z,{maxWidth:210,placement:l.placement||"bottom",targetId:l.id,isMobileRelative:!1},l.content))))},tc=({min:e=0,mode:t})=>{if(e<=1)return null;let l=`min-duration-tooltip-${t}`;return o.createElement("div",{className:"private-modal-min-duration"},o.createElement(h.Z,{messageId:"viewCam.privateModal.minDuration",parameters:{min:e},elements:{strong:o.createElement("strong",null)}}),o.createElement("div",{id:l},o.createElement(v.Z,{img:"question"}),o.createElement(e_.Z,{placement:"bottom",isMobileRelative:!1,targetId:l},o.createElement(h.Z,{messageId:"viewCam.privateModal.minDurationTT",elements:{plural:o.createElement(h.Z,{messageId:"viewCam.privateModal.minDurationTTPlural",parameters:{minutes:e},choiceParameter:"minutes"})}}))))},td=({children:e,isExclusive:t})=>{let l=(0,C.C)(te.Q);return o.createElement("div",{className:(0,R.AK)("private-features",{"private-features--improved":l,"private-features--simple":!t})},e)};var tm=l(54026);let tu=({src:e})=>o.createElement("img",{className:"private-modal__discount-icon",src:e,alt:"",height:30,width:30});var tp=l(6267),th=l(80406),tv=l(47742);let tE=(e,t)=>t&&!e?"fanClubBenefit":!t&&e?"happyHours":e&&t?t>=e?"fanClubBenefit":"happyHours":null,tg=(0,th.P1)([tv.Pn,eK.ti],(e,t)=>{var l;let a=(null!==(l=e.types)&&void 0!==l?l:[]).reduce((t,l)=>(t[l]=e.discount,t),{});return[tE(a.private,t.private),tE(a.p2p,t.p2p)]});var tb=l(7994),tf=l(81775);let tC={root:"FanClubPrivateDiscount#YH",root_card:"FanClubPrivateDiscount_card#Q0",rootCard:"FanClubPrivateDiscount_card#Q0",nowrap:"FanClubPrivateDiscount__nowrap#uU",accent:"FanClubPrivateDiscount__accent#Mz",headerCollapsed:"FanClubPrivateDiscount__headerCollapsed#ih",headerTitle:"FanClubPrivateDiscount__headerTitle#_H",headerTitle_card:"FanClubPrivateDiscount__headerTitle_card#o9",headerTitleCard:"FanClubPrivateDiscount__headerTitle_card#o9",headerTitle_collapsed:"FanClubPrivateDiscount__headerTitle_collapsed#Qy",headerTitleCollapsed:"FanClubPrivateDiscount__headerTitle_collapsed#Qy",footer:"FanClubPrivateDiscount__footer#Lg",content:"FanClubPrivateDiscount__content#0F",table:"FanClubPrivateDiscount__table#iR",tiersColumn:"FanClubPrivateDiscount__tiersColumn#RH",tierLabel:"FanClubPrivateDiscount__tierLabel#Xy",joinButton:"FanClubPrivateDiscount__joinButton#fn",discountLabel:"FanClubPrivateDiscount__discountLabel#TP",discountsColumn:"FanClubPrivateDiscount__discountsColumn#LJ",emptyDiscount:"FanClubPrivateDiscount__emptyDiscount#uR",tierWrapper:"FanClubPrivateDiscount__tierWrapper#X0",activeLabel:"FanClubPrivateDiscount__activeLabel#Y4",fanClubIcon:"FanClubPrivateDiscount__fanClubIcon#c0"},ty=({discount:e})=>e?o.createElement(tp.s,{className:tC.discountLabel,discount:e}):o.createElement("div",{className:tC.emptyDiscount},"—"),tN=()=>{let{trans:e}=(0,b.QT)();return o.createElement("thead",null,o.createElement("tr",null,o.createElement("th",{className:tC.tiersColumn},e("viewCam.privateModal.fanClub.label.tiers")),o.createElement("th",{className:tC.discountsColumn},e("viewCam.privateModal.fanClub.label.private")),o.createElement("th",{className:tC.discountsColumn},e("viewCam.privateModal.fanClub.label.exclusive"))))},t_=()=>{let{trans:e}=(0,b.QT)(),t=(0,C.C)(eK.bY),l=(0,C.C)(eK.oh);return o.createElement("tbody",null,q.Oc_.map(a=>{var r,n;return o.createElement("tr",{key:a},o.createElement("td",{className:tC.tierWrapper},o.createElement(tb.F,{classNames:{label:tC.tierLabel},tier:a}),l===a&&o.createElement("div",{className:tC.activeLabel},e("viewCam.privateModal.fanClub.activeLabel"))),o.createElement("td",null,o.createElement(ty,{discount:null==t?void 0:null===(r=t.private)||void 0===r?void 0:r[a]})),o.createElement("td",null,o.createElement(ty,{discount:null==t?void 0:null===(n=t.p2p)||void 0===n?void 0:n[a]})))}))},tk=()=>{let e=(0,eU.v1)(),{trans:t}=(0,b.QT)(),l=(0,f.T)(),a=(0,C.C)(eK.oh),r=(0,C.C)(eK.kU);return o.createElement(p.ZP,{style:"apply-primary",display:"block",className:tC.joinButton,onClick:()=>{l((0,u.VG)()),e.emit("fanClub:clickJoinFanClub",{selectedTierTab:r,source:"privateModal"})}},t(`fanClub.tipMenuDiscountsModal.${a?"upgradeFanClub":"joinFanClub"}`))},tA=()=>{let{trans:e}=(0,b.QT)();return o.createElement("div",{className:tC.content},o.createElement("table",{className:tC.table},o.createElement(tN,null),o.createElement(t_,null)),o.createElement("div",{className:tC.footer},o.createElement(tk,null),o.createElement("div",null,e("viewCam.privateModal.fanClub.unlock"))))},tS=()=>{let e=(0,C.C)(eK.Mj),t=(0,f.T)();return o.createElement(tf.c,{isCollapsedInitial:!0,onToggle:l=>{l||t((0,V.gz)(g.Q7.CLICK_EXPAND_FAN_CLUB_DISCOUNTS,{maxDiscount:e}))},className:(0,R.AK)(tC.root),headerClassName:tC.headerCollapsed,headerContent:o.createElement("div",{className:(0,R.AK)(tC.headerTitle,tC.headerTitle_collapsed)},o.createElement(h.Z,{messageId:"viewCam.privateModal.fanClub.title.getUpFanClub1",parameters:{discount:null!=e?e:0},elements:{accent:o.createElement("span",{className:tC.accent})}}),o.createElement(h.Z,{messageId:"viewCam.privateModal.fanClub.title.getUpFanClub2",className:tC.nowrap,elements:{icon:o.createElement(v.Z,{className:tC.fanClubIcon,img:"diamond"})}}))},o.createElement(tA,null))},tT=({parameters:e,messageId:t})=>{let l=(0,C.C)(eK.oh);return l?o.createElement("div",{className:(0,R.AK)(tC.root,tC.root_card)},o.createElement(h.Z,{messageId:t,className:(0,R.AK)(tC.headerTitle,tC.header_card),parameters:e,elements:{accent:o.createElement("span",{className:tC.accent}),tier:o.createElement(tb.F,{classNames:{label:tC.headerTitle,root:tC.headerTitleCard},tier:l})}})):null},tw=()=>{let e=(0,C.C)(eK.ti),t=(0,C.C)(tg),l=(0,C.C)(eK.OA),a=t.some(e=>"fanClubBenefit"===e),r=t.every(e=>"fanClubBenefit"===e),n=(null==l?void 0:l.doPrivate)&&l.doP2p,s=e.p2p===e.private,i=e.p2p>e.private?e.p2p:e.private;return r?n&&!s?o.createElement(tT,{messageId:"viewCam.privateModal.fanClub.title.differentFanClubDiscounts",parameters:{p2pDiscount:e.p2p,privateDiscount:e.private}}):n?o.createElement(tT,{messageId:"viewCam.privateModal.fanClub.title.sameFanClubDiscounts",parameters:{discount:i}}):(null==l?void 0:l.doPrivate)?o.createElement(tT,{messageId:"viewCam.privateModal.fanClub.title.fanClubDiscountPrivate",parameters:{discount:e.private}}):(null==l?void 0:l.doP2p)?o.createElement(tT,{messageId:"viewCam.privateModal.fanClub.title.fanClubDiscountP2p",parameters:{discount:e.p2p}}):null:a?o.createElement(tT,{messageId:"viewCam.privateModal.fanClub.title.fanClubDiscount",parameters:{discount:i}}):o.createElement(tS,null)},tP={root:"HappyHourAlert#Jz",timer:"HappyHourAlert__timer#Ny",icon:"HappyHourAlert__icon#UE",title:"HappyHourAlert__title#gW"};var tM=l(43806),tI=l(20717),tR=l(97686);let tZ=({className:e})=>{let t=(0,f.T)(),l=(0,C.C)(tv.Pn),a=(0,tI.jz)("common/components/ui/PromoBanner/assets/common/promo-icon-placeholder.svg");return(null==l?void 0:l.activatedTill)?o.createElement("div",{className:(0,R.AK)(tP.root,e)},o.createElement("div",{className:tP.icon,style:{backgroundImage:`url(${a})`}}),o.createElement(h.Z,{className:tP.title,messageId:"viewCam.privateModal.discountAlert",elements:{highlight:o.createElement("span",null)},parameters:{discount:-(l.discount||0)}}),o.createElement(tM.Z,{className:tP.timer,timeFormat:eu.TIME_FORMATS.OPTIONAL_HOURS_MINUTES_SECONDS,endTime:l.activatedTill,onTimeEnd:()=>{t((0,tR.B7)())}})):null},tL={happyHour:"PrivateDiscount__happyHour#oE"},tD=({type:e})=>"happyHours"===e?o.createElement(tZ,{className:tL.happyHour}):o.createElement(tw,null),tB=({isHappyHourAlertVisible:e,privateLocation:t})=>{let l=(0,C.C)(eK.WW),a=(0,C.C)(eK.FX),r=(0,C.C)(te.IT),n=(0,C.C)(tg),s=r&&a||l,i=e&&n.includes("happyHours"),c=s&&n.includes("fanClubBenefit"),d=i&&c;if(d&&t){let[e,l]=n;switch(t){case"private":return o.createElement(tD,{type:e});case"p2p":return o.createElement(tD,{type:l});default:return null}}return t||d&&!t?null:i?o.createElement(tZ,null):s?o.createElement(tw,null):null};var tF=l(38667),tO=l(3478);let tx=({model:e,discountInfo:{value:t},mode:l})=>o.createElement(h.Z,{messageId:`viewCam.privateModal.${e.isLive?"startButton":"requestButton"}`,elements:{tokens:o.createElement(o.Fragment,null,!!t&&o.createElement(tO.Z,{className:"private-modal__price-original"},(0,tF.jj)(e,l))," ",o.createElement("span",{className:(0,R.AK)("private-modal__price",!!t&&"private-modal__price--discount-size private-modal__price--discount-color")},(0,tF.jj)(e,l,t))),tk:o.createElement("span",{className:t?"private-modal__price--discount-color":void 0})}}),tU=({proposeError:e,isTooltipInitialVisible:t,tooltipId:l,onStartClick:a,isStartButtonDisabled:r,model:n,children:s,title:i,className:c,isExclusive:d=!1,isOfflineRequestVisible:m})=>{let{trans:u}=(0,b.QT)(),h=(0,C.C)(eK.ti),v=(0,C.C)(te.Q),{isLayoutMoreThanTablet:E}=(0,e3.do)("isLayoutMoreThanTablet"),g=(0,C.C)(tv.Pn),f=d?q.c0B.MODE_P2P:q.c0B.MODE_PRIVATE,y=(0,tF.D4)(f,g,h),N=(0,tI.jz)("features/discounts/images/user-active-discount.svg"),_="happyHours"===y.type;return o.createElement("div",{className:(0,R.AK)("mode-wrapper",{"mode--improved":v})},o.createElement(tB,{privateLocation:f,isHappyHourAlertVisible:!m}),o.createElement("div",{className:(0,R.AK)("mode",c,{"mode--improved":v})},E&&o.createElement("div",{className:"private-modal__title-image"},_&&o.createElement(tu,{src:N}),o.createElement(tm.Z,{isExclusive:d})),o.createElement("div",{className:"mode-header"},i),!!e&&o.createElement(e_.Z,{isMobileRelative:!1,indentation:4,placement:"bottom",targetId:l,isInitialVisible:t},u("viewCamStatuses.offline.requestPrivate.alreadyRequestingPrivateFromAnotherUser")),o.createElement("div",{id:l},o.createElement(p.ZP,{onClick:a,className:"start-button",size:"large",style:"private-modal",disabled:r},o.createElement(tx,{model:n,discountInfo:y,mode:f}))),s))},tH=()=>(0,C.C)(te.Q)?o.createElement("div",{className:"private-modal-spacer"}):null;var tK=l(91090),tV=l(51573),t$=l(71227),tW=l(76485),tz=l(40671);let tq=({isExclusivePrivateSupported:e,model:t,shouldStorePrivates:l,exclusivePrivateActivities:a,isModelPreview:r,offlinePrivateProposal:n,proposeError:s,isUpgradePrivate:i,isMicEnabled:c,isCamEnabled:d,privateStartedAt:m,timeDelta:p,privateMode:h,setPrivateMode:v,source:E,onClose:y,isOfflineRequestVisible:N})=>{let{trans:_}=(0,b.QT)(),{add:k}=(0,tW.V)(),A=(0,f.T)(),S=(0,C.C)(t$.m5),T=(0,eU.v1)(),w=!!(n||s),P=i&&(d||c),M=t.isLive?t.p2pMinDuration:t.p2pOfflineMinDuration;if(i&&m){let e=Date.now()+p,l=(0,eu.og)(e,m,eu.$v.minutes);M=Math.max(((t.isLive?t.privateMinDuration:t.privateOfflineMinDuration)||0)-Math.ceil(l),0)}let I=async()=>{if(r)return;if(S){A((0,u.VG)({modalName:g.Ny.START_PRIVATE})),A((0,tV.WL)(tK.Dt.AVP_START_EXCLUSIVE_PRIVATE));return}if(v("p2p"),k("RequestExclusivePrivateButton"),i){let e=!!P&&await (0,tn.Tb)("video"),t=!!P&&await (0,tn.Tb)("audio")&&e;A((0,tz.Ni)({isMicEnabled:t&&!!c,isCamEnabled:t&&!!d,source:E})),y();return}let e=!t.isLive;T.emit("button:Click on exclusive private show",{modelUsername:t.username,pricePerMinute:(0,tF.jj)(t,"p2p")}),A((0,V.d2)(g.FO.START_PRIVATE_MODAL_P2P,{minProp:e?"p2pOfflineMinimum":"p2pMinimum",modelId:t.id,privateType:"p2p",isOffline:e,triggerSource:E}))};return o.createElement(tU,{isExclusive:!0,isOfflineRequestVisible:N,proposeError:s,isTooltipInitialVisible:"p2p"===h,tooltipId:"request-exclusive-private-button",onStartClick:I,isStartButtonDisabled:!e||!!w,model:t,title:_("viewCam.privateModal.exclusivePrivate.title"),className:"exclusive"},e?o.createElement(o.Fragment,null,o.createElement(tc,{min:M,mode:"exclusive"}),o.createElement(tH,null),o.createElement(td,{isExclusive:!0},o.createElement(to,{icon:g.BROWSER_CAPABILITIES.safari15Dot1?"mic-on-2":"camera-4",content:o.createElement("span",null,o.createElement("span",null,_(g.BROWSER_CAPABILITIES.safari15Dot1?"viewCam.privateModal.exclusivePrivate.cam2audio":"viewCam.privateModal.exclusivePrivate.cam2cam")),!r&&o.createElement("span",{className:"feature-tooltip"},"\xa0",o.createElement(ti,{iconClassName:"feature-tooltip-icon",skipAutoCheck:!P}))),accent:!0}),o.createElement(to,{icon:"spy-off-2",content:_("viewCam.privateModal.exclusivePrivate.spyOff")}),l&&o.createElement(to,{icon:"play-4",content:_("viewCam.privateModal.exclusivePrivate.recording"),tooltip:{id:"private-modal-recording-tooltip-exclusive",content:_("viewCam.privateModal.exclusivePrivate.recordingTT")}}))):o.createElement(eW,{mode:q.hBS.MODE_EXCLUSIVE_PRIVATE}),o.createElement(ta,{activities:a,title:_("viewCam.privateModal.exclusivePrivate.activitiesTitle"),emptyTitle:_("viewCam.privateModal.exclusivePrivate.activitiesEmptyTitle"),emptyContent:_("viewCam.privateModal.exclusivePrivate.activitiesEmptyContent"),gender:t.gender,isExclusive:!0}))},tQ=({isFromCallMe:e,modelUsername:t})=>{let{trans:l}=(0,b.QT)();return o.createElement("div",{className:"start-private-modal-alert private-modal-body__request-offline-message"},o.createElement(v.Z,{img:"clock",size:20}),o.createElement("div",null,e&&o.createElement("div",{className:"private-modal-body__video-call-message"},o.createElement(h.Z,{messageId:"viewCam.privateModal.videoCallRequestMessageTop",elements:{modelname:o.createElement("strong",null,t)}})),l(e?"viewCam.privateModal.videoCallRequestMessage":"viewCam.privateModal.offlineRequestMessage",{period:10},"period")))},tj=({model:e,shouldStorePrivates:t,isPrivateSupported:l,activities:a,offlinePrivateProposal:r,proposeError:n,privateMode:s,isModelPreview:i,setPrivateMode:c,source:d,isOfflineRequestVisible:m})=>{let{trans:p}=(0,b.QT)(),h=(0,f.T)(),v=(0,C.C)(t$.m5),E=(0,eU.v1)(),y=!!(r||n),{add:N}=(0,tW.V)();return o.createElement(tU,{isOfflineRequestVisible:m,proposeError:n,isTooltipInitialVisible:"private"===s,tooltipId:"request-private-button",onStartClick:()=>{if(i)return;if(v){h((0,u.VG)({modalName:g.Ny.START_PRIVATE})),h((0,tV.WL)(tK.Dt.AVP_START_PRIVATE));return}let t=!e.isLive;c("private"),N("RequestPrivateButton"),E.emit("button:Click on private show",{modelUsername:e.username,pricePerMinute:(0,tF.jj)(e,"private")}),h((0,V.d2)(g.FO.START_PRIVATE_MODAL_PRIVATE,{minProp:t?"privateOfflineMinimum":"privateMinimum",modelId:e.id,privateType:"private",isOffline:t,triggerSource:d}))},isStartButtonDisabled:!l||!!y,model:e,title:p("viewCam.privateModal.private.title"),className:"private"},l?o.createElement(o.Fragment,null,o.createElement(tc,{min:e.isLive?e.privateMinDuration:e.privateOfflineMinDuration,mode:"private"}),o.createElement(tH,null),o.createElement(td,null,!e.doSpy&&o.createElement(to,{icon:"spy-off-2",content:p("viewCam.privateModal.private.spyOff"),tooltip:{id:"private-modal-spy-off-tooltip",content:p("viewCam.privateModal.private.spyOffTT")}}),t&&o.createElement(to,{icon:"play-4",content:p("viewCam.privateModal.private.recording"),tooltip:{id:"private-modal-recording-tooltip",content:p("viewCam.privateModal.private.recordingTT")}}))):o.createElement(eW,{mode:q.hBS.MODE_PRIVATE}),o.createElement(ta,{activities:a,title:p("viewCam.privateModal.private.activitiesTitle"),gender:e.gender}))};var tG=l(80936),tY=l(59683),tJ=l(78461),tX=l(12265),t0=l(4289),t1=l(25604);let t7=({className:e})=>{let{trans:t}=(0,b.QT)();return o.createElement("span",{className:(0,R.AK)("best-for-private-label",e)},o.createElement(t1.U,{className:"best-for-private-label__icon"})," ",o.createElement("span",{className:"best-for-private-label__text"},t("modelInfo.bestForPrivates")))};var t2=l(84926),t8=l(12710),t3=l(73804),t9=l(19144),t4=l(87489),t6=l(32284);let t5=({model:e,headerMessageId:t,triggerSource:l})=>{let{trans:a}=(0,b.QT)(),{ratingPrivate:r,ratingPrivateUsers:n}=e,s=(0,f.T)(),i=(0,t4.n3)(e),c=(0,C.C)(t3.ZG),d=(0,t8.Dm)(r,1),m="";return m=t||(e.isLive?"viewCam.privateModal.topDescription":"viewCam.privateModal.topDescriptionOffline"),o.createElement("div",{className:(0,R.AK)("private-modal-model-info",{"private-modal-model-info--upgrade":l===g.FO.VIEWCAM_UPGRADE_PRIVATE})},o.createElement(t9.q,{isBorderAvatar:!1,showOnlineStatus:!1,user:(0,t6.T$)(e),modelData:i},o.createElement("div",{className:"avatar-lock"},o.createElement(v.Z,{img:"lock-1"}))),o.createElement("div",null,!c&&o.createElement("span",{className:"description"},a(m)),o.createElement("span",{className:"name"},e.username),c&&o.createElement(t7,{className:"private-modal-model-info__best-for-private"})),!!(d&&n)&&o.createElement(t0.rU,{onClick:()=>{s((0,u.VG)({modalName:g.Ny.START_PRIVATE}))},to:`/${e.username}/profile#testimonials`,className:"rating private-modal-model-info__link-to-reviews"},o.createElement("span",{className:"rating private-modal-model-info__ratings-label"},a("viewCam.privateModal.ratingsCount",{count:n},"count")),o.createElement("div",null,o.createElement("span",{className:"rating-value"},d.toFixed(1)),o.createElement(t2.T,{rating:d}))))};var le=l(47722),lt=l(15196);let ll={root:"VrPrivateNotice#ES",content:"VrPrivateNotice__content#ED",button:"VrPrivateNotice__button#gS",baseText:"VrPrivateNotice__baseText#Za",vrIcon:"VrPrivateNotice__vrIcon#vF",vrLabel:"VrPrivateNotice__vrLabel#GJ",noWrap:"VrPrivateNotice__noWrap#Ai",accent:"VrPrivateNotice__accent#Lw",arrowIcon:"VrPrivateNotice__arrowIcon#Lh"},la=({modelName:e})=>{let t=(0,b.QT)();return o.createElement("div",{className:ll.root},o.createElement(le.mI,{className:ll.button,onClick:()=>eX.P4.show(lt.U,{modelName:e})},o.createElement("span",{className:ll.content},o.createElement(v.Z,{img:"badge-vr",size:24,className:(0,R.AK)(ll.vrIcon,ll.icon)}),o.createElement("span",{className:ll.baseText},t.trans("viewCam.privateModal.footerVRLead")),o.createElement("span",{className:ll.noWrap},o.createElement(h.Z,{messageId:"viewCam.privateModal.footerVRTail",elements:{name:o.createElement("span",{className:(0,R.AK)(ll.accent,ll.baseText)}),accent:o.createElement("span",{className:(0,R.AK)(ll.accent,ll.vrLabel)})},parameters:{model:e}}),o.createElement(v.Z,{className:(0,R.AK)(ll.baseText,ll.arrowIcon),img:"chevron-right-ds",size:22})))))},lr={emitButtonEvent:V.d2,processProposePrivateCancel:tX.x1,showModal:u.K4,showPurchaseModal:u.U1,upgradePrivate:tz.Ni},ln=(e,t)=>{let l=/^do[A-Z].*/g;return l.test(e)?1:l.test(t)?-1:0};class ls extends ey.Z{componentWillUnmount(){super.componentWillUnmount(),this.props.isModelPreview||this.props.processProposePrivateCancel()}renderTitle(){return this.props.isModelPreview?this.props.i18n.trans("viewCam.privateModal.howUsersSeeIt"):null}renderPrivateMode(){let{isPrivateEnabled:e,model:t,shouldStorePrivates:l,isPrivateSupported:a,privateActivities:r=[],publicActivities:n=[],offlinePrivateProposal:s,proposeError:i,isUpgradePrivate:c,isModelPreview:d,source:m}=this.props,{mode:u}=this.state;if(!e||c||!t)return null;let p=[...r].sort(ln);return o.createElement(tj,{isOfflineRequestVisible:this.getIsOfflineRequestVisible(),activities:[...p,...n],model:t,shouldStorePrivates:l,isPrivateSupported:a,offlinePrivateProposal:s,proposeError:i,privateMode:u,isModelPreview:d,setPrivateMode:this.setPrivateMode,source:m})}renderExclusiveMode(){let{isCam2camEnabled:e,isExclusivePrivateSupported:t,model:l,shouldStorePrivates:a,exclusivePrivateActivities:r=[],isModelPreview:n,offlinePrivateProposal:s,proposeError:i,isUpgradePrivate:c,isMicEnabled:d,isCamEnabled:m,privateStartedAt:u,timeDelta:p,onClose:h,source:v}=this.props,{mode:E}=this.state;if(!e||!l)return null;let g=[...r].sort(ln);return o.createElement(tq,{isOfflineRequestVisible:this.getIsOfflineRequestVisible(),isExclusivePrivateSupported:t,exclusivePrivateActivities:g,isUpgradePrivate:c,privateStartedAt:u,timeDelta:p,model:l,shouldStorePrivates:a,offlinePrivateProposal:s,proposeError:i,privateMode:E,setPrivateMode:this.setPrivateMode,onClose:h,isCamEnabled:m,isMicEnabled:d,isModelPreview:n,source:v})}renderContent(){let{isKiirooConnected:e,isPartnerKiirooConnected:t,user:l,model:a,isConnectionPending:r,isModelPreview:n,headerMessageId:s,triggerSource:i,isPrivateModalActivitiesEnabled:c,isVrModel:d}=this.props;if(!a||r)return o.createElement("div",{className:"private-modal-body loading"},o.createElement(eD.Z,null));let m=i===g.FO.CALL_ME_REQUEST_PRIVATE,u=this.getIsOfflineRequestVisible();return o.createElement("div",{className:(0,R.AK)("private-modal-body",{"private-modal-body--improved":c,"private-modal-body--short":d})},o.createElement(t5,{model:a,headerMessageId:s}),u&&o.createElement(tQ,{isFromCallMe:m,modelUsername:a.username}),o.createElement(tB,{isHappyHourAlertVisible:!u}),o.createElement("div",{className:"modes"},this.renderPrivateMode(),this.renderExclusiveMode()),d&&o.createElement(la,{modelName:a.username}),o.createElement(eL.T,{isKiirooConnected:e,isPartnerKiirooConnected:t,user:l,showModal:n?Q.Z:this.props.showModal}))}renderFooterContent(){let{isGiftButtonAvailable:e,model:t,isUpgradePrivate:l}=this.props;return t?o.createElement("div",{className:(0,R.AK)("private-modal-footer",{"private-modal-footer--hidden":l})},o.createElement("div",{className:"footer-description"},this.props.i18n.trans("viewCam.privateModal.footerDescription")),o.createElement(v.Z,{className:"footer-lock",img:"lock-1"}),e&&t.doP2p&&o.createElement("div",{className:"footer-gift-private"},o.createElement(P.ZP,{className:"footer-gift-private-button",onClick:this.buyPrivateAsGiftClick},o.createElement(v.Z,{className:"footer-gift-private-icon",img:"gift"}),this.props.i18n.trans("redeemGift.purchaseFlow.getPrivateAsGift")))):null}constructor(e){super(e),(0,n._)(this,"setPrivateMode",e=>{this.setState({privateMode:e})}),(0,n._)(this,"buyPrivateAsGiftClick",()=>{this.props.model&&this.props.showPurchaseModal({triggerSource:this.props.isGiftLimitReached?tJ.o_:tJ.MM,user:{id:this.props.model.id}})}),(0,n._)(this,"getIsOfflineRequestVisible",()=>{let{model:e,isUpgradePrivate:t}=this.props;return!(null==e?void 0:e.isLive)&&!t}),this.state={privateMode:"private"}}}(0,n._)(ls,"defaultProps",{...ey.Z.defaultProps,className:"private-modal",titlePosition:"outside",closeIcon:"close-3"});let li=(0,b.GV)(ls),lo=(0,tG.H)("isLayoutMoreThanTablet")((0,c.$j)((e,{isModelPreview:t,publicActivities:l,privateActivities:a,exclusivePrivateActivities:r})=>{let n={isPrivateModalActivitiesEnabled:(0,te.Q)(e),isGiftButtonAvailable:(0,tY.yI)(e),isGiftLimitReached:(0,tY.fA)(e),shouldStorePrivates:(0,e1.w3)(e),timeDelta:(0,e0.lY)(e),discountIcon:(0,tI.jz)("features/discounts/images/user-active-discount.svg"),fireIcon:(0,tI.jz)("common/components/ui/PromoBanner/assets/common/promo-icon-placeholder.svg")};if(t){let t=(0,T.M7)(e);return{model:t,user:null,isCam2camEnabled:null==t?void 0:t.doP2p,isPrivateEnabled:null==t?void 0:t.doPrivate,isSpyingEnabled:null==t?void 0:t.doSpy,isPrivateSupported:!0,isExclusivePrivateSupported:!0,publicActivities:l,privateActivities:a,exclusivePrivateActivities:r,isKiirooConnected:!1,isPartnerKiirooConnected:(0,K.eo)(e),offlinePrivateProposal:null,proposeError:null,privateStartedAt:null,...n}}let{proposeError:s}=e.viewCam,i=(0,eF.X0)(e);return{model:i,user:(0,W.xV)(e),isCam2camEnabled:(0,eK.RR)(e),isPrivateEnabled:(0,eK.bk)(e),isSpyingEnabled:null==i?void 0:i.doSpy,isPrivateSupported:(0,eK.NV)(e),isExclusivePrivateSupported:(0,eK.iJ)(e),publicActivities:(0,eF.k)(e),privateActivities:(0,eF.sW)(e),exclusivePrivateActivities:(0,eF.Xu)(e),isKiirooConnected:(0,K.eo)(e),isPartnerKiirooConnected:(0,K.XD)(e),offlinePrivateProposal:(0,L.Y5)(e),privateStartedAt:(0,eF.rK)(e),isVrModel:(0,eK.gi)(e),proposeError:s,...n}},lr)(li)),lc=null,ld={showModal:u.K4};class lm extends o.Component{render(){let{isConnectionPending:e}=this.state,{model:t}=this.props,l=this.props.isSpy?o.createElement(eG,{...this.props,model:t,isConnectionPending:e}):o.createElement(lo,{...this.props,isConnectionPending:e,isInPortal:!0});return o.createElement(eY.Z,{propsUpdateToActionsMap:this.propsUpdateToActionsMap,...this.props},l)}constructor(e){super(e),(0,n._)(this,"propsUpdateToActionsMap",[{update:["model.id"],action:()=>{let{isCam2camEnabled:e,isPrivateEnabled:t,isSpy:l}=this.props;t||e||l||this.props.onClose()}},{update:(e,t)=>{var l,a,r,n,s,i;return!!e.isSpy&&!!t.isSpy&&(null===(l=e.model)||void 0===l?void 0:l.status)!==(null===(a=t.model)||void 0===a?void 0:a.status)&&(null===(r=e.model)||void 0===r?void 0:r.id)===(null===(n=t.model)||void 0===n?void 0:n.id)&&(null===(s=t.model)||void 0===s?void 0:s.status)!==q.MODEL_STATUSES.STATUS_PRIVATE&&(null===(i=t.model)||void 0===i?void 0:i.status)!==q.MODEL_STATUSES.STATUS_VIRTUAL_PRIVATE},action:()=>{this.props.onClose()}},{update:["isSocketReady"],action:()=>{let{isSocketReady:e}=this.props;e?(lc&&(clearTimeout(lc),lc=null),this.setState({isConnectionPending:!1})):(this.setState({isConnectionPending:!0}),lc=window.setTimeout(()=>(this.showConnectionErrorModal(),Promise.reject(Error("Private show is unavailable at the moment, due to a technical problem."))),12e3))}},{update:(e,t)=>{let l=e.isPrivateEnabled||e.isCam2camEnabled,a=t.isPrivateEnabled||t.isCam2camEnabled;return l&&!a},action:()=>{this.props.onClose()}}]),(0,n._)(this,"showConnectionErrorModal",()=>{eX.P4.show(eJ.h,{i18nTranslate:{title:"viewCam.technicalProblem.title",description:"viewCam.technicalProblem.description",button:"viewCam.technicalProblem.button",action:"viewCam.technicalProblem.action"}})}),this.state={...this.state,isConnectionPending:!1}}}let lu=(0,c.$j)(e=>({model:(0,eB.ux)(e),isSocketReady:(0,e0.F7)(e),isCam2camEnabled:(0,eK.RR)(e),isPrivateEnabled:(0,eK.bk)(e)}),ld)(lm);var lp=l(33632),lh=l(49246),lv=l(47509),lE=l(84916),lg=l(39951),lb=l(10728),lf=l(38487),lC=l(43736),ly=l(29001),lN=l(58665);let l_={hideModal:u.VG,loadUnsignedPersons:lp.q2,signAllUnsignedPersons:lp.Fm,loadStaticContent:lE.z};class lk extends ey.Z{componentDidMount(){super.componentDidMount(),this.props.loadUnsignedPersons({}),this.props.loadStaticContent(lC.U.MODEL_AGREEMENT)}renderWarning(){let{trans:e}=this.props.i18n;return o.createElement("div",{className:"warning"},o.createElement("ul",null,e("signPersonsModal.warning.rules"),o.createElement("span",null,":"),o.createElement("li",null,"- ",e("signPersonsModal.warning.youAuthorizedRule")),o.createElement("li",null,"- ",e("signPersonsModal.warning.allAgreeRule"))),o.createElement("br",null),e("signPersonsModal.warning.removeOthers"),o.createElement("br",null),o.createElement(h.Z,{messageId:"signPersonsModal.warning.removeInstruction",elements:{strong:o.createElement("strong",null)}}))}constructor(...e){super(...e),(0,n._)(this,"closeClickHandler",()=>{this.props.hideModal()}),(0,n._)(this,"continueClickHandler",()=>{this.setState({isAgreementModalVisible:!0})}),(0,n._)(this,"cancelClickHandler",()=>{this.setState({isAgreementModalVisible:!1})}),(0,n._)(this,"signClickHandler",async()=>{if(await this.props.signAllUnsignedPersons(),this.props.notCloseAfterSign){var e,t;null===(e=(t=this.props).onSign)||void 0===e||e.call(t);return}this.props.isLoaderOnSign?this.setState({isLoading:!0}):this.props.hideModal()}),(0,n._)(this,"setPageHandler",e=>{this.props.loadUnsignedPersons({page:e})}),(0,n._)(this,"renderTable",()=>{let{unsignedPersons:e,isLoading:t,i18n:{trans:l,fromApiToRenderFormat:a}}=this.props,r=[{id:"person",name:"person",head:{text:l("signPersonsModal.fields.person")},renderBody:e=>e},{id:"gender",name:"gender",head:{text:l("signPersonsModal.fields.gender")},renderBody:e=>o.createElement(v.Z,{img:e,size:16})},{id:"birthDate",name:"birthDate",head:{text:l("signPersonsModal.fields.birthDate")},renderBody:e=>a(e,eu.TIME_FORMATS.DAY_MONTH_YEAR)},{id:"idNumber",name:"idNumber",head:{text:l("signPersonsModal.fields.id")},renderBody:e=>e},{id:"address",name:"address",head:{text:l("signPersonsModal.fields.address")},renderBody:e=>e},{id:"models",name:"models",head:{text:l("signPersonsModal.fields.models")},renderBody:e=>e.join(", ")}],n=e.map(e=>{let{firstName:t,lastName:l,gender:a,birthDate:r,models:n,idNumber:s,address:i}=e;return[`${(0,_.Z)(t)} ${(0,_.Z)(l)}`,a,r,s,i,n]});return o.createElement(lf.Z,{additionalClassName:"table-wrapper"},o.createElement(lg.w,{isTableBodyScrollable:!0,isPending:t,data:n,columns:r,options:{withLoader:!0,shouldForceShowLoaderOnPending:!0,translationId:"studio.persons"}}))}),(0,n._)(this,"renderPagination",()=>{let{currentPage:e,itemsCount:t,pageSize:l}=this.props;return o.createElement(lb.Z,{currentPage:e,itemsCount:t,pageChangeCallback:this.setPageHandler,pageSize:l,hiddenButtons:!1,additionalClassName:"pagination"})}),(0,n._)(this,"renderActions",()=>{let{trans:e}=this.props.i18n;return o.createElement("div",{className:"sign-persons-modal__actions"},o.createElement("div",{className:"sign-persons-modal__left"},o.createElement(P.ZP,{onClick:this.continueClickHandler},e("button.continue"))),o.createElement(P.ZP,{onClick:this.closeClickHandler},e("signPersonsModal.cancel")))}),(0,n._)(this,"renderAgreementModal",()=>{let{isAgreementModalVisible:e}=this.state,{modelAgreement:t,canonicalDomainName:l,i18n:{trans:a}}=this.props;if(!e)return null;let r=(0,ly.sU)({content:t,exclude:["companyName","companyAddress","date","canonicalHost","canonicalHostUppercase"],blankValue:"_______________"});return e&&o.createElement(lh.l,{isSigned:!1,modelAgreement:r,onClose:this.cancelClickHandler,onSign:this.signClickHandler,canonicalDomainName:l,isInBackground:!0,person:{},username:"",checkboxLabel:a("signPersonsModal.agreementCheckboxLabel"),isLoading:this.state.isLoading})}),(0,n._)(this,"renderTitle",()=>o.createElement("span",null,this.props.i18n.trans("signPersonsModal.title"))),(0,n._)(this,"renderContent",()=>o.createElement(o.Fragment,null,this.renderTable(),this.renderPagination(),this.renderWarning(),this.renderActions(),this.renderAgreementModal()))}}(0,n._)(lk,"defaultProps",{...ey.Z.defaultProps,className:"sign-persons-modal",hasInnerScroll:!1,pageSize:lv.d});let lA=(0,b.GV)(lk),lS=(0,c.$j)(e=>{var t;let{unsignedPersons:l,isLoadingUnsignedPersons:a,unsignedPersonsCount:r,unsignedPersonsPage:n}=e.persons;return{isLoading:a,unsignedPersons:l,currentPage:n,itemsCount:r,canonicalDomainName:(null===(t=e.whiteLabels)||void 0===t?void 0:t.canonicalDomainName)||"",modelAgreement:lC.U.MODEL_AGREEMENT?(0,lN.w)(e,lC.U.MODEL_AGREEMENT):""}},l_)(lA);var lT=l(51094);let lw={root:"StopVirtualPrivateModal#cr",icon:"StopVirtualPrivateModal__icon#jb",content:"StopVirtualPrivateModal__content#Ze",title:"StopVirtualPrivateModal__title#Mf",descriptionContainer:"StopVirtualPrivateModal__descriptionContainer#eA",descriptionWarning:"StopVirtualPrivateModal__descriptionWarning#K6",button:"StopVirtualPrivateModal__button#Tu",button_cancel:"StopVirtualPrivateModal__button_cancel#BQ",descriptionAccent:"StopVirtualPrivateModal__descriptionAccent#xr",buttonWrapper:"StopVirtualPrivateModal__buttonWrapper#ef"},lP=e=>{let{trans:t}=(0,b.QT)(),l=(0,C.C)(T.eH),a=(0,C.C)(m.Mu),r=a*l,n=(0,f.T)(),s=t=>l=>{n((0,V.d2)(g.FO.STOP_VIRTUAL_PRIVATE_SHOW_MODAL,{button:t,spiesNumber:a,incomePerMinute:r})),e.onClose(),"stop"===t&&e.onClick(l)};return o.createElement(E.Z,{open:!0,onClose:e.onClose,closeIconPosition:"rightHeader",className:lw.root},o.createElement("div",{className:lw.content},o.createElement(v.Z,{className:lw.icon,img:"eye-ds",size:48}),o.createElement(h.Z,{className:lw.title,messageId:"privateToSpyModeTransition.stopVirtualPrivateShowModal.title",wrapper:"div"}),o.createElement("div",{className:lw.descriptionContainer},o.createElement("span",{className:lw.descriptionWarning},t("privateToSpyModeTransition.stopVirtualPrivateShowModal.description")),o.createElement(h.Z,{parameters:{spiesCount:a,tokens:r},elements:{strong:o.createElement("strong",{className:lw.descriptionAccent}),spyIcon:o.createElement("span",null)},messageId:"privateToSpyModeTransition.spiesInfo",choiceParameter:"spiesCount"}),o.createElement(h.Z,{parameters:{tokens:r},elements:{strong:o.createElement("strong",{className:lw.descriptionAccent})},messageId:"privateToSpyModeTransition.totalEarningsInfo"})),o.createElement("div",{className:lw.buttonWrapper},o.createElement(p.ZP,{className:(0,R.AK)(lw.button,lw.button_cancel),onClick:s("stop")},t("privateToSpyModeTransition.stopVirtualPrivateShowModal.stopButton")),o.createElement(p.ZP,{className:lw.button,onClick:s("cancel"),style:"apply-2-ds"},t("privateToSpyModeTransition.stopVirtualPrivateShowModal.continueButton")))))};var lM=l(71504),lI=l(93337);let lR=({isPrime:e,isHighlighted:t,icon:l,title:a,maxItems:r,items:n})=>{let s=(0,o.useMemo)(()=>r?n.slice(0,r):n,[n,r]);return o.createElement("div",{className:(0,R.AK)("broadcasting-rules-block",{"broadcasting-rules-block--highlighted":t})},o.createElement("h3",{className:(0,R.AK)("broadcasting-rules-title",{prime:e||t})},l&&o.createElement(v.Z,{img:l,size:18}),a),o.createElement("ul",null,s.map(e=>o.createElement("li",{key:e},o.createElement("span",{className:"broadcasting-rules-list-mark"}),e))))},lZ=({className:e,children:t,isExpanded:l,setIsExpanded:a})=>{let{trans:r}=(0,b.QT)();return o.createElement("div",{className:(0,R.AK)("broadcasting-rules-expander",e,{expanded:l})},l&&t,!l&&o.createElement("div",{className:"title",onClick:()=>a(!0)},r("startBroadcasting.rules.showMore"),o.createElement(v.Z,{size:9,className:"expand-icon",img:"chevron-down"})))},lL=({className:e,inModal:t,effectiveDate:l})=>{let{trans:a,formatTime:r}=(0,b.QT)(),[n,s]=(0,o.useState)(!!t);return o.createElement("div",{className:(0,R.AK)(e,"broadcasting-rules")},!t&&o.createElement("div",{className:"broadcasting-rules-header"},a("startBroadcasting.modelRules.title")),o.createElement("div",{className:"broadcasting-rules-content"},o.createElement("div",{className:"broadcasting-rules-dates"},o.createElement("div",null,a("startBroadcasting.modelRules.effectiveDate"),":"," ",r(l,eu.TIME_FORMATS.HUMAN_DATE)),o.createElement("div",null,a("startBroadcasting.modelRules.lastModified"),":"," ",r("2021-07-28T00:00:00Z",eu.TIME_FORMATS.HUMAN_DATE))),o.createElement(lR,{title:a("startBroadcasting.rules.generalTitle"),icon:"note",items:[a("startBroadcasting.rules.ruleAge"),a("startBroadcasting.rules.ruleIdentity")]}),o.createElement(lR,{title:a("startBroadcasting.rules.broadcastingTitle"),icon:"webcam",items:[a("startBroadcasting.rules.ruleSingleAccount"),a("startBroadcasting.rules.ruleLive"),a("startBroadcasting.rules.ruleMicrophone"),a("startBroadcasting.rules.ruleBeforeStart"),a("startBroadcasting.rules.ruleTurnOff"),a("startBroadcasting.rules.ruleMatchingBroadcast"),a("startBroadcasting.rules.ruleClearBroadcast"),a("startBroadcasting.rules.ruleMatchingProfile"),a("startBroadcasting.rules.ruleAvatarNoNudity"),a("startBroadcasting.rules.ruleLocalLaws",{siteName:(0,C.C)(eE.hA)}),a("startBroadcasting.rules.ruleExclusivePrivate")]}),o.createElement(lR,{title:a("startBroadcasting.modelRules.strictlyProhibitedActions.title"),icon:"wrong-fill",isPrime:!0,isHighlighted:!0,items:a("startBroadcasting.modelRules.strictlyProhibitedActions.text").split("\n")}),o.createElement(lZ,{isExpanded:n,setIsExpanded:s},o.createElement(lR,{title:a("startBroadcasting.modelRules.toKeepTheSiteSafeWeAlsoProhibit.title"),icon:"wrong-fill",isPrime:!0,items:a("startBroadcasting.modelRules.toKeepTheSiteSafeWeAlsoProhibit.text").split("\n")}),o.createElement(lR,{title:a("startBroadcasting.modelRules.toKeepTheSiteCleanAndFairWeAlsoProhibit.title"),icon:"wrong-fill",isPrime:!0,items:[a("startBroadcasting.modelRules.toKeepTheSiteCleanAndFairWeAlsoProhibit.text.username"),a("startBroadcasting.modelRules.toKeepTheSiteCleanAndFairWeAlsoProhibit.text.scams"),a("startBroadcasting.modelRules.toKeepTheSiteCleanAndFairWeAlsoProhibit.text.agreements"),a("startBroadcasting.modelRules.toKeepTheSiteCleanAndFairWeAlsoProhibit.text.expenses"),a("startBroadcasting.modelRules.toKeepTheSiteCleanAndFairWeAlsoProhibit.text.offSite"),a("startBroadcasting.modelRules.toKeepTheSiteCleanAndFairWeAlsoProhibit.text.fraud"),a("startBroadcasting.modelRules.toKeepTheSiteCleanAndFairWeAlsoProhibit.text.ads"),a("startBroadcasting.modelRules.toKeepTheSiteCleanAndFairWeAlsoProhibit.text.promo"),a("startBroadcasting.modelRules.toKeepTheSiteCleanAndFairWeAlsoProhibit.text.spam"),a("startBroadcasting.modelRules.toKeepTheSiteCleanAndFairWeAlsoProhibit.text.fakeToys"),a("startBroadcasting.modelRules.toKeepTheSiteCleanAndFairWeAlsoProhibit.text.fakeTraffic"),a("startBroadcasting.modelRules.toKeepTheSiteCleanAndFairWeAlsoProhibit.text.competing"),a("startBroadcasting.modelRules.toKeepTheSiteCleanAndFairWeAlsoProhibit.text.referral"),a("startBroadcasting.modelRules.toKeepTheSiteCleanAndFairWeAlsoProhibit.text.inform")]}),o.createElement(lR,{title:a("startBroadcasting.modelRules.weAlsoDoNotAllowTo.title"),icon:"wrong-fill",isPrime:!0,items:a("startBroadcasting.modelRules.weAlsoDoNotAllowTo.text").split("\n")}),o.createElement("div",{className:"broadcasting-rules-bottom-block"},a("startBroadcasting.modelRules.ifUsersPromptYou")),o.createElement("div",{className:"broadcasting-rules-bottom-block"},a("startBroadcasting.modelRules.ourPlatformIsMadeFor"))),!t&&o.createElement("div",{className:"broadcasting-rules-footer"},o.createElement("p",null,o.createElement(w.Z,{wikiLinkKey:"rulesForModels",className:"broadcasting-rules-link"},a("startBroadcasting.rules.ruleReadOnline"),o.createElement(v.Z,{img:"external-link",size:16}))),o.createElement("p",{className:"broadcasting-rules-annotation"},o.createElement(h.Z,{messageId:"startBroadcasting.rules.ruleAgreeByStart",elements:{link:o.createElement(t0.rU,{target:"_blank",className:"broadcasting-rules-link",to:"terms"})}})))))};var lD=l(41452),lB=l(80176),lF=l(71739);let lO={acceptModelRules:eP.G4,routerPush:lB.J5,setShowModelRulesAgreement:lF.a8.actions.setShowModelRulesAgreement};class lx extends ey.Z{renderContent(){return o.createElement(lD.Z,{onClose:this.onClose,isWrapperCloseDisabled:!0,header:this.props.i18n.trans("startBroadcasting.modelRules.titleUpdated"),footer:this.renderFooter()},o.createElement(lf.Z,null,o.createElement(lL,{inModal:!0,effectiveDate:new Date})))}constructor(...e){super(...e),(0,n._)(this,"checkboxChangeHandler",()=>{let{isCheckboxChecked:e}=this.state;this.setState({isCheckboxChecked:!e})}),(0,n._)(this,"submitClickHandler",e=>{e.preventDefault(),this.props.acceptModelRules(),this.props.onClose(),this.props.setShowModelRulesAgreement(!1)}),(0,n._)(this,"onClose",()=>{this.props.onClose(),this.props.routerPush("/")}),(0,n._)(this,"renderFooter",()=>{let{isCheckboxChecked:e}=this.state,t="modal-rules-popup-checkbox";return o.createElement(o.Fragment,null,o.createElement("div",{className:"modal-rules-footer-top"},o.createElement("div",{className:"modal-rules-popup-input"},o.createElement(G.Z,{checked:e,id:t,theme:"grey",onChange:this.checkboxChangeHandler,type:"checkbox"}),o.createElement("label",{htmlFor:t},this.props.i18n.trans("startBroadcasting.modelRules.iveReadUnderstood"))),o.createElement(P.ZP,{className:"modal-rules-continue-btn--top",onClick:this.submitClickHandler,disabled:!e,style:"default-filled",size:"medium"},this.props.i18n.trans("button.continue"))),o.createElement("div",{className:"modal-rules-footer-bottom"},o.createElement(P.ZP,{onClick:this.onClose,style:"default-outline",size:"medium"},this.props.i18n.trans("button.cancel")),o.createElement(P.ZP,{className:"modal-rules-continue-btn--bottom",onClick:this.submitClickHandler,disabled:!e,style:"default-filled",size:"medium"},this.props.i18n.trans("button.continue"))))})}}(0,n._)(lx,"defaultProps",{...ey.Z.defaultProps,className:"model-rules-modal full-cover",isCloseBtnShown:!1,isWrapperCloseDisabled:!0,titlePosition:"none"});let lU=(0,b.GV)(lx),lH=(0,c.$j)(null,lO)(lU);var lK=l(82168),lV=l(988),l$=l(98131),lW=l(98396),lz=l(14151);let lq=({notification:e})=>{let{trans:t,getTranslationsList:l}=(0,b.QT)(),a=(0,o.useMemo)(()=>l(`broadcast.externalBroadcastPausedTips.${e}`,3),[e,l]);return o.createElement("div",{className:"obs-notifications-modal__description"},o.createElement("div",{className:"obs-notifications-modal__description-header"},t(`broadcast.externalBroadcastPausedTips.${e}.title`)),o.createElement("ol",{className:"obs-notifications-modal__description-list"},a.map(e=>o.createElement("li",{key:e},o.createElement(h.Z,{elements:{em:o.createElement("span",{className:"obs-notifications-modal__description-em"}),br:o.createElement("br",null)},messageId:e})))),e===lz.JS.bFrames&&o.createElement(o.Fragment,null,o.createElement("div",{className:"obs-notifications-modal__description-tooltip"},t("broadcast.externalBroadcastPausedTips.bFramesExtra.or")),o.createElement("ol",{className:"obs-notifications-modal__description-list"},o.createElement("li",null,t("broadcast.externalBroadcastPausedTips.bFramesExtra.1")),o.createElement("li",null,t("broadcast.externalBroadcastPausedTips.bFramesExtra.2")),o.createElement("li",null,t("broadcast.externalBroadcastPausedTips.bFramesExtra.3"))),o.createElement("div",{className:"obs-notifications-modal__description-tooltip"},o.createElement("p",null,t("broadcast.externalBroadcastPausedTips.bFramesExtra.p1")),t("broadcast.externalBroadcastPausedTips.bFramesExtra.p2"))),e===lz.JS.fps&&o.createElement("div",{className:"obs-notifications-modal__description-tooltip"},t("broadcast.externalBroadcastPausedTips.fps.tooltip")))},lQ=({notifications:e,type:t,onClose:l})=>{let{trans:a}=(0,b.QT)(),r=(0,C.C)(L.bV);return o.createElement(E.Z,{open:!0,closeIconPosition:"rightHeader",className:(0,R.AK)("obs-notifications-modal",`obs-notifications-modal-${t}`),onClose:l},e.map(e=>o.createElement(lq,{key:e,notification:e})),r&&o.createElement($.Z,{href:r,target:"_blank"},a("broadcast.externalBroadcastLink")),o.createElement(P.ZP,{onClick:l,style:"default"},a("button.ok")))};var lj=l(40249);let lG=({webRTCForceStopReason:e,onClose:t})=>{let{trans:l}=(0,b.QT)(),a=(0,f.T)(),r=()=>{a(lj.eI.actions.resetStartBroadcastError()),t()};return o.createElement(E.Z,{open:!0,closeIconPosition:"rightHeader",className:"webrtc-external-force-idle-modal",onClose:r},o.createElement(v.Z,{img:"camera-offline",size:63,className:"webrtc-external-force-idle-modal__icon"}),o.createElement("div",{className:"webrtc-external-force-idle-modal__description"},o.createElement(h.Z,{wrapper:null,messageId:`broadcast.webRTCForceStopReasons.${e}`,elements:{br:o.createElement("br",null),minQuality:o.createElement("div",{className:"webrtc-external-force-idle-modal__min-quality"})}})),o.createElement(P.ZP,{onClick:r,style:"default"},l("button.ok")))};var lY=l(49055),lJ=l(82512);let lX=(0,o.memo)(({onResendVerificationEmail:e,onClose:t,nextMainPersonName:l,userEmail:a,isSendEmailSuccess:r})=>{let{trans:n}=(0,b.QT)();return o.createElement("div",{className:"email-verification-content"},o.createElement("div",{className:"email-verification-content__body"},o.createElement(v.Z,{img:"mail",size:48,className:"email-verification-content__icon"}),o.createElement("span",{className:"email-verification-content__title"},n("personList.mainPerson.checkEmailModalTitle")),o.createElement(h.Z,{messageId:"personList.mainPerson.confirmationEmailText-1",className:"email-verification-content__text",elements:{email:o.createElement("span",{className:"email-verification-content__text--email"},a)}}),o.createElement(h.Z,{messageId:"personList.mainPerson.confirmationEmailText-2",className:"email-verification-content__text",elements:{user:o.createElement("span",{className:"email-verification-content__text--user"},l)}})),o.createElement("div",{className:"email-verification-content__buttons"},o.createElement("button",{type:"button",className:(0,R.AK)("email-verification-content__link-button",{"email-verification-content__link-button--success":r}),onClick:e},n("personList.mainPerson.confirmationEmailLinkText")),r&&o.createElement("span",{className:"email-verification-content__resend-success-text"},n("personList.mainPerson.confirmationEmailSendSuccessText")),o.createElement(p.ZP,{type:"button",size:"small",onClick:t,className:"email-verification-content__button"},n("personList.mainPerson.confirmationEmailButtonText"))))}),l0=(0,o.memo)(({onChangeMainPerson:e,onClose:t,currentMainPersonName:l,nextMainPersonName:a})=>{let{trans:r}=(0,b.QT)();return o.createElement("div",{className:"set-person-content"},o.createElement("div",{className:"set-person-content__body"},o.createElement(v.Z,{img:"user-check-ds",size:48,className:"set-person-content__icon"}),o.createElement("span",{className:"set-person-content__title"},r("personList.mainPerson.setAsMainModalTitle",{personName:a})),o.createElement("div",{className:"set-person-content__users"},l&&o.createElement(h.Z,{messageId:"personList.mainPerson.currentMainPerson",className:"set-person-content__user",elements:{user:o.createElement("span",{className:"set-person-content__current-user"},l)}}),o.createElement(h.Z,{messageId:"personList.mainPerson.newMainPerson",className:"set-person-content__user",elements:{user:o.createElement("span",{className:"set-person-content__next-user"},a)}}))),o.createElement("div",{className:"set-person-content__buttons"},o.createElement(p.ZP,{type:"button",size:"small",style:"apply-2-ds-enforced",onClick:e,className:"set-person-content__button"},r("personList.mainPerson.confirmMainPersonButtonText")),o.createElement(p.ZP,{type:"button",size:"small",onClick:t,className:"set-person-content__button"},r("personList.mainPerson.cancelButtonText"))))}),l1=(0,o.memo)(({currentMainPersonName:e,nextMainPersonName:t,emailVerificationIsSent:l,userEmail:a,personId:r,modelId:n})=>{let s=(0,f.T)(),i=(0,C.C)(lJ.VQ),c=(0,C.C)(W.j9),d=(0,C.C)(lJ.ho),m=(0,C.C)(W.xV),p=(0,C.C)(L.cu),h=(0,C.C)(L.a2),[v,g]=(0,o.useState)(!1),b=(0,o.useCallback)(()=>{s((0,u.VG)())},[s]),y=(0,o.useCallback)(async()=>{s((0,lp.bf)({personId:r,modelId:n,currentMainPersonName:e,nextMainPersonName:t,userEmail:m.email}))},[e,s,n,t,r,m.email]),N=(0,o.useCallback)(async()=>{g(!1),await s((0,lp.bf)({personId:r,modelId:n,currentMainPersonName:e,nextMainPersonName:t,userEmail:m.email})),g(!0)},[e,s,n,t,r,m]),_=(0,o.useCallback)(()=>{s((0,lp.Qm)({personId:r,modelId:n,studioId:i,isStudio:c,isCurrentUserStudioAdmin:p,adminStudioId:h}))},[s,c,n,r,i,p,h]),k=c||d||p?_:y;return o.createElement(E.Z,{open:!0,onClose:b,closeIconPosition:"rightHeader",isCloseOnClickOutside:!0,contentClassName:"change-main-person-confirm-modal"},l?o.createElement(lX,{onClose:b,onResendVerificationEmail:N,nextMainPersonName:t,userEmail:a,isSendEmailSuccess:v}):o.createElement(l0,{onClose:b,onChangeMainPerson:k,currentMainPersonName:e,nextMainPersonName:t}))});var l7=l(84185),l2=l(21044);let l8={updateProfile:l7.ck},l3=(0,c.$j)(null,l8)(e=>{let{trans:t}=(0,b.QT)();return o.createElement(I.Z,{className:"modal-wrapper disable-public-record-modal",onClose:e.onClose,source:"savePrivateRecordModal",titlePosition:"outside",isWrapperCloseDisabled:!0},o.createElement(v.Z,{img:"camera-3"}),o.createElement("div",{className:"disable-public-record-modal-title"},t("broadcastSettings.blocks.recordSettings.disablePublicRecordModal.header")),o.createElement("div",{className:"disable-public-record-modal-body"},t("broadcastSettings.blocks.recordSettings.disablePublicRecordModal.description")),o.createElement("div",{className:"disable-public-record-modal-footer"},o.createElement(P.ZP,{onClick:()=>{e.updateProfile({isStorePublicRecordings:!1,isForceStorePublicRecordings:!0},l2.UPDATE_TYPES.SETTINGS_PUBLIC_RECORD,{notifications:{}}),e.onClose()},size:"default",style:"primary"},t("broadcastSettings.blocks.recordSettings.disablePublicRecordModal.submit"))))});var l9=l(51144),l4=l(60963);let l6=e=>{let{trans:t}=(0,b.QT)(),l=e.restricted?"copy":"continue";return o.createElement("div",{className:e.className},o.createElement(P.ZP,{style:"apply-ds",onClick:e.onContinue,className:"myclub-copy-modal__btn myclub-copy-modal__btn--continue"},t(`settings.myClubCopyContentModal.buttons.${l}`)),o.createElement(P.ZP,{onClick:e.onCancel,className:"myclub-copy-modal__btn"},t("settings.myClubCopyContentModal.buttons.cancel")))},l5=()=>{let{trans:e}=(0,b.QT)(),t="my-club-hint";return o.createElement("tr",{className:"myclub-copy-modal__content-area-table-header"},o.createElement("th",{className:"myclub-copy-modal__content-area-th"},"stripchat"),o.createElement("th",null),o.createElement("th",{className:"myclub-copy-modal__content-area-th"},o.createElement("div",{className:"myclub-copy-modal__content-area-th--my-club"},o.createElement("span",null,"my.club"),o.createElement("span",{id:t,className:"myclub-copy-modal__content-area-th-icon-container"},o.createElement(v.Z,{img:"question"})),o.createElement(e_.Z,{targetId:t,isMobileRelative:!1,placement:"top",className:"myclub-copy-modal__content-tooltip"},e("settings.myClubCopyContentModal.myClubTooltip")))))},ae=e=>{let t=`settings.myClubCopyContentModal.${e.messageId}`;return e.amount?o.createElement("li",{className:"myclub-copy-modal__content-tooltip-list-item"},o.createElement(h.Z,{messageId:t,parameters:{count:e.amount},choiceParameter:"count",elements:{em:o.createElement("span",null)}})):null},at=e=>o.createElement(e_.Z,{targetId:e.targetId,isMobileRelative:!1,placement:"top",className:"myclub-copy-modal__content-tooltip"},o.createElement("ul",{className:"myclub-copy-modal__content-tooltip-list"},o.createElement(ae,{messageId:"albumsCountDescription",amount:e.albumsCount}),o.createElement(ae,{messageId:"videosCountDescription",amount:e.videosCount}),o.createElement(ae,{messageId:"postsCountDescription",amount:e.postsCount}))),al=e=>{var t,l,a;let r="settings.myClubCopyContentModal.accessDescriptions",n=`myclub-copy-modal-content-area-td-${e.idPostfix}`,s=(t=e.albumsCount,(null!=t?t:0)+(null!=(l=e.videosCount)?l:0)+(null!=(a=e.postsCount)?a:0));return s?o.createElement("tr",{className:"myclub-copy-modal__content-area-table-row"},o.createElement("td",{className:"myclub-copy-modal__content-area-td myclub-copy-modal__content-area-td--stripchat"},o.createElement(h.Z,{messageId:`${r}.stripchat.${e.scStatusId}`}),o.createElement("span",{id:n,className:"myclub-copy-modal__content-area-amount"},"\xa0(",s,")"),o.createElement(at,{targetId:n,albumsCount:e.albumsCount,videosCount:e.videosCount,postsCount:e.postsCount})),o.createElement("td",{className:"myclub-copy-modal__content-area-td"},e.copied?o.createElement("div",{className:"myclub-copy-modal__arrow"},o.createElement(v.Z,{img:"arrow-right-2"})):o.createElement("div",{className:"myclub-copy-modal__cross"},o.createElement(v.Z,{img:"close-6"}))),o.createElement("td",{className:"myclub-copy-modal__content-area-td myclub-copy-modal__content-area-td--myclub"},o.createElement(h.Z,{messageId:`${r}.myClub.${e.mcStatusId}`,elements:{em:o.createElement("span",{className:"myclub-copy-modal__content-area-em"})}}))):null};al.defaultProps={copied:!0},function(e){e.PAID="paid",e.SUBSCRIBERS="subscribers",e.REGISTERED="registered",e.FRIENDS="friends",e.FREE="free",e.UNPUBLISHED="unpublished"}(a||(a={})),function(e){e.WILL_NOT_BE_COPIED="willNotBeCopied",e.FREE="free",e.PAID="paid"}(r||(r={}));let aa=e=>{var t,l,n,s,i,c,d,m,u,p,h,v,E,g,b,f,C,y;return o.createElement("div",{className:"myclub-copy-modal__content-area-table-wrapper"},o.createElement("table",{className:"myclub-copy-modal__content-area-table"},o.createElement("tbody",null,o.createElement(l5,null),o.createElement(al,{idPostfix:"paid",albumsCount:null===(t=e.paid)||void 0===t?void 0:t.albums,videosCount:null===(l=e.paid)||void 0===l?void 0:l.videos,postsCount:null===(n=e.paid)||void 0===n?void 0:n.posts,scStatusId:a.PAID,mcStatusId:r.PAID}),o.createElement(al,{idPostfix:"subscribers",albumsCount:null===(s=e.forSubscribers)||void 0===s?void 0:s.albums,videosCount:null===(i=e.forSubscribers)||void 0===i?void 0:i.videos,postsCount:null===(c=e.forSubscribers)||void 0===c?void 0:c.posts,scStatusId:a.SUBSCRIBERS,mcStatusId:r.PAID}),o.createElement(al,{idPostfix:"registered",albumsCount:null===(d=e.forRegistered)||void 0===d?void 0:d.albums,videosCount:null===(m=e.forRegistered)||void 0===m?void 0:m.videos,postsCount:null===(u=e.forRegistered)||void 0===u?void 0:u.posts,scStatusId:a.REGISTERED,mcStatusId:r.FREE}),o.createElement(al,{idPostfix:"friends",albumsCount:null===(p=e.forFriends)||void 0===p?void 0:p.albums,videosCount:null===(h=e.forFriends)||void 0===h?void 0:h.videos,postsCount:null===(v=e.forFriends)||void 0===v?void 0:v.posts,scStatusId:a.FRIENDS,mcStatusId:r.FREE}),o.createElement(al,{idPostfix:"free",albumsCount:null===(E=e.free)||void 0===E?void 0:E.albums,videosCount:null===(g=e.free)||void 0===g?void 0:g.videos,postsCount:null===(b=e.free)||void 0===b?void 0:b.posts,scStatusId:a.FREE,mcStatusId:r.FREE}),o.createElement(al,{idPostfix:"unpublished",albumsCount:null===(f=e.unpublished)||void 0===f?void 0:f.albums,videosCount:null===(C=e.unpublished)||void 0===C?void 0:C.videos,postsCount:null===(y=e.unpublished)||void 0===y?void 0:y.posts,scStatusId:a.UNPUBLISHED,mcStatusId:r.WILL_NOT_BE_COPIED,copied:!1}))))},ar=e=>o.createElement("div",{className:(0,R.AK)(e.className,{"myclub-copy-modal__content-area":!0,"myclub-copy-modal__content-area--disabled":e.disabled})},o.createElement("div",{className:"myclub-copy-modal__content-area-header"},o.createElement(v.Z,{img:"lock-1",className:"myclub-copy-modal__content-area-icon"}),o.createElement(h.Z,{messageId:"settings.myClubCopyContentModal.contentAreaTitle",className:"myclub-copy-modal__content-area-title"})),o.createElement(aa,e)),an=e=>e.number?o.createElement(h.Z,{messageId:`settings.myClubCopyContentModal.${e.labelId}`,className:"myclub-copy-modal__counter",parameters:{count:e.number},choiceParameter:"count",elements:{em:o.createElement("span",{className:"myclub-copy-modal__counter-number"})}}):null;an.defaultProps={number:0};let as=e=>o.createElement("div",{className:(0,R.AK)(e.className,{"myclub-copy-modal__counters":!0,"myclub-copy-modal__counters--disabled":e.disabled})},o.createElement(an,{labelId:"postsCountDescription",number:e.postsCount}),o.createElement(an,{labelId:"albumsCountDescription",number:e.albumsCount}),o.createElement(an,{labelId:"videosCountDescription",number:e.videosCount})),ai=e=>{let{trans:t}=(0,b.QT)();return o.createElement("div",{className:(0,R.AK)(e.className,{"myclub-copy-modal__header":!0})},o.createElement("div",{className:"myclub-copy-modal__title"},t("settings.myClubCopyContentModal.title")),o.createElement("div",{className:"mc-copy-modal__description"},o.createElement(h.Z,{messageId:"settings.myClubCopyContentModal.description",elements:{em:o.createElement("span",{className:"myclub-copy-modal__description--em"})}})))};var ao=l(32465);let ac=e=>{let{trans:t}=(0,b.QT)();return o.createElement("div",{className:(0,R.AK)(e.className,{"myclub-copy-modal__switcher":!0,"myclub-copy-modal__switcher--active":e.active})},o.createElement("span",{className:"myclub-copy-modal__switcher-label"},t("settings.myClubCopyContentModal.toggleLabel")),o.createElement(ev.Z,{isChecked:e.active,theme:"light",onChange:e.toggle,iconVisibility:!1}))},ad={myClubImport:l9.Z.myClubImport,myClubSignUp:l9.Z.myClubSignUp,contentCopyAgreement:l9.Z.myClubDataTransferAgreement,hideModal:l9.Z.hideCopyContentModal},am=(0,c.$j)(function(e){return{albumsCount:(0,l4.C9)(e),videosCount:(0,l4.Bw)(e),postsCount:(0,l4.ac)(e),myClubSignUpUrl:(0,l4._$)(e),restricted:(0,l4.yn)(e),...(0,l4.kH)(e)}},ad)(e=>{let{albumsCount:t,videosCount:l,postsCount:a,myClubImport:r,hideModal:n,myClubSignUp:s,...i}=e,c=function(){let[e,,,t]=(0,ao.O)(!0);return{active:e,toggle:t}}(),d=()=>s(c.active).then(t=>{t&&e.myClubSignUpUrl&&window.open(e.myClubSignUpUrl+t,"_blank")}),m=async()=>{let{restricted:t}=e;(t?Promise.resolve():e.contentCopyAgreement()).then(()=>e.restricted?r():d()).finally(n)};return o.createElement(I.Z,{modalBodyAdditionalClassName:"myclub-copy-modal-body",className:"myclub-copy-modal-wrapper",onClose:n,closeIcon:"close-5",source:g.Ny.MY_CLUB_COPY_CONTENT,titlePosition:"outside"},o.createElement("div",{className:"myclub-copy-modal-content"},o.createElement(ai,{className:"myclub-copy-modal-content__header"}),!e.restricted&&o.createElement(ac,{className:"myclub-copy-modal-content__switcher",active:c.active,toggle:c.toggle}),o.createElement(as,{className:"myclub-copy-modal-content__counters",albumsCount:t,videosCount:l,postsCount:a,disabled:!c.active}),o.createElement(ar,{className:"myclub-copy-modal-content__content-area",...i,disabled:!c.active}),o.createElement(l6,{className:"myclub-copy-modal-content__buttons",onContinue:m,onCancel:n,restricted:e.restricted})))});var au=l(49815);let ap=e=>{let{trans:t}=(0,b.QT)(),[l,,,a]=(0,ao.O)();return o.createElement("div",{className:"my-club-data-transfer__buttons-container"},o.createElement("div",{className:"my-club-data-transfer__checkbox-mobile"},o.createElement(au.i,{checked:l,onChange:a,className:"my-club-data-transfer__checkbox"},t("settings.myClubDataTransfer.checkbox"))),o.createElement("div",{className:"my-club-data-transfer__buttons"},o.createElement(P.ZP,{style:"default-outline",className:"my-club-data-transfer__cancel-button",onClick:e.cancel},t("button.cancel")),o.createElement("div",{className:"my-club-data-transfer__buttons-right"},o.createElement(au.i,{checked:l,onChange:a,className:"my-club-data-transfer__checkbox"},t("settings.myClubDataTransfer.checkbox")),o.createElement(P.ZP,{disabled:!l,onClick:e.continue},t("button.continue")))))},ah=e=>{let t=`settings.myClubDataTransfer.${e.messageId}`;return o.createElement("p",{className:"my-club-data-transfer__paragraph"},o.createElement(h.Z,{messageId:t,elements:{em:o.createElement("span",{className:"my-club-data-transfer__paragraph--em"})}}))},av=()=>{let{trans:e}=(0,b.QT)();return o.createElement("div",{className:"my-club-data-transfer__title"},e("settings.myClubDataTransfer.title"))},aE={cancel:l9.Z.hideMyClubDataTransferConsentModal,continue:l9.Z.myClubDataTransferContinue},ag=(0,c.$j)(null,aE)(e=>o.createElement(I.Z,{className:"my-club-data-transfer",source:g.Ny.MY_CLUB_DATA_TRANSFER_CONSENT,isCloseBtnShown:!1},o.createElement("div",{className:"my-club-data-transfer__header"},o.createElement(av,null)),o.createElement("div",{className:"my-club-data-transfer__body"},o.createElement(ah,{messageId:"paragraph1"}),o.createElement(ah,{messageId:"paragraph2"}),o.createElement(ah,{messageId:"paragraph3"})),o.createElement("div",{className:"my-club-data-transfer__footer"},o.createElement(ap,e))));var ab=l(29955),af=l(76482),aC=l(43417),ay=l(71170),aN=l(95787),a_=l(91368);let ak=e=>e in aR;var aA=l(91456);let aS="panel_title_textarea_id",aT="panel_image_file_input_id",aw="panel_image_url_input_id",aP="panel_body_textarea_id",aM={title:100,body:1e3,imageLink:null},aI={loadModelFanClubState:ay.wA,applyModelProfilePanelModal:l7.dF},aR={title:{maxLength:e=>!e||e.length<=100},body:{maxLength:e=>!e||e.length<=1e3},imageLink:{invalidUrl:e=>!e||l2.Oe.test(e)}};class aZ extends ey.Z{componentDidMount(){!this.props.hasActiveFanClub&&this.props.currentUser&&this.props.loadModelFanClubState(this.props.currentUser.id)}renderTitle(){let{isNew:e}=this.props,{isPreviewMode:t}=this.state;return o.createElement("span",null,this.props.i18n.trans(`profile.profilePanels.addEditPanelModal.${t?"titlePreview":e?"titleAdd":"titleEdit"}`))}renderFormFieldError(e,t){let{formFieldsErrors:l}=this.state,a=l[e];if(!a)return null;let r=null;if("string"==typeof a&&(r=a),Array.isArray(a)){var n;r="string"==typeof a[0]?a[0]:null===(n=a[0])||void 0===n?void 0:n.message}return r?o.createElement(j.Z,{placement:"top",error:{message:r},targetId:t}):null}isFormValid(){let{panelUpdated:e,formFieldsErrors:t}=this.state;return(e.imageUrl||e.title||e.body)&&(0,ab.Z)((0,Z.U)(t,e=>e))}renderTitleInput(){let{formFieldsErrors:e,panelUpdated:t,isPending:l}=this.state;return o.createElement("div",{className:(0,R.AK)("panel-field panel-title",{"panel-field-invalid":e.title})},o.createElement("label",null,o.createElement(h.Z,{messageId:"profile.profilePanels.addEditPanelModal.title",elements:{span:o.createElement("span",{className:"input-optional"})}})),o.createElement("textarea",{id:aS,className:"textarea",name:"title",defaultValue:t.title,onChange:this.onTextInputProxy,placeholder:this.props.i18n.trans("profile.profilePanels.addEditPanelModal.titlePlaceholder"),disabled:l}),this.renderFormFieldError("title",aS))}renderImageInput(){let{formFieldsErrors:e,panelUpdated:t,isPending:l}=this.state,a=t.imageUrl?"replaceImage":"addImage";return o.createElement("div",{className:(0,R.AK)("panel-field panel-image",{"panel-field-invalid":e.image})},o.createElement("label",null,o.createElement(h.Z,{messageId:"profile.profilePanels.addEditPanelModal.image",elements:{span:o.createElement("span",{className:"input-optional"})}})),o.createElement("div",{className:"panel-image-preview-small"},o.createElement("input",{name:"image",ref:e=>{this.imageInputRef=e},accept:a_.KX,type:"file",onChange:this.fileInputChangeHandler}),o.createElement(P.ZP,{style:"grouped",id:aT,disabled:l,onClick:this.triggerOpenFile},this.props.i18n.trans(`profile.profilePanels.addEditPanelModal.${a}`)),t.imageUrl&&o.createElement(o.Fragment,null,o.createElement("img",{src:t.imageUrl,alt:""}),o.createElement("button",{className:"panel-image-remove-image-btn",onClick:this.removeImage,type:"button"},o.createElement(v.Z,{img:"close-2"})))),this.renderFormFieldError("image",aT))}renderImageLinkInput(){let{panelUpdated:{imageUrl:e,imageLink:t}}=this.state;return o.createElement("div",{className:(0,R.AK)("panel-field panel-image-url",{disabled:!e})},o.createElement("label",null,o.createElement(v.Z,{img:"chain-link"}),o.createElement(h.Z,{messageId:"profile.profilePanels.addEditPanelModal.addImageLink",elements:{span:o.createElement("span",{className:"input-optional"})}})),o.createElement("input",{className:"input",type:"text",id:aw,defaultValue:t,name:"imageLink",onChange:this.onTextInputProxy,placeholder:this.props.i18n.trans("profile.profilePanels.addEditPanelModal.addImageLinkPlaceholder")}),this.renderFormFieldError("imageLink",aw))}renderBodyInput(){let{panelUpdated:{body:e},isPending:t,formFieldsErrors:l}=this.state;return o.createElement("div",{className:(0,R.AK)("panel-field panel-body",{"panel-field-invalid":l.body})},o.createElement("label",null,o.createElement(h.Z,{messageId:"profile.profilePanels.addEditPanelModal.body",elements:{span:o.createElement("span",{className:"input-optional"})}})),o.createElement("textarea",{className:"textarea",id:aP,name:"body",defaultValue:e,onChange:this.onTextInputProxy,placeholder:this.props.i18n.trans("profile.profilePanels.addEditPanelModal.bodyPlaceholder"),disabled:t}),this.renderFormFieldError("body",aP))}renderPreviewMode(){let{panelUpdated:{title:e,imageUrl:t,imageLink:l,body:a}}=this.state;return o.createElement("div",{className:"preview-mode"},e&&o.createElement("div",{className:"preview-mode-title"},e),t&&o.createElement("div",{className:"preview-mode-image"},o.createElement($.Z,{href:l,target:"_blank"},o.createElement("img",{src:t,width:"100%",alt:""}))),a&&o.createElement("div",{className:"preview-mode-body"},a))}renderContent(){let{isPreviewMode:e,isPending:t}=this.state,l=e?"edit":"preview";return o.createElement("div",{className:"modal-body"},o.createElement("form",{className:"panel-fields",noValidate:!0,onSubmit:this.onSubmit},!e&&o.createElement("div",{className:"edit-mode"},this.renderTitleInput(),this.renderImageInput(),this.renderImageLinkInput(),this.renderBodyInput()),e&&this.renderPreviewMode(),o.createElement("div",{className:"panel-field panel-preview-toggle"},!e&&o.createElement("button",{disabled:!this.isFormValid()||t,type:"button",onClick:this.togglePreviewMode},o.createElement(v.Z,{img:"spy-on"}),o.createElement("span",null,this.props.i18n.trans(`profile.profilePanels.addEditPanelModal.${l}`)))),o.createElement("div",{className:"buttons"},o.createElement(P.ZP,{style:"apply",disabled:!this.isFormValid(),type:"submit",loading:t},this.props.i18n.trans("button.save")),e?o.createElement(P.ZP,{style:"grouped",type:"button",onClick:this.togglePreviewMode},this.props.i18n.trans("profile.profilePanels.addEditPanelModal.backToEdit")):o.createElement(P.ZP,{style:"grouped",type:"button",onClick:this.closeHandler,disabled:t},this.props.i18n.trans("button.cancel")))))}constructor(e){super(e),(0,n._)(this,"imageInputRef",null),(0,n._)(this,"onSubmit",e=>{let{formFieldsErrors:t}=this.state;e.preventDefault(),this.setState({isPending:!0}),this.props.applyModelProfilePanelModal(this.state.panelUpdated,this.props.isNew).then(()=>{this.closeHandler(e,"closeButtonClickHandler")}).catch(e=>{this.setState({isPending:!1,formFieldsErrors:{...t,...e.details}})})}),(0,n._)(this,"fileInputChangeHandler",e=>{var t,l;let a=null==e?void 0:null===(l=e.target)||void 0===l?void 0:null===(t=l.files)||void 0===t?void 0:t[0];a&&(0,aN.U)({file:a,setting:this.props.panelImageSettings,i18n:this.props.i18n}).then(e=>{if(e)this.saveFormValues({image:"",imageUrl:""},{image:e});else{let e=(0,tI.wX)(a);this.saveFormValues({image:a,imageUrl:e})}})}),(0,n._)(this,"saveFormValues",(e,t={})=>{let{formFieldsErrors:l,panelUpdated:a}=this.state;Object.keys(e).forEach(e=>delete l[e]),this.setState({panelUpdated:{...a,...e},formFieldsErrors:{...l,...t}})}),(0,n._)(this,"onTextInputChange",e=>{if(!e)return;let{name:t,value:l=""}=e;if(!ak(t))return;let[a,r]=Object.entries(aR[t])[0],n=r(l)?null:a;n?this.saveFormValues({[t]:""},{[t]:this.props.i18n.trans(`profile.profilePanels.addEditPanelModal.formErrors.${n}`,{value:aM[t],currentValue:l.length})}):this.saveFormValues({[t]:l||""})}),(0,n._)(this,"textHandlers",{title:(0,af.Z)(this.onTextInputChange),imageLink:(0,af.Z)(this.onTextInputChange),body:(0,af.Z)(this.onTextInputChange)}),(0,n._)(this,"onTextInputProxy",e=>{ak(e.target.name)&&this.textHandlers[e.target.name](e.target)}),(0,n._)(this,"triggerOpenFile",()=>{(0,aC.Z)(this.imageInputRef,"click")}),(0,n._)(this,"handleChangeAccessMode",()=>{let e="fanClub"===this.state.panelUpdated.accessMode?"free":"fanClub";this.setState({panelUpdated:{...this.state.panelUpdated,accessMode:e}})}),(0,n._)(this,"removeImage",()=>{this.saveFormValues({image:"",imageUrl:""})}),(0,n._)(this,"togglePreviewMode",()=>{this.setState(e=>({isPreviewMode:!e.isPreviewMode}))});let{isNew:t,panel:l}=e;this.state={...this.state,panelUpdated:t?{}:l,formFieldsErrors:{},isPending:!1}}}let aL=(0,b.GV)(aZ);aZ.defaultProps={...ey.Z.defaultProps,className:"profile-panel-modal-wrapper",titlePosition:"outside",isWrapperCloseDisabled:!0};let aD=(0,c.$j)(e=>{var t;return{currentUser:e.auth.currentUser,hasActiveFanClub:(null===(t=e.modelFanClub.fanClub)||void 0===t?void 0:t.status)==="active",panelImageSettings:(0,aA.e5)(e)}},aI)(aL),aB={closeModal:lY.Mr,showModal:u.K4,startWizard:lY.o,processModal:lY.Ps};class aF extends o.Component{componentDidUpdate(e){(0,l$.iM)(e,this.props)&&this.props.processModal(),this.scrollToElementAfterCloseIfNeed(e)}renderModal(){let e=null,{currentModalName:t,currentModalParams:l,startWizard:a,userProfile:r}=this.props,n={onClose:this.modalCloseHandler,onCloseWithScroll:this.modalCloseHandlerWithScroll,onProceed:this.props.processModal,currentUser:r,actions:{startModalWizard:a},...l};switch(t){case g.Ny.CUSTOM_BENEFIT_EDIT:e=o.createElement(ew,{...n,className:"model-fan-club-edit-custom-benefit-modal"});break;case g.Ny.DISABLE_PUBLIC_RECORD_MODAL:e=o.createElement(l3,n);break;case g.Ny.EXTERNAL_BROADCAST_SPECIFICATION:e=o.createElement(x,n);break;case g.Ny.KIIROO_SETTINGS:e=o.createElement(ec,n);break;case g.Ny.LOVENSE_SETTINGS:e=o.createElement(eC,n);break;case g.Ny.MODEL_WARNING:e=o.createElement(eZ,n);break;case g.Ny.JOIN_FAN_CLUB_BUY:case g.Ny.PURCHASE_TOKENS:break;case g.Ny.START_PRIVATE:e=o.createElement(lu,n);break;case g.Ny.ALL_SPIES_LEFT_MODAL:e=o.createElement(y,n);break;case g.Ny.STOP_VIRTUAL_PRIVATE_SHOW_MODAL:e=o.createElement(lP,n);break;case g.Ny.START_BROADCASTING_SETTINGS:e=o.createElement(lT.O,{fallback:o.createElement(o.Fragment,null),...n});break;case g.Ny.SEND_TIP:case g.Ny.SEND_OFFLINE_TIP:e=o.createElement(lI.a,n);break;case g.Ny.PROFILE_PANEL:e=o.createElement(aD,n);break;case g.Ny.SIGN_PERSONS:e=o.createElement(lS,n);break;case g.Ny.MODEL_RULES:e=o.createElement(lH,n);break;case g.Ny.MY_CLUB_COPY_CONTENT:e=o.createElement(am,null);break;case g.Ny.MY_CLUB_DATA_TRANSFER_CONSENT:e=o.createElement(ag,null);break;case g.Ny.WEBRTC_FORCE_STOPPED:e=o.createElement(lG,n);break;case g.Ny.OBS_NOTIFICATIONS:e=o.createElement(lQ,n);break;case g.Ny.LEAVING_BANNED_STUDIO:e=o.createElement(eh,n);break;case g.Ny.STRIPCHAT_VR_CAMERA:e=o.createElement(lW.U,n);break;case g.Ny.CLEAR_TOKENS_HISTORY:e=o.createElement(N.z,n);break;case g.Ny.CHANGE_MAIN_PERSON:e=o.createElement(l1,n)}return e}render(){let{isModelWizardVisible:e,isModalBlockedInSandbox:t}=this.props;return e||t?null:this.renderModal()}constructor(...e){super(...e),(0,n._)(this,"elementScrollId",null),(0,n._)(this,"scrollToElementAfterCloseIfNeed",e=>{e.currentModalName&&!this.props.currentModalName&&null!==this.elementScrollId&&setTimeout(()=>{lK.Z.to(`#${this.elementScrollId}`),this.elementScrollId=null},250)}),(0,n._)(this,"modalCloseHandler",()=>{this.props.closeModal()}),(0,n._)(this,"modalCloseHandlerWithScroll",e=>()=>{this.modalCloseHandler(),this.elementScrollId=e})}}(0,n._)(aF,"propTypes",{currentModalName:i().string.isRequired,currentModalParams:i().shape({}),currentUser:i().shape({}),isLoggedIn:i().bool.isRequired,isModelWizardVisible:i().bool.isRequired,isModalBlockedInSandbox:i().bool,userProfile:i().shape({}),closeModal:i().func.isRequired,processModal:i().func.isRequired,startWizard:i().func.isRequired,isPreviewsOnThumbsForUltimatesEnabled:i().bool}),(0,n._)(aF,"defaultProps",{currentModalParams:null,currentUser:null,isModalBlockedInSandbox:!1,userProfile:null,isPreviewsOnThumbsForUltimatesEnabled:!1});let aO=(0,c.$j)(e=>{let{auth:{isLoggedIn:t,currentUser:l},ui:{currentModalName:a,currentModalParams:r}}=e;return{currentModalName:a,currentModalParams:r,currentUser:l,isLoggedIn:t,userProfile:(0,W.xV)(e),isModelWizardVisible:(0,lM.i$)(e),isModalBlockedInSandbox:(0,lV.nk)(e,a)}},aB)(aF)},76743:(e,t,l)=>{l.d(t,{x:()=>i});var a=l(27378),r=l(95654),n=l(27251),s=l(6679);let i=({children:e,isInPortal:t,portalRootId:l})=>{let i=(0,r.C)(n.tZ);return t||i?a.createElement(s.k,{portalRootId:l},e):a.createElement(a.Fragment,null,e)}},6679:(e,t,l)=>{l.d(t,{e:()=>i,k:()=>c});var a=l(27378),r=l(31542),n=l(95406),s=l(87937);let i="portal-root",o=null,c=({children:e,portalRootId:t})=>{let l=(0,n.Z)(()=>{if((0,s.sk)())return null;o&&o.isConnected||(o=document.getElementById(i));let e=document.createElement("div");if(t){var l;null===(l=document.getElementById(t))||void 0===l||l.appendChild(e)}else null==o||o.appendChild(e);return e});return(0,a.useEffect)(()=>()=>null==l?void 0:l.remove(),[l]),l&&r.createPortal(e,l)}},23865:(e,t,l)=>{l.d(t,{Z:()=>y});var a,r=l(27378),n=l(18775),s=l(29955),i=l(11850),o=l(80936),c=l(29413),d=l(72914),m=l(99748),u=l(97606),p=l(62182);let h=(e,t)=>!(0,s.Z)(e)&&e.children!==t.children;class v extends(a=r.Component){componentDidMount(){this._isMounted=!0,this.props.handleOverflow&&(this.updateHiddenItemsSizes(),this.updateLastVisibleIndex())}componentDidUpdate(e){let{handleOverflow:t}=this.props;t&&(h(e,this.props)&&(this.itemsWidthsMap.clear(),this.widthIndexMap.clear(),this.updateHiddenItemsSizes()),(0,p.oC)(e,this.props)&&this.updateLastVisibleIndex())}componentWillUnmount(){this._isMounted=!1}updateHiddenItemsSizes(){let e=this.hiddenWrapperRef.current;e&&Array.from(e.children).forEach((e,t)=>{this.updateItemMargins(e),e.setAttribute("aria-hidden","true"),this.widthIndexMap.set(t,this.getWidth(t,e)),window.requestAnimationFrame(this.updateLastVisibleIndex)})}render(){let{className:e,uiBlocking:{isVisible:t}}=this.props;return r.createElement("nav",{className:(0,m.AK)("navbar-dropdown",{open:t},e),ref:e=>{this.rootRef=e}},r.createElement("div",{className:"visible-items"},this.renderVisibleItems()),this.renderHiddenBlockItems(),this.renderMoreBtn())}constructor(e){super(e),(0,n._)(this,"rootRef",null),(0,n._)(this,"moreBtnContainerRef",r.createRef()),(0,n._)(this,"hiddenWrapperRef",r.createRef()),(0,n._)(this,"widthIndexMap",new Map),(0,n._)(this,"itemsWidthsMap",new Map),(0,n._)(this,"moreBtnTotalWidth",0),(0,n._)(this,"_isMounted",!1),(0,n._)(this,"updateLastVisibleIndex",()=>{if(!this._isMounted)return;let e=this.getLastVisibleItemIndex();this.setState(t=>e!==t.lastVisibleIndex?{lastVisibleIndex:e}:null)}),(0,n._)(this,"getLastVisibleItemIndex",()=>{if(!this.rootRef)return 0;let e=this.rootRef.offsetWidth,t=e-this.moreBtnTotalWidth;if(this.widthIndexMap.get(this.widthIndexMap.size-1)<=e)return null;let l=0;return this.widthIndexMap.forEach((e,a)=>{e<=t&&(l=a)}),l}),(0,n._)(this,"getWidth",(e,t)=>{let l=this.itemsWidthsMap.has(t)?this.itemsWidthsMap.get(t):0;return e>0&&this.widthIndexMap.has(e-1)?l+this.widthIndexMap.get(e-1):l}),(0,n._)(this,"updateItemMargins",e=>{if(!this.itemsWidthsMap.has(e)){let t=this.getElementTotalWidth(e);this.itemsWidthsMap.set(e,t)}}),(0,n._)(this,"openDropdownHandler",e=>{this.props.uiBlocking.lockUI(e)}),(0,n._)(this,"getElementTotalWidth",e=>{let t=window.getComputedStyle(e);return parseFloat(t["margin-right"])+parseFloat(t["margin-left"])+e.offsetWidth}),(0,n._)(this,"getIsMoreItemsVisible",()=>{if(null===this.state.lastVisibleIndex)return!1;let e=Array.isArray(this.props.children)?this.props.children.length:0;return!!e&&this.state.lastVisibleIndex!==e-1}),(0,n._)(this,"getRestItems",()=>{var e;let{restItemClassName:t}=this.props,l=this.props.children.slice((null!==(e=this.state.lastVisibleIndex)&&void 0!==e?e:0)+1).filter(e=>{var t;return!(null===(t=e.props.className)||void 0===t?void 0:t.split(" ").includes("model-aditional-menu"))});return r.Children.map(l,e=>r.cloneElement(e,{...e.props,className:(0,m.AK)("more-button-item",t,{[e.props.className]:e.props.className})}))}),(0,n._)(this,"moreBtnRefHandler",e=>{if(!e)return;let t=this.getElementTotalWidth(e);this.moreBtnTotalWidth=e.offsetWidth+t}),(0,n._)(this,"renderRestItemsBlock",()=>{let{restBlockClassName:e}=this.props;return r.createElement("div",{className:(0,m.AK)("more-button-block-content",e)},this.getRestItems())}),(0,n._)(this,"renderHiddenBlockItems",()=>{let{children:e,handleOverflow:t}=this.props;if(!t)return null;let l=this.props.showMoreButtonText||this.props.i18n.trans("button.more");return r.createElement(d.B,null,r.createElement("div",{className:"navbar-hidden-elements-wrapper",ref:this.hiddenWrapperRef},e,r.createElement("div",{className:"navbar-more-button",ref:this.moreBtnRefHandler},l)))}),(0,n._)(this,"renderVisibleItems",()=>r.Children.map(this.props.children,(e,t)=>{var l;return null!==this.state.lastVisibleIndex&&t>(null!==(l=this.state.lastVisibleIndex)&&void 0!==l?l:0)?null:e})),(0,n._)(this,"renderMoreBtn",()=>{let{handleOverflow:e,uiBlocking:{isVisible:t}}=this.props;if(!e)return null;let l=this.getIsMoreItemsVisible();return r.createElement("div",{className:(0,m.AK)("navbar-more-button",{visible:l,hidden:!l,opened:t}),onClick:this.openDropdownHandler,ref:this.moreBtnContainerRef},this.props.i18n.trans("button.more"),r.createElement("span",{className:"dropdown-arrow"},r.createElement(c.Z,{img:"sort"})),t&&this.renderRestItemsBlock())}),this.state={lastVisibleIndex:null}}}(0,n._)(v,"defaultProps",{handleOverflow:!0});let E=(0,u.GV)(v),g=(0,o.H)("windowWidth","windowHeight")((0,i.xl)(E));var b=l(98877),f=l(95654),C=l(98371);let y=(0,r.memo)(({activeIndex:e,children:t,className:l,shouldShowMoreButton:a=!0,showMoreButtonText:n,wrapperClassName:s,restBlockClassName:i,restItemClassName:o,scrollableNavbarClassName:c})=>{let u=(0,f.C)(C.Sx),p=r.createElement(g,{showMoreButtonText:n,handleOverflow:a,className:(0,m.AK)(l,s),key:1,restBlockClassName:i,restItemClassName:o},t),h=r.createElement(b.Z,{wrapperClassName:s,activeIndex:e,className:(0,m.AK)(l,c),key:2},t);return u?r.createElement(r.Fragment,null,h,r.createElement(d.B,null,p)):r.createElement(r.Fragment,null,p,r.createElement(d.B,null,h))})},98877:(e,t,l)=>{l.d(t,{Z:()=>i});var a=l(53701),r=l(27378),n=l(38487),s=l(99748);let i=(0,r.memo)(({activeIndex:e,wrapperClassName:t,className:l,showForNoToch:i=!1,children:o})=>{let c=(0,r.useRef)(null);return r.createElement(n.Z,{additionalClassName:(0,s.AK)("nav-scrollable-container",t),containerRef:(0,a.Z)(e)?t=>{if(!c.current||!t)return;c.current=t;let l=c.current.firstElementChild;if(!l||void 0===e)return;let a=l.children[e];a&&(0,s.X5)({scrollableContainer:c.current,target:a,axis:"x"})}:void 0},r.createElement("nav",{className:(0,s.AK)("nav-scrollable",l,{"nav-scrollable--only-for-touch":!i})},o))})},15428:(e,t,l)=>{l.d(t,{M:()=>d});var a=l(27378),r=l(37705),n=l(99973),s=l(95654),i=l(243),o=l(55618),c=l(70125);let d=({children:e,status:t=n.EH.NOT_FOUND})=>{let l=(0,s.C)(i.mT);return a.createElement("div",{className:"not-found-wrapper"},a.createElement(r.Z,{status:t}),e,l?a.createElement(c.Z,{shouldLogPopularSnapshot:!1,isWidescreen:!1,onlyInitialLoad:!0,showFilters:!0}):a.createElement(o.a,null))}},64402:(e,t,l)=>{l.d(t,{Z:()=>m});var a=l(27378),r=l(83550),n=l(57174),s=l(15428),i=l(99973),o=l(97606),c=l(80176),d=l(94380);let m=({status:e=i.EH.NOT_FOUND})=>{let{trans:t}=(0,o.QT)(),l=(0,d.T)();return(0,a.useEffect)(()=>(l((0,r.xl)(!0)),()=>{l((0,r.xl)(!1))}),[l]),a.createElement(s.M,{status:e},a.createElement("div",{className:"not-found-error container"},a.createElement("div",{className:"text-wrapper"},e),a.createElement("div",{className:"description-wrapper"},a.createElement("div",{className:"description"},t("notFound.notFoundError.title")),a.createElement(n.ZP,{style:"signup",onClick:()=>l((0,c.J5)("/")),size:"medium"},t("notFound.notFoundError.button")))))}},8495:(e,t,l)=>{l.d(t,{ZP:()=>n,wX:()=>r});var a=l(27378);let r=()=>'',n=()=>a.createElement("span",{className:"not-indexed-company-address"})},25306:(e,t,l)=>{l.d(t,{ZP:()=>n,ts:()=>r});var a=l(27378);let r=()=>'',n=()=>a.createElement("span",{className:"not-indexed-company-name"})},48058:(e,t,l)=>{l.d(t,{Z:()=>d,m:()=>m});var a=l(27378),r=l(95654),n=l(68020);let s=["en"],i=["de","cs","sk","eu","da","et","fo","hu","is","lv","no","sk","sl","tr"],o={en:{one:"st",two:"nd",few:"rd",other:"th"}},c=(e,t)=>{try{let l=new Intl.PluralRules(e,{type:"ordinal"}).select(t),a=o[e];if(!a)return null;return a[l]}catch(e){return null}},d=({number:e})=>{let t=(0,r.C)(n._f);if(i.includes(t))return a.createElement(a.Fragment,null,e,".");if(!s.includes(t))return a.createElement(a.Fragment,null,e);let l=c(t,e);return l?a.createElement(a.Fragment,null,e,l):a.createElement(a.Fragment,null,e)},m=(e,t)=>{if(i.includes(t))return`${e}.`;if(!s.includes(t))return`${e}`;let l=c(t,e);return l?`${e}${l}`:`${e}`}},47554:(e,t,l)=>{l.d(t,{Z:()=>a.Z});var a=l(48058)},54534:(e,t,l)=>{l.d(t,{Z:()=>c});var a=l(27378),r=l(4289),n=l(29413),s=l(99748),i=l(97606);let o=({active:e,id:t,isDisabled:l,isHidden:o,onClick:c,pageNumber:d,type:m,getLink:u,className:p})=>{let{trans:h}=(0,i.QT)(),v=e=>{l||o||(e.preventDefault(),e.stopPropagation(),c(d))},E={prev:a.createElement("div",{className:"shift-nav-button"},a.createElement(n.Z,{img:"prev-small"}),a.createElement("span",null,h("pagination.prev"))),"prev-small":a.createElement(n.Z,{img:"prev-small"}),next:a.createElement("div",{className:"shift-nav-button"},a.createElement("span",null,h("pagination.next")),a.createElement(n.Z,{img:"next-small"})),"next-small":a.createElement(n.Z,{img:"next-small"}),ellipsis:"...",beginning:a.createElement("div",{className:"shift-nav-button"},h("pagination.beginning")),"beginning-small":a.createElement(n.Z,{img:"prev"}),page:d},g=(0,s.AK)(`page-button page-button-${m}`,p,{active:e,hidden:o});return u?a.createElement(r.rU,{to:u(d),className:g,id:t,onClick:v},E[m]):a.createElement("a",{className:g,id:t,onClick:v},E[m])};o.defaultProps={active:!1,isDisabled:!1,isHidden:!1,id:void 0};let c=o},10728:(e,t,l)=>{l.d(t,{Z:()=>d});var a,r=l(18775),n=l(27378),s=l(80936),i=l(54534),o=l(99748);class c extends(a=n.Component){renderButtons(){let{currentPage:e,pageChangeCallback:t,hiddenButtons:l,isLayoutUpToL:a,isLayoutUpToM:r,isLayoutUpToS:s,getLink:o}=this.props,c=this.getPagesCount(),d=[],m=e,u=m,p=s?2:3;if(c<(s?5:7)){1!==e&&d.push(n.createElement(i.Z,{key:"to-begining",getLink:o,type:r?"beginning-small":"beginning",onClick:t,pageNumber:1,isHidden:l}));for(let a=1;a<=c;a+=1)d.push(n.createElement(i.Z,{key:a,getLink:o,type:"page",active:e===a,onClick:t,pageNumber:a,isHidden:l,isDisabled:e===a}));return d}ec-p&&(m=c-p+1),e>p&&d.push(n.createElement(i.Z,{key:1,getLink:o,type:r?"beginning-small":"beginning",onClick:t,pageNumber:1,isHidden:l}));let h=Math.ceil(p/2),v=m+h,E=!0;for(let a=m-h;a<=v;a+=1)a===c&&(E=!1),d.push(n.createElement(i.Z,{key:a,getLink:o,type:"page",active:e===a,onClick:t,pageNumber:a,isHidden:l,isDisabled:e===a})),u=a;if(u=this.getPagesCount()||t}))}constructor(...e){super(...e),(0,r._)(this,"getPagesCount",()=>Math.ceil(this.props.itemsCount/this.props.pageSize))}}(0,r._)(c,"defaultProps",{pageSize:10,itemsCount:0,additionalClassName:""});let d=(0,s.H)("isLayoutUpToL","isLayoutUpToM","isLayoutUpToS")(c)},7288:(e,t,l)=>{l.d(t,{Z:()=>c});var a=l(27378),r=l(48204),n=l(4289),s=l(64208),i=l(32284);let o={setPersonalizedLastTagID:s.Pu},c=(0,r.$j)(null,o)(({children:e,className:t="",id:l="",onClick:r,target:s="",title:o="",setPersonalizedLastTagID:c,user:d,...m})=>{let u=(0,i.jC)(d);return u?a.createElement(n.rU,{...m,className:t,id:l,onClick:e=>{c(""),null==r||r(e)},target:s,title:o,to:u},e):a.createElement(a.Fragment,null,e)})},47080:(e,t,l)=>{l.d(t,{$:()=>B});var a=l(27378),r=l(18775),n=l(48204),s=l(83550),i=l(99382),o=l(65804),c=l(62741),d=l(29413),m=l(99973),u=l(93409),p=l(99748),h=l(97606),v=l(20717),E=l(59683),g=l(62203),b=l(60673),f=l(15235);let C={hidePromoCampaign:b.ly,emitButtonEvent:s.d2},y=e=>u.ZP.has(`${e}_hidden`);class N extends a.Component{componentDidMount(){this.setState({isMounted:!0})}renderIcon(){let{bannerIcon:e,fullCampaignName:t,bannerIconUrl:l}=this.props;if(!t||!e){let e=(0,v.jz)("common/components/ui/PromoBanner/assets/common/promo-icon-placeholder.svg");return a.createElement("div",{className:"promo-banner-icon",style:{backgroundImage:`url(${e})`}})}return l?a.createElement("div",{className:"promo-banner-icon",style:{backgroundImage:l?`url(${l})`:void 0}}):null}renderTitle(){let{title:e}=this.props;return(null==e?void 0:e.messageId)?a.createElement(o.Z,{className:"promo-banner-title",messageId:e.messageId,elements:{accentBold:a.createElement("strong",{className:"accent"}),accent:a.createElement("span",{className:"accent"}),accentNowrap:a.createElement("span",{className:"accent nowrap"}),noBreakSpace:a.createElement(a.Fragment,null,"\xa0")}}):null}renderDescription(){let{name:e,description:t,siteName:l,descriptionIconUrl:r,action:n,i18n:{trans:s}}=this.props;return a.createElement("div",{className:"promo-banner-description"},a.createElement(o.Z,{messageId:(0,f.HG)(t,e),elements:{accentBold:a.createElement("strong",{className:"accent"}),accent:a.createElement("span",{className:"accent"}),accentNowrap:a.createElement("span",{className:"accent nowrap"}),noBreakSpace:a.createElement(a.Fragment,null,"\xa0"),icon:r?a.createElement("div",{style:{backgroundImage:`url(${r})`},className:"promo-banner-description--icon"}):null},parameters:{siteName:l,...null==t?void 0:t.params},wrapper:"span"}),(null==n?void 0:n.messageId)&&a.createElement(i.ZP,{className:"promo-banner-action",onClick:this.handleClick},s(n.messageId)))}renderCountdown(){return this.props.hasCountdown&&this.props.activeTill?a.createElement(c.ZP,{className:"promo-banner-countdown",shouldShowDays:!1,endTimestamp:new Date(this.props.activeTill).getTime(),separator:":",onTimeEnd:()=>this.setState({wasHidden:!0})}):null}renderAction(){let{action:e,isClosable:t,i18n:{trans:l}}=this.props;return a.createElement("div",{className:"promo-banner-action-container"},this.renderCountdown(),a.createElement("div",{className:"promo-banner-action-container-buttons"},(null==e?void 0:e.messageId)&&a.createElement(i.ZP,{className:"promo-banner-action",onClick:this.handleClick},l(e.messageId)),t&&a.createElement(i.ZP,{className:"promo-banner-close-button",onClick:this.handleCloseClick,"aria-label":l("button.close")},a.createElement(d.Z,{className:"promo-banner-close-icon",img:"close-3"}))))}renderContent(){return a.createElement("div",{className:"promo-banner-description-container"},this.renderDescription())}render(){let{className:e,isVisible:t,name:l,isClosable:r}=this.props,{isMounted:n,wasHidden:s}=this.state;return t&&n&&!s?a.createElement("div",{className:(0,p.AK)("promo-banner-wrapper",e),id:`promo-banner-id-${l}`,onClick:this.handleClick},a.createElement("div",{className:(0,p.AK)("promo-banner","promo-banner--with-paymentico",{"promo-banner-with-close-button":r})},a.createElement("div",{className:"promo-banner-main-container"},this.renderIcon(),a.createElement("div",{className:"promo-banner-main"},a.createElement("div",{className:"promo-banner-title-container"},this.renderTitle(),this.renderDescription()))),this.renderContent(),this.renderAction())):a.createElement("div",null)}constructor(e){super(e),(0,r._)(this,"handleClick",e=>{e.stopPropagation();let{fullCampaignName:t}=this.props;this.props.emitButtonEvent(m.FO.PROMO_BANNER_BUTTON_CLICK,{campaignName:t})}),(0,r._)(this,"handleCloseClick",e=>{e.stopPropagation();let{fullCampaignName:t,returnAfterDays:l}=this.props;this.setState({wasHidden:!0}),t&&this.props.hidePromoCampaign({promoCampaignName:t,returnAfterDays:l})}),this.state={isMounted:!1,wasHidden:!1}}}(0,r._)(N,"defaultProps",{bannerIcon:"",fullCampaignName:"",title:void 0,bannerIconUrl:"",action:{messageId:""}});let _=(0,h.GV)((0,n.$j)((e,{config:t})=>{var l;if(!t)return{siteName:(0,g.hA)(e),isVisible:!1};let{description:a,campaignName:r,name:n,bannerIcon:s}=t;if(y(r))return{siteName:(0,g.hA)(e),isVisible:!1};let i=null===(l=(0,E.Yb)(e))||void 0===l?void 0:l[t.campaignName];return{isVisible:!0,bannerIconUrl:(0,v.rD)(n,s),descriptionIconUrl:(0,v.rD)(n,null==a?void 0:a.icon),...t,...i,hasCountdown:(0,E.VX)(t,i),fullCampaignName:t.campaignName,isWhiteLabel:(0,g.bT)(e),siteName:(0,g.hA)(e)}},C)(N));var k=l(80176),A=l(98371);let S={emitButtonEvent:s.d2,routerPush:k.J5},T=e=>!!(0,A.ej)(`${e}_hidden`)();class w extends a.Component{componentDidMount(){let{autoHide:e}=this.props;e&&window.addEventListener("beforeunload",this.setCookie)}renderIcon(){let{bannerIconUrl:e}=this.props;return e?a.createElement("div",{className:"promo-banner-icon media-up-to-xxs-hidden",style:{backgroundImage:e?`url(${e})`:void 0}}):null}renderTitle(){let e;let{backgroundFileUrl:t,title:l,siteName:r}=this.props;if(!l)return null;let{messageId:n,staticText:s,isBig:i}=l;return s?e=s:n?e=this.props.i18n.trans(n,{siteName:r}):t&&(e=a.createElement("div",{className:"icon",style:{backgroundImage:t?`url(${t})`:void 0}})),a.createElement("div",{className:(0,p.AK)("promo-banner-title",{small:!i})},e)}renderDescription(){let{promoName:e,siteName:t,i18n:{hasTranslation:l}}=this.props,r=`promo.${e}.description`;return l(r)?a.createElement(o.Z,{messageId:r,elements:{accent:a.createElement("span",{className:"accent"}),strong:a.createElement("strong",null),vr:a.createElement(d.Z,{img:"badge-vr-ds"})},parameters:{domain:t}}):null}renderDescriptionFromConfig(e){let{description:t}=this.props;return t?a.createElement("div",{className:(0,p.AK)("promo-banner__config-description",e)},t):null}get href(){var e,t,l;let{action:a,region:r,primaryTagId:n}=this.props;return null==a?void 0:null===(l=a.link)||void 0===l?void 0:null===(t=l.href)||void 0===t?void 0:null===(e=t.replace(/\{region\}/,r||""))||void 0===e?void 0:e.replace(/\{primaryTagId\}/,n||"")}navigateToLink(){let{action:e}=this.props,{href:t}=this;if(t&&(null==e?void 0:e.link)){if(!e.link.isSameTab){let e=window.open(t,"_blank");e&&(e.opener=null);return}if(e.link.isRouterLink){this.props.routerPush(t);return}window.location.href=t}}getButtonProps(){var e;let{action:t}=this.props,{href:l}=this,a=(null==t?void 0:null===(e=t.link)||void 0===e?void 0:e.isSameTab)?void 0:"_blank";return(null==t?void 0:t.link)?l?t.link.isRouterLink?{type:"link",to:l,target:a}:{type:"anchor",href:l,target:a}:null:{type:"button"}}render(){var e;let{action:t,className:l,promoName:r,isClosable:n,isVisible:s}=this.props,{wasHidden:c}=this.state;return!s||c?null:a.createElement("div",{className:(0,p.AK)("promo-banner-wrapper",{"is-touch":m.BROWSER_CAPABILITIES.touch}),id:`promo-banner-id-${r}`,onClick:this.handleBannerClick},a.createElement("div",{className:(0,p.AK)("promo-banner","promo-banner--without-paymentico",l,{"promo-banner-with-close-button":n})},a.createElement("div",{className:"promo-banner-main-container"},this.renderIcon(),a.createElement("div",{className:"promo-banner-texts-and-action"},a.createElement("div",{className:"promo-banner-title-container"},this.renderTitle(),this.renderDescription(),this.renderDescriptionFromConfig("mobile")),a.createElement("div",{className:"promo-banner__config-description-container"},this.renderDescriptionFromConfig("desktop"),t&&a.createElement(i.ZP,{className:"promo-banner-action",onClick:this.handleClick,style:null!==(e=t.style)&&void 0!==e?e:"outline",...this.getButtonProps()},a.createElement(o.Z,{messageId:t.messageId}))))),n&&a.createElement(i.ZP,{className:"promo-banner-close-button",onClick:this.handleCloseClick,"aria-label":this.props.i18n.trans("button.close")},a.createElement(d.Z,{className:"promo-banner-close-icon",img:"close-3"}))))}constructor(e){super(e),(0,r._)(this,"setCookie",()=>{let{promoName:e}=this.props;u.ZP.set("essential",`${e}_hidden`,1)}),(0,r._)(this,"hideBanner",()=>{this.setState({wasHidden:!0}),this.setCookie()}),(0,r._)(this,"handleClick",(e,t)=>{var l,a;e.stopPropagation();let{promoName:r,onBannerClick:n,isCloseOnClick:s}=this.props;null==n||n(),this.props.emitButtonEvent(m.FO.PROMO_BANNER_NO_PAY_BUTTON_CLICK,{promoName:r}),t&&(null===(a=this.props.action)||void 0===a?void 0:null===(l=a.link)||void 0===l?void 0:l.isNavigateOnBannerClick)&&this.navigateToLink(),s&&this.hideBanner()}),(0,r._)(this,"handleBannerClick",e=>this.handleClick(e,!0)),(0,r._)(this,"handleCloseClick",e=>{e.stopPropagation(),this.hideBanner()}),this.state={wasHidden:!1}}}(0,r._)(w,"defaultProps",{isCloseOnClick:!0});let P=(0,h.GV)(w),M=(0,n.$j)((e,{config:t})=>{let l=!!t&&!T((null==t?void 0:t.promoName)||""),{siteName:a}=e.whiteLabels,r=(null==t?void 0:t.backgroundFile)?(0,v.jz)(`common/components/ui/PromoBanner/assets/${t.promoName}/${t.backgroundFile}`):null,n=(null==t?void 0:t.bannerIcon)?(0,v.jz)(`common/components/ui/PromoBanner/assets/${t.promoName}/${t.bannerIcon}`):null;return{isVisible:l,...l?t:{},siteName:a,bannerIconUrl:n,backgroundFileUrl:r}},S)(P);var I=l(95654),R=l(36886),Z=l(68582),L=l(84123),D=l(68358);let B=({onlyPaymenticoAllowed:e,...t})=>{let l=(0,I.C)(L.W),r=(0,I.C)(Z.UI),n=(0,I.C)(E.yW),s=null==l?void 0:l.campaignName,i=(0,R.t)(),o=(0,a.useMemo)(()=>s&&y(s),[s]);return n||!i||s===D.vw?null:e||l&&!o?a.createElement(_,{config:l,...t}):a.createElement(M,{config:r})}},8950:(e,t,l)=>{l.d(t,{Z:()=>s});var a=l(27378),r=l(74753),n=l(99748);let s=(0,a.memo)(({checked:e=!1,className:t="",disabled:l=!1,name:s="radio",value:i,children:o,labelClassName:c,...d})=>{let m=`radio-${s}-${i}`;return a.createElement("div",{className:(0,n.AK)("radio",t)},a.createElement(r.Z,{...d,checked:e,disabled:l,name:s,value:i,className:"radio-input",type:"radio",id:m}),a.createElement("label",{className:(0,n.AK)("radio-label",c),htmlFor:m},o))})},38487:(e,t,l)=>{l.d(t,{Z:()=>v});var a=l(47722),r=l(37051),n=l(49280),s=l(27378),i=l(99973),o=l(99748),c=l(87937),d=l(62512),m=l(59188);let u=()=>(0,c.sk)()?Promise.resolve(null):Promise.all([l.e(5805).then(l.bind(l,44264)),l.e(5805).then(l.bind(l,74953))]),p=function(){var e;if((0,c.sk)())return 0;let t=document.createElement("div");t.style.visibility="hidden",t.style.position="absolute",t.style.width="100px";let l=document.createElement("div");l.style.width="100%",document.body.appendChild(t);let a=t.offsetWidth;t.style.msOverflowStyle="scrollbar",t.style.overflow="scroll",t.appendChild(l);let r=l.offsetWidth;return null===(e=t.parentNode)||void 0===e||e.removeChild(t),a-r}()>0,h={onScrollY:"ps-scroll-y",onScrollX:"ps-scroll-x",onScrollUp:"ps-scroll-up",onScrollDown:"ps-scroll-down",onScrollLeft:"ps-scroll-left",onScrollRight:"ps-scroll-right",onYReachStart:"ps-y-reach-start",onYReachEnd:"ps-y-reach-end",onXReachStart:"ps-x-reach-start",onXReachEnd:"ps-x-reach-end"},v=(0,s.forwardRef)((e,t)=>{let{children:l,disablePs:c,containerRef:v,overscrollBehavior:E,hideScrollBarControl:g=!1,additionalClassName:b="",isAlwaysVisible:f=!1,libOptions:C={},animationName:y,onNativeScroll:N,isForceEnabled:_=!1,animationDuration:k,style:A}=e,[S,T]=(0,s.useState)(!1),w=(0,s.useRef)("ScrollBarContainer"),P=(0,s.useRef)(null),M=(0,s.useRef)(),I=(0,s.useCallback)(({default:e})=>{var t;let l={};i.BROWSER_CAPABILITIES.edge&&(l={scrollXMarginOffset:1,scrollYMarginOffset:1}),(null==P?void 0:null===(t=P.current)||void 0===t?void 0:t.parentElement)&&(M.current=new e(P.current,{wheelPropagation:!0,...l,...C}),T(!0))},[C]);return(0,s.useImperativeHandle)(t,()=>({resetScroll:()=>{P.current&&(P.current.scrollLeft=0,P.current.scrollTop=0)}}),[]),(0,m.H)(()=>c?r.Z:p||_?(u().then(e=>{if(e){let[t]=e;I(t)}}),(0,n.Z)(h,(t,l)=>{let a=e[l];"function"==typeof a&&P.current&&(0,d.H0)(w,P.current,t,a)}),()=>{M.current&&(M.current.destroy(),M.current=null),(0,d.OM)(w)}):(N&&P.current&&(0,d.H0)(w,P.current,"scroll",N),()=>{(0,d.OM)(w)})),(0,s.useEffect)(()=>{if(!P.current||!S||"function"!=typeof ResizeObserver)return;let e=new ResizeObserver(()=>{if(k)setTimeout(()=>{var e;null===(e=M.current)||void 0===e||e.update()},k);else{var e;null===(e=M.current)||void 0===e||e.update()}});return e.observe(P.current),()=>{e.disconnect()}},[k,S]),(0,s.useEffect)(()=>{if(!P.current||!S||!y||"function"!=typeof IntersectionObserver)return;let e=t=>{var l,a;t.animationName===y&&(null===(l=M.current)||void 0===l||l.update(),null===(a=P.current)||void 0===a||a.classList.remove("scroll-bar-container--hide-scrollbar"),removeEventListener("animationend",e))},t=()=>{var t;null===(t=P.current)||void 0===t||t.classList.remove("scroll-bar-container--hide-scrollbar"),removeEventListener("animationend",e)},l=new IntersectionObserver(e=>{if(e.some(e=>e.intersectionRatio>0)){var t;null===(t=M.current)||void 0===t||t.update()}});return l.observe(P.current),(()=>{var l;(0,a.C5)()&&(null===(l=P.current)||void 0===l||l.classList.add("scroll-bar-container--hide-scrollbar"),addEventListener("animationend",e),addEventListener("animationcancel",t))})(),()=>{l.disconnect(),removeEventListener("animationend",e),removeEventListener("animationcancel",t)}},[S,y]),s.createElement("div",{className:(0,o.AK)("scroll-bar-container",b,{"always-visible":f,"scroll-bar-container--hide-scrollbar":g,[`scroll-bar-container--overscroll-behavior-${E}`]:!!E}),style:A,ref:e=>{P.current=e,v&&("object"==typeof v&&"current"in v?v.current=e:v(e))}},l)})},25470:(e,t,l)=>{l.d(t,{WV:()=>r,hh:()=>n,w9:()=>s});var a=l(27378);let r=e=>!!e&&"mousedown"===e.type,n=e=>!!e&&"offsetTop"in e,s=e=>"string"==typeof e||"number"==typeof e||(0,a.isValidElement)(e)},60232:(e,t,l)=>{l.d(t,{P:()=>T,Z:()=>w});var a,r=l(18775),n=l(37051),s=l(27378),i=l(31542),o=l(65804),c=l(29413),d=l(38487),m=l(99748);class u extends(a=s.Component){render(){let{option:e,dataValue:t,isSelected:l,isDisabled:a}=this.props,r=(0,m.AK)(this.props.className,e.className);return e.disabled?s.createElement("div",{className:r,role:"option","aria-selected":l},this.props.children):s.createElement("div",{"data-value":t,className:r,onMouseDown:this.handleMouseDown,onMouseEnter:this.handleMouseEnter,onMouseMove:this.handleMouseMove,onTouchStart:this.touchEventHandler,onTouchMove:this.touchEventHandler,onTouchEnd:this.touchEventHandler,style:e.style,title:e.title,role:"option","aria-selected":l,"aria-disabled":a},this.props.children)}constructor(...e){super(...e),(0,r._)(this,"isTouchMoved",!1),(0,r._)(this,"handleMouseDown",e=>{e.preventDefault(),e.stopPropagation(),this.props.onSelect(this.props.option,e)}),(0,r._)(this,"handleMouseEnter",e=>{this.focusHandler(e)}),(0,r._)(this,"handleMouseMove",e=>{this.focusHandler(e)}),(0,r._)(this,"focusHandler",e=>{this.props.focused||this.props.onFocus(this.props.option,e)}),(0,r._)(this,"touchEventHandler",e=>{let{type:t}=e;"touchstart"===t?this.isTouchMoved=!1:"touchmove"===t?this.isTouchMoved=!0:"touchend"!==t||this.isTouchMoved||this.handleMouseDown(e)})}}(0,r._)(u,"defaultValue",{dataValue:""});var p=l(62512),h=l(95654),v=l(98371);let E=({selectId:e,renderContent:t})=>{let l=(0,h.C)(v.Sx),a=(0,s.useRef)(null),[r,i]=(0,s.useState)(null),[o,c]=(0,s.useState)(0),[d,m]=(0,s.useState)(0),[u,g]=(0,s.useState)(0),[b,f]=(0,s.useState)(0),C=({clientX:e,clientY:t})=>{c(e),m(t);let l=document.elementFromPoint(e,t);if(!l)return;let a=l.getAttribute("data-value");if(!a){i(null);return}i(a)},y=(0,s.useCallback)(()=>o+20,[o]),N=(0,s.useCallback)(()=>{if(!a.current)return 1e5;let e=a.current.getBoundingClientRect().height,t=d-Math.round(e/2),l=t+e-window.innerHeight,r=-t;return l>0?t-l-10:r>0?t+r+10:t},[d]);return((0,s.useEffect)(()=>{f(N())},[N]),(0,s.useEffect)(()=>{g(y())},[y]),(0,s.useEffect)(()=>{let t=document.querySelector(`#${e}`);return t?((0,p.H0)(E,t,"mousemove",C),(0,p.H0)(E,t,"mouseleave",()=>i(null)),()=>{(0,p.OM)(E)}):n.Z},[e]),!l&&e&&r)?s.createElement("div",{ref:a,className:"select-tooltip",style:{transform:`translateY(${b}px) translateX(${u}px)`}},t(r)):null};var g=l(93358);let b=[{base:"A",letters:/[\u0041\u24B6\uFF21\u00C0\u00C1\u00C2\u1EA6\u1EA4\u1EAA\u1EA8\u00C3\u0100\u0102\u1EB0\u1EAE\u1EB4\u1EB2\u0226\u01E0\u00C4\u01DE\u1EA2\u00C5\u01FA\u01CD\u0200\u0202\u1EA0\u1EAC\u1EB6\u1E00\u0104\u023A\u2C6F]/g},{base:"AA",letters:/[\uA732]/g},{base:"AE",letters:/[\u00C6\u01FC\u01E2]/g},{base:"AO",letters:/[\uA734]/g},{base:"AU",letters:/[\uA736]/g},{base:"AV",letters:/[\uA738\uA73A]/g},{base:"AY",letters:/[\uA73C]/g},{base:"B",letters:/[\u0042\u24B7\uFF22\u1E02\u1E04\u1E06\u0243\u0182\u0181]/g},{base:"C",letters:/[\u0043\u24B8\uFF23\u0106\u0108\u010A\u010C\u00C7\u1E08\u0187\u023B\uA73E]/g},{base:"D",letters:/[\u0044\u24B9\uFF24\u1E0A\u010E\u1E0C\u1E10\u1E12\u1E0E\u0110\u018B\u018A\u0189\uA779]/g},{base:"DZ",letters:/[\u01F1\u01C4]/g},{base:"Dz",letters:/[\u01F2\u01C5]/g},{base:"E",letters:/[\u0045\u24BA\uFF25\u00C8\u00C9\u00CA\u1EC0\u1EBE\u1EC4\u1EC2\u1EBC\u0112\u1E14\u1E16\u0114\u0116\u00CB\u1EBA\u011A\u0204\u0206\u1EB8\u1EC6\u0228\u1E1C\u0118\u1E18\u1E1A\u0190\u018E]/g},{base:"F",letters:/[\u0046\u24BB\uFF26\u1E1E\u0191\uA77B]/g},{base:"G",letters:/[\u0047\u24BC\uFF27\u01F4\u011C\u1E20\u011E\u0120\u01E6\u0122\u01E4\u0193\uA7A0\uA77D\uA77E]/g},{base:"H",letters:/[\u0048\u24BD\uFF28\u0124\u1E22\u1E26\u021E\u1E24\u1E28\u1E2A\u0126\u2C67\u2C75\uA78D]/g},{base:"I",letters:/[\u0049\u24BE\uFF29\u00CC\u00CD\u00CE\u0128\u012A\u012C\u0130\u00CF\u1E2E\u1EC8\u01CF\u0208\u020A\u1ECA\u012E\u1E2C\u0197]/g},{base:"J",letters:/[\u004A\u24BF\uFF2A\u0134\u0248]/g},{base:"K",letters:/[\u004B\u24C0\uFF2B\u1E30\u01E8\u1E32\u0136\u1E34\u0198\u2C69\uA740\uA742\uA744\uA7A2]/g},{base:"L",letters:/[\u004C\u24C1\uFF2C\u013F\u0139\u013D\u1E36\u1E38\u013B\u1E3C\u1E3A\u0141\u023D\u2C62\u2C60\uA748\uA746\uA780]/g},{base:"LJ",letters:/[\u01C7]/g},{base:"Lj",letters:/[\u01C8]/g},{base:"M",letters:/[\u004D\u24C2\uFF2D\u1E3E\u1E40\u1E42\u2C6E\u019C]/g},{base:"N",letters:/[\u004E\u24C3\uFF2E\u01F8\u0143\u00D1\u1E44\u0147\u1E46\u0145\u1E4A\u1E48\u0220\u019D\uA790\uA7A4]/g},{base:"NJ",letters:/[\u01CA]/g},{base:"Nj",letters:/[\u01CB]/g},{base:"O",letters:/[\u004F\u24C4\uFF2F\u00D2\u00D3\u00D4\u1ED2\u1ED0\u1ED6\u1ED4\u00D5\u1E4C\u022C\u1E4E\u014C\u1E50\u1E52\u014E\u022E\u0230\u00D6\u022A\u1ECE\u0150\u01D1\u020C\u020E\u01A0\u1EDC\u1EDA\u1EE0\u1EDE\u1EE2\u1ECC\u1ED8\u01EA\u01EC\u00D8\u01FE\u0186\u019F\uA74A\uA74C]/g},{base:"OI",letters:/[\u01A2]/g},{base:"OO",letters:/[\uA74E]/g},{base:"OU",letters:/[\u0222]/g},{base:"P",letters:/[\u0050\u24C5\uFF30\u1E54\u1E56\u01A4\u2C63\uA750\uA752\uA754]/g},{base:"Q",letters:/[\u0051\u24C6\uFF31\uA756\uA758\u024A]/g},{base:"R",letters:/[\u0052\u24C7\uFF32\u0154\u1E58\u0158\u0210\u0212\u1E5A\u1E5C\u0156\u1E5E\u024C\u2C64\uA75A\uA7A6\uA782]/g},{base:"S",letters:/[\u0053\u24C8\uFF33\u1E9E\u015A\u1E64\u015C\u1E60\u0160\u1E66\u1E62\u1E68\u0218\u015E\u2C7E\uA7A8\uA784]/g},{base:"T",letters:/[\u0054\u24C9\uFF34\u1E6A\u0164\u1E6C\u021A\u0162\u1E70\u1E6E\u0166\u01AC\u01AE\u023E\uA786]/g},{base:"TZ",letters:/[\uA728]/g},{base:"U",letters:/[\u0055\u24CA\uFF35\u00D9\u00DA\u00DB\u0168\u1E78\u016A\u1E7A\u016C\u00DC\u01DB\u01D7\u01D5\u01D9\u1EE6\u016E\u0170\u01D3\u0214\u0216\u01AF\u1EEA\u1EE8\u1EEE\u1EEC\u1EF0\u1EE4\u1E72\u0172\u1E76\u1E74\u0244]/g},{base:"V",letters:/[\u0056\u24CB\uFF36\u1E7C\u1E7E\u01B2\uA75E\u0245]/g},{base:"VY",letters:/[\uA760]/g},{base:"W",letters:/[\u0057\u24CC\uFF37\u1E80\u1E82\u0174\u1E86\u1E84\u1E88\u2C72]/g},{base:"X",letters:/[\u0058\u24CD\uFF38\u1E8A\u1E8C]/g},{base:"Y",letters:/[\u0059\u24CE\uFF39\u1EF2\u00DD\u0176\u1EF8\u0232\u1E8E\u0178\u1EF6\u1EF4\u01B3\u024E\u1EFE]/g},{base:"Z",letters:/[\u005A\u24CF\uFF3A\u0179\u1E90\u017B\u017D\u1E92\u1E94\u01B5\u0224\u2C7F\u2C6B\uA762]/g},{base:"a",letters:/[\u0061\u24D0\uFF41\u1E9A\u00E0\u00E1\u00E2\u1EA7\u1EA5\u1EAB\u1EA9\u00E3\u0101\u0103\u1EB1\u1EAF\u1EB5\u1EB3\u0227\u01E1\u00E4\u01DF\u1EA3\u00E5\u01FB\u01CE\u0201\u0203\u1EA1\u1EAD\u1EB7\u1E01\u0105\u2C65\u0250]/g},{base:"aa",letters:/[\uA733]/g},{base:"ae",letters:/[\u00E6\u01FD\u01E3]/g},{base:"ao",letters:/[\uA735]/g},{base:"au",letters:/[\uA737]/g},{base:"av",letters:/[\uA739\uA73B]/g},{base:"ay",letters:/[\uA73D]/g},{base:"b",letters:/[\u0062\u24D1\uFF42\u1E03\u1E05\u1E07\u0180\u0183\u0253]/g},{base:"c",letters:/[\u0063\u24D2\uFF43\u0107\u0109\u010B\u010D\u00E7\u1E09\u0188\u023C\uA73F\u2184]/g},{base:"d",letters:/[\u0064\u24D3\uFF44\u1E0B\u010F\u1E0D\u1E11\u1E13\u1E0F\u0111\u018C\u0256\u0257\uA77A]/g},{base:"dz",letters:/[\u01F3\u01C6]/g},{base:"e",letters:/[\u0065\u24D4\uFF45\u00E8\u00E9\u00EA\u1EC1\u1EBF\u1EC5\u1EC3\u1EBD\u0113\u1E15\u1E17\u0115\u0117\u00EB\u1EBB\u011B\u0205\u0207\u1EB9\u1EC7\u0229\u1E1D\u0119\u1E19\u1E1B\u0247\u025B\u01DD]/g},{base:"f",letters:/[\u0066\u24D5\uFF46\u1E1F\u0192\uA77C]/g},{base:"g",letters:/[\u0067\u24D6\uFF47\u01F5\u011D\u1E21\u011F\u0121\u01E7\u0123\u01E5\u0260\uA7A1\u1D79\uA77F]/g},{base:"h",letters:/[\u0068\u24D7\uFF48\u0125\u1E23\u1E27\u021F\u1E25\u1E29\u1E2B\u1E96\u0127\u2C68\u2C76\u0265]/g},{base:"hv",letters:/[\u0195]/g},{base:"i",letters:/[\u0069\u24D8\uFF49\u00EC\u00ED\u00EE\u0129\u012B\u012D\u00EF\u1E2F\u1EC9\u01D0\u0209\u020B\u1ECB\u012F\u1E2D\u0268\u0131]/g},{base:"j",letters:/[\u006A\u24D9\uFF4A\u0135\u01F0\u0249]/g},{base:"k",letters:/[\u006B\u24DA\uFF4B\u1E31\u01E9\u1E33\u0137\u1E35\u0199\u2C6A\uA741\uA743\uA745\uA7A3]/g},{base:"l",letters:/[\u006C\u24DB\uFF4C\u0140\u013A\u013E\u1E37\u1E39\u013C\u1E3D\u1E3B\u017F\u0142\u019A\u026B\u2C61\uA749\uA781\uA747]/g},{base:"lj",letters:/[\u01C9]/g},{base:"m",letters:/[\u006D\u24DC\uFF4D\u1E3F\u1E41\u1E43\u0271\u026F]/g},{base:"n",letters:/[\u006E\u24DD\uFF4E\u01F9\u0144\u00F1\u1E45\u0148\u1E47\u0146\u1E4B\u1E49\u019E\u0272\u0149\uA791\uA7A5]/g},{base:"nj",letters:/[\u01CC]/g},{base:"o",letters:/[\u006F\u24DE\uFF4F\u00F2\u00F3\u00F4\u1ED3\u1ED1\u1ED7\u1ED5\u00F5\u1E4D\u022D\u1E4F\u014D\u1E51\u1E53\u014F\u022F\u0231\u00F6\u022B\u1ECF\u0151\u01D2\u020D\u020F\u01A1\u1EDD\u1EDB\u1EE1\u1EDF\u1EE3\u1ECD\u1ED9\u01EB\u01ED\u00F8\u01FF\u0254\uA74B\uA74D\u0275]/g},{base:"oi",letters:/[\u01A3]/g},{base:"ou",letters:/[\u0223]/g},{base:"oo",letters:/[\uA74F]/g},{base:"p",letters:/[\u0070\u24DF\uFF50\u1E55\u1E57\u01A5\u1D7D\uA751\uA753\uA755]/g},{base:"q",letters:/[\u0071\u24E0\uFF51\u024B\uA757\uA759]/g},{base:"r",letters:/[\u0072\u24E1\uFF52\u0155\u1E59\u0159\u0211\u0213\u1E5B\u1E5D\u0157\u1E5F\u024D\u027D\uA75B\uA7A7\uA783]/g},{base:"s",letters:/[\u0073\u24E2\uFF53\u00DF\u015B\u1E65\u015D\u1E61\u0161\u1E67\u1E63\u1E69\u0219\u015F\u023F\uA7A9\uA785\u1E9B]/g},{base:"t",letters:/[\u0074\u24E3\uFF54\u1E6B\u1E97\u0165\u1E6D\u021B\u0163\u1E71\u1E6F\u0167\u01AD\u0288\u2C66\uA787]/g},{base:"tz",letters:/[\uA729]/g},{base:"u",letters:/[\u0075\u24E4\uFF55\u00F9\u00FA\u00FB\u0169\u1E79\u016B\u1E7B\u016D\u00FC\u01DC\u01D8\u01D6\u01DA\u1EE7\u016F\u0171\u01D4\u0215\u0217\u01B0\u1EEB\u1EE9\u1EEF\u1EED\u1EF1\u1EE5\u1E73\u0173\u1E77\u1E75\u0289]/g},{base:"v",letters:/[\u0076\u24E5\uFF56\u1E7D\u1E7F\u028B\uA75F\u028C]/g},{base:"vy",letters:/[\uA761]/g},{base:"w",letters:/[\u0077\u24E6\uFF57\u1E81\u1E83\u0175\u1E87\u1E85\u1E98\u1E89\u2C73]/g},{base:"x",letters:/[\u0078\u24E7\uFF58\u1E8B\u1E8D]/g},{base:"y",letters:/[\u0079\u24E8\uFF59\u1EF3\u00FD\u0177\u1EF9\u0233\u1E8F\u00FF\u1EF7\u1E99\u1EF5\u01B4\u024F\u1EFF]/g},{base:"z",letters:/[\u007A\u24E9\uFF5A\u017A\u1E91\u017C\u017E\u1E93\u1E95\u01B6\u0225\u0240\u2C6C\uA763]/g}];function f(e){let t=e;for(let e=0;et[this.props.valueKey]===this.props.value||e,!1)){var a,r;null===(a=(r=this.props).onSelect)||void 0===a||a.call(r,"")}if(t.inputValue!==this.state.inputValue&&this.props.onInputChange&&this.props.onInputChange(this.state.inputValue),this._scrollToFocusedOptionOnUpdate&&this.focusedRef&&this.menuRef){this._scrollToFocusedOptionOnUpdate=!1;let e=i.findDOMNode(this.focusedRef),t=i.findDOMNode(this.menuRef);if((0,_.hh)(e)&&(0,_.hh)(t)){let l=e.getBoundingClientRect(),a=t.getBoundingClientRect();(l.bottom>a.bottom||l.top({isOpen:!1,isPseudoFocused:t.isFocused&&!e,inputValue:""}))}getValueArray(){let{options:e,valueKey:t}=this.props,l=a=>{let r;return Array.isArray(a)?l(a[0]):("string"!=typeof a&&"number"!=typeof a?r=a:(r=e.find(e=>e[t]===a))||!this.props.isExtendable||(r={label:String(a),value:a}),r)},{value:a}=this.props;if(this.props.isMultiple){let e=[];if("string"==typeof a&&this.props.multipleValueDelimiter&&(e=a.split(this.props.multipleValueDelimiter)),Array.isArray(a))e=a;else{if(null==a)return[];e=[a]}return e.map(l).filter(Boolean)}let r=l(a);return r?[r]:[]}setValue(e){this.props.onSelect&&this.props.onSelect(e)}addValue(e){this.setValue(this.getValueArray().concat(e))}popValue(){let e=this.getValueArray();e.length&&this.setValue(e.slice(0,e.length-1))}focusNextOption(){this.focusAdjacentOption("next")}focusPreviousOption(){this.focusAdjacentOption("previous")}focusAdjacentOption(e){let t=this._visibleOptions.filter(e=>!e.isDisabled);if(this._scrollToFocusedOptionOnUpdate=!0,!this.state.isOpen){this.setState({isOpen:!0,inputValue:"",focusedOption:this._focusedOption||t["next"===e?0:t.length-1]});return}if(!t.length)return;let l=-1;for(let e=0;e-1&&l0?t[l-1]:t[t.length-1]),this.setState({focusedOption:a})}selectFocusedOption(){this._focusedOption&&this.handleOptionSelect(this._focusedOption)}getOptionsFiltered(e){let t=this.state.inputValue,{options:l}=this.props;return this.props.onFilter?this.props.onFilter(l,t,null!=e?e:[]):this.defaultFilterHandler(l,t,null!=e?e:[])}renderLoading(){return this.props.isLoading&&s.createElement("span",{className:"select-loading-zone","aria-hidden":"true"},s.createElement("span",{className:"select-loading"}))}renderValue(e){let t=this.getIsOpen(),l=this.props.valueRenderer||this.renderOptionLabel,{id:a}=this.props;if(!e.length)return this.state.inputValue||this.props.isExtendable&&this.state.isFocused?null:s.createElement("div",{className:"select-placeholder"},this.props.placeholder||this.props.i18n.trans("select.defaultPlaceholder"));let r=this.props.onValueClick?this.handleValueClick:void 0;if(this.props.isMultiple)return e.map((e,t)=>{let n=e.valueComponent||this.props.valueComponent;return s.createElement(n,{isDisabled:!!this.props.isDisabled,key:`value-${t}-${e[this.props.valueKey]}`,onClick:r,onRemove:this.handleValueRemove,option:e,id:a?`${a}-label`:void 0},l(e))});if(!this.state.inputValue){var n;let i=(null===(n=e[0])||void 0===n?void 0:n.valueComponent)||this.props.valueComponent;return s.createElement(i,{isDisabled:!!this.props.isDisabled,onClick:t?r:void 0,option:e[0],isOpen:t,id:a?`${a}-label`:void 0},l(e[0]))}return null}renderInput(){let{isDisabled:e,inputProps:t,isSearchable:l,tabIndex:a,isExtendable:r}=this.props,{inputValue:n}=this.state,i=(0,m.AK)("select-input",null==t?void 0:t.className);return!e&&(l||r)?s.createElement("input",{...t,className:i,tabIndex:Number(a)||0,onBlur:this.handleInputBlur,onChange:this.handleInputChange,onFocus:this.handleInputFocus,onKeyDown:this.handleInputKeyDown,ref:e=>{this.inputRef=e},value:n,"aria-autocomplete":"list"}):s.createElement("div",{...t,className:i,tabIndex:Number(a)||0,onBlur:this.handleInputBlur,onFocus:this.handleInputFocus,ref:e=>{this.inputRef=e},style:A})}renderClear(){let{isClearable:e,isDisabled:t,isLoading:l,isMultiple:a,value:r}=this.props,n=!!(a&&("string"==typeof r||Array.isArray(r)))&&0===r.length,i=!r||n;if(!e||t||l||i)return null;let o=this.props.isMultiple?this.props.textClearMultipleValues||this.props.i18n.trans("select.clearMultipleValues"):this.props.textClearSingleValue||this.props.i18n.trans("select.clearSingleValue");return s.createElement("span",{className:"select-clear-zone",title:o,"aria-label":o,onMouseDown:this.clearValue,onTouchEnd:this.clearValue},s.createElement(c.Z,{img:"close-2",size:10}))}renderArrow(){let{isOpen:e}=this.state,t=this.props.arrowComponent;return s.createElement("span",{className:"select-arrow-zone",onMouseDown:this.handleMouseDownOnArrow},t?s.createElement(t,{isOpened:e}):s.createElement(c.Z,{img:"arrow-down"}))}renderMenu(e,t,l){let{isExtendable:a,optionClassName:r}=this.props,n=null;if(e.length){let a=this.props.optionComponent,i=this.props.optionRenderer||this.renderOptionLabel,o=this.props.optionRendererComponent;n=e.map((e,n)=>{let c=t&&t.indexOf(e)>-1,d=e===l,u=(0,m.AK)("select-option",r,{"is-selected":c,"is-focused":d,disabled:e.isDisabled});if(!a)return null;let p=e[this.props.valueKey],h="string"==typeof p||"number"==typeof p||"boolean"==typeof p?p:String(p);return s.createElement(a,{className:u,isDisabled:e.isDisabled,focused:d,key:`option-${n}-${e[this.props.valueKey]}`,dataValue:h,onSelect:this.handleOptionSelect,onFocus:this.handleOptionFocus,option:e,isSelected:null!=c?c:void 0,ref:e=>{this.focusedRef=d?e:null}},o?s.createElement(o,e):i(e))})}else a||(n=s.createElement("div",{className:"select-no-result"},this.props.noResultText||this.props.i18n.trans("select.noResult")));return n}renderHiddenField(e){if(!this.props.name)return null;let t=e=>"object"==typeof e?JSON.stringify(e):e,l=e.map(e=>t(e[this.props.valueKey])).join(this.props.multipleValueDelimiter);return s.createElement("input",{type:"hidden",role:"textbox",name:this.props.name,value:l,disabled:this.props.isDisabled})}getFocusableOption(e){let t=this._visibleOptions;if(!t.length)return null;let l=this.state.focusedOption||e;return l&&t.indexOf(l)>-1?l:t.find(e=>!e.isDisabled)}render(){let{id:e,renderTooltipContent:t}=this.props,l=this.getValueArray(),a=this.getOptionsFiltered(this.props.isMultiple?l:null);this._visibleOptions=null!=a?a:[];let r=this.getFocusableOption(l[0]);this._focusedOption=r;let n=this.getIsOpen(),i=(0,m.AK)("select",this.props.className,{"is-multiple":this.props.isMultiple,"is-extendable":this.props.isExtendable,"is-for-native-controls":this.getIsNativeControlsAvailable(),disabled:this.props.isDisabled,error:this.props.hasError,"is-focused":this.state.isFocused,"is-loading":this.props.isLoading,"is-open":n,"is-pseudo-focused":this.state.isPseudoFocused,"is-searchable":this.props.isSearchable,"has-value":l.length,[`select-${this.props.size}`]:!0});return s.createElement("div",{className:i,id:e,"aria-labelledby":this.props["aria-labelledby"],style:this.props.wrapperStyle},this.renderHiddenField(l),s.createElement("div",{ref:e=>{this.controlRef=e},className:(0,m.AK)("select-control",this.props.controlClassName),style:this.props.controlStyle,onKeyDown:this.handleKeyDown,onMouseDown:this.handleMouseDown,onTouchStart:this.touchEventHandler,onTouchMove:this.touchEventHandler,onTouchEnd:this.touchEventHandler,onClick:this.props.onSelectClick,role:"combobox","aria-expanded":n,"aria-disabled":this.props.isDisabled,"aria-labelledby":e?`${e}-label`:void 0},this.renderValue(l),this.renderInput(),this.renderLoading()),this.renderNativeSelect(),this.renderDropdown(),this.renderClear(),this.renderArrow(),n&&t&&s.createElement(E,{selectId:e,renderContent:t}))}constructor(e){super(e),(0,r._)(this,"menuRef",null),(0,r._)(this,"controlRef",null),(0,r._)(this,"inputRef",null),(0,r._)(this,"focusedRef",null),(0,r._)(this,"_openAfterFocus",void 0),(0,r._)(this,"_focusedOption",null),(0,r._)(this,"_visibleOptions",[]),(0,r._)(this,"_scrollToFocusedOptionOnUpdate",!1),(0,r._)(this,"isTouchMoved",void 0),(0,r._)(this,"handleMouseDown",e=>{if(!(this.props.isDisabled||(0,_.WV)(e)&&0!==e.button)){if(e.stopPropagation(),e.preventDefault(),!this.props.isSearchable){this.focus(),this.setState(e=>({isOpen:!e.isOpen}));return}if(this.state.isFocused){let t=!0,l=[this.controlRef,this.inputRef];this.state.isOpen&&l.includes(e.currentTarget)&&(t=!1),this.setState({isOpen:t,isPseudoFocused:!1})}else this._openAfterFocus=!0,this.focus()}}),(0,r._)(this,"touchEventHandler",e=>{let{type:t}=e;"touchstart"===t?this.isTouchMoved=!1:"touchmove"===t?this.isTouchMoved=!0:"touchend"!==t||this.isTouchMoved||this.handleMouseDown(e)}),(0,r._)(this,"handleMouseDownOnArrow",e=>{if(!this.props.isDisabled&&("mousedown"!==e.type||0===e.button)){if(!this.state.isOpen){this.handleMouseDown(e);return}e.stopPropagation(),e.preventDefault(),this.closeMenu()}}),(0,r._)(this,"handleInputFocus",e=>{this.props.onFocus&&this.props.onFocus(e);let t=!!this._openAfterFocus;this.setState(e=>({isFocused:!0,isOpen:e.isOpen||t})),this._openAfterFocus=!1}),(0,r._)(this,"handleInputBlur",e=>{document.activeElement&&this.menuRef&&document.activeElement.isEqualNode(this.menuRef)||this.props.isExtendable&&this.state.inputValue||(this.props.onBlur&&this.props.onBlur(e),this.setState({inputValue:"",isFocused:!1,isOpen:!1,isPseudoFocused:!1}))}),(0,r._)(this,"handleInputChange",e=>{this.setState({isOpen:!0,isPseudoFocused:!1,inputValue:e.target.value})}),(0,r._)(this,"handleKeyDown",e=>{if(!this.props.isDisabled){switch(e.keyCode){case C.KEY_CODES.backspace:!this.state.inputValue&&this.props.isRemoveByBackspaceEnabled&&(e.preventDefault(),this.popValue());return;case C.KEY_CODES.tab:this.state.isOpen&&this.closeMenu();return;case C.KEY_CODES.enter:if(!this.state.isOpen)return;this.selectFocusedOption();break;case C.KEY_CODES.escape:this.state.isOpen?this.closeMenu():this.props.isClearable&&this.props.isClearByEscapeEnabled&&this.clearValue(e);break;case C.KEY_CODES.arrowUp:this.focusPreviousOption();break;case C.KEY_CODES.arrowDown:this.focusNextOption();break;default:return}e.preventDefault()}}),(0,r._)(this,"handleValueClick",(e,t)=>{let{onValueClick:l}=this.props;l&&l(e,t)}),(0,r._)(this,"handleMenuScroll",e=>{if(!this.props.onMenuScrollToBottom)return;let{currentTarget:t}=e;t.scrollHeight>t.offsetHeight&&!(t.scrollHeight-t.offsetHeight-t.scrollTop)&&this.props.onMenuScrollToBottom()}),(0,r._)(this,"onSelectHandler",e=>{let{options:t,valueKey:l}=this.props,a=(0,N.U)(e.target.selectedOptions,e=>null==e?void 0:e.value),r=t.filter(({[l]:e})=>a.find(t=>String(t)===String(e)));if(this.props.isMultiple)this.setValue(r),this.setState({inputValue:""});else{var n;this.setValue(null!==(n=r.at(0))&&void 0!==n?n:null),this.setState(e=>({inputValue:"",isPseudoFocused:e.isFocused}))}}),(0,r._)(this,"handleOptionSelect",e=>{this.props.onOptionClick&&this.props.onOptionClick(e),e.isDisabled||(this.props.isMultiple?(this.addValue(e),this.setState({inputValue:""})):(this.setValue(e),this.setState(e=>({isOpen:!1,inputValue:"",isPseudoFocused:e.isFocused}))))}),(0,r._)(this,"handleExtendList",e=>{let{isExtendable:t,options:l}=this.props,{isFocused:a,inputValue:r}=this.state,n=r.trim();if(e.stopPropagation(),e.preventDefault(),!t)return;let s=l.find(e=>"string"==typeof e.label&&e.label.toLowerCase()===n.toLowerCase());s?this.addValue({label:s.label,value:s.value}):this.addValue({label:n,value:n}),this.setState({inputValue:""},()=>{this.setState({isOpen:!1,isPseudoFocused:a})})}),(0,r._)(this,"handleInputKeyDown",e=>{let{isExtendable:t}=this.props;t&&e.keyCode===C.KEY_CODES.enter&&this.handleExtendList(e)}),(0,r._)(this,"handleOptionFocus",e=>{this.setState({focusedOption:e})}),(0,r._)(this,"clearValue",e=>{(0,_.WV)(e)&&0!==e.button||this.props.disabledClearValue||(e.stopPropagation(),e.preventDefault(),this.setValue(this.props.isMultiple?[]:null),this.setState({isOpen:!1,inputValue:""},()=>{this.focus()}))}),(0,r._)(this,"handleValueRemove",e=>{let t=this.getValueArray().filter(t=>t.value!==e.value);this.setValue(t),this.focus()}),(0,r._)(this,"defaultFilterHandler",(e,t,l)=>{let a=t;this.props.isStripDiacriticsEnabled&&(a=f(a)),this.props.isCaseIgnored&&(a=a.toLowerCase());let r=l?l.map(e=>e[this.props.valueKey]):null;return e.filter(e=>{if(r&&r.indexOf(e[this.props.valueKey])>-1)return!1;if(this.props.filterOption)return this.props.filterOption.call(this,e,a);if(!a)return!0;let t=String(e[this.props.valueKey]),l=String(e[this.props.labelKey]);return this.props.isStripDiacriticsEnabled&&(this.props.isDefaultFilterByValue&&(t=f(t)),this.props.isDefaultFilterByLabel&&(l=f(l))),this.props.isCaseIgnored&&(this.props.isDefaultFilterByValue&&(t=t.toLowerCase()),this.props.isDefaultFilterByLabel&&(l=l.toLowerCase())),this.props.isDefaultFilterStartPositionOnly?this.props.isDefaultFilterByValue&&t.substring(0,a.length)===a||this.props.isDefaultFilterByLabel&&l.substring(0,a.length)===a:this.props.isDefaultFilterByValue&&t.indexOf(a)>=0||this.props.isDefaultFilterByLabel&&l.indexOf(a)>=0})}),(0,r._)(this,"renderOptionLabel",e=>{let t=e[this.props.labelKey];return(0,_.w9)(t)?t:null}),(0,r._)(this,"getIsOpen",()=>{let{options:e,isMultiple:t}=this.props,{isOpen:l}=this.state,a=this.getValueArray(),r=t&&!e.length,n=a.length&&!this.state.inputValue;return(!r||!n)&&l}),(0,r._)(this,"getIsNativeControlsAvailable",()=>{let{isSearchable:e,isMultiple:t,isDisabled:l,isNativeSelectDisabled:a}=this.props;return!a&&C.BROWSER_CAPABILITIES.touch&&(!e||t)&&!l}),(0,r._)(this,"renderNativeSelect",()=>{let e=this.getValueArray(),{options:t,isMultiple:l,valueKey:a,isIPhoneEmptyOptionHack:r,renderNativeLabel:n}=this.props;if(!this.getIsNativeControlsAvailable())return null;let i=!!e.length;return s.createElement("select",{className:"native-select",multiple:l,onChange:this.onSelectHandler,ref:e=>{e&&(i||k||(e.selectedIndex=-1))}},!l&&k&&r&&s.createElement("option",{value:"",key:"placeholder"}),t.filter(({isIgnoreNative:e})=>!e).map(t=>s.createElement("option",{selected:!!e.find(e=>e[a]===t[a]),value:String(t[a]),key:String(t[a])},n?n(t):t.label)))}),(0,r._)(this,"renderDropdown",()=>{var e;let t=this.getValueArray(),{isMultiple:l,isDisabled:a,bottomDropdownComponent:r,isExtendable:n,dropdownPositionFixed:u,shouldRenderInPortal:p,menuContainerStyle:h,isPerfectScrollEnabled:v,id:E}=this.props,{inputValue:g}=this.state,b=this.getOptionsFiltered(l?t:null),f=this.getIsOpen(),C=this.getFocusableOption(t[0]);if(a||!f)return null;let y=(0,m.AK)("select-menu",{"select-menu--with-bottom-component":!!r}),N=h;if(u&&(null===(e=this.inputRef)||void 0===e?void 0:e.parentElement)){let{left:e,top:t,height:l,width:a}=this.inputRef.parentElement.getBoundingClientRect();N={...N,top:t+l,width:a,left:e}}let _=s.createElement("div",{className:(0,m.AK)("select-menu-outer",u&&"select-menu-outer--fixed"),style:N},s.createElement("div",{ref:e=>{this.menuRef=e},className:y,style:this.props.menuStyle,role:"listbox","aria-labelledby":E?`${E}-label`:void 0},s.createElement(d.Z,{isForceEnabled:v,onNativeScroll:this.handleMenuScroll,onScrollY:this.handleMenuScroll},this.renderMenu(null!=b?b:[],l?null:t,C)),n&&g&&s.createElement("div",{className:"select-no-result"},s.createElement("div",{className:"select-extend-list",onClick:this.handleExtendList},s.createElement(c.Z,{img:"plus-unframed"}),s.createElement(o.Z,{messageId:"select.addValue",elements:{value:s.createElement("span",{className:"new-value"},'"',g,'"')}}))),r&&s.createElement("div",{className:"select-menu__bottom-component"},r)));return p?(0,i.createPortal)(_,document.body):_}),this.state={inputValue:"",isFocused:!1,isOpen:!1,isPseudoFocused:!1}}}let T=(0,y.rU)(S);T.defaultProps={inputProps:{},isCaseIgnored:!0,isClearable:!1,isClearByEscapeEnabled:!0,isDefaultFilterByLabel:!0,isDefaultFilterByValue:!0,isDefaultFilterStartPositionOnly:!1,isDisabled:!1,isLoading:!1,isMultiple:!1,isRemoveByBackspaceEnabled:!0,isSearchable:!1,isStripDiacriticsEnabled:!0,isExtendable:!1,hasError:!1,labelKey:"label",multipleValueDelimiter:",",optionComponent:u,size:"default",valueComponent:g.Z,valueKey:"value",onSelectClick:n.Z,isNativeSelectDisabled:!1,isIPhoneEmptyOptionHack:!0,disabledClearValue:!1,options:[]};let w=T},93358:(e,t,l)=>{l.d(t,{Z:()=>d});var a,r=l(18775),n=l(27378),s=l(4289),i=l(29413),o=l(25470);class c extends(a=n.Component){render(){let{children:e,isDisabled:t,onClick:l,onRemove:a,id:r}=this.props;return n.createElement("div",{className:"select-value"},l?n.createElement(s.rU,{className:"select-value-label",onMouseDown:this.labelMouseDownHandler,onTouchEnd:this.labelMouseDownHandler,id:r,to:"#"},e):n.createElement("span",{className:"select-value-label",id:r},e),!!(!t&&a)&&n.createElement("span",{className:"select-value-icon",onMouseDown:this.removeMouseDownHandler,onTouchEnd:this.removeMouseDownHandler},n.createElement(i.Z,{img:"close-4",size:15})))}constructor(...e){super(...e),(0,r._)(this,"labelMouseDownHandler",e=>{(!(0,o.WV)(e)||0===e.button)&&this.props.onClick&&(e.stopPropagation(),this.props.onClick(this.props.option,e))}),(0,r._)(this,"removeMouseDownHandler",e=>{(!(0,o.WV)(e)||0===e.button)&&(e.preventDefault(),e.stopPropagation(),this.props.onRemove&&this.props.onRemove(this.props.option))})}}(0,r._)(c,"defaultProps",{isDisabled:!1});let d=c},72914:(e,t,l)=>{l.d(t,{B:()=>i,f:()=>d});var a=l(27378),r=l(186),n=l(87937);let s=(0,a.createContext)(!1),i=e=>a.createElement(s.Provider,{value:!0},e.children),o=new Set,c=()=>{let e=(0,a.useId)(),[t,l]=(0,a.useState)(null);if((0,a.useEffect)(()=>(o.size&&!o.has(e)&&l(Error("[SeoH1] Duplicated H1 element")),o.add(e),()=>{o.delete(e)}),[e]),t)throw t;return null},d=({children:e,as:t="h1",fallback:l="h2",...i})=>{let o=(0,a.useContext)(s);return a.createElement(a.Fragment,null,a.createElement(o?l:t,i,e),!o&&!(0,n.sk)()&&a.createElement(r.Z,null,a.createElement(c,null)))}},95100:(e,t,l)=>{l.d(t,{g:()=>s});var a=l(27378),r=l(99748),n=l(62663);let s=({items:e,isHtml:t,renderButton:l,alwaysShowButton:s,contentClassName:i,collapsedContentClassName:o="",linesCount:c,isInlineContent:d,delimiter:m=d?", ":"",defaultLineHeightPx:u=0})=>{let p=(0,a.useMemo)(()=>"string"==typeof e?[e]:e,[e]),h=!p.length,{windowWidth:v}=(0,n.do)("windowWidth"),E=(0,a.useRef)(null),g=(0,a.useRef)(null),[b,f]=(0,a.useState)(!0),[C,y]=(0,a.useState)(void 0),[N,_]=(0,a.useState)(p.length||1),[k,A]=(0,a.useState)(u),S=(0,a.useMemo)(()=>p.join(m),[p,m]);if((0,a.useLayoutEffect)(()=>{let e=g.current;e&&A(e.offsetHeight)},[v,h]),(0,a.useEffect)(()=>{let e=E.current,t=g.current;if(!e||h||!k||!t)return;let l="show-more__content--calculating";e.classList.add(l);let a=Array.from(e.children).filter(e=>e!==t),r=e.getBoundingClientRect().top+k*c,n=!1,s=a.length;for(let e=0;er){n=!0,s=Math.max(e,1);break}e===a.length-1&&(n=!1,s=e+1)}e.classList.remove(l),_(s),y(n)},[S,h,v,c,k]),h)return null;let T=d?"span":"div",w=b&&!1!==C;return a.createElement(a.Fragment,null,a.createElement("div",{ref:E,className:(0,r.AK)("show-more__content",i,{"show-more__content--collapsed":w,[o]:w}),style:{maxHeight:w?`${c*k}px`:"none"}},a.createElement("span",{className:"show-more__line-height-tester",ref:g},"_"),p.map((e,l)=>{let n=`${0===l?"":m}${e}`;return a.createElement(T,{key:e,className:(0,r.AK)("show-more__item",{"show-more__item--hidden":l>=N&&w}),dangerouslySetInnerHTML:t?{__html:n}:void 0},t?void 0:n)})),(s||C)&&l({isCollapsed:b,onClick:()=>f(e=>!e)}))}},15041:(e,t,l)=>{l.d(t,{RP:()=>h,ZH:()=>d,ZP:()=>v,_5:()=>c,uu:()=>m});var a=l(27378),r=l(99748),n=l(20717),s=l(95654),i=l(59609),o=l(62203);let c="",d="men",m="trans",u=[c,d,m,"","ultimate","lgbtq","valentine"].filter(Boolean),p=e=>{u.forEach(t=>{var l;null===(l=document.querySelector(`#site_logo_header .logo-section-${t}`))||void 0===l||l.setAttribute("visibility",e.includes(t)?"visible":"hidden")})},h=({gender:e,modifiers:t,className:l,noResponsive:n,...s})=>((0,a.useEffect)(()=>{p([e,...t].filter(Boolean))},[e,t]),a.createElement("div",{className:(0,r.AK)("header-logo",l,{"header-logo-no-responsive":n}),...s},a.createElement("svg",null,a.createElement("use",{xlinkHref:"#site_logo_header"})))),v=({className:e,...t})=>{(0,s.C)(o.ok),(0,n.jz)("common/images/sc/sc-logo-.svg"),(0,s.C)(o.hA);let l=(0,s.C)(i.jp),r=(0,s.C)(i.UB);return a.createElement(h,{gender:l,modifiers:r,className:e,...t})}},29746:(e,t,l)=>{l.d(t,{Z:()=>d});var a=l(27378),r=l(4289),n=l(15041),s=l(99748),i=l(97606),o=l(95654),c=l(77602);let d=({onClick:e,className:t,to:l})=>{let{trans:d}=(0,i.QT)(),m=(0,o.C)(c.Tq);return a.createElement(r.rU,{"aria-label":d("aria.logoLabel"),to:l||m,onClick:e,className:(0,s.AK)(t,"header-logo-link")},a.createElement(n.ZP,null))}},45598:(e,t,l)=>{l.d(t,{Z:()=>n});var a=l(27378),r=l(99748);let n=({className:e,type:t="default",...l})=>a.createElement("div",{className:(0,r.AK)("site-logo",e,t),...l},a.createElement("svg",null,a.createElement("use",{xlinkHref:"default"===t?"#site_logo_header":"#site_logo_footer"})))},98710:(e,t,l)=>{l.d(t,{Z:()=>s});var a=l(27378),r=l(29697),n=l(99973);let s=({timeout:e=n.QB,children:t,...l})=>a.createElement(r.Z,{...l,timeout:e,classNames:"slide-transition"},t)},1217:(e,t,l)=>{l.d(t,{A:()=>k,V:()=>_});var a=l(27378),r=l(84094),n=l(22371),s=l(57174),i=l(29413),o=l(91090),c=l(97606),d=l(94380),m=l(95654),u=l(36886),p=l(58543),h=l(243),v=l(62203),E=l(96330),g=l(12278),b=l(71227),f=l(68020),C=l(30399),y=l(79561),N=l(29421);let _=()=>{let e=(0,m.C)(p.pB),t=(0,m.C)(b.m5),l=(0,m.C)(N.cU),a=(0,m.C)(v.ok),s=(0,m.C)(g.M7),i=(0,m.C)(r.u),o=(0,m.C)(n.Xt),c=(0,m.C)(h.dm),d=(0,m.C)(y.nz);return(0,u.t)()&&a&&!s&&e&&(!l||d)&&!t&&!i&&!o&&!c},k=()=>{let{trans:e}=(0,c.QT)(),t=(0,m.C)(f.bG),l=(0,m.C)(C.D_),r=(0,d.T)(),n=_(),[u,p]=(0,a.useState)(!1);return((0,a.useEffect)(()=>{if(!t||!document.getElementById("widget"))return;p(!0);let e=new MutationObserver(t=>{for(let l of t)if("childList"===l.type&&!document.getElementById("widget")){p(!1),e.disconnect();return}});return e.observe(document.body,{childList:!0}),()=>e.disconnect()},[]),!n||u)?null:a.createElement("div",{className:"join-sc-community-banner"},a.createElement("div",{className:"join-sc-community-banner__content"},a.createElement(i.Z,{img:"stripchat-logo",size:32}),e("joinSCCommunity.otherPages"),a.createElement(s.ZP,{style:"signup",className:"join-sc-community-banner__btn",onClick:()=>{r((0,E.I)("SignUp",{amplParams:{triggerSource:o.Dt.JOIN_SC_COMMUNITY[l?"MODEL_PAGES":"OTHER_PAGES"]}}))}},e("joinSCCommunity.btn"))))}},70381:(e,t,l)=>{l.d(t,{z:()=>u});var a=l(27378),r=l(95334),n=l(95654),s=l(80092),i=l(12278),o=l(802),c=l(61265),d=l(64032),m=l(1217);let u=(0,a.memo)(()=>{let e=(0,n.C)(s.yd),t=(0,n.C)(d.Og),l=(0,n.C)(d.QF),u=(0,n.C)(r.rD),p=(0,n.C)(i.M7),h=(0,n.C)(r.gj),v=(0,n.C)(s.lT),E=t||u||l;return a.createElement("div",{className:h},!e&&a.createElement(m.A,null),p&&E&&u&&a.createElement(o.d,null),(p||!v)&&E&&!u&&a.createElement(c.N,null))})},95334:(e,t,l)=>{l.d(t,{gj:()=>u,rD:()=>m,Al:()=>d});var a=l(80406),r=l(243),n=l(80092),s=l(12278),i=l(64032),o=l(99748);let c=({shouldShowNavbar:e,isNavbarBuyTokenButtonEnabled:t,isModelNavbarVisible:l,isNewNavbarGuestWithSignUpEnabled:a,isNewNavbarGuestWithFeedEnabled:r})=>(0,o.AK)("sticky-bottom",{"sticky-bottom__with-navbar":e,"sticky-bottom__with-navbar-ios-safe-space":e||r,"sticky-bottom__without-navbar":!e,"sticky-bottom__with-navbar-with-round-button":e&&(t||a),"sticky-bottom__model-navbar":l}),d=(0,a.P1)([s.ts,n.Af],(e,t)=>{var l;return(null==e?void 0:null===(l=e.userRanking)||void 0===l?void 0:l.league)==="grey"&&0===e.tokens&&t}),m=(0,a.P1)([r.BD,r.sc,n.PJ],(e,t,l)=>e&&!t&&l),u=(0,a.P1)([i.Og,i.QF,m,d,n.c3,n.of],(e,t,l,a,r,n)=>c({shouldShowNavbar:e||l||t,isNavbarBuyTokenButtonEnabled:a,isModelNavbarVisible:t,isNewNavbarGuestWithSignUpEnabled:r,isNewNavbarGuestWithFeedEnabled:n}))},77852:(e,t,l)=>{let a,r,n,s;l.d(t,{x:()=>U});var i=l(64489),o=l(27378),c=l(99973),d=l(24744),m=l(82168),u=l(95654),p=l(41230),h=l(20727),v=l(62663),E=l(243),g=l(95083),b=l(69247),f=l(27251),C=l(73465),y=l(3818),N=l(57778),_=l(6818),k=l(1700),A=l(25720),S=l(42024),T=l(68074),w=l(80406),P=l(80092),M=l(12278);let I=(0,w.P1)([M.ts,P.lT],(e,t)=>e||!t),R={SCROLL_UP:30,SCROLL_DOWN:15,STATIC_HEADER:200},Z={DESKTOP_SIDEBAR:A.jJ,OVERLAY_SIDEBAR:".app-sidebar-overlay",HEADER:".wrapper > header",FOOTER:T.o,STICKY_SUBHEADER_DESKTOP:".sticky-subheader-desktop",MAIN_LAYOUT:".main-layout",HEADER_NOTIFICATIONS:".header-notifications",HEADER_USER_MENU_DROPDOWN:".header-user-menu .header-dropdown-content",MODEL_FILTER_DROPDOWN:".model-filter-dropdown-wrapper",SPOTLIGHT:".spotlight-dropdown",MOBILE_NAVBAR_INNER:".mobile-navbar__inner",STICKY_BOTTOM_WITH_NAVBAR:".sticky-bottom__with-navbar",STICKY_BOTTOM_LAST_CHILD:".sticky-bottom > *:last-child"},L=null,D=!1,B=null,F=null,O=()=>{r||(r=document.getElementById(Z.DESKTOP_SIDEBAR)),n||(n=document.getElementById(Z.FOOTER)),r&&n&&null===L&&(L=requestAnimationFrame(()=>{L=null,D||(r.style.marginBottom="-2000px",D=!0);let e=Math.max(r.getBoundingClientRect().top,document.querySelector(Z.STICKY_SUBHEADER_DESKTOP)?96:54),t=Math.max(0,Math.min(window.innerHeight,n.getBoundingClientRect().top)-e);B!==t&&(B=t,r.style.height=`${t}px`)}))},x=()=>{let e=s.offsetHeight;e!==F&&(F=e,a.style.setProperty("--header-notifications-height",`${e}px`))},U=(0,o.memo)(()=>{let{isLayoutUpToL:e,isLayoutMoreThanL:t,windowOrientation:l}=(0,v.do)("isLayoutUpToL","isLayoutMoreThanL","windowOrientation"),r=(0,u.C)(t=>(0,b.Ue)(t,{isLayoutUpToL:e})),A=(0,u.C)(t=>(0,b.nz)(t,{isLayoutUpToL:e})),T=(0,u.C)(t=>(0,b.Vh)(t,{isLayoutUpToL:e})),w=(0,u.C)(t=>(0,b.DJ)(t,{isLayoutUpToL:e})),P=(0,u.C)(g.aW),{isOverlaySidebarShown:M,isSidebarCollapsed:D}=(0,S.s)(),U=(0,h.Z)(M),H=(0,u.C)(E.pO),K=A&&t&&!H,V=(0,u.C)(y.f2),$=(0,u.C)(k.mq),W=(0,u.C)(N.rH),z=(0,u.C)(e=>e.favorites.isPendingModelsList),q=(0,u.C)(e=>e.watchHistory.isPending),Q=(0,u.C)(e=>e.myCollection.isPending),j=(0,u.C)(C.D8),G=(0,u.C)(C.ue),Y=(0,u.C)(_.G2),J=(0,u.C)(E.OL),X=(0,u.C)(f.gb),ee=(0,u.C)(I),et=(0,o.useRef)(""),[el,ea]=(0,o.useState)(!1),[er,en]=(0,o.useState)("neutral"),[es,ei]=(0,o.useState)(!1),eo=(0,o.useRef)(!1),[ec,ed]=(0,o.useState)("initial"),em=(0,o.useRef)(!1);return(0,p.l)(()=>{r&&(J&&J===et.current||"initial"===ec||(ed("initial"),em.current=!0),en("neutral"))},[r,null==P?void 0:P.pathname]),(0,p.l)(()=>{r&&("initial"!==ec&&(ed("initial"),em.current=!0),M&&((0,d.qA)(document.body),m.Z.reset()),en("neutral"))},[r,l]),(0,p.l)(()=>{r&&(X&&(ed("show-header-instant"),em.current=!0),en("neutral"))},[r,X]),(0,o.useEffect)(()=>{et.current=J},[J]),(0,p.l)(()=>{if(!r)return;let e="initial"===ec||"hide-header-instant"===ec||"show-header-instant"===ec,t=0;if(em.current?(t=200,em.current=!1):t=e?0:T||w?400:225,!t)return eo.current=!1,ei(!1);eo.current=!0,ei(!0);let l=setTimeout(()=>{eo.current=!1,ei(!1)},t);return()=>clearTimeout(l)},[ec]),(0,o.useEffect)(()=>{if(!r||eo.current||M||X)return;let e="initial"===ec&&el,t="hide-header-instant"===ec&&!el,l=("hide-header"===ec||"hide-header-instant"===ec)&&"up"===er,a=("show-header"===ec||"show-header-instant"===ec)&&"down"===er,n=ec;e&&(n="hide-header-instant"),t&&(n="initial"),l&&(n="show-header"),a&&(n="hide-header"),n!==ec&&([Z.HEADER_USER_MENU_DROPDOWN,Z.MODEL_FILTER_DROPDOWN,Z.SPOTLIGHT].some(e=>document.querySelector(e))||ed(n))},[el,er,es,X]),(0,o.useEffect)(()=>{if(!r||X)return;let e=m.Z.get(),t=(0,i.Z)(()=>{let t=m.Z.get(),l=t>e?"down":"up",a="down"===l?R.SCROLL_DOWN:R.SCROLL_UP,r=Math.abs(t-e)>a,n=0===e;r&&!n?en(l):en("neutral"),e=t},200),l=()=>{let e=m.Z.get(),t=e<=0&&!U.current;ea(e>R.STATIC_HEADER),t&&ed("initial")},a=()=>{l(),t()};return window.addEventListener("scroll",a),()=>{window.removeEventListener("scroll",a),t.cancel()}},[r,X]),(0,o.useEffect)(()=>{if(!r||(void 0===a&&(a=document.querySelector(Z.MAIN_LAYOUT)),!a))return;let e=`sh-${ec}`;if(a.classList.add(e),n=document.getElementById(Z.FOOTER),c.BROWSER_CAPABILITIES.isPWA||ee){let e=document.querySelector(Z.MOBILE_NAVBAR_INNER),t=document.querySelector(Z.STICKY_BOTTOM_WITH_NAVBAR),l=document.querySelector(Z.STICKY_BOTTOM_LAST_CHILD);if(e&&n){let t=c.BROWSER_CAPABILITIES.iOS?10:0;n.style.paddingBottom=`${e.offsetHeight+t}px`}t&&l&&(t.style.transform="none",l.style.paddingBottom="120px")}return()=>a.classList.remove(e)},[ec]),(0,o.useEffect)(()=>{if(K)return window.addEventListener("scroll",O),window.addEventListener("resize",O),()=>{window.removeEventListener("scroll",O),window.removeEventListener("resize",O),null!==L&&(cancelAnimationFrame(L),L=null),B=null}},[K]),(0,o.useEffect)(()=>{K&&O()},[K,T,P,V,$,W,z,q,Q,j,G,D,Y]),(0,o.useEffect)(()=>{if(void 0===s&&(s=document.querySelector(Z.HEADER_NOTIFICATIONS)),void 0===a&&(a=document.querySelector(Z.MAIN_LAYOUT)),!(s&&a&&w&&window.MutationObserver))return;let e=new MutationObserver(e=>{e.some(({type:e})=>"childList"===e)&&x()});return x(),e.observe(s,{childList:!0}),()=>{e.disconnect(),F=null}},[w]),null})},17473:(e,t,l)=>{l.d(t,{M:()=>n});var a=l(27378),r=l(99748);let n=({mode:e=""})=>a.createElement("div",{className:(0,r.AK)("strip-backdrop",e)})},52391:(e,t,l)=>{l.d(t,{Z:()=>i});var a=l(27378),r=l(1948),n=l(99382),s=l(64741);let i=({isButton:e=!1,onClick:t,children:l,className:i})=>e?a.createElement(n.ZP,{href:s.oo,rel:"nofollow noopener",className:i,onClick:t,type:"anchor"},l):a.createElement(r.Z,{href:s.oo,className:i,onClick:t,target:"_blank",rel:"nofollow"},l)},75997:(e,t,l)=>{l.d(t,{Z:()=>m});var a,r=l(18775),n=l(37051),s=l(27378),i=l(29413),o=l(99748);let c={switcherIcon:"",className:"",iconVisibility:!0,iconImg:"check",isChecked:!1,onChange:n.Z,size:"default",theme:"dark"};class d extends(a=s.PureComponent){render(){let{iconImg:e,className:t,size:l,theme:a,iconVisibility:r,switcherIcon:n,id:c,isDisabled:d}=this.props,{isChecked:m}=this.props,u=(0,o.AK)("switcher",l,t,{on:m,"switcher--disabled":d,[a]:!0});return s.createElement("div",{className:u,onClick:this.onChangeHandler,id:c},s.createElement("div",{className:"switcher-wrapper"},s.createElement("span",{className:"switcher-label"},r&&s.createElement(i.Z,{img:e})),s.createElement("span",{className:"switcher-switch"},!!n&&s.createElement(i.Z,{img:n})),s.createElement("span",{className:"switcher-label"})))}constructor(...e){super(...e),(0,r._)(this,"onChangeHandler",e=>{this.props.isDisabled||this.props.onChange(!this.props.isChecked,e)})}}(0,r._)(d,"defaultProps",c);let m=d},43887:(e,t,l)=>{l.d(t,{b:()=>s});var a=l(27378),r=l(65804),n=l(34829);let s=e=>{let{selectedTags:t,deselectTag:l}=e,s=(0,a.useCallback)(e=>{let{primaryTagId:t,id:l}=e;return a.createElement(r.Z,{messageId:`tagGenders.${t}.${l}`,elements:{desktop:a.createElement("span",{className:"media-up-to-m-hidden"}),mobile:a.createElement("span",{className:"media-after-m-hidden"})}})},[]);return a.createElement(a.Fragment,null,t.map(e=>a.createElement(n.T,{skipDefaultHandlers:!0,key:e.id,className:"tags-with-filter__inline-badge",renderLabel:s,tag:e,shouldPreventDefault:!0,selected:!0,onClick:()=>l(e.id)})))}},17577:(e,t,l)=>{l.d(t,{h:()=>n});var a=l(27378),r=l(98655);let n=(0,l(98846).n7)({resolved:{},chunkName:()=>"TechnicalProblemModal",isReady(e){let t=this.resolve(e);return!0===this.resolved[t]&&!!l.m[t]},importAsync:()=>l.e(6463).then(l.bind(l,57367)),requireAsync(e){let t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){return l(this.resolve(e))},resolve:()=>57367},{ssr:!1,fallback:a.createElement(r.c,null)})},31896:(e,t,l)=>{l.d(t,{ZP:()=>s});var a=l(27378),r=l(99748);let n=e=>`text-${e}`,s=({type:e,className:t,as:l="span",children:s,...i})=>a.createElement(l,{...i,className:(0,r.AK)(t,n(e))},s)},86974:(e,t,l)=>{let a;l.d(t,{Z:()=>p});var r=l(27378);let n=` min-height:none !important; max-height:none !important; height:0 !important; visibility:hidden !important; overflow:hidden !important; position:absolute !important; z-index:-1000 !important; top:0 !important; right:0 !important `,s=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","text-rendering","text-transform","width","padding-left","padding-right","border-width","box-sizing"],i={},o=function(e,t=!1,l=null,r=null){a||(a=document.createElement("textarea"),document.body.appendChild(a));let{paddingSize:o,borderSize:c,boxSizing:d,sizingStyle:m}=function(e,t=!1){let l=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&l&&i[l])return i[l];let a=window.getComputedStyle(e),r=a.getPropertyValue("box-sizing")||a.getPropertyValue("-moz-box-sizing")||a.getPropertyValue("-webkit-box-sizing"),n=parseFloat(a.getPropertyValue("padding-bottom"))+parseFloat(a.getPropertyValue("padding-top")),o=parseFloat(a.getPropertyValue("border-bottom-width"))+parseFloat(a.getPropertyValue("border-top-width")),c={sizingStyle:s.map(e=>`${e}:${a.getPropertyValue(e)}`).join(";"),paddingSize:n,borderSize:o,boxSizing:r};return t&&l&&(i[l]=c),c}(e,t);a.setAttribute("style",`${m};${n}`),a.value=e.value||e.placeholder||"";let u=-1/0,p=1/0,h=a.scrollHeight;if("border-box"===d?h+=c:"content-box"===d&&(h-=o),null!==l||null!==r){a.value="";let e=a.scrollHeight-o;null!==l&&(u=e*l,"border-box"===d&&(u=u+o+c),h=Math.max(u,h)),null!==r&&(p=e*r,"border-box"===d&&(p=p+o+c),h=Math.min(p,h))}return{height:h,minHeight:u,maxHeight:p}};var c=l(99748),d=l(91368),m=l(41230),u=l(62663);let p=(0,r.forwardRef)(({useCacheForDOMMeasurements:e,isDroppable:t,className:l,maxRows:a=5,minRows:n,isWithCounter:s,isError:i,...p},h)=>{var v,E;let{windowWidth:g,windowHeight:b}=(0,u.do)("windowWidth","windowHeight"),[f,C]=(0,r.useState)(),y=(0,r.useRef)(null),[N,_]=(0,r.useState)(!1),k=h||y,A=()=>{let{height:t}=o(k.current,e,p.rows||n,a);t!==f&&C(t)};(0,r.useEffect)(A,[g,b]),(0,m.l)(()=>{let e=window.requestAnimationFrame(A);return()=>window.cancelAnimationFrame(e)});let S=r.createElement("textarea",{className:(0,c.AK)("textarea textarea-autosize",{[l||""]:!s,"textarea-autosize--error":i}),onChange:e=>{var t;A(),null===(t=p.onChange)||void 0===t||t.call(p,e)},onFocus:e=>{var t;_(!0),null===(t=p.onFocus)||void 0===t||t.call(p,e)},onBlur:e=>{var t;_(!1),null===(t=p.onBlur)||void 0===t||t.call(p,e)},onDrop:e=>{var l;t&&(e.preventDefault(),(null===(l=e.dataTransfer.files)||void 0===l?void 0:l.length)&&(0,d.nu)(e.dataTransfer.files[0]).then(e=>{k.current&&(k.current.value=e,k.current.dispatchEvent(new Event("change")))}))},style:{height:f},ref:k,...p});return s?r.createElement("div",{className:(0,c.AK)(l,"textarea-wrapper",{"textarea-wrapper--focused":N,"textarea-wrapper--error":i})},S,r.createElement("span",{className:"textarea-wrapper__counter"},`${null!==(E=null===(v=p.value)||void 0===v?void 0:v.toString().length)&&void 0!==E?E:0}/${p.maxLength}`)):S})},43806:(e,t,l)=>{l.d(t,{Z:()=>E});var a=l(18775),r=l(63345),n=l(27378),s=l(48204),i=l(78983),o=l(97606),c=l(64696),d=l(87766),m=l(13743),u=l(62182),p=l(27251);class h extends n.Component{componentDidUpdate(e){(0,c.Z)(this.propsUpdateToActionsMap,e,this.props)}componentDidMount(){this.startTimer(this.props),(0,c.Z)(this.propsUpdateToActionsMap,{},this.props)}componentWillUnmount(){this.cancelTimer()}render(){let{endTime:e,className:t}=this.props;if(!e)return null;let l=this.getTime();return n.createElement("span",{className:t,ref:this.timerRef},l)}constructor(...e){super(...e),(0,a._)(this,"timerName",(0,r.Z)("Timer_")),(0,a._)(this,"handledTicks",{}),(0,a._)(this,"timerRef",n.createRef()),(0,a._)(this,"propsUpdateToActionsMap",[{update:["endTime"],action:()=>{let{onTimeEnd:e}=this.props;this.startTimer({onTimeEnd:e})}},{update:u.mD,action:()=>{let{isWindowFocused:e}=this.props;e&&this.updateTimer()}}]),(0,a._)(this,"startTimer",({onTimeEnd:e})=>{this.cancelTimer(),d.Z.startInterval(this.timerName,1e3,()=>{let t=this.timerRef.current;if(t){let e=this.getTime();t.textContent!==e&&(t.textContent=e)}this.getIsTimerEnded()&&(this.cancelTimer(),e&&e())})}),(0,a._)(this,"cancelTimer",()=>{d.Z.stopInterval(this.timerName)}),(0,a._)(this,"updateTimer",()=>{let{onTimeEnd:e}=this.props;e&&this.getIsTimerEnded()&&e()}),(0,a._)(this,"getTime",()=>{let{endTime:e,ticks:t={},timeDelta:l,maxTime:a,timeFormat:r,i18n:{formatTime:n}}=this.props,s=(0,i.og)(e,Date.now())-l,o=Math.ceil(s/1e3);t[o]&&!this.handledTicks[o]&&(this.handledTicks[o]=!0,t[o]());let c=s>0;return c&&a&&(s=Math.min(s,a)),n(c?s:0,r||i.TIME_FORMATS.MINUTES_SECONDS)}),(0,a._)(this,"getIsTimerEnded",()=>{let{endTime:e,timeDelta:t}=this.props;return(0,i.Ij)(e,t)})}}let v=(0,o.GV)(h),E=(0,s.$j)(e=>({isWindowFocused:(0,p.YZ)(e),timeDelta:(0,m.lY)(e)}))(v)},71500:(e,t,l)=>{l.d(t,{Ex:()=>d,HD:()=>E,br:()=>v,dE:()=>m,pb:()=>p,vm:()=>h});var a=l(27378),r=l(72914),n=l(31896),s=l(99748);let i={0:"title-l0",1:"title-l1",2:"title-l2"},o=({as:e,level:t,className:l,...r})=>a.createElement(n.ZP,{...r,as:e,type:i[t],className:(0,s.AK)(l,"title-ds")}),c=e=>a.createElement(o,{as:"h1",level:"0",...e}),d=e=>a.createElement(o,{as:"h2",level:"0",...e}),m=e=>a.createElement(r.f,{as:c,fallback:d,...e}),u=e=>a.createElement(o,{as:"h1",level:"1",...e}),p=e=>a.createElement(o,{as:"h2",level:"1",...e}),h=e=>a.createElement(o,{as:"h3",level:"1",...e}),v=e=>a.createElement(r.f,{as:u,fallback:p,...e}),E=e=>a.createElement(o,{level:"2",as:"h2",...e})},57857:(e,t,l)=>{l.d(t,{Ex:()=>a.Ex,HD:()=>a.HD,br:()=>a.br,dE:()=>a.dE,pb:()=>a.pb,vm:()=>a.vm});var a=l(71500)},66929:(e,t,l)=>{l.d(t,{Z:()=>M});var a=l(18775),r=l(37051),n=l(27378),s=l(48204),i=l(94537),o=l(43309),c=l(29697),d=l(99748),m=l(35395);let u=e=>n.createElement(c.Z,{...e,timeout:m.y,classNames:(0,d.AK)(e.classNames,"fade-transition")});var p=l(83550),h=l(99382),v=l(65804),E=l(29413);let g=({button:e,closeClickHandler:t,icon:l,id:a,message:r})=>n.createElement("div",{className:"toast-notification"},n.createElement("div",{className:"toast-part-left"},l),n.createElement("div",{className:"toast-part-right"},n.createElement("div",{"data-toast-id":a,className:"toast-close-icon-box",onClick:t},n.createElement(E.Z,{className:"toast-close-icon",img:"close-5"})),r&&n.createElement("div",{className:"toast-message"},r),e&&n.createElement("div",{className:"toast-buttons"},e)));var b=l(99973),f=l(97606),C=l(94380),y=l(68358),N=l(21365),_=l(64696),k=l(87766),A=l(50033),S=l(45216);let T={CardVerificationBonus:({id:e,tokensSum:t,...l})=>{let{trans:a}=(0,f.QT)(),r=(0,C.T)();return n.createElement(g,{id:e,...l,icon:n.createElement(E.Z,{img:"tokens-1",size:23}),message:n.createElement("div",null,n.createElement(v.Z,{messageId:"hotOffer"}),n.createElement("br",null),n.createElement(v.Z,{messageId:"buyTokens.creditCardVerificationPromo",parameters:{amount:t||y.ix},elements:{strong:n.createElement("strong",null)}})),button:n.createElement(h.ZP,{style:"delete",onClick:()=>{r((0,p.d2)(b.FO.TOAST_CARD_VERIFICATION,{id:e,tokensSum:t}))}},a("button.getNow"))})}};class w extends n.Component{componentDidMount(){(0,_.Z)(this.propsUpdateToActionsMap,{},this.props),this.showInitialToasts()}componentDidUpdate(e){(0,_.Z)(this.propsUpdateToActionsMap,e,this.props)}showInitialToasts(){let{shouldShowCardDetailsPromo:e,shouldShowCardVerifyCoronavirusPromo:t}=this.props;e&&k.Z.startTimeout("toast:cardVerificationBonus",2e3,()=>this.props.addToast({id:N.J.CARD_VERIFICATION_BONUS,tokensSum:t?320:void 0}))}render(){let{toasts:e}=this.props;return n.createElement(i.Z,{className:"toast-notifications"},e.map(({id:e,...t})=>{let l=T[e]||g;return n.createElement(u,{key:e,addEndListener:r.Z},n.createElement(l,{closeClickHandler:this.closeClickHandler,id:e,...t}))}))}constructor(...e){super(...e),(0,a._)(this,"propsUpdateToActionsMap",[{update:(e,t)=>!0===e.shouldShowCardDetailsPromo&&!t.shouldShowCardDetailsPromo,action:()=>this.props.removeToast({id:N.J.CARD_VERIFICATION_BONUS})}]),(0,a._)(this,"closeClickHandler",e=>{let{currentTarget:{dataset:{toastId:t}}}=e;t&&this.props.removeToast({id:t})})}}let P={addToast:o.f,removeToast:o.R},M=(0,s.$j)(e=>({shouldShowCardDetailsPromo:(0,S.DI)(e)&&!(0,S.wP)(e)&&!(0,S.ur)(e),shouldShowCardVerifyCoronavirusPromo:(0,S.ur)(e),toasts:(0,A.b)(e)}),P)(w)},2219:(e,t,l)=>{l.d(t,{A:()=>N,Z:()=>k});var a,r=l(18775),n=l(27378),s=l(48204),i=l(83550),o=l(65804),c=l(29413),d=l(91090),m=l(99973),u=l(99748),p=l(87937),h=l(97606),v=l(59683),E=l(62203),g=l(80092),b=l(71227),f=l(84123),C=l(49055);class y extends(a=n.Component){componentDidMount(){let{isVisible:e}=this.props;this.setState({isVisible:e})}componentDidUpdate(){this.props.isVisible!==this.state.isVisible&&this.setState({isVisible:this.props.isVisible})}render(){let{className:e,type:t}=this.props,{isVisible:l}=this.state;if(!l)return null;let a="compact"===t,r="extra-compact"===t;return n.createElement("div",{className:(0,u.AK)(e,"tokens-giveaway-banner",{compact:a,"extra-compact":r}),onClick:this.handleClick},n.createElement("div",{className:" tokens-giveaway-banner-container"},n.createElement(c.Z,{className:"tokens-giveaway-icon",img:"tokens-2"}),n.createElement("div",{className:(0,u.AK)("tokens-giveaway-description",{"visually-hidden":r})},n.createElement("div",{className:"tokens-giveaway-amount"},this.props.i18n.trans("tokensGiveawayBanner.tokens")),n.createElement("div",{className:"tokens-giveaway-title"},n.createElement(o.Z,{elements:{span:n.createElement("span",{className:"tokens-giveaway-title-part"}),br:n.createElement("br",null)},messageId:a?"tokensGiveawayBanner.titleShort":"tokensGiveawayBanner.titleFull"})))))}constructor(e){super(e),(0,r._)(this,"handleClick",()=>{let e=["compact","extra-compact"].includes(this.props.type||"")?d.CI.MAIN_SUBSCRIPTION:d.CI.MAIN_BANNER;this.props.emitButtonEvent(m.FO.TOKENS_GIVEAWAY_BANNER,{pageSection:e}),this.props.giveawayBannerClickHandler()}),this.state={isVisible:!1}}}(0,r._)(y,"defaultProps",{className:"",type:"default"});let N=(0,h.GV)(y),_={giveawayBannerClickHandler:C.t3,emitButtonEvent:i.d2};y.defaultProps={className:"",type:"default"};let k=(0,s.$j)(e=>{let{auth:t}=e,l=(0,E.Km)(e),a=t.isLoggedIn&&!t.isLoggingOut,r=(0,f.W)(e),n=(0,v.$n)(e),s=(0,b.m5)(e),i=(0,g.gI)(e),o=(0,p.C5)()&&!r&&!a&&!l&&!n&&!s;return{isVisible:!i&&o}},_)(N)},3034:(e,t,l)=>{l.d(t,{Z:()=>E,u:()=>v});var a,r=l(18775),n=l(43417),s=l(93644),i=l(48583),o=l(27076),c=l(27378),d=l(29697),m=l(99973),u=l(99748),p=l(62512);let h=()=>({bottom:null,height:null,left:null,right:null,top:null,width:null});class v extends(a=c.Component){get forcedStyle(){let{maxWidth:e,targetId:t=null,targetRef:l=null}=this.props,a={bottom:"auto",height:"auto",left:"0px",...void 0!==e&&"none"!==e?{maxWidth:`${e}px`}:{},right:"auto",top:"0px",width:"auto"};return t||(null==l?void 0:l.current)?a:{}}componentDidUpdate(e){let{isForceVisible:t}=this.props,{isVisible:l}=this.state;!t&&e.isForceVisible!==t&&l&&this.setState({isVisible:!1}),!t||e.isForceVisible||l||this.setState({isVisible:!0}),e.triggerOnClick!==this.props.triggerOnClick&&((0,p.OM)(this),this.registerTargetEventListeners(),this.registerDocumentEventListeners()),this.targetElement&&this.updatePosition()}showTooltipDelayed(){let{showDelay:e}=this.props,{isVisible:t}=this.state;t||(e?this.delayedShowTimeout=setTimeout(()=>{this.setState({isVisible:!0},()=>{var e,t;return null===(e=(t=this.props).onRequestVisibleChange)||void 0===e?void 0:e.call(t)})},e):this.setState({isVisible:!0},()=>{var e,t;return null===(e=(t=this.props).onRequestVisibleChange)||void 0===e?void 0:e.call(t)}))}componentDidMount(){let{isForceVisible:e,showDelay:t}=this.props;e?t&&this.showTooltipDelayed():this.registerTargetEventListeners(),this.registerDocumentEventListeners(),this.targetElement&&this.updatePosition()}registerDocumentEventListeners(){let{forceScrollListen:e}=this.props;m.BROWSER_CAPABILITIES.iPad&&((0,p.H0)(this,document,"focusout",this.updateTooltipPosition),(0,p.H0)(this,document,"focusin",this.updateTooltipPosition)),(!this.isOtimized||e)&&(0,p.H0)(this,window,"scroll",this.documentUpdateHandler,!0),window.visualViewport&&(0,p.H0)(this,window.visualViewport,"resize",this.updateTooltipPosition)}registerTargetEventListeners(){let{lazyTouchEventHandling:e,triggerOnClick:t,targetRef:l,hoverTargetRef:a}=this.props,r=this.hoverTargetElement||this.targetElement,n=t||m.BROWSER_CAPABILITIES.touch;if(l&&!l.current||a&&!a.current){this.retryRegisteringTargetEventsTimeout=setTimeout(()=>{this.registerTargetEventListeners()},250);return}if(r){if(n){let l="click";(m.BROWSER_CAPABILITIES.touch||t)&&(t||(l=e?"touchend":"touchstart"),(0,p.H0)(this,window,l,this.mobileTouchWindow,!0)),(0,p.H0)(this,r,l,this.targetMouseClickHandler)}else(0,p.H0)(this,r,"mouseenter",this.targetMouseEnterHandler),(0,p.H0)(this,r,"mouseleave",this.targetMouseLeaveHandler)}}componentWillUnmount(){this.hideDelayTimeout&&clearTimeout(this.hideDelayTimeout),this.retryRegisteringTargetEventsTimeout&&clearTimeout(this.retryRegisteringTargetEventsTimeout),clearTimeout(this.hideTimeoutAfterTouch),(0,p.OM)(this)}get targetElement(){var e;switch(!0){case void 0!==this.props.targetId:return document.getElementById(this.props.targetId);case!!(null===(e=this.props.targetRef)||void 0===e?void 0:e.current):return this.props.targetRef.current;default:return null}}get hoverTargetElement(){var e;switch(!0){case void 0!==this.props.hoverTargetId:return document.getElementById(this.props.hoverTargetId);case!!(null===(e=this.props.hoverTargetRef)||void 0===e?void 0:e.current):return this.props.hoverTargetRef.current;default:return null}}applyPageTopGutter(e){let{pageTopGutter:t}=this.props;return"number"!=typeof t?e:Math.max(e,t-window.scrollY)}renderCloseBtn(){let{renderCloseBtn:e}=this.props,t=null==e?void 0:e();return t?c.createElement("div",{className:"tooltip-close",onClick:this.closeClick},t):null}renderTooltip(){let{className:e,children:t,isMobileRelative:l,isOneLine:a,onClick:r,isAnimated:n,dataTooltip:s="",shouldHideTriangle:i,innerClassName:o,innerRef:d,variant:m,id:p}=this.props;return c.createElement("div",{onClick:r,"data-tooltip":s,ref:this.handleTooltipRef,role:"tooltip",className:(0,u.AK)(e,"tooltip",m,{"mobile-relative":l,"is-optimized":this.isOtimized,"one-line":a,"tooltip-animated":n,"hide-triangle":i}),style:this.forcedStyle,id:p},c.createElement("div",{className:(0,u.AK)("tooltip-inner",o),ref:d},this.renderCloseBtn(),t))}render(){let{showDelay:e}=this.props,{isVisible:t,isAnimated:l,isForceVisible:a}=this.state;return t||l?l?c.createElement(d.Z,{classNames:"tooltip-animated",in:t,enter:!1,timeout:e,onExited:()=>{a&&this.setState({isAnimated:!1})},addEndListener:()=>{}},this.renderTooltip()):this.renderTooltip():null}constructor(e){super(e),(0,r._)(this,"isOtimized",!1),(0,r._)(this,"portalContainer",null),(0,r._)(this,"delayedShowTimeout",void 0),(0,r._)(this,"hideDelayTimeout",void 0),(0,r._)(this,"retryRegisteringTargetEventsTimeout",void 0),(0,r._)(this,"hideTimeoutAfterTouch",void 0),(0,r._)(this,"tooltipRef",null),(0,r._)(this,"tooltipMouseEnterCleanup",void 0),(0,r._)(this,"tooltipMouseLeaveCleanup",void 0),(0,r._)(this,"targetMouseEnterX",void 0),(0,r._)(this,"targetMouseClickHandler",e=>{let{shouldPreventDefault:t,shouldPreventOpenByClick:l,hideTimeoutAfterTouch:a}=this.props,{isVisible:r}=this.state;t&&e.preventDefault(),!l&&(r&&this.setState({isVisible:!0}),this.showTooltipDelayed(),a&&m.BROWSER_CAPABILITIES.touch&&(this.hideTimeoutAfterTouch=setTimeout(()=>{this.setState({isVisible:!1})},a)))}),(0,r._)(this,"mobileTouchWindow",e=>{let{target:t}=e,{targetId:l,targetRef:a,isForceVisible:r}=this.props,{isVisible:s}=this.state;if(!s)return;let i=!!(0,n.Z)(this.tooltipRef,"contains",t),o=t.id===l||t===(null==a?void 0:a.current)||!!(0,n.Z)(this.targetElement,"contains",t);i||o||this.setState({isVisible:r||!1},()=>{var e,t;null===(e=(t=this.props).onRequestVisibleChange)||void 0===e||e.call(t)})}),(0,r._)(this,"updateTooltipPosition",()=>{(0,s.Z)(this.documentUpdateHandler,500)}),(0,r._)(this,"documentUpdateHandler",()=>{let{isForceVisible:e,holdOnScrool:t}=this.props;if(e){this.updatePosition();return}t&&this.updatePosition(),this.targetMouseLeaveHandler()}),(0,r._)(this,"targetMouseEnterHandler",e=>{this.hideDelayTimeout&&clearTimeout(this.hideDelayTimeout),this.targetMouseEnterX=e.clientX,this.showTooltipDelayed()}),(0,r._)(this,"targetMouseLeaveHandler",()=>{let{isForceVisible:e,triggerOnClick:t}=this.props;if(t)return;this.delayedShowTimeout&&clearTimeout(this.delayedShowTimeout);let l=void 0!==e&&e;this.tooltipRef&&(this.props.hideDelay?(this.hideDelayTimeout&&clearTimeout(this.hideDelayTimeout),this.hideDelayTimeout=setTimeout(()=>{this.setState({isVisible:l},()=>{var e,t;return null===(e=(t=this.props).onRequestVisibleChange)||void 0===e?void 0:e.call(t)})},this.props.hideDelay)):this.setState({isVisible:l},()=>{var e,t;return null===(e=(t=this.props).onRequestVisibleChange)||void 0===e?void 0:e.call(t)}))}),(0,r._)(this,"handleTooltipRef",e=>{if(this.tooltipRef=e,e)this.props.shouldRemainVisibleOnTooltipHover&&e&&(this.tooltipMouseEnterCleanup=(0,p.V1)(e,"mouseenter",this.tooltipMouseEnterHandler),this.tooltipMouseLeaveCleanup=(0,p.V1)(e,"mouseleave",this.tooltipMouseLeaveHandler));else{var t,l;null===(t=this.tooltipMouseEnterCleanup)||void 0===t||t.call(this),null===(l=this.tooltipMouseLeaveCleanup)||void 0===l||l.call(this)}}),(0,r._)(this,"tooltipMouseEnterHandler",()=>{null!=this.hideDelayTimeout&&clearTimeout(this.hideDelayTimeout)}),(0,r._)(this,"tooltipMouseLeaveHandler",()=>{this.targetMouseLeaveHandler()}),(0,r._)(this,"getRect",e=>{let t=e.getBoundingClientRect(),{clientWidth:l}=document.documentElement,{screenGutter:a}=this.props,r=(e.offsetHeight-t.height)/2,n=(e.offsetWidth-t.width)/2,s=l-2*a;return{top:t.top-r,left:t.left-n,height:e.offsetHeight,width:e.offsetWidth>s?s:e.offsetWidth}}),(0,r._)(this,"applyIndentation",e=>{let{indentation:t=0}=this.props;return{top:e.top-t,left:e.left-t,height:e.height+2*t,width:e.width+2*t}}),(0,r._)(this,"applyPosition",e=>{var t;let{tooltipRef:l,targetMouseEnterX:a}=this,{screenGutter:r,gap:n,shouldUseHoverXPosition:s}=this.props,i=this.targetElement,{clientWidth:o}=document.documentElement,c=this.applyIndentation(this.getRect(i)),d=this.getRect(l),m=this.getOffset(c,e),u=this.getPosition({tooltipRect:d,targetRect:c,placement:e,gap:n,shouldUseHoverXPosition:s,targetMouseEnterX:a}),p=this.getDelta(m,u),h=this.isOtimized?this.getRect(this.portalContainer):null,v=(null==h?void 0:h.top)||0,E=(null==h?void 0:h.left)||0,g={left:`${m.left+u.left+p.x-E}px`,top:`${this.applyPageTopGutter(m.top+u.top+p.y)-v}px`,width:o-2*r===d.width?`${d.width}px`:"auto"};null==l||l.classList.remove("top","left","right","bottom"),null==l||l.classList.add(e),l&&["top","bottom"].includes(e)&&l.style.setProperty("--transform-arrow",`translateX(${-p.x}px)`),Object.assign(null!==(t=null==l?void 0:l.style)&&void 0!==t?t:{},g)}),(0,r._)(this,"getDelta",(e,t)=>{let{clientWidth:l,clientHeight:a}=document.documentElement,{screenGutter:r}=this.props,{tooltipRef:n}=this,s=this.targetElement,i=this.getRect(n),o=this.applyIndentation(this.getRect(s)),c=0,d=0;return e.left+t.left{let{placement:e,isForcePlacement:t}=this.props,l=this.targetElement,{tooltipRef:a}=this;if(a&&l){let r=this.getRect(a),n=getComputedStyle(a);if("fixed"!==n.position&&"absolute"!==n.position){Object.assign(a.style,h());return}let s=this.getRect(l),{clientWidth:c,clientHeight:d}=document.documentElement,m=s.left+s.width,u=[];r.width0&&u.push("top"),s.top+s.height+r.height0&&u.push("bottom-left"))),m+r.width0&&u.push("left"),(0,i.Z)(u,e)||0===u.length||t?this.applyPosition(e):this.applyPosition((0,o.Z)(u))}}),(0,r._)(this,"getPosition",({tooltipRect:e,targetRect:t,placement:l,gap:a=0,shouldUseHoverXPosition:r,targetMouseEnterX:n})=>{let s=(t.height-e.height)/2,i=(t.width-e.width)/2,o=0,c=0;return"top"===l?(o=i,c=-e.height-a):"top-start"===l?(o=0,c=-e.height-a):"top-end"===l?(o=-e.width+t.width,c=-e.height-a):"bottom"===l?(o=i,c=a):"right"===l?(o=a,c=s):"left"===l?(o=-e.width-a,c=s):"bottom-left"===l?(o=-e.width+t.width,c=a):"bottom-start"===l&&(o=0,c=a),{left:r&&void 0!==n?n-e.width/2:t.left+o,top:t.top+c}}),(0,r._)(this,"getOffset",(e,t)=>({left:(0,i.Z)(["right"],t)?e.width:0,top:(0,i.Z)(["bottom","bottom-left","bottom-start"],t)?e.height:0})),(0,r._)(this,"closeClick",e=>{e.stopPropagation(),this.setState({isVisible:!1})});let{isForceVisible:t=!1,showDelay:l,isAnimated:a=!1}=e;this.state={isVisible:!!(t&&!l),isAnimated:a,isForceVisible:t}}}(0,r._)(v,"defaultProps",{gap:0,isMobileRelative:!0,indentation:0,lazyTouchEventHandling:!1,placement:"right",maxWidth:250,screenGutter:10,showDelay:0,forceScrollListen:!1});let E=v},56322:(e,t,l)=>{l.d(t,{Z:()=>u,a:()=>m});var a=l(18775),r=l(31542),n=l(35506),s=l(3034),i=l(87937),o=l(70492),c=l(61435);let d=!(0,i.sk)();class m extends s.Z{render(){return!d||this.props.shouldRenderWithoutPortal?(n.ZP.warn("Unable to use TooltipV2 is ssr mode"),super.render()):this.portalContainer?(0,r.createPortal)(super.render(),this.portalContainer):null}constructor(e){super(e),(0,a._)(this,"isOtimized",!0),(0,a._)(this,"setPortalContainer",async()=>{for(;this.portalContainer=document.getElementById(this.props.portalContainerId),!this.portalContainer;)await (0,o.gw)(500)}),this.isOtimized=e.isOtimized,d&&this.setPortalContainer()}}(0,a._)(m,"defaultProps",{portalContainerId:c.y.IDS.PORTAL_CONTAINER_UNDER_HEADER,isOtimized:!0,...s.Z.defaultProps});let u=m},61435:(e,t,l)=>{l.d(t,{i:()=>n,y:()=>s});var a=l(27378),r=l(99748);let n={BODY_CONTAINER:"body-container",PORTAL_CONTAINER_UNDER_HEADER:"portal-container-under-header",HEADER_SUB_PORTAL_CONTAINER:"header-sub-portal-container",SIDEBAR_PORTAL_CONTAINER:"sidebar-portal-container",FOOTER_PORTAL_CONTAINER:"footer-portal-container",REPORT_LIMIT_PORTAL_CONTAINER:"report-limit-portal-container",USER_INFO_PORTAL_CONTAINER:"user-info-portal-container",PRIVATE_CHAT_PORTAL_CONTAINER:"private-chat-tab-portal-container",STRIPS:"strips"},s=({id:e,className:t})=>a.createElement("div",{className:(0,r.AK)("tooltip-v2-portal-container",t),id:e,key:e});s.IDS=n},84571:(e,t,l)=>{l.d(t,{W:()=>n});var a=l(27378),r=l(97606);let n=({messageId:e,params:t,choiceParameter:l})=>{let{trans:n}=(0,r.QT)();return a.createElement(a.Fragment,null,n(e,t,l))}},81688:(e,t,l)=>{l.d(t,{O:()=>i,X:()=>s});var a=l(27378),r=l(95406);let n=a.createContext({current:0}),s=({children:e})=>{let t=(0,a.useRef)(0);return t.current=0,a.createElement(n.Provider,{value:t},e)},i=()=>{let e=(0,a.useContext)(n);return(0,r.Z)(()=>++e.current)}},4368:(e,t,l)=>{l.d(t,{s:()=>p});var a=l(27378),r=l(38667),n=l(99748),s=l(97606),i=l(95654),o=l(72812),c=l(10809),d=l(30267),m=l(243),u=l(62203);let p=({fallbackSrc:e,objectFit:t,username:l,isRound:p,loading:h,area:v,src:E,alt:g,smoothAnimation:b,shouldBeBlurred:f})=>{let{trans:C}=(0,s.QT)(),y=(0,i.C)(u.gb),N=(0,i.C)(m.BH),[_,k,A]=(0,d._)({src:E,startTimeout:100,finishTimeout:500}),[S,T]=(0,a.useState)(!1),w=(0,a.useRef)(null),P=(0,a.useMemo)(()=>l&&y?C(`modelImageAlt.${v}.${y}`,{modelname:(0,r.ks)(l,N)}):"",[l,N,y,v,C]);(0,a.useEffect)(()=>{T(!1)},[E]);let M=(0,a.useCallback)(()=>T(!0),[]);(0,o.Q)(w,{src:_,onError:M});let I=b?_:E;return I?a.createElement(a.Fragment,null,a.createElement("img",{className:(0,n.AK)("image-background",{[`image-background--object-fit-${t}`]:!!t,"image-background--blur":f,"image-background--is-hidden":S,"image-background--round":p}),style:e?{backgroundImage:e}:void 0,alt:g||P,ref:w,loading:h,suppressHydrationWarning:!0,src:I}),b&&k&&a.createElement("img",{ref:(0,c.lq)([A]),className:(0,n.AK)("image-background-transition",{[`image-background--object-fit-${t}`]:!!t,"image-background--blur":f,"image-background--round":p}),alt:g||P,loading:h,src:k})):null}},54753:(e,t,l)=>{l.d(t,{Z:()=>x});var a=l(27378),r=l(48204),n=l(94537),s=l(29697),i=l(80406),o=l(93704),c=l(99748),d=l(97606),m=l(98371),u=l(62203),p=l(95654),h=l(77602),v=l(95366),E=l(99485),g=l(19702);let b={link:"CategoriesGroupsTags__link#Uz","categories__cv-icon":"CategoriesGroupsTags__categories__cv-icon#R0"},f=({alias:e,isCompact:t})=>{let{trans:l}=(0,d.QT)();return a.createElement("div",{className:(0,c.AK)("group-header",{"visually-hidden":t})},l(`tagGroups.${e}`,{stripTags:!0}))};var C=l(79746);let y=({tag:e,i18n:t})=>{let l=`sidebar.tags.${e.primaryTagId}.${e.id}`;return t.hasTranslation(l)?t.trans(l,{stripTags:!0}):(0,C.Zb)({tag:e,i18n:t})},N=(0,a.memo)(({alias:e,ignoreHighlightList:t,tags:l,showCounts:r,analyticsTagSource:n,onLinkClick:s,isCompact:i,amplitudeNavElement:o})=>{let m=(0,d.QT)(),u=e===v.e80,C=e===v.G2L,N=e===v.yYP,_=(0,p.C)(h.f_);return a.createElement("div",{className:(0,c.AK)("tag-group",`tag-group-${e}`,{"visually-hidden":i&&!u})},a.createElement(f,{alias:e,isCompact:i}),a.createElement("nav",null,l.filter(e=>!_.includes(e.id)).map(l=>a.createElement(g.Z,{classNameCount:"categories__link-counter",className:(0,c.AK)(b.link,"tag-group-item"),key:l.id,amplitudeNavElement:o,amplitudePageSectionPrefix:e,analyticsTagSource:n,shouldReleaseInterface:!0,shouldRenderCounter:r,shouldRenderBadge:!N,tag:l,shouldIgnoreActiveHighlight:null==t?void 0:t.includes(l.id),skipSettingPersonalized:u||C,onClick:s,shouldRenderBadgeFirst:!0,shouldOnlyShowIcon:i,shouldShowTooltip:i&&u,label:y({tag:l,i18n:m}),rightIcon:a.createElement(E.E,{tag:l,className:(0,c.AK)(b["categories__cv-icon"])})}))))}),_=(0,a.memo)(({showCounts:e,onLinkClick:t,analyticsTagSource:l,isCompact:r,amplitudeNavElement:n})=>{let s=(0,p.C)(h.qc);return a.createElement(a.Fragment,null,s.map(s=>a.createElement(N,{key:s.alias,alias:s.alias,ignoreHighlightList:s.ignoreHighlightList,tags:s.tags,showCounts:e,analyticsTagSource:l,onLinkClick:t,isCompact:r,amplitudeNavElement:n})))});_.displayName="CategoriesGroups";let k=4,A=a.createElement("div",{className:"group-header"},"\xa0",a.createElement("div",{className:"group-header-skeleton"})),S=()=>a.createElement("div",{className:"tag-group-item"},"\xa0",a.createElement("div",{className:"tag-group-item-skeleton"})),T=(0,a.memo)(({blockCount:e=k})=>{let t=[],l=[];for(let r=0;r({primaryTag:(0,R.lq)(e)||(0,h.Qo)(e),defaultIndexTagUrl:(0,Z.JB)(e)}),{})(({onLinkClick:e,primaryTag:t,amplitudeNavElement:l,defaultIndexTagUrl:r})=>{let{trans:n}=(0,d.QT)(),s=(0,M.tI)(),i=(0,I.T)(),o=(0,a.useCallback)(t=>{t.stopPropagation(),null==e||e(t),s(),l&&i((0,P.d2)(l,{pageSection:"allCategories"}))},[e,s,i,l]),c=v.s08.includes(t)?t:r,m=a.createElement(w.rU,{to:`/tags/${c}`,onClick:o,className:"model-filter-show-more"},n("showMore"));return a.createElement("div",{className:"model-filter-show-more-container"},m)});var D=l(56594),B=l(3818);let F=(0,a.memo)(e=>{let{trans:t}=(0,d.QT)(),{analyticsTagSource:l,className:r,isNonNudeWL:i,shouldShowSkeleton:o,shouldReleaseInterface:m=!1,showCounts:u,onLinkClick:p,shouldShowHome:h,isCompact:v,amplitudeNavElement:E}=e;return i?null:a.createElement("div",{className:(0,c.AK)("categories",{"categories-compact":v},r)},a.createElement("div",{className:"model-filter-header"},t("tagsFilterHeader")),a.createElement(n.Z,{className:"tag-list-transition"},!o&&a.createElement(s.Z,{classNames:"opacity-transition",timeout:240,exit:!1},a.createElement("div",null,a.createElement("div",{className:"model-filter-groups"},a.createElement(D.i,{shouldReleaseInterface:m,onLinkClick:p,shouldShowHome:h,isCompact:v,amplitudeNavElement:E}),a.createElement(_,{amplitudeNavElement:E,analyticsTagSource:l,showCounts:u,showIcons:!0,onLinkClick:p,isCompact:v})),!v&&a.createElement(L,{amplitudeNavElement:E,onLinkClick:p}))),o&&a.createElement(s.Z,{classNames:"opacity-transition",timeout:240,exit:!1},a.createElement("div",{className:"model-filter-groups"},a.createElement(T,null)))),a.createElement("div",{className:"categories__bottom-fade"}))});F.displayName="Categories";let O=(0,i.P1)([o.Vp,B.f2,m.ne],(e,t,l)=>t&&e&&!l),x=(0,r.$j)(e=>({isNonNudeWL:(0,u.Km)(e),shouldShowSkeleton:O(e)}))(F)},46619:(e,t,l)=>{l.d(t,{Z:()=>d});var a=l(27378),r=l(48204),n=l(23865),s=l(99748),i=l(19702),o=l(99644),c=l(28290);let d=(0,r.$j)((e,t)=>({menuItems:t.menuItems||(0,o.vf)(e)}))(({className:e,menuItems:t,preferredOrder:l,onClick:r})=>{let o=(0,a.useMemo)(()=>(0,c.x)(t,l),[t,l]),d=(0,a.useMemo)(()=>o.findIndex(e=>e.isActive),[o]);return a.createElement(n.Z,{className:(0,s.AK)("nav-left model-filter",e),activeIndex:d},o.map(e=>a.createElement(i.Z,{className:(0,s.AK)("model-filter__link",{"model-filter__link--active":e.isActive}),shouldPreventLocationChange:!!r,key:e.tag.url,onClick:r,tag:e.tag})))})},56594:(e,t,l)=>{l.d(t,{L:()=>L,i:()=>$});var a=l(23282),r=l(63345),n=l(27378),s=l(4289),i=l(43571),o=l(15264),c=l(95366),d=l(5504),m=l(83550),u=l(11850),p=l(1948),h=l(29413),v=l(3034),E=l(91090),g=l(99973),b=l(99748),f=l(97606),C=l(80176),y=l(94380),N=l(95654),_=l(27251),k=l(60673),A=l(82711),S=l(73465),T=l(11877),w=l(56534),P=l(33915),M=l(77602),I=l(80092),R=l(12278),Z=l(40686);let L=({to:e,className:t,isCompact:l,icon:a,children:i,isExternal:o=!1,amplitudeNavElement:c,onClick:d,...u})=>{let h=(0,n.useRef)((0,r.Z)("main-link-")),g=(0,y.T)(),f=t=>{if(c){let t=o?"/externalLink":(null==e?void 0:e.pathname)||e;"/"===t&&(t="/index"),g((0,m.d2)(c,{pageSection:`main${t}`}))}null==d||d(t),!o&&e&&(t.preventDefault(),g((0,C.J5)(e))),c&&g((0,k.QV)({source:c,sourceTitle:E.Bh}))};return o?n.createElement(p.Z,{href:e,onClick:f,id:l?h.current:"",className:(0,b.AK)("model-filter-main-link",{"model-filter-main-link-compact":l},t),target:"_blank"},a,l?n.createElement("div",{className:"visually-hidden"},i):i,l&&n.createElement(v.Z,{targetId:h.current,className:"model-filter-main-link-compact-tooltip",placement:"right",gap:6},i)):n.createElement(s.OL,{...u,onClick:f,className:(0,b.AK)("model-filter-main-link",{"model-filter-main-link-compact":l},t),to:e,id:l?h.current:void 0},a,l?n.createElement("div",{className:"visually-hidden"},i):i,l?n.createElement(v.Z,{targetId:h.current,className:"model-filter-main-link-compact-tooltip",placement:"right",gap:6},i):null)},D=({amplitudeNavElement:e,isCompact:t})=>{let l=(0,N.C)(_.s4);return l?n.createElement("ul",{className:"model-filter-main__external-links"},n.createElement("li",null,n.createElement(L,{amplitudeNavElement:e,isCompact:t,to:l.url,isExternal:!0,icon:l.icon&&n.createElement("img",{className:"model-filter-main__link-image",alt:"",src:l.icon})},n.createElement("span",{className:"model-filter-main-link-container"},l.title)))):null},B=({amplitudeNavElement:e,isCompact:t})=>{let{trans:l}=(0,f.QT)(),a=(0,N.C)(M.Qo),r=(0,N.C)(e=>{let t=(0,P.Uq)(e),l=(0,R.KM)(e),a=(0,Z.ve)(e);return t&&!l&&a}),s=(0,y.T)();return r?n.createElement("li",null,n.createElement(L,{amplitudeNavElement:e,isCompact:t,className:"model-filter-main-link",to:`/${(0,c.Bbj)(a)}`,onClick:()=>s((0,m.d2)(E.a.ENTER_RECOMMENDED)),icon:n.createElement(h.Z,{img:"recommended",size:16})},n.createElement("span",null,l("tags.recommended")))):null},F=({amplitudeNavElement:e,isCompact:t})=>{let{trans:l}=(0,f.QT)();return(0,N.C)(R.KM)?null:n.createElement("li",null,n.createElement(L,{amplitudeNavElement:e,isCompact:t,to:"/favorites",icon:n.createElement(h.Z,{img:"favorited",size:16})},n.createElement("span",null,l("myFavorites"))))},O=({amplitudeNavElement:e,isCompact:t})=>{let{trans:l}=(0,f.QT)();return(0,N.C)(R.KM)?null:n.createElement("li",null,n.createElement(L,{amplitudeNavElement:e,isCompact:t,to:"/watch-history",icon:n.createElement(h.Z,{img:"watch-history",size:16})},n.createElement("span",null,l("watchHistory.link"))))},x=({amplitudeNavElement:e,isCompact:t})=>{let{trans:l}=(0,f.QT)();return(0,N.C)(e=>{let t=(0,R.ts)(e);return!!t&&!g.Gv.some(e=>t[e])})?n.createElement("li",null,n.createElement(L,{amplitudeNavElement:e,isCompact:t,to:"/collection",icon:n.createElement(h.Z,{img:"bookmark-filled",size:15})},n.createElement("span",null,l("myCollection.button")))):null},U=({amplitudeNavElement:e,isCompact:t})=>{let{trans:l}=(0,f.QT)(),a=(0,N.C)(d.u4);return(0,N.C)(R.KM)?n.createElement("li",null,n.createElement(L,{amplitudeNavElement:e,isCompact:t,to:"/model-news",icon:n.createElement(h.Z,{img:"news-feed",size:16})},n.createElement("span",{className:"model-filter-main-link-container"},l("modelNews.title"),a&&n.createElement("span",{className:"model-filter-main-link-indicator"})))):null},H=({amplitudeNavElement:e,isCompact:t})=>{let{trans:l}=(0,f.QT)(),r=(0,N.C)(R.KM),s=(0,N.C)(R.M7),i=(0,N.C)(o.qH),d=(0,N.C)(M.x7),m=(0,N.C)(w.u),u=(0,N.C)(w.S),{pathname:p}=(0,N.C)(a.k$);return!m||r||s||!u.addLinksForGuests?null:n.createElement("li",{className:"model-filter-mobile-only"},n.createElement(L,{amplitudeNavElement:e,isCompact:t,isActive:()=>i,to:{pathname:d===c.oY8?"/strips":`/strips/${d}`,state:{prevPathname:p}},icon:n.createElement(h.Z,{img:"play-strips-ds",size:16})},n.createElement("span",null,l("strips.title"))))},K=({amplitudeNavElement:e,isCompact:t})=>{let{trans:l}=(0,f.QT)(),a=(0,N.C)(T.a3),r=(0,N.C)(R.KM),s=(0,N.C)(i.YJ),o=(0,N.C)(S.rw);if(r)return null;let c=n.createElement(h.Z,{img:"feed",size:16});return n.createElement("li",null,n.createElement(L,{amplitudeNavElement:e,isCompact:t,isActive:()=>s,to:{pathname:o,state:{fromIndexPage:!0}},icon:t?n.createElement("span",{className:(0,b.AK)("model-filter-main-icon-container",{"model-filter-main-icon-container-badge":a})},c):c},n.createElement("span",null,l("userMenu.feed")),n.createElement(A.R,null)))},V=({amplitudeNavElement:e,isCompact:t})=>{let{trans:l}=(0,f.QT)(),a=(0,N.C)(R.KM),r=(0,N.C)(I.HA),s=(0,N.C)(M.x7);return a||!r?null:n.createElement("li",null,n.createElement(L,{isCompact:t,to:`/${s}/best`,amplitudeNavElement:e,icon:n.createElement(h.Z,{img:"locked",size:16})},n.createElement("span",null,l("privateShows.bestForPrivates"))))},$=(0,n.memo)(({shouldReleaseInterface:e,onLinkClick:t,shouldShowHome:l,amplitudeNavElement:a,isCompact:r=!1})=>{let{trans:s}=(0,f.QT)(),i=(0,u.tI)(),o=(0,N.C)(M.Wm);return n.createElement("div",{className:"tag-group tag-group-main"},n.createElement(D,{amplitudeNavElement:a,isCompact:r}),n.createElement("div",{className:"group-header"},s("tagGroups.main")),n.createElement("ul",{onClick:l=>{null==t||t(l),e&&i()}},l&&n.createElement("li",null,n.createElement(L,{amplitudeNavElement:a,isCompact:r,to:o,exact:!0,icon:n.createElement(h.Z,{img:"home",size:16})},n.createElement("span",{className:"model-filter-main-link-container"},s("sidebar.home")))),n.createElement(K,{amplitudeNavElement:a,isCompact:r}),n.createElement(U,{amplitudeNavElement:a,isCompact:r}),n.createElement(H,{amplitudeNavElement:a,isCompact:r}),n.createElement(B,{amplitudeNavElement:a,isCompact:r}),n.createElement(F,{amplitudeNavElement:a,isCompact:r}),n.createElement(V,{amplitudeNavElement:a,isCompact:r}),n.createElement(x,{amplitudeNavElement:a,isCompact:r}),n.createElement(O,{amplitudeNavElement:a,isCompact:r})))})},19702:(e,t,l)=>{l.d(t,{Z:()=>O});var a=l(47722),r=l(27378),n=l(3034),s=l(99748),i=l(97606),o=l(95654),c=l(33915),d=l(79746),m=l(37051),u=l(80176),p=l(94380),h=l(75267),v=l(83550),E=l(60673),g=l(64208);let b=({amplitudeNavElement:e,amplitudePageSectionPrefix:t,skipSettingPersonalized:l,tagUrl:a,tagId:r})=>{let n=(0,p.T)();return[()=>{n((0,g.Pu)(l?"":r)),e&&t&&(n((0,E.QV)({source:e,sourceTitle:t})),n((0,v.d2)(e,{pageSection:`${t}/${a}`})))},()=>{e&&t&&n((0,E.QV)({source:e,sourceTitle:t}))}]};var f=l(11850),C=l(82168),y=l(243),N=l(27251);let _=({shouldScrollToTop:e,shouldReleaseInterface:t})=>{let l=(0,o.C)(N.vj),a=(0,o.C)(y.zq),r=(0,f.tI)();return()=>{t&&r(),(void 0===e?a||l:!e)||C.Z.reset()}};var k=l(20717),A=l(68020);let S=e=>{let t=(0,o.C)(A.JB);return(0,k.Cx)(e,t)};var T=l(48583),w=l(99942),P=l(3620),M=l(95366);let I=e=>{let t=(0,p.T)(),{path:l}=(0,P.$B)();return()=>{!(0,T.Z)(M.X2w,e)&&(0,w.Z)(l,"/tags")&&t((0,g.LC)(e))}},R=({addingLocationState:e,amplitudeNavElement:t,amplitudePageSectionPrefix:l,shouldReleaseInterface:a=!1,shouldScrollToTop:r=!1,skipSettingPersonalized:n=!1,tag:s,analyticsTagSource:i,onClick:o=m.Z,skipDefaultHandlers:c,shouldPreventLocationChange:d})=>{let v=(0,p.T)(),E=S(s),g=I(s.id),f=_({shouldScrollToTop:r,shouldReleaseInterface:a}),[C,y]=b({amplitudeNavElement:t,amplitudePageSectionPrefix:l,skipSettingPersonalized:n,tagUrl:E,tagId:s.id});return c?e=>o(e,s):t=>{t.preventDefault(),C(),f(),g(),i&&v((0,h.bL)(i)),d||v((0,u.J5)(`/${E}`,e)),y(),null==o||o(t,s)}};var Z=l(69396),L=l(3818);let D=(e,t)=>{let l=(0,o.C)(L.Sy);return(0,Z.Z)(t||l,[e,"modelsLive"])},B=({className:e,hidden:t,tagId:l,liveTagDetails:a})=>{let n=D(l,a);return n||0===n?r.createElement("span",{className:(0,s.AK)("model-filter-link-count",e,{"visually-hidden":t})},n):null};var F=l(32155);let O=e=>{let{children:t,classNameCount:l,className:m,renderLabel:u,shouldPreventLocationChange:p,shouldRenderCounter:h,shouldRenderBadge:v=!1,shouldRenderBadgeFirst:E=!1,shouldOnlyShowIcon:g=!1,shouldShowTooltip:b,liveTagDetails:f,tag:C,isActive:y,shouldIgnoreActiveHighlight:N,skipDefaultHandlers:_,rightIcon:k}=e,A=(0,i.QT)(),T=R(e),w=(0,r.useRef)(null),P=S(C),{label:M=(0,d.Zb)({tag:C,i18n:A})}=e,I=function({url:e,shouldIgnoreActiveHighlight:t,isActiveProps:l}){let a=(0,o.C)(c.Iz).url===e;return!t&&(null!=l?l:a)}({url:C.url,isActiveProps:y,shouldIgnoreActiveHighlight:N}),Z=null==u?void 0:u(C,g),L=(0,s.AK)("model-filter-link",m,{"model-filter-link--non-interactive":_&&!p,active:I}),D=p?a.mI:"a";return r.createElement(r.Fragment,null,r.createElement(D,{...!p&&{href:`/${P}`},"aria-label":M,className:L,onClick:T,ref:w},g?r.createElement("div",{className:"visually-hidden"},t):t,null!=Z?Z:r.createElement(F.Z,{shouldRenderBadgeFirst:E,shouldOnlyShowIcon:g,shouldRenderBadge:v,tagId:C.id,label:M}),k,h&&r.createElement(B,{liveTagDetails:f,hidden:g,className:l,tagId:C.id})),b&&r.createElement(n.Z,{className:"model-filter-link-compact-tooltip",targetRef:w,gap:6},null!=Z?Z:M))}},32155:(e,t,l)=>{l.d(t,{Z:()=>h});var a=l(27378),r=l(99748),n=l(95654),s=l(42339),i=l(95366),o=l(30085),c=l(29413);let d=({tagId:e,isNewBdsmCategoryEnabled:t})=>{switch(e){case i.ovm:return a.createElement(c.Z,{img:"badge-vr-ds"});case i.Hm1:return a.createElement(c.Z,{img:"interactive-toy-ds"});case i.U74:return a.createElement(c.Z,{img:"lightning"});case i.Qpm:return a.createElement(c.Z,{img:"mobile"});case i.CgM:return a.createElement(c.Z,{img:"pornstar"});case i.Ji7:return a.createElement(c.Z,{img:"camera-5"});case i._6F:return a.createElement("span",{className:"tag-icon tag-icon-beer"});case i.cPn:return a.createElement("span",{className:"tag-icon tag-icon-halloween"});case i.UBX:return a.createElement("span",{className:"tag-icon tag-icon-valentines"});case i.bjF:return a.createElement("span",{className:"tag-icon tag-icon-christmas"});case i.B_z:return a.createElement("span",{className:"tag-icon tag-icon-july4th"});case i.Iaz:return a.createElement(c.Z,{img:"candy-ds"});case i.w7V:return t?a.createElement(c.Z,{img:"bunny-mask"}):null;case i.hBS.MODE_GROUP_SHOW:return a.createElement(c.Z,{img:"ticket-ds"})}let l=i.BiC[e]||i.A2u[e];return l?a.createElement(o.Z,{className:"country-flag",size:"medium",country:l}):null};var m=l(79070),u=l(98064);let p=({children:e,label:t,shouldOnlyShowIcon:l,shouldRenderBadgeFirst:r})=>{if(l)return a.createElement(a.Fragment,null,e,a.createElement("span",{className:"visually-hidden"},t));if(r)return a.createElement(a.Fragment,null,e,t);let n=t.split(" "),s=(0,m.Z)(n).join(" "),i=(0,u.Z)(n);return a.createElement(a.Fragment,null,`${s} `,a.createElement("span",{className:"no-wrap"},"\xa0",i,e))},h=({tagId:e,label:t,shouldRenderBadgeFirst:l,shouldOnlyShowIcon:i,shouldRenderBadge:o})=>{let c=(0,n.C)(s.tCH);return o&&null!==d({tagId:e,isNewBdsmCategoryEnabled:c})?a.createElement("span",{className:(0,r.AK)("model-filter__link-label",{"model-filter-link-badge-first":l})},a.createElement(p,{label:t,shouldOnlyShowIcon:i,shouldRenderBadgeFirst:l},a.createElement(d,{tagId:e,isNewBdsmCategoryEnabled:c}))):a.createElement("span",{className:(0,r.AK)("model-filter__link-label",{"model-filter-link-badge-first":l,"visually-hidden":i})},t)}},32684:(e,t,l)=>{l.d(t,{Z:()=>c});var a=l(27378),r=l(3620),n=l(29413),s=l(97606),i=l(39897),o=l(39159);let c=a.memo(()=>{let{trans:e}=(0,s.QT)(),t=(0,r.$B)(),l=(0,a.useMemo)(()=>{var e;return(null===(e=t.params)||void 0===e?void 0:e.isFilterPage)==="filter"},[t]),c=(0,o.n)();return l&&c?a.createElement(i.N,{className:"model-list empty",title:e("separatedFilters.empty.noResults.title"),description:e("separatedFilters.empty.noResults.description")}):l?a.createElement("div",{className:"model-list empty too-strict-filters"},a.createElement("div",{className:"too-strict-filters__title"},e("tooStrictFilter.title")),a.createElement("div",{className:"too-strict-filters__what-next"},e("tooStrictFilter.whatNext"))):a.createElement("div",{className:"model-list empty"},a.createElement(n.Z,{className:"empty-list-icon",img:"camera-offline"}),a.createElement("div",{className:"empty-list-title"},e("noModelsOnline")))})},78012:(e,t,l)=>{l.d(t,{Z:()=>y});var a,r=l(18775),n=l(76482),s=l(27378),i=l(48204),o=l(50557),c=l(99748),d=l(64696),m=l(62512),u=l(82168),p=l(20747),h=l(98371),v=l(62182),E=l(32684),g=l(53157),b=l(66837),f=l(72499);class C extends(a=s.Component){componentDidMount(){(0,m.H0)(this,document,"scroll",this.onScrollHandler),(0,d.Z)(this.propsUpdateToActionsMap,{},this.props)}componentDidUpdate(e){(0,d.Z)(this.propsUpdateToActionsMap,e,this.props)}componentWillUnmount(){(0,m.OM)(this),this.onScrollHandler.cancel()}getPageNumber(){let{defaultVisibleModelsCount:e,isUseOffsetTopForLazyloading:t}=this.props,l=this.getListItemSize();if(!l||!this.containerRef)return 1;let a=Number((0,p.M)(this.containerRef,"--columns-count")),r=u.Z.get(),n=(0,v.mP)();return Math.ceil(Math.max(r-(t&&this.containerRef?this.containerRef.offsetTop:0)+1.5*n,0)/(e/a*l))}getListItemSize(){var e;if(this.listItemSize)return this.listItemSize;let t=null===(e=this.containerRef)||void 0===e?void 0:e.querySelector(".model-list-item");return t?(this.listItemSize=t.clientHeight,this.listItemSize):0}performUpdateLimit(e){this.setState({isCurrentModelsRequestPending:!0}),this.props.performUpdateLimit(e)}render(){let{children:e,className:t,defaultVisibleModelsCount:l,isClearFiltersSuggestionCanBeShown:a,isPending:r,itemsCount:n,totalCount:i}=this.props,{isCurrentModelsRequestPending:d}=this.state;if(!r&&0===n)return s.createElement(E.Z,null);let m=a&&!r&&n<=g.sW;return s.createElement(s.Fragment,null,s.createElement("div",{className:(0,c.AK)("model-list lazy-load-model-list",t),ref:this.containerRefHandler},e,r&&d&&s.createElement(o.s,null,s.createElement(b.pm,{count:i&&i{let{isPending:e}=this.props;e||this.setState({isCurrentModelsRequestPending:!1})}}]),(0,r._)(this,"onScrollHandler",(0,n.Z)(()=>{let{defaultVisibleModelsCount:e,itemsCount:t,shouldStopScrollEvent:l,isPending:a}=this.props;if(l||a||0===t||!this.containerRef)return;let r=this.getPageNumber();this.performUpdateLimit(e*r)},200)),(0,r._)(this,"containerRefHandler",e=>{this.containerRef=e}),this.state={isCurrentModelsRequestPending:!0}}}(0,r._)(C,"defaultProps",{className:"",shouldStopScrollEvent:!1});let y=(0,i.$j)(e=>({defaultVisibleModelsCount:(0,h.KD)(e)}))(C)},72499:(e,t,l)=>{l.d(t,{z:()=>o});var a=l(27378),r=l(3620),n=l(97606),s=l(39897),i=l(39159);let o=(0,a.memo)(()=>{let{trans:e}=(0,n.QT)(),t=(0,r.$B)(),l=(0,a.useMemo)(()=>{var e;return(null===(e=t.params)||void 0===e?void 0:e.isFilterPage)==="filter"},[t]),o=(0,i.n)();return l&&o?a.createElement(s.N,{className:"lazy-load-model-list-clear-filters-suggestion",title:e("separatedFilters.empty.fewModels.title"),description:e("separatedFilters.empty.fewModels.description")}):null})},95894:(e,t,l)=>{l.d(t,{Y:()=>s});var a=l(80406),r=l(73804),n=l(1700);let s=(0,a.P1)([r.SG,n.mq],(e,t)=>!e||t)},12357:(e,t,l)=>{l.d(t,{Z:()=>B});var a=l(27378),r=l(48204),n=l(80936),s=l(99382),i=l(29413),o=l(85353),c=l(99973),d=l(99748),m=l(87937),u=l(97606),p=l(80176),h=l(94380),v=l(32684),E=l(95654),g=l(98371),b=l(95431),f=l(78012),C=l(2582);let y=({itemsCount:e,children:t,className:l})=>{let r=(0,h.T)(),[n,s]=(0,a.useState)(0),i=(0,E.C)(C.O1),o=(0,E.C)(C.gU),c=(0,E.C)(g.KD);return a.createElement(f.Z,{className:l,isPending:i,itemsCount:e,totalCount:o,isUseOffsetTopForLazyloading:!0,performUpdateLimit:e=>{if(!(!n||e>n))return;let t=e-c;s(t),r((0,b.D)(t))},shouldStopScrollEvent:e>=o},t)};var N=l(18775),_=l(96804),k=l(41881),A=l(34551),S=l(84459),T=l(72277),w=l(95894);class P extends a.Component{componentDidMount(){if(this.props.shouldCollectMetrics&&this.props.isPending){let e=performance.now();S.$.collectSkeletonShowTimeMetrics(e)}}componentDidUpdate(){if(this.props.shouldCollectMetrics&&!this.props.isPending){let e=performance.now();S.$.collectSkeletonHideTimeMetrics(e),S.$.isMetricCollected("firstStreamPreviewTime")&&S.$.isMetricCollected("lastStreamPreviewTime")||this.observeImagesTimingLoading()}}componentWillUnmount(){this.imagesTimingCollector.destroy()}render(){return a.createElement(k.O,{className:this.props.className,itemsCount:this.props.itemsCount},this.props.children)}constructor(e){super(e),(0,N._)(this,"imagesTimingCollector",void 0),(0,N._)(this,"observeImagesTimingLoading",async()=>{let e=await (0,d.eP)(".model-list-item-link");this.imagesTimingCollector.observe(e.length,"/thumbs/",S.$.collectFirstStreamPreviewMetrics,S.$.collectLastStreamPreviewMetrics)}),this.imagesTimingCollector=new _.t}}let M=(0,r.$j)(e=>({shouldCollectMetrics:(0,T.u)(e),isPending:(0,w.Y)(e)||(0,A.cY)(e)}))(P);var I=l(394),R=l(36273),Z=l(57778),L=l(68020),D=l(32219);let B=(0,n.H)("isLayoutUpToM","isLayoutUpToL","windowOrientation")((0,r.$j)((e,t)=>{let{modelFilter:{sortBy:l,tag:a},modelSearch:{isPending:r,wasSearchResultsLoaded:n}}=e,s=t.sortBy||l,i=t.tag||a;return{isServerRenderOrHydration:(0,L.Vp)(e),isSearchMode:(0,Z.A9)(e),isSearching:r,sortBy:s,tag:i,wasSearchResultsLoaded:n}})(({isSlidable:e=!1,additionalClassName:t="",isLazyLoading:l=!1,isSearching:r,isSearchMode:n,models:E,segmentType:g,segmentId:b,segmentUrl:f,tag:C,sortBy:N,wasSearchResultsLoaded:_,isLayoutUpToM:k,isLayoutUpToL:A,windowOrientation:S,shouldShowPromoItem:T,shouldLogPopularSnapshot:w,shouldShowPopularSnapshot:P,shouldShowPlasmaBadge:Z=!1,isOnlineStatusVisible:L,onClosePromoThumb:B,onClickPromoThumb:F,isServerRenderOrHydration:O,pixelatedGroupModelsNumber:x,isWithSeeAllButton:U,isVerticalItems:H})=>{let{trans:K}=(0,u.QT)(),V=(0,h.T)(),$=E.length,W=T?$+1:$,z=a.createElement(I.q,{models:E,segmentId:b,segmentType:g,segmentUrl:f,tag:C,sortBy:N,shouldLogPopularSnapshot:w,shouldShowPlasmaBadge:Z,shouldShowPopularSnapshot:P,isOnlineStatusVisible:L,pixelatedGroupModelsNumber:x,isVerticalItems:H},T&&a.createElement(D.g,{onClose:B,onClick:F,key:b}));if(!O&&(r||!_&&n&&(0,m.C5)()))return a.createElement("div",{className:"loader-container"},a.createElement(o.Z,{isCentered:!0}));if(l)return"offline"===g?a.createElement(y,{className:t,itemsCount:W},z):a.createElement(M,{className:t,itemsCount:W},z);if(0===W)return a.createElement(v.Z,null);let q=(W>=8||!k)&&!H,Q="favoriteModels"===b?W>=R.h.MOBILE_FAVORITES:W>=R.h.INITIAL_LIMIT||H&&c.BROWSER_CAPABILITIES.touch&&W>=R.h.DESKTOP_COLLAPSE,j=!!(W%2);return a.createElement("section",{className:(0,d.AK)("model-list",t,{"model-list-slideable":e,"less-8-items":E.length<8,"model-list-vertical":H&&e})},z,!("portrait"===S&&!A)&&U&&Q&&(!j&&q||!q)&&a.createElement("div",{className:"model-list-item model-list-see-all-slot"},a.createElement("div",{className:"model-list-item model-list-item-see-all"},a.createElement(s.ZP,{onClick:()=>{V((0,p.J5)(`/${f}`))},style:"see-all",size:"medium"},K("multipleCategories.seeAll"),a.createElement(i.Z,{img:"chevron-right"})))))}))},96929:(e,t,l)=>{l.d(t,{Q:()=>A});var a=l(27378),r=l(97172),n=l(53603),s=l(4368),i=l(99973),o=l(98150),c=l(95654),d=l(10809),m=l(62203),u=l(51573),p=l(94380);let h=e=>{let t=(0,p.T)();(0,a.useEffect)(()=>{e&&e.includes("blurred")&&t((0,u.yi)("blurred_img_loaded"))},[t,e])};var v=l(4289),E=l(99748);let g=(0,a.forwardRef)(({children:e,isMobileStream:t,isNonNude:l,noCover:r,modelId:n,onContextMenu:s,onTouchStart:i,onMouseLeave:o,onMouseOver:c,onClick:d,to:m},u)=>a.createElement(v.rU,{className:(0,E.AK)("model-list-item-link",{"model-list-item-link-non-nude":l,"model-list-item-link-mobile":t,"no-cover":r}),id:`model-list-item-${n}`,onContextMenu:s,onTouchStart:i,onMouseLeave:o,onMouseOver:c,onClick:d,ref:u,to:m},e));var b=l(88919),f=l(40071),C=l(73804),y=l(42339),N=l(25332),_=l(61826);let k=(e,t)=>{let l=(0,a.useRef)(!1);if(i.BROWSER_CAPABILITIES.touch)return;let{onMouseOver:r,onMouseLeave:n}=e;e.onMouseOver=e=>{null==r||r(e),l.current||(l.current=!0,t(!0))},e.onMouseLeave=e=>{null==n||n(e),l.current=!1,t(!1)}},A=({shouldShowPopularSnapshot:e,liveThumbWatchHandler:t,onHoverChanged:l,onContextMenu:i,imgAltArea:u="cam",children:p,quality:v,onClick:E,model:A,playlistUrl:S})=>{let T=(0,c.C)(e=>(0,C.dK)(e,A.username)),w=(0,c.C)(m.Km),P=(0,c.C)(y.sYo),M={},I=(0,a.useRef)(null);k(M,l);let{isLiveThumbVisible:R,onHideLiveThumbElements:Z}=(0,f.K)({model:A,isLivePlaylistUrlExist:!!S,linkRef:I,handlers:M}),{onMouseOver:L,onMouseLeave:D,onTouchStart:B}=M,F=(0,r.x)({model:A,shouldShowPopularSnapshot:e,quality:v}),O=!F.shouldBeBlurred&&R&&S,x=(0,d.rN)([I,F.ref]),U=(0,N.s)(A);h(F.previewImage);let H=(0,n.T)(u,A.username);return a.createElement(g,{modelId:A.id,isNonNude:w&&!F.nextSnapshotUrl,isMobileStream:A.isMobile,noCover:F.noCover,onContextMenu:e=>{U.onClick("context-menu"),U.onDeferredClick(),null==i||i(e,A)},onTouchStart:B,onMouseLeave:D,onMouseOver:L,onClick:e=>{let t=e.ctrlKey||e.shiftKey||e.metaKey;U.onClick(t?"new-tab":"direct"),null==E||E(e,(0,o.l)(F.previewImage),A)},ref:x,to:T},F.shouldBackgroundShowBlur&&F.canHaveBlurredBg&&a.createElement(_.i,{noCover:F.noCover,src:F.previewImage,smoothAnimation:P}),a.createElement(s.s,{src:F.previewImage,objectFit:A.isMobile&&F.canHaveBlurredBg?"contain":void 0,fallbackSrc:F.fallbackImage,username:A.username,loading:F.shouldLazyLoadImage?"lazy":void 0,alt:H,smoothAnimation:P,shouldBeBlurred:F.shouldBeBlurred&&F.isPreviewOrAvatar}),O&&a.createElement(b.a,{onHideLiveThumbElements:Z,className:"model-list-item__live-thumb",onWatchStart:t,shouldBeBlurred:F.shouldBeBlurred,model:A,playlistUrl:S}),p)}},61826:(e,t,l)=>{l.d(t,{i:()=>c});var a=l(27378),r=l(80821),n=l(99748),s=l(10809),i=l(30267);let o={filter:"ModelListImageLinkMobileBlur__filter#ET",transition:"ModelListImageLinkMobileBlur__transition#Tb"},c=(0,a.memo)(({src:e,noCover:t,smoothAnimation:l})=>{let[c,d,m]=(0,i._)({src:e,startTimeout:100,finishTimeout:500}),u=t?void 0:(0,r.sm)(l?c||"":e),p=t?void 0:(0,r.sm)(d||"");return a.createElement("div",null,a.createElement("div",{className:"model-list-item-link-mobile-blur",style:{backgroundImage:u?`url(${u})`:void 0}}),l&&p&&a.createElement("div",{ref:(0,s.lq)([m]),className:(0,n.AK)(o.transition,"model-list-item-link-mobile-blur"),style:{backgroundImage:p?`url(${p})`:void 0}}),a.createElement("div",{className:o.filter}))})},70602:(e,t,l)=>{l.d(t,{p:()=>A});var a=l(66471),r=l.n(a),n=l(27378),s=l(48204),i=l(53738),o=l(31972),c=l(95366),d=l(49938),m=l(98846),u=l(95654),p=l(69606),h=l(96929),v=l(72998),E=l(46175),g=l(69999),b=l(73166),f=l(73881),C=l(6818),y=l(99644),N=l(42339);let _=(0,m.n7)({resolved:{},chunkName:()=>"ModelListRatingDebug",isReady(e){let t=this.resolve(e);return!0===this.resolved[t]&&!!l.m[t]},importAsync:()=>l.e(500).then(l.bind(l,90632)),requireAsync(e){let t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){return l(this.resolve(e))},resolve:()=>90632},{fallback:void 0,ssr:!1}),k=()=>{},A=(0,n.memo)((0,n.forwardRef)(({quality:e=c.Yf2.SMALL,shouldShowOfflinePrivateRequest:t,shouldShowSpyablePrivateBadge:l=!0,shouldShowPopularSnapshot:a=!1,shouldShowAdditionalMenu:r=!0,isStatusVisible:s=!0,liveThumbWatchHandler:m=k,shouldForceShowPrivatePrices:A,shouldForceShowViewersCount:S,shouldShowPlasmaBadge:T,isFavoriteBadgeHidden:w,handleContextMenu:P,imgAltArea:M,className:I,children:R,onClick:Z,position:L,model:D,pixelatedGroupModelsNumber:B},F)=>{let O=(0,u.C)(e=>(0,C.D9)(e,D.id))||D.isInFavorites,x=(0,u.C)(y.MU),U=!!(S||x),H=(0,u.C)(o.eG),K=!!("number"==typeof L&&B&&L<=B||H.includes(D.id)),V=(0,u.C)(o.ZB),$=(0,u.C)(N.HwD),W=(0,f.M)({modelId:D.id,modelPresets:D.presets,isPresetExists:"presets"in D,isPixelatedPreview:!!(V&&K)}),[z,q]=(0,n.useState)(!1),[Q,j]=(0,n.useState)(!1),[G,Y]=(0,n.useState)(!1),J=(0,i.Z)((e,t)=>{null==Z||Z(e,t,D,L)});return Q?null:n.createElement(b.f,{ref:F,position:L,className:I,model:D},R,z&&n.createElement(g.Z,{handleUndoPressed:()=>q(!1),remove:()=>j(!0),model:D}),n.createElement(h.Q,{imgAltArea:M,liveThumbWatchHandler:m,model:D,playlistUrl:W,quality:e,shouldShowPopularSnapshot:a,onClick:J,onContextMenu:P,onHoverChanged:Y},D.ratingDebug&&n.createElement(_,{model:{...D,ratingDebug:D.ratingDebug}}),n.createElement(d.a,{isActive:G,status:D.status,doSpy:D.doSpy}),D.status===c.MODEL_STATUSES.STATUS_GROUP_SHOW&&D.groupShowTopic&&n.createElement(p.u,{title:D.groupShowTopic,withAdditionalPadding:U}),n.createElement(E.C,{shouldShowAdditionalMenu:r&&!z&&G,shouldShowOfflinePrivateRequest:!!t&&!$,shouldShowSpyablePrivateBadge:l,shouldForceShowPrivatePrices:A,onNotInterestedClick:e=>{e.stopPropagation(),q(!0)},shouldShowPlasmaBadge:T&&!$,isStatusVisible:s,isInFavorites:!!O,model:D}),n.createElement(v.v,{shouldShowViewersCount:U,isFavoriteBadgeHidden:w,isInFavorites:!!O,model:D})))}),({model:e,...t},{model:l,...a})=>r()(l,e)&&(0,s.wU)(t,a));A.displayName="ModelListItem"},72998:(e,t,l)=>{l.d(t,{v:()=>v});var a=l(27378),r=l(95366),n=l(29413),s=l(99748),i=l(95654),o=l(68977),c=l(36410),d=l(12710),m=l(32925);let u=({viewers:e})=>a.createElement("div",{className:"model-list-item-viewers"},m.V.Viewers,(0,d.uf)(e,1));var p=l(57778),h=l(12278);let v=({shouldShowViewersCount:e,isFavoriteBadgeHidden:t,isInFavorites:l,model:d})=>{let v=(0,i.C)(h.yr),E=(0,i.C)(p.GT),g=d.broadcastGender===r.PfP.GROUP?d.broadcastGender:d.gender;return a.createElement("div",{className:"model-list-item-lower"},e&&(null==d?void 0:d.viewersCount)!==void 0&&d.isLive&&a.createElement(u,{viewers:d.viewersCount}),!t&&l&&m.V.Favorite,a.createElement(c.Z,{previousUsername:d.previousUsername,className:(0,s.AK)("model-list-item-username",{"model-list-item-username-short":!!d.country}),searchString:E,username:d.username}),v&&g&&a.createElement(n.Z,{img:g,size:17}),d.country&&a.createElement(o.j,{country:d.country}))}},46175:(e,t,l)=>{l.d(t,{C:()=>C});var a=l(27378),r=l(97554),n=l(59259),s=l(13904);let i=e=>{var t,l;return{isNew:!!e.isNew,isMobile:!!e.isMobile,isLive:!!e.isLive,isVr:!!e.isVr,doSpy:!!e.doSpy,isLovense:!!(e.isLovense||(null===(t=e.tags)||void 0===t?void 0:t.includes("autoTagLovense"))),isKiiroo:!!(e.isKiiroo||(null===(l=e.tags)||void 0===l?void 0:l.includes("autoTagKiiroo"))),hasPlasma:!!e.hasPlasma,hasGroupShowAnnouncement:!!e.hasGroupShowAnnouncement,upForPrivate:!!e.upForPrivate,groupShowType:e.groupShowType,status:e.status}};var o=l(7352),c=l(84315),d=l(99748),m=l(32925),u=l(56322),p=l(97606),h=l(95654),v=l(99644);let E={private:"modelList.bestPrivates.tooltip",spy:"modelList.spyPrivates.tooltip",p2p:"modelList.p2pPrivates.tooltip",publicRecord:"modelList.publicRecordTooltip"},g=({price:e,priceType:t="private"})=>{let{trans:l}=(0,p.QT)(),r=(0,a.useRef)(null),n=l(E[t]);return e?a.createElement("span",{className:"model-list-item-price",ref:r},`${e} tk`,a.createElement(u.a,{targetRef:r,placement:"top",showDelay:250,isMobileRelative:!1},n)):null},b=({shouldShowOfflinePrivateRequest:e,shouldForceShowPrivatePrices:t,model:l})=>{let r=(0,h.C)(v.Q7),n=(0,h.C)(v.$z),s=(0,h.C)(v.lt),i=(0,h.C)(v.ul);return e?a.createElement(g,{price:Number(l.p2pRate)||Number(l.privateRate),priceType:l.p2pRate?"p2p":"private"}):(t||n)&&l.privateRate?a.createElement(g,{price:l.privateRate,priceType:"private"}):(t||s)&&l.p2pRate?a.createElement(g,{price:l.p2pRate,priceType:"p2p"}):i?a.createElement(g,{price:l.spyRate,priceType:"spy"}):r?a.createElement(g,{price:l.publicRecordingsRate,priceType:"publicRecord"}):null};var f=l(32284);let C=({shouldShowOfflinePrivateRequest:e,shouldShowSpyablePrivateBadge:t,shouldForceShowPrivatePrices:l,shouldShowAdditionalMenu:u,shouldShowPlasmaBadge:p,onNotInterestedClick:h,isStatusVisible:v,isInFavorites:E,model:g})=>{let C=(0,s.N)(i(g),{isLiveVisible:v,isPlasmaVisible:!!p,isPrivateVisible:!!t,isUpForPrivateVisible:e}),y=C.includes(n.Q.NEW);return a.createElement("div",{className:"model-list-item-upper"},(0,o.j)(C).map(e=>a.createElement(a.Fragment,{key:e},m.V[e])),a.createElement("div",{className:"model-list-item-upper-right"},u&&a.createElement(r.Z,{onNotInterestedClick:h,showNotInterestedConfirmModal:!1,isInFavorites:E,model:(0,f.T$)(g),isSilentToggleNotInterested:!0,variant:"model-list-item",className:(0,d.AK)("model-list-item-additional-menu-wrapper",{"model-list-item-additional-menu-wrapper--absolute":y})}),y&&m.V.New,a.createElement(b,{shouldShowOfflinePrivateRequest:e,shouldForceShowPrivatePrices:l,model:g}),!g.isNew&&a.createElement(c.Z,{hallOfFameByYears:g.hallOfFame,place:g.topBestPlace,username:g.username})))}},69999:(e,t,l)=>{l.d(t,{Z:()=>h});var a=l(27378),r=l(4289),n=l(99382),s=l(29413),i=l(97606),o=l(87766),c=l(94380),d=l(95654),m=l(7685),u=l(27251),p=l(35087);let h=({handleUndoPressed:e,remove:t,model:l})=>{let{trans:h}=(0,i.QT)(),v=(0,c.T)(),E=(0,m.L)("ModelListItemUndoHover"),g=(0,a.useRef)(!1),b=(0,a.useRef)(!1),f=(0,d.C)(u.YZ),C=(0,a.useRef)(Date.now()),y=(0,a.useRef)(0),N=(0,a.useRef)(null),_=e=>{e.relatedTarget!==window&&(b.current=!0)};return(0,a.useEffect)(()=>{f||(t(),o.Z.stopInterval(E))},[f,t,E]),(0,a.useEffect)(()=>(v((0,p.U$)({model:l})),o.Z.startInterval(E,16,()=>{if(b.current||(y.current+=Date.now()-C.current),C.current=Date.now(),N.current){let e=y.current/5e3;N.current.style.transform=`scale3d(${1-e}, 1, 1)`}y.current>5e3&&(o.Z.stopInterval(E),t())}),()=>{g.current||v((0,p.KH)(l,{isSilent:!0})),o.Z.stopInterval(E)}),[]),a.createElement("div",{onMouseEnter:_,onMouseLeave:()=>{b.current=!1},className:"model-list-item__undo-not-interested"},a.createElement("div",{className:"model-list-item__undo-not-interested-title"},h("modelAdditionalMenu.undoNotInterested.title")),a.createElement(n.ZP,{className:"model-list-item__undo-not-interested-button",onMouseEnter:_,onClick:()=>{g.current=!0,v((0,p.un)({model:l})),e()}},h("modelAdditionalMenu.undoNotInterested.button")),a.createElement(r.rU,{target:"_blank",to:"/not-interested",className:"model-list-item__undo-not-interested-link"},h("modelAdditionalMenu.undoNotInterested.linkToHiddenModels")," ",a.createElement(s.Z,{img:"chevron-right"})),a.createElement("div",{ref:N,className:"model-list-item__undo-not-interested-progress"}))}},36410:(e,t,l)=>{l.d(t,{Z:()=>i});var a=l(27378),r=l(65804),n=l(99748);let s=({username:e,regex:t})=>{let l=e.split(t);return a.createElement(a.Fragment,null,l.length?l.map((e,t)=>t%2!=0?a.createElement("em",{key:t},e):e):e)},i=a.memo(e=>{let{username:t,previousUsername:l,isInSearchDropdown:i=!1,searchString:o=""}=e;if(""===o.trim())return a.createElement("span",{className:(0,n.AK)("model-name",e.className)},t);let c=encodeURIComponent(o.trim()).replace(/[*.()]/g,""),d=RegExp(`(${c})`,"gi");return c?a.createElement("div",{className:(0,n.AK)("model-list-item-username-wrapper",{"model-list-item-username-wrapper--in-search-dropdown":i})},a.createElement("span",{className:(0,n.AK)("model-name",e.className)},a.createElement(s,{username:t,regex:d})),l&&a.createElement(a.Fragment,null," ",a.createElement("span",{className:(0,n.AK)("model-list-item-username-wrapper__old-username",e.className)},"(",a.createElement(r.Z,{messageId:"searchModels.wasOldUsername",elements:{previousUsername:a.createElement(s,{username:l,regex:d})}}),")"))):a.createElement("span",{className:(0,n.AK)("model-name",e.className)},t)})},73166:(e,t,l)=>{l.d(t,{f:()=>c});var a=l(27378),r=l(99748),n=l(97606),s=l(10809),i=l(96630),o=l(27341);let c=(0,a.forwardRef)(({className:e,children:t,model:l,position:c},d)=>{var m,u,p,h;let{trans:v}=(0,n.QT)(),E=(0,o.Uo)(l),g=(0,s.rN)([d,E]),b=(0,i.I)(l.id);return a.createElement("div",{"data-position":c,className:(0,r.AK)(e,"model-list-item"),ref:g,...b,suppressHydrationWarning:!0},t,!!(null===(m=l.tipMenu)||void 0===m?void 0:m.price)&&a.createElement("div",{className:"model-list-item-bottom-info"},!l.tipMenu.hideTitle&&a.createElement(a.Fragment,null,a.createElement("span",{className:"title"},`${v("actionList.tipMenu.title")}:`),"\xa0"),a.createElement("span",{className:"activity"},null===(u=l.tipMenu)||void 0===u?void 0:u.activity)," ",a.createElement("span",{className:"tokens"},null===(p=l.tipMenu)||void 0===p?void 0:p.price," tk")),!!(null===(h=l.topic)||void 0===h?void 0:h.length)&&a.createElement("div",{className:"model-list-item-bottom-info"},a.createElement("span",{className:"title"},`${v("actionList.topic.title")}:`),"\xa0",a.createElement("span",{className:"activity"},l.topic)),!!l.privateActivityRate&&a.createElement("div",{className:"model-list-item-bottom-info"},a.createElement("span",{className:"title"},`${v("actionList.privateActivities.title")}:`),"\xa0",a.createElement("span",{className:"activity"},l.privateActivity)," ",a.createElement("span",{className:"tokens"},l.privateActivityRate," tk/min")))});c.displayName="ModelListItemWrapper"},68977:(e,t,l)=>{l.d(t,{j:()=>s});var a=l(27378),r=l(9843),n=l(97606);let s=({country:e})=>{let{trans:t}=(0,n.QT)();return a.createElement(r.Z,{className:"model-list-item-country",country:e,size:"small",title:t(`country.${e}`)})}},69606:(e,t,l)=>{l.d(t,{u:()=>s});var a=l(27378),r=l(99748);let n={root:"GroupShowTitleBadge#xe",content:"GroupShowTitleBadge__content#eJ",withAdditionalPadding:"GroupShowTitleBadge__withAdditionalPadding#Q9",title:"GroupShowTitleBadge__title#hm"},s=({title:e,withAdditionalPadding:t})=>a.createElement("div",{className:(0,r.AK)(n.root,{[n.withAdditionalPadding]:t})},a.createElement("div",{className:n.content},a.createElement("div",{className:n.title,title:e},"“",e,"”")))},32925:(e,t,l)=>{l.d(t,{V:()=>u});var a=l(27378),r=l(29413),n=l(99748),s=l(97606);let i=({children:e})=>a.createElement("div",{className:"model-list-private-badge"},e);var o=l(56322),c=l(65804);let d={root:"ModelListItemBadge#mI",mobile:"ModelListItemBadge__mobile#qE",vr:"ModelListItemBadge__vr#hn",ticketShow:"ModelListItemBadge__ticketShow#bL",groupShow:"ModelListItemBadge__groupShow#_N",toy:"ModelListItemBadge__toy#sP",new:"ModelListItemBadge__new#tl",favorite:"ModelListItemBadge__favorite#vd",eye:"ModelListItemBadge__eye#EN"},m=({icon:e,tooltipMessageId:t})=>{let{trans:l}=(0,s.QT)();return a.createElement("span",{className:(0,n.AK)(d.root,d[e]),title:t?l(t):void 0})},u={Live:a.createElement(r.Z,{className:"model-list-item-live",img:"badge-live-ds"}),Plasma:a.createElement(()=>{let{trans:e}=(0,s.QT)(),t=(0,a.useRef)(null);return a.createElement("div",{className:"model-list-item-plasma-badge",ref:t},a.createElement(r.Z,{img:"plasma"}),a.createElement(c.Z,{className:"model-list-item-plasma-badge__text",messageId:"modelList.badge.plasma",elements:{accent:a.createElement("span",{className:"accent"})}}),a.createElement(o.a,{targetRef:t,isMobileRelative:!1,placement:"top",showDelay:250},e("modelList.badge.plasmaTooltip")))},null),UpForPrivate:a.createElement(()=>{let{trans:e}=(0,s.QT)(),t=(0,a.useRef)(null);return a.createElement("div",{className:"model-list-item-offline-private",ref:t},a.createElement(r.Z,{img:"lightning-2",size:13}),a.createElement("span",{className:"model-list-item-offline-private-text"},e("modelList.badge.offlinePrivate")),a.createElement(o.a,{targetRef:t,isMobileRelative:!1,placement:"top",showDelay:250},e("modelList.badge.offlinePrivateTooltip")))},null),Private:a.createElement(()=>{let{trans:e}=(0,s.QT)();return a.createElement(i,null,e("modelList.badge.private"))},null),GroupShow:a.createElement(()=>{let{trans:e}=(0,s.QT)();return a.createElement(i,null,a.createElement(r.Z,{img:"group-ds",size:11}),e("modelList.badge.inGroupShow"))},null),TicketShow:a.createElement(()=>{let{trans:e}=(0,s.QT)();return a.createElement(i,null,a.createElement(r.Z,{img:"ticket",size:11}),e("modelList.badge.inTicketShow"))},null),LovenseToy:a.createElement(m,{icon:"toy",tooltipMessageId:"modelList.lovense.tooltip"}),KiirooToy:a.createElement(m,{icon:"toy",tooltipMessageId:"modelList.kiiroo.tooltip"}),New:a.createElement(m,{icon:"new"}),VR:a.createElement(m,{icon:"vr",tooltipMessageId:"modelList.broadcastType.vr"}),GroupShowAnnounced:a.createElement(m,{icon:"groupShow",tooltipMessageId:"modelList.broadcastType.group"}),TicketShowAnnounced:a.createElement(m,{icon:"ticketShow",tooltipMessageId:"modelList.broadcastType.ticket"}),Mobile:a.createElement(m,{icon:"mobile",tooltipMessageId:"modelList.broadcastType.mobile"}),Favorite:a.createElement(m,{icon:"favorite",tooltipMessageId:"myFavoriteModel"}),Viewers:a.createElement(m,{icon:"eye"})}},394:(e,t,l)=>{l.d(t,{q:()=>E});var a=l(27378),r=l(53738),n=l(68994),s=l(99748),i=l(94380),o=l(32219),c=l(70602),d=l(41637),m=l(44556),u=l(90234),p=l(35746),h=l(23713),v=l(8350);let E=({children:e,models:t,maxCount:l,segmentId:E,segmentType:g,segmentUrl:b,tag:f,sortBy:C,shouldLogPopularSnapshot:y,shouldShowPopularSnapshot:N,shouldShowPlasmaBadge:_,isOnlineStatusVisible:k,pixelatedGroupModelsNumber:A=0,isVerticalItems:S})=>{let T=(0,i.T)(),w=(0,p.H)({isDisabled:!["topStreamsModels","featuredModels","default"].includes(E||"")}),P=(0,r.Z)(e=>{T((0,d.SJ)({model:e,segmentType:g,segmentUrl:b,tag:f}))}),M=(0,m.K)({shouldLogPopularSnapshot:y,segmentId:E,segmentType:g,segmentUrl:b,tag:f,sortBy:C}),I=(0,v.v)();return a.createElement(a.Fragment,null,t.map((e,t)=>(0,n.Z9)(e)?"favoritesPromoThumb"===e.name?a.createElement(o.U,{key:e.name,className:null==I?void 0:I.slide}):null:a.createElement(a.Fragment,{key:e.id},w.shouldRender(e.id)&&a.createElement(a.Fragment,null,a.createElement(h.s,null),a.createElement(u.p,{ref:w.ref,isClosable:w.isClosable,onClose:w.handleClose})),a.createElement(c.p,{ref:t=>w.handleRenderThumb(t,e.id),shouldShowSpyablePrivateBadge:(null==f?void 0:f.id)!=="autoTagSpy",shouldShowPopularSnapshot:N,liveThumbWatchHandler:P,shouldShowPlasmaBadge:_,isStatusVisible:!!k,position:t+1,onClick:M,model:e,pixelatedGroupModelsNumber:A,className:(0,s.AK)(null==I?void 0:I.slide,{"model-list-vertical-item":S})}))).slice(0,l),e)}},43337:(e,t,l)=>{l.d(t,{Z:()=>h});var a=l(18775),r=l(27378),n=l(48204),s=l(95366),i=l(64696),o=l(87766),c=l(55522),d=l(73804),m=l(15724);class u extends r.Component{componentDidMount(){(0,i.Z)(this.propsUpdateToActionsMap,{},this.props),this.updateSchedulerTimer(s.RIs)}componentDidUpdate(e){(0,i.Z)(this.propsUpdateToActionsMap,e,this.props)}loadModelList(){this.props.loadModelsOnline({isInBackground:!0})}updateSchedulerTimer(e){o.Z.stopTimeout("onlineModels"),o.Z.startTimeout("onlineModels",e,this.updateModels.bind(this))}updateModels(){let{isSchedulerBlocked:e}=this.props;e?this.setState({wasMissingRequest:!0}):this.loadModelList(),this.updateSchedulerTimer(s.RIs)}forceUpdateModels(){this.setState({wasMissingRequest:!1}),this.loadModelList(),this.updateSchedulerTimer(s.RIs)}componentWillUnmount(){o.Z.stopTimeout("onlineModels")}render(){return null}constructor(e){super(e),(0,a._)(this,"propsUpdateToActionsMap",[{update:(e,t)=>!!e.isSchedulerBlocked&&!t.isSchedulerBlocked,action:()=>{let{wasMissingRequest:e}=this.state;e&&this.forceUpdateModels()}},{update:["modelsOnlineHash"],action:()=>{this.updateSchedulerTimer(s.RIs)}}]),this.state={wasMissingRequest:!1}}}let p={loadModelsOnline:c.$2},h=(0,n.$j)(e=>({isSchedulerBlocked:(0,m.So)(e),modelsOnlineHash:(0,d.IR)(e)}),p)(u)},82216:(e,t,l)=>{l.d(t,{Z:()=>E});var a,r=l(18775),n=l(27378),s=l(48204),i=l(2219),o=l(99748),c=l(12357),d=l(43337),m=l(46911),u=l(73804),p=l(77602),h=l(61256);class v extends(a=n.Component){render(){return n.createElement("div",{className:(0,o.AK)("model-list-wrapper",this.props.className)},this.props.hasScheduler&&n.createElement(d.Z,null),this.renderContent())}constructor(...e){super(...e),(0,r._)(this,"renderBanners",()=>{let{hasFiltersColumn:e}=this.props;return e?n.createElement(i.Z,null):null}),(0,r._)(this,"renderNav",()=>{let{inlineTags:e,amplitudeNavElement:t}=this.props;return!e||e&&0===e.length?null:n.createElement(m.Z,{className:"media-after-l-hidden",tags:e,amplitudeNavElement:t,shouldShowMore:!0,variant:"with-scroll"})}),(0,r._)(this,"renderContent",()=>{let{children:e,isLazyLoading:t,isOnlineStatusVisible:l,models:a,shouldLogPopularSnapshot:r,shouldShowPopularSnapshot:s,sortBy:i,tag:o,underModelsList:d}=this.props,m=o.id||o.primaryTagId;return n.createElement("div",{key:"modelsList",className:"model-list-container"},this.renderBanners(),this.renderNav(),n.createElement(h.C,{tag:o,blockId:m,models:a,sortBy:i},this.props.header,e||n.createElement(c.Z,{isOnlineStatusVisible:l,isLazyLoading:t,models:a,shouldLogPopularSnapshot:r,shouldShowPopularSnapshot:s,tag:o,sortBy:i,segmentId:m})),d)})}}(0,r._)(v,"defaultProps",{inlineTags:null,isLazyLoading:!1,underModelsList:null,hasScheduler:!1});let E=(0,s.$j)((e,t)=>{let{modelFilter:{sortBy:l,tag:a}}=e;return{inlineTags:(0,p.m0)(e),models:t.models||(0,u.rG)(e),sortBy:l,tag:t.tag||a}})(v)},79226:(e,t,l)=>{l.d(t,{M:()=>i});var a=l(27378),r=l(10728),n=l(20747);let s=3,i=(0,a.forwardRef)(({currentPage:e,totalCount:t,children:l,onPageChange:i,rowsCount:o=s},c)=>{let d=(0,a.useRef)(null),[m,u]=(0,a.useState)(7),p=m*o;(0,n.n)(d,"--columns-count",e=>{e&&u(Number(e))});let h=(0,a.useCallback)(e=>{let t=e?(e-1)*p:0;i({page:e,limit:7*o,offset:t})},[i,p,o]);return(0,a.useEffect)(()=>{let l=Math.ceil(t/p);l{l.d(t,{U:()=>g,g:()=>u});var a=l(47722),r=l(27378),n=l(65804),s=l(29413),i=l(99748),o=l(97606),c=l(95654),d=l(98371),m=l(8350);let u=(0,r.memo)(({onClose:e=()=>!1,onClick:t=()=>!1})=>{let{trans:l}=(0,o.QT)(),u=(0,c.C)(d.Sx),p=(0,m.v)();return r.createElement("div",{className:(0,i.AK)("model-list-promo-item model-list-item",null==p?void 0:p.slide)},r.createElement(a.mI,{className:"model-list-promo-item__btn-close",onClick:e},r.createElement(s.Z,{img:"close-7"})),r.createElement(a.mI,{className:"model-list-promo-item__inner",onClick:t},r.createElement("div",{className:"model-list-promo-item__content"},r.createElement(s.Z,{img:"camera-plus",className:"model-list-promo-item__icon-cam"}),r.createElement("span",{className:"model-list-promo-item__text model-list-promo-item__text--title"},l("promoThumbFewModelsCountry.fewModels")),r.createElement("span",{className:"model-list-promo-item__text"},r.createElement(n.Z,{messageId:"promoThumbFewModelsCountry.text",elements:{br:u?r.createElement("br",null):r.createElement("span",null)}})),r.createElement("span",{className:"model-list-promo-item__text model-list-promo-item__text--action"},l("promoThumbFewModelsCountry.link")))))});var p=l(91090),h=l(20717),v=l(94380),E=l(96330);let g=(0,r.memo)(({className:e})=>{let{trans:t}=(0,o.QT)(),l=(0,v.T)();return r.createElement("div",{className:(0,i.AK)("model-list-promo-item model-list-item",e)},r.createElement(a.mI,{className:"model-list-promo-item__inner",onClick:()=>{l((0,E.I)("SignUp",{amplParams:{triggerSource:p.Dt.FAVORITES_SECTION_PROMO_THUMB,tagSource:"noTag",tag:"noTag"}}))}},r.createElement("div",{className:"model-list-promo-item__content model-list-promo-item__content--favorites"},r.createElement("img",{alt:"heart",className:"model-list-promo-item__icon-heart",src:(0,h.jz)("discovery/components/ModelList/components/ModelListPromoItem/images/heart.svg")}),r.createElement("span",{className:"model-list-promo-item__text model-list-promo-item__text--title model-list-promo-item__text--favorites-title"},t("favoritesSectionPromoThumb.keepYourFavorites")),r.createElement("span",{className:"model-list-promo-item__text model-list-promo-item__text--favorites"},t("favoritesSectionPromoThumb.byCreatingFreeAccount")),r.createElement("div",{className:"btn btn-apply btn-inline-block model-list-promo-item__btn-sign-up"},r.createElement("span",{className:"media-after-m-hidden"},t("favoritesSectionPromoThumb.joinNowMobile")),r.createElement("span",{className:"media-up-to-s-hidden"},t("favoritesSectionPromoThumb.joinNow"))))))})},34829:(e,t,l)=>{l.d(t,{T:()=>d});var a=l(27378),r=l(4289),n=l(99748),s=l(19702),i=l(29413);let o=e=>a.createElement("span",{onClick:e.onClick,className:(0,n.AK)("inline-badge__plus",e.className)},a.createElement(i.Z,{img:"plus-unframed"})),c=({children:e,link:t})=>{let l=a.createElement(a.Fragment,null,e,a.createElement(o,null));return t?a.createElement(r.rU,{to:t,className:"inline-badge__label"},l):a.createElement("span",{className:"inline-badge__label"},l)},d=e=>{let{className:t,selected:l,renderLabel:r,onClick:i,tag:o,link:d,...m}=e,u=(0,a.useCallback)(()=>{let e=r(o);return l?a.createElement(c,{link:d},e):e},[r,o,l,d]),p=(0,a.useCallback)(()=>{i&&i(o)},[o,i]);return a.createElement(s.Z,{className:(0,n.AK)("inline-badge inline-badge__override inline-badge__button",t,{"inline-badge--selected":l}),tag:o,renderLabel:u,shouldPreventLocationChange:m.shouldPreventDefault,onClick:p,...m})}},46911:(e,t,l)=>{l.d(t,{Z:()=>D});var a=l(64489),r=l(27378),n=l(48204),s=l(3620),i=l(95366),o=l(83550),c=l(99382),d=l(38487),m=l(84423),u=l(99748),p=l(97606),h=l(80176),v=l(94380),E=l(95654),g=l(62203),b=l(46024),f=l(56534),C=l(77602),y=l(12278),N=l(42339),_=l(91090),k=l(34829),A=l(65804),S=l(30085),T=l(15921),w=l(82711);let P={icon:"Label__icon#I8"},M=({tagId:e,primaryTagId:t,isAllTag:l,isNewBdsmCategoryEnabled:a})=>{let{trans:n}=(0,p.QT)(),s=({imgPath:e,trPath:t,trArgs:l,labelClassName:a,additionalNode:s=null})=>r.createElement(r.Fragment,null,r.createElement(T.Z,{className:P.icon,size:16,img:e}),r.createElement("span",{className:a},n(t,l)),s),o=({trPath:e,trArgs:t,iconClassName:l,labelClassName:a,additionalNode:s=null})=>r.createElement(r.Fragment,null,r.createElement("span",{className:l}),r.createElement("span",{className:a},n(e,t)),s);return i.G3f.includes(e)?r.createElement(S.Z,{size:"medium",country:i.BiC[e]}):i.ovm.includes(e)?s({imgPath:"badge-vr",trPath:`tagGenders.${t}.${e}Gender`}):e===i.TT4?s({imgPath:"heart-fill",trPath:"tags.favorites"}):e===i.S1V?s({imgPath:"play-strips-ds",trPath:"strips.title"}):e===i.w22?s({imgPath:"bookmark-filled",trPath:"tags.myCollection"}):e===i.w7V&&a?s({imgPath:"bunny-mask",trPath:"tags.bdsm"}):e===i.ZSs?s({imgPath:"feed",trPath:"tags.userFeed",additionalNode:r.createElement(w.R,null)}):e===i.W5o?s({imgPath:"recommended",trPath:"tags.recommended",labelClassName:"media-up-to-s-hidden"}):e===i.UBX?o({iconClassName:"tag-icon tag-icon-valentines",trPath:"tagGenders.girls.valentines"}):e===i.bjF?o({iconClassName:"tag-icon tag-icon-christmas",trPath:"tagGenders.girls.christmas"}):e===i._6F?o({iconClassName:"tag-icon tag-icon-beer",trPath:"tagGenders.girls.oktoberfest"}):e===i.B_z?o({iconClassName:"tag-icon tag-icon-july4th",trPath:"tagGenders.girls.july4th"}):e===i.cPn?o({iconClassName:"tag-icon tag-icon-halloween",trPath:"tagGenders.girls.halloween"}):e===i.Qpm?s({imgPath:"mobile",labelClassName:"media-up-to-s-hidden",trPath:`tagGenders.${t}.${e}`,trArgs:{stripTags:!0}}):e===i.Ji7?s({imgPath:"camera-5",trPath:`tagGenders.${t}.${e}`}):e===i.oWt?r.createElement("span",null,n(`tagGenders.${t}.${e}`)):e===i.xR3?s({imgPath:"locked",trPath:"privateShows.bestForPrivates"}):l?r.createElement(r.Fragment,null,n("all")):r.createElement(A.Z,{messageId:`tagGenders.${t}.${e}`,elements:{desktop:r.createElement("span",{className:"media-up-to-m-hidden"}),mobile:r.createElement("span",{className:"media-after-m-hidden"})}})},I=({shouldScrollToTop:e,tag:t,amplitudeNavElement:l,amplitudePageSectionPrefix:a,isMobile:n,onClick:s,shouldPreventDefault:o,isNewBdsmCategoryEnabled:c})=>{let d=(0,r.useCallback)(e=>r.createElement(M,{isAllTag:e.isAllTag,tagId:e.id,primaryTagId:e.primaryTagId,isNewBdsmCategoryEnabled:c}),[c]);return r.createElement(k.T,{key:t.isAllTag?"all":t.url,tag:t,className:(0,u.AK)("btn-tags-inline-badge",{"is-mobile-tag":n}),onClick:s,renderLabel:d,shouldScrollToTop:e,amplitudeNavElement:l,amplitudePageSectionPrefix:a||_.CI.INDEX_BUBBLES,shouldPreventDefault:o,addingLocationState:function(e){if(e.id===i.ZSs)return{fromIndexPage:!0}}(t)})};var R=l(29413);let Z=({shouldWrapOnSmallScreen:e,onClick:t})=>{let{trans:l}=(0,p.QT)();return r.createElement(c.ZP,{className:(0,u.AK)("btn-categories",{"btn-categories_wrap-on-small":e}),onClick:t},r.createElement(R.Z,{img:"categories-2"}),r.createElement("span",{className:"btn-categories__label"},l("tagsFilterHeader")),r.createElement(R.Z,{img:"arrow-down-filled"}))},L={buttonEventEmitter:o.d2},D=(0,n.$j)(null,L)(({amplitudeNavElement:e,amplitudePageSectionPrefix:t,className:l="",contentStart:n=null,contentBeforeTags:o=null,shouldShowMore:_=!1,shouldShowCategoriesButton:k=!0,tags:A=[],mobileTags:S=[],variant:T="with-scroll",buttonEventEmitter:w})=>{let{trans:P}=(0,p.QT)(),M=(0,E.C)(N.tCH),R=(0,E.C)(C.Qo),L=(0,E.C)(C.x7),D=(0,E.C)(f.u),B=(0,E.C)(f.S),F=(0,v.T)(),O=(0,s.TH)(),x=(0,E.C)(y.M7),U=(0,E.C)(g.Km),[H,K]=(0,r.useState)({left:!1,right:!0}),V=(0,r.useCallback)(()=>{e&&w(e),e&&m.P4.show(b.Q,{amplitudeNavElement:e,shouldHideOnLinkClick:!1})},[w,e]),$=(0,r.useRef)((0,a.Z)(e=>{let{target:{scrollLeft:t,scrollWidth:l,clientWidth:a}}=e,r=t>10,n=l-10>=t+a,{left:s,right:i}=H;(r!==s||n!==i)&&K({left:r,right:n})},100));return((0,r.useEffect)(()=>()=>{$.current.cancel()},[$]),U)?null:r.createElement("div",{className:(0,u.AK)("tags-inline-badges",l,`tags-inline-badges-${T}`)},H.left&&r.createElement("div",{className:"tags-inline-badges-shade"}),r.createElement(d.Z,{libOptions:{suppressScrollY:!0,suppressScrollX:"with-scroll"!==T},onScrollX:$.current,onNativeScroll:$.current},r.createElement("div",{className:(0,u.AK)("tags-inline-badges-container")},n,k&&r.createElement(r.Fragment,null,r.createElement(Z,{shouldWrapOnSmallScreen:!0,onClick:V}),r.createElement("span",{className:(0,u.AK)("tags-inline-badges__divider","tags-inline-badges__divider_categories",{"is-mobile":S.length>0})})),o,A.map((l,a)=>r.createElement(I,{tag:l,amplitudeNavElement:e,amplitudePageSectionPrefix:t,shouldScrollToTop:"with-scroll"!==T,isMobile:!1,isNewBdsmCategoryEnabled:M,key:l.id||a})),D&&B.addLinksForGuests&&!x&&r.createElement(I,{tag:i.NCw[L],amplitudeNavElement:e,amplitudePageSectionPrefix:t,shouldScrollToTop:!1,isMobile:!0,onClick:()=>{F((0,h.sb)({state:{prevPathname:O.pathname}}))}}),S.map((l,a)=>r.createElement(I,{tag:l,amplitudeNavElement:e,amplitudePageSectionPrefix:t,shouldScrollToTop:"with-scroll"!==T,isMobile:!0,isNewBdsmCategoryEnabled:M,key:l.id||a})),_&&r.createElement(c.ZP,{className:(0,u.AK)("btn-tags-inline-badge","btn-tags-inline-badge-show-more"),to:`/tags/${R}`,type:"link"},P("showMore")))),H.right&&r.createElement("div",{className:"tags-inline-badges-shade"}))})},36374:(e,t,l)=>{l.d(t,{t:()=>m});var a=l(27378),r=l(97606),n=l(94380),s=l(88275),i=l(82311),o=l(31843),c=l(18753),d=l(43281);let m=({id:e,type:t})=>{let{trans:l}=(0,r.QT)(),m=(0,n.T)();return a.createElement(i.w,{id:e,type:t,style:"danger",text:l("messenger.massMessages.massMessageSentError"),buttonText:l("tryAgain"),onButtonClick:()=>{m((0,o.El)(d.i.settings)),m((0,s.yK)({key:c.x.error}))}})}},41102:(e,t,l)=>{l.d(t,{E6:()=>d,Mg:()=>u,NE:()=>p,S6:()=>c,eF:()=>m,k8:()=>b,yy:()=>g});var a=l(29955),r=l(91343),n=l(91368),s=l(18753),i=l(71021);let o=async(e,t)=>{if(t===i.n3.PHOTO){let t=await (0,n.Hk)(e);return t?{type:i.n3.PHOTO,url:t}:null}return{type:i.n3.VIDEO,uploadUrl:"",file:e}},c=(e,t)=>Promise.all(e.map(async e=>{let l=await o(e,t);return l?{clientId:(0,r.x0)(),isLoading:!0,type:t,loadingMedia:l,sendingMedia:null}:null})),d=(e,t)=>e.map((e,l)=>{let a=t[l];return{...a,isLoading:!1,sendingMedia:{type:i.n3.PHOTO,media:{...e.photo,urlThumb:a.loadingMedia.url}}}}),m=(e,t)=>e.map((e,l)=>({...t[l],sendingMedia:{type:i.n3.VIDEO,media:e},isLoading:!1})),u=e=>({sendingMedia:e,type:e.type,clientId:(0,r.x0)(),loadingMedia:null,isLoading:!1}),p=e=>{let t={videoIds:[],photoIds:[],audioIds:[],albumId:void 0};return e.forEach(e=>{if(e.sendingMedia)switch(e.sendingMedia.type){case i.n3.PHOTO:t.photoIds.push(e.sendingMedia.media.id);break;case i.n3.VIDEO:t.videoIds.push(e.sendingMedia.media.id);break;case i.n3.ALBUM:t.albumId=e.sendingMedia.media.id;break;case i.n3.AUDIO:t.audioIds.push(e.sendingMedia.media.id)}}),t},h=e=>{var t,l,a;return(null==e?void 0:null===(t=e.sendingMedia)||void 0===t?void 0:t.type)!==i.n3.PHOTO&&(null==e?void 0:null===(a=e.sendingMedia)||void 0===a?void 0:null===(l=a.media)||void 0===l?void 0:l.accessMode)!=="free"},v=e=>{var t,l,a,r;return(null==e?void 0:null===(t=e.sendingMedia)||void 0===t?void 0:t.type)!==i.n3.PHOTO&&(null==e?void 0:null===(a=e.sendingMedia)||void 0===a?void 0:null===(l=a.media)||void 0===l?void 0:l.accessMode)==="free"&&(null==e?void 0:null===(r=e.sendingMedia)||void 0===r?void 0:r.type)!==i.n3.AUDIO},E=(e,t)=>{var l;if(null===t||!h(e))return!1;let a=null==e?void 0:null===(l=e.sendingMedia)||void 0===l?void 0:l.media;return!!a&&"paid"===a.accessMode&&Number(a.cost)t=>{let l={};return"paid"!==t.accessMode||(t.attachedMediaList.find(v)&&(l[s.m.accessMode]=e("messenger.massMessages.form.errors.priceForFreeContent")),t.attachedMediaList.find(e=>E(e,t.cost))&&(l[s.m.cost]=e("messenger.massMessages.form.errors.moreThanCurrentPrice")),t.cost&&0!==t.attachedMediaList.length||(l.disableSubmit=!0)),t.messageText||(l.disableSubmit=!0),0===t.recipients.length&&(l.disableSubmit=!0),t.attachedMediaList.find(e=>e.type===i.n3.VIDEO&&null===e.sendingMedia)&&(l.disableSubmit=!0),l},b=(e,{trans:t})=>{let l={};return"paid"===e.accessMode&&0===e.attachedMediaList.length&&(l[s.m.attachedMedia]=t("messenger.massMessages.form.errors.paidMustContainMedia")),(0,a.Z)(l)?null:l}},18753:(e,t,l)=>{l.d(t,{m:()=>a,x:()=>r});let a={accessMode:"accessMode",cost:"cost",recipients:"recipients",messageText:"messageText",attachedMedia:"attachedMediaList"},r={success:"massMessageSentSuccess",error:"massMessageSentError"}},12132:(e,t,l)=>{l.d(t,{C:()=>p});var a=l(27378),r=l(48204),n=l(87766),s=l(2656),i=l(14151),o=l(54319),c=l(60278);let d={checkWebRTCAvailable:s.Tr},m="updatePlayerAvailabilityTimeoutId",u=3,p=(0,r.$j)(e=>({isH264Broadcast:(0,o.P1)(e),availablePlayerTypes:(0,c.hm)(e),availableBroadcastPlayerTypes:(0,c.bf)(e)}),d)(({availablePlayerTypes:e,availableBroadcastPlayerTypes:t,isH264Broadcast:l,checkWebRTCAvailable:r})=>{let s=(0,a.useCallback)(()=>{u++,r()},[r]);return(0,a.useEffect)(()=>{let a=!!(null==e?void 0:e[i.PLAYER_TYPES.WEBRTC]),r=!!(null==t?void 0:t[i.PLAYER_TYPES.WEBRTC]);if(n.Z.stopTimeout(m),!a||!r||!l){let e=2**u*1e3;n.Z.startTimeout(m,e,s)}},[t,e,l,s]),null})},52953:(e,t,l)=>{l.d(t,{w:()=>j,e:()=>q});var a=l(27378),r=l(53738),n=l(99973),s=l(95654),i=l(80092),o=l(35506),c=l(50557),d=l(186),m=l(94380),u=l(56534),p=l(2656),h=l(26983),v=l(15264),E=l(243),g=l(31029),b=l(75151),f=l(95366),C=l(34342),y=l(6558),N=l(84543),_=l(14151),k=l(43562);let A=()=>{let{hlsStreamUrl:e,hlsAutoStreamUrl:t,playerType:l,modelId:r,isHLSSmoothResolutionChangeEnabled:n,isBlurVideoOnPrivate:s,mmpState:{isLoading:i}}=(0,k.W)(),[o,c]=a.useState(""),d=a.useRef(!1),[m,u]=a.useState(!1),p=a.useCallback(()=>{d.current=!0,l===_.PLAYER_TYPES.HLS&&e&&(u(!1),c(e))},[l,e]);return a.useEffect(()=>{u(!1)},[r,l]),a.useEffect(()=>{d.current&&(u(!1),d.current=!1),n&&!s?c(t||""):c(e||"")},[e,t,n,s]),a.useEffect(()=>{if(i)return()=>{u(!0)}},[i]),{hlsStreamUrlLocal:o,shouldDelayLoader:m,handleResolutionNotFoundRef:p}};var S=l(76482);let T=e=>{let{broadcastConfig:t,currentUserId:l,isCameraDisabled:r,isInCam2Cam:n,isMicMuted:s,playerType:i,tempUseSafariC2CFix:o}=(0,k.W)(),[c,d]=a.useState(!1),[m,u]=a.useState(!0),p=a.useCallback((0,S.Z)(e=>{d(e)},1e3),[d]);return a.useEffect(()=>{u(!0)},[i]),a.useEffect(()=>{let a=o?e:m;p(!!(n&&t&&l&&!a&&(!r||!s)))},[n,t,l,m,e,r,s]),a.useEffect(()=>{e||u(!1)},[e]),c};var w=l(25304),P=l(20717),M=l(60278);let I=({resolutions:e,playerType:t,playerRef:l,setStartResolutionName:r})=>{let{hlsConfig:s,isHLSSmoothResolutionChangeEnabled:i,streamQuality:o}=(0,k.W)(),c=(0,m.T)(),d=a.useRef(-1);a.useEffect(()=>{var a,m,u;if(!e.length)return;let p=null===(a=(0,P.en)(e[0].url))||void 0===a?void 0:a.hostname;if(p){let e=p.indexOf("hls-"),t=(null===(m=p.split(".")[0])||void 0===m?void 0:m.substring(e))||"";c((0,w.M3)(t))}let h=d.current,v=n.BROWSER_CAPABILITIES.isMobile?s.startMobileResolution:s.startDesktopResolution,E=(0,M.Fm)(v,e.map((e,t)=>({value:parseInt(e.name,10),index:t}))).index||0;if(h){let t=Array.from(e).sort((e,t)=>t.bitrate-e.bitrate)[0],l=h>=t.bitrate,a=o&&i?e.findIndex(e=>e.name===o.presetQuality):-1,r=l?e.findIndex(e=>e.bitrate===t.bitrate):e.findIndex(e=>e.bitrate+1e5>=h&&h>=e.bitrate-1e5);if(a>=0)E=a;else if(r>=0)E=r;else{let t=e.reduce((e,t,l)=>h?h<=t.bitrate&&(!e||h>=t.bitrate)?{level:l,bitrate:t.bitrate}:e:null,null);E=(null==t?void 0:t.level)||E}}if(E||0===E||(E=e.findIndex(e=>`${e.height}p`===_.cC)),null!==E){let a=e[E].name;r(a),t===_.PLAYER_TYPES.HLS&&(null===(u=l.current)||void 0===u||u.setResolutionByName(a))}},[t,l,c,s,e])};var R=l(68479),Z=l(74178),L=l(20507),D=l(58320),B=l(1210),F=l(23489),O=l(14445);let x=({player:e,mmpModule:t})=>(!function({instance:e,mmpModule:t}){var l,o;let{abTests:c,hlsStreamUrl:d,initialResolution:u,isFastStartEnabled:h,isHLSSmoothResolutionChangeEnabled:v,modelStatus:E,isInCam2Cam:S,isNewWebRTCAbrEnabled:w,metricsCollectorEndpoint:P,metricsProjectId:M,newWebrtcConfig:x,overridenHLSConfig:U,isOverridenHLSConfigUsed:H,playConfig:K,playerType:V,sendPublisherReport:$,showAvailabilityType:W,streamQuality:z,volume:Q,isViewCamPage:j,shouldRenderPlayer:G,streamName:Y,sendCustomRefererHeader:J,metricsUserId:X,timeOrigin:ee}=(0,k.W)(),[et,el]=a.useState(u.value),{activePlayerIndex:ea,setActivePlayerParams:er}=(0,a.useContext)(q),{videoElementRef:en,rootElementRef:es}=(0,g.N)(ea),ei=(0,s.C)(i.lH),eo=(0,s.C)(L.M),ec=(0,s.C)(D.PW),ed=(0,O.yx)(),{debugContainerNode:em}=(0,a.useContext)(q),eu=(0,m.T)(),ep=a.useCallback(e=>{eu((0,F.dI)(e.width,e.height))},[eu]),eh=a.useCallback(e=>{eu((0,b.gi)({error:e.error.message,playerType:e.playerType}))},[eu]),[ev,eE]=a.useState(null==K?void 0:null===(l=K.preset)||void 0===l?void 0:l.presetQuality),eg=a.useMemo(()=>V===_.PLAYER_TYPES.WEBRTC?t.EPlayerType.WEBRTC:(0,R.JV)(ei)?t.EPlayerType.HLS:t.EPlayerType.NATIVE,[t,V,ei]);a.useEffect(()=>{eg===t.EPlayerType.WEBRTC&&eu((0,p.G4)(B.p.WEBRTC_RISTRETTO)),eu((0,p.G4)(eg===t.EPlayerType.NATIVE?B.p.NATIVE:B.p.DOPPIO))},[eu,t.EPlayerType,eg]);let eb=a.useMemo(()=>{var e;return(null==K?void 0:null===(e=K.preset)||void 0===e?void 0:e.type)===f.rdN},[K]);a.useEffect(()=>{var e,t;(null==K?void 0:null===(e=K.preset)||void 0===e?void 0:e.name)&&(null===(t=K.preset)||void 0===t?void 0:t.name)!==ev&&eE(K.preset.type===f.pgl?f.pgl:K.preset.presetQuality||K.preset.quality)},[ev,K]);let ef=a.useMemo(()=>({isMobile:n.BROWSER_CAPABILITIES.isMobile,streamType:W,isFastStart:!0,streamStatus:E}),[W,E]),eC=a.useMemo(()=>{var e;let t=V===_.PLAYER_TYPES.WEBRTC,l=t?"video-element web-rtc-video-element":"video-element";return{autoplay:!0,persistent:!0,establishWSOnStart:t,webRTCConfig:{abrControllerConfig:w?{isNewAbr:!0,...x}:{isNewAbr:!1},streamDispatcherConfig:{startResolution:null==K?void 0:null===(e=K.preset)||void 0===e?void 0:e.presetQuality,isFastStartEnabled:h},broadcastDispatcherConfig:{enableBackendStreamQualityRecognition:$},peerConnectionConfig:{playoutDelayHint:(null==K?void 0:K.playoutDelayHint)||void 0}},hlsConfig:{playlistLoader:H?{partHoldBack:U.hlsPartHoldback,additionalStartParts:U.hlsAdditionalStartParts,sendCustomRefererHeader:J}:{sendCustomRefererHeader:J},bufferStallsDetector:{bufferAmountToDetectStall:v?.3:void 0},resolutionsManager:{useFallbackResolutionIfResolutionNotFound:!v&&void 0,recreateSourceBufferOnResolutionChange:v&&n.BROWSER_CAPABILITIES.safari}},videoControllerConfig:{rootElement:es.current,minimalPossibleVideoDimension:50,canvasElementClassName:l,videoElementClassName:l,isNonAnonymous:!0,isRemote:!0,autoplay:!0}}},[K,V,et,h,$,J,es.current]);(0,a.useEffect)(()=>{S||eu((0,p.UK)(!1))},[S,eu]);let{handleResolutionNotFoundRef:ey,hlsStreamUrlLocal:eN,shouldDelayLoader:e_}=A(),ek=a.useMemo(()=>eo||ec,[eo,ec]),eA=a.useMemo(()=>G?{hlsStreamUrl:eN,nativeStreamUrl:d||"",WebRTCStreamId:Y&&`${Y}`,WebRTCQuality:ev}:{hlsStreamUrl:"",nativeStreamUrl:"",WebRTCStreamId:""},[G,eN,d,Y,ev]),eS=(0,a.useMemo)(()=>({onUpdatePlayerResolution:ep,onError:eh,onResolutionNotFound:ey,HLSStreamUrl:eA.hlsStreamUrl,NativeStreamURL:eA.nativeStreamUrl,WebRTCStreamId:eA.WebRTCStreamId,WebRTCSignallingUrl:null==K?void 0:K.streamUrl,WebRTCACLToken:null==K?void 0:K.token,playerType:eg,isABREnabled:eb,WebRTCQuality:eA.WebRTCQuality,quality:v&&(0,R.JV)(ei)?z.presetQuality:void 0,playerConfig:eC,abrPresets:ek,volume:Q,metricsProjectId:M,metricsCollectionEndpoint:P,appKey:"callbackApp",abTests:c,additionalMetricFields:ef}),[eg,c,ef,eh,ey,ep,eb,v,P,M,eC,null==K?void 0:K.streamUrl,null==K?void 0:K.token,ek,ei,z.presetQuality,Q,eA.hlsStreamUrl,eA.nativeStreamUrl,eA.WebRTCStreamId,eA.WebRTCQuality]),{playerRef:eT,abrPolicy:ew,resolutions:eP,videoPlaybackState:eM,isLoading:eI,isPlaying:eR,isErrored:eZ,isModuleLoading:eL,playbackStartType:eD}=e,eB=(0,a.useMemo)(()=>({[ed]:()=>{var e;null===(e=eT.current)||void 0===e||e.sendCustomEvent("watchClearTime")}}),[Y,ed]);(0,y.h)({onWatchClearTime:eB}),(0,a.useEffect)(()=>{j&&er(eS)},[eS,j]),I({playerRef:eT,playerType:V,resolutions:eP,setStartResolutionName:el});let eF=T(eL),eO=(0,r.Z)(()=>{var e;let t=V===_.PLAYER_TYPES.WEBRTC?"video-element web-rtc-video-element":"video-element";null===(e=eT.current)||void 0===e||e.setConfig({videoControllerConfig:{rootElement:es.current,minimalPossibleVideoDimension:50,canvasElementClassName:t,videoElementClassName:t,isNonAnonymous:!0,isRemote:!0,autoplay:!0}})});a.useEffect(()=>{eT.current&&(ee&&eT.current.setMetricsTimeOrigin&&eT.current.setMetricsTimeOrigin(ee),eT.current.setMetricsUserId&&eT.current.setMetricsUserId(X))},[eT.current]),a.useEffect(()=>{en.current&&(en.current.disableRemotePlayback=!0)},[en.current]),a.useEffect(()=>{em&&eT.current&&em.appendChild(eT.current.debugPanelRootContainer)},[em,eT]),a.useEffect(()=>{(0,N.p)(ew,Z.jI)&&eu((0,p.LV)(ew))},[eu,ew]),a.useEffect(()=>{"auto"===eD&&eu((0,C.u)())},[eu,eD]),a.useEffect(()=>{G&&eO()},[G,es.current]),a.useEffect(()=>{eu((0,p.L$)({isLoading:eI,isErrored:eZ,isPlaying:eR,videoPlaybackState:eM,shouldDelayLoader:e_,shouldRenderCam2CamBroadcast:eF,isABREnabled:(null==K?void 0:K.preset.type)===f.rdN}))},[eI,eZ,eR,eM,e_,eF,null==K?void 0:null===(o=K.preset)||void 0===o?void 0:o.type])}({instance:e,mmpModule:t}),null);var U=l(40671);function H({index:e,playerParams:t,mmpModule:l,adaptiveQuality:n=!1}){let[o,c]=(0,a.useState)(!1),{videoElementRef:d}=(0,g.N)(e),{quality:m,setQuality:u}=function({playerParams:e,adaptiveQuality:t}){let l=(0,s.C)(i.Ko),r=(0,s.C)(i.lH),[n,o]=(0,a.useState)(void 0);return{quality:(0,a.useMemo)(()=>{if(l&&(0,R.JV)(r))return t?n:e.quality},[t,l,e.quality,n,r]),setQuality:o}}({playerParams:t,adaptiveQuality:n}),{setPlayerState:p,activePlayerIndex:v}=(0,a.useContext)(q),E=l.useMouflonPlayerV2({...t,quality:m,videoElement:d.current||void 0});!function({instance:e,adaptiveQuality:t,isActive:l,setQuality:r}){(0,a.useEffect)(()=>{if(e.resolutions.length&&t){if(l)r("720p");else{let t=(0,h.Z)(e.resolutions,e=>e.height);t&&"source"!==t.name&&r(t.name)}}},[e.resolutions,l,t,r])}({instance:E,adaptiveQuality:n,isActive:(0,a.useMemo)(()=>v===e,[v,e]),setQuality:u});let{playerRef:b}=E;return(0,a.useEffect)(()=>{p(e,{videoPlaybackState:E.videoPlaybackState,isLoading:E.isLoading,isPlaying:E.isPlaying,isErrored:E.isErrored})},[e,E.videoPlaybackState,E.isLoading,E.isPlaying,E.isErrored,p]),{stop:(0,r.Z)(()=>{var e;null===(e=b.current)||void 0===e||e.stop(),c(!1)}),start:(0,r.Z)(()=>{if(!o){var e;null===(e=b.current)||void 0===e||e.start(),c(!0)}}),instance:E,wasPlayed:o,setQuality:u}}let K=({mmpModule:e})=>{let[t,l]=(0,a.useState)(null),n=(0,m.T)(),i=(0,s.C)(D.H9),c=(0,s.C)(v.qH),d=(0,s.C)(E.mT),p=(0,s.C)(u.S),h=d&&!c,{playersParams:g,activePlayerIndex:b}=(0,a.useContext)(q),f=H({index:0,mmpModule:e,playerParams:g[0],adaptiveQuality:p.useQualitySwitcher&&c}),C=H({index:1,mmpModule:e,playerParams:g[1],adaptiveQuality:p.useQualitySwitcher&&c}),y=H({index:2,mmpModule:e,playerParams:g[2],adaptiveQuality:p.useQualitySwitcher&&c}),N=(0,a.useMemo)(()=>[f,C,y],[f,C,y]),k=(0,a.useMemo)(()=>N[b],[N,b]),A=(0,r.Z)(()=>{o.ZP.debug("stopAllPlayers"),N.forEach(e=>{e.stop()})}),S=(0,r.Z)(()=>{N.forEach((e,t)=>{t!==b&&(o.ZP.debug("stopInactivePlayer",t),e.stop())})}),T=(0,r.Z)(()=>{o.ZP.debug("startAllPlayers"),N.forEach(e=>{e.start()})}),w=(0,r.Z)(()=>{o.ZP.debug("startActivePlayer"),k.start()}),P=(0,r.Z)(()=>{c?(l(i),n((0,U.c)(_._5.OTHER,"auto"))):!h&&t&&n((0,U.c)(t,"auto"))}),M=(0,r.Z)(()=>{c&&("visible"!==document.visibilityState?A():T())});return((0,a.useEffect)(()=>(document.addEventListener("visibilitychange",M),()=>{document.removeEventListener("visibilitychange",M)}),[M]),(0,a.useEffect)(()=>{P()},[P,c,h]),(0,a.useEffect)(()=>{h||c?c?T():(S(),w()):A()},[h,c,S,A,T,w]),h)?a.createElement(x,{player:k.instance,mmpModule:e}):null};var V=l(61326);let $=({mmpModule:e})=>{var t,l;let{abTests:r,hlsStreamUrl:o,initialResolution:c,isFastStartEnabled:d,isHLSSmoothResolutionChangeEnabled:u,modelStatus:h,isInCam2Cam:v,isNewWebRTCAbrEnabled:E,metricsCollectorEndpoint:S,metricsProjectId:w,newWebrtcConfig:P,overridenHLSConfig:M,isOverridenHLSConfigUsed:x,playConfig:U,playerType:H,sendPublisherReport:K,showAvailabilityType:V,streamQuality:$,volume:W,isViewCamPage:z,shouldRenderPlayer:Q,streamName:j,sendCustomRefererHeader:G,metricsUserId:Y,timeOrigin:J,isPlayerAvailable:X,isLivePlaybackBlockedByMedia:ee,setIceServersForFirefox:et}=(0,k.W)(),[el,ea]=a.useState(c.value),[er,en]=a.useState(!1),{videoElementRef:es,rootElementRef:ei}=(0,g.N)(0),eo=(0,s.C)(i.lH),ec=(0,s.C)(L.M),ed=(0,s.C)(D.PW),em=(0,O.yx)(),{debugContainerNode:eu}=(0,a.useContext)(q),ep=(0,m.T)(),eh=a.useCallback(e=>{ep((0,F.dI)(e.width,e.height))},[ep]),ev=a.useCallback(e=>{ep((0,b.gi)({error:e.error.message,playerType:e.playerType}))},[ep]),[eE,eg]=a.useState(null==U?void 0:null===(t=U.preset)||void 0===t?void 0:t.presetQuality),eb=a.useMemo(()=>H===_.PLAYER_TYPES.WEBRTC?e.EPlayerType.WEBRTC:(0,R.JV)(eo)?e.EPlayerType.HLS:e.EPlayerType.NATIVE,[e,H,eo]);a.useEffect(()=>{eb===e.EPlayerType.WEBRTC&&ep((0,p.G4)(B.p.WEBRTC_RISTRETTO)),ep((0,p.G4)(eb===e.EPlayerType.NATIVE?B.p.NATIVE:B.p.DOPPIO))},[ep,e.EPlayerType,eb]);let ef=a.useMemo(()=>{var e;return(null==U?void 0:null===(e=U.preset)||void 0===e?void 0:e.type)===f.rdN},[U]);a.useEffect(()=>{var e,t;(null==U?void 0:null===(e=U.preset)||void 0===e?void 0:e.name)&&(null==U?void 0:null===(t=U.preset)||void 0===t?void 0:t.name)!==eE&&eg(U.preset.type===f.pgl?f.pgl:U.preset.presetQuality||U.preset.quality)},[eE,U]);let eC=a.useMemo(()=>({isMobile:n.BROWSER_CAPABILITIES.isMobile,streamType:V,isFastStart:!0,streamStatus:h}),[V,h]),ey=a.useMemo(()=>{var e;let t=H===_.PLAYER_TYPES.WEBRTC,l=t?"video-element web-rtc-video-element":"video-element";return{autoplay:!0,persistent:!0,establishWSOnStart:t,webRTCConfig:{abrControllerConfig:E?{isNewAbr:!0,...P}:{isNewAbr:!1},streamDispatcherConfig:{startResolution:null==U?void 0:null===(e=U.preset)||void 0===e?void 0:e.presetQuality,isFastStartEnabled:d},broadcastDispatcherConfig:{enableBackendStreamQualityRecognition:K},peerConnectionConfig:{playoutDelayHint:(null==U?void 0:U.playoutDelayHint)||void 0,setIceServersForFirefox:et}},hlsConfig:{playlistLoader:x?{partHoldBack:M.hlsPartHoldback,additionalStartParts:M.hlsAdditionalStartParts,sendCustomRefererHeader:G}:{sendCustomRefererHeader:G},bufferStallsDetector:{bufferAmountToDetectStall:u?.3:void 0},resolutionsManager:{useFallbackResolutionIfResolutionNotFound:!u&&void 0,recreateSourceBufferOnResolutionChange:u&&n.BROWSER_CAPABILITIES.safari}},videoControllerConfig:{rootElement:ei.current,minimalPossibleVideoDimension:50,canvasElementClassName:l,videoElementClassName:l,isNonAnonymous:!0,isRemote:!0,autoplay:!0}}},[U,H,el,d,K,G,ei.current]);(0,a.useEffect)(()=>{v||ep((0,p.UK)(!1))},[v,ep]);let{handleResolutionNotFoundRef:eN,hlsStreamUrlLocal:e_,shouldDelayLoader:ek}=A(),eA=a.useMemo(()=>ec||ed,[ec,ed]),eS=a.useMemo(()=>Q?{hlsStreamUrl:e_,nativeStreamUrl:o||"",WebRTCStreamId:j&&`${j}`,WebRTCQuality:eE}:{hlsStreamUrl:"",nativeStreamUrl:"",WebRTCStreamId:""},[Q,e_,o,j,eE]),{playerRef:eT,abrPolicy:ew,resolutions:eP,videoPlaybackState:eM,isLoading:eI,isPlaying:eR,isErrored:eZ,isModuleLoading:eL,playbackStartType:eD}=e.useMouflonPlayerV2({onUpdatePlayerResolution:eh,onError:ev,onResolutionNotFound:eN,videoElement:es.current||void 0,HLSStreamUrl:eS.hlsStreamUrl,NativeStreamURL:eS.nativeStreamUrl,WebRTCStreamId:eS.WebRTCStreamId,WebRTCSignallingUrl:null==U?void 0:U.streamUrl,WebRTCACLToken:null==U?void 0:U.token,playerType:eb,isABREnabled:ef,WebRTCQuality:eS.WebRTCQuality,quality:u&&(0,R.JV)(eo)?$.presetQuality:void 0,playerConfig:ey,abrPresets:eA,volume:W,metricsProjectId:w,metricsCollectionEndpoint:S,appKey:"callbackApp",abTests:r,additionalMetricFields:eC}),eB=(0,a.useMemo)(()=>({[em]:()=>{var e;null===(e=eT.current)||void 0===e||e.sendCustomEvent("watchClearTime")}}),[j,em]);(0,y.h)({onWatchClearTime:eB}),a.useEffect(()=>{en(!1)},[null==U?void 0:U.streamName]),a.useEffect(()=>{eR&&en(!0)},[eR]),I({playerRef:eT,playerType:H,resolutions:eP,setStartResolutionName:ea});let eF=T(eL);return a.useEffect(()=>{eT.current&&!er&&(J&&eT.current.setMetricsTimeOrigin&&eT.current.setMetricsTimeOrigin(J),eT.current.setMetricsUserId&&eT.current.setMetricsUserId(Y),eT.current.start())},[eT.current]),a.useEffect(()=>{eu&&eT.current&&eu.appendChild(eT.current.debugPanelRootContainer)},[eu,eT]),a.useEffect(()=>{es.current&&(es.current.disableRemotePlayback=!0)},[es.current]),a.useEffect(()=>{(0,N.p)(ew,Z.jI)&&ep((0,p.LV)(ew))},[ep,ew]),a.useEffect(()=>{"auto"===eD&&ep((0,C.u)())},[ep,eD]),a.useEffect(()=>{var e,t;Q&&z&&X&&!ee?null===(t=eT.current)||void 0===t||t.start():null===(e=eT.current)||void 0===e||e.stop()},[Q,z,er,X,ee]),a.useEffect(()=>{ep((0,p.L$)({isLoading:eI,isErrored:eZ,isPlaying:eR,videoPlaybackState:eM,shouldDelayLoader:ek,shouldRenderCam2CamBroadcast:eF,isABREnabled:(null==U?void 0:U.preset.type)===f.rdN}))},[eI,eZ,eR,eM,ek,eF,null==U?void 0:null===(l=U.preset)||void 0===l?void 0:l.type]),null},W=()=>{let{shouldUseDetachedMMP:e}=(0,k.W)(),t=(0,m.T)(),l=(0,s.C)(u.u),{mmpModule:r}=(0,V.V)({onLoaded:({localModuleLoaderWasUsed:e,version:l})=>{t((0,p.pF)({playerWasLoadedFromExternalSource:!e,playerVersion:e?void 0:l,isMMP:!0}))},isEnabled:e}),n=a.useCallback((e,l)=>{t((0,o.t$)("error","playerFailed",{error:e.toString(),errorInfo:l,isMMP:!0}))},[t]);return a.createElement(c.s,null,e&&r&&a.createElement(d.Z,{onError:n},l?a.createElement(K,{mmpModule:r}):a.createElement($,{mmpModule:r})))};var z=l(80262);let q=a.createContext(null);function Q(){let e=(0,s.C)(i.Ko),t=(0,s.C)(i.lH),[l,o]=a.useState({HLSStreamUrl:void 0,playerType:(0,R.JV)(t)?"hls":"native",isABREnabled:!0,volume:0,playerConfig:{autoplay:!0,persistent:!0,hlsConfig:{bufferStallsDetector:{bufferAmountToDetectStall:e?.3:void 0},resolutionsManager:{useFallbackResolutionIfResolutionNotFound:!e&&void 0,recreateSourceBufferOnResolutionChange:e&&n.BROWSER_CAPABILITIES.safari}}}}),[c,d]=(0,a.useState)({isPlaying:!1,isLoading:!1,isErrored:!1});return{playerParams:l,setPlayerParams:(0,r.Z)(e=>{o(t=>({...e,HLSStreamUrl:e.HLSStreamUrl||t.HLSStreamUrl}))}),state:c,setPlayerState:d}}let j=({children:e})=>{let[t,l]=(0,a.useState)(0),[n,s]=(0,a.useState)(null),i=Q(),o=Q(),c=Q(),d=(0,a.useMemo)(()=>[i,o,c],[i,o,c]),m=(0,r.Z)((e,t)=>{d[e].setPlayerParams(t)}),u=(0,r.Z)((e,t)=>{d[e].setPlayerState(t)}),p=(0,r.Z)(e=>{d[t].setPlayerParams(e)}),h=(0,r.Z)(e=>{l(e),z.Z.setGlobalVideoElementIndex(e)}),v=(0,a.useMemo)(()=>({playersParams:d.map(e=>e.playerParams),activePlayerIndex:t,setActivePlayerIndex:h,setActivePlayerParams:p,setPlayerParams:m,setPlayerState:u,playersState:d.map(e=>e.state),debugContainerNode:n,setDebugContainerNode:s}),[d,t,h,p,m,u,n,s]);return a.createElement(q.Provider,{value:v},a.createElement(W,null),e)}},31029:(e,t,l)=>{l.d(t,{N:()=>d,z:()=>o});var a=l(27378),r=l(87937);let n=a.createRef(),s=a.createRef(),i=[null,null,null],o=e=>i[e]||(i[e]=document.createElement("video"),i[e]),c=[a.createRef(),a.createRef(),a.createRef()],d=e=>(a.useEffect(()=>{(0,r.C5)()&&(c[e].current=o(e))},[]),{rootElementRef:n,videoElementRef:c[e],debugContainerRef:s})},43562:(e,t,l)=>{l.d(t,{W:()=>E});var a=l(27378),r=l(33491),n=l(95654),s=l(243),i=l(50399),o=l(80092),c=l(98459),d=l(12278),m=l(20507),u=l(58320),p=l(60278),h=l(30399),v=l(79561);let E=()=>{let e=(0,n.C)(h.MV),t=(0,n.C)(h.D_),l=(0,n.C)(h.yY),E=(0,n.C)(u.Aq),g=(0,n.C)(u.Cj),{playConfig:b,broadcastConfig:f}=(0,n.C)(u.df),C=(0,n.C)(m.M),{metricsCollectorEndpoint:y,metricsProjectId:N,tempUseSafariC2CFix:_}=(0,n.C)(u.I4),k=(0,n.C)(c.Aj),A=(0,n.C)(u.nc),S=(0,n.C)(u.jq),T=(0,n.C)(u.CF),w=(0,n.C)(v.UP),P=(0,n.C)(r.TM),M=(0,n.C)(d.rc),I=(0,n.C)(u.fM),R=(0,n.C)(p.Jl),Z=(0,n.C)(u.Bl),L=(0,n.C)(u.zO),D=(0,n.C)(o.gn),B=(0,n.C)(v.Fx),F=(0,n.C)(u.Nt),O=(0,n.C)(u.ou),x=(0,n.C)(u.Vh),U=(0,n.C)(o.mV),H=(0,n.C)(u.Cj),K=(0,n.C)(o.Ko),V=(0,n.C)(u.bT),$=(0,n.C)(u.bD),W=(0,n.C)(s.mT),z=(0,n.C)(v.I),q=(0,n.C)(u.Ju),Q=(0,n.C)(p.UY),j=(0,n.C)(m.I),G=(0,n.C)(u.uN),Y=(0,n.C)(u.$C),J=(0,n.C)(v.gU),X=(0,n.C)(v.Mo),ee=(0,n.C)(d.rc),et=(0,n.C)(d.PY);return{modelName:e,modelId:t,modelStatus:l,playerType:E,initialResolution:g,playConfig:b,broadcastConfig:f,webRTCABRPresets:C,metricsCollectorEndpoint:y,metricsProjectId:N,abTests:k,hlsConfig:A,volume:S,isInCam2Cam:w,isBroadcastExpandedInCam2Cam:P,currentUserId:M,isCameraDisabled:I,isMicMuted:R,isFastStartEnabled:Z,isBackgroundThrottle:L,isNewWebRTCAbrEnabled:D,showAvailabilityType:B,newWebrtcConfig:F,sendPublisherReport:O,overridenHLSConfig:x,isOverridenHLSConfigUsed:U,streamQuality:H,isHLSSmoothResolutionChangeEnabled:K,hlsStreamUrl:V,hlsAutoStreamUrl:$,isViewCamPage:W,shouldRenderPlayer:z,shouldUseDetachedMMP:q,mmpState:Q,streamName:j,sendCustomRefererHeader:G,isBlurVideoOnPrivate:Y,tempUseSafariC2CFix:_,metricsUserId:a.useMemo(()=>ee?2*ee:2*Math.abs(Number(et))+1,[ee,et]),timeOrigin:(0,n.C)(i.wf),isPlayerAvailable:J,isLivePlaybackBlockedByMedia:X,setIceServersForFirefox:T}}},61326:(e,t,l)=>{l.d(t,{V:()=>o});var a=l(27378),r=l(87937),n=l(95654),s=l(69497),i=l(58320);let o=({onLoaded:e,isEnabled:t}={})=>{let[l,o]=a.useState(null),c=a.useRef(!1),d=(0,n.C)(i.u4);return a.useEffect(()=>{(0,r.C5)()&&t&&!c.current&&(0,s.K5)({isExternalSourceEnabled:d.isEnabled,externalVersion:d.version,externalSourceOrigin:d.sourceOrigin,maxAttempts:d.maxAttemptsToLoad}).then(({module:t,localModuleLoaderWasUsed:l})=>{c.current=!0,t&&(o(t),e&&e({module:t,localModuleLoaderWasUsed:l,version:d.version}))})},[t]),{mmpModule:l}}},35169:(e,t,l)=>{l.d(t,{c:()=>a});let a="PurchaseTokensModalLazy"},24933:(e,t,l)=>{l.d(t,{f:()=>i});var a=l(27378),r=l(98655),n=l(98846),s=l(35169);let i=(0,n.n7)({resolved:{},chunkName:()=>"PurchaseTokensModal",isReady(e){let t=this.resolve(e);return!0===this.resolved[t]&&!!l.m[t]},importAsync:()=>l.e(822).then(l.bind(l,22686)),requireAsync(e){let t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){return l(this.resolve(e))},resolve:()=>22686},{ssr:!1,fallback:a.createElement(r.c,null),displayName:s.c})},3644:(e,t,l)=>{l.d(t,{D:()=>o,p:()=>s});var a=l(99973),r=l(20717),n=l(68358);let s=(e=2)=>{let t=`/loader.html?version=${e}`;if(a.BROWSER_CAPABILITIES.android&&!a.BROWSER_CAPABILITIES.isPWA){let e=window.open("",n._6,"_blank");if(!e)return;e.location.href=(0,r.EX)(t).href;return}window.open(t,n._6,"_blank")},i=(e,t)=>t.trans(e),o=({i18n:e,method:t,render:l=i})=>{let a=`buyTokens.methods.${t.name}`;return!e.hasTranslation(a)&&t.displayName?t.displayName:l(a,e)}},15258:(e,t,l)=>{l.d(t,{U:()=>u,x:()=>d});var a=l(80406),r=l(80092),n=l(68358),s=l(45216),i=l(23766);let o=e=>new Set(["card","card2","cardUnionPay","cardRupay"]).has(e.name),c=e=>!n.Lj.has(e.purchaseType)&&!n.FV.has(e.type)&&e.purchaseType!==n.BW.CARD_VERIFICATION,d=e=>{let t=(0,s.XR)(e),l=(0,s.gn)(e);return(0,r.fR)(e)&&c(l)&&o(t)},m=(e,t,{isFreeMembershipAccepted:l,isXSellAvailable:a})=>{let r;for(let i of Array.isArray(e.packages)?e.packages:Object.values(e.packages)){var n;if(l&&!(a&&(0,s.F1)(i)))continue;if(i.tokensSum===t.tokensSum)return i;let e=null!==(n=null==r?void 0:r.tokensSum)&&void 0!==n?n:0;i.tokensSume&&(r=i)}return r},u=(0,a.P1)([s.Re,s.XR,s.gn,s.OU,i.NC],(e,t,l,a,r)=>{let n=["giftcard","wire"],s={};return e.forEach(e=>{if(e.name===t.name||n.includes(e.name))return;let i=m(e,l,{isFreeMembershipAccepted:r,isXSellAvailable:a});i&&(s[e.name]={method:e,package:i})}),s})},43338:(e,t,l)=>{l.d(t,{z:()=>I});var a=l(27378),r=l(95654),n=l(28318),s=l(18524),i=l(57999),o=l(40347),c=l(40650),d=l(84423),m=l(95406),u=l(24004),p=l(93409),h=l(8031),v=l(94380),E=l(60673),g=l(68020),b=l(52729),f=l(57842),C=l(35714),y=l(80207),N=l(57262);let _="handy_code",k=3*h.Jk,A=()=>{let e=(0,r.C)(y.sT),t=(0,r.C)(g.VK),l=(0,r.C)(g.je),n=(0,m.Z)(()=>p.ZP.get(_)),[h,A]=(0,a.useState)(n),S=(0,v.T)(),{apiBaseUrl:T}=l||{},{authToken:w,isExternal:P}=e||{};return(0,a.useEffect)(()=>{h&&S((0,N.XT)({data:{authToken:h,isExternal:!0}}))},[S,h]),(0,a.useEffect)(()=>(u._4.create(u.tJ.HANDY,({data:e})=>{let{type:t,payload:l}=e||{};t===u.i9&&(A(""),S((0,N.vU)({type:"handy"}))),t===u.Nb&&A(String(null==l?void 0:l.authToken))}),()=>{u._4.close(u.tJ.HANDY)}),[S]),(0,a.useEffect)(()=>{if(!w||!T)return;let e=!1,l=0;return C.j.init({apiBaseUrl:T,authToken:w,onListenToyConnection:a=>{S((0,N.RG)({isConnected:a,type:"handy"}));let r=(!P&&!e||!!l)&&a;if(a)e||P||(d.P4.remove(i.y),S((0,o.uN)(c.dA.CONNECT_USER_TOY_MODAL_HANDY_CODE,w)),S((0,E.sX)()),u._4.report(u.tJ.HANDY,{type:u.Nb,payload:{authToken:w}})),e=!0,l=0,p.ZP.set("essential",_,w,{maxAge:k,domain:`.${t}`});else{let t=(l+=1)>=5;e&&1===l&&S((0,f.ao)("handy","userHandyConnectError")),e||S((0,f.ao)("handy","userHandyError")),(!e||t)&&(s.Z.error("Handy user toy disconnected"),C.j.destroy("technicalIssue"),S((0,N.XT)({data:{authToken:""}})))}r&&S((0,b.c0)({messageId:"notifications.userToyPairedByType",type:"success",key:"userToyConnection",params:{userToyType:"handy"}}))},onCommandSended:()=>{p.ZP.set("essential",_,w,{maxAge:k,domain:`.${t}`})},onDestroyed:l=>{p.ZP.delete(_,{domain:`.${t}`}),u._4.report(u.tJ.HANDY,{type:u.i9}),"reinit"!==l&&e&&!P&&S((0,E.gZ)({disconnectedBy:l}))}}),()=>{C.j.destroy("user")}},[w,T,P,S,t]),null};var S=l(64741),T=l(65776),w=l(24214),P=l(65103);let M=()=>{let e=(0,r.C)(P.n5),t=(0,r.C)(y.EV),l=(0,r.C)(g.Co),n=(0,r.C)(y.MQ),o=(0,r.C)(y.UH),c=(0,r.C)(y.Pr);(0,w.$)();let m=(0,v.T)();return(0,a.useEffect)(()=>{"waitingForPairing"===o&&c&&m((0,f.jj)({type:"lovense"}))},[m,c,o]),(0,a.useEffect)(()=>{e&&n&&t&&l&&(async()=>{await T.Z.init({userId:e,authToken:n,scriptUrl:t,platform:l,isDebug:(0,S.JQ)()});let a=!1,r=!1;T.Z.onListenToyConnection((e,t)=>{m((0,N.RG)({isConnected:e,type:"lovense"})),!e&&T.Z.getHasSuccessfulConnection()&&(s.Z.error("Lovense user toy disconnected",t),m((0,f.ao)("lovense","userToyErrorByType")),a=!0),e&&a&&(m((0,b.c0)({messageId:"notifications.userToyPairedByType",type:"success",key:"userToyConnection",params:{userToyType:"lovense"}})),a=!1),e&&!r&&(d.P4.remove(i.y),r=!0)}),T.Z.onListenToyPair(e=>{e||m((0,f.$Y)({type:"lovense"}))}),T.Z.onError(e=>{m((0,N.RG)({isConnected:!1,type:"lovense"})),m((0,f.ao)("lovense","userToyAppError"))})})()},[n,l,e,t,m]),null},I=()=>{let e=(0,r.C)(n.YK),t=(0,r.C)(n.ns);return a.createElement(a.Fragment,null,e&&a.createElement(M,null),t&&a.createElement(A,null))}},64796:(e,t,l)=>{l.d(t,{Z:()=>w});var a=l(27378),r=l(48204),n=l(45793),s=l(80176),i=l(62203),o=l(71337),c=l(98131),d=l(12278),m=l(17073),u=l(72228),p=l(29413),h=l(99748);let v=({iconName:e="user-blocked-ds",headerText:t,descriptionText:l,descriptionColor:r})=>a.createElement("div",{className:"page-empty-state-block"},a.createElement(p.Z,{img:e}),a.createElement("div",{className:"page-empty-state-block__header"},t),a.createElement("div",{className:(0,h.AK)("page-empty-state-block__description",{[`page-empty-state-block__description--${r}`]:r})},l));var E=l(65804),g=l(52391),b=l(78983),f=l(97606),C=l(94380);let y=({blockReason:e,blockedTill:t})=>{let l=(0,f.QT)(),{trans:r,formatTime:n}=l,i=(0,C.T)();(0,a.useEffect)(()=>{e||i((0,s.J5)("/"))},[e,i]);let o=!t,c=o?r("accountDisabledPage.blocked.title"):a.createElement(E.Z,{messageId:"accountDisabledPage.blocked.titleUntil",elements:{br:a.createElement("br",null)},parameters:{date:n(t,b.TIME_FORMATS.DAY_MONTH_YEAR)}}),d=e?function(e,{trans:t,hasTranslation:l}){let a=t("accountDisabledPage.blocked.blockReason.reason"),r=`accountDisabledPage.blocked.blockReason.${e}`,n=t(l(r)?r:"accountDisabledPage.blocked.blockReason.custom");return`${a}: ${n}`}(e,l):"";return a.createElement("div",{className:"disable-account-block"},a.createElement(v,{headerText:c,descriptionText:d,descriptionColor:"warning"}),!o&&a.createElement("div",{className:"disable-account-block__banner"},a.createElement(m.j,{description:r("accountDisabledPage.blocked.warning"),textAlign:"center"})),a.createElement("div",{className:"disable-account-block__action"},a.createElement(u.Ll,{className:"disable-account-block__link",as:"button",supportLinkKey:"rulesForModels"},a.createElement(p.Z,{img:"rules-ds"}),r("accountDisabledPage.readBroadcastingRules"))),o&&a.createElement("div",{className:"disable-account-block__action"},a.createElement(g.Z,null,r("accountDisabledPage.contactSupport"))))};var N=l(57174),_=l(15921);let k={BLOCKED:"blocked",DELETED:"deleted",RESTORE:"restore"},A=({accountState:e,email:t,siteName:l,canBeRestored:r,onRestore:n})=>{let{trans:s}=(0,f.QT)(),i=null,o=null;switch(e){case k.RESTORE:i=s(`accountDisabledPage.${k.RESTORE}.description`,{email:t});break;case k.BLOCKED:i=a.createElement(E.Z,{messageId:`accountDisabledPage.${k.BLOCKED}.description`,parameters:{siteName:l},wrapper:"div",className:"blocked-reason",elements:{noBreakSpace:a.createElement(a.Fragment,null,"\xa0")}});break;case k.DELETED:i=r?s(`accountDisabledPage.${k.DELETED}.restore`):s(`accountDisabledPage.${k.DELETED}.description`,{siteName:l})}return e===k.DELETED&&(o=r?a.createElement(N.ZP,{onClick:n},s("accountDisabledPage.restoreButton")):null),a.createElement("div",{className:"account-disabled-page container"},a.createElement(_.Z,{img:e===k.RESTORE?"mail-filled":"account-disabled",size:100}),a.createElement("div",{className:"account-disabled-header"},s(`accountDisabledPage.${e}.title`)),a.createElement("div",{className:"account-disabled-description"},i),a.createElement("div",{className:"button-wrapper"},o))},S={onRestoreDeletedAccount:o.GA},T=({route:{routeParams:{accountState:e}},email:t,siteName:l,canBeRestored:r,username:s,onRestoreDeletedAccount:i,isModel:o,authErrorDetails:{blockReason:c,blockedTill:d}})=>{let m=(0,a.useCallback)(()=>{i(s)},[i,s]),u=o&&e===k.BLOCKED;return a.createElement(n.Z,null,u?a.createElement(y,{blockReason:c,blockedTill:d}):a.createElement(A,{accountState:e,email:t,canBeRestored:r,onRestore:m,siteName:l}))};T.checkAccess=s.e5;let w=(0,r.$j)(e=>{var t;return{canBeRestored:(0,c.ch)(e),siteName:(0,i.hA)(e),username:(0,d.fW)(e),email:(0,d.oL)(e),authErrorDetails:(0,d.X)(e),isModel:(0,d.ys)(e)||(null===(t=(0,d.ts)(e))||void 0===t?void 0:t.isModel)}},S)(T)},72095:(e,t,l)=>{l.d(t,{Z:()=>a});let a=(0,l(98846).n7)({resolved:{},chunkName:()=>"safe-upload",isReady(e){let t=this.resolve(e);return!0===this.resolved[t]&&!!l.m[t]},importAsync:()=>l.e(4951).then(l.bind(l,99437)),requireAsync(e){let t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){return l(this.resolve(e))},resolve:()=>99437})},88546:(e,t,l)=>{l.d(t,{Z:()=>c});var a=l(27378),r=l(45793),n=l(65804),s=l(85353);let i=({children:e=null})=>a.createElement("div",{className:"being-redirected"},a.createElement(s.Z,{isInline:!0}),a.createElement(n.Z,{messageId:"navigationMessages.beingRedirected",className:"being-redirected-message"}),e);var o=l(64741);let c=()=>((0,a.useEffect)(()=>{window.location.replace(o.oo)},[]),a.createElement(r.Z,{titleKey:"seo.title.support.form"},a.createElement("div",{className:"container island-page feedback-page"},a.createElement(i,null))))},31624:(e,t,l)=>{l.d(t,{Z:()=>s});var a=l(98846),r=l(80176);let n=(0,a.n7)({resolved:{},chunkName:()=>"my-friends",isReady(e){let t=this.resolve(e);return!0===this.resolved[t]&&!!l.m[t]},importAsync:()=>Promise.all([l.e(4427),l.e(5516)]).then(l.bind(l,73093)),requireAsync(e){let t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){return l(this.resolve(e))},resolve:()=>73093});n.checkAccess=r.yy;let s=n},55594:(e,t,l)=>{l.d(t,{Z:()=>s});var a=l(98846),r=l(80176);let n=(0,a.n7)({resolved:{},chunkName:()=>"my-collection",isReady(e){let t=this.resolve(e);return!0===this.resolved[t]&&!!l.m[t]},importAsync:()=>Promise.all([l.e(3616),l.e(8846),l.e(1813),l.e(1961),l.e(3849)]).then(l.bind(l,51873)),requireAsync(e){let t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){return l(this.resolve(e))},resolve:()=>51873});n.checkAccess=r.yy;let s=n},64029:(e,t,l)=>{l.d(t,{Z:()=>s});var a=l(98846),r=l(80176);let n=(0,a.n7)({resolved:{},chunkName:()=>"not-interested",isReady(e){let t=this.resolve(e);return!0===this.resolved[t]&&!!l.m[t]},importAsync:()=>l.e(5241).then(l.bind(l,83386)),requireAsync(e){let t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){return l(this.resolve(e))},resolve:()=>83386});n.checkAccess=(0,r.tF)("/");let s=n},42889:(e,t,l)=>{l.d(t,{T:()=>i,h:()=>s});var a=l(98846),r=l(80176),n=l(12278);let s=(0,a.n7)({resolved:{},chunkName:()=>"profile",isReady(e){let t=this.resolve(e);return!0===this.resolved[t]&&!!l.m[t]},importAsync:()=>Promise.all([l.e(3616),l.e(4427),l.e(8846),l.e(7243),l.e(2022),l.e(6845)]).then(l.bind(l,18214)),requireAsync(e){let t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){return l(this.resolve(e))},resolve:()=>18214});s.checkAccess=r.Mk;let i=(0,a.n7)({resolved:{},chunkName:()=>"profile",isReady(e){let t=this.resolve(e);return!0===this.resolved[t]&&!!l.m[t]},importAsync:()=>Promise.all([l.e(3616),l.e(4427),l.e(8846),l.e(7243),l.e(2022),l.e(6845)]).then(l.bind(l,94630)),requireAsync(e){let t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){return l(this.resolve(e))},resolve:()=>94630});i.checkAccess=(e,t,l)=>{let a=l(),r=(0,n.ts)(a);return(null==r||!r.isModel)&&(t("/"),!0)}},54222:(e,t,l)=>{l.d(t,{d:()=>n});var a=l(98846),r=l(80176);let n=(0,a.n7)({resolved:{},chunkName:()=>"models",isReady(e){let t=this.resolve(e);return!0===this.resolved[t]&&!!l.m[t]},importAsync:()=>Promise.all([l.e(9641),l.e(6425),l.e(9562),l.e(7782),l.e(9813),l.e(4427),l.e(8821),l.e(3132),l.e(927),l.e(5881),l.e(8351),l.e(6638),l.e(3196)]).then(l.bind(l,89792)),requireAsync(e){let t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){return l(this.resolve(e))},resolve:()=>89792});n.checkAccess=(0,r.fF)([r.nW,r.Sd])},81319:(e,t,l)=>{l.d(t,{Z:()=>s});var a=l(98846),r=l(80176);let n=(0,a.n7)({resolved:{},chunkName:()=>"settings",isReady(e){let t=this.resolve(e);return!0===this.resolved[t]&&!!l.m[t]},importAsync:()=>l.e(5571).then(l.bind(l,89963)),requireAsync(e){let t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){return l(this.resolve(e))},resolve:()=>89963});n.checkAccess=r.yy;let s=n},76280:(e,t,l)=>{l.d(t,{K:()=>s,m:()=>n});var a=l(98846),r=l(80176);let n=(0,a.n7)({resolved:{},chunkName:()=>"subscriptions",isReady(e){let t=this.resolve(e);return!0===this.resolved[t]&&!!l.m[t]},importAsync:()=>l.e(9841).then(l.bind(l,43217)),requireAsync(e){let t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){return l(this.resolve(e))},resolve:()=>43217});n.checkAccess=r.y8;let s=(0,a.n7)({resolved:{},chunkName:()=>"subscriptions",isReady(e){let t=this.resolve(e);return!0===this.resolved[t]&&!!l.m[t]},importAsync:()=>l.e(9841).then(l.bind(l,81475)),requireAsync(e){let t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){return l(this.resolve(e))},resolve:()=>81475})},41569:(e,t,l)=>{l.d(t,{Z:()=>a});let a=(0,l(98846).n7)({resolved:{},chunkName:()=>"unsub",isReady(e){let t=this.resolve(e);return!0===this.resolved[t]&&!!l.m[t]},importAsync:()=>l.e(459).then(l.bind(l,43020)),requireAsync(e){let t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){return l(this.resolve(e))},resolve:()=>43020})},38152:(e,t,l)=>{l.d(t,{G:()=>n});var a=l(27378),r=l(98655);let n=(0,l(98846).n7)({resolved:{},chunkName:()=>"AddToFavoritesLimitModal",isReady(e){let t=this.resolve(e);return!0===this.resolved[t]&&!!l.m[t]},importAsync:()=>l.e(2417).then(l.bind(l,11987)),requireAsync(e){let t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){return l(this.resolve(e))},resolve:()=>11987},{ssr:!1,fallback:a.createElement(r.c,null)})},19144:(e,t,l)=>{l.d(t,{q:()=>M,Z:()=>I});var a,r=l(27378),n=l(48204),s=l(4289),i=l(18775),o=l(53701),c=l(77309),d=l(65804),m=l(29413),u=l(47554),p=l(56322),h=l(55280);let v=100/77;class E extends(a=r.Component){checkPlaceRange(e,t){let{place:l}=this.props;return(0,o.Z)(l)&&(0,c.Z)(l,e,t)}render(){let{hallOfFameByYears:e,isTooltipVisible:t,username:l,place:a=0,topMedalHeight:n}=this.props,s=(null==e?void 0:e.position)&&(0,c.Z)(e.position,1,4);if(!this.checkPlaceRange(1,4)&&!s)return null;if(s){let l="number"==typeof n?n:26;return r.createElement(h.Y,{topMedalHeight:l,isTooltipVisible:t,containerRef:this.containerRef,position:e.position,year:e.year,className:"award-place"})}let i="number"==typeof n?n:26;return r.createElement("div",{ref:this.containerRef,className:"award-place award-place-top"},r.createElement(m.Z,{img:`medal-${a}`,height:i,width:Number((i/v).toFixed(1))}),t&&l&&r.createElement(p.a,{isMobileRelative:!1,placement:"top",shouldPreventDefault:!0,targetRef:this.containerRef,showDelay:250},r.createElement(d.Z,{messageId:"topBestPlace",parameters:{username:l},elements:{place:r.createElement(u.Z,{number:a})}})))}constructor(...e){super(...e),(0,i._)(this,"containerRef",r.createRef())}}(0,i._)(E,"defaultProps",{isTooltipVisible:!0,size:20,hallOfFameByYears:null});var g=l(92644),b=l(85353),f=l(4368),C=l(99748),y=l(12710),N=l(6818),_=l(71227),k=l(64065),A=l(65103),S=l(82512),T=l(66483),w=l(32284);let P=e=>!(null==e?void 0:e.isModel),M=({children:e,className:t,size:l,showOnlineStatus:a=!0,currentUserId:n=null,user:i,isAwardBadgeVisible:o=!1,isLoading:c=!1,isLink:u=!1,showLiveBadge:p=!1,isInFavorites:h=!1,levelBadgeSize:v="regular",shouldLinkOpenNewTab:N=!1,profileUrl:_,isInvisible:A,isBorderAvatar:S=!0,showInvisibleStatus:w,shouldShowRealLevel:M,shouldShowLevelBadge:I,userRankingFallback:R,isFavoriteBadgeVisible:Z=!1,onlineStatusClassName:L,isNotReviewedAvatar:D,withModerationStatus:B,dispatch:F,needVerifyAge:O,modelData:x,...U})=>{var H;let K={};if(l&&(K={...K,height:`${l}px`,width:`${l}px`}),i&&((null==i?void 0:i.isDeleted)||(null==i?void 0:i.isBlocked)))return r.createElement("span",{className:(0,C.AK)("avatar",t),style:K},r.createElement(m.Z,{img:"user-deleted"}));let V=R||i.userRanking,$=M?null==V?void 0:V.realLeague:null==V?void 0:V.league,W=M?null==V?void 0:V.realLevel:null==V?void 0:V.level,z=!!P(i)&&(0,T.U)(i),q=I&&!!$&&"number"==typeof W&&r.createElement("span",{className:"avatar-badge"},r.createElement(g.Z,{league:$,level:W,size:v,letter:z?"A":void 0}));if(w&&A)return r.createElement("span",{className:(0,C.AK)("avatar","avatar-invisible",t,{"avatar-border":S,[`color-league-${$||"default"}`]:S}),style:K},r.createElement(m.Z,{img:"invisible",className:"avatar-invisible-icon"}),q);let{username:Q}=null!=i?i:{},j=(null==i?void 0:i.id)===n,G=B&&D&&j,Y=D&&j?"":null===(H=i.profile)||void 0===H?void 0:H.avatarUrl,J=!!(!Y&&Q||O&&!i.isModel&&!j),X=null;X=c?r.createElement(b.Z,{size:72}):J&&Q?r.createElement("svg",{style:{height:"100%",width:"100%"},viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},!S&&r.createElement("circle",{cx:"10",cy:"10",r:"10",fill:`#${(0,y.KU)(Q)}`}),r.createElement("text",{x:"10",y:"10",dy:"0.35em",textAnchor:"middle",fill:"white",style:{fontSize:"10px"}},Q.charAt(0))):r.createElement(f.s,{username:i.username,src:Y,area:"avatar",isRound:!0});let ee=p&&(null==x?void 0:x.isLive),et=a&&!ee&&i.isOnline&&!j,el=z||i.hasAdminBadge?"color-league-blue":`color-league-${$||"default"}`,ea=r.createElement("span",{...U,className:(0,C.AK)("avatar",t,{"avatar-border":S,"avatar-league-background":S&&!Y||D,[el]:S}),style:K},X,e,o&&r.createElement(E,{username:i.username,place:null==x?void 0:x.topBestPlace,size:34,topMedalHeight:42,hallOfFameByYears:null==x?void 0:x.hallOfFame}),et&&r.createElement(k.Z,{status:"online",className:L}),h&&Z&&r.createElement("span",{className:"icon-favorited-wrapper"},r.createElement(m.Z,{img:"favorited"})),ee&&r.createElement("div",{className:"live-badge"},"LIVE"),q,G&&r.createElement("span",{className:"avatar-moderation"},r.createElement(m.Z,{img:"clock"}),r.createElement("span",{className:"avatar-moderation-text"},r.createElement(d.Z,{messageId:"profile.awaitingModeration",elements:{br:r.createElement("br",null)}}))));return u?r.createElement(s.rU,{to:_,target:N?"_blank":void 0},ea):ea},I=(0,n.$j)((e,t)=>{let{auth:{currentUser:l}}=e,{isLink:a,profileUrl:r,user:n}=t,{id:s}=n;return{currentUserId:null==l?void 0:l.id,isInFavorites:(0,N.D9)(e,s),profileUrl:a?r||(0,w.jC)(n):null,isInvisible:(0,A.Gy)(e),isNotReviewedAvatar:(0,S.Cw)(e),needVerifyAge:(0,_.m5)(e)}})(M)},78524:(e,t,l)=>{l.d(t,{k:()=>n});var a=l(27378),r=l(98655);let n=(0,l(98846).n7)({resolved:{},chunkName:()=>"ChangeUsernameActionModal",isReady(e){let t=this.resolve(e);return!0===this.resolved[t]&&!!l.m[t]},importAsync:()=>l.e(2059).then(l.bind(l,56998)),requireAsync(e){let t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){return l(this.resolve(e))},resolve:()=>56998},{ssr:!1,fallback:a.createElement(r.c,null)})},59587:(e,t,l)=>{l.d(t,{Z:()=>n});var a=l(27378),r=l(98655);let n=(0,l(98846).n7)({resolved:{},chunkName:()=>"ChangeUsernameLockModal",isReady(e){let t=this.resolve(e);return!0===this.resolved[t]&&!!l.m[t]},importAsync:()=>l.e(5274).then(l.bind(l,26628)),requireAsync(e){let t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){return l(this.resolve(e))},resolve:()=>26628},{ssr:!1,fallback:a.createElement(r.c,null)})},82766:(e,t,l)=>{l.d(t,{Z:()=>v});var a=l(27378),r=l(48204),n=l(4289),s=l(1948),i=l(65804),o=l(99973),c=l(12712),d=l(79347),m=l(12278),u=l(65103);let p={resendConfirmation:d.Di},h=({isLoggedIn:e,hasDisposableEmail:t,isEmailVerified:l,withoutEmail:a})=>e?a?"headerEmailAddAnEmail":t?"headerEmailVerificationDisposable":l?null:"headerEmailVerificationWarning":null,v=(0,r.$j)(e=>{let{email:t="",hasDisposableEmail:l=!1}=(0,u.xV)(e)||{};return{withoutEmail:(0,u.vE)(e),currentModalName:e.ui.currentModalName,isTheatreModeActive:(0,c.z)(e),email:t,isEmailVerified:(0,u.WC)(e),hasDisposableEmail:l,isLoggedIn:(0,m.M7)(e)}},p)(e=>{if(e.isTheatreModeActive)return null;let{email:t,isEmailVerified:l}=e,r=h(e);if(!r||l)return null;let c=(0,o.wF)(t);return a.createElement("div",{className:"header-email-verification-warning"},a.createElement(i.Z,{elements:{emailLink:c?a.createElement(s.Z,{href:c,target:"_blank"}):a.createElement("span",null),settingsLink:a.createElement(n.rU,{to:"/settings"}),resendConfirmation:a.createElement("a",{onClick:()=>e.resendConfirmation()}),strong:a.createElement("strong",null)},parameters:{email:t},messageId:r}))})},93381:(e,t,l)=>{l.d(t,{Z:()=>ef});var a=l(53516),r=l(27378),n=l(3620),s=l(84094),i=l(22371),o=l(77382),c=l(11850),d=l(35826),m=l(29413),u=l(4289),p=l(92562),h=l(83550),v=l(1948),E=l(61485),g=l(65804),b=l(7288),f=l(75997),C=l(84571),y=l(45979),N=l(95654),_=l(12278),k=l(19144),A=l(87489),S=l(57094),T=l(66483),w=l(32284),P=l(99973),M=l(97606),I=l(94380),R=l(80092),Z=l(68020);let L={root:"PromoteUltimate#BC",content:"PromoteUltimate__content#Fs",icon:"PromoteUltimate__icon#sC",text:"PromoteUltimate__text#qu",title:"PromoteUltimate__title#Sq",description:"PromoteUltimate__description#NH"},D=()=>{let e=(0,N.C)(Z.kG),{trans:t}=(0,M.QT)(),l=(0,I.T)();return r.createElement(u.rU,{to:"/subscriptions",className:L.root,onClick:()=>{l((0,h.d2)(P.FO.PROMOTE_ULTIMATE_SUBSCRIPTION_BANNER))}},r.createElement("div",{className:L.content},r.createElement("span",{className:L.icon}),r.createElement("div",{className:L.text},r.createElement("span",{className:L.title},t(`${e?"userLevels.goUltimate":"userLevels.tryUltimateMembership"}`)),r.createElement("span",{className:L.description},t(`${e?"userLevels.goUltimateOffer":"userLevels.tryUltimateMembershipOffer"}`)))))},B=()=>{let e=(0,N.C)(R.pk),t=(0,N.C)(_.ts),l=(0,I.T)(),{trans:a}=(0,M.QT)();return(null==t?void 0:t.isUltimate)?null:e?r.createElement(D,null):r.createElement(u.rU,{to:"/subscriptions",className:"user-levels-header-menu-ultimate",onClick:()=>{l((0,h.d2)(P.FO.PROMOTE_ULTIMATE_SUBSCRIPTION_BANNER))}},r.createElement("span",{className:"user-menu-ultimate-badge"}),a("userLevels.getUltimateMembership"))},F=e=>{let t=(0,N.C)(_.ts),l=(0,A.n3)(t);return t?r.createElement("div",{className:"user-levels-header-menu"},r.createElement(u.rU,{to:e.profileUrl,className:"user-menu-avatar-wrapper"},r.createElement(k.Z,{user:(0,w.T$)(t),modelData:l,size:56,showInvisibleStatus:!0,shouldShowRealLevel:!0,className:"user-menu-avatar"}),r.createElement(S.Z,{className:"user-menu-username",shouldShowRealLevel:!0,isUltimateIconVisible:!0,user:t,isLevelLeagueStatusVisible:!1,isGenderIconHidden:!0,placeId:"userLevelsHeaderMenu"})),!(0,T.U)(t)&&r.createElement(y.Z,{shouldHideMaskDropdown:!0,user:t,countType:"xp",useLink:!0}),r.createElement(B,null)):null};var O=l(91090),x=l(99748),U=l(57498),H=l(10315),K=l(39627),V=l(99306),$=l(80749),W=l(57268),z=l(1689);let q={badge:"StudioRulesLink__badge#sv"},Q=(0,r.memo)(()=>{let{trans:e}=(0,M.QT)();return r.createElement(z.Z,{wikiLinkKey:"studioRules"},r.createElement(m.Z,{img:"rules-ds"}),e("studioEarningsNew.studioRules"),r.createElement(d.Z,{className:q.badge,type:"new-darken"},e("badges.new")))}),j=({currentUser:e,isInvisible:t,toggleInvisibleMode:l})=>{let{isModel:a,isStudio:n}=e||{};return a||n?null:r.createElement("li",{className:"invisible-mode-switch header-dropdown-content-split",onClick:l},r.createElement("div",null,r.createElement(m.Z,{img:"invisible"}),r.createElement(C.W,{messageId:"userMenu.invisibleMode"})),r.createElement(f.Z,{isChecked:t}))},G=({dropdownRef:e,currentUser:t,isEmailVerified:l,isFavoritesLinkVisible:a,isReferralProgramAvailable:n,isSandbox:s,userProfile:i,shouldShowMyCollection:o,shouldShowDocumentsValidation:c,profileUrl:p,isInvisible:E,toggleInvisibleMode:g,isCurrentUserStudioAdmin:f,isNewInternalFeedbackItemVisible:C,isExternalFeedbackVisible:y,feedbackUrl:N,newsEnabled:_,onNewFeedbackItemClick:T,isLoggedIn:R})=>{let{trans:Z}=(0,M.QT)(),L=(0,I.T)();if(!R)return null;let{isModel:D,isStudio:B}=t||{},O=D||B;return r.createElement("div",{className:"header-dropdown-content-wrapper header-dropdown-content-wrapper-bordered media-up-to-m-hidden"},r.createElement("ul",{ref:e,className:"header-dropdown-content"},r.createElement("li",null,(null==t?void 0:t.userRanking)?r.createElement(F,{profileUrl:p}):r.createElement(u.rU,{to:p,className:"user-menu-avatar-wrapper"},r.createElement(k.Z,{user:(0,w.T$)(i),modelData:(0,A.tA)(i),size:56,showInvisibleStatus:!0,className:"user-menu-avatar"}),t&&r.createElement(S.Z,{className:"user-menu-username",user:t,isGenderIconHidden:!0,placeId:"headerUserMenu"}))),B&&r.createElement("li",{className:"header-dropdown-content-split header-dropdown-content-badge"},r.createElement(Q,null)),r.createElement("li",{className:B?"":"header-dropdown-content-split"},r.createElement(b.Z,{user:(0,w.T$)(i)},r.createElement(m.Z,{img:"user-profile"}),Z("userMenu.myProfile"))),D&&r.createElement("li",null,r.createElement(u.rU,{to:"/model/timeline"},r.createElement(m.Z,{img:"feed"}),Z("userMenu.feed"))),D&&!s&&r.createElement("li",{key:"myCollection"},r.createElement(u.rU,{to:"/model/fan-club"},r.createElement(m.Z,{img:"diamond"}),r.createElement("span",null,Z("userMenu.myFanClub")))),o&&!s&&r.createElement("li",{key:"myCollection"},r.createElement(u.rU,{to:"/collection"},r.createElement(m.Z,{img:"album"}),r.createElement("span",null,Z("myCollection.button")))),r.createElement("li",null,r.createElement(u.rU,{to:"/friends"},r.createElement(m.Z,{img:"users"}),Z("userMenu.myFriends"))),D&&r.createElement("li",null,r.createElement(u.rU,{to:"/model/knights"},r.createElement(m.Z,{img:"knight-1"}),Z("userMenu.myKnights"))),!O&&r.createElement("li",null,r.createElement(u.rU,{to:"/notifications"},r.createElement(m.Z,{img:"notifications-2"}),Z("userMenu.myNotifications"))),a&&r.createElement("li",null,r.createElement(u.rU,{to:"/favorites"},r.createElement(m.Z,{img:"favorited"}),Z("header.myFavorites"))),r.createElement(j,{isInvisible:E,currentUser:t,toggleInvisibleMode:g}),r.createElement("li",{className:(0,x.AK)({"header-dropdown-content-split":O})},r.createElement(u.rU,{to:"/settings"},r.createElement(m.Z,{img:"settings"}),!l&&r.createElement(d.Z,{type:"alert-small"},"!"),Z("userMenu.settingsAndPrivacy"))),f&&r.createElement("li",null,r.createElement(u.rU,{to:"/studio-admin"},r.createElement(m.Z,{img:"shield-user"}),Z("userMenu.studioAdmin"))),n&&t&&D&&!s&&r.createElement("li",null,r.createElement(u.rU,{to:"/user-referral"},r.createElement(m.Z,{img:"share"}),Z("userMenu.referralProgram"))),c&&r.createElement("li",null,r.createElement(u.rU,{to:"/verification"},r.createElement(m.Z,{img:"documents"}),r.createElement(d.Z,{type:"alert-small"},"!"),Z("userMenu.documentVerification"))),D&&!s&&r.createElement(r.Fragment,null,r.createElement("li",null,r.createElement(u.rU,{to:"/model/documents"},r.createElement(m.Z,{img:"documents"}),Z("userMenu.documents"))),r.createElement("li",null,r.createElement(u.rU,{to:"/model/bans"},r.createElement(m.Z,{img:"ban"}),Z("userMenu.bannedUsers")))),_&&r.createElement("li",{className:"header-dropdown-content-split"},r.createElement(u.rU,{to:"/news",onClick:()=>{L((0,h.d2)(P.FO.GO_TO_NEWS_BUTTONS,{source:"accountDropdown"}))}},r.createElement(m.Z,{img:"news"}),Z("userMenu.news"))),C&&r.createElement("li",null,r.createElement("a",{href:"#",onClick:e=>{e.preventDefault(),T()}},r.createElement(m.Z,{img:"megaphone-ds"}),Z("userMenu.giveFeedback"))),r.createElement("li",{className:"header-dropdown-content-split"}),y&&O&&N&&r.createElement("li",null,r.createElement(v.Z,{rel:"nofollow",href:N,target:"_blank"},r.createElement(m.Z,{img:"recommended"}),Z("userMenu.giveFeedback"))),r.createElement("li",{className:"header-user-dropdown-item-logout"},r.createElement(V.j,null,r.createElement(m.Z,{img:"turn-off"}),Z("userMenu.logout")))))},Y=({dropdownRef:e,currentUser:t,isEmailVerified:l,isFavoritesLinkVisible:a,isLoggedIn:n,isPageAllowedToStartBroadcast:s,isReferralProgramAvailable:i,isSandbox:o,isInvisible:c,isNewInternalFeedbackItemVisible:f,isExternalFeedbackVisible:C,onNewFeedbackItemClick:y,keepDropdownOpen:N,shouldShowMyCollection:_,userProfile:P,topModelsLink:R,shouldShowDocumentsValidation:Z,profileUrl:L,onCreateNewAccountMobileClick:D,onLoginMobileClick:B,onBuyTokensClick:x,toggleInvisibleMode:U,isStickyHeaderActive:z,feedbackUrl:q,newsEnabled:G,onSuccess:Y,shouldShowAbout:J,shouldShowBlog:X})=>{let{trans:ee}=(0,M.QT)(),et=(0,I.T)();if(!n||!P)return r.createElement("div",{className:"header-dropdown-content-wrapper header-dropdown-content-wrapper-bordered header-dropdown-content__signup-wrapper media-after-l-hidden"},r.createElement(H.P,{key:"guest",containerRef:e,pause:!z}),r.createElement("div",{onClick:N,className:"header-dropdown-content__signup-item"},r.createElement("div",{className:"header-dropdown-content__signup-plate"},r.createElement(K.Z,{className:"btn btn-block header-dropdown-content__signup-button",onClick:D,triggerSource:O.Dt.MOBILE_DROPDOWN,type:"signup",onSuccess:Y},ee("login.joinNowShort")),r.createElement("div",{className:"header-dropdown-content__signup-benefits"},r.createElement($.C,{userRole:"user",isSmall:!0,isSiteTheme:!0,hasShadow:!1})))),r.createElement("div",{className:"header-dropdown-content__signup-item"},r.createElement(K.Z,{className:"btn btn-block btn-medium btn-outline",onClick:B,triggerSource:O.Dt.MOBILE_DROPDOWN,type:"login",onSuccess:Y},ee("login.logIn"))),r.createElement("ul",{className:"header-dropdown-content header-dropdown-content__signup"},r.createElement("li",null,r.createElement(u.rU,{to:R,className:"header-dropdown-menu-item--signup",onClick:()=>et((0,h.d2)(O.a.TOP_MODELS_LINK))},r.createElement(m.Z,{img:"best-models",size:18}),ee("header.bestModels"))),J&&r.createElement("li",null,r.createElement(u.rU,{to:"/about",className:"header-dropdown-menu-item--signup"},r.createElement(m.Z,{img:"about",size:18}),ee("footer.about"))),X&&r.createElement("li",null,r.createElement(v.Z,{href:"/blog/",className:"header-dropdown-menu-item--signup",target:"_blank"},r.createElement(m.Z,{img:"stripchat-logo",size:18}),ee("footer.blog"))),r.createElement("li",null,r.createElement(u.rU,{to:"/signup/model",className:"header-dropdown-menu-item--signup"},r.createElement(m.Z,{img:"camera"}),ee("footer.becomeAModel"))),r.createElement("li",{className:"header-dropdown-content-split header-dropdown-content-split--signup"},r.createElement("div",{onClick:N},r.createElement(E.Z,{className:"header-dropdown-content__signup-item header-dropdown-content__language",headerClassName:"header-dropdown-content__language-text",isLarge:!0})))));let{isUltimate:el,isModel:ea,isStudio:er,studioId:en,tokensPaid:es=0,tokens:ei=0}=t||{},eo=ea||er,ec=el||(0,T.Ah)(t)||ea||es>0||ei>0;return r.createElement("div",{className:"header-dropdown-content-wrapper media-after-l-hidden"},r.createElement(H.P,{key:"user",containerRef:e,pause:!z}),r.createElement("ul",{ref:e,className:"header-dropdown-content"},r.createElement("li",null,eo?r.createElement(u.rU,{to:L,className:"user-menu-avatar-wrapper"},r.createElement(k.Z,{user:P,modelData:(0,A.tA)(P),size:56,showInvisibleStatus:!0,className:"user-menu-avatar"}),t&&r.createElement(S.Z,{className:"user-menu-username",user:t,isGenderIconHidden:!0,placeId:"headerMenuDropdown"})):r.createElement(F,{profileUrl:L})),s&&r.createElement("li",{className:"header-dropdown-content-broadcast"},r.createElement(p.Z,null)),!eo&&r.createElement("li",{className:"tokens media-after-m-hidden header-dropdown-content-split",onClick:N},r.createElement("div",{className:"tokens-label"},r.createElement(m.Z,{img:"tokens-1"}),r.createElement(g.Z,{choiceParameter:"tokens",messageId:"buyTokens.tokens",parameters:{tokens:P.tokens}})),r.createElement("div",{className:"tokens-btn"},r.createElement("button",{className:"btn btn-signup",onClick:x,type:"button"},ee("button.buy")))),er&&r.createElement("li",{className:"header-dropdown-content-badge"},r.createElement(Q,null)),ec&&!o&&r.createElement("li",{className:"media-after-m-hidden header-dropdown-content-split"},r.createElement(u.rU,{to:"/tokens-history"},r.createElement(m.Z,{img:"payment-history-1"}),ee("tokensHistory.tokensHistory"))),er&&!o&&r.createElement("li",null,r.createElement(u.rU,{to:"/studio-earnings"},r.createElement(m.Z,{img:"payment-history-1"}),ee("tokensHistory.studioEarnings"))),(ea&&!en||er)&&!o&&r.createElement("li",null,r.createElement(u.rU,{to:"/payments-settings"},r.createElement(W.Z,null),r.createElement(m.Z,{img:"payment-settings"}),ee("userMenu.paymentsSettings"))),eo&&!o&&r.createElement("li",null,r.createElement(u.rU,{to:"/payments-history"},r.createElement(m.Z,{img:"payment-history"}),ee("userMenu.paymentsHistory"))),ea&&r.createElement("li",{key:"myCollection"},r.createElement(u.rU,{to:"/model/fan-club"},r.createElement(m.Z,{img:"diamond"}),r.createElement("span",null,ee("userMenu.myFanClub")))),r.createElement("li",{className:"media-after-m-hidden"},r.createElement(u.rU,{to:R},r.createElement(m.Z,{img:"best-models"}),ee("header.bestModels"))),a&&r.createElement("li",null,r.createElement(u.rU,{to:"/favorites"},r.createElement(m.Z,{img:"favorited"}),ee("header.myFavorites"))),r.createElement("li",null,r.createElement(b.Z,{user:(0,w.T$)(P)},r.createElement(m.Z,{img:"user-profile"}),ee("userMenu.myProfile"))),ea&&r.createElement("li",null,r.createElement(u.rU,{to:"/model/timeline"},r.createElement(m.Z,{img:"feed"}),ee("userMenu.feed"))),_&&!o&&r.createElement("li",{key:"myCollection"},r.createElement(u.rU,{to:"/collection"},r.createElement(m.Z,{img:"album"}),r.createElement("span",null,ee("myCollection.button")))),r.createElement(j,{isInvisible:c,currentUser:t,toggleInvisibleMode:U}),r.createElement("li",null,r.createElement(u.rU,{to:"/friends"},r.createElement(m.Z,{img:"users"}),ee("userMenu.myFriends"))),ea&&r.createElement("li",null,r.createElement(u.rU,{to:"/model/knights"},r.createElement(m.Z,{img:"knight-1"}),ee("userMenu.myKnights"))),!eo&&r.createElement("li",null,r.createElement(u.rU,{to:"/notifications"},r.createElement(m.Z,{img:"notifications-2"}),ee("userMenu.myNotifications"))),r.createElement("li",{className:"header-dropdown-content-split"},r.createElement(u.rU,{to:"/settings"},r.createElement(m.Z,{img:"settings"}),!l&&r.createElement(d.Z,{type:"alert-small"},"!"),ee("userMenu.settingsAndPrivacy"))),r.createElement("li",null,r.createElement("div",{onClick:N},r.createElement(E.Z,{className:"header-dropdown-menu-item__language header-dropdown-content__language",headerClassName:"header-dropdown-content__language-text",isLarge:!0}))),i&&t&&ea&&!o&&r.createElement("li",null,r.createElement(u.rU,{to:"/user-referral"},r.createElement(m.Z,{img:"share"}),ee("userMenu.referralProgram"))),Z&&r.createElement("li",null,r.createElement(u.rU,{to:"/verification"},r.createElement(m.Z,{img:"documents"}),r.createElement(d.Z,{type:"alert-small"},"!"),ee("userMenu.documentVerification"))),ea&&!o&&r.createElement("li",null,r.createElement(u.rU,{to:"/model/documents"},r.createElement(m.Z,{img:"documents"}),ee("userMenu.documents"))),ea&&r.createElement("li",null,r.createElement(u.rU,{to:"/model/bans"},r.createElement(m.Z,{img:"ban"}),ee("userMenu.bannedUsers"))),G&&r.createElement("li",{className:"header-dropdown-content-split"},r.createElement(u.rU,{to:"/news"},r.createElement(m.Z,{img:"news"}),ee("userMenu.news"))),f&&r.createElement("li",null,r.createElement("a",{href:"#",onClick:e=>{e.preventDefault(),y()}},r.createElement(m.Z,{img:"megaphone-ds"}),ee("userMenu.giveFeedback"))),r.createElement("li",{className:"header-dropdown-content-split"}),C&&eo&&q&&r.createElement("li",null,r.createElement(v.Z,{rel:"nofollow",href:q,target:"_blank"},r.createElement(m.Z,{img:"recommended"}),ee("userMenu.giveFeedback"))),r.createElement("li",{className:"header-user-dropdown-item-logout"},r.createElement(V.j,null,r.createElement(m.Z,{img:"turn-off"}),ee("userMenu.logout")))))},J=e=>{let t=(0,r.useRef)(null),l=(0,r.useRef)(null);return(0,U.R)(t,t,!e.isLoggedIn),r.createElement(r.Fragment,null,r.createElement(G,{dropdownRef:t,...e}),r.createElement(Y,{dropdownRef:l,...e}))};var X=l(84423),ee=l(82168),et=l(62663),el=l(243),ea=l(988),er=l(90690),en=l(69247),es=l(59609),ei=l(62203),eo=l(73804),ec=l(77602),ed=l(79746),em=l(68531),eu=l(78957),ep=l(77332),eh=l(84185),ev=l(71227);let eE=e=>!(0,ev.m5)(e)&&(0,ei.ok)(e)&&!(0,el.jt)(e)&&!(0,_.M7)(e),eg=()=>{let{trans:e}=(0,M.QT)(),t=(0,I.T)(),l=(0,N.C)(eE);return r.createElement(u.OL,{className:(0,x.AK)("about-us-button media-up-to-m-hidden",{"about-us-button--hidden":!l}),to:"/about",onClick:()=>{t((0,h.d2)(O.a.ABOUT_US_IN_HEADER))}},e("footer.aboutStripchat"))};var eb=l(65103);let ef=({className:e,dropdownRootRefHandler:t,isDropdownOpen:l,keepDropdownOpen:u,dropdownLinkClickHandler:p,onClick:h})=>{let{trans:v}=(0,M.QT)(),E=(0,N.C)(_.ts),g=(0,N.C)(_.M7),b=(0,N.C)(_._o),f=(0,N.C)(Z.XV),C=(0,N.C)(eb.xV),y=(0,N.C)(Z._f),S=(0,N.C)(er.d),{isLayoutUpToL:T}=(0,et.do)("isLayoutUpToL"),R=g&&E&&!(0,a.Z)(P.Gv,e=>E[e]),L=E&&!E.isStudio&&!E.isModel,D=(0,N.C)(ep.Y),B=(0,N.C)(ei.ok),F=(0,N.C)(ea.Us),U=(0,N.C)(eb.WC),H=(0,N.C)(eb.Gy),V=g&&!b,$=(0,N.C)(s.u),z=(0,N.C)(i.Xt),q=(0,N.C)(eb.qx),Q=(0,N.C)(ec.hm),j=(0,N.C)(e=>{var t;return(0,eo.Lw)(e,null!==(t=null==E?void 0:E.username)&&void 0!==t?t:"")}),G=(0,N.C)(Z.cu),Y=(0,N.C)(es.qA),ev=(0,N.C)(el.jt),eE=(0,N.C)(ed.ZB),ef=null==S?void 0:S.blog,eC=(0,N.C)(e=>(0,en.qy)(e,{isLayoutUpToL:T})),ey=(0,N.C)(e=>(0,el.BD)(e)),eN=(0,n.k6)(),e_=(0,c.tI)(),ek=V&&E&&!E.isModel&&!E.isStudio,eA=(0,I.T)(),eS=()=>{e_()},eT=()=>{ev&&(eN.push(`/${eE}`),eA((0,em.QL)(eE)),ee.Z.reset())},ew=e=>{null==p||p(e),null==h||h()};return r.createElement("div",{className:(0,x.AK)("header-user-menu","header-dropdown",e),ref:t,onClick:h},V?r.createElement("a",{className:(0,x.AK)("dropdown-link media-up-to-s-hidden","hidden-ipad-portrait",{active:l,"invisible-mode":H}),onClick:ew},E&&r.createElement(k.Z,{user:(0,w.T$)(E),modelData:(0,A.tA)(E),size:30,showInvisibleStatus:!0,shouldShowRealLevel:!0}),(!U||q)&&r.createElement(d.Z,{type:"alert-medium"},"!"),r.createElement("span",{className:"dropdown-arrow"},r.createElement(m.Z,{img:"sort"}))):null,r.createElement(eg,null),V||z?null:r.createElement(K.Z,{className:"btn btn-signup",triggerSource:O.Dt.HEADER,type:"signup",onSuccess:eT},r.createElement("span",{className:"media-after-m-hidden"},v("ru"!==y?"login.joinNowMobileHeaderNew":"login.joinNowMobileHeader")),r.createElement("span",{className:"media-up-to-s-hidden"},v("login.joinNow"))),r.createElement("a",{className:(0,x.AK)("dropdown-link mobile-nav-link media-after-m-hidden",{active:l}),onClick:ew},r.createElement("span",null,r.createElement(W.Z,null),r.createElement(m.Z,{img:"menu-mobile",size:20}),(!U||q)&&r.createElement(d.Z,{type:"alert-medium"},"!"))),V||$?null:r.createElement(K.Z,{className:"btn btn-outline media-up-to-s-hidden",triggerSource:O.Dt.HEADER,type:"login",onSuccess:eT},v("login.logIn")),l?r.createElement(J,{currentUser:E,isEmailVerified:U,isInvisible:H,isFavoritesLinkVisible:!!ek,isLoggedIn:g,isReferralProgramAvailable:f,isSandbox:F,userProfile:C,shouldShowMyCollection:!!R,shouldShowDocumentsValidation:q,profileUrl:j,isPageAllowedToStartBroadcast:ey,keepDropdownOpen:u,topModelsLink:Q,toggleInvisibleMode:e=>eA((0,eh._e)(e)),onCreateNewAccountMobileClick:()=>{eS()},onLoginMobileClick:()=>{eS()},onBuyTokensClick:()=>{eS(),eA((0,o.U1)({triggerSource:P.FO.MOBILE_HEADER_MENU_BUY_TOKENS}))},isCurrentUserStudioAdmin:G,isStickyHeaderActive:eC,isNewInternalFeedbackItemVisible:D,isExternalFeedbackVisible:!D,onNewFeedbackItemClick:()=>{eS(),X.P4.show(eu.S,{isRadiosVisible:!0,description:v("userFeedback.feedback-modal.description.default"),iconVariant:"default",source:"dropdown_menu",newsId:void 0})},feedbackUrl:Y,newsEnabled:!!L,onSuccess:eT,shouldShowAbout:B,shouldShowBlog:!!ef}):null)}},75764:(e,t,l)=>{l.d(t,{u:()=>a});let a=(0,l(98846).n7)({resolved:{},chunkName:()=>"MediaGalleryViewer",isReady(e){let t=this.resolve(e);return!0===this.resolved[t]&&!!l.m[t]},importAsync:()=>Promise.all([l.e(3616),l.e(1068)]).then(l.bind(l,68978)),requireAsync(e){let t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){return l(this.resolve(e))},resolve:()=>68978});a.displayName="MediaGalleryViewerLazy"},12162:(e,t,l)=>{l.d(t,{P:()=>n,b:()=>r});var a=l(98941);let r=({mainPersonGracePeriodTillDate:e,isStudio:t,isModelFromStudio:l,person:r,isMainPerson:n,mainPersonGracePeriodTillActive:s,isCurrentUserStudioAdmin:i})=>!!n||r.personStatus!==a.I$.REJECTED&&!r.isReUploadNeeded&&!r.isReUploadNeeded&&!!e&&!!s&&(!!t||!!i||!l),n=({firstName:e,lastName:t})=>[e,t].filter(Boolean).join(" ")},87489:(e,t,l)=>{l.d(t,{Nv:()=>s,PN:()=>c,n3:()=>o,tA:()=>i});var a=l(27378),r=l(32284);let n=a.createContext(void 0),s=({modelData:e,children:t})=>a.createElement(n.Provider,{value:e},t),i=e=>(0,r.gl)(e)?{isGenderEditable:e.isGenderEditable,amazonWishlist:e.amazonWishlist,profileCountry:e.profileCountry,isApprovedModel:e.isApprovedModel,isNonNude:e.isNonNude,contestGender:e.contestGender,hallOfFame:e.hallOfFame,topBestPlace:e.topBestPlace,isLive:e.isLive,offlineStatus:e.offlineStatus,canReport:e.canReport,snapshotTimestamp:e.snapshotTimestamp,popularSnapshotTimestamp:e.popularSnapshotTimestamp,previewUrlThumbBig:e.previewUrlThumbBig,previewUrlThumbSmall:e.previewUrlThumbSmall,status:e.status,isPornStar:e.isPornStar,doPrivate:e.doPrivate,doP2p:e.doP2p,avatarUrlOriginal:e.avatarUrlOriginal}:{isGenderEditable:e.isGenderEditable,isApprovedModel:e.isApprovedModel,profileCountry:e.profileCountry,amazonWishlist:e.amazonWishlist,studioWebsite:e.studioWebsite,studioName:e.studioName,studioAdditionalContact:e.studioAdditionalContact,isNonNude:e.isNonNude,contestGender:e.contestGender,canReport:e.canReport},o=e=>(0,a.useMemo)(()=>{if(e)return i(e)},[e]),c=()=>(0,a.useContext)(n)},20436:(e,t,l)=>{l.d(t,{f:()=>P});var a=l(47722),r=l(27378),n=l(65804),s=l(29413),i=l(56322),o=l(61435),c=l(99973),d=l(84423),m=l(99748),u=l(97606),p=l(84088),h=l(94380);let v=e=>{switch(e.reportType){case"content":return`${e.reportType}/${e.contentType}/${e.contentId}`;case"model":var t;return`${e.reportType}/${null===(t=e.reportedUser)||void 0===t?void 0:t.id}`;case"message":case"privateMessage":return`${e.reportType}/${e.chatOwnerId}/${e.messageId}`;case"user":return`${e.reportType}/${e.reportedUser.id}`;default:return""}},E=(e=!1)=>({limitType:void 0,isLimitReached:e}),g={},b=e=>{var t;let l=v(e);return{cache:null!==(t=g[l])&&void 0!==t?t:E(e.disabled),updateCache:e=>{g[l]=e}}},f=e=>(t,l,{Api:a})=>a.post("/contents-reports/checking",e),C=e=>(t,l,{Api:a})=>a.post("/message-reports/checking",e),y=e=>(t,l,{Api:a})=>a.post("/private-message-reports/checking",e),N=e=>(t,l,{Api:a})=>a.post(`/models/${e}/reports/checking`),_=e=>(t,l,{Api:a})=>a.post(`/users/${e}/reports/checking`),k=e=>{let{cache:t,updateCache:l}=b(e),[a,n]=(0,r.useState)(t);return{limitInfo:a,disableReportPossibility:e=>{let t={limitType:e,isLimitReached:!0};n(t),l(t)}}},A=e=>{let t=(0,h.T)(),l=async()=>{let l;if("content"===e.reportType){let{contentType:l,contentId:a}=e;await t(f({contentType:l,contentId:a}))}if("message"===e.reportType){let{messageId:l,chatOwnerId:a}=e;await t(C({messageId:l,modelId:a}))}if("model"===e.reportType&&e.reportedUser){let{reportedUser:a}=e;l=await t(N(a.id))}if("privateMessage"===e.reportType){let{messageId:l}=e;await t(y({messageId:l}))}if("user"===e.reportType&&e.reportedUser){let{reportedUser:l}=e;await t(_(l.id))}return l},[{fetching:a,error:r},n]=(0,p.HQ)(l);return{checkReportLimits:n,isLoading:a,error:r}};var S=l(71776);let T={root:"ReportButton#X2",root_withoutText:"ReportButton_withoutText#wB",tooltip:"ReportButton__tooltip#DI",tooltipPortalContainer:"ReportButton__tooltipPortalContainer#lw",text:"ReportButton__text#IV"},w={small:16,medium:20},P=({iconSize:e="small",className:t,isTextHidden:l,portalContainerId:p,iconClassName:h,tooltipPosition:v,shouldHideTooltipTriangle:E,onClick:g,...b})=>{let{trans:f}=(0,u.QT)(),{reportType:C}=b,{limitInfo:{isLimitReached:y},disableReportPossibility:N}=k(b),{checkReportLimits:_,isLoading:P}=A(b),M=(0,r.useRef)(null),[I,R]=(0,r.useState)(!1);if(!b.reportedUser)return null;let Z=async e=>{e.stopPropagation(),_().then(e=>{null==g||g(),d.P4.show(S.w,{...b,reportModelResponse:e})}).catch(e=>{var t;N(null===(t=e.details)||void 0===t?void 0:t.limitType)})},L=f(`reports.button.title.${C}`),D=I&&(l||y)&&!(!y&&c.BROWSER_CAPABILITIES.touch);return r.createElement(r.Fragment,null,p===o.y.IDS.REPORT_LIMIT_PORTAL_CONTAINER&&r.createElement(o.y,{className:T.tooltipPortalContainer,id:o.y.IDS.REPORT_LIMIT_PORTAL_CONTAINER}),r.createElement(a.mI,{onMouseOver:()=>R(!0),onMouseOut:()=>R(!1),className:(0,m.AK)(T.root,t,T.text,{[T.root_withoutText]:l}),"aria-label":l?L:void 0,disabled:y||P,onClick:Z,ref:M},r.createElement(s.Z,{className:h,img:"warning-triangle-outline-ds",size:w[e]}),!l&&r.createElement("span",null,L)),D&&r.createElement(i.a,{portalContainerId:p,shouldHideTriangle:E,placement:null!=v?v:c.BROWSER_CAPABILITIES.touch?"left":"top",isMobileRelative:!1,targetRef:M,isForceVisible:!0,maxWidth:218},y?r.createElement(n.Z,{className:T.tooltip,wrapper:"message"===b.reportType?"div":"ul",messageId:f("reports.button.limits.general"),elements:{br:r.createElement("br",null),li:r.createElement("li",null)}}):r.createElement("span",{className:T.text},L)))}},39890:(e,t,l)=>{l.d(t,{W:()=>n});var a=l(27378),r=l(98655);let n=(0,l(98846).n7)({resolved:{},chunkName:()=>"ReportModal",isReady(e){let t=this.resolve(e);return!0===this.resolved[t]&&!!l.m[t]},importAsync:()=>l.e(4328).then(l.bind(l,63282)),requireAsync(e){let t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){return l(this.resolve(e))},resolve:()=>63282},{ssr:!1,fallback:a.createElement(r.c,null)})},71776:(e,t,l)=>{l.d(t,{w:()=>n});var a=l(27378),r=l(98655);let n=(0,l(98846).n7)({resolved:{},chunkName:()=>"ReportModalV2",isReady(e){let t=this.resolve(e);return!0===this.resolved[t]&&!!l.m[t]},importAsync:()=>l.e(2167).then(l.bind(l,59523)),requireAsync(e){let t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){return l(this.resolve(e))},resolve:()=>59523},{ssr:!1,fallback:a.createElement(r.c,null)})},48300:(e,t,l)=>{l.d(t,{y:()=>n});var a=l(27378),r=l(98655);let n=(0,l(98846).n7)({resolved:{},chunkName:()=>"SavePrivateRecordModal",isReady(e){let t=this.resolve(e);return!0===this.resolved[t]&&!!l.m[t]},importAsync:()=>l.e(9526).then(l.bind(l,55860)),requireAsync(e){let t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){return l(this.resolve(e))},resolve:()=>55860},{ssr:!1,fallback:a.createElement(r.c,null)})},15523:(e,t,l)=>{l.d(t,{i:()=>n});var a=l(27378),r=l(98655);let n=(0,l(98846).n7)({resolved:{},chunkName:()=>"SelectUsernameModal",isReady(e){let t=this.resolve(e);return!0===this.resolved[t]&&!!l.m[t]},importAsync:()=>l.e(1523).then(l.bind(l,88401)),requireAsync(e){let t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){return l(this.resolve(e))},resolve:()=>88401},{ssr:!1,fallback:a.createElement(r.c,null)})},8449:(e,t,l)=>{l.d(t,{Z:()=>b});var a=l(27378),r=l(4289),n=l(57174),s=l(65804),i=l(58927),o=l(74753),c=l(99973),d=l(97606),m=l(94380),u=l(95654),p=l(79347),h=l(12278),v=l(56548);let E={display:"none"},g=({field:e,isUpdating:t,error:l,inputRef:r})=>{let{trans:n}=(0,d.QT)(),s=(null==l?void 0:l.details)||{};return a.createElement("div",{className:"form-field"},a.createElement("label",{className:"form-label",htmlFor:e},n(`confirmEmail.form.labels.${e}`)),a.createElement("span",{className:"form-input"},a.createElement(o.Z,{type:"password",name:e,id:e,ref:r,disabled:t,maxLength:c.eY}),s.type===e&&a.createElement(i.Z,{error:{message:s.text},targetId:e})))},b=()=>{let{trans:e}=(0,d.QT)(),t=(0,u.C)(h.ts),l=(0,u.C)(v.f),i=(0,u.C)(v.b),c=(0,m.T)(),b=(0,a.useRef)(null),f=(0,a.useRef)(null);if(!t)return null;let{username:C}=t;return a.createElement("form",{className:"set-password"},a.createElement("div",{className:"set-password-title"},e("confirmEmail.form.title")),a.createElement("div",{className:"set-password-description"},a.createElement(s.Z,{elements:{link:a.createElement(r.rU,{to:"/settings"})},messageId:"confirmEmail.form.description"})),a.createElement("div",{className:"set-password-inputs"},a.createElement(o.Z,{type:"text",name:"login",id:"login",value:C,style:E}),a.createElement(g,{field:"password",isUpdating:l,error:i,inputRef:b}),a.createElement(g,{field:"confirmPassword",isUpdating:l,error:i,inputRef:f})),a.createElement("div",{className:"set-password-controls"},a.createElement(n.ZP,{disabled:l,size:"medium",style:"apply",type:"submit",onClick:e=>{var t,l;e.preventDefault();let a=(null===(t=b.current)||void 0===t?void 0:t.value)||"",r=(null===(l=f.current)||void 0===l?void 0:l.value)||"";c((0,p.Cp)(a.trim(),r.trim()))}},e("confirmEmail.form.buttons.setPassword")),a.createElement(n.ZP,{disabled:l,size:"medium",to:"/",type:"link",replace:!0},e("confirmEmail.form.buttons.later"))))}},49743:(e,t,l)=>{l.d(t,{q:()=>n});var a=l(27378),r=l(98655);let n=(0,l(98846).n7)({resolved:{},chunkName:()=>"SimpleMediaModal",isReady(e){let t=this.resolve(e);return!0===this.resolved[t]&&!!l.m[t]},importAsync:()=>l.e(6053).then(l.bind(l,51594)),requireAsync(e){let t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){return l(this.resolve(e))},resolve:()=>51594},{ssr:!1,fallback:a.createElement(r.c,null)})},85582:(e,t,l)=>{l.d(t,{K:()=>n});var a=l(27378),r=l(98655);let n=(0,l(98846).n7)({resolved:{},chunkName:()=>"TokensGiveawayModal",isReady(e){let t=this.resolve(e);return!0===this.resolved[t]&&!!l.m[t]},importAsync:()=>l.e(7399).then(l.bind(l,40531)),requireAsync(e){let t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){return l(this.resolve(e))},resolve:()=>40531},{ssr:!1,fallback:a.createElement(r.c,null),displayName:"tokensGiveaway"})},95258:(e,t,l)=>{l.d(t,{Q:()=>n});var a=l(27378),r=l(98655);let n=(0,l(98846).n7)({resolved:{},chunkName:()=>"UltimatePerksModals",isReady(e){let t=this.resolve(e);return!0===this.resolved[t]&&!!l.m[t]},importAsync:()=>l.e(4505).then(l.bind(l,86859)),requireAsync(e){let t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){return l(this.resolve(e))},resolve:()=>86859},{ssr:!1,fallback:a.createElement(r.c,null)})},90490:(e,t,l)=>{l.d(t,{h:()=>n});var a=l(27378),r=l(98655);let n=(0,l(98846).n7)({resolved:{},chunkName:()=>"UltimatePerksModals",isReady(e){let t=this.resolve(e);return!0===this.resolved[t]&&!!l.m[t]},importAsync:()=>l.e(4505).then(l.bind(l,91408)),requireAsync(e){let t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){return l(this.resolve(e))},resolve:()=>91408},{ssr:!1,fallback:a.createElement(r.c,null)})},81004:(e,t,l)=>{l.d(t,{o:()=>n});var a=l(27378),r=l(98655);let n=(0,l(98846).n7)({resolved:{},chunkName:()=>"UltimatePerksModals",isReady(e){let t=this.resolve(e);return!0===this.resolved[t]&&!!l.m[t]},importAsync:()=>l.e(4505).then(l.bind(l,76434)),requireAsync(e){let t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){return l(this.resolve(e))},resolve:()=>76434},{ssr:!1,fallback:a.createElement(r.c,null)})},90827:(e,t,l)=>{l.d(t,{b:()=>a});let a=(0,l(98846).n7)({resolved:{},chunkName:()=>"UploadCoverVideoModal",isReady(e){let t=this.resolve(e);return!0===this.resolved[t]&&!!l.m[t]},importAsync:()=>l.e(1898).then(l.bind(l,65857)),requireAsync(e){let t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){return l(this.resolve(e))},resolve:()=>65857})},40462:(e,t,l)=>{l.d(t,{J:()=>a});let a=(0,l(98846).n7)({resolved:{},chunkName:()=>"UploadDocumentModal",isReady(e){let t=this.resolve(e);return!0===this.resolved[t]&&!!l.m[t]},importAsync:()=>l.e(9854).then(l.bind(l,22251)),requireAsync(e){let t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){return l(this.resolve(e))},resolve:()=>22251})},48525:(e,t,l)=>{l.d(t,{z:()=>n});var a=l(27378),r=l(98655);let n=(0,l(98846).n7)({resolved:{},chunkName:()=>"UploadVideoErrorModal",isReady(e){let t=this.resolve(e);return!0===this.resolved[t]&&!!l.m[t]},importAsync:()=>l.e(2908).then(l.bind(l,5195)),requireAsync(e){let t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){return l(this.resolve(e))},resolve:()=>5195},{ssr:!1,fallback:a.createElement(r.c,null)})},7474:(e,t,l)=>{l.d(t,{Z:()=>a});let a=l(57094).Z},49196:(e,t,l)=>{l.d(t,{Z:()=>y});var a=l(27378),r=l(48204),n=l(35840),s=l(62668),i=l(11850),o=l(37652),c=l(7185),d=l(51932),m=l(29413),u=l(99748);let p={addTagUsernameToInputText:c.GS,modelChatSetInputFocus:d.P_},h=(0,r.$j)(null,p)(e=>a.createElement("span",{className:(0,u.AK)("user-levels-username-chat-owner",e.className,{disabled:e.isOwnShow}),onClick:()=>{e.addTagUsernameToInputText(e.user.username),e.modelChatSetInputFocus()}},a.createElement(m.Z,{img:"camera"}),e.user.username));var v=l(98371),E=l(12278),g=l(42339),b=l(57094),f=l(21044);let C={clearUserCardPopupParams:s.$x,setUserCardPopupParams:s.n},y=(0,r.$j)(e=>({currentUser:(0,E.ts)(e),viewcamModelId:(0,n.n5)(e)||null,isReportMessagesMobileEnabled:(0,g.tz8)(e),isTouchDevice:(0,v.Sx)(e)}),C)(e=>{let t,l,r;let{className:n,currentUser:s,fanClubTierTerm:c,favoritesYou:d,isAnonymous:m,isColored:u,isFavoritesYouIconVisible:p,isKing:v,isKnight:E,isLevelLeagueStatusVisible:g,isMobileRelativeNote:C,isMyKnight:y,isMyRecorder:N,isShowKnightButtonInPopup:_,isUltimateIconVisible:k,viewcamModelId:A,onClick:S,placeId:T,shouldHideReplay:w=!1,user:P,withoutUserCardPopup:M,shouldShowReportButton:I=!1,hideIcons:R,modelData:Z,message:L,isReportMessagesMobileEnabled:D,isTouchDevice:B,fanClubTier:F}=e,O={};"fanClubTier"in e&&(O.fanClubTier=e.fanClubTier),O.fanClubTierTerm=c;let x=!!(s&&s.id===A);return(m||(M?r=S:x?(t=()=>{setTimeout(()=>{e.setUserCardPopupParams({isShowKnightButtonInPopup:_,modelId:A,isKing:v,user:P,modelData:Z,userCardPopupId:(0,o.H)(P,T),sendPmShouldOpen:"hybrid",shouldHideReplay:w,shouldShowReportButton:I,fanClubTier:F})},0)},l=()=>{e.clearUserCardPopupParams(!0)},r=S):r=(t,l)=>{e.setUserCardPopupParams({message:L,shouldShowReportButton:I,isShowKnightButtonInPopup:_,modelId:A,isKing:v,user:P,userCardPopupId:(0,o.H)(P,T),shouldHideReplay:w,fanClubTier:F}),B&&D&&(l.stopPropagation(),(0,i.tI)()())}),P.id===A)?a.createElement(h,{className:n,user:P,isOwnShow:x}):a.createElement(b.Z,{isAdminIconVisible:!0,isGenderIconHidden:!0,modelData:Z,isNoteIndicatorVisible:!0,isIconVisible:!0,hideIcons:R,isVrIconVisible:!0,isKnight:E,isKing:v,isMyKnight:y,isAnonymous:m,isMobileRelativeNote:C,isLevelLeagueStatusVisible:g,isUltimateIconVisible:k,isFavoritesYouIconVisible:p,userRankingFallback:P.isModel||P.isStudio||(null==Z?void 0:Z.isApprovedModel)?f.AH:void 0,onMouseEnter:t,onMouseLeave:l,onClick:r,favoritesYou:d,placeId:T,size:14,user:P,isMyRecorder:N,className:n,textClassName:"user-name-card-wrapper-text",isColored:u,...O})})},5132:(e,t,l)=>{l.d(t,{Z:()=>c});var a=l(27378),r=l(92644),n=l(3034),s=l(97606),i=l(66483),o=l(66686);let c=e=>{let{trans:t}=(0,s.QT)(),l=[],{user:c,isLevelLeagueStatusVisible:d,levelBadgeSize:m,shouldShowRealLevel:u,fanClubTier:p,fanClubTierTerm:h,isVisibleTierTooltip:v=!0,isUltimateIconVisible:E,isUltimateIconTooltipVisible:g,userRankingFallback:b,placeId:f}=e,C=b||c.userRanking,y=(0,i.U)(c);if(d&&((null==C?void 0:C.level)||y)){if(y)l.push(a.createElement(r.Z,{key:"level",league:"grey",level:1,size:m||"regular",letter:"A"}));else{let e=u?null==C?void 0:C.realLeague:null==C?void 0:C.league,t=u?null==C?void 0:C.realLevel:null==C?void 0:C.level;l.push(a.createElement(r.Z,{key:"level",league:e,level:t,size:m||"regular"}))}}if(E&&c.isUltimate&&!y){let e=`username_ultimate_tooltip_${c.id}_${f}`;l.push(a.createElement("span",{key:"ultimate",className:`user-level-ultimate-badge user-level-ultimate-badge-size-${m}`,id:e})),g&&l.push(a.createElement(n.Z,{key:"ultimate-tooltip",targetId:e,isMobileRelative:!1,placement:"right"},t("userLevels.subscription.ultimateMemberTooltip")))}return(p&&l.push(a.createElement(o.Z,{fanClubTier:p,fanClubTierTerm:h,isVisibleTierTooltip:v,user:c,key:"tier"})),l.length)?a.createElement("span",{className:"username-status-icons"},l):null}},66686:(e,t,l)=>{l.d(t,{Z:()=>v});var a=l(63345),r=l(27378),n=l(48204),s=l(40108),i=l(95366),o=l(65804),c=l(3034),d=l(53788),m=l(97606),u=l(36886),p=l(79561);let h=(0,n.$j)(e=>{let{auth:{currentUser:t}}=e,{shouldShow:l}=(0,p.Y4)(e);return{shouldShowFanClubLink:l&&(!t||!t.isModel&&!t.isStudio)}})(e=>{let t=(0,d.v1)(),{trans:l}=(0,m.QT)(),{fanClubTier:a,fanClubTierTerm:n,shouldShowFanClubLink:c}=e,u=r.createElement(o.Z,{messageId:"fanClub.diamondTitle",elements:{link:c?r.createElement("span",{onClick:()=>{t.emit("fanClub:clickJoinFanClub",{})},className:"username-fan-club-link"}):r.createElement("span",null)},parameters:{tier:l(i.HN4[a])}});return n?r.createElement("div",null,r.createElement("span",{className:"username-tier-title"},r.createElement(s.g,{tier:a,size:18}),r.createElement(o.Z,{messageId:"fanClub.diamondTermTitle",parameters:{count:n},choiceParameter:"count"})),u):u}),v=e=>{let{fanClubTier:t,fanClubTierTerm:l,isVisibleTierTooltip:n,user:i}=e,o=(0,u.t)();if(!t)return null;let d=(0,a.Z)(`username_tier_tooltip_${i.id}`);return r.createElement("span",{className:"username-tier-icon",id:o?d:void 0},r.createElement(s.g,{tier:t}),n&&r.createElement(c.Z,{targetId:d,isMobileRelative:!1},r.createElement(h,{fanClubTier:t,fanClubTierTerm:l,user:i})))}},57094:(e,t,l)=>{l.d(t,{Z:()=>w});var a=l(18775),r=l(25e3),n=l(29955),s=l(27378),i=l(48204),o=l(35506),c=l(37652),d=l(99748),m=l(96499),u=l(92144),p=l(29413),h=l(97606);let v=()=>{let{trans:e}=(0,h.QT)();return s.createElement(u.Z,{tooltip:e("userInfoPopup.favoritesYou"),className:"username-icons-favorite-wrapper",key:"favoritesYou",position:"bottom"},s.createElement(p.Z,{className:"username-icons-favorite-icon",img:"favorited"}))};var E=l(3034);let g=({tooltipProps:e,placeId:t,userId:l})=>{let{trans:a}=(0,h.QT)(),r=`username_king_tooltip_${l}_${t}`;return s.createElement("div",{className:"username-role-icon king"},s.createElement("div",{className:"icon-wrapper",id:r},s.createElement(p.Z,{img:"king"})),s.createElement(E.Z,{isMobileRelative:!1,className:"icon-tooltip",targetId:r,placement:"top",maxWidth:200,...e},a("camChat.kingDescription")))};var b=l(99973);let f=({isCurrentUser:e,tooltipProps:t,isMyKnight:l,placeId:a,userId:r,size:n})=>{let{trans:i}=(0,h.QT)(),o=`username_knight_tooltip_${r}_${a}`,c=Math.round(.9*n),d=function({isCurrentUser:e,isMyKnight:t}){return e?"camChat.knightDescriptionMyself":t?"camChat.knightDescriptionMine":"camChat.knightDescription"}({isCurrentUser:e,isMyKnight:l}),[m,u]=(0,s.useState)(!1);return s.createElement("div",{className:"username-role-icon knight",key:"knight"},s.createElement("div",{className:"icon-wrapper",id:o,onClick:e=>{b.BROWSER_CAPABILITIES.touch&&(e.stopPropagation(),u(e=>!e))}},s.createElement(p.Z,{img:"knight",size:c})),s.createElement(E.Z,{isForceVisible:m,shouldPreventDefault:!1,isMobileRelative:!1,className:"icon-tooltip",targetId:o,placement:"top",maxWidth:200,...t},i(d)))},C=({placeId:e,isMobileRelative:t,note:l})=>{let a=`UsernameNoteIndicator_${e}`;return s.createElement("div",{key:a,id:a,className:"username-icon-box-note"},s.createElement(p.Z,{img:"note"}),s.createElement(E.Z,{isMobileRelative:t,targetId:a},l))},y=({placeId:e})=>{let{trans:t}=(0,h.QT)(),l=`username_vr_tooltip_${e}`;return s.createElement("div",{key:l,id:l,className:"username-icon-vr"},s.createElement(p.Z,{img:"vr"}),s.createElement(E.Z,{targetId:l},t("camChat.vrDescription")))},N=({isFavoritesYouIconVisible:e,isNoteIndicatorVisible:t,isMobileRelativeNote:l,isKingStateFrozen:a,frozenKingState:r,isVrIconVisible:n,isCurrentUser:i,favoritesYou:o,tooltipProps:c,isMyKnight:d,isKnight:m,placeId:u="",isKing:p,note:h,size:E,user:b})=>s.createElement(s.Fragment,null,(a?r:p)&&s.createElement(g,{userId:b.id,placeId:u,tooltipProps:c}),m&&s.createElement(f,{isCurrentUser:i,tooltipProps:c,isMyKnight:d,placeId:u,userId:b.id,size:E}),n&&b.hasVrDevice&&s.createElement(y,{placeId:u}),t&&!!h&&s.createElement(C,{placeId:u,isMobileRelative:l,note:h}),e&&o&&s.createElement(v,null)),_=({user:e,size:t,isModelIconVisible:l,isGenderIconHidden:a,isAdminIconVisible:r})=>{var n,i;let{trans:o}=(0,h.QT)(),c=Math.floor(1.5*t);return e.isModel&&l?s.createElement("div",{className:"username-role-icon model",key:"model"},s.createElement(p.Z,{img:"webcam",size:t})):s.createElement(s.Fragment,null,(null==e?void 0:null===(n=e.profile)||void 0===n?void 0:n.gender)&&!a&&s.createElement("div",{className:"username-role-icon gender",key:"gender"},s.createElement(p.Z,{img:null==e?void 0:null===(i=e.profile)||void 0===i?void 0:i.gender,size:c})),e.hasAdminBadge&&s.createElement("div",{className:"username-role-icon admin",key:"admin"},r&&s.createElement(p.Z,{img:"star",size:t}),s.createElement("span",null,o("admin"))))},k=({isFavoritesYouIconVisible:e,isNoteIndicatorVisible:t,isAdditionIconVisible:l,isMobileRelativeNote:a=!0,isIconVisible:r=!0,isAdminIconVisible:n,isGenderIconHidden:i,isModelIconVisible:o,isKingStateFrozen:c,frozenKingState:d,isVrIconVisible:u,isCurrentUser:p,tooltipProps:h={},favoritesYou:v,isMyKnight:E,modelData:g,isKnight:b,placeId:f="",isKing:C,note:y,size:k=16,user:A})=>{let{fontSizeIconFactor:S}=(0,m.m3)();return s.createElement("div",{className:"username-icons"},r&&s.createElement(_,{isAdminIconVisible:n,isGenderIconHidden:i,isModelIconVisible:o,size:k*S,modelData:g,user:A}),l&&s.createElement(N,{isFavoritesYouIconVisible:e,isNoteIndicatorVisible:t,isMobileRelativeNote:a,isKingStateFrozen:c,frozenKingState:d,isVrIconVisible:u,size:k*S,isCurrentUser:p,favoritesYou:v,tooltipProps:h,isMyKnight:E,isKnight:b,placeId:f,isKing:C,note:y,user:A}))};var A=l(5132),S=l(10864);class T extends s.Component{static getDerivedStateFromProps({isKing:e,isKingStateFrozen:t},{frozenKingState:l}){return t&&(0,r.Z)(l)?{frozenKingState:e}:null}renderIcons(){let{isAdditionIconVisible:e,isAdminIconVisible:t,isCurrentUser:l,isGenderIconHidden:a,isIconVisible:r,isKing:n,isKingStateFrozen:i,isKnight:o,isModelIconVisible:c,isMyKnight:d,isNoteIndicatorVisible:m,isVrIconVisible:u,isMobileRelativeNote:p=!0,isFavoritesYouIconVisible:h,favoritesYou:v,modelData:E,note:g,placeId:b,size:f=16,tooltipProps:C,user:y,isAnonymous:N,isMyRecorder:_}=this.props,{frozenKingState:A}=this.state;return N?null:s.createElement(k,{modelData:E,frozenKingState:A,isAdditionIconVisible:e,isAdminIconVisible:t,isCurrentUser:l,isGenderIconHidden:a,isIconVisible:r,isKing:n,isKingStateFrozen:i,isKnight:o,isModelIconVisible:c,isMyKnight:d,isNoteIndicatorVisible:m,isVrIconVisible:u,isMobileRelativeNote:p,isFavoritesYouIconVisible:h,favoritesYou:v,note:g,placeId:b,size:f,tooltipProps:C,user:y,isMyRecorder:_})}render(){let{className:e,textClassName:t,fanClubTier:l,fanClubTierTerm:a,hideIcons:r,isAnonymous:i,isColored:m=!0,isLevelLeagueStatusVisible:u=!0,isLevelStatusTooltipVisible:p=!0,isUltimateIconTooltipVisible:h=!0,isUltimateIconVisible:v=!0,isVisibleExTooltip:E,isVisibleTierTooltip:g=!0,levelBadgeSize:b="small",link:f,placeId:C,shouldShowRealLevel:y,user:N,userRankingFallback:_}=this.props;return(0,n.Z)(N)?(o.ZP.error("Empty user supplied in UserName component props"),null):s.createElement("div",{className:(0,d.AK)("username","username-userlevels",e,{colored:m}),key:"username"},s.createElement("div",{className:"username-level-wrapper"},s.createElement("div",{className:"username-level",onClick:this.handleUserNameLevelClick},s.createElement(c.Z,{textClassName:t,isAnonymous:i,isColored:m,isVisibleExTooltip:E,link:f,user:N,shouldShowRealLevel:y,userRankingFallback:_,placeId:C,onClick:this.usernameContentClickHandler,onMouseEnter:this.props.onMouseEnter,onMouseLeave:this.props.onMouseLeave,rightSideComponent:this.renderIcons()},!i&&!r&&s.createElement(A.Z,{user:N,isLevelLeagueStatusVisible:u&&!N.isModel&&!N.isStudio,levelBadgeSize:b,isLevelStatusTooltipVisible:p,fanClubTier:l,fanClubTierTerm:a,isVisibleTierTooltip:g,shouldShowRealLevel:y,userRankingFallback:_,isUltimateIconVisible:v,isUltimateIconTooltipVisible:h,placeId:C})))))}constructor(e){super(e),(0,a._)(this,"usernameContentClickHandler",()=>{let{onUserNameContentClick:e,user:t}=this.props;e&&e(t)}),(0,a._)(this,"handleUserNameLevelClick",e=>{let{onClick:t,user:l}=this.props;t&&t(l,e)}),this.state={frozenKingState:null}}}(0,a._)(T,"defaultProps",{isAdditionIconVisible:!0,isAdminIconVisible:!1,isColored:!0,isCurrentUser:!1,isGenderIconHidden:!1,isIconVisible:!0,isKing:!1,isKingStateFrozen:!1,isAnonymous:!1,isKnight:!1,isLevelStatusTooltipVisible:!0,isLevelStatusVisible:!1,isModelIconVisible:!1,isMyKnight:!1,isNoteIndicatorVisible:!1,isVrIconVisible:!1,isMobileRelativeNote:!0,isVisibleTierTooltip:!0,size:16,isMyRecorder:!1});let w=(0,i.$j)((e,t)=>{let{auth:l}=e,{user:a,isNoteIndicatorVisible:r}=t;return{note:r?(0,S.q)(e,t.user):null,isCurrentUser:l.isLoggedIn&&l.currentUser.id===a.id}})(T)},71759:(e,t,l)=>{l.d(t,{P:()=>r});var a=l(27378);let r=(0,l(98846).n7)({resolved:{},chunkName:()=>"UserOnBoardingModal",isReady(e){let t=this.resolve(e);return!0===this.resolved[t]&&!!l.m[t]},importAsync:()=>l.e(9419).then(l.bind(l,8588)),requireAsync(e){let t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){return l(this.resolve(e))},resolve:()=>8588},{ssr:!1,fallback:a.createElement(a.Fragment,null)})},29561:(e,t,l)=>{let a;l.d(t,{S:()=>g});var r=l(93704),n=l(53522),s=l(95366),i=l(84423),o=l(70203),c=l(95083),d=l(33915),m=l(73804),u=l(12278),p=l(24933),h=l(71759),v=l(40686);let E=e=>{a&&clearTimeout(a),(0,v.ve)(e)&&(a=setTimeout(()=>{i.P4.show(h.P,{strategy:"unshift"})},300),o.m.remove("showOnboarding"))},g=()=>(e,t)=>{let l=t(),{auth:{currentUser:a}}=l;if(!(0,v.ve)(l)||(null==a?void 0:a.isModel)||(null==a?void 0:a.isStudio))return;let h=(0,r.hH)(l),g=(0,n.CE)(l),b=(0,u.M7)(l);if(i.P4.has(p.f)){o.m.set("showOnboarding");return}if(o.m.has("showOnboarding")&&(g||h)&&b){E(l);return}let f=(0,c.Yy)(l),C=(0,c.kH)(l),y=(0,c.U8)(l),N=(0,m.fm)(l),_=(0,d.Iz)(l),k=_.primaryTagId===s.MfT,A=_.primaryTagId===s.GTY,S=_.primaryTagId===s.oY8;if(!C&&!y&&!f&&!h){N&&(k||A)&&o.m.set("showOnboarding"),S&&o.m.set("showOnboarding");return}if(g||h){if(S){E(l);return}N&&(k||A)&&E(l)}}},64065:(e,t,l)=>{l.d(t,{Z:()=>s});var a=l(27378),r=l(99748),n=l(97606);let s=({status:e,className:t})=>{let{trans:l}=(0,n.QT)();return a.createElement("span",{className:(0,r.AK)("user-status-icon",e,t),title:l(`userStatus.${e}`)})}},56973:(e,t,l)=>{l.d(t,{M:()=>n});var a=l(27378),r=l(76603);let n=(e,t,l)=>{let n=a.useRef(null),s=a.useRef(null),i=a.useRef(!1),o=a.useRef(!1),c=a.useRef(e),d=a.useRef(t),m=a.useRef(performance.now());a.useEffect(()=>{d.current=t},[t]),a.useEffect(()=>{c.current=e},[e]);let u=a.useCallback(()=>{c.current&&d.current&&!o.current&&(n.current&&clearTimeout(n.current),r.q.metrics.histogram("time_to_play_readiness",(performance.now()-m.current)/1e3,"seconds",{playerType:d.current}),o.current=!0)},[]),p=a.useCallback(()=>{i.current||(i.current=!0,u())},[u]),h=a.useCallback(()=>{s.current&&s.current.addEventListener("canplay",p)},[p]),v=a.useCallback(()=>{s.current&&s.current.removeEventListener("canplay",p)},[p]);a.useEffect(()=>{v(),s.current=l,h()},[h,v,l]),a.useEffect(()=>()=>{n.current&&clearTimeout(n.current)},[]);let E=a.useCallback(()=>{n.current&&clearTimeout(n.current),i.current=!1,o.current=!1,m.current=performance.now(),n.current=setTimeout(u,1e4)},[u]);a.useEffect(()=>{E()},[e,t,E])}},7995:(e,t,l)=>{l.d(t,{L:()=>u,U:()=>p});var a=l(27378),r=l(38753),n=l(98846),s=l(80176),i=l(95654),o=l(243),c=l(73804),d=l(66483),m=l(32284);let u=(0,n.n7)({resolved:{},chunkName:()=>"viewcam",isReady(e){let t=this.resolve(e);return!0===this.resolved[t]&&!!l.m[t]},importAsync:()=>Promise.all([l.e(9641),l.e(6425),l.e(9562),l.e(7992),l.e(9813),l.e(8821),l.e(3132),l.e(3973),l.e(927),l.e(7243),l.e(8629),l.e(5254)]).then(l.bind(l,9617)),requireAsync(e){let t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){return l(this.resolve(e))},resolve:()=>9617}),p=e=>{let{history:t,location:l,match:n}=e,{username:s}=n.params,p=(0,i.C)(e=>(0,c.AQ)(e,s)),h=(0,i.C)(o.B2),v=(0,i.C)(d.A4);return h&&v&&(0,m.gl)(p)?a.createElement(r.J,{history:t,model:p}):a.createElement(u,{match:n,history:t,location:l})};p.checkAccess=s.UF},19171:(e,t,l)=>{l.d(t,{Z:()=>u});var a=l(18775),r=l(64489),n=l(27378),s=l(48204),i=l(40671),o=l(30399);let c={loadKingInfo:i.L},d=(0,r.Z)(({model:e,loadKingInfo:t})=>{e&&t(e.username)},1e4,{leading:!0,trailing:!1});class m extends n.Component{componentDidMount(){var e;(null===(e=this.element.current)||void 0===e?void 0:e.offsetWidth)&&d(this.props)}render(){return n.createElement("span",{ref:this.element,style:{width:"1px",position:"absolute",opacity:0}})}constructor(...e){super(...e),(0,a._)(this,"element",n.createRef())}}let u=(0,s.$j)(e=>({model:(0,o.ux)(e)}),c)(m)},79336:(e,t,l)=>{l.d(t,{Z:()=>S,j:()=>k});var a,r=l(27378),n=l(48204),s=l(1786),i=l(47289),o=l(18775),c=l(80936),d=l(87937),m=l(64696),u=l(54333),p=l(62182),h=l(27251),v=l(79561),E=l(29421);class g extends(a=r.Component){componentDidMount(){(0,m.Z)(this.propsUpdateToActionsMap,{},this.props)}componentDidUpdate(e){(0,m.Z)(this.propsUpdateToActionsMap,e,this.props)}render(){let{className:e}=this.props;return r.createElement("div",{className:e,ref:this.cSSVariablesWrapperRef},this.props.children)}constructor(...e){super(...e),(0,o._)(this,"nativeFullscreenExitTimestamp",0),(0,o._)(this,"cSSVariablesWrapperRef",(0,r.createRef)()),(0,o._)(this,"propsUpdateToActionsMap",[{update:["variablesStyles"],action:()=>{let{variablesStyles:e}=this.props;this.setStyle(e)}},{update:(e,t)=>!!(e.isNativeFullscreen&&e.isFullscreen&&!t.isFullscreen),action:()=>{this.nativeFullscreenExitTimestamp=Date.now()}},{update:[p.h3,"targetSelector","isHd","updateKey"],action:()=>this.elementPositionChangeHandler()}]),(0,o._)(this,"setStyle",e=>{let{cSSVariablesWrapperRef:t}=this;t.current&&Object.entries(e).forEach(([e,l])=>{t.current&&t.current.style.setProperty(e,l)})}),(0,o._)(this,"elementPositionChangeHandler",()=>{let{cSSVariablesWrapperRef:e}=this,{targetSelector:t,prefix:l,isFullscreen:a}=this.props,r=Date.now()-this.nativeFullscreenExitTimestamp<500;if((0,d.sk)()||a||r)return;let n=t&&document.querySelector(t)||e.current;if(!n)return;let s=n.getBoundingClientRect(),i=document.documentElement.clientHeight,o={[`--${l}-top`]:`${s.top+window.pageYOffset}px`,[`--${l}-left`]:`${s.left}px`,[`--${l}-height`]:`${s.height}px`,[`--${l}-width`]:`${s.width}px`,[`--${l}-layout-width`]:`${document.documentElement.clientWidth}px`,[`--${l}-layout-height`]:`${i}px`};this.setStyle(o)})}}(0,o._)(g,"defaultProps",{variables:{},prefix:u.l0,targetSelector:null});let b=(0,c.H)("windowWidth","windowHeight")((0,n.$j)((e,{prefix:t,variables:l})=>({variablesStyles:(0,u.I0)(e,{variables:l,prefix:t}),windowOrientation:(0,h.Mp)(e),isFullscreen:(0,E.cU)(e),isNativeFullscreen:(0,v.nz)(e)}))(g));var f=l(99973),C=l(99748),y=l(12712),N=l(54319),_=l(89166);let k={boundaryY:"view-cam-resizer-boundary-y",player:"view-cam-resizer-player"},A=(0,r.forwardRef)(({children:e,cssVariables:t,isHd:l,className:a,isBroadcasting:n,isBroadcastSettingsVisible:s,isVerticalStream:i,isViewCamPoster:o,isTheatreModeActive:c},d)=>{let[m,u]=(0,r.useState)(0);return(0,r.useImperativeHandle)(d,()=>({updatePosition:()=>u(e=>e+1)}),[]),r.createElement(b,{updateKey:m,targetSelector:`.${k.boundaryY}`,className:(0,C.AK)(a,"view-cam-resizer","view-cam-resizer-boundary-x",{"view-cam-resizer-broadcast":n,"view-cam-resizer-playing":!n,"view-cam-resizer-hd":l,"view-cam-resizer-vertical-stream":i,"view-cam-resizer-theatre-mode":c,"view-cam-resizer-with-settings":n&&s&&!f.BROWSER_CAPABILITIES.touch,"view-cam-resizer-poster":o}),prefix:"resizer",isHd:l,variables:t},e)}),S=(0,n.$j)(e=>{let t=(0,s.rt)(e),l=t?(0,i.WF)(e):(0,N.rr)(e),a=t?(0,u.zz)(e):(0,u.ZG)(e);return{isBroadcasting:t,cssVariables:a,isTheatreModeActive:(0,y.z)(e),isHd:(0,_.vs)({aspectRatio:l}).hd,isBroadcastSettingsVisible:e.player.isBroadcastSettingsVisible}},null,null,{forwardRef:!0})(A)}}]);