1"use strict";(self.webpackChunkuol=self.webpackChunkuol||[]).push([[119],{8119(e,s,l){l.r(s);var t=l(9698),r=l(9809),a=l(3971),n=l(943),i=l(297),c=l(4118),d=l(8716),m=l(686),x=l(2132),o=l(7320),h=l(3413);const u=()=>{const e=(0,a.zy)(),s=(0,a.Zp)(),l=(0,m.g)(),u=new URLSearchParams(e.search).get("slug"),b=(0,r.useState)(null),p=(0,t.A)(b,2),f=p[0],j=p[1],N=(0,r.useState)(!0),g=(0,t.A)(N,2),A=g[0],v=g[1];return(0,r.useEffect)(()=>{if(!u)return void v(!1);let e=!0;return v(!0),l.getLeadershipProfile(u).then(s=>{e&&j(s||null)}).catch(()=>{}).finally(()=>{e&&v(!1)}),()=>{e=!1}},[u,l]),(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(n.A,{}),(0,h.jsx)("div",{className:"mx-auto mb-20 mt-16 max-w-4xl px-4",children:A?(0,h.jsxs)("div",{className:"rounded-sm bg-white p-6 shadow-sm sm:p-10",children:[(0,h.jsxs)("div",{className:"mb-8 flex flex-col items-center gap-6 sm:flex-row sm:items-start",children:[(0,h.jsx)(x.A,{className:"h-36 w-36 flex-shrink-0 rounded-full"}),(0,h.jsx)("div",{className:"w-full",children:(0,h.jsx)(o.A,{lines:2})})]}),(0,h.jsx)(o.A,{lines:6})]}):f?(0,h.jsxs)("div",{className:"rounded-sm bg-white p-6 shadow-sm ring-1 ring-stone-200 sm:p-10",children:[(0,h.jsxs)("div",{className:"mb-8 flex flex-col items-center gap-6 border-b border-stone-100 pb-8 text-center sm:flex-row sm:items-start sm:text-left",children:[(0,h.jsx)("img",{src:f.PHOTO,alt:f.NAME,loading:"lazy",className:"h-36 w-36 flex-shrink-0 rounded-full object-cover ring-4 ring-stone-100"}),(0,h.jsxs)("div",{children:[(0,h.jsx)(c.A,{level:3,className:"mb-1 text-primary-900",children:f.NAME}),(0,h.jsx)("p",{className:"mb-3 text-sm font-semibold uppercase tracking-wide text-accent-600",children:f.TITLE}),f.PHONE&&(0,h.jsx)(d.A,{number:f.PHONE,className:"text-sm text-secondary-700"})]})]}),f.BIO&&(0,h.jsxs)("div",{className:"mb-8",children:[(0,h.jsx)(c.A,{level:5,className:"mb-3 text-primary-800",children:"Biography"}),(0,h.jsx)("p",{className:"leading-relaxed text-stone-700",children:f.BIO})]}),f.MESSAGE&&(0,h.jsxs)("div",{children:[(0,h.jsx)(c.A,{level:5,className:"mb-3 text-primary-800",children:"Message"}),f.MESSAGE.split("\n\n").map((e,s)=>(0,h.jsx)("p",{className:"mb-4 leading-relaxed text-stone-700 last:mb-0",children:e},s))]}),!f.BIO&&!f.MESSAGE&&(0,h.jsxs)("p",{className:"text-sm text-stone-500",children:["A full biography for ",f.NAME," hasn't been published yet."]})]}):(0,h.jsxs)("div",{className:"rounded-sm border border-dashed border-stone-300 bg-white p-10 text-center",children:[(0,h.jsx)(c.A,{level:4,className:"mb-2 text-primary-800",children:"Profile not found"}),(0,h.jsx)("button",{type:"button",onClick:()=>s(-1),className:"text-sm font-semibold text-primary-700 underline underline-offset-2",children:"\u2190 Back"})]})}),(0,h.jsx)(i.A,{})]})};l.d(s,["default",0,u])}}]); 2//# sourceMappingURL=119.8781f7cf.chunk.js.map
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.