text: (this.webpackJsonp13rms=this.webpackJsonp13rms||[]).push([[47],{513:function(e,t,s){"use strict";var a=s(8),c=s(189),l=s(15),r=s(2);t.a=function(e){var t,s,i=e.user,n=e.content,o=void 0===n?null:n,d=Object(c.a)(i).isBusiness,j=Object(r.jsxs)(r.Fragment,{children:[Object(r.jsx)("p",{className:"text-sm font-medium dark:text-white text-gray-500 ",children:d?null===i||void 0===i||null===(t=i.business)||void 0===t?void 0:t.name:null===i||void 0===i||null===(s=i.company)||void 0===s?void 0:s.jobTitle}),Object(r.jsx)("a",{className:"dark:text-white text-gray-900 text-lg font-medium",href:a.a.getProfile(i),children:Object(r.jsx)("div",{className:"mt-2",children:"View full profile"})})]});return Object(r.jsxs)("div",{className:"plain-card",children:[Object(r.jsx)("img",{alt:"",src:(null===i||void 0===i?void 0:i.coverPicture)?null===i||void 0===i?void 0:i.coverPicture:"https://source.unsplash.com/1600x900/?nature,water",className:"w-full lg:h-28 sm:h-24 object-cover h-20"}),Object(r.jsx)("div",{className:"flex justify-center -mt-8",children:Object(r.jsx)("img",{alt:"",src:i.profilePicture?i.profilePicture:l.s,className:"rounded-full  border-gradient border-transparent  lg:h-16 lg:w-16 h-12 w-12 dark:border-gray-800 border-white  border-2 -mt-3"})}),Object(r.jsxs)("div",{className:"text-center ".concat(o?"":"px-3 pb-6 pt-2"),children:[Object(r.jsx)("a",{href:a.a.getProfile(i,!0),className:"dark:text-white cursor-pointer text-gray-900 text-base font-bold ",children:i.fullName}),o||j]})]})}},517:function(e,t,s){"use strict";var a=s(188),c=s(25),l=s(2),r=[{name:"WHO sets global vaccination goals",readers:"54,460"},{name:"WHO sets global vaccination goals",readers:"54,460"},{name:"WHO sets global vaccination goals",readers:"54,460"}];t.a=function(){return Object(l.jsx)(a.a,{className:"",secondary:!0,cardTitle:"13RMS News",content:Object(l.jsx)("div",{className:"text-left  cursor-pointer ",children:Object(l.jsx)("ul",{className:"flex flex-col gap-y-4",children:Object(c.map)(r,(function(e,t){return Object(l.jsxs)("li",{className:" pl-2",children:[Object(l.jsx)("h6",{className:"text-xs font-semibold mb-1 uppercase link-hover dark:text-white text-gray-900 ",children:e.name}),Object(l.jsxs)("p",{className:"text-gray-500 uppercase text-xs italic",children:["Top news \u2022 ",e.readers," readers"]})]},t)}))})})})}},853:function(e,t,s){"use strict";s.r(t);var a=s(117),c=s(69),l=s(537),r=s(517),i=s(497),n=s(513),o=s(194),d=s(192),j=s(530),u=s(35),x=s(2);t.default=function(e){var t,s=e.userData,b=Object(o.a)(),m=(null===b||void 0===b||null===(t=b.match)||void 0===t?void 0:t.params).postUrl,h=Object(u.useQuery)("post-".concat(m),(function(){return Object(a.l)(m)})),v=h.data,O=h.isLoading,f=h.isFetched,p=h.isSuccess,g=!O&&f&&p?v.data.data:{},N=null===g||void 0===g?void 0:g.user;return Object(x.jsxs)("div",{className:"relative  dark:bg-gray-900 bg-gray-100 min-h-screen ",children:[Object(x.jsx)(d.a,{userData:s}),Object(x.jsx)(c.a,{pageTitle:"Post | Feed | 13RMS"}),Object(x.jsx)("div",{className:"h-auto pt-4 relative flow-root  transition-all duration-500 ",children:Object(x.jsx)(j.a,{firstColClass:"   max-h-152 lg:block  xl:block w-full ",firstCol:Object(x.jsx)("div",{className:"flex flex-col gap-y-12",children:f&&!O?Object(x.jsx)(n.a,{user:N}):Object(x.jsx)(i.a,{})}),secondCol:Object(x.jsx)("div",{className:"flex gap-y-4 mx-auto lg:max-w-2xl  flex-col",children:O&&!f?Object(x.jsx)(i.a,{}):Object(x.jsx)(l.a,{userData:s,userId:s._id,post:g})}),thirdColClass:"lg:block",thirdCol:Object(x.jsxs)("div",{className:"space-y-12",children:[Object(x.jsx)(r.a,{}),Object(x.jsx)(r.a,{})]})})})]})}}}]);
  //# sourceMappingURL=47.e681fbb7.chunk.js.map