PageSourceSearch

https://www.ravvoo.com/static/js/8543.11b59e14.chunk.js

js ravvoo.com collected 2026-10-02 01:41:04 UTC 12,153 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkravvoo=self.webpackChunkravvoo||[]).push([[8543],{35186(e,t,s){var n=s(89379),i=s(5544),o=s(9950),l=s(66146),a=s(32077),c=s(65369),r=s(71045),d=s(55088),u=s(62894),v=s(64609),m=s(94594),x=s(59051),E=s.n(x),f=s(81699),p=s(44517),h=s(22573),N=s(10300),_=s(4159),j=s.n(_),T=s(37797),A=s(74635),g=s(44414);const C=e=>{let t=e.type,s=e.eventList,x=void 0===s?[]:s,_=e.handleBoostEvent,C=e.itemClickNavigation,w=void 0===C?()=>{}:C;const y=o.useState({}),S=(0,i.A)(y,2),I=S[0],b=S[1],O=(0,N.d4)((e=>{var t;return null===e||void 0===e||null===(t=e.common)||void 0===t?void 0:t.userDetail})),P=(0,h.A)(),D=(0,p.Zp)(),V=e=>{if(!e)return"Invalid Date";return E()(1e3*e).format("MMM D, YYYY  h:mm A")};o.useEffect((()=>{null===x||void 0===x||x.forEach((e=>{P.getGroupData(null===e||void 0===e?void 0:e._id,((t,s)=>{if(t&&null!==s&&void 0!==s&&s.unreadCountUsers){const t=(Array.isArray(s.unreadCountUsers)?s.unreadCountUsers:Object.values(s.unreadCountUsers)).find((e=>(null===e||void 0===e?void 0:e.id)===(null===O||void 0===O?void 0:O._id))),i=(null===t||void 0===t?void 0:t.unReadCount)||0;b((t=>(0,n.A)((0,n.A)({},t),{},{[null===e||void 0===e?void 0:e._id]:i})))}}))}))}),[x]);const k=(()=>{if("Event"!==t&&"AttendingEvent"!==t)return x;const e=Math.floor(Date.now()/1e3),s=86400,i=[],o=[];x.forEach((t=>{const n=t.end_date_unix?t.end_date_unix:t.start_date_unix+s;e>=n?o.push(t):i.push(t)})),i.sort(((e,t)=>e.start_date_unix-t.start_date_unix));const l=[],a=[];return o.forEach((e=>{const t=I[e._id]||0;t>0?l.push((0,n.A)((0,n.A)({},e),{},{unreadCount:t})):a.push((0,n.A)((0,n.A)({},e),{},{unreadCount:0}))})),l.sort(((e,t)=>t.unreadCount-e.unreadCount)),a.sort(((e,t)=>{const n=e.end_date_unix||e.start_date_unix+s;return(t.end_date_unix||t.start_date_unix+s)-n})),[...i,...l,...a]})();return(0,g.jsx)(g.Fragment,{children:null===k||void 0===k?void 0:k.map((e=>{var s;const n=Math.floor(Date.now()/1e3),i=j()().unix(),o=null===e||void 0===e?void 0:e.start_date_unix,x="AttendingEvent"===t?[-20,36]:[3,2],E=n>=(e.end_date_unix?e.end_date_unix:e.start_date_unix+86400),p=i>o+86400,h=(null===e||void 0===e?void 0:e.start_date_unix)<n,N=I[null===e||void 0===e?void 0:e._id];return(0,g.jsx)(a.A,{count:null===e||void 0===e?void 0:e.EventMessageCount,offset:x,className:"w-full",children:(0,g.jsxs)(c.A,{type:"ghost",onClick:()=>w(null===e||void 0===e?void 0:e._id),className:"bg-white ".concat(E?" opacity-[50%] ":"","\n                                w-full ").concat("h-16 sm:h-20"," shadow-sm text-wrap cursor-pointer text-left rounded-xl py-3  sm:items-center flex \n                                 justify-between items-center px-3 gap-1 sm:gap-3 mb-3"),children:[(0,g.jsxs)("div",{className:"flex justify-center  gap-1 sm:gap-3 items-center",children:[(0,g.jsx)(l.A,{className:"w-9 h-9 sm:min-h-14 sm:min-w-14",src:null!==e&&void 0!==e&&e.avatar||null!==e&&void 0!==e&&e.profilePic||null!==e&&void 0!==e&&null!==(s=e.profile_pic)&&void 0!==s&&s.startsWith("http")?null===e||void 0===e?void 0:e.profile_pic:"".concat(m.iw).concat(null===e||void 0===e?void 0:e.profile_pic)||" "}),(0,g.jsxs)("div",{className:"flex flex-col justify-center items-start ",children:[(0,g.jsx)("p",{className:"text-title18 sm:titleSmall w-[130px] sm:w-full my-2 font-semibold  ".concat(p?"text-grey-20":"text-black-100"),children:(()=>{const t=(null===e||void 0===e?void 0:e.name)||(null===e||void 0===e?void 0:e.title)||"";return t.length>20?"".concat(t.slice(0,20),"..."):t})()}),(0,g.jsx)("p",{className:"text-title16 sm:description font-medium text-start text-wrap ".concat(p?"text-grey-20":"text-black-100"),children:(null===e||void 0===e?void 0:e.contact)||(null!==e&&void 0!==e&&e.country_code&&null!==e&&void 0!==e&&e.phone_number?"".concat(null===e||void 0===e?void 0:e.country_code," ").concat(null===e||void 0===e?void 0:e.phone_number):V(null===e||void 0===e?void 0:e.start_date_unix))})]})]}),"Event"===t&&(()=>{const t="Yes"===(null===e||void 0===e?void 0:e.boost_event),s=!h;return h?(0,g.jsxs)("div",{className:"flex justify-center items-center gap-2",children:[(0,g.jsx)(a.A,{offset:[2,2],count:N,onClick:t=>{t.stopPropagation(),D("".concat(f.E.PROTECTED.EVENTS.EVENTS_CHAT,"?eid=").concat(null===e||void 0===e?void 0:e._id))}}),t&&(0,g.jsx)("div",{className:"text-center min-w-12",children:(0,g.jsx)(r.A,{onClick:e=>{e.stopPropagation(),(0,T.A)("w",(0,A.t)("ListItem.mess1"))},Icon:(0,g.jsx)(d.a.LightIcon,{style:{fontSize:28},className:"text-grey-50 cursor-pointer"})})})]}):t&&s?(0,g.jsxs)("div",{className:"flex justify-center items-center gap-2",children:[(0,g.jsx)(a.A,{offset:[2,2],count:N,onClick:t=>{t.stopPropagation(),D("".concat(f.E.PROTECTED.EVENTS.EVENTS_CHAT,"?eid=").concat(null===e||void 0===e?void 0:e._id))}}),(0,g.jsx)("div",{className:"text-center min-w-12",children:(0,g.jsx)(r.A,{onClick:e=>{e.stopPropagation(),(0,T.A)("w",(0,A.t)("ListItem.mess2"))},Icon:(0,g.jsx)(d.a.LightIcon,{style:{fontSize:28},className:"text-blue-50  cursor-pointer"})})})]}):!t&&s?(0,g.jsxs)("div",{className:"flex justify-center items-center gap-2",children:[(0,g.jsx)(a.A,{offset:[2,2],count:N,onClick:t=>{t.stopPropagation(),D("".concat(f.E.PROTECTED.EVENTS.EVENTS_CHAT,"?eid=").concat(null===e||void 0===e?void 0:e._id))}}),(0,g.jsx)("div",{className:"text-center min-w-12",children:(0,g.jsx)(r.A,{onClick:t=>{t.stopPropagation(),_(null===e||void 0===e?void 0:e._id)},shape:"square",className:"shadow-Boost h-10 w-10 ",Icon:(0,g.jsx)(u.A,{className:"h-8 opacity-50",src:v.b.ICONS.NotBoosted})})})]}):null})(),"AttendingEvent"===t&&(t=>{const s="Yes"===(null===e||void 0===e?void 0:e.boost_event),n=h,i=!h,o=null===e||void 0===e||null===(t=e.co_host)||void 0===t?void 0:t.some((e=>e._id===(null===O||void 0===O?void 0:O._id)));return n?(0,g.jsxs)("div",{className:"flex justify-center items-center gap-2",children:[(0,g.jsx)(a.A,{offset:[2,2],count:N,onClick:t=>{t.stopPropagation(),D("".concat(f.E.PROTECTED.EVENT_ATTENDING.EVENT_ATTENDING_EVENT_CHAT,"?eid=").concat(null===e||void 0===e?void 0:e._id))}}),o&&s&&(0,g.jsx)("div",{className:"text-center min-w-12",children:(0,g.jsx)(r.A,{onClick:e=>{e.stopPropagation(),(0,T.A)("w",(0,A.t)("ListItem.mess1"))},Icon:(0,g.jsx)(d.a.LightIcon,{style:{fontSize:28},className:"text-grey-50 cursor-pointer"})})})]}):s&&i?(0,g.jsxs)("div",{className:"flex justify-center items-center gap-2",children:[(0,g.jsx)(a.A,{offset:[2,2],count:N,onClick:t=>{t.stopPropagation(),D("".concat(f.E.PROTECTED.EVENT_ATTENDING.EVENT_ATTENDING_EVENT_CHAT,"?eid=").concat(null===e||void 0===e?void 0:e._id))}}),o&&(0,g.jsx)("div",{className:"text-center min-w-12",children:(0,g.jsx)(r.A,{onClick:e=>{e.stopPropagation(),(0,T.A)("w",(0,A.t)("ListItem.mess2"))},Icon:(0,g.jsx)(d.a.LightIcon,{style:{fontSize:28},className:"text-blue-50 border-red-500 cursor-pointer"})})})]}):!s&&i?(0,g.jsxs)("div",{className:"flex justify-center items-center gap-2",children:[(0,g.jsx)(a.A,{offset:[2,2],count:N,onClick:t=>{t.stopPropagation(),D("".concat(f.E.PROTECTED.EVENT_ATTENDING.EVENT_ATTENDING_EVENT_CHAT,"?eid=").concat(null===e||void 0===e?void 0:e._id))}}),o&&(0,g.jsx)("div",{className:"text-center min-w-12",children:(0,g.jsx)(r.A,{onClick:t=>{t.stopPropagation(),_(null===e||void 0===e?void 0:e._id)},shape:"square",className:"shadow-Boost h-10 w-10 ",Icon:(0,g.jsx)(u.A,{className:"h-8 opacity-50",src:v.b.ICONS.NotBoosted})})})]}):null})()]})},null===e||void 0===e?void 0:e._id)}))})};s.d(t,["A",0,C])}
1,98543(e,t,s){s.r(t),s.d(t,{default:()=>T});var n=s(5544),i=s(9950),o=s(74635),l=s(32077),a=s(44517),c=s(16985),r=s(91467),d=s(55620),u=s(81699),v=s(62894),m=s(65893),x=s(64609),E=s(62851),f=s(35186),p=s(51484),h=s(22271),N=s(57895),_=s(44414);const j=()=>(0,_.jsxs)("div",{children:[(0,_.jsxs)("div",{className:"w-full sm:w-[60%] lg:w-[50%] xl:w-[40%] flex justify-between items-center m-auto mt-2",children:[(0,_.jsx)(N.A.Button,{active:!0,size:"large"}),(0,_.jsx)(N.A.Button,{active:!0,size:"large"})]}),(0,_.jsx)("div",{className:" w-full sm:w-[60%] lg:w-[50%] xl:w-[40%] bg-blue-40  min-h-[75vh] rounded-lg m-auto mt-4 ",children:(0,_.jsxs)("div",{className:" flex flex-col  rounded-lg justify-center  items-start p-2 sm:p-4 ",children:[(0,_.jsx)(N.A.Input,{active:!0,size:"medium"}),(0,_.jsxs)("div",{className:"flex items-center gap-8 mt-4 w-full",children:[(0,_.jsx)(N.A.Avatar,{active:!0,shape:"circle",size:"large"}),(0,_.jsx)(N.A,{active:!0,paragraph:{rows:1}})]}),(0,_.jsxs)("div",{className:"flex items-center gap-8   w-full mt-4",children:[(0,_.jsx)(N.A.Avatar,{active:!0,shape:"circle",size:"large"}),(0,_.jsx)(N.A,{active:!0,paragraph:{rows:1}})]}),(0,_.jsxs)("div",{className:"flex items-center gap-8   w-full mt-4",children:[(0,_.jsx)(N.A.Avatar,{active:!0,shape:"circle",size:"large"}),(0,_.jsx)(N.A,{active:!0,paragraph:{rows:1}})]})]})})]}),T=()=>{var e;const t=(0,a.Zp)(),s=i.useState(!1),N=(0,n.A)(s,2),T=N[0],A=N[1],g=i.useState([]),C=(0,n.A)(g,2),w=C[0],y=C[1],S=i.useState(!1),I=(0,n.A)(S,2),b=I[0],O=I[1],P=i.useState(null),D=(0,n.A)(P,2),V=D[0],k=D[1],R=i.useRef(null),B=(0,m.A)({queryKey:[d.B.COMMON.BOOST_COUNT],url:c.Y.PROTECTED.CHECK_BOOST_COUNT}).data,M=(0,m.A)({queryKey:d.B.PROTECTED.MY_EVENT.MY_EVENT_LIST,url:c.Y.PROTECTED.MY_EVENT.MY_EVENT_LIST,method:r.J.POST,myObj:{draft:"false"}}),L=M.data,Y=M.isLoading,z=M.refetch,U=null===L||void 0===L||null===(e=L.data)||void 0===e?void 0:e.draftCount;return i.useEffect((()=>{(()=>{const e=sessionStorage.getItem("myEventsScrollPosition");R.current&&e&&setTimeout((()=>{R.current&&(R.current.scrollTop=parseInt(e,10),sessionStorage.removeItem("myEventsScrollPosition"))}),0)})()}),[w]),i.useEffect((()=>{var e;const t=null===L||void 0===L||null===(e=L.data)||void 0===e?void 0:e.result;if(!Array.isArray(t))return;const s=Math.floor(Date.now()/1e3),n=[...t.filter((e=>e.start_date_unix>=s)).sort(((e,t)=>e.start_date_unix-t.start_date_unix)),...t.filter((e=>e.start_date_unix<s)).sort(((e,t)=>t.start_date_unix-e.start_date_unix))];y(n)}),[L]),i.useEffect((()=>{z()}),[]),(0,_.jsxs)("div",{className:"animate-fadeIn",ref:R,children:[Y?(0,_.jsx)(j,{}):(0,_.jsx)("div",{className:"flex justify-center items-center",children:(0,_.jsxs)("div",{className:" flex flex-col mt-4 w-full  sm:w-[70%] md:w-[60%] lg:w-[60%] xl:w-[40%] ",children:[(0,_.jsxs)("div",{className:"flex mb-4 justify-between",children:[(0,_.jsx)(v.A,{onClick:()=>t(u.E.PROTECTED.EVENTS.EVENTS_ADD),className:"h-10 sm:h-12 cursor-pointer",src:x.b.ICONS.PlusButton}),(0,_.jsx)(l.A,{offset:[-33,0],count:U,children:(0,_.jsx)(v.A,{onClick:()=>t(u.E.PROTECTED.EVENTS.EVENTS_DRAFTS),className:"h-10 sm:h-12 cursor-pointer",src:x.b.ICONS.FileIcon})})]}),(null===w||void 0===w?void 0:w.length)>0?(0,_.jsxs)("div",{className:" min-h-[75vh] p-2 sm:p-4 rounded-xl bg-blue-40",children:[(0,_.jsx)("p",{className:"titleSmall text-black-20 font-semibold mb-4",children:(0,o.t)("MyEvents.Upcoming")}),(0,_.jsx)(f.A,{handleBoostEvent:e=>{var t;k(e),(null===B||void 0===B||null===(t=B.data)||void 0===t?void 0:t.boost_count)>0?O(!0):A(!0)},eventList:w,itemClickNavigation:e=>{R.current&&sessionStorage.setItem("myEventsScrollPosition",R.current.scrollTop.toString()),t("".concat(u.E.PROTECTED.EVENTS.EVENT_ATTENDEE_LIST,"?eid=").concat(e))},type:"Event",isPastItems:!1})]}):(0,_.jsx)("div",{className:"w-full min-h-[60vh] rounded-lg m-auto -mt-10",children:(0,_.jsx)("div",{className:"flex flex-col justify-center  items-center ",children:(0,_.jsxs)("div",{className:"flex flex-col justify-center  w-full items-center bg-grey-15 p-3 md:p-14 xl:p-20 h-[77vh] mt-20 rounded-xl my-5 xl:my-8",children:[(0,_.jsx)(v.A,{className:"h-28 md:h-32 ",src:x.b.ICONS.RedCalender}),(0,_.jsx)("p",{className:"text-center titleMedium font-semibold w-full sm:min-w-64 md:max-w-64 md:px-2 mt-4 ",children:(0,o.t)("FInviteAttendees.ModalTitle")}),(0,_.jsx)(E.A,{onClick:()=>t(u.E.PROTECTED.EVENTS.EVENTS_ADD),className:"customButton font-semibold text-para my-1",children:(0,o.t)("AddEvent.PostEvent")})]})})})]})}),(0,_.jsx)(p.A,{eventId:V,isOpen:T,onClose:()=>A(!1),setOpenBoost:A,fetchList:()=>{z()}}),(0,_.jsx)(h.A,{eventId:V,isOpen:b,setOpenBoostUpdate:O,onClose:()=>{O(!1),z()}})]})}}}]);

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.