1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[77651],{14559:function(e,t,n){"use strict";var i=n(27573),o=n(96500),a=n(34455),r=n(21775),l=n(79415),s=n(51810),c=n(49041),d=n(69185),u=n(3632),m=n(17915),A=n(83859),v=n.n(A);t.Z=function(e){var t,n,A,p,h;let{item:f,titleTag:y}=e,g=(0,r.Z)(),{data:w}=(0,a.Z)(e=>(0,d.default)({config:e,id:f.owner.nickname,enabled:f.ownerType!==c.ui.GROUP})),{data:x}=(0,a.Z)(e=>(0,u.Z)({id:f.owner.nickname,mode:c.ih.Full,config:e,enabled:f.ownerType===c.ui.GROUP})),{i18n:O,t:N,resolvedLng:b}=(0,o.E)();return(0,i.jsx)(l.Z,{title:f.title,titleTag:y,subtitle:"".concat(N("create.album.one"),": ").concat(v()(f.createdAt).format("D MMMM HH:mm")),media:null!==(A=f.previewMedia)&&void 0!==A?A:f.lastMedia,to:f.ownerType===c.ui.GROUP?g.organization.media.album(f.owner.nickname,f.id):g.user.media.album(f.owner.nickname,f.id),owner:{name:f.ownerType===c.ui.GROUP?null==x?void 0:x.name:null!==(h=(0,s.vW)({lng:b,firstName:null==w?void 0:w.firstName,lastName:null==w?void 0:w.lastName,nickname:f.owner.nickname,prefix:null!==(p=null==w?void 0:w.namePrefix)&&void 0!==p?p:N("service.hunter")}))&&void 0!==h?h:"",color:m.O.friends,icon:f.ownerType===c.ui.GROUP?"group":"person"},rightIcon:{icon:"album",color:m.O.media,text:(null===(t=f.counters)||void 0===t?void 0:t.mediaSummary)?"".concat(null===(n=f.counters)||void 0===n?void 0:n.mediaSummary," ").concat(N("media.media")):N("empty.media.noMedia")}})}},82572:function(e,t,n){"use strict";var i=n(27573),o=n(96500),a=n(21775),r=n(79415),l=n(51810),s=n(90982),c=n(17915);t.Z=function(e){var t,n,d;let{item:u,titleTag:m}=e,A=(0,a.Z)(),{i18n:v,t:p,resolvedLng:h}=(0,o.E)();return(0,i.jsx)(r.Z,{title:"".concat(u.brand," ").concat(u.model),titleTag:m,subtitle:u.type,media:u.media?u.media[0]:null,to:(0,s.O)(u.owner)?A.organization.hunt.car(u.owner.nickname,u.id):A.user.hunt.car(u.owner.nickname,u.id),owner:{name:(0,s.O)(u.owner)?u.owner.name:null!==(d=(0,l.vW)({lng:h,firstName:u.owner.firstName,lastName:u.owner.lastName,nickname:u.owner.nickname,prefix:null!==(n=null===(t=u.owner)||void 0===t?void 0:t.namePrefix)&&void 0!==n?n:p("service.hunter")}))&&void 0!==d?d:"",color:c.O.friends,icon:"person"},rightIcon:{icon:"car",color:c.O.pets}})}},58881:function(e,t,n){"use strict";var i=n(27573),o=n(96500),a=n(45141),r=n(21775),l=n(79415),s=n(17915);t.Z=function(e){let{item:t,titleTag:n}=e,{t:c}=(0,o.E)(),d=(0,r.Z)(),u="".concat(c("event.title.singular"),": ").concat((0,a.Wj)({date:null==t?void 0:t.createdAt}));return(0,i.jsx)(l.Z,{title:t.name,titleTag:n,subtitle:u,media:t.media?t.media[0]:null,location:t.address.geoLocation,to:d.news.event.main({id:t.id}),rightIcon:{icon:"events",color:s.O.news}})}},62289:function(e,t,n){"use strict";var i=n(27573),o=n(96500),a=n(21775),r=n(79415),l=n(51810),s=n(90982),c=n(7380),d=n(17915);t.Z=function(e){var t,n,u;let{item:m,titleWidth:A,titleTag:v}=e,p=(0,a.Z)(),{i18n:h,t:f,resolvedLng:y}=(0,o.E)(),{data:g}=(0,c.default)({typeId:m.type,lang:y,gunTypeOtherName:f("common.other")});return(0,i.jsx)(r.Z,{title:"".concat(m.brand," ").concat(m.model),titleWidth:A,titleTag:v,subtitle:g,media:m.media?m.media[0]:null,to:(0,s.O)(m.owner)?p.organization.hunt.gun(m.owner.nickname,m.id):p.user.hunt.gun(m.owner.nickname,m.id),owner:{name:(0,s.O)(m.owner)?m.owner.name:null!==(u=(0,l.vW)({lng:y,firstName:m.owner.firstName,lastName:m.owner.lastName,nickname:m.owner.nickname,prefix:null!==(n=null===(t=m.owner)||void 0===t?void 0:t.namePrefix)&&void 0!==n?n:f("service.hunter")}))&&void 0!==u?u:"",color:d.O.friends,icon:"person"},rightIcon:{icon:"gun",color:d.O.pets}})}},24073:function(e,t,n){"use strict";var i=n(27573),o=n(96500),a=n(79017),r=n(92849),l=n(21775),s=n(79415),c=n(51810),d=n(17915),u=n(30895),m=n.n(u);t.Z=function(e){var t,n,u;let A=(0,l.Z)(),{resolvedLng:v,t:p}=(0,o.E)(),h=(0,r.p)(null===(t=e.item)||void 0===t?void 0:t.createdAt,v,{timeZone:null!==(n=e.dateTimeZone)&&void 0!==n?n:"local",showRelative:e.showRelativeDate}),f="".concat(p("news.fullPost.post"),": ").concat(h),y="owner"in e?e.owner:e.item.owner,g="ownerType"in e?e.ownerType:e.item.ownerType,w=(0,a.r)(y,g),x=e.item.body?m()(e.item.body):null,O=x&&x.length>170?x.slice(0,170):x,N=w?null==y?void 0:y.name:(0,c.vW)({lng:v,firstName:null==y?void 0:y.firstName,nickname:null==y?void 0:y.nickname,lastName:null==y?void 0:y.lastName,prefix:null!==(u=null==y?void 0:y.namePrefix)&&void 0!==u?u:p("service.hunter")});return(0,i.jsx)(s.Z,{title:(null==x?void 0:x.length)?O:p("news.fullPost.post"),titleWidth:e.titleWidth,titleTag:e.titleTag,subtitle:f,media:e.item.media?e.item.media[0]:null,to:A.news.post(e.item.id),owner:{name:null!=N?N:"",color:d.O.friends,icon:"person"},rightIcon:{icon:"news",color:d.O.news},...!!e.containerStyle&&{containerStyle:e.containerStyle}})}},19762:function(e,t,n){"use strict";var i=n(27573),o=n(96500),a=n(21775),r=n(79415),l=n(2731),s=n(51810),c=n(81344),d=n(90982),u=n(17915);t.Z=function(e){var t,n,m,A,v,p,h,f;let{item:y,titleWidth:g,titleTag:w}=e,x=(0,a.Z)(),{i18n:O,t:N,resolvedLng:b}=(0,o.E)();return(0,i.jsx)(r.Z,{title:y.name,titleWidth:g,titleTag:w,subtitle:(null==y?void 0:y.type)===c.d.Dog?"".concat(N(null!==(v=null===(t=(0,l.Z)(y.type).animalType)||void 0===t?void 0:t.label)&&void 0!==v?v:"")).concat((null===(n=y.breed)||void 0===n?void 0:n.name)?" ⢠".concat(y.breed.name):""):(null==y?void 0:y.type)?N(null!==(p=null===(m=(0,l.Z)(y.type).animalType)||void 0===m?void 0:m.label)&&void 0!==p?p:""):"",media:y.media?y.media[0]:null,to:(0,d.O)(y.owner)?x.organization.hunt.pet(y.owner.nickname,y.id):x.user.hunt.pet(y.owner.nickname,y.id),owner:{name:(0,d.O)(y.owner)?y.owner.name:null!==(f=(0,s.vW)({lng:b,firstName:y.owner.firstName,lastName:y.owner.lastName,nickname:y.owner.nickname,prefix:null!==(h=null===(A=y.owner)||void 0===A?void 0:A.namePrefix)&&void 0!==h?h:N("service.hunter")}))&&void 0!==f?f:"",color:u.O.friends,icon:"person"},rightIcon:{icon:"pet",color:u.O.pets}})}},72397:function(e,t,n){"use strict";var i=n(27573),o=n(96500),a=n(21775),r=n(79415),l=n(51810),s=n(90982),c=n(17915);t.Z=function(e){var t,n,d;let{item:u,titleTag:m}=e,A=(0,a.Z)(),{t:v,resolvedLng:p}=(0,o.E)();return(0,i.jsx)(r.Z,{title:u.species,titleTag:m,subtitle:u.latinSpecies,media:u.media?u.media[0]:null,to:(0,s.O)(u.owner)?A.organization.hunt.trophy(u.owner.nickname,u.id):A.user.hunt.trophy(u.owner.nickname,u.id),owner:{name:(0,s.O)(u.owner)?u.owner.name:null!==(d=(0,l.vW)({lng:p,firstName:u.owner.firstName,lastName:u.owner.lastName,nickname:u.owner.nickname,prefix:null!==(n=null===(t=u.owner)||void 0===t?void 0:t.namePrefix)&&void 0!==n?n:v("service.hunter")}))&&void 0!==d?d:"",color:c.O.friends,icon:"person"},rightIcon:{icon:"aim",color:c.O.pets}})}},13174:function(e,t,n){"use strict";n.d(t,{ZP:function(){return z},c$:function(){return B}});var i=n(27573),o=n(96500),a=n(14559),r=n(82572),l=n(45141),s=n(79415),c=n(51810),d=n(17915),u=function(e){var t,n;let{item:a,titleWidth:r}=e,{i18n:u,t:m,resolvedLng:A}=(0,o.E)(),v="".concat(m("actions.answer"),": ").concat((0,l.Wj)({date:null==a?void 0:a.creationDate})),p=null==a?void 0:a.owner,h=(0,c.vW)({lng:A,firstName:null==p?void 0:p.firstName,nickname:null==p?void 0:p.nickname,lastName:null==p?void 0:p.lastName,prefix:null!==(n=null==p?void 0:p.namePrefix)&&void 0!==n?n:m("service.hunter")});return(0,i.jsx)(s.Z,{title:(null===(t=a.body)||void 0===t?void 0:t.length)?a.body:"",titleWidth:r,subtitle:v,media:a.media?a.media[0]:null,owner:{name:null!=h?h:"",color:d.O.friends,icon:"person"},rightIcon:{icon:"comments",color:d.O.profile}})},m=n(58881),A=n(62289),v=n(24073),p=n(19762),h=n(72397),f=n(25663),y=n(34455),g=n(81502),w=n(475),x=n(66349),O=n(73353),N=n(26365),b=n(88848),Z=n(15969),C=n(80347),k=n(52503),j=n(57052);let I=e=>({createReport:t=>(0,k.uY)(e).then(e=>e.post("".concat(j.Z.reports),{body:t,isProtected:!0})),resolveReport:(t,n)=>(0,k.uY)(e).then(e=>e.post("".concat(j.Z.reports,"/").concat(t,"/!resolve"),{body:n,isProtected:!0})),resolveAllReports:t=>(0,k.uY)(e).then(e=>e.post("".concat(j.Z.reports,"/!resolve-all-by-entity"),{body:t,isProtected:!0})),getReportById:t=>(0,k.uY)(e).then(e=>e.get("".concat(j.Z.reports,"/").concat(t),{isProtected:!0})),getFilterReport(t){let{type:n,entityType:i,dateSortOrder:o,isResolved:a,nextPageState:r,pageSize:l}=t;return(0,k.uY)(e).then(e=>e.get("".concat(j.Z.reports),{params:{type:n,entityType:i,dateSortOrder:o,isResolved:a,nextPageState:r,pageSize:l},isProtected:!0}))}});async function M(e){let{data:t,config:n}=e,i=await I(n).createReport(t);if(null==i?void 0:i.error)throw i;return null==i?void 0:i.data}var S=n(7653),P=n(57582),T=n(64452),_=n(34348),E=n(80567),D=n(5361);let R=[{title:"report.category.spam",type:b.C2.SPAM},{title:"report.category.insult",type:b.C2.INSULT},{title:"report.category.fraud",type:b.C2.FRAUD},{title:"report.category.violence",type:b.C2.VIOLENCE},{title:"report.category.pornography",type:b.C2.PORN},{title:"report.category.prohibitedMaterial",type:b.C2.PROHIBITED_MATERIAL},{title:"report.category.copyright",type:b.C2.COPYRIGHT},{title:"report.category.privacy",type:b.C2.PRIVACY},{title:"report.category.other",type:b.C2.OTHER}],U={isOpen:!1,modalProps:null},L=(0,P.Ue)()((0,_.n)((0,T.mW)(e=>({...U,show:t=>e(e=>({...e,isOpen:!0,modalProps:t})),close:()=>e(U)}),{enabled:!0})));function B(){let e=L((0,E.N)(e=>({show:e.show,isOpen:e.isOpen})));return{show:e.show,isOpen:e.isOpen}}var z=function(){let{t:e}=(0,o.E)(),{show:t}=(0,O.iI)(),[n,l]=(0,S.useState)(),[s,k]=(0,S.useState)(),{isOpen:j,close:I,modalProps:P}=L(),T={[b.CD.POST]:v.Z,[b.CD.PET]:p.Z,[b.CD.TROPHY]:h.Z,[b.CD.GUN]:A.Z,[b.CD.CAR]:r.Z,[b.CD.ALBUM]:a.Z,[b.CD.EVENT]:m.Z,[b.CD.COMMENT]:u}[null==P?void 0:P.entityType],{send:_,isPending:E,isSuccess:U}=(0,y.Z)(e=>(function(e){let{data:t,isPending:n,isSuccess:i,isError:o,mutateAsync:a,error:r,status:l}=(0,Z.useMutation)({mutationKey:C.S.custom(null,C.f.SendReport),mutationFn:t=>M({data:t,config:e})});return{data:t,isPending:n,isSuccess:i,isError:o,send:a,error:r,status:l}})(e));return(0,S.useEffect)(()=>{U&&(I(),t({title:e("overflowMenu.reportModal.wasSend"),subtitle:e("overflowMenu.reportModal.moderatorSees"),status:O.YK.Done,buttons:{direction:"row",color:d.O.contentPrimary,items:{onClick:e=>e(),text:e("actions.done")}}}))},[U]),(0,i.jsx)(N.Z,{close:I,showModal:j,style:{padding:0,width:440,height:562},children:(0,i.jsx)(D.Z,{title:n?e(n.title):e("actions.report"),secondButton:{color:d.O.contentPrimary,text:e("actions.send"),...!!P&&!!n&&{onClick:()=>_({type:null==n?void 0:n.type,entityType:null==P?void 0:P.entityType,entityId:null==P?void 0:P.entityId,comment:(0,c.FV)(null!=s?s:"")||void 0})},...!n&&{disabled:!0},fetching:E},goBack:I,children:n?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(g.Z,{line:!0,children:(0,i.jsx)(T,{item:P.item})}),(0,i.jsx)("div",{style:{height:384,overflow:"auto"},children:(0,i.jsx)(f.Z,{value:s,onChange:e=>k(e.target.value),maxLength:500,placeholder:e("report.placeholder")})})]}):(0,i.jsx)("div",{style:{height:476,paddingBlockStart:8},children:R.map((t,n)=>(0,i.jsx)(w.Z,{type:x.l.Menu,title:e(t.title),onClick:()=>l(t),rightComponent:{type:x.U.Icon,props:{icon:"chevron-right"}}},n))})})})}},91522:function(e,t,n){"use strict";n.d(t,{Z:function(){return ec},F:function(){return es}});var i=n(27573),o=n(96500),a=n(87301),r=n(34455),l=n(21775),s=n(63575),c=n(93047),d=n(92660),u=n(26365),m=n(74351),A=n(51524),v=n(90982),p=n(49041),h=n(88412),f=n(26664),y=n(17915),g=n(65225),w=n(64751),x=n(38278),O=n.n(x),N=n(81695),b=n(7653),Z=n(80552),C=n(57582),k=n(64452),j=n(34348),I=n(80567),M=n(5361),S=n(30191),P=n(6529),T=n(64466),_=n(80017),E=n(81502),D=n(44340),R=n(69249),U=n(58902),L=n(4065),B=n(96667),z=n(51810),F=n(21231),Y=n.n(F),V=n(89382),W=n(77026
1),J=n.n(W);function H(){let{t:e}=(0,o.E)(),[t,n]=(0,b.useState)(""),[a]=(0,V.Nr)((0,z.FV)(t),500),l=[{title:e("messenger.sort.allContacts"),value:h.Jx.SUBSCRIPTIONS},{title:e("messenger.sort.friends"),value:h.Jx.FRIENDS}],[s,c]=(0,b.useState)(l[0]),{isSelected:u,onSelect:m,selected:A,setSelected:v}=(0,_.v)({key:"userId"}),{isFetching:w,data:x,hasMore:N,loadMore:Z,error:C,isError:k}=(0,r.Z)(e=>(0,f.default)({dto:{search:a||void 0},searchType:p.oZ.Default,relationType:null==s?void 0:s.value,config:e}));return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(E.Z,{paddingInline:!0,...!O()(A)&&{line:!0},children:[(0,i.jsxs)("div",{className:J().searchContainer,children:[(0,i.jsx)("div",{className:J().search,children:(0,i.jsx)(g.JO,{icon:"search",size:20,color:y.O.contentTertiary})}),(0,i.jsx)(L.Z,{style:{border:"none",padding:0,height:28},value:t,onChange:e=>n(e.target.value),placeholder:e("common.search.title")}),!!t&&(0,i.jsx)("button",{type:"button",onClick:()=>n(""),children:(0,i.jsx)(g.JO,{icon:"close-circle",size:20,color:y.O.contentTertiary})})]}),A.length>0&&(0,i.jsx)("div",{className:J().tags,children:A.map(e=>(0,i.jsx)(B.Z,{value:"".concat(e.firstName||e.nickname," ").concat(e.lastName?e.lastName:""),onRemove:()=>v(Y()(A,t=>(null==t?void 0:t.userId)!==(null==e?void 0:e.userId)))},null==e?void 0:e.userId))})]}),(0,i.jsx)(U.default,{paddingInline:!0,title:{text:null==s?void 0:s.title,chevron:!0,options:[{...l[0],onClick:()=>c(l[0])},{...l[1],onClick:()=>c(l[1])}],activeOption:null==s?void 0:s.value}}),(0,i.jsx)("div",{style:{height:506,paddingBlockStart:O()(A)?8:16},children:(0,i.jsx)(g.Xl,{data:x,LoaderComponent:(0,i.jsx)(R.Z,{}),EmptyComponent:(0,i.jsx)(P.default,{status:null==C?void 0:C.status,emptyType:a?T.C.Search:T.C.FriendsUserProfile}),LoaderListComponent:(0,i.jsx)(D.Z,{count:7}),renderItem:e=>{let{item:t}=e;return(0,i.jsx)(S.Z,{selected:u(t),item:t,onClick:()=>{m(t)}})},hasMore:N,loadMore:Z,isFetching:w,isError:k,useWindowScroll:!1})}),(0,i.jsx)("div",{className:J().buttonContainer,children:(0,i.jsx)(d.default,{style:{width:"auto",backgroundColor:y.O.news,borderRadius:8},text:e("actions.select"),onClick:()=>{},counter:{counter:A.length,theme:g.f_.White}})})]})}var X=n(57054),G=n.n(X);function K(e){let{data:t,renderItem:n,setIsVisible:o}=e,a=(0,b.useRef)(null),[r,l]=(0,b.useState)(!1),[s,c]=(0,b.useState)(!1),d=()=>{if(a.current){let{scrollLeft:e,scrollWidth:t,clientWidth:n}=a.current;l(e>0),c(e<t-n-1)}};return(0,b.useEffect)(()=>{if(a.current){let{scrollWidth:e,clientWidth:t}=a.current;c(e>t)}},[t]),(0,b.useEffect)(()=>(a.current&&a.current.addEventListener("scroll",d),()=>{a.current&&a.current.removeEventListener("scroll",d)}),[]),(0,i.jsxs)("div",{className:G().container,children:[(0,i.jsx)(U.default,{title:"UH.app Messenger:",paddingInline:!0}),(0,i.jsxs)("div",{ref:a,className:G().carouselContainer,children:[(0,i.jsxs)("button",{type:"button",className:G().avatarContainer,style:{marginInlineStart:16},onClick:()=>o(!0),children:[(0,i.jsx)("div",{className:G().messageAvatar,children:(0,i.jsx)(g.JO,{color:y.O.basePrimary,icon:"message",size:32})}),(0,i.jsxs)("div",{className:G().textContainer,children:[(0,i.jsx)(m.Z,{className:w.MY.Subtitle,text:"UH.app",style:{color:y.O.link},numberOfLines:1,wrapType:g.Zl.Ellipsis}),(0,i.jsx)(m.Z,{className:w.MY.Subtitle,text:"Messenger",style:{color:y.O.link},numberOfLines:1,wrapType:g.Zl.Ellipsis})]})]}),t.map((e,o)=>(0,i.jsx)("div",{style:{marginInlineEnd:o+1===t.length?16:0},children:(0,i.jsx)("div",{style:{display:"flex"},children:n({item:e,index:o})})},o+"avatarMessageCard"))]}),(0,i.jsx)("div",{style:{height:8,marginInline:16,borderBlockEnd:"1px solid ".concat(y.O.contentQuaternary)}}),!!r&&(0,i.jsx)(g.JO,{icon:"chevron-left",size:40,style:{left:8},className:G().sideBarContainer,onClick:()=>{a.current&&a.current.scrollBy({left:-540,behavior:"smooth"})}}),!!s&&(0,i.jsx)(g.JO,{icon:"chevron-right",size:40,style:{right:8},className:G().sideBarContainer,onClick:()=>{a.current&&a.current.scrollBy({left:540,behavior:"smooth"})}})]})}var Q=n(72483),q=n(66110),$=n(20248),ee=n(63263),et=n(76200),en=n(88627),ei=n(86078),eo=n(43465),ea=n(65047);let er={isOpen:!1,modalProps:null},el=(0,C.Ue)()((0,j.n)((0,k.mW)(e=>({...er,show:t=>e(e=>({...e,isOpen:!0,modalProps:t})),close:()=>e(er)}),{enabled:!0})));function es(){let e=el((0,I.N)(e=>({show:e.show,isOpen:e.isOpen})));return{show:e.show,isOpen:e.isOpen}}var ec=function(){var e,t,n,x;let{t:C}=(0,o.E)(),k=(0,N.useRouter)(),j=(0,l.Z)(),I=(0,N.usePathname)(),[,S]=(0,a.Z)(),[P,T]=(0,b.useState)(!1),{isOpen:_,close:E,modalProps:D}=el(),R={[A.wX.POST]:e=>j.news.post(e.id),[A.wX.PET]:e=>(0,v.O)(e.owner)?j.organization.hunt.pet(e.owner.nickname,e.id):j.user.hunt.pet(e.owner.nickname,e.id),[A.wX.GUN]:e=>(0,v.O)(e.owner)?j.organization.hunt.gun(e.owner.nickname,e.id):j.user.hunt.gun(e.owner.nickname,e.id),[A.wX.TROPHY]:e=>(0,v.O)(e.owner)?j.organization.hunt.trophy(e.owner.nickname,e.id):j.user.hunt.trophy(e.owner.nickname,e.id),[A.wX.CAR]:e=>(0,v.O)(e.owner)?j.organization.hunt.car(e.owner.nickname,e.id):j.user.hunt.car(e.owner.nickname,e.id),[A.wX.EVENT]:e=>j.news.event.main({id:e.id}),[A.wX.ALBUM]:e=>(null==e?void 0:e.ownerType)===p.ui.GROUP?j.organization.media.album(e.owner.nickname,e.id):j.user.media.album(e.owner.nickname,e.id),[A.wX.BOOKING_AD]:e=>j.booking.ad(e.id),[A.wX.MARKET_AD]:e=>j.market.ad(e.id),[A.wX.MEDIA_POST]:()=>"",[A.wX.LIBRARY]:()=>"",[A.wX.LIBRARY_ENCYCLOPEDIA]:e=>{let[t,n]=e.id.split("_");
1return j.library.article(n,t)}},L=(e=null==D?void 0:D.item,t=null==D?void 0:D.entityType,e&&t&&null!==(x=null===(n=R[t])||void 0===n?void 0:n.call(R,e))&&void 0!==x?x:null),{data:B}=(0,r.Z)(e=>(0,f.default)({dto:{search:void 0},searchType:p.oZ.Default,relationType:h.Jx.FRIENDS,config:e}));return(0,i.jsx)(u.Z,{close:E,showModal:_,style:{display:"flex",padding:0,width:440,...P&&{height:680}},children:(0,i.jsx)(M.Z,{title:C(P?"common.contacts":"actions.share"),goBack:P?()=>T(!1):E,children:P?(0,i.jsx)(H,{}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{className:G().addPostContainer,children:[(0,i.jsx)(m.Z,{className:g.MY.HeadLine1,text:"".concat(C("actions.shareIn")," UH.app"),style:{color:y.O.contentPrimary}}),(0,i.jsx)(d.default,{text:C("post.create"),size:w.v.L,style:{backgroundColor:y.O.news,width:"auto"},onClick:()=>{k.replace("".concat(I,"/?add=").concat(s.yk.News,"&").concat(s.yk.Repost,"=").concat(null==D?void 0:D.entityId,"&type=").concat(null==D?void 0:D.entityType)),E()}})]}),!O()(B)&&(0,i.jsx)(K,{data:[],renderItem:e=>{var t,n;let{item:o}=e,a={firstName:null==o?void 0:o.firstName,lastName:null==o?void 0:o.lastName};return(0,i.jsxs)("div",{className:G().avatarContainer,children:[(0,i.jsx)(c.ZP,{size:c.DZ.M,hash:null===(t=o.avatar)||void 0===t?void 0:t.hash,mediaId:null===(n=o.avatar)||void 0===n?void 0:n.mediaId,type:p.ex.User,color:null==o?void 0:o.color,abbreviation:(0,c.hv)(a)?a:(null==o?void 0:o.firstName)||(null==o?void 0:o.lastName)||(null==o?void 0:o.nickname)}),(0,i.jsxs)("div",{className:G().textContainer,children:[(0,i.jsx)(m.Z,{className:g.MY.Subtitle,text:o.firstName||o.nickname,style:{color:y.O.contentPrimary,wordBreak:"break-word"},numberOfLines:1,wrapType:g.Zl.Ellipsis}),(0,i.jsx)(m.Z,{className:g.MY.Subtitle,text:o.lastName,style:{color:y.O.contentPrimary,wordBreak:"break-word"},numberOfLines:1,wrapType:g.Zl.Ellipsis})]})]})},setIsVisible:T}),(0,i.jsxs)("div",{style:{paddingBlock:8},children:[(0,i.jsx)(U.default,{title:C("actions.shareVia"),paddingInline:!0}),(0,i.jsxs)("div",{className:G().shareIconContainer,children:[(0,i.jsxs)("div",{className:G().shareIcon,children:[(0,i.jsx)(Z.cG,{url:"https://uh.app".concat(L),children:(0,i.jsx)(c.ZP,{size:c.DZ.M,customSrc:$.Z.src,alt:"Email"})}),(0,i.jsx)(m.Z,{text:C("common.shareViaEmail"),className:g.MY.Subtitle,style:{color:y.O.contentPrimary}})]}),(0,i.jsxs)("div",{className:G().shareIcon,children:[(0,i.jsx)(Z.N0,{url:"https://uh.app".concat(L),children:(0,i.jsx)(c.ZP,{size:c.DZ.M,customSrc:eo.Z.src,alt:"WhatsApp"})}),(0,i.jsx)(m.Z,{text:"WhatsApp",className:g.MY.Subtitle,style:{color:y.O.contentPrimary}})]}),(0,i.jsxs)("div",{className:G().shareIcon,children:[(0,i.jsx)(Z.UE,{url:"https://uh.app".concat(L),children:(0,i.jsx)(c.ZP,{size:c.DZ.M,customSrc:en.Z.src,alt:"Viber"})}),(0,i.jsx)(m.Z,{text:"Viber",className:g.MY.Subtitle,style:{color:y.O.contentPrimary}})]}),(0,i.jsxs)("div",{className:G().shareIcon,children:[(0,i.jsx)(Z.tq,{url:"https://uh.app".concat(L),children:(0,i.jsx)(c.ZP,{size:c.DZ.M,customSrc:et.Z.src,alt:"Telegram"})}),(0,i.jsx)(m.Z,{text:"Telegram",className:g.MY.Subtitle,style:{color:y.O.contentPrimary}})]}),(0,i.jsxs)("div",{className:G().shareIcon,children:[(0,i.jsx)(Z.Dk,{url:"https://uh.app".concat(L),children:(0,i.jsx)(c.ZP,{size:c.DZ.M,customSrc:Q.Z.src,alt:"Facebook"})}),(0,i.jsx)(m.Z,{text:"Facebook",className:g.MY.Subtitle,style:{color:y.O.contentPrimary}})]}),(0,i.jsxs)("div",{className:G().shareIcon,children:[(0,i.jsx)(Z.vK,{url:"https://uh.app".concat(L),children:(0,i.jsx)(c.ZP,{size:c.DZ.M,customSrc:ei.Z.src,alt:"VK"})}),(0,i.jsx)(m.Z,{text:"VK",className:g.MY.Subtitle,style:{color:y.O.contentPrimary}})]}),(0,i.jsxs)("div",{className:G().shareIcon,children:[(0,i.jsx)(Z.ql,{url:"https://uh.app".concat(L),children:(0,i.jsx)(c.ZP,{size:c.DZ.M,customSrc:ee.Z.src,alt:"OK"})}),(0,i.jsx)(m.Z,{text:"OK",className:g.MY.Subtitle,style:{color:y.O.contentPrimary}})]}),(0,i.jsxs)("div",{className:G().shareIcon,children:[(0,i.jsx)(Z.r2,{url:"https://uh.app".concat(L),children:(0,i.jsx)(c.ZP,{size:c.DZ.M,customSrc:q.Z.src,alt:"LinkedIn"})}),(0,i.jsx)(m.Z,{text:"LinkedIn",className:g.MY.Subtitle,style:{color:y.O.contentPrimary}})]}),(0,i.jsxs)("div",{className:G().shareIcon,children:[(0,i.jsx)(Z.B,{url:"https://uh.app".concat(L),children:(0,i.jsx)(c.ZP,{size:c.DZ.M,customSrc:ea.Z.src,alt:"X"})}),(0,i.jsx)(m.Z,{text:"X",className:g.MY.Subtitle,style:{color:y.O.contentPrimary}})]})]})]}),(0,i.jsxs)("div",{className:G().copiedPathContainer,children:[(0,i.jsx)("div",{className:G().copiedPath,children:(0,i.jsx)(m.Z,{text:"https://uh.app".concat(L),className:g.MY.Text,wrapType:g.Zl.Ellipsis,numberOfLines:1,style:{color:y.O.contentPrimary}})}),(0,i.jsx)(d.default,{text:C("actions.copy"),size:w.v.L,style:{backgroundColor:y.O.link,width:"auto",paddingInline:16},onClick:()=>{S("https://uh.app".concat(L))}})]})]})})})}},30982:function(e,t,n){"use strict";n.d(t,{Z:function(){return f}});var i=n(27573),o=n(61132),a=n.n(o),r=n(475),l=n(66349),s=n(17915),c=n(65225),d=n(38278),u=n.n(d),m=n(7653),A=n(27624),v=n(96500),p=n(73622),h=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],{t}=(0,v.E)(),n=(0,m.useMemo)(()=>({[p.L.AddInFavorite]:{icon:{name:"bookmark-default"},title:t("overflowMenu.addInFav")},[p.L.InFavorite]:{icon:{name:"bookmark-active",color:s.O.contentSecondary},title:t("overflowMenu.inFav")},[p.L.Answer]:{icon:{name:"reply"},title:t("comments.reply")},[p.L.Cover]:{icon:{name:"reply"},title:t("overflowMenu.cover")},[p.L.Edit]:{icon:{name:"edit-square"},title:t("overflowMenu.edit")},[p.L.Share]:{icon:{name:"share"},title:t("overflowMenu.share")},[p.L.CopyLink]:{icon:{name:"copy"},title:t("overflowMenu.copyLink")},[p.L.Download]:{icon:{name:"download"},title:t("overflowMenu.download")},[p.L.Report]:{icon:{name:"complain"},title:t("overflowMenu.report")},[p.L.Upload]:{icon:{name:"media-add"},title:t("actions.report")},[p.L.Delete]:{icon:{name:"trash",color:s.O.negative},title:t("overflowMenu.delete")}}),[t]);return e.map(e=>({...n[e.optionName],onClick:e.onClick}))},f=function(e){let{options:t}=e,[n,o]=(0,m.useState)(!1),d=h(t),{triggerProps:v,layerProps:p}=(0,A.sJ)({isOpen:n,placement:"bottom-end",auto:!0,possiblePlacements:["bottom-end","top-end","bottom-start","to
1p-start"],snap:!0,triggerOffset:4,onDisappear:()=>o(!1),onOutsideClick:()=>o(!1)});return(0,i.jsxs)("div",{...v,onClick:()=>{o(!n)},children:[(0,i.jsx)("button",{type:"button",children:(0,i.jsx)(c.JO,{icon:"overflow-menu_dp",color:s.O.profile,size:24})}),!!n&&!u()(d)&&(0,i.jsx)("div",{className:a().popperContainer,...p,children:d.map(e=>(0,i.jsx)(r.Z,{type:l.l.Option,...e,onClick:()=>e.onClick(()=>o(!1))},"overflowOption_"+e.title))})]})}},73622:function(e,t,n){"use strict";var i,o;n.d(t,{L:function(){return i}}),(o=i||(i={})).InFavorite="inFavorite",o.AddInFavorite="addInFavorite",o.Answer="answer",o.Cover="cover",o.Edit="edit",o.Share="share",o.CopyLink="copyLink",o.Download="download",o.Report="report",o.Upload="upload",o.Delete="delete"},25663:function(e,t,n){"use strict";var i=n(27573),o=n(81502),a=n(5538);t.Z=function(e){let{value:t,placeholder:n,onChange:r,maxLength:l,textError:s}=e;return(0,i.jsx)(o.Z,{fullScreen:!0,paddingInline:!0,children:(0,i.jsx)(a.Z,{value:t,placeholder:n,onChange:r,maxLength:l,textError:s,autoSize:!0,style:{border:"none",padding:0,borderRadius:0}})})}},79017:function(e,t,n){"use strict";n.d(t,{Z:function(){return D},r:function(){return E}});var i=n(27573),o=n(96500),a=n(59333),r=n(13174),l=n(91522),s=n(30982),c=n(73622),d=n(92849),u=n(87301),m=n(34455),A=n(97544),v=n(21775),p=n(63575),h=n(93047),f=n(73353),y=n(74351),g=n(30645),w=n(51810),x=n(49041),O=n(37873),N=n(51524),b=n(88848),Z=n(10724),C=n(17915),k=n(65225),j=n(60831),I=n.n(j),M=n(64387),S=n(88146),P=n(81695),T=n(79634),_=n.n(T);function E(e,t){return t===x.ui.GROUP}function D(e){var t,n,j,T,D,R,U,L,B,z,F,Y,V,W,J,H,X,G,K,Q,q,$,ee,et,en,ei,eo,ea,er,el,es,ec;let{post:ed,isModeration:eu,ownerTag:em,fullPost:eA=!1,dateTimeZone:ev="local",showRelativeDate:ep=!0}=e,eh=(0,P.useRouter)(),ef=(0,P.usePathname)(),ey=(0,v.Z)(),{data:eg}=(0,M.useSession)(),ew=null==eg?void 0:eg.userId,{error:ex,done:eO}=(0,g.z)(),{show:eN,close:eb}=(0,f.iI)(),{show:eZ}=(0,a.N)(),{t:eC,resolvedLng:ek}=(0,o.E)(),ej=null==ed?void 0:ed.owner,eI=E(ej,null==ed?void 0:ed.ownerType),eM=(eI?null==ej?void 0:ej.id:null==ej?void 0:ej.userId)===ew,eS=!!(eI&&ed.privacy.read&&ed.privacy.update&&ew),[,eP]=(0,u.Z)(),{remove:eT}=(0,Z.default)((0,m.Z)(e=>({isSingle:!0,authUserId:ew,config:e}))),e_=eI?eu?(0,w.vW)({lng:ek,firstName:null===(t=ed.creator)||void 0===t?void 0:t.firstName,nickname:null===(n=ed.creator)||void 0===n?void 0:n.nickname,lastName:null===(j=ed.creator)||void 0===j?void 0:j.lastName,prefix:null!==(el=null===(T=ed.creator)||void 0===T?void 0:T.namePrefix)&&void 0!==el?el:eC("service.hunter")}):null==ej?void 0:ej.name:(0,w.vW)({lng:ek,firstName:null==ej?void 0:ej.firstName,nickname:null==ej?void 0:ej.nickname,lastName:null==ej?void 0:ej.lastName,prefix:null!==(es=null==ej?void 0:ej.namePrefix)&&void 0!==es?es:eC("service.hunter")}),eE=eI?eu?ey.user.main(null===(D=ed.creator)||void 0===D?void 0:D.nickname):ey.organization.news.all(ej.nickname):ey.user.main(null==ej?void 0:ej.nickname),eD=ey.user.main(null==ed?void 0:null===(R=ed.creator)||void 0===R?void 0:R.nickname),eR=eI&&ed.showCreator&&!eu?(0,w.vW)({lng:ek,firstName:null===(U=ed.creator)||void 0===U?void 0:U.firstName,nickname:null===(L=ed.creator)||void 0===L?void 0:L.nickname,lastName:null===(B=ed.creator)||void 0===B?void 0:B.lastName,prefix:null!==(ec=null===(z=ed.creator)||void 0===z?void 0:z.namePrefix)&&void 0!==ec?ec:eC("service.hunter")}):void 0,eU=(0,d.p)(null==ed?void 0:ed.createdAt,ek,{timeZone:ev,showRelative:ep}),eL=(0,A.Z)({favorited:null==ed?void 0:ed.isFavorited,type:O.U.POSTS,id:null==ed?void 0:ed.id}),eB=async()=>{try{await eT(ed.id),eb(),eO()}catch(e){ex()}},ez=()=>{eN({title:"".concat(eC("actions.delete"),"?"),subtitle:eC("overflowMenu.modal.undoneAction"),status:f.YK.Warning,buttons:{direction:"row",color:C.O.negative,items:[{onClick:e=>e(),text:eC("actions.cancel")},{onClick:()=>eB(),text:eC("actions.delete")}]}})},{show:eF}=(0,r.c$)(),{show:eY}=(0,l.F)(),eV=I()([!eu&&{optionName:eL.isFavorited?c.L.InFavorite:c.L.AddInFavorite,onClick:e=>{ew?eL.onClick():(eZ(),e())}},(eS||eM)&&!eu&&!ed.systemPostType&&{optionName:c.L.Edit,onClick:e=>{e(),eI?eh.replace("".concat(ef,"/?").concat(p.JG.Edit,"=").concat(p.yk.News,"&id=").concat(ed.id,"&").concat(p.yk.Group,"=").concat(null==ej?void 0:ej.id)):eh.replace("".concat(ef,"/?").concat(p.JG.Edit,"=").concat(p.yk.News,"&id=").concat(ed.id))}},{optionName:c.L.Share,onClick:e=>{eY({item:ed,entityType:N.wX.POST,entityId:ed.id}),e()}},{optionName:c.L.CopyLink,onClick:e=>{eP("uh.app/news/".concat(null==ed?void 0:ed.id)),e()}},!eM&&!eS&&!!ed.privacy.read&&!eu&&{optionName:c.L.Report,onClick:e=>{ew?eF({item:ed,entityType:b.CD.POST,entityId:ed.id}):eZ(),e()}},(eS||eM)&&!eu&&{optionName:c.L.Delete,onClick:e=>{ez(),e()}}]),eW=eu?null===(W=ed.creator)||void 0===W?void 0:null===(V=W.address)||void 0===V?void 0:null===(Y=V.geoLocation2)||void 0===Y?void 0:null===(F=Y.properties.context.country)||void 0===F?void 0:F.country_code:null==ej?void 0:null===(X=ej.address)||void 0===X?void 0:null===(H=X.geoLocation2)||void 0===H?void 0:null===(J=H.properties.context.country)||void 0===J?void 0:J.country_code,eJ={firstName:eu?null===(G=ed.creator)||void 0===G?void 0:G.firstName:ej.firstName,lastName:eu?null===(K=ed.creator)||void 0===K?void 0:K.lastName:ej.lastName};return(0,i.jsx)(k.P0,{children:(0,i.jsxs)("div",{className:_().container,children:[(0,i.jsxs)("div",{className:_().avatarContainer,children:[(0,i.jsx)(h.ZP,{alt:"".concat(e_," avatar"),title:"".concat(e_," avatar"),size:h.DZ.S,hash:eu?null===(q=ed.
1creator)||void 0===q?void 0:null===(Q=q.avatar)||void 0===Q?void 0:Q.hash:null==ej?void 0:null===($=ej.avatar)||void 0===$?void 0:$.hash,mediaId:eu?null===(et=ed.creator)||void 0===et?void 0:null===(ee=et.avatar)||void 0===ee?void 0:ee.mediaId:null==ej?void 0:null===(en=ej.avatar)||void 0===en?void 0:en.mediaId,type:eI&&!eu?x.ex.Organization:x.ex.User,color:eI&&!eu?ej.color:eu?null===(ei=ed.creator)||void 0===ei?void 0:ei.color:ej.color,abbreviation:eI&&!eu?ej.name||ej.nickname:(0,h.hv)(eJ)?eJ:eu?(null===(eo=ed.creator)||void 0===eo?void 0:eo.firstName)||(null===(ea=ed.creator)||void 0===ea?void 0:ea.lastName)||(null===(er=ed.creator)||void 0===er?void 0:er.nickname):ej.firstName||ej.lastName||(null==ej?void 0:ej.nickname)}),(0,i.jsxs)("div",{className:_().infoContainer,children:[(0,i.jsx)(S.default,{prefetch:!1,href:eE,children:(0,i.jsx)(y.Z,{className:k.MY.Title1,numberOfLines:1,tag:null!=em?em:k.VF.h3,wrapType:k.Zl.Ellipsis,text:e_})}),(0,i.jsxs)("div",{className:_().timeContainer,children:[(0,i.jsx)(y.Z,{className:k.MY.Subtitle,style:{color:C.O.contentTertiary},text:eU}),!!eR&&(eA?(0,i.jsx)(S.default,{prefetch:!1,href:eD,children:(0,i.jsx)(y.Z,{className:k.MY.Subtitle,text:eR,style:{color:C.O.friends},numberOfLines:1,wrapType:k.Zl.Ellipsis})}):(0,i.jsx)(y.Z,{className:k.MY.Subtitle,text:eR,style:{color:C.O.friends},numberOfLines:1,wrapType:k.Zl.Ellipsis}))]})]})]}),(0,i.jsxs)("div",{className:_().flagContainer,children:[!!eW&&(0,i.jsx)(k.U6,{icon:eW,size:30,border:"1px solid ".concat(C.O.baseTertiary)}),(0,i.jsx)(s.Z,{options:eV})]})]})})}},45141:function(e,t,n){"use strict";n.d(t,{Aw:function(){return N},Ci:function(){return C},K_:function(){return O},Li:function(){return Z},OG:function(){return h},Ti:function(){return b},U1:function(){return v},Wj:function(){return p},c9:function(){return f},g1:function(){return A},p6:function(){return y},pL:function(){return g},rg:function(){return x}});var i=n(84545),o=n(83859),a=n.n(o),r=n(78005),l=n.n(r),s=n(65923),c=n.n(s),d=n(14257),u=n.n(d);let m=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"local";return(a().extend(u()),"utc"===t)?null==e||""===e?a().utc():a().utc(e):null==e||""===e?a()():a().utc(e).local()};function A(e,t){return null==e||""===e?"":((0,i.Z)(t),a().extend(u()),a().utc(e).format("D MMMM, HH:mm"))}function v(e){let{date:t,timeOnly:n=!1,timeZone:o="local",showRelative:r=!0,lng:l}=e;null!=l&&""!==l&&(0,i.Z)(l),a().extend(c()),a().extend(u());let s="utc"===o?a().utc():a()(),d=m(t,o),A=s.diff(d,"hours"),v=s.year()-d.year(),p=s.diff(d,"days");return v>0?y({date:t,format:"D MMMM YYYY",timeZone:o,lng:l}):n&&0===p?y({date:t,format:"H:mm",timeZone:o,lng:l}):r&&A<4?d.fromNow():y({date:t,format:"D MMMM, HH:mm",timeZone:o,lng:l})}let p=e=>{let{date:t,timeOnly:n=!1,timeZone:i="local",showRelative:o=!0,lng:a}=e;return v({date:t,timeOnly:n,timeZone:i,showRelative:o,lng:a})},h=e=>{let t=a()(),n=a()(e),i=a()().year()-a()(e).year(),o=t.diff(n,"days");return i>0?y({date:e}):0===o?y({date:e,format:"H:mm"}):o<7?y({date:e,format:"ddd"}):y({date:e,format:"DD MMM"})},f=e=>{let{date:t,outputFormat:n="default",lng:o}=e;if(!t)return"";let a=(0,i.Z)(o||"en");a.extend(l()),a.extend(c());let r=a(t),s=a();if(r.isAfter(s))return"";let d=s.diff(r,"years");if("default"===n)return d.toString();{let e=s.diff(r,"months"),t=s.diff(r,"weeks"),n=s.diff(r,"days");return e?"".concat(1===e?"1 ":"").concat(a.duration(e,"months").humanize()):t?"".concat(1===t?"1 ":"").concat(a.duration(t,"weeks").humanize()):n?"".concat(1===n?"1 ":"").concat(a.duration(n,"days").humanize()):"1 "+a.duration(1,"days").humanize()}},y=e=>{let{date:t,format:n="YYYY-MM-DD",timeZone:o="local",lng:r}=e;return null!=r&&""!==r&&(0,i.Z)(r),a().extend(u()),m(t,o).format(n)},g=(e,t,n)=>x(e,t)?t:w(e,n)?n:e,w=(e,t)=>{let[n,i]=e.split(":").map(Number),[o,a]=t.split(":").map(Number);return n>o||n===o&&i>a},x=(e,t)=>{let[n,i]=e.split(":").map(Number),[o,a]=t.split(":").map(Number);return n<o||n===o&&i<=a},O=e=>{let[t,n]=e.split(":").map(Number);return"".concat((t+1).toString().padStart(2,"0"),":").concat(n.toString().padStart(2,"0"))},N=e=>{let[t,n]=e.split(":").map(Number);return"".concat((t-1).toString().padStart(2,"0"),":").concat(n.toString().padStart(2,"0"))},b=(e,t,n)=>e>=t&&e<=n,Z=()=>{a().extend(u());let e=Intl.DateTimeFormat().resolvedOptions().timeZone,t=new Intl.DateTimeFormat("ru-RU",{timeZone:e,hour:"2-digit",minute:"2-digit",hour12:!1}),n=new Date;return t.format(n)};function C(e,t){let n=[],i=new Date(e),o=new Date(t);i.setUTCHours(0,0,0,0),o.setUTCHours(23,59,59,999);let a=new Date(i);for(;a.getTime()<=o.getTime();
1)n.push(new Date(a)),a.setUTCDate(a.getUTCDate()+1);return n}},92849:function(e,t,n){"use strict";n.d(t,{p:function(){return a}});var i=n(45141),o=n(7653);function a(e,t,n){var a,r,l;let s=null===(a=null==n?void 0:n.showRelative)||void 0===a||a,c=null!==(r=null==n?void 0:n.timeOnly)&&void 0!==r&&r,d=null!==(l=null==n?void 0:n.timeZone)&&void 0!==l?l:"local",[u,m]=(0,o.useState)(!1);return((0,o.useEffect)(()=>{m(!0)},[]),null==e||""===e)?"":u?(0,i.U1)({date:e,timeOnly:c,timeZone:d,showRelative:s,lng:t}):(0,i.g1)(e,t)}},87301:function(e,t,n){"use strict";var i=n(7653);t.Z=()=>{let[e,t]=(0,i.useState)(null);return[e,async e=>{var n;if(!(null===(n=navigator)||void 0===n?void 0:n.clipboard))return console.warn("Clipboard not supported"),!1;try{return await navigator.clipboard.writeText(e),t(e),!0}catch(e){return console.warn("Copy failed",e),t(null),!1}}]}},97544:function(e,t,n){"use strict";var i=n(34455),o=n(30645),a=n(41525),r=n(85315),l=n(7653);t.Z=function(e){let{favorited:t=!1,type:n,id:s}=e,[c,d]=(0,l.useState)(t),[u,m]=(0,l.useState)(!1),{error:A}=(0,o.z)(),{addToFav:v}=(0,i.Z)(e=>(0,a.default)({config:e,type:n})),{removeFromFav:p}=(0,i.Z)(e=>(0,r.default)({config:e,type:n}));return{onClick:async()=>{m(!0);try{d(e=>!e),c?await p(s):await v(s)}catch(e){d(t),A()}m(!1)},isFavorited:c,isPending:u}}},79415:function(e,t,n){"use strict";var i=n(27573),o=n(89190),a=n(56238),r=n(49041),l=n(17915),s=n(65225),c=n(64751),d=n(51790),u=n.n(d),m=n(88146),A=n(7653),v=n(93047),p=n(74351),h=n(9110),f=n.n(h);t.Z=function(e){var t,n,d,h;let{to:y,media:g,subtitle:w,title:x,titleWidth:O,titleTag:N,location:b,owner:Z,mutualFriends:C,online:k,rightIcon:j,relation:I,containerStyle:M,onClick:S,membersOrganization:P,isVerified:T,isClosed:_,abbreviation:E,color:D,isEncyclopedia:R}=e,U=!S&&!!y,L=U?m.default:"div",[B,z]=(0,A.useState)(!1),F=e=>{(null==j?void 0:j.hoverColor)&&z(e)};return(0,i.jsx)(L,{...U?{href:y,prefetch:!1}:{},className:y?f().container:f().linkContainer,style:{...S&&{cursor:"pointer"},...M},onClick:S,onMouseEnter:()=>F(!0),onMouseLeave:()=>F(!1),children:(0,i.jsxs)("div",{className:f().card,children:[(0,i.jsx)(v.ZP,{alt:null!=x?x:"Card image",hash:null==g?void 0:g.hash,color:D,mediaId:(null==g?void 0:g.mediaType)===a.zc.VIDEO?null==g?void 0:g.videoPreviewMediaId:null==g?void 0:g.mediaId,type:k?r.ex.User:void 0,isVideo:(null==g?void 0:g.mediaType)===a.zc.VIDEO,size:v.DZ.L,mutualFriends:C,online:null==k?void 0:k.isOnline,abbreviation:E,title:null!=x?x:"Card image"}),(0,i.jsxs)("div",{className:f().info,children:[(0,i.jsx)("div",{className:f().title,style:{...O&&{width:O},...R&&{maxHeight:40,height:"auto"}},children:(0,i.jsx)(p.Z,{className:c.MY.Title1,numberOfLines:R?2:1,text:x,...N&&{tag:N},style:{color:l.O.contentPrimary},wrapType:s.Zl.Ellipsis})}),(0,i.jsx)("div",{className:f().subtitle,...R&&{style:{width:176}},children:(0,i.jsx)(p.Z,{className:c.MY.Subtitle,numberOfLines:1,text:w,style:{color:l.O.contentSecondary},wrapType:s.Zl.Ellipsis})}),!R&&(0,i.jsxs)("div",{className:f().subtitle,children:[(0,i.jsxs)("div",{className:f().location,children:[!!(null==b?void 0:null===(n=b.properties)||void 0===n?void 0:null===(t=n.context.country)||void 0===t?void 0:t.country_code)&&(0,i.jsx)(s.U6,{size:16,icon:null===(d=b.properties.context.country)||void 0===d?void 0:d.country_code,border:"1px solid ".concat(l.O.baseTertiary)}),!u()(b)&&(0,i.jsx)(p.Z,{className:c.MY.Subtitle,numberOfLines:1,text:(0,o.C)(b,void 0),style:{color:b?l.O.contentSecondary:l.O.contentTertiary},wrapType:s.Zl.Ellipsis})]}),!!Z&&(0,i.jsxs)("div",{className:f().owner,children:[!!Z.icon&&(0,i.jsx)(s.JO,{size:16,icon:Z.icon,color:Z.color}),(0,i.jsx)(p.Z,{className:c.MY.Subtitle,style:{color:Z.color},text:Z.name,numberOfLines:1,wrapType:s.Zl.Ellipsis})]}),!!P&&(0,i.jsxs)("div",{className:f().membersOrganization,children:[!!T&&(0,i.jsx)(s.JO,{size:16,icon:"community-mark",color:l.O.warning}),!!_&&(0,i.jsx)(s.JO,{size:16,icon:"lock",color:l.O.negative}),(0,i.jsx)(s.JO,{size:16,icon:"user-follower",color:l.O.friends}),(0,i.jsx)(p.Z,{className:c.MY.Subtitle,style:{color:l.O.friends},text:P,numberOfLines:1,wrapType:s.Zl.Ellipsis})]})]})]}),j?(0,i.jsxs)("div",{className:f().rightIcon,children:[!!(null==j?void 0:j.text)&&(0,i.jsx)(p.Z,{className:c.MY.Subtitle,numberOfLines:1,text:j.text,style:{color:j.color,textAlign:"start"}}),!!(null==j?void 0:j.icon)&&(0,i.jsx)(s.JO,{icon:j.icon,color:B&&null!==(h=j.hoverColor)&&void 0!==h?h:j.color,size:24})]}):I&&I]})})}},5538:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var i=n(27573),o=n(65225);function a(e){let{...t}=e;return(0,i.jsx)(o.U5,{...t,appType:o.pR.Desktop})}},81502:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});var i=n(27573),o=n(34625),a=n.n(o);function r(e){let{children:t,line:n,fullLine:o,fullScreen:r,paddingInline:l,smallPaddingInline:s,withoutVerticalPadding:c,insetBottom:d}=e,u=r||l||c||s?"".concat(c?"":a().container," ").concat(l?a().paddingInline:""," ").concat(s?a().smallPaddingInline:""," ").concat(r?a().fullScreen:""):a().container;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{className:u,children:[t,!!d&&(0,i.jsx)("div",{style:{height:56}})]}),!!(n||o)&&(0,i.jsx)("div",{className:a().line,style:o?{marginInline:0}:void 0})]})}},84545:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var i=n(83859),o=n.n(i);n(46323),n(43500),n(69969),n(38218),n(71019),n(10046),n(79074),n(71527),n(32514),n(75600),n(10349),n(69727),n(18322),n(89389),n(27439),n(35020),n(4040),n(89284),n(61619),n(18049),n(50903),n(38606),n(81465),n(973),n(29230),n(43265),n(98888),n(80450),n(34418),n(73552),n(66165),n(61891),n(6846),n(80625);var a=n(67586),r=n.n(a),l=n(73170),s=n.n(l);function c(e){return o().locale(e||"en"),o().extend(r()),o().extend(s()),o()}},2731:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});var i=n(81344),o=n(87639),a=n.n(o);function r(e){let t=[{value:i.d.Dog,label:"hunt.select.petsType.dog"},{value:i.d.Horse,label:"hunt.select.petsType.horse"},{value:i.d.Bird,label:"hunt.select.petsType.bird"},{value:i.d.Other,label:"hunt.select.petsType.other"}],n=a()(t,t=>t.value===e)||null,o=t[0];return{animalType:n,animalTypes:t,defaultType:o}}},81344:function(e,t,n){"use strict";var i,o;n.d(t,{d:function(){return i}}),(o=i||(i={})).Dog="dog",o.Horse="horse",o.Bird="bird",o.Other="other"},88848:function(e,t,n){"use strict";var i,o,a,r,l,s;n.d(t,{C2:function(){return i},CD:function(){return a}}),(r=i||(i={})).SPAM="spam",r.INSULT="insult",r.FRAUD="fraud",r.VIOLENCE="violence",r.PROHIBITED_MATERIAL="prohibited_material",r.PORN="pornography",r.COPYRIGHT="copyright",r.PRIVACY="privacy",r.OTHER="other",(l=o||(o={})).SPAM="spam",l.INSULT="insult",l.FRAUD="fraud",l.VIOLENCE="violence",l.PORN="porn",l.COPYRIGHT="copyright",l.PRIVACY="privacy",l.OTHER="other",l.NO_VIOLATION="no_violation",(s=a||(a={})).ORGANIZATION="organization",s.USER="user",s.POST="post",s.IMAGE="image",s.VIDEO="video",s.ALBUM="album",s.COMMENT="comment",s.CAR="car",s.GUN="gun",s.PET="pet",s.TROPHY="trophy",s.MARKET_AD="market_ad",s.BOOKING_AD="booking_ad",s.LIBRARY_PUBLICATION="library_publication",s.EVENT="event",s.ATTACHMENT="attachment"},80347:function(e,t,n){"use strict";var i,o;n.d(t,{S:function(){return a},f:function(){return i}});let a={create:e=>["create",e],update:e=>["update",e],delete:e=>["delete",e],custom:function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return[e,...n]},auth:{logout:e=>
1["auth","logout",e],logoutMany:e=>["auth","logout","many",e]}};(o=i||(i={})).AcceptAllInvitations="AcceptAllInvitations",o.AddManyAdmins="AddManyAdmins",o.InviteManyToOrganization="InviteManyToOrganization",o.RemoveManyAdmins="RemoveManyAdmins",o.SendReport="SendReport",o.RejectReports="RejectReports",o.ResolveReports="ResolveReports",o.MuteUser="MuteUser"},3632:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var i=n(5068),o=n(49041),a=n(95131),r=n(81695),l=n(9899);async function s(e){let{id:t,mode:n=o.ih.Full,config:i}=e;if(t){let e=await (0,l.l)(i).getOneById(t,n);if(null==e?void 0:e.error)throw(404===e.status||400===e.status)&&(0,r.notFound)(),e;return null==e?void 0:e.data}return null}function c(e){let{id:t,enabled:n=!0,mode:r=o.ih.Preview,config:l,initialData:c}=e,{data:d,isError:u,isSuccess:m,error:A,isLoading:v,isPending:p,status:h,refetch:f,isFetching:y}=(0,i.useQuery)({queryKey:a.Z.organizations.single(t,r),queryFn:()=>s({id:t,mode:r,config:l}),enabled:!!t&&n,initialData:c,refetchOnMount:"always"});return{refetch:f,data:d,error:A,status:h,isError:u,isPending:p,isSuccess:m,isLoading:v,isFetching:y}}},77026:function(e){e.exports={searchContainer:"styles_searchContainer__JgSWr",search:"styles_search__A3luq",tags:"styles_tags__do9hP",buttonContainer:"styles_buttonContainer__PK0BV"}},57054:function(e){e.exports={container:"styles_container__nOXjm",addPostContainer:"styles_addPostContainer__vdCvX",sideBarContainer:"styles_sideBarContainer__ectrk",carouselContainer:"styles_carouselContainer__Ia1ID",avatarContainer:"styles_avatarContainer__KIhi4",textContainer:"styles_textContainer__D8YLP",messageAvatar:"styles_messageAvatar__Rpfxh",shareIcon:"styles_shareIcon__1PG24",shareIconContainer:"styles_shareIconContainer__qF1zf",copiedPath:"styles_copiedPath__t4wQR",copiedPathContainer:"styles_copiedPathContainer__DODFB"}},79634:function(e){e.exports={container:"styles_container__BiNKJ",avatarContainer:"styles_avatarContainer__yCbDx",infoContainer:"styles_infoContainer__743l7",flagContainer:"styles_flagContainer__nkltJ",timeContainer:"styles_timeContainer__SDWBX"}},9110:function(e){e.exports={container:"styles_container__3PN8j",linkContainer:"styles_linkContainer___teow",card:"styles_card__y7qfn",info:"styles_info__6gH3P",title:"styles_title__voAan",subtitle:"styles_subtitle__KmXMh",membersOrganization:"styles_membersOrganization__KDTGo",owner:"styles_owner__COgBy",rightIcon:"styles_rightIcon__csZtB",location:"styles_location__QdMJY"}},34625:function(e){e.exports={container:"styles_container__seslW",fullScreen:"styles_fullScreen__44Bq3",line:"styles_line__gxW_s",paddingInline:"styles_paddingInline__BNc9o",smallPaddingInline:"styles_smallPaddingInline__fE6Cw"}},72483:function(e,t){"use strict";t.Z={src:"/snapshot-assets/desktop/v9953/_next/static/media/Facebook.b75ce5a9.png",height:100,width:100,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAMAAADz0U65AAAAJ1BMVEUWc+sZePQYde4Gau4Qc/LE3Py00vmEt/j///+exvkpgfJwq/epzPrzO9iuAAAAAXRSTlOkkV2/lwAAAAlwSFlzAAAWJQAAFiUBSVIk8AAAADdJREFUeJwdy8ENACAMw8A4baHA/vsi+FknWcKOQAI4J5GJ2TMtk1WJ5Vzd68uu2lgQYwRv+6ELHxEA4qI2zaoAAAAASUVORK5CYII=",blurWidth:8,blurHeight:8}},66110:function(e,t){"use strict";t.Z={src:"/snapshot-assets/desktop/v9953/_next/static/media/LikedIn.a076b98c.png",height:100,width:100,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAMAAADz0U65AAAAJFBMVEUJY7wCX70KZ8QJZMAVbsYnecqsy+uOueNGi9G71e54q942gs4X/7wGAAAAAXRSTlOkkV2/lwAAAAlwSFlzAAAWJQAAFiUBSVIk8AAAADZJREFUeJwdyjkSACAIBME9AFH//18LJ+pgANm2ACk0gblI2oNTKwzeXWc3P7qaUGRGhgBzZjwgvQD2K10TGgAAAABJRU5ErkJggg==",blurWidth:8,blurHeight:8}},20248:function(e,t){"use strict";t.Z={src:"/snapshot-assets/desktop/v9953/_next/static/media/Mail.9e01a397.png",height:100,width:100,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAMAAADz0U65AAAAOVBMVEUace4dfvXO6P0ZwPiD0fwcdOsbc+oZuvMbqvQciPAXufvT7v7e8f71+/8flfIeoPOE0vuAv/mAwPqXukBkAAAACnRSTlP+/////qulov3+8yYS4wAAAAlwSFlzAAAWJQAAFiUBSVIk8AAAADhJREFUeJwtwYkRgCAQBMFhUQH3eDT/YK1Su9kTQDpIP9olSXdjKHoPDabCDk3qsu2tks8PJb/KAzOXAa4t9doVAAAAAElFTkSuQmCC",blurWidth:8,blurHeight:8}},63263:function(e,t){"use strict";t.Z={src:"/snapshot-assets/desktop/v9953/_next/static/media/OK.d463f309.png",height:100,width:100,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAMAAADz0U65AAAAKlBMVEX6eQP4dAD2cgD7dAH/dgD/zaH/bw
1D/sW3/hRr/wIf/kC//plf/7d3/uXzvqHdWAAAAA3RSTlP9oquaX4BWAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAOUlEQVR4nB3IyRHAMAwDsVVISb7Sf7sZ54cBjyXJAR6Zw0D1nF0gr8xlIb+Z88c45w61u3dBGAnHBysBATjoDevKAAAAAElFTkSuQmCC",blurWidth:8,blurHeight:8}},76200:function(e,t){"use strict";t.Z={src:"/snapshot-assets/desktop/v9953/_next/static/media/Telegram.09f558ee.png",height:100,width:100,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAMAAADz0U65AAAALVBMVEUnpOIjndklouElod8jpOQoqekkn9wWnuHW7vqLzvA8r+m14PZcvOye1/T///8XfPDSAAAABHRSTlP+oaqkiMMDywAAAAlwSFlzAAAWJQAAFiUBSVIk8AAAADlJREFUeJwdykkSgDAMBLEOjMd2Fv7/XArOElcA1iAilClAyW6MZq8qG+1znpX+aFan/ywEd4DNeAEuzQFPPP4nDAAAAABJRU5ErkJggg==",blurWidth:8,blurHeight:8}},86078:function(e,t){"use strict";t.Z={src:"/snapshot-assets/desktop/v9953/_next/static/media/VK.540b7ef1.png",height:100,width:100,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAMAAADz0U65AAAAM1BMVEUdf++VxfsYfvOpz/sghPYqivdgpvglg+4lg+0nhfHL4/1ToPi82vyGvPrm8f7///9ysPhrDK6yAAAACXRSTlP+//////7/oquymVJNAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAOklEQVR4nB3LxxHAMBDDQCjwZCq6/2o9Ft4LHtm2Gqo3QRorYkFOs8weYPWz9wBXlXgTSDVf3P7bah85fgGbQOjlkgAAAABJRU5ErkJggg==",blurWidth:8,blurHeight:8}},88627:function(e,t){"use strict";t.Z={src:"/snapshot-assets/desktop/v9953/_next/static/media/Viber.e0e3afcc.png",height:100,width:100,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAMAAADz0U65AAAAJ1BMVEVjWaJjWaWqpc6fmcmDerZmXKiQib96cbFtZKuXkMRbUaDNyuNhWKT9SFrzAAAAAnRSTlOk/X/0OnQAAAAJcEhZcwAAFiUAABYlAUlSJPAAAAA3SURBVHicBcGHAcAwCAMw4wEk6f/3VgLibgcosQ9VGLG9HLjJzDFGV88aFL0kC1np9Ab4NvcGPyc9AS9eX2awAAAAAElFTkSuQmCC",blurWidth:8,blurHeight:8}},43465:function(e,t){"use strict";t.Z={src:"/snapshot-assets/desktop/v9953/_next/static/media/WhatsApp.ed099a5c.png",height:100,width:100,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAMAAADz0U65AAAAQlBMVEUv2U024lSa8Kmr97lW8HJV7XGQ8KFR9G8k0EIv0Uxd5nVu84ZX+XRH5GSI7Jpi83ye+K4/616d9q106oo61FWV9aZFiiMDAAAAEnRSTlP+////o6v//f6i//////////6nlqVhAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAP0lEQVR4nAXBiQHAIAgEsANaUMDf7r9qE7xpEZYPLOeeMgzr22OFNLiqEKmjcWM53QF2OqoAMWvvBFSUewvqD1XDAiyfAmuwAAAAAElFTkSuQmCC",blurWidth:8,blurHeight:8}},65047:function(e,t){"use strict";t.Z={src:"/snapshot-assets/desktop/v9953/_next/static/media/X.9699e18f.png",height:100,width:100,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAMAAADz0U65AAAAKlBMVEUAAAAAAAAAAAABAQFXV1ePj498fHweHh4XFxdHR0c9PT1lZWWgoKAQEBAYAfY/AAAAA3RSTlOknquKweyWAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAMElEQVR4nGNgYgYDBgZmZl4Ii5mZjYWTC8zg4GGDiLCzsrKDGSwcLNxgBkIbCDACACU+AP8yLmBQAAAAAElFTkSuQmCC",blurWidth:8,blurHeight:8}}}]);
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.