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]="f43f9809-b233-5cbc-8084-c92475217a76")}catch(e){}}(); 3(self.webpackChunkclient=self.webpackChunkclient||[]).push([["265"],{29706(e,r,a){a.d(r,{UserPopularTagLabel:()=>p});var o=a(72366),s=a(42062),i=a(15782),l=a(21958),t=a(99870),n=a.n(t),d=a(31085);let c=(0,s.memo)(e=>{var{ownerId:r,compactIndicator:a}=e,o=(0,i.A)("/users/profile","popular-member"),s=a?void 0:o,t=n()("tag-label","user-tag-label","users-tag-labels-popular__tag",{"users-tag-labels-popular__compactIndicator":a});return(0,d.jsx)("div",{className:t,children:(0,d.jsx)(l.PopularMemberIndicator,{ownerId:r,ownerIsPopular:!0,position:"static",size:"small",shadow:!1,label:s,textColor:"inherit"})})});var u=a(66691),m=a(13462),h=a(45482),p=(0,s.memo)(e=>{var{ownerId:r}=e,a=(0,u.J2)(()=>m.T.shared().popularMembersEnabled,[]),s=(0,u.J2)(()=>m.T.shared().compactUserIndicatorsEnabled,[],!1),i=(0,u.J2)(()=>h.Session.shared().userIsUsual,[]),l=(0,o.sb)(r);return a&&(null==l?void 0:l.popular)&&i?(0,d.jsx)(c,{ownerId:r,compactIndicator:s}):null})},29984(e,r,a){a.d(r,{ProfileSummaryCard:()=>U});var o,s=a(42062),i=a(75841),l=a(79942),t=a(16482),n=a(66382),d=a(81468),c=a(96237),u=a(36383),m=a(30770),h=a(3196),p=a(80222),f=a(33079),b=a(91994),v=a(66691),g=a(72366),y=a(15526),C=a(12640);class w{constructor(e){this.userId=e}logShown(e,r){C._.shared(this.userId).logEvent("profile-summary-shown",{attendeeId:e,attachCount:r}).safeSubscribe()}logViewProfileClicked(e){C._.shared(this.userId).logEvent("profile-summary-view-profile-clicked",{attendeeId:e}).safeSubscribe()}logPhotoClicked(e,r){C._.shared(this.userId).logEvent("profile-summary-photo-clicked",{attendeeId:e,attachId:r}).safeSubscribe()}}w.shared=(0,y.G)(e=>new w(e));var P=a(31085),j=["ownerId","photos","onPhotoClick","onViewProfileClick"],x=a(28138),k=a(20345),_=a(78903),S=a(81924),I=a(62612),N=a(29706),V=a(33061),T=a(15782),E=a(36657),J=a(99027),M=a(60144);let z=(0,s.memo)(e=>{var{path:r,fallbackPath:a,authorizationNeeded:o,hiddenPhotosCount:i,onClick:l}=e,t=(0,s.useMemo)(()=>({count:i}),[i]);return(0,P.jsxs)("div",{className:"dialogs-profile-summary-card-photo__profileSummaryCardPhoto",onClick:l,children:[(0,P.jsx)(M.$,{className:"dialogs-profile-summary-card-photo__profileSummaryCardPhotoImage",path:r,fallbackPath:a,fallbackSrc:"/i/profile/gallery/item-placeholder.png",authorize:o,fallbackAuthorize:o,transformation:"detect-face",resourceWidth:72,resourceHeight:72}),i>0&&(0,P.jsx)("div",{className:"dialogs-profile-summary-card-photo__profileSummaryCardPhotoCounter",children:(0,P.jsx)(S.LocalizedText,{variant:"footnote-1",color:"light",href:"/dialogs/profile-summary-card#hidden-photos-count",data:t})})]})});var A=(0,s.memo)(e=>{var{ownerId:r,photo:a,privatePhotosAvailable:o,hiddenPhotosCount:i,onPhotoClick:l}=e,t=a.tags.includes("hidden"),n=t&&o,d=(0,s.useCallback)(()=>{l(a.basename)},[l,a.basename]),c=(0,J.OV)(a,r,t&&!o),u=n?(0,J.OV)(a,r,!0):void 0;return(0,P.jsx)(z,{path:c,fallbackPath:u,authorizationNeeded:t,hiddenPhotosCount:i,onClick:d})}),L=(o=(0,s.memo)(e=>{var{ownerId:r,name:a,age:o,photos:i,privatePhotosAvailable:l,tagLabelsVisible:t,onPhotoClick:n,onViewProfileClick:d}=e,c=(0,T.A)("/dialogs/mingle","user-name-with-age-format",{age:o,name:a}),u=(0,T.A)("/dialogs/profile-summary-card","view-profile"),m=(0,s.useRef)(null),[h,p]=(0,E.w)(e=>e.pipe((0,x.T)(e=>Math.max(1,Math.floor((e[0].contentRect.width+4)/76)))),[],3);(0,s.useLayoutEffect)(()=>{var e=m.current&&p(m.current);return()=>{null==e||e()}},[p]);var f=(0,s.useMemo)(()=>i.slice(0,h),[i,h]),b=i.length-f.length;return(0,P.jsxs)("div",{className:"dialogs-profile-summary-card__profileSummaryCard",children:[(0,P.jsxs)("div",{className:"dialogs-profile-summary-card__profileSummaryCardHeader",children:[(0,P.jsxs)("div",{className:"dialogs-profile-summary-card__profileSummaryCardTitle",children:[(0,P.jsx)(I.E,{variant:"h3",content:c}),t&&(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)("div",{className:"dialogs-profile-summary-card__profileSummaryCardVerificationTag",children:(0,P.jsx)(V.y,{ownerId:r,visibleOnUnconfirmedFeaturedMember:!0})}),(0,P.jsx)(N.UserPopularTagLabel,{ownerId:r})]})]}),(0,P.jsx)(S.LocalizedText,{variant:"footnote-2",color:"action-gray",href:"/dialogs/profile-summary-card#subtitle"})]}),(0,P.jsx)("div",{className:"dialogs-profile-summary-card__profileSummaryCardPhotosRow",ref:m,children:f.map((e,a)=>{var o=a===f.length-1;return(0,P.jsx)(A,{ownerId:r,photo:e,privatePhotosAvailable:l,hiddenPhotosCount:o?b:0,onPhotoClick:n},e.basename)})}),(0,P.jsx)("div",{className:"dialogs-profile-summary-card__profileSummaryCardAction",children:(0,P.jsxs)(k.$,{variant:"dark-trans
3parent",size:"tiny",title:u,onClick:d,children:[(0,P.jsx)(I.E,{variant:"inherit",color:"inherit",content:u}),(0,P.jsx)(_.Icon,{className:"dialogs-profile-summary-card__profileSummaryCardViewProfileIcon",name:"arrow-right",size:"small"})]})})]})}),(0,s.memo)(e=>{var{ownerId:r,photos:a,onPhotoClick:i,onViewProfileClick:l}=e,t=function(e,r){if(null==e)return{};var a={};for(var o in e)if(({}).hasOwnProperty.call(e,o)){if(r.includes(o))continue;a[o]=e[o]}return a}(e,j),n=(0,b.w)(),d=a.length,c=(0,s.useRef)(!1);(0,s.useEffect)(()=>{n&&!c.current&&(c.current=!0,w.shared(n).logShown(r,d))},[n,r,d]);var u=(0,s.useCallback)(e=>{n&&w.shared(n).logPhotoClicked(r,e),i(e)},[n,r,i]),m=(0,s.useCallback)(()=>{n&&w.shared(n).logViewProfileClicked(r),l()},[n,r,l]);return(0,P.jsx)(o,Object.assign({},t,{ownerId:r,photos:a,onPhotoClick:u,onViewProfileClick:m}))})),O=[m.J.Thumbnail,m.J.PublicPhotosWithoutThumbnail,m.J.PrivatePhotosWithoutThumbnail],U=(0,s.memo)(e=>{var r,{attendeeId:a}=e,o=(0,b.w)(),y=(0,g.sb)(a),C=(0,v.J2)(()=>u.mh.shared(a).media,[a]),w=(0,s.useMemo)(()=>C?(0,m.P)(C,O).filter(e=>"photo"===e.type):[],[C]),j=(0,s.useMemo)(()=>w.some(e=>e.private),[w]),x=(0,v.J2)(()=>o&&j?p.Q.shared(o).available(a):(0,i.of)(!1),[o,a,j],!1),k=(0,s.useCallback)(e=>{(0,h.d)(a,e,{order:O})},[a]),_=(0,v.J2)(()=>n.j.shared().displayMode,[]),S=(0,v.uN)(()=>{var e=(0,f.L)(a,{source:"chat",cta:"profile-summary-card"});return"fullscreen"===_?e.pipe((0,l.Fg)(()=>(0,d.v)())):e},[a,_]),I=(0,v.J2)(()=>t.e.shared().design,[]),N=!!y&&w.length>0;return(0,s.useEffect)(()=>{if(N)return c.S.shared().setVisible(!0),()=>{c.S.shared().setVisible(!1)}},[N]),N&&y?(0,P.jsx)(L,{ownerId:a,name:y.name,age:null==(r=y.birthday)?void 0:r.age,photos:w,privatePhotosAvailable:x,tagLabelsVisible:"modern"===I,onPhotoClick:k,onViewProfileClick:S}):null})},96237(e,r,a){a.d(r,{S:()=>l});var o=a(15526),s=a(97156),i=a(15654);class l{constructor(){this.visibleSubject=new s.t(!1),this.visible=this.visibleSubject.asObservable().pipe((0,i.F)())}setVisible(e){this.visibleSubject.next(e)}}l.shared=(0,o.G)(()=>new l)}}]); 4//# sourceMappingURL=sourcemaps/17d422c8b1ddf393.js.map 5//# debugId=f43f9809-b233-5cbc-8084-c92475217a76
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.