PageSourceSearch

https://uh.app/snapshot-assets/desktop/v9953/_next/static/chunks/40710-19af4e2192835b1c.js

js uh.app collected 2026-10-06 15:00:55 UTC 42,045 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[40710],{6529:function(e,t,o){"use strict";var n=o(27573),a=o(96500),i=o(21775),r=o(63575),s=o(92660),c=o(74351),l=o(52034),u=o(17915),d=o(65225),g=o(64751),p=o(24558),m=o.n(p),y=o(51790),v=o.n(y),P=o(88146),S=o(81695),f=o(78579),h=o.n(f),O=o(64466);t.default=function(e){var t,o,p,y,f,T,R,I;let{status:Z=200,emptyType:E,isAuth:b,id:z,onClick:U,toEdit:C,to:F}=e,{t:A}=(0,a.E)(),_=(0,i.Z)(),N=(0,S.usePathname)(),Y=(0,l.A)(Z),q={icon:"lock",title:A("error.infoIsLimited")},M={icon:{value:"circle-attention",color:u.O.negative},title:A("error.data")},k={[O.C.Guns]:{icon:"gun",title:A("empty.hunt.noArsenal"),...b&&{link:{text:A("actions.add"),to:"?add=".concat(r.yk.Gun),backgroundColor:u.O.contentPrimary,replace:!0}}},[O.C.Pets]:{icon:"pet",title:A("empty.hunt.noCompanions"),...b&&{link:{text:A("actions.add"),to:"?add=".concat(r.yk.Pet),backgroundColor:u.O.contentPrimary,replace:!0}}},[O.C.Cars]:{icon:"car",title:A("empty.hunt.noTransport"),...b&&{link:{text:A("actions.add"),to:"?add=".concat(r.yk.Car),backgroundColor:u.O.contentPrimary,replace:!0}}},[O.C.Trophies]:{icon:"aim",title:A("empty.hunt.noTrophy"),...b&&{link:{text:A("actions.add"),to:"?add=".concat(r.yk.Trophy),backgroundColor:u.O.contentPrimary,replace:!0}}},[O.C.Media]:{icon:"media",title:A("empty.media.noMedia")},[O.C.AddMedia]:{icon:"media",title:A("media.addMedia.header"),to:C},[O.C.Friends]:{icon:"friends",title:A("empty.common.noFriends"),link:{text:A("actions.search"),to:null==_?void 0:null===(t=_.friends)||void 0===t?void 0:t.search,backgroundColor:u.O.contentPrimary}},[O.C.IncomingRequestsFriends]:{icon:"user-left",title:A("empty.common.noRequest")},[O.C.OutgoingRequestsFriends]:{icon:"user-right",title:A("empty.common.noRequest")}
1,[O.C.FollowsFriends]:{icon:"user-subscribtion",title:A("empty.common.noFollows"),link:{text:A("actions.search"),to:null==_?void 0:null===(o=_.friends)||void 0===o?void 0:o.search,backgroundColor:u.O.contentPrimary}},[O.C.FollowersFriends]:{icon:"user-follower",title:A("empty.common.noFollowers")},[O.C.IncomingRequestsFollowers]:{icon:"user-left",title:A("empty.common.noRequest")},[O.C.BlockListFriends]:{icon:"black-list",title:A("empty.common.blackList")},[O.C.DeletedUser]:{icon:"trash",title:A("overflowMenu.account.wasDeleted")},[O.C.FriendsUserProfile]:{icon:"friends",title:A("empty.common.noFriends")},[O.C.FollowsUserProfile]:{icon:"user-subscribtion",title:A("empty.common.noFollows")},[O.C.FollowersUserProfile]:{icon:"user-follower",title:A("empty.common.noFollowers")},[O.C.MutualUserProfile]:{icon:"friends",title:A("empty.common.noMutualFriends")},[O.C.MutualFriends]:{icon:"user-follower",title:A("empty.common.noMutualFriends")},[O.C.Organizations]:{icon:"group",title:A("empty.common.noFollows")},[O.C.OrganizationsRules]:{icon:"rules",title:A("empty.organization.noRules")},[O.C.Administration]:{icon:"user-settings",title:A("empty.common.noOrganizations"),link:{text:A("actions.create"),to:"".concat(N,"/?add=").concat(r.yk.Group),backgroundColor:u.O.contentPrimary,replace:!0}},[O.C.GroupFollows]:{icon:"group",title:A("empty.common.noFollows"),link:{text:A("actions.search"),to:null==_?void 0:_.organizations.search,backgroundColor:u.O.contentPrimary}},[O.C.MemberRequestIn]:{icon:"user-left",title:A("empty.common.noInvitations")},[O.C.MemberRequestOut]:{icon:"user-right",title:A("empty.common.noRequest"),link:{text:A("actions.search"),to:null==_?void 0:_.organizations.search,backgroundColor:u.O.contentPrimary}},[O.C.GroupBlackList]:{icon:"black-list",title:A("empty.common.blackList")},[O.C.FollowsFriendsOutgoing]:{icon:"user-right",title:A("empty.common.noRequest")},[O.C.Reactions]:{icon:"appraisal-incoming",title:A("empty.common.noReactions")},[O.C.GroupAdmins]:{icon:"user-owner",title:A("empty.common.noAdmins"),...b&&{button:{text:A("actions.add"),onClick:U,backgroundColor:u.O.contentPrimary}}},[O.C.GroupAddAdmins]:{icon:"user-follower",title:A("empty.common.noFollowers")},[O.C.BlacklistOrganizations]:{icon:"black-list",title:A("empty.common.blackList")},[O.C.FollowersOrganizationIncoming]:{icon:"user-left",title:A("empty.common.noRequest")},[O.C.FollowersOrganizationInvitations]:{icon:"user-plus",title:A("empty.common.noInvitations"),...b&&{button:{text:A("actions.invite"),onClick:U,backgroundColor:u.O.contentPrimary}}},[O.C.Albums]:{icon:"camera",title:A("empty.media.noAlbums"),...b&&{link:{text:A("actions.create"),to:"#",backgroundColor:u.O.contentPrimary}}},[O.C.Photo]:{icon:"camera",title:A("empty.media.noPhoto"),...b&&{link:{text:A("actions.add"),to:"#",backgroundColor:u.O.contentPrimary}}},[O.C.Video]:{icon:"video-file",title:A("empty.media.noVideo"),...b&&{link:{text:A("actions.add"),to:"#",backgroundColor:u.O.contentPrimary}}},[O.C.Favorites]:{icon:"bookmark-default",title:A("empty.common.noFav")},[O.C.Posts]:{icon:"news",title:A("empty.common.noPosts"),...b&&{link:{text:A("actions.add"),to:null!=F?F:"#",backgroundColor:u.O.contentPrimary,replace:!0}}},[O.C.Events]:{icon:"events",title:A("empty.events.noEvents"),...b&&{link:{text:A("actions.add"),to:"".concat(N,"/?add=").concat(r.yk.Event,"&id=").concat(z),backgroundColor:u.O.admin,replace:!0}}},[O.C.EventParticipants]:{icon:"friends",title:A("empty.common.noMembers")},[O.C.Search]:{icon:"search",title:A("empty.common.noResults")},[O.C.MyDialog]:{icon:"message",title:A("messenger.empty.noChats")},[O.C.Tags]:{icon:"tag",title:A("empty.common.noResults"),button:{text:A("actions.add"),onClick:U,backgroundColor:u.O.contentPrimary}},[O.C.NoTags]:{icon:"tag",title:A("empty.common.noTags")},[O.C.NoAds]:{icon:"price-tag",title:A("empty.common.noAds")},[O.C.NoOrganizations]:{icon:"group",title:A("empty.common.noOrganizations")}},w={[l.G.ClientError]:M,[l.G.Forbidden]:q,[l.G.NotFound]:M,[l.G.ServerError]:M,[l.G.SessionError]:M,[l.G.Success]:E?k[E]:null};if(!v()(Y)&&w[Y])return(0,n.jsx)("div",{className:h().container,children:(0,n.jsxs)("div",{className:h().emptyState,children:[!!w[Y].icon&&(0,n.jsx)(d.JO,{icon:m()(w[Y].icon)?w[Y].icon:null===(p=w[Y].icon)||void 0===p?void 0:p.value,size:m()(w[Y].icon)?96:null!==(R=w[Y].icon.size)&&void 0!==R?R:96,color:m()(w[Y].icon)?u.O.contentQuaternary:null!==(I=w[Y].icon.color)&&void 0!==I?I:u.O.contentQuaternary}),w[Y].to?(0,n.jsx)(P.default,{prefetch:!1,href:w[Y].to,children:(0,n.jsx)(c.Z,{className:d.MY.HeadLine2,text:w[Y].title,style:{color:u.O.link}})}):(0,n.jsx)(c.Z,{className:d.MY.HeadLine2,text:w[Y].title,style:{color:u.O.contentPrimary}}),!!w[Y].link&&(0,n.jsx)(P.default,{prefetch:!1,href:w[Y].link.to,...(null===(y=w[Y].link)||void 0===y?void 0:y.replace)&&{replace:!0},children:(0,n.jsx)(s.default,{text:w[Y].link.text,style:{width:190,backgroundColor:w[Y].link.backgroundColor},size:g.v.L})}),!!w[Y].button&&(0,n.jsx)(s.default,{text:w[Y].button.text,style:{width:190,backgroundColor:null===(f=w[Y].button)||void 0===f?void 0:f.backgroundColor},onClick:null===(T=w[Y].button)||void 0===T?void 0:T.onClick,size:g.v.L})]})})}},64466:function(e,t,o){"use strict";var n,a;o.d(t,{C:function(){return n}}),(a=n||(n={})).Guns="guns",a.Pets="pets",a.Cars="cars",a.Trophies="trophies",a.Media="media",a.AddMedia="addMedia",a.Friends="friends",a.IncomingRequestsFriends="incomingRequestsFriends",a.OutgoingRequestsFriends="outgoingRequestsFriends",a.FollowsFriends="FollowsFriends",a.FollowsFriendsOutgoing="followsFriendsOutgoing",a.FollowersFriends="FollowersFriends",a.IncomingRequestsFollowers="incomingRequestsFollowers",a.BlockListFriends="blockScreenFriends",a.MutualFriends="mutualFriends",a.DeletedUser="deletedUser",a.FriendsUserProfile="friendsUserProfile",a.FollowsUserProfile="followsUserProfile",a.FollowersUserProfile="followersUserProfile",a.MutualUserProfile="mutualUserProfile",a.Organizations="organizations",a.Administration="administration",a.GroupFollows="groupFollows",a.GroupBlackList="groupBlackList",a.MemberRequestIn="memberRequestIn",a.MemberRequestOut="memberRequestOut",a.Reactions="reactions",a.GroupAdmins="groupAdmins",a.GroupAddAdmins="groupAddAdmins",a.Albums="albums",a.Photo="photo",a.Video="video",a.Favorites="favorites",a.OrganizationsRules="organizationsRules",a.Posts="posts",a.Events="events",a.FollowersOrganizationIncoming="followersOrganizationIncoming",a.FollowersOrganizationInvitations="followersOrganizationInvitations",a.BlacklistOrganizations="blacklistOrganizations",a.EventParticipants="eventParticipants",a.Search="search",a.MyDialog="myDialog",a.Tags="tags",a.NoTags="NoTags",a.NoAds="NoAds",a.NoOrganizations="NoOrganizations"},37873:function(e,t,o){"use strict";var n,a,i,r;o.d(t,{U:function(){return n},Z:function(){return a}}),(i=n||(n={})).POSTS="posts",i.IMAGES="images",i.VIDEOS="videos",i.ALBUMS="albums",i.CARS="cars",i.GUNS="guns",i.PETS="pets",
1i.TROPHIES="trophies",i.MARKET_ADS="market_ads",i.BOOKING_ADS="booking_ads",i.EVENTS="events",i.LIBRARY_PUBLICATIONS="library_publications",i.LIBRARY_ENCYCLOPEDIAS="library_encyclopedias",(r=a||(a={})).POSTS="posts",r.HUNT="hunt",r.MEDIA="media",r.MARKET="market",r.BOOKING="booking",r.LIBRARY="library",r.EVENTS="events",r.MAPS="maps",r.ALBUMS="albums"},71243:function(e,t,o){"use strict";o.d(t,{u:function(){return i}});var n=o(52503),a=o(57052);let i=e=>({checkEntitiesInFavorites:t=>(0,n.uY)(e).then(e=>e.post("".concat(a.Z.favorites,"/!are-in-favorites"),{body:{ids:t},isProtected:!0})),create:(t,o)=>(0,n.uY)(e).then(e=>e.post("".concat(a.Z.favorites,"/").concat(t),{body:o,isProtected:!0})),remove:(t,o)=>(0,n.uY)(e).then(e=>e.delete("".concat(a.Z.favorites,"/").concat(t,"/").concat(o),{isProtected:!0})),getCounters:()=>(0,n.uY)(e).then(e=>e.get("".concat(a.Z.favorites,"/counters"),{isProtected:!0})),getMany:(t,o)=>(0,n.uY)(e).then(e=>e.get("".concat(a.Z.favorites,"/").concat(t),{params:{pageSize:null==o?void 0:o.pageSize,nextPageState:null==o?void 0:o.nextPageState},isProtected:!0})),getFavoritesByCategory(t){let{favoriteCategory:o,pager:i,favoriteType:r}=t;return(0,n.uY)(e).then(e=>e.get("".concat(a.Z.favorites,"/items/").concat(o),{params:{type:r,pageSize:null==i?void 0:i.pageSize,nextPageState:null==i?void 0:i.nextPageState},isProtected:!0}))},getCountersByCategory:()=>(0,n.uY)(e).then(e=>e.get("".concat(a.Z.favorites,"/items/counters"),{isProtected:!0}))})},78273:function(e,t,o){"use strict";o.d(t,{X:function(){return r}});var n=o(52503),a=o(57052),i=o(49041);let r=e=>({getAlbumById:t=>(0,n.uY)(e).then(e=>e.get("".concat(a.Z.albums,"/").concat(t),{isProtected:!1})),getDefaultAlbum:t=>(0,n.uY)(e).then(e=>e.post("".concat(a.Z.albums,"/!default"),{body:t}).catch(e=>e)),getManyAlbums(t,o){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:i.ui.USER;return(0,n.uY)(e).then(e=>e.post("".concat(a.Z.albums,"/!listByOwner"),{body:{ownerId:t,ownerType:r},params:{pageSize:null==o?void 0:o.pageSize,nextPageState:null==o?void 0:o.nextPageState},isProtected:!1}))},getMediaPosts(t){let{id:o,pager:i,mediaType:r,sortOrder:s}=t;return(0,n.uY)(e).then(e=>e.get("".concat(a.Z.albums,"/").concat(o,"/media"),{params:{pageSize:null==i?void 0:i.pageSize,nextPageState:null==i?void 0:i.nextPageState,mediaType:r,sortOrder:s},isProtected:!1}))},getOwnerMedia:(t,o,i,r)=>(0,n.uY)(e).then(e=>e.post("".concat(a.Z.albums,"/!getAlbumMediaByOwner"),{body:{ownerId:t,ownerType:o,mediaType:r},params:{pageSize:null==i?void 0:i.pageSize,nextPageState:null==i?void 0:i.nextPageState},isProtected:!1})),createAlbum:t=>(0,n.uY)(e).then(e=>e.post("".concat(a.Z.albums),{body:t,isProtected:!0})),updateAlbum:(t,o)=>(0,n.uY)(e).then(e=>e.put("".concat(a.Z.albums,"/").concat(t),{body:o,isProtected:!0})),removeAlbum:t=>(0,n.uY)(e).then(e=>e.delete("".concat(a.Z.albums,"/").concat(t),{isProtected:!0})),searchAlbums:t=>(0,n.uY)(e).then(e=>e.post("".concat(a.Z.albums,"/!search"),{body:t})),getRecommendedAlbums(t){let{from:o,pageSize:i}=t;return(0,n.uY)(e).then(e=>e.get("".concat(a.Z.albums,"/!getRecommended"),{params:{pageSize:i,from:o},isProtected:!1}))},getPost:t=>(0,n.uY)(e).then(e=>e.get("".concat(a.Z.media,"/posts/").concat(t),{isProtected:!1})),getMediaPostView:t=>(0,n.uY)(e).then(e=>e.post("".concat(a.Z.media,"/posts/!view"),{body:t,isProtected:!1})),getFavoritesMediaPosts:(t,o)=>(0,n.uY)(e).then(e=>e.get("".concat(a.Z.media,"/posts/").concat(t,"/favorites"),{params:{pageSize:null==o?void 0:o.pageSize,nextPageState:null==o?void 0:o.nextPageState},isProtected:!0})),getMentionMediaPostsByUser(t){let{userId:o,mediaType:i,pager:r}=t;return(0,n.uY)(e).then(e=>e.get("".concat(a.Z.media,"/posts/").concat(o,"/!mentions"),{params:{pageSize:null==r?void 0:r.pageSize,nextPageState:null==r?void 0:r.nextPageState,mediaType:i},isProtected:!1}))},getPosts:t=>(0,n.uY)(e).then(e=>e.post("".concat(a.Z.media,"/posts/!getMany"),{body:t,isProtected:!0})),setMediaPost:t=>(0,n.uY)(e).then(e=>e.post("".concat(a.Z.media,"/posts"),{body:t,isProtected:!0})),updatePost:(t,o)=>(0,n.uY)(e).then(e=>e.put("".concat(a.Z.media,"/posts/").concat(t),{body:o,isProtected:!0})),removeMediaPost:t=>(0,n.uY)(e).then(e=>e.delete("".concat(a.Z.media,"/posts/").concat(t),{isProtected:!0})),moveMediaPostsToAlbum:(t,o)=>(0,n.uY)(e).then(e=>e.post("".concat(a.Z.media,"/posts/!moveToAlbum"),{body:{targetAlbumId:t,mediaPostsIds:o},isProtected:!0})),removeMediaPostsFromAlbum:(t,o)=>(0,n.uY)(e).then(e=>e.post("".concat(a.Z.media,"/posts/!removeFromAlbum"),{body:{albumId:t,mediaPostsIds:o},isProtected:!0})),getUploadVideoUrl:()=>(0,n.uY)(e).then(e=>e.post("".concat(a.Z.media,"/videos/!getUploadUrl"),{isProtected:!0})),startVideoProcessing:(t,o)=>(0,n.uY)(e).then(e=>e.post("".concat(a.Z.media,"/videos/").concat(t,"/!submitEncoding"),{isProtected:!0,signal:o})),waitVideoMediaId:(t,o)=>(0,n.uY)(e).then(e=>e.post("".concat(a.Z.media,"/videos/").concat(t,"/!getEncodingProgress"),{isProtected:!0,signal:o})),getCounters:(t,o)=>(0,n.uY)(e).then(e=>e.post("".concat(a.Z.media,"/!getCounters"),{body:{ownerType:o,ownerId:t},isProtected:!1})),getTaggableFriends:(t,o)=>(0,n.uY)(e).then(e=>e.get("".concat(a.Z.media,"/getTaggableFriends"),{params:{text:t,pageSize:null==o?void 0:o.pageSize,nextPageState:null==o?void 0:o.nextPageState},isProtected:!0}))})},9899:function(e,t,o){"use strict";o.d(t,{l:function(){return i}});var n=o(52503),a=o(57052);let i=e=>({getIdByNickname:(t,o)=>(0,n.uY)(e).then(e=>e.get("".concat(a.Z.organizations,"/").concat(t,"/!get-identifier"),{...o?{nextOptions:o}:{}})),getOneById:(t,o,i)=>(0,n.uY)(e).then(e=>e.get("".concat(a.Z.organizations,"/").concat(t),{params:{mode:o},isProtected:!1,...i?{nextOptions:i}:{}})),search:t=>(0,n.uY)(e).then(e=>e.post("".concat(a.Z.organizations,"/!search"),{body:t,isProtected:!1})),searchOrganizationByUser:(t,o)=>(0,n.uY)(e).then(e=>e.post("".concat(a.Z.users,"/").concat(o,"/organizations/!search"),{body:t,isProtected:!1})),createOrganization:t=>(0,n.uY)(e).then(e=>e.post("".concat(a.Z.organizations),{body:t,isProtected:!0})),updateOrganization:(t,o)=>(0,n.uY)(e).then(e=>e.put("".concat(a.Z.organizations,"/").concat(t),{body:o,isProtected:!0})),getOrganizationsByIds:t=>(0,n.uY)(e).then(e=>e.post("".concat(a.Z.organizations,"/!getMany"),{body:{ids:t,isProtected:!0}})),searchRecommendedOrganizations:(t,o)=>(0,n.uY)(e).then(e=>e.post("".concat(a.Z.organizations,"/!getRecommended"),{body:t,isProtected:!1,...o?{nextOptions:o}:{}})),getRecommended(t,o){let{from:i,pageSize:r}=t;return(0,n.uY)(e).then(e=>e.get("".concat(a.Z.organizations,"/!getRecommended"),{params:{pageSize:r,from:i},isProtected:!1,...o}))},getRelationById:t=>(0,n.uY)(e).then(e=>e.get("".concat(a.Z.organizations,"/").concat(t,"/relations"))),joinToOpenOrganization:t=>(0,n.uY)(e).then(e=>e.post("".concat(a.Z.organizations,"/").concat(t,"/!join"),{isProtected:!0})),leaveOrganization:t=>(0,n.uY)(e).then(e=>e.post("".concat(a.Z.organizations,"/").concat(t,"/!leave"),{isProtected:!0})),sendJoinRequestOrganization:t=>(0,n.uY)(e).then(e=>e.post("".concat(a.Z.organizations,"/").concat(t,"/!request-join"),{isProtected:!0})),cancelJoinRequestOrganization:t=>(0,n.uY)(e).then(e=>e.post("".concat(a.Z.organizations,"/").concat(t,"/!cancel-request"),{isProtected:!0})),blockOrganization:t=>(0,n.uY)(e).then(e=>e.post("".concat(a.Z.organizations,"/").concat(t,"/!block"),{isProtected:!0})),unblockOrganization:t=>(0,n.uY)(e).then(e=>e.post("".concat(a.Z.organizations,"/").concat(t,"/!unblock"),{isProtected:!0})),acceptInvitationOrganization:t=>(0,n.uY)(e).then(e=>e.post("".concat(a.Z.organizations,"/").concat(t,"/!accept-invitation"),{isProtected:!0})),acceptAllInvitationOrganization:()=>(0,n.uY)(e).then(e=>e.post("".concat(a.Z.organizations,"/!accept-all-invitation"),{isProtected:!0})),rejectInvitationOrganization:t=>(0,n.uY)(e).then(e=>e.post("".concat(a.Z.organizations,"/").concat(t,"/!reject-invitation"),{isProtected:!0})),getRequestsOrganization(t){let{id:o,pager:i}=t;return(0,n.uY)(e).then(e=>e.get("".concat(a.Z.organizations,"/").concat(o,"/requests"),{params:{pageSize:i.pageSize,nextPageState:i.nextPageState},isProtected:!0}))},acceptJoinRequestOrganization:(t,o)=>(0,n.uY)(e).then(e=>e.post("".concat(a.Z.organizations,"/").concat(t,"/requests/").concat(o,"/!accept-request"),{isProtected:!0})),acceptJoinRequestAllOrganization:t=>(0,n.uY)(e).then(e=>e.post("".concat(a.Z.organizations,"/").concat(t,"/requests/!accept-all-request"),{isProtected:!0})),rejectJoinRequestOrganization:(t,o)=>(0,n.uY)(e).then(e=>e.post("".concat(a.Z.organizations,"/").concat(t,"/requests/").concat(o,"/!reject-request"),{isProtected:!0})),getInvitationsOrganization(t){let{id:o,pager:i}=t;return(0,n.uY)(e).then(e=>e.get("".concat(a.Z.organizations,"/").concat(o,"/invitations"),{params:{pageSize:i.pageSize,nextPageState:i.nextPageState},isProtected:!0}))},getInviteFriends:(t,o)=>(0,n.uY)(e).then(e=>e.post("".concat(a.Z.organizations,"/").concat(t,"/!get-invitable-friends"),{body:o,isProtected:!0})),inviteManyToOrganization:(t,o)=>(0,n.uY)(e).then(e=>e.post("".concat(a.Z.organizations,"/").concat(t,"/invitations/!create-many"),{body:{ids:o},isProtected:!0})),inviteToOrganization:(t,o)=>(0,n.uY)(e).then(e=>e.post("".concat(a.Z.organizations,"/").concat(t,"/invitations/").concat(o,"/!create"),{isProtected:!0})),cancelInvitationOrganization:(t,o)=>(0,n.uY)(e).then(e=>e.post("".concat(a.Z.organizations,"/").concat(t,"/invitations/").concat(o,"/!cancel"),{isProtected:!0})),getBlacklistOrganization(t){let{id:o,pager:i}=t;return(0,n.uY)(e).then(e=>e.get("".concat(a.Z.organizations,"/").concat(o,"/blacklist"),{params:{pageSize:i.pageSize,nextPageState:i.nextPageState},isProtected:!0}))},getSearchMembers:(t,o)=>(0,n.uY)(e).then(e=>e.post("".concat(a.Z.organizations,"/").concat(t,"/members/!search"),{body:{...o,onlyMembers:!1},isProtected:!0})),getMembersOrganization(t){let{id:o,pager:i}=t;return(0,n.uY)(e).then(e=>e.get("".concat(a.Z.organizations,"/").concat(o,"/members"),{params:{pageSize:i.pageSize,nextPageState:i.nextPageState}}))},searchMembersOrganization(t){let{onlyMembers:o=!1,search:i,sort:r,filter:s,pagination:c,id:l}=t;return(0,n.uY)(e).then(e=>e.post("".concat(a.Z.organizations,"/").concat(l,"/members/!search"),{isProtected:!0,body:{pagination:c,onlyMembers:o,search:i,sort:r,filter:s}}))},getAdminsOrganization(t){let{id:o,pager:i}=t;return(0,n.uY)(e).then(e=>e.get("".concat(a.Z.organizations,"/").concat(o,"/admins"),{params:{pageSize:i.pageSize,nextPageState:i.nextPageState},isProtected:!0}))},kickMemberOrganization:(t,o)=>(0,n.uY)(e).then(e=>e.post("".concat(a.Z.organizations,"/").concat(t,"/members/").concat(o,"/!kick"),{isProtected:!0})),blockMemberOrganization:(t,o)=>(0,n.uY)(e).then(e=>e.post("".concat(a.Z.organizations,"/").concat(t,"/members/").concat(o,"/!block"),{isProtected:!0})),unblockMemberOrganization:(t,o)=>(0,n.uY)(e).then(e=>e.post("".concat(a.Z.organizations,"/").concat(t,"/members/").concat(o,"/!unblock"),{isProtected:!0})),leaveAdminOrganization:t=>(0,n.uY)(e).then(e=>e.post("".concat(a.Z.organizations,"/").concat(t,"/members/!leave-admin"),{isProtected:!0})),addManyAdminsOrganization:(t,o)=>(0,n.uY)(e).then(e=>e.post("".concat(a.Z.organizations,"/").concat(t,"/members/!add-many-admins"),{body:{ids:o},isProtected:!0})),addAdminOrganization:(t,o)=>(0,n.uY)(e).then(e=>e.post("".concat(a.Z.organizations,"/").concat(t,"/members/").concat(o,"/!add-admin"),{isProtected:!0})),removeManyAdminsOrganization:(t,o)=>(0,n.uY)(e).then(e=>e.post("".concat(a.Z.organizations,"/").concat(t,"/members/!remove-many-admins"),{body:{ids:o},isProtected:!0})),removeAdminOrganization:(t,o)=>(0,n.uY)(e).then(e=>e.post("".concat(a.Z.organizations,"/").concat(t,"/members/").concat(o,"/!remove-admin"),{isProtected:!0})),acceptCreatorRequestOrganization:t=>(0,n.uY)(e).then(e=>e.post("".concat(a.Z.organizations,"/").concat(t,"/members/!accept-creator-request"),{isProtected:!0})),rejectCreatorRequestOrganization:t=>(0,n.uY)(e).then(e=>e.post("".concat(a.Z.organizations,"/").concat(t,"/members/!reject-creator-request"),{isProtected:!0})),createCreatorRequestOrganization:(t,o)=>(0,n.uY)(e).then(e=>e.post("".concat(a.Z.organizations,"/").concat(t,"/members/").concat(o,"/!create-creator-request"),{isProtected:!0})),cancelCreatorRequestOrganization:(t,o)=>(0,n.uY)(e).then(e=>e.post("".concat(a.Z.organizations,"/").concat(t,"/members/").concat(o,"/!cancel-creator-request"),{isProtected:!0})),getPermissionsOrganization:t=>(0,n.uY)(e).then(e=>e.get("".concat(a.Z.organizations,"/").concat(t,"/permissions"),{isProtected:!0})),updatePermissionsOrganization:(t,o)=>(0,n.uY)(e).then(e=>e.put("".concat(a.Z.organizations,"/").concat(t,"/permissions"),{body:o,isProtected:!0})),getEventsOrganization(t){let{id:o,pager:i}=t;return(0,n.uY)(e).then(e=>e.get("".concat(a.Z.organizations,"/").concat(o,"/events"),{params:{pageSize:null==i?void 0:i.pageSize,nextPageState:null==i?void 0:i.nextPageState}}))},getCompanyHunt:(t,o)=>(0,n.uY)(e).then(e=>e.get("".concat(a.Z.organizations,"/").concat(t,"/hunt"),{isProtected:!1,...o?{nextOptions:o}:{}})),getHuntCounters:(t,o)=>(0,n.uY)(e).then(e=>e.get("".concat(a.Z.organizations,"/").concat(t,"/hunt/counters"),{isProtected:!1,...o?{nextOptions:o}:{}}))})},51524:function(e,t,o){"use strict";var n,a,i,r,s,c,l,u;o.d(t,{hQ:function(){return i},tH:function(){return a},wX:function(){return n}}),(s=n||(n={})).POST="post",s.MEDIA_POST="media_post",s.ALBUM="album",s.GUN="gun",s.CAR="car",s.PET="pet",s.TROPHY="trophy",s.MARKET_AD="market_ad",s.BOOKING_AD="booking_ad",s.LIBRARY="library_publication",s.LIBRARY_ENCYCLOPEDIA="library_encyclopedia",s.EVENT="event",(c=a||(a={})).POST="post",c.IMAGE="image",c.VIDEO="video",c.ALBUM="album",c.GUN="gun",c.CAR="car",c.PET="pet",c.TROPHY="trophy",c.MARKET_AD="market_ad",c.BOOKING_AD="booking_ad",c.LIBRARY="library_publication",c.EVENT="event",(l=i||(i={})).POST="post",l.MODERATION="moderation",l.DRAFT="draft",(u=r||(r={})).USER="users",u.ORGANIZATION="groups"},73203:function(e,t,o){"use strict";o.d(t,{F:function(){return i}});var n=o(52503),a=o(57052);let i=e=>({getUserFeed(t){let{userId:o,nextPageState:i,onlyOwnerPosts:r,pageSize:s,favorites:c,nextOptions:l}=t;return(0,n.uY)(e).then(e=>e.get("".concat(a.Z.posts,"/users/").concat(o,"/feed"),{params:{favorites:c,pageSize:s,nextPageState:String(i),onlyOwnerPosts:r},isProtected:!1,...l&&{nextOptions:l}}))},getOrganizationFeed(t){let{organizationId:o,nextPageState:i,onlyOwnerPosts:r,pageSize:s,nextOptions:c}=t;return(0,n.uY)(e).then(e=>e.get("".concat(a.Z.posts,"/groups/").concat(o,"/feed"),{params:{nextPageState:String(i),pageSize:s,onlyOwnerPosts:r},isProtected:!1,...c&&{nextOptions:c}}))},getGlobalFeed:t=>(0,n.uY)(e).then(e=>e.get("".concat(a.Z.posts,"/global"),{params:{pageSize:null==t?void 0:t.pageSize,nextPageState:null==t?void 0:t.nextPageState},isProtected:!1})),getGlobalFeedPaged(t){let{nextPageState:o,pageSize:i,nextOptions:r}=t;return(0,n.uY)(e).then(e=>e.get("".concat(a.Z.posts,"/global-paged"),{params:{pageSize:i,nextPageState:String(o)},isProtected:!1,...r?{nextOptions:r}:{}}))},getUhFeed:t=>(0,n.uY)(e).then(e=>e.get("".concat(a.Z.posts,"/uh"),{params:{pageSize:null==t?void 0:t.pageSize,nextPageState:null==t?void 0:t.nextPageState},isProtected:!0})),getMentionsFeed:(t,o,i)=>(0,n.uY)(e).then(e=>e.get("".concat(a.Z.posts,"/users/").concat(o,"/mentions"),{params:{pageSize:null==t?void 0:t.pageSize,nextPageState:null==t?void 0:t.nextPageState},isProtected:!1,...i?{nextOptions:i}:{}})),getSubscriptionsFeed:t=>(0,n.uY)(e).then(e=>e.get("".concat(a.Z.posts,"/subscriptions"),{params:{pageSize:null==t?void 0:t.pageSize,nextPageState:null==t?void 0:t.nextPageState},isProtected:!0})),getTaggableFriends(t){let{text:o,nextPageState:i,pageSize:r}=t;return(0,n.uY)(e).then(e=>e.get("".concat(a.Z.posts,"/getTaggableFriends"),{params:{text:o,pageSize:r,nextPageState:i},isProtected:!0}))},create:t=>(0,n.uY)(e).then(e=>e.post("".concat(a.Z.posts),{body:t,isProtected:!0})),createDraft:t=>(0,n.uY)(e).then(e=>e.post("".concat(a.Z.posts,"/drafts"),{body:t,isProtected:!0})),getDraft:t=>(0,n.uY)(e).then(e=>e.get("".concat(a.Z.posts,"/drafts"),{isProtected:!1,params:t})),deleteDraft:t=>(0,n.uY)(e).then(e=>e.delete("".concat(a.Z.posts,"/drafts"),{isProtected:!1,params:t})),getOneById:(t,o)=>(0,n.uY)(e).then(e=>e.get("".concat(a.Z.po
1sts,"/").concat(t),{isProtected:!1,...(null==o?void 0:o.nextOptions)&&{nextOptions:o.nextOptions}})),search:t=>(0,n.uY)(e).then(e=>e.post("".concat(a.Z.posts,"/!search"),{body:t,isProtected:!1})),getRecommended(t,o){let{from:i,pageSize:r}=t;return(0,n.uY)(e).then(e=>e.get("".concat(a.Z.posts,"/!getRecommended"),{params:{pageSize:r,from:i},isProtected:!1,...o?{nextOptions:o}:{}}))},update:t=>(0,n.uY)(e).then(e=>e.put("".concat(a.Z.posts,"/").concat(t.postId),{body:t.values,isProtected:!0})),remove:t=>(0,n.uY)(e).then(e=>e.delete("".concat(a.Z.posts,"/").concat(t),{isProtected:!0})),getCounters:(t,o)=>(0,n.uY)(e).then(e=>e.post("".concat(a.Z.posts,"/!getCounters"),{body:t,isProtected:!1,...o?{nextOptions:o}:{}})),getUserRepostReactionUsers:(t,o)=>(0,n.uY)(e).then(e=>e.get("".concat(a.Z.posts,"/").concat(t,"/repostUsers"),{params:{pageSize:null==o?void 0:o.pageSize,nextPageState:null==o?void 0:o.nextPageState},isProtected:!0})),vote:(t,o)=>(0,n.uY)(e).then(e=>e.post("".concat(a.Z.posts,"/").concat(t,"/poll/!vote"),{body:o,isProtected:!0})),getVotedUsers:(t,o,i)=>(0,n.uY)(e).then(e=>e.get("".concat(a.Z.posts,"/").concat(t,"/poll/votedUsers"),{params:{answerId:o,pageSize:null==i?void 0:i.pageSize,nextPageState:null==i?void 0:i.nextPageState},isProtected:!0})),getModerationPosts:(t,o)=>(0,n.uY)(e).then(e=>e.get("".concat(a.Z.posts,"/groups/").concat(t,"/moderations"),{params:{pageSize:null==o?void 0:o.pageSize,nextPageState:null==o?void 0:o.nextPageState},isProtected:!0})),getSingleModerationPost:(t,o)=>(0,n.uY)(e).then(e=>e.get("".concat(a.Z.posts,"/groups/").concat(t,"/moderations/").concat(o),{isProtected:!0})),createModerationPost:(t,o)=>(0,n.uY)(e).then(e=>e.post("".concat(a.Z.posts,"/groups/").concat(t,"/moderations"),{body:o,isProtected:!0})),acceptModerationPost:(t,o)=>(0,n.uY)(e).then(e=>e.post("".concat(a.Z.posts,"/groups/").concat(t,"/moderations/").concat(o,"/!approve"),{isProtected:!0})),rejectModerationPost:(t,o)=>(0,n.uY)(e).then(e=>e.post("".concat(a.Z.posts,"/groups/").concat(t,"/moderations/").concat(o,"/!reject"),{isProtected:!0})),acceptAllModerationPost:t=>(0,n.uY)(e).then(e=>e.post("".concat(a.Z.posts,"/groups/").concat(t,"/moderations/!approveAll"),{isProtected:!0})),getSuggestionEntity(t){let{from:o,pageSize:i,type:r,nextOptions:s}=t;return(0,n.uY)(e).then(e=>e.post("".concat(a.Z.posts,"/!suggestionEntity"),{body:{type:r},params:{pageSize:i,from:o},isProtected:!1,...s?{nextOptions:s}:{}}))},getCountries(t){let{countryCode:o,pageSize:i,ignoreIp:r}=t;return(0,n.uY)(e).then(e=>e.get("".concat(a.Z.posts,"/!getNearbyCountries"),{params:{pageSize:i,countryCode:o,...r?{ignoreIp:!0}:{}},isProtected:!1}))},getSearchAggregations:(t,o)=>(0,n.uY)(e).then(e=>e.post("".concat(a.Z.posts,"/!searchAggregations"),{body:t,isProtected:!1,...o?{nextOptions:o}:{}})),getSuggestionPosts(t){let o;let{pageSize:i,from:r,type:s}=t,c="".concat(a.Z.posts).concat((void 0!==t.userId?"/users/".concat(t.userId):"/groups/".concat(t.groupId))+"/!suggestionEntity");return(0,n.uY)(e).then(e=>e.post(c,{params:{pageSize:i,from:r},body:{type:s},isProtected:!1}))}})},88412:function(e,t,o){"use strict";var n,a,i,r,s,c,l,u;o.d(t,{Jx:function(){return i},_S:function(){return a},mP:function(){return r},uT:function(){return n}}),(s=n||(n={})).PROFILE="SELF",s.USER="COLLEAGUE",s.UNKNOWN="UNKNOWN",s.MUTUAL_FRIENDS="MUTUAL_FRIENDS",s.FRIEND="FRIENDSHIP",s.FRIENDSHIP_REQUEST_IN="FRIENDSHIP_REQUEST_IN",s.FRIENDSHIP_REQUEST_OUT="FRIENDSHIP_REQUEST_OUT",s.FOLLOWER="SUBSCRIPTION_IN",s.FOLLOWING="SUBSCRIPTION_OUT",s.FOLLOW_REQUEST_IN="SUBSCRIPTION_IN_REQUEST",s.REQUEST_TO_FOLLOW_OUT="SUBSCRIPTION_OUT_REQUEST",s.USER_BLOCKED="BLACKLIST",s.PROFILE_BLOCKED="BLOCKED",s.ERROR="ERROR",s.FOLLOW="FOLLOW",(c=a||(a={})).Profile="SELF",c.Unknown="UNKNOWN",c.Colleague="COLLEAGUE",c.Friend_Following_Follower="FRIENDSHIP SUBSCRIPTION_OUT SUBSCRIPTION_IN",c.FriendRequestOut_RequestToFollowOut="FRIENDSHIP_REQUEST_OUT SUBSCRIPTION_OUT_REQUEST",c.FriendRequestOut_Following="FRIENDSHIP_REQUEST_OUT SUBSCRIPTION_OUT",c.FriendRequestOut_Following_Follower="FRIENDSHIP_REQUEST_OUT SUBSCRIPTION_OUT SUBSCRIPTION_IN",c.FriendRequestIn_FollowRequestIn="FRIENDSHIP_REQUEST_IN SUBSCRIPTION_IN_REQUEST",c.FriendRequestIn_Follower="FRIENDSHIP_REQUEST_IN SUBSCRIPTION_IN",c.FriendRequestIn_Following_Follower="FRIENDSHIP_REQUEST_IN SUBSCRIPTION_OUT SUBSCRIPTION_IN",c.Follower="SUBSCRIPTION_IN",c.Follower_Following="SUBSCRIPTION_OUT SUBSCRIPTION_IN",c.Following="SUBSCRIPTION_OUT",c.FollowRequestIn="SUBSCRIPTION_IN_REQUEST",c.FollowRequestOut="SUBSCRIPTION_OUT_REQUEST",c.UserBlocked="BLACKLIST",c.ProfileBlocked="BLOCKED",c.UserBlocked_ProfileBlocked="BLACKLIST BLOCKED",(l=i||(i={})).FRIENDS="friends",l.SUBSCRIPTIONS="subscriptions",l.SUBSCRIBERS="subscribers",l.BLACKLIST="blackl
1ist",l.MUTUAL_FRIENDS="mutual_friends",(u=r||(r={})).UNKNOWN="UNKNOWN",u.COLLEAGUE="COLLEAGUE",u.CREATOR="CREATOR",u.CREATOR_REQUEST_IN="CREATOR_REQUEST_IN",u.CREATOR_REQUEST_OUT="CREATOR_REQUEST_OUT",u.ADMIN="ADMIN",u.MEMBERSHIP="MEMBERSHIP",u.MEMBERSHIP_REQUEST_IN="MEMBERSHIP_REQUEST_IN",u.MEMBERSHIP_REQUEST_OUT="MEMBERSHIP_REQUEST_OUT",u.BLACKLIST="BLACKLIST",u.BLOCKED="BLOCKED"},42413:function(e,t,o){"use strict";o.d(t,{NR:function(){return n},g7:function(){return i},h0:function(){return a},wo:function(){return r}});let n=20,a=20;function i(e){return e?{staleTime:1/0,refetchOnMount:!1,refetchOnWindowFocus:!1}:{}}function r(e,t){var o,a,i,r,s,c;if(!e||e.isLastPage)return;let l=null!==(a=null===(o=e.resultSet)||void 0===o?void 0:o.length)&&void 0!==a?a:0,u=l>0?l:null!==(i=e.pageSize)&&void 0!==i?i:n,d=null==t?void 0:t[0],g=null!==(s=null!==(r=null==d?void 0:d.pageSize)&&void 0!==r?r:e.pageSize)&&void 0!==s?s:n;return{from:(null!==(c=e.from)&&void 0!==c?c:0)+u,pageSize:g}}},41525:function(e,t,o){"use strict";var n=o(15969),a=o(71243),i=o(37873),r=o(81976),s=o(95131);let c=async e=>
1{let{entityId:t,favoriteType:o,config:n}=e,i=await (0,a.u)(n).create(o,{entityId:t});if(null==i?void 0:i.error)throw i;return null==i?void 0:i.data};t.default=e=>{let{type:t,config:o}=e,{isPending:a,isSuccess:l,isError:u,error:d,data:g,status:p,mutateAsync:m}=(0,n.useMutation)({mutationKey:["add","favorite"],mutationFn:async e=>await c({entityId:e,favoriteType:t,config:o}),onSuccess:(e,o)=>{i.U.CARS===t||i.U.GUNS===t||i.U.PETS===t||i.U.TROPHIES===t?(r.Z.invalidateQueries({queryKey:["favorites",i.Z.HUNT],refetchType:"all"}),r.Z.invalidateQueries({queryKey:["counters","favorites"],refetchType:"all"}),r.Z.invalidateQueries({queryKey:["hunt"],refetchType:"all",type:"active"})):i.U.POSTS===t?(r.Z.invalidateQueries({queryKey:["favorites",i.Z.POSTS],refetchType:"all"}),r.Z.invalidateQueries({queryKey:["counters","favorites"],refetchType:"all"}),r.Z.invalidateQueries({queryKey:["counters"],type:"active",refetchType:"all"}),r.Z.invalidateQueries({queryKey:s.Z.post.singlePost(o),type:"active",refetchType:"all"}),r.Z.invalidateQueries({queryKey:["posts"],type:"active",refetchType:"all"})):i.U.IMAGES===t?(r.Z.invalidateQueries({queryKey:["favorites",i.Z.MEDIA],refetchType:"all"}),r.Z.invalidateQueries({queryKey:["counters","favorites"],refetchType:"all"}),r.Z.invalidateQueries({queryKey:["media"],type:"active",refetchType:"all"})):i.U.LIBRARY_PUBLICATIONS===t?(r.Z.invalidateQueries({queryKey:["favorites",i.Z.LIBRARY],refetchType:"all"}),r.Z.invalidateQueries({queryKey:["counters","favorites"],refetchType:"all"}),r.Z.invalidateQueries({queryKey:["library"],type:"active",refetchType:"all"})):i.U.LIBRARY_ENCYCLOPEDIAS===t?(r.Z.invalidateQueries({queryKey:["favorites",i.Z.LIBRARY],refetchType:"all"}),r.Z.invalidateQueries({queryKey:["counters","favorites"],refetchType:"all"}),r.Z.invalidateQueries({queryKey:["library"],type:"active",refetchType:"all"})):i.U.MARKET_ADS===t?(r.Z.invalidateQueries({queryKey:["favorites",i.Z.MARKET],refetchType:"all"}),r.Z.invalidateQueries({queryKey:["counters","favorites"],refetchType:"all"}),r.Z.invalidateQueries({queryKey:["market"],type:"active",refetchType:"all"})):i.U.BOOKING_ADS===t?(r.Z.invalidateQueries({queryKey:["favorites",i.Z.BOOKING],refetchType:"all"}),r.Z.invalidateQueries({queryKey:["counters","favorites"],refetchType:"all"}),r.Z.invalidateQueries({queryKey:["booking"],type:"active",refetchType:"all"})):i.U.ALBUMS===t&&(r.Z.invalidateQueries({queryKey:["favorites",i.Z.ALBUMS],refetchType:"all"}),r.Z.invalidateQueries({queryKey:["counters","favorites"],refetchType:"all"}),r.Z.invalidateQueries({queryKey:["media"],type:"active",refetchType:"all"}))}});return{addToFav:m,data:g,error:d,status:p,isError:u,isPending:a,isSuccess:l}}},85315:function(e,t,o){"use strict";var n=o(15969),a=o(71243),i=o(37873),r=o(81976),s=o(95131);let c=async e=>
1{let{id:t,favoriteType:o,config:n}=e,i=await (0,a.u)(n).remove(o,t);if(null==i?void 0:i.error)throw i;return null==i?void 0:i.data};t.default=e=>{let{config:t,type:o}=e,{isPending:a,isSuccess:l,isError:u,error:d,status:g,data:p,mutateAsync:m}=(0,n.useMutation)({mutationKey:["remove","favorite"],mutationFn:async e=>await c({favoriteType:o,id:e,config:t}),onSuccess:(e,t)=>{i.U.CARS===o||i.U.GUNS===o||i.U.PETS===o||i.U.TROPHIES===o?(r.Z.invalidateQueries({queryKey:["favorites",i.Z.HUNT],refetchType:"all"}),r.Z.invalidateQueries({queryKey:["counters","favorites"],refetchType:"all"}),r.Z.invalidateQueries({queryKey:["hunt"],refetchType:"all",type:"active"})):i.U.POSTS===o?(r.Z.invalidateQueries({queryKey:["favorites",i.Z.POSTS],refetchType:"all"}),r.Z.invalidateQueries({queryKey:["counters","favorites"],refetchType:"all"}),r.Z.invalidateQueries({queryKey:["counters"],type:"active",refetchType:"all"}),r.Z.invalidateQueries({queryKey:s.Z.post.singlePost(t),type:"active",refetchType:"all"}),r.Z.invalidateQueries({queryKey:["posts"],type:"active",refetchType:"all"})):i.U.IMAGES===o?(r.Z.invalidateQueries({queryKey:["favorites",i.Z.MEDIA],refetchType:"all"}),r.Z.invalidateQueries({queryKey:["counters","favorites"],refetchType:"all"}),r.Z.invalidateQueries({queryKey:["media"],type:"active",refetchType:"all"})):i.U.VIDEOS===o?(r.Z.invalidateQueries({queryKey:["favorites",i.Z.MEDIA],refetchType:"all"}),r.Z.invalidateQueries({queryKey:["counters","favorites"],refetchType:"all"}),r.Z.invalidateQueries({queryKey:["media"],type:"active",refetchType:"all"})):i.U.LIBRARY_PUBLICATIONS===o?(r.Z.invalidateQueries({queryKey:["favorites",i.Z.LIBRARY],refetchType:"all"}),r.Z.invalidateQueries({queryKey:["counters","favorites"],refetchType:"all"}),r.Z.invalidateQueries({queryKey:["library"],type:"active",refetchType:"all"})):i.U.LIBRARY_ENCYCLOPEDIAS===o?(r.Z.invalidateQueries({queryKey:["favorites",i.Z.LIBRARY],refetchType:"all"}),r.Z.invalidateQueries({queryKey:["counters","favorites"],refetchType:"all"}),r.Z.invalidateQueries({queryKey:["library"],type:"active",refetchType:"all"})):i.U.MARKET_ADS===o?(r.Z.invalidateQueries({queryKey:["favorites",i.Z.MARKET],refetchType:"all"}),r.Z.invalidateQueries({queryKey:["counters","favorites"],refetchType:"all"}),r.Z.invalidateQueries({queryKey:["market"],type:"active",refetchType:"all"})):i.U.BOOKING_ADS===o?(r.Z.invalidateQueries({queryKey:["favorites",i.Z.BOOKING],refetchType:"all"}),r.Z.invalidateQueries({queryKey:["counters","favorites"],refetchType:"all"}),r.Z.invalidateQueries({queryKey:["booking"],type:"active",refetchType:"all"})):i.U.ALBUMS===o?(r.Z.invalidateQueries({queryKey:["favorites",i.Z.ALBUMS],refetchType:"all"}),r.Z.invalidateQueries({queryKey:["counters","favorites"],refetchType:"all"}),r.Z.invalidateQueries({queryKey:["media"],type:"active",refetchType:"all"})):i.U.EVENTS===o&&(r.Z.invalidateQueries({queryKey:["favorites",i.Z.EVENTS],refetchType:"all"}),r.Z.invalidateQueries({queryKey:["counters","favorites"],refetchType:"all"}),r.Z.invalidateQueries({queryKey:["events"],type:"active",refetchType:"all"}))}});return{removeFromFav:m,data:p,error:d,status:g,isError:u,isPending:a,isSuccess:l}}},10724:function(e,t,o){"use strict";var n=o(15969),a=o(21231),i=o.n(a),r=o(89232),s=o.n(r),c=o(90982),l=o(73203),u=o(81976),d=o(95131);let g=async e=>{let{id:t,config:o}=e;if(t){let e=await (0,l.F)(o).remove(t);if(null==e?void 0:e.error)throw e;return null==e?void 0:e.data}return null};t.default=e=>{let{isSingle:t,authUserId:o,config:a}=e,{data:r,error:p,status:m,isError:y,isPending:v,isSuccess:P,mutateAsync:S}=(0,n.useMutation)({mutationKey:["remove","post"],mutationFn:async e=>{var t,o,n;console.log("[REMOVE_POST] Starting post deletion for postId: ".concat(e));let i=u.Z.getQueryData(d.Z.post.singlePost(e));if(i)console.log("[REMOVE_POST] Found post in singlePost cache:",{id:i.id,ownerType:i.ownerType,ownerNickname:null===(o=i.owner)||void 0===o?void 0:o.nickname,isOrganization:(0,c.O)(i.owner)});else for(let[,o]of(console.log("[REMOVE_POST] Post not found in singlePost cache, searching in posts lists"),u.Z.getQueriesData({queryKey:["posts"]})))if(null==o?void 0:o.pages){for(let n of o.pages){let o=n.resultSet.find(t=>
1t.id===e);if(o){console.log("[REMOVE_POST] Found post in posts list:",{id:(i=o).id,ownerType:i.ownerType,ownerNickname:null===(t=i.owner)||void 0===t?void 0:t.nickname,isOrganization:(0,c.O)(i.owner)});break}}if(i)break}if(!i){console.log("[REMOVE_POST] Post ".concat(e," not found in cache, fetching from API before deletion"));try{let t=await (0,l.F)(a).getOneById(e,{nextOptions:{cache:"no-store"}});(null==t?void 0:t.data)&&!(null==t?void 0:t.error)?(i=t.data,console.log("[REMOVE_POST] Fetched post from API:",{id:i.id,ownerType:i.ownerType,ownerNickname:null===(n=i.owner)||void 0===n?void 0:n.nickname,isOrganization:(0,c.O)(i.owner)})):console.warn("[REMOVE_POST] Failed to fetch post ".concat(e," from API:"),null==t?void 0:t.error)}catch(t){console.error("[REMOVE_POST] Error fetching post ".concat(e," from API:"),t)}}let r=await g({id:e,config:a});return await new Promise(e=>setTimeout(e,100)),null!=r?r:void 0},onSuccess:(e,n)=>{u.Z.setQueryData(d.Z.post.counters(o),e=>e?{...e,allPosts:e.allPosts?e.allPosts-1:0,ownPosts:e.ownPosts?e.ownPosts-1:0}:e),t?u.Z.invalidateQueries({queryKey:["posts"],refetchType:"all"}):u.Z.setQueriesData({queryKey:["posts"],type:"all"},e=>e?{...e,pages:s()(e.pages,e=>({...e,resultSet:i()(e.resultSet,e=>e.id!==n)}))}:e)}});return{remove:S,data:r,error:p,status:m,isError:y,isPending:v,isSuccess:P}}},81976:function(e,t,o){"use strict";let n=new(o(71628)).S({defaultOptions:{queries:{refetchOnWindowFocus:!1,retry:1,gcTime:0,staleTime:1e3},mutations:{retry:1,onError:e=>{throw e}}}});t.Z=n},69185:function(e,t,o){"use strict";o.d(t,{default:function(){return l}});var n=o(5068),a=o(81976),i=o(95131),r=o(81695),s=o(34927);let c=async e=>{let{id:t,config:o}=e;if(t){let e=await (0,s.g)(o).getProfileById(t);if(null==e?void 0:e.error)throw 404===e.status&&(0,r.notFound)(),e;return null==e?void 0:e.data}return null};var l=e=>{let{id:t,config:o,enabled:r=!0,initialData:s}=e,{data:l,isError:u,isSuccess:d,error:g,isLoading:p,refetch:m,isRefetching:y,isPending:v,status:P,isFetching:S}=(0,n.useQuery)({queryKey:i.Z.user.profileUser(t),queryFn:()=>c({id:t,config:o}),enabled:!!t&&r,placeholderData:a.Z.getQueryData(i.Z.user.profileUser(t)),initialData:s,staleTime:null!=s?Number.POSITIVE_INFINITY:void 0});return{data:l,error:g,status:P,refetch:m,isError:u,isSuccess:d,isPending:v,isLoading:p,isFetching:S,isRefetching:y}}},26664:function(e,t,o){"use strict";o.d(t,{default:function(){return g}});var n=o(31123),a=o(89232),i=o.n(a),r=o(7653),s=o(95131),c=o(49041),l=o(34927),u=o(42413);let d=async e=>{var t,o;let n,{pageParam:a={from:0},dto:i,config:r,searchType:s,relationType:d}=e;if(s===c.oZ.Default)n=await (0,l.g)(r).searchUsers({...i,relation:d,pagination:{...i.pagination,from:a.from,pageSize:(null===(t=i.pagination)||void 0===t?void 0:t.pageSize)||u.NR}});else{let{...e}=i;n=await (0,l.g)(r).searchRecommendedUsers({...e,pagination:{...i.pagination,from:a.from,pageSize:(null===(o=i.pagination)||void 0===o?void 0:o.pageSize)||u.NR}})}if(null==n?void 0:n.error)throw n;return null==n?void 0:n.data};var g=e=>{let{dto:t,searchType:o,relationType:a,config:c,enabled:l=!0}=e,{data:u,hasNextPage:g=!0,fetchNextPage:p,isFetching:m,isLoading:y,isError:v,error:P,status:S,isPending:f,refetch:h,isRefetching:O}=(0,n.useInfiniteQuery)({queryKey:s.Z.user.search(t,o,a),queryFn:async e=>{let{pageParam:n={from:0,pageSize:20}}=e;return d({pageParam:n,relationType:a,searchType:o,dto:t,config:c})},initialPageParam:{from:0,pageSize:20},getNextPageParam:e=>{if(null==e||!e.isLastPage)return{from:(null==e?void 0:e.from)+(null==e?void 0:e.pageSize)}},enabled:l});return{data:(0,r.useMemo)(()=>i()(null==u?void 0:u.pages,e=>null==e?void 0:e.resultSet).flat(),[u]),hasMore:g,loadMore:p,error:P,status:S,refetch:h,isError:v,isPending:f,isLoading:y,isFetching:m,isRefetching:O}}},78579:function(e){e.exports={container:"styles_container__gpNFu",emptyState:"styles_emptyState__CGUCL",textContainer:"styles_textContainer__IQR71"}}}]);

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.