1try{let e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},l=(new e.Error).stack;l&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[l]="800d0af4-defe-4fff-b00a-5e784ec17a58",e._sentryDebugIdIdentifier="sentry-dbid-800d0af4-defe-4fff-b00a-5e784ec17a58")}catch(e){}"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2394],{32394:(e,l,n)=>{n.r(l),n.d(l,{PersonFeed:()=>b,limit:()=>m});var s=n(3710),a=n(86190),i=n(54429),t=n(18105),d=n(18540),r=n(8760),o=n(45563),c=n(78156),u=n(35700),f=n(1854),p=n(97325);let m=20,v=["en-US","en-GB","en-AU"],b=(0,a.forwardRef)(function(e,l){var n,b,g,h;let{className:y,type:x="Leader",size:j="large",priority:w,onlyShowPriority:N=!1}=e,{locale:k="en-US",isPreview:I}=(0,i.useRouter)(),[_,C]=(0,a.useState)(0),{data:S,isLoading:E}=(0,d.Ay)((0,o.ii)("personFeed",{type:x,limit:m,skip:_,locale:k}),()=>(0,r.S)({preview:I}).request(p.h,{where:{type:x,enabled:!0},limit:m,skip:_,locale:k,preview:I})),[O,G]=(0,a.useState)(null!=(g=null==S||null==(n=S.personCollection)?void 0:n.total)?g:0),[A,D]=(0,a.useState)(null!=(h=null==S||null==(b=S.personCollection)?void 0:b.items)?h:[]);return(0,a.useEffect)(()=>{D(e=>{var l,n;return[...e.slice(0,_),...null!=(n=null==S||null==(l=S.personCollection)?void 0:l.items)?n:[],...e.slice(_+m)]})},[S,_]),(0,a.useEffect)(()=>{S&&S.personCollection&&G(S.personCollection.total)},[S]),(0,s.jsxs)("ul",{ref:l,"data-testid":"person-feed",className:(0,t.A)("grid grid-cols-12 gap-x-8 gap-y-16",y),children:[A.slice().filter(e=>!N||(null==w?void 0:w.includes(null==e?void 0:e.sys.id))).sort((e,l)=>{let n=(null!=w?w:[]).findIndex(l=>l&&l===(null==e?void 0:e.sys.id)),s=(null!=w?w:[]).findIndex(e=>e&&e===(null==l?void 0:l.sys.id));return n>-1&&-1===s?-1:-1===n&&s>-1?1:n-s}).map(e=>{var l,n,a,i,d;return e&&(null!=(i=null==(l=e.additionalOptions)?void 0:l.avatarOverride)?i:e.avatar)&&(0,s.jsxs)("li",{"data-testid":"person-feed-item",className:(0,t.A)("col-span-12 sm:col-span-6",{small:"md:col-span-3",large:"md:col-span-4"}[j]),children:[(0,s.jsx)(u.G,{field:{data:null!=(d=null==(n=e.additionalOptions)?void 0:n.avatarOverride)?d:e.avatar}}),(0,s.jsxs)("div",{className:"space-y-2.5 mt-14",children:[(0,s.jsx)("h3",{className:"text-h5 text-bc-black",children:e.fullName}),(0,s.jsx)("h4",{className:"text-sm text-gray-600",children:e.jobTitle||e.jobTitleInEnglish}),(null==(a=e.additionalOptions)?void 0:a.bioSummary)&&(0,s.jsx)("div",{className:"text-gray-600 leading-7 text-[1.125rem]",children:(0,s.jsx)(f.G,{field:{data:e.additionalOptions.bioSummary}})}),v.includes(k)&&"Leader"===x&&(0,s.jsx)(c.$n,{color:"primary",size:"large",link:{href:"/company/leaders/".concat(e.slug),target:"_self"},showIcon:!0,variant:"subtle",className:"mt-14 uppercase text-bc-black",children:"View bio"})]})]},e.sys.id)}),A.length<O&&(0,s.jsx)("div",{className:"flex justify-center col-span-12",children:(0,s.jsx)(c.$n,{onClick:()=>{A.length<O&&C(e=>e+m)},disabled:E,size:"large",color:"secondary",variant:"filled",isLoading:E,children:"View more"})})]})})},35700:(e,l,n)=>{n.d(l,{G:()=>s.G});var s=n(53049)}}]); 2//# sourceMappingURL=2394.f0f4826df6c62df8.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.