1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3994],{33994:(e,s,a)=>{a.r(s),a.d(s,{default:()=>j});var l=a(37876),i=a(14232),t=a(89099),r=a(31188),n=a(48230),d=a.n(n),c=a(21163),o=a(38469),m=a(278),u=a(15125),g=a(68202),h=a(12540),p=a(51930),x=a(38928),f=a(73534),v=a(12301);let j=e=>{let{websiteData:s,page:a,sectionData:n,data:j}=e,{TriggerEvents:N}=(0,p.useCarterAnalytics)(),{multiSiteGroupChildren:b,loading:w}=(0,x.i5)(),y=(0,t.useRouter)(),_=(0,i.useRef)(!1),E=(0,i.useMemo)(()=>[{...s,_isParent:!0},...b],[s,b]),[C,S]=(0,i.useState)(null),[L,A]=(0,i.useState)([]),[I,O]=(0,i.useState)(!1),T=(0,i.useMemo)(()=>new m.A,[]);(0,i.useEffect)(()=>{if(_.current)return;let e=y.query.location;if(!e||w?.isLoading||E.length<=1)return;let s=E.find(s=>s.slug===e);if(s){S(s),_.current=!0;let{location:e,...a}=y.query;y.replace({pathname:y.pathname,query:a},void 0,{shallow:!0})}},[y.query.location,E,w?.isLoading]),(0,i.useEffect)(()=>{C||!s||y.query.location||S({...s,_isParent:!0})},[s]),(0,i.useEffect)(()=>{if(!C?.slug&&!C?._id)return;let e=async()=>{O(!0),A([]);try{let e=c.uO[C?.status]||c.uO[s?.status]||"PUBLISHED",a=await T.GetWebsiteEntityData({pagination:{page:1,limit:10,sort:{field:"priority",direction:"ASC"}},websiteIdOrSlug:C?.slug||C?._id,entityType:"vets",siteStatus:e});A(a?.results?.vets||[])}catch(e){console.error(e)}finally{O(!1)}};if(C?._isParent){let e=n?.results?.vets||j?.vets||[];if(e.length>0)return void A(e)}e()},[C?.slug,C?._id]);let D=async e=>{try{let a=c.uO[C?.status]||c.uO[s?.status]||"PUBLISHED",l=await T.GetWebsiteEntityData({pagination:{page:e,limit:10,sort:{field:"priority",direction:"ASC"}},websiteIdOrSlug:C?.slug||C?._id,entityType:"vets",siteStatus:a});return l?.results?.vets||[]}catch(e){return console.error(e),[]}},G=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"card",a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"teams_page";N?.REGULAR_CLICK({type:s,event:a,id:e})},M=w?.isLoading||I;return(0,l.jsx)("section",{className:"inner-banner py-[50px] lg:py-[60px] xl:py-20",children:(0,l.jsxs)("div",{className:"container",children:[(0,l.jsxs)("div",{className:"flex flex-col lg:flex-row items-start justify-between gap-0 lg:gap-6 mb-8 lg:mb-0",children:[(0,l.jsxs)("div",{className:"inner_page-head team-page",children:[(0,l.jsx)("h1",{className:"page-heading",children:(0,h.EJ)(j?.teams?.heading||"",c.N8?.COMMON_PAGE_SECTION?.TITLE)}),(0,l.jsx)("p",{className:"page-desc",children:(0,h.EJ)(j?.teams?.subHeading||"There are many variations of passages of Lorem Ipsum available, but the majority have suffered in some form, by injected humour.",c.N8?.COMMON_PAGE_SECTION?.DESC)})]}),E.length>1&&(0,l.jsxs)("div",{className:"dropdown-wrpr flex items-center justify-center flex-col gap-2 w-full lg:w-fit",children:[(0,l.jsx)("p",{className:"page-desc font-medium self-start",children:"Select Location:"}),(0,l.jsxs)(f.l6,{value:C?.slug||"",onValueChange:e=>{let s=E.find(s=>s.slug===e);s&&S(s)},disabled:M,children:[(0,l.jsx)(f.bq,{className:"min-w-[200px] w-full sm:w-auto px-6 py-2 bg-[var(--vis-secondary)] border-0 rounded-full text-gray-900 font-semibold",children:(0,l.jsx)(f.yv,{placeholder:"Select Location"})}),(0,l.jsx)(f.gC,{children:E.map(e=>(0,l.jsx)(f.eb,{value:e.slug,children:e.name},e._id||e.slug))})]})]})]}),M?(0,l.jsx)("div",{className:"teams-list",children:[void 0,void 0,void 0,void 0].map((e,s)=>(0,l.jsxs)(r.Zp,{className:"blog-card animate-pulse",children:[(0,l.jsx)("div",{className:"blog-card_image",children:(0,l.jsx)("div",{className:"load-more w-full h-[400px]"})}),(0,l.jsxs)("div",{className:"blog-card-content",children:[(0,l.jsx)("div",{className:"load-more h-6 w-3/4 mb-2"}),(0,l.jsx)("div",{className:"load-more h-4 w-1/2 mb-3"}),(0,l.jsx)("div",{className:"load-more h-4 w-full mb-1"}),(0,l.jsx)("div",{className:"load-more h-4 w-5/6"})]})]},s))}):(0,l.jsx)(u.A,{wrapperClass:"teams-list",fetchData:D,initialData:L,renderItem:e=>(0,l.jsx)(d(),{href:(e=>{if(C?.isMultiSiteChild&&C?.slug){let a=C.slug,l=s?.slug,i=s?.status?.toLowerCase()||"draft";return`/website/${i}/${l}/location/${a}/team/${e}`}
1return g.W.enrichRoute(C,c.bw.TEAMS_PAGE,e)})(e?.slug),onClick:()=>G(e?.slug),children:(0,l.jsxs)(r.Zp,{className:"blog-card",children:[(0,l.jsx)("div",{className:"blog-card_image team-img",children:(0,l.jsx)(o.Ay,{src:e?.imageId?.fileUrl||v.A?.src,alt:e?.name||"",height:400,width:400,size:"medium"})}),(0,l.jsx)("div",{className:"blog-card-content-wrpr",children:(0,l.jsxs)("div",{className:"blog-card-content",children:[(0,l.jsxs)("div",{className:"team-name-position",children:[(0,l.jsx)("h2",{className:"blog-card-title",children:(0,h.EJ)(e?.name||"",c.N8?.BLOG_CARD?.TITLE)}),(0,l.jsx)("h3",{className:"team-profile",children:e?.specializationIds?.map(e=>e?.name).join(", ")})]}),(0,l.jsx)("p",{className:"blog_desc",children:(0,h.YT)((0,h.EJ)(e?.description||"",c.N8?.BLOG_CARD?.DESC),C)})]})})]},e?._id||"")},e?._id),loadingIndicator:(0,l.jsxs)(r.Zp,{className:"blog-card",children:[(0,l.jsx)("div",{className:"blog-card_image",children:(0,l.jsx)("div",{className:"load-more w-full h-[400px]"})}),(0,l.jsxs)("div",{className:"blog-card-content",children:[(0,l.jsx)("div",{className:"load-more h-6 w-3/4 mb-2"}),(0,l.jsx)("div",{className:"load-more h-4 w-1/2 mb-3"}),(0,l.jsx)("div",{className:"load-more h-4 w-full mb-1"}),(0,l.jsx)("div",{className:"load-more h-4 w-5/6 mb-1"}),(0,l.jsx)("div",{className:"load-more h-4 w-3/4"})]})]})},`${C?.slug||C?._id}`)]})})}}}]);
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.