1"use strict"; 2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="7d224896-89d8-5a55-b71c-909e64f5da66")}catch(e){}}(); 3(self.webpackChunkclient=self.webpackChunkclient||[]).push([["3705"],{48476(e,a,t){t.d(a,{r:()=>J});var s=t(42062),i=t(69321),r=t(19197),o=t(31568),n=t(15782),d=t(31085),l=(0,s.memo)(e=>{var{realm:a}=e,t=(0,n.A)("users/profile/realms",a);return(0,d.jsx)("div",{className:"tag-label user-tag-label realm-tag-label "+a,children:t})}),c=(0,s.memo)(e=>{var{ownerId:a}=e,t=(0,o.sb)(a),i=(0,s.useMemo)(()=>(null==t?void 0:t.realm)||"",[t]);return i?(0,d.jsx)(l,{realm:i}):null}),h=t(15168),u=t(40049),p=(0,s.memo)(e=>{var{mood:a}=e,t=(0,n.A)("users/mood",a+"-label");return(0,d.jsx)("div",{className:"tag-label mood-tag-label "+a,children:t})}),v=t(97645),b=t(66691),m=(0,s.memo)(e=>{var{ownerId:a}=e,t=(0,b.J2)(()=>v.$.shared(a).mood,[a]);return void 0!==t?(0,d.jsx)(p,{mood:t||"unknown"}):null});let f=(0,s.memo)(e=>{var a=(0,n.A)("dict/zodiac",e.zodiac);return(0,d.jsx)("div",{className:"tag-label user-tag-label zodiac-tag-label",children:a})});var I=(0,s.memo)(e=>{var a,{ownerId:t}=e,s=null==(a=(0,o.sb)(t))||null==(a=a.birthday)?void 0:a.zodiac;return s?(0,d.jsx)(f,{zodiac:s}):null}),S=t(37375);function j(e){var{attendeeId:a,realmTagVisible:t}=e;return(0,d.jsxs)("div",{className:"tag-labels",children:[(0,d.jsx)(u.UserReviewerTagLabel,{ownerId:a}),(0,d.jsx)(h.UserNewcomerTagLabel,{ownerId:a}),!!t&&(0,d.jsx)(c,{ownerId:a}),(0,d.jsx)(S.UserOnlyChatTagLabel,{ownerId:a}),(0,d.jsx)(I,{ownerId:a}),(0,d.jsx)(m,{ownerId:a})]})}var x=t(14321);function w(e){var a,t=(0,b.J2)(()=>x.f.shared(e.userId).userIsFeaturedMember,[e.userId]),s=(0,o.sb)(e.attendeeId),i=null==s||null==(a=s.birthday)?void 0:a.zodiac,r=null==s?void 0:s.realm;return t?(0,d.jsx)(j,{attendeeId:e.attendeeId,realmTagVisible:!!r&&!("astro"===r&&i)}):null}var g=t(22183),C=t(35738),M=t(26672),k=t(99870),T=t.n(k),B=t(98153),E=t(37137),y=t(86133);let P=(0,s.memo)(e=>{var{birthdayTheme:a,onCallMotivationPopupClick:t,transparentBackground:o,closeButtonVisible:n,onCloseButtonClick:l,cheersMenuVisible:c,paymentRequiredFormEnabled:h,inputComponent:u,sendButtonComponent:p,toolbarVisible:v,messagesFilter:b,callMotivationPopupEnabled:m,attendeeId:f,userId:I,dialButtonEnabled:S,withBlurTextMessageBackgroun
3d:j,tagLabelsVisible:x,chatFormVisible:k,placement:P,copilotEnabled:_,messagesReactionsEnabled:A}=e,F=(0,s.useMemo)(()=>T()("chat__wrapper",{chat__birthdayTheme:a,chat__withCopilot:_,chat__transparentBackground:o,chat__cheersMenuVisible:c}),[a,_,o,c]);return(0,d.jsxs)("div",{className:F,children:[!!v&&(0,d.jsxs)("div",{className:"chat__chatToolbar",children:[(0,d.jsxs)("div",{className:"chat__userThumbnail",children:[(0,d.jsx)(g.e,{ownerId:e.attendeeId}),(0,d.jsx)("div",{className:"chat__userName",children:(0,d.jsx)(C.x,{ownerId:e.attendeeId})})]}),!!S&&(0,d.jsx)("div",{className:"chat__dialButton",children:(0,d.jsx)(y.DialButton,{userId:I,attendeeId:f,ctaName:"chat"})}),!!n&&(0,d.jsx)("div",{className:"chat__closeButton",children:(0,d.jsx)(M.J,{onClick:l})})]}),!!x&&(0,d.jsx)(w,{userId:e.userId,attendeeId:e.attendeeId}),(0,d.jsx)(i.b,{bus:B.A,userId:e.userId,attendeeId:e.attendeeId,instant:!1,cheersManualResendingEnabled:!0,birthdayTheme:a,paymentRequiredFormEnabled:h,withBlurTextMessageBackground:j,messagesFilter:b,messagesReactionsEnabled:A}),!!k&&(0,d.jsx)("div",{children:(0,d.jsx)(r.x,{bus:B.A,userId:e.userId,attendeeId:e.attendeeId,instant:!0,useSeparatePickerForSmiles:!0,canSendMedia:e.canSendMedia,canSendSmiles:e.canSendSmiles,canSendStickers:e.canSendStickers,cheersMenuVisible:c,birthdayTheme:a,inputComponent:u,sendButtonComponent:p,placement:P})}),!!m&&(0,d.jsx)(E.CallMotivationPopupInChat,{attendeeId:e.attendeeId,onClick:t})]})});var _=t(75841),A=t(17524),F=t(28138),N=t(7027),V={canSendStickers:!0,canSendSmiles:!0,canSendMedia:!0,closeButtonVisible:!1,transparentBackground:!1,paymentRequiredFormEnabled:!0,cheersMenuVisible:!1,callMotivationPopupEnabled:!1,toolbarVisible:!0,tagLabelsVisible:!0,chatFormVisible:!0,messagesReactionsEnabled:!1},J=(0,s.memo)(e=>{var{settings:a,userId:t,attendeeId:i,birthdayTheme:r,onCloseButtonClick:o,inputComponent:n,sendButtonComponent:l,onCallMotivationPopupClick:c,dialButtonEnabled:h=!1,placement:u}=e,p=(0,s.useMemo)(()=>Object.assign(V,a),[a]),v=(0,b.J2)(()=>t?(0,A.z)([N.S.shared(t).chatGenerationEnabled(i),N.S.shared(t).copilotButtonEnabled()]).pipe((0,F.T)(e=>{var[a,t]=e;return a||t})):(0,_.of)(!1),[i,t],!1);return(0,d.jsx)(P,Object.assign({userId:t,attendeeId:i,birthdayTheme:r,onCloseButtonClick:o,inputComponent:n,sendButtonComponent:l,onCallMotivationPopupClick:c,dialButtonEnabled:h,placement:u,copilotEnabled:v},p))})},35738(e,a,t){t.d(a,{x:()=>c});var s=t(31568),i=t(42062),r=t(78186),o=t(31085),n=(0,i.memo)(e=>{var{userName:a,format:t}=e;return t?(0,o.jsx)(r.X,{href:t,data:{name:a}}):(0,o.jsx)("span",{children:a})}),d=t(66038),l=(0,i.memo)(e=>{var{ownerId:a,format:t}=e,i=(0,s.sb)(a),r=null==i?void 0:i.name;return(0,d.gV)(i),(0,o.jsx)(n,{format:t,userName:r||""})}),c=(0,d.oI)(l,"users.name",e=>e.ownerId)},37375(e,a,t){t.d(a,{UserOnlyChatTagLabel:()=>m});var s=t(42062),i=t(75841),r=t(17524),o=t(28138),n=t(66691),d=t(87902),l=t(91994),c=t(14321),h=t(78186),u=t(99870),p=t.n(u),v=t(31085);let b=(0,s.memo)(()=>{var e=p()("tag-label user-tag-label","users-tag-labels-only-chat__onlyChatTagLabel");return(0,v.jsx)("div",{className:e,children:(0,v.jsx)(h.X,{href:"/users#only-chat"})})});var m=(0,s.memo)(e=>{var{ownerId:a}=e,t=(0,l.w)();return(0,n.J2)(()=>t&&a?(0,r.z)([d.t.shared().model(a),c.f.shared(t).userIsFeaturedMember]).pipe((0,o.T)(e=>{var[a,t]=e;return"services"===a&&t})):(0,i.of)(!1),[a,t],!1)?(0,v.jsx)(b,{}):null})},37137(e,a,t){t.d(a,{CallMotivationPopupInChat:()=>m});var s=t(91994),i=t(42062),r=t(66691),o=t(33374),n=t(31085);let d=(0,i.memo)(e=>{var a=Object.assign({},(function(e){if(null==e)throw TypeError("Cannot destructure "+e)}(e),e));return(0,n.jsx)("div",{className:"chat-call-motivation-popup-wrapper",children:(0,n.jsx)(o.X,Object.assign({},a,{allowMobileCalls:!0}))})});var l=t(75841),c=t(56823),h=t(84835),u=t(9453),p=t(92453),v=t(13462),b=t(64651),m=(0,i.memo)(e=>{var{attendeeId:a,onClick:t}=e,o=(0,s.w)(),m=(0,r.J2)(()=>v.T.shared().callMotivationPopup.expiryTtl,[],0),f=(0,r.J2)(()=>o&&m?h.i.shared(o).offer(a).pipe((0,p.M)(e=>{e&&h.i.shared(o).motivationVideoShowed(a)})):(0,l.of)(void 0),[o,m,a]),I=(0,i.useCallback)(()=>{o&&(h.i.shared(o).accept(a),null==t||t())},[o,a,t]),S=(0,i.useCallback)(()=>
3{o&&f&&(h.i.shared(o).reject(a),u.l.shared().setVisible(!1))},[o,a,f]),j=(0,r.hD)(()=>(0,c.O)(m).pipe((0,p.M)(()=>S())),[S,m]);return((0,i.useEffect)(()=>{j()},[j]),(0,i.useEffect)(()=>{f&&u.l.shared().setVisible(!0)},[f]),(0,b.Fd)(()=>{S()},[S]),o&&f)?(0,n.jsx)(d,{userId:o,attendeeId:a,onClick:I,onCloseClick:S,motivationVideo:f,ttl:m,cta:"chat"}):null})},22783(e,a,t){t.d(a,{J:()=>p});var s=t(42062),i=t(17524),r=t(28138),o=t(66691),n=t(13462),d=t(99870),l=t.n(d),c=t(15782),h=t(31085);let u=(0,s.memo)(e=>{var{price:a,className:t}=e,i=(0,c.A)("call","call-price-badge",{count:a}),r=(0,s.useMemo)(()=>l()("call-price-badge__badge",t),[t]);return(0,h.jsx)("span",{className:r,children:i})});var p=(0,s.memo)(e=>{var{type:a,className:t}=e,s=(0,o.J2)(()=>{var e=n.T.shared(),t="audio"===a?e.mcs.audioCallMinuteCost:e.videoChatPrices.pipe((0,r.T)(e=>e.twoWay));return(0,i.z)([e.callPriceEnabled,t]).pipe((0,r.T)(e=>{var[a,t]=e;return a&&t>0?t:0}))},[a],0);return s?(0,h.jsx)(u,{price:s,className:t}):null})},9453(e,a,t){t.d(a,{l:()=>o});var s=t(15526),i=t(97156),r=t(15654);class o{constructor(){this.visibleSubject=new i.t(!1),this.visible=this.visibleSubject.asObservable().pipe((0,r.F)())}setVisible(e){this.visibleSubject.next(e)}}o.shared=(0,s.G)(()=>new o)},84835(e,a,t){t.d(a,{i:()=>X});var s=t(58731),i=t(29109),r=t(14321),o=t(13462),n=t(20287),d=t(15526),l=t(97156),c=t(8733),h=t(75841),u=t(48830),p=t(82788),v=t(56607),b=t(17524),m=t(34578),f=t(15654),I=t(84190),S=t(50626),j=t(28138),x=t(44383),w=t(65052),g=t(53940),C=t(41392),M=t(56177),k=t(92453),T=t(36580),B=t(94375),E=t(45482),y=t(43751),P=t(10845),_=t(67276),A=t(56388),F=t(86013),N=t(32194),V=t(13230),J=t(22605),O=t(25871),U=t(21050),z=t(66382),R=t(10621),D="call-motivation-popup",L="call-motivation-popup-blocked-until",G=B.b.day;class X{constructor(e){this.popupBlockedUntil=new l.t(0),this.hideMotivationPopupEvent=new c.B,this.offerAttendeeSubject=new l.t(void 0),this.offerCache={},this.userId=e,this.activeChatsMotivationPopupShownState={},this.callPopUpEnabled=o.T.shared().callMotivationPopup.enabled.pipe((0,f.F)(),(0,I.n)(e=>e?E.Session.shared().userIsUsual:(0,h.of)(!1))),this.offerBlockingReasonSubject=ne
3w c.B,this.offerBlockingReason=this.offerBlockingReasonSubject.asObservable()}start(e){var a=new u.c(()=>{var e=new p.yU;return e.add(s.y.shared(D,this.userId).load(L).safeSubscribe(e=>{e&&e>Date.now()&&this.popupBlockedUntil.next(e)})),e.add(i.u.shared(this.userId).activeChats.pipe((0,S.J)(),(0,j.T)(e=>{var[a,t]=e;return a.filter(e=>!t.includes(e))})).safeSubscribe(e=>{e.forEach(e=>{this.activeChatsMotivationPopupShownState[e]&&delete this.activeChatsMotivationPopupShownState[e],U.J.shared("chat").clearAttendeeState(e)})})),e.add(this.hideMotivationPopupEvent.pipe((0,x.S)((e,a)=>"accept"===a.action?0:e+1,0),(0,w.Z)(0)).safeSubscribe(e=>{if(e>=3){var a=Date.now()+G;this.popupBlockedUntil.next(a),s.y.shared(D,this.userId).store(L,a).safeSubscribe()}})),e.add(this.offerAttendeeSubject.asObservable().pipe((0,S.J)(),(0,g.p)(e=>{var[a,t]=e;return!!a&&!t})).safeSubscribe(e=>{var[a]=e;U.J.shared("chat").notifyClosed("video",Date.now(),a)})),e.add(z.j.shared().chatAttendee.pipe((0,I.n)(e=>e?this.chatIsActive(e).pipe((0,I.n)(a=>a?this.videoAvailable(e).pipe((0,C.B)(100),(0,f.F)()):v.w)):v.w)).safeSubscribe(e=>{U.J.shared("chat").setVideoAvailable(e)})),e});e.add(this.callPopUpEnabled.pipe((0,f.F)(),(0,I.n)(e=>e?a:v.w)).safeSubscribe())}chatIsActive(e){return i.u.shared(this.userId).statusOfChatWith(e).pipe((0,j.T)(a=>(a||this.offerBlockingReasonSubject.next({attendeeId:e,reason:"chat-inactive"}),!!a)),(0,f.F)())}videoAvailable(e){return this.callPopUpEnabled.pipe((0,I.n)(a=>a?O.L.shared(this.userId).videoPromoAllowed(e,"mopup").pipe((0,I.n)(a=>a?(0,b.z)([r.f.shared(e).userIsFeaturedMember,this.chatIsActive(e),this.attendeeAvailableForCall(e),this.motivationPopupIsBlockedByUser(),this.motivationPopupIsBlockedByCall(e),this.callExists(),F.H.shared(this.userId).blockedByUser(e),N.T.shared().visible,A.E.shared(e).video.pipe((0,j.T)(e=>!!e))]).pipe((0,j.T)(a=>{var[t,s,i,r,o,n,d,l,c]=a;return[t&&s&&i&&!o&&!this.activeChatsMotivationPopupShownState[e]&&!n&&!d&&!l&&c,r]}),(0,j.T)(a=>{var[t,s]=a;return t&&s&&this.offerBlockingReasonSubject.next({attendeeId:e,reason:"blocked-by-user"}),t&&!s})):(0,h.of)(!1))):(0,h.of)(!1)),(0,f.F)())}attendeeAvailableForCall(e){return(0,b.z)([J.g.shared(this.userId).canCallTo(e,!0,!1),V.N.shared(this.userId).callIsAvailable(e,!0,!1)]).pipe((0,j.T)(e=>{var[a,t]=e;return a||t}),(0,f.F)())}motivationPopupIsBlockedByUser(){return this.popupBlockedUntil.pipe((0,j.T)(e=>(e||0)-Date.now()>0),(0,f.F)())}motivationPopupIsBlockedByCall(e){return(0,b.z)([n.u.shared(this.userId).calls((0,h.of)(1),e),o.T.shared().callMotivationPopup.daysOfNoVideochatToShow]).pipe((0,j.T)(e=>{var[a,t]=e,s=a.items[0];return!!s&&Date.now()-s.date.getTime()<t*B.b.day}),(0,f.F)())}callExists(){return(0,b.z)([_.M.shared(this.userId).state,y.Y.shared().get(P.A,this.userId).store.rxState()]).pipe((0,j.T)(e=>{var[a,t]=e;return"idle"!==a.status||"idle"!==t.status}),(0,f.F)())}offer(e){return this.offerCache[e]||(this.offerCache[e]=this.videoAvailable(e).pipe((0,I.n)(a=>a?U.J.shared("chat").canShowVideo().pipe((0,g.p)(e=>e),(0,M.s)(1),(0,I.n)(()=>(0,m.h)(A.E.shared(e).video.pipe((0,k.M)(e=>{e&&U.J.shared("chat").notifyShown("video")})),this.hideMotivationPopupEvent.pipe((0,g.p)(a=>a.attendeeId===e),(0,j.T)(()=>void 0))))):(0,h.of)(void 0)),(0,f.F)(R.L),(0,T.t)({refCount:!0,bufferSize:1}),(0,k.M)(a=>{this.offerAttendeeSubject.next(a?e:void 0)}))),this.offerCache[e]}accept(e){this.hideMotivationPopupEvent.next({attendeeId:e,action:"accept",timestamp:Date.now()})}reject(e){this.hideMotivationPopupEvent.next({attendeeId:e,action:"reject",timestamp:Date.now()})}motivationVideoShowed(e){this.activeChatsMotivationPopupShownState[e]=!0}}X.shared=(0,d.G)(e=>new X(e))},84419(e,a,t){t.d(a,{f:()=>r});var s=t(15526),i=t(12640);class r{constructor(e){this.logOfferDeclined=(e,a)=>{i._.shared(this.userId).logEvent("offer-to-videochat-declined",{attendeeId:e,cta:a}).safeSubscribe()},this.logOfferShowed=(e,a,t)=>{i._.shared(this.userId).logEvent("offer-to-videochat-showed",{attendeeId:e,cta:a,options:t}).safeSubscribe()},this.logOfferAccepted=(e,a,t)=>{i._.shared(this.userId).logEvent("offer-to-videochat-accepted",{attendeeId:e,cta:a,options:t}).safeSubscribe()},this.userId=e}logOfferBlocked(e,a,t){i._.shared(this.userId).logEvent("offer-to-videochat-blocked",{attendeeId:e,reason:a,cta:t}).safeSubscribe()}}r.shared=(0,s.G)(e=>new r(e))},94053(e,a,t){t.d(a,{I:()=>o});var s=t(32248),i=t(66691),r=t(75841);function o(e){return(0,i.J2)(()=>e?s.R.shared(e).cachedPresenceStatus:(0,r.of)(void 0),[e])}},80914(e,a,t){t.d(a,{f:()=>r});var s=t(28414),i=t(4988);function r(e,a,t){return void 0===a&&(a=1/0),a=1>(a||0)?1/0:a,(0,s.N)(function(s,r){return(0,i.h)(s,r,e,a,void 0,!0,t)})}}}]); 4//# sourceMappingURL=sourcemaps/a44a08f1f7e78ba9.js.map 5//# debugId=7d224896-89d8-5a55-b71c-909e64f5da66
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.