1"use strict";(globalThis.webpackChunkbeasley_design=globalThis.webpackChunkbeasley_design||[]).push([[4632],{8355(e,t,a){a.d(t,{A:()=>i});var s=a(4848),l=a(6540);const i=e=>{const t=l.useRef(null),a=l.useRef(null),i=l.useRef(null);return l.useEffect(()=>{const e=()=>{const e=t.current,s=a.current,l=i.current,r=null==e?void 0:e.parentElement;if(e&&r&&l){const t=window.getComputedStyle(r),a=parseFloat(t.paddingTop),i=parseFloat(t.paddingBottom),n=window.getComputedStyle(e),d=parseFloat(n.paddingTop),o=parseFloat(n.paddingBottom),c=r.clientHeight;let x=0,h=0;if(s){x=s.offsetHeight;const e=window.getComputedStyle(s);h=parseFloat(e.marginBottom)}const m=c-x-a-i-d-o-h,u=parseFloat(window.getComputedStyle(l).lineHeight),p=Math.floor(m/u);l.style.display="-webkit-box",l.style.overflow="hidden",l.style.webkitBoxOrient="vertical",l.style.webkitLineClamp=""+(p-1)}};return e(),window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}},[e.data.title,e.data.text]),(0,s.jsx)("a",{href:e.data.url,"aria-label":e.data.title,"aria-current":"page",className:"js-card col-span-4 mr-5 flex h-[380px] w-full flex-col rounded-2xl bg-amethyst-base last:mr-0 md:mr-8 lg:h-[438px]","data-testid":"SearchResultsCardReact",children:(0,s.jsx)("div",{className:"relative block h-full w-full overflow-visible shadow-none",children:(0,s.jsxs)("div",{ref:t,className:"content rounded-b-2xl p-[30px] ",children:[e.data.title&&(0,s.jsx)("h4",{ref:a,className:"mb-3 line-clamp-4 font-headline text-s-h4 text-neutral-white","data-testid":"SearchResultsCardTitle",children:e.data.title}),e.data.text&&(0,s.jsx)("p",{ref:i,className:"clamp-content font-sans text-s-subcopy text-neutral-white","data-testid":"SearchResultsCardText",children:e.data.text})]})})})}},1016(e,t,a){a.r(t),a.d(t,{default:()=>H});var s=a(4848),l=a(299),i=a.n(l),r=a(8798),n=a(6540),d=a(3423),o=a(2084),c=a(6129),x=a(890);const h=({data:e})=>(0,s.jsx)("a",{className:"relative col-span-4 flex h-[360px] w-full flex-col justify-between rounded-2xl bg-background-tint p-10 last:mr-0 md:mr-5 md:h-[394px]",href:e.link.url,"aria-label":e.profileName,"aria-current":"page","data-testid":"ProfileCard","data-ga-event":"contactAdd","data-ga-param-location":e.profileName,children:(0,s.jsx)("div",{className:"front absolute left-0 top-0 flex h-full w-full flex-col justify-space-between text-center rounded-[10px] bg-gray-200 p-[8%] lg:p-[40px]",children:(0,s.jsxs)("div",{className:"flex flex-col justify-center h-full text-center",children:[(0,s.jsx)("div",{className:"pb-1",children:e.image&&(0,s.jsx)("img",{src:e.image.url,alt:e.image.altText,className:"rounded-full w-[150px] h-[150px] mx-auto justify-center object-cover theme-pezzottaite bg-background"})}),(0,s.jsxs)("div",{className:"pt-4 text-center",children:[(0,s.jsx)("h4",{className:"pb-2 max-w-[100%] font-headline text-s-h4 text-amethyst-base overflow-hidden whitespace-nowrap text-center","data-testid":"ProfileCardFullName",children:null==e?void 0:e.profileName}),(0,s.jsx)("p",{className:"pb-4 font-medium text-s-subcopy text-neutral-base",children:null==e?void 0:e.jobRole}),(0,s.jsx)("p",{className:"pb-1 font-medium text-s-subcopy text-amethyst-base",children:null==e?void 0:e.phoneNumber}),e.email&&(0,s.jsx)("a",{href:e.email.url,"aria-label":e.email.text,"aria-current":"page",className:"font-medium text-amethyst-base",children:e.email.text})]})]})})});var m=a(8355);const u=e=>{var t;const[a,l]=n.useState(null!==(t=e.searchText)&&void 0!==t?t:""),[i,r]=n.useState(""),d=((0,x.t)(),"purple"===e.background?"theme-amethyst bg-background":""),c="purple"===e.background?"":"border-amethyst-base bg-background",h="white"===e.background?"#4B0050":"#ffffff",m="white"===e.background?"#ffffff":"#4B0050",u=t=>{e.onSubmit&&e.onSubmit(t)};return n.useEffect(()=>{},[]),(0,s.jsx)("section",{className:`hero-spacing container-fluid ${d} relative py-40 text-body`,"data-testid":"DirectorySearchHero",children:(0,s.jsxs)("div",{className:"cb-heading gap-x-30px grid grid-cols-12 md:grid-cols-12",children:[(0,s.jsxs)("div",{className:"col-span-12 md:col-span-6",children:[(0,s.jsx)("h2",{className:"font-serif text-s-h2 text-title","data-testid":"DirectorySearchHeroTitle",dangerouslySetInnerHTML:{__html:null==e?void 0:e.title}}
1),(0,s.jsx)("div",{className:"mb-[30px] text-title",children:null===e.total?(0,s.jsx)("span",{"data-testid":"DirectorySearchHeroSubTitle",dangerouslySetInnerHTML:{__html:null==e?void 0:e.subTitle}}):0===e.total?(0,s.jsxs)("span",{className:"flex items-start gap-[10px] text-title","data-testid":"DirectorySearchHeroNotFoundText",children:[(0,s.jsx)("svg",{className:"mt-[2px]",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,s.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10 0C4.48 0 0 4.47936 0 9.99858C0 15.5178 4.48 19.9972 10 19.9972C15.52 19.9972 20 15.5178 20 9.99858C20 4.47936 15.52 0 10 0ZM11 14.9987H9V12.9979H11V14.9987ZM11 11.002H9V5.00068H11V11.002Z",fill:"#DC199B"})}),(0,s.jsx)("span",{children:e.resultsNotFoundLabel})]}):(0,s.jsxs)("span",{className:`flex items-start gap-[10px] ${d}`,"data-testid":"DirectorySearchHeroFoundText",children:[(0,s.jsxs)("svg",{width:"22",height:"22",viewBox:"0 0 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,s.jsx)("path",{d:"M11.0002 1.83313L13.4078 3.58946L16.3884 3.58396L17.3036 6.42013L19.7181 8.1673L18.7919 10.9998L19.7181 13.8323L17.3036 15.5795L16.3884 18.4156L13.4078 18.4101L11.0002 20.1665L8.59256 18.4101L5.61202 18.4156L4.69673 15.5795L2.28223 13.8323L3.20852 10.9998L2.28223 8.1673L4.69673 6.42013L5.61202 3.58396L8.59256 3.58946L11.0002 1.83313Z",fill:h}),(0,s.jsx)("path",{d:"M7.79187 10.9998L10.0835 13.2915L14.6669 8.70813",stroke:m,strokeLinecap:"round",strokeLinejoin:"round"})]}),(0,s.jsx)("span",{children:(0,o.JT)(e.resultsFoundLabel,[e.total])})]})})]}),(0,s.jsxs)("div",{className:`relative mb-7 flex h-[60px] items-center justify-between overflow-hidden rounded-lg border-2 ${c} col-span-12 md:col-span-6 md:mb-0 focus-within:outline focus-within:outline-offset focus-within:outline-[#313131] `,children:[(0,s.jsx)("input",{type:"text",id:"search",name:"search",placeholder:e.searchPlaceholder,className:"search-reset w-full rounded-lg bg-neutral-white px-[25px] py-[18px] text-s-body text-neutral-base placeholder:text-s-body placeholder:text-neutral-60 focus:outline-none",value:a,onChange:t=>{l(t.target.value),e.submitSearchFieldOnTextChange&&u(Object.assign({searchText:t.target.value},e.dropdown&&{dropdownData:i}))},onKeyDown:t=>{"Enter"===t.key&&u(Object.assign({searchText:a},e.dropdown&&{dropdownData:i}))},"data-testid":"DirectorySearchHeroSearchTextbox"}),a?(0,s.jsx)("button",{className:"absolute right-[30px]",onClick:()=>{var t;l(""),e.submitSearchFieldOnTextChange&&u(Object.assign({searchText:""},e.dropdown&&{dropdownData:i})),null===(t=e.onClearSearch)||void 0===t||t.call(e)},"data-testid":"DirectorySearchHeroClearSearchTermButton",children:(0,s.jsxs)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"bg-amethyst-base",xmlns:"http://www.w3.org/2000/svg",children:[(0,s.jsx)("g",{clipPath:"url(#clip0_4972_17)",children:(0,s.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.23215 10L3.81273 5.58058L5.58049 3.81282L9.99991 8.23223L14.4193 3.81282L16.1871 5.58058L11.7677 10L16.1871 14.4194L14.4193 16.1872L9.99991 11.7678L5.58049 16.1872L3.81273 14.4194L8.23215 10Z"})}),(0,s.jsx)("defs",{children:(0,s.jsx)("clipPath",{id:"clip0_4972_17",children:(0,s.jsx)("rect",{width:"20",height:"20",fill:"white"})})})]})}):(0,s.jsx)("span",{className:"absolute right-[30px]",children:(0,s.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,s.jsx)("path",{d:"M12.8387 13.2L18 18M8.19355 14.8C11.6142 14.8 14.3871 11.9346 14.3871 8.4C14.3871 4.86538 11.6142 2 8.19355 2C4.77295 2 2 4.86538 2 8.4C2 11.9346 4.77295 14.8 8.19355 14.8Z",stroke:"#DC199B",strokeWidth:"2"})})})]})]})})};var p=a(8379),f=a(4164);const b=n.createContext([{expandedFilter:{},filterOptionTags:[]},()=>{}]),g=n.createContext({filterApplied:"",filterClear:"",filterNoResultsText:"",filterNotFoundText:"",filterNotFoundTitle:"",filterResultsFormatString:"",filterSelectedFormatString:"",directorySearchPlaceholder:"",filterButtonLabel:"",filterBackLabel:"",filterListLabel:""}),v=()=>(0,s.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg","data-testid":"directorylistingFilterSearchIcon",children:(0,s.jsx)("path",{d:"M12.8387 13.2L18 18M8.19355 14.8C11.6142 14.8 14.3871 11.9346 14.3871 8.4C14.3871 4.86538 11.6142 2 8.19355 2C4.77295 2 2 4.86538 2 8.4C2 11.9346 4.77295 14.8 8.19355 14.8Z",stroke:"#DC199B",strokeWidth:"2"})}),w=()=>(0,s.jsx)("svg",{className:"text-pezzottaite-base",width:"30",height:"30",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"10 10 20 20","data-testid":"directorylistingFilterWarningIcon",children:(0,s.jsx)("path",{fill:"currentcolor",fillRule:"evenodd",d:"M20 10c-5.52 0-10 4.48-10 9.999s4.48 9.998 10 9.998S30 25.517 30 20C30 14.479 25.52 10 20 10Zm1 14.999h-2v-2.001h2v2Zm0-3.997h-2v-6.001h2v6.001Z",clipRule:"evenodd"})}),j=()=>
1(0,s.jsx)("svg",{className:"top-5 h-4 w-4 sm:top-7",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0.21 0.59 15.58 8.79","data-testid":"directorylistingFilterArrowDownIcon",children:(0,s.jsx)("path",{stroke:"currentColor",className:"text-amethyst-base",strokeWidth:"2",d:"M14.7882 1.58827 8 8.3765 1.21177 1.58827"})}),y=()=>(0,s.jsxs)("svg",{className:"w-[16px] text-amethyst-base md:w-[21px]",viewBox:"0 0 21 21",fill:"none",xmlns:"http://www.w3.org/2000/svg","data-testid":"directorylistingFilterArrowNextIcon",children:[(0,s.jsx)("path",{d:"M-8.74228e-08 10.5L18 10.5",stroke:"currentColor",strokeWidth:"1.8"}),(0,s.jsx)("path",{d:"M10 1L18.866 10.5076L9.84019 19.8636",stroke:"currentColor",strokeWidth:"1.8"})]}),N=({activeFilterOptions:e})=>e.length?(0,s.jsxs)("div",{className:"mt-[10px] flex flex-row gap-[10px] md:hidden","data-testid":"directorylistingFilterSelectedOptionsMobile",children:[(0,s.jsx)("span",{className:"rounded-[100%] bg-platinum-base px-[6px] pt-[2px] font-sans text-s-utility text-amethyst-base","data-testid":"directorylistingFilterSelectedOptionsMobileLength",children:e.length}),(0,s.jsx)("span",{className:"truncate font-sans text-s-subcopy text-neutral-70","data-testid":"directorylistingFilterSelectedOptionsMobileLabels",children:e.map(({label:e})=>e).join(", ")})]}):null,S=e=>{var t,a;const[l,i]=n.useState(""),[r,d]=n.useState(null!==(t=e.values)&&void 0!==t?t:[]),[c,h]=n.useState(null!==(a=e.values)&&void 0!==a?a:[]),m=n.useRef(null),u=n.useCallback(()=>r.filter(({isActive:e})=>e),[r]),p=n.useMemo(()=>u().length,[u()]),[S,F]=n.useState(r.length>=6),[C,k]=n.useContext(b),{filterClear:T,filterNoResultsText:O,filterNotFoundText:A,filterNotFoundTitle:B,filterResultsFormatString:M,filterSelectedFormatString:R,directorySearchPlaceholder:D}=n.useContext(g),E=(0,x.t)();n.useEffect(()=>{E||(d(e.values),h(e.values),F(e.values.length>=6),i(""))},[e.values]);const H=n.useCallback(e=>{i(e),h([...r.filter(t=>t.label.toLowerCase().includes(e.toLowerCase()))])},[r]),[z,_]=n.useState("filter-grad-bottom"),P=n.useRef(null),I=n.useCallback(()=>{const e=P.current;if(!e)return;const t=e.scrollTop,a=e.scrollHeight,s=e.clientHeight;_(t<=10?"filter-grad-bottom":t+s+10>=a?"filter-grad-top":"filter-grad-bottom filter-grad-top")},[]);n.useEffect(()=>{const e=P.current;if(e)return e.addEventListener("scroll",I),()=>{e.removeEventListener("scroll",I)}},[]);const Z=n.useCallback(e=>{var t;let a=e.target;for(;a&&!a.classList.contains("filter-open");)a=a.parentElement;(null===(t=m.current)||void 0===t?void 0:t.contains(e.target))||a||k(e=>Object.assign(Object.assign({},e),{expandedFilter:{}}))},[k]);return n.useEffect(()=>(document.addEventListener("mousedown",Z),()=>{document.removeEventListener("mousedown",Z)}),[m,k,Z]),(0,s.jsxs)("div",{ref:m,className:(0,f.A)("relative max-md:-mt-[1px] max-md:border-t max-md:border-t-platinum-base md:col-span-4 md:rounded-[5px] md:bg-neutral-white",C.expandedFilter.id===e.id?"filter-open max-md:h-full max-md:border-none md:rounded-b-none md:border md:border-b-0 md:border-platinum-base":"max-md:mt-0 max-md:border-none",0===r.length&&"pointer-events-none md:border md:border-solid md:border-neutral-30 md:bg-platinum-base"),"data-testid":"directorylistingFilter",children:[(0,s.jsxs)("div",{className:(0,f.A)("item col-span-4 flex w-full cursor-pointer flex-row items-start justify-between py-[25px] font-sans text-s-body text-amethyst-base max-md:border-b max-md:border-b-platinum-base md:items-center md:px-[20px] md:py-[10px]",C.expandedFilter.id&&"hidden md:flex",0===r.length&&"text-neutral-30"),role:"presentation",onClick:()=>k(t=>Object.assign(Object.assign({},t),{expandedFilter:Object.assign({},e.id!==t.expandedFilter.id&&Object.assign({},e))})),children:[(0,s.jsxs)("span",{className:"w-[90%] flex-col max-md:flex","data-testid":"directorylistingFilterSelectedOptions",children:[(0,s.jsxs)("span",{children:[e.label,"Â "]}),(0,s.jsx)("label",{className:"hidden text-neutral-70 md:inline",children:p?(0,o.JT)(R,[p]):""}),(0,s.jsx)(N,{activeFilterOptions:u()})]}),(0,s.jsx)("div",{className:(0,f.A)("hidden md:block",0===r.length&&"[&_path]:text-neutral-30"),"data-testid":"directorylistingFilterArrowDown",children:(0,s.jsx)(j,{})}),(0,s.jsx)("div",{className:(0,f.A)("mt-[2px] block max-md:mr-[16px] md:hidden",0===r.length&&"[&_svg]:text-neutral-30"),"data-testid":"directorylistingFilterArrowNext",children:(0,s.jsx)(y,{})})]}),C.expandedFilter.id===e.id&&(0,s.jsxs)("div",{className:"top-[calc(100%_-_1px) left-[-1px] z-1 w-[calc(100%_+_2px)] overflow-hidden rounded-[5px] rounded-t-none max-md:flex max-md:h-full max-md:flex-col max-md:pr-1 md:absolute md:border md:border-t-0 md:border-platinum-base md:bg-neutral-white","data-testid":"directorylistingFilterExpanded",children:[(0,s.jsxs)("div",{className:"mb-[30px] font-headline text-s-h4 text-amethyst-base md:hidden","data-testid":"directorylistingFilterExpandedSelectedOptionsMobile",children:[(0,s.jsx)("span",{children:C.exp
1andedFilter.label}),(0,s.jsx)(N,{activeFilterOptions:u()})]}),S&&(0,s.jsxs)("div",{className:"mb-5 flex items-center gap-x-2 overflow-hidden rounded-[5px] border border-platinum-base px-5 py-[10px] max-md:min-h-[50px] md:mx-[25px] md:mb-2",children:[(0,s.jsx)("input",{className:"flex-1 outline-none",type:"text",placeholder:D,value:l,onChange:e=>H(e.target.value),"data-testid":"directorylistingFilterSearchTextBox"}),l?(0,s.jsx)("button",{onClick:()=>H(""),"data-testid":"directorylistingFilterClearSearchTextBoxButton",children:(0,s.jsx)(L,{className:"text-pezzottaite-base",height:"20",width:"20"})}):(0,s.jsx)(v,{})]}),(0,s.jsx)("div",{className:(0,f.A)("relative max-md:flex-1 max-md:overflow-hidden",c.length>4&&z),children:(0,s.jsx)("div",{ref:P,onScroll:I,className:"h-full overflow-y-auto max-md:border-t-[1px] max-md:border-platinum-base md:max-h-[240px]",children:c.length>0?c.map((t,a)=>{var l;const i=!t.total;return(0,s.jsx)("div",{className:(t.isActive?"bg-platinum-base":"md:bg-neutral-white")+" border-b-[1px] border-platinum-base font-sans text-s-subcopy text-amethyst-base","data-testid":`directorylistingFilterOptionWrapper-${a}`,children:(0,s.jsxs)("label",{htmlFor:t.key,className:(0,f.A)("flex items-start justify-start px-[10px] py-[15px] md:px-[25px]",!i&&"cursor-pointer"),"data-testid":`directorylistingFilterOptionLabel-${a}`,children:[(0,s.jsx)("input",{id:t.key,type:"checkbox",disabled:i,className:(0,f.A)("relative mr-[15px] mt-[2px] min-h-[20px] min-w-[20px] appearance-none rounded-[4px] border border-silver-base bg-platinum-base",t.isActive&&"before:absolute before:left-[10px] before:top-[3px] before:block before:h-[12px] before:w-[1px] before:rotate-45 before:bg-amethyst-base before:content-[''] after:absolute after:left-1 after:top-2 after:block after:h-[6px] after:w-[1px] after:-rotate-45 after:bg-amethyst-base after:content-['']",i?"border-neutral-20 bg-neutral-white":"cursor-pointer"),checked:t.isActive,onChange:a=>{t.isActive=a.target.checked,d(e=>[...e]),(0,o.nM)({event:"filter",category:e.label,filter:t.label})},"data-testid":`directorylistingFilterOptionCheckbox-${a}`}),(0,s.jsxs)("span",{className:(0,f.A)(i&&"text-neutral-30"),"data-testid":`directorylistingFilterOptionName-${a}`,children:[t.label,"Â ",(0,s.jsx)("span",{className:(0,f.A)(!i&&"text-neutral-60"),"data-testid":`directorylistingFilterOptionTotal-${a}`,children:`(${null!==(l=t.total)&&void 0!==l?l:0})`})]})]})},t.key)}):S&&(0,s.jsx)("div",{className:"p-[25px] font-sans text-s-subcopy","data-testid":"directorylistingFilterNoFilterOptionsMessage",children:(0,s.jsxs)("div",{className:"flex flex-row justify-start gap-[10px]",children:[(0,s.jsx)(w,{}),(0,s.jsxs)("span",{className:"text-pezzottaite-base","data-testid":"directorylistingFilterNotFoundTitle",children:[B,(0,s.jsx)("span",{className:"block text-neutral-base","data-testid":"directorylistingFilterNotFoundText",children:A})]})]})})})}),(0,s.jsxs)("div",{className:"flex flex-wrap gap-5 bg-neutral-white p-5 max-md:flex-row-reverse max-md:justify-end",children:[(0,s.jsx)("button",{className:"btn-primary",disabled:S&&!c.length,onClick:()=>{p<1?(r.map(t=>{var a;null===(a=C.expandedFilter.ServerFilter[null==e?void 0:e.id])||void 0===a||a.map(e=>{t.key==e&&(t.isActive=!0)})}),k(e=>Object.assign(Object.assign({},e),{expandedFilter:{}}))):k(e=>Object.assign(Object.assign({},e),{expandedFilter:{}})),e.onSubmit&&e.onSubmit()},"data-testid":"directorylistingFilterSearchButton",children:S&&!c.length?O:(0,o.JT)(M,[""])}),(0,s.jsxs)("button",{className:(0,f.A)("inline-flex items-center justify-center p-3 text-s-subcopy",p?"text-amethyst-base":"text-silver-base md:hidden"),disabled:!p,onClick:()=>{d(e=>[...e.map(e=>(e.isActive=!1,e))])},"data-testid":"directorylistingFilterClearFilterOptionsButton",children:[(0,s.jsx)("span",{className:"mr-[15px] inline-block",children:T}),(0,s.jsx)(L,{className:p?"text-amethyst-base":"text-silver-base",height:"16",width:"16"})]})]})]})]})},L=({className:e,height:t,width:a})=>(0,s.jsx)("svg",{width:a,height:t,xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 40 40",className:e,"data-testid":"directorylistingFilterCloseIcon",children:(0,s.jsx)("g",{children:(0,s.jsx)("path",{fill:"currentcolor",fillRule:"evenodd",d:"m16.465 20-8.84-8.839 3.536-3.535L20 16.464l8.839-8.838 3.535 3.535L23.535 20l8.84 8.839-3.536 3.535L20 23.535l-8.839 8.84-3.535-3.536L16.464 20Z",clipRule:"evenodd"})})}),F=()=>(0,s.jsx)("svg",{width:12,height:12,xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"8 9 24.97 21.77",className:"text-neutral-white","data-testid":"directorylistingFilterIcon",children:(0,s.jsx)("path",{fill:"currentcolor",d:"M15.154 21.353a3.712 3.712 0 0 0-2.503-2.085v-9.36a.908.908 0 1 0-1.817 0v9.357c-.216.055-.43.128-.635.216a3.742 3.742 0 0 0 .635 7.04v3.37a.909.909 0 0 0 1.817 0v-3.365a3.713 3.713 0 0 0 2.599-2.306c.353-.93.319-1.962-.096-2.867Zm-1.604 2.224v.002a1.93 1.93 0 1 1-.05-1.476c.217.463.238.995.059 1.476l-.009-.002ZM21.793 13.542a4.837 4.837 0 0 0-.413-.128V9.908a.908.908 0 1 0-1.817 0v3.52a3.752 3.752 0 0 0-2.502 5.177 3.718 3.718 0 0 0 2.502 2.09v9.197a.909.909 0 0 0 1.817 0v-9.203a3.747 3.747 0 0 0 2.858-3.758 3.741 3.741 0 0 0-2.445-3.39Zm.5 4.2a1.929 1.929 0 0 1-3.566.114 1.93 1.93 0 0 1 2.44-2.603c.475.183.857.549 1.062 1.014.219.463.242.995.064 1.476ZM32.632 21.353a3.712 3.712 0 0 0-2.503-2.085v-9.36a.908.908 0 1 0-1.817 0v9.357c-.216.055-.43.128-.635.216a3.741 3.741 0 0 0 .635 7.04v3.37a.909.909 0 0 0 1.817 0v-3.365a3.713 3.713 0 0 0 2.599-2.306c.353-.93.32-1.962-.096-2.867Zm-1.604 2.224v.002a1.93 1.93 0 1 1-3.613-1.361 1.93 1.93 0 0 1 3.613 1.361v-.002Z"})}),C=()=>(0,s.jsxs)("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg","data-testid":"directorylistingFilterArrowBackIcon",children:[(0,s.jsx)("g",{clipPath:"url(#clip0_2253_45254)",children:(0,s.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.50587 5.46603H9.48071V4.31978H2.50584L5.60702 1.11272L4.78301 0.315918L0.911339 4.31978H0.909286V4.3219L0.357151 4.89289L0.909286 5.46388V5.46603H0.911366L4.78301 9.46986L5.60702 8.67306L2.50587 5.46603Z",fill:"#DC199B"})}),(0,s.jsx)("defs",{children:(0,s.jsx)("clipPath",{id:"clip0_2253_45254",children:(0,s.jsx)("rect",{width:"10",height:"10",fill:"white"})})})]}),k=e=>{if(!e.filters.length)return null;const[t,a]=n.useState(e.filters),[l,i]=n.useState(!1),r=n.useRef(!0),d=n.useCallback(()=>t.flatMap(e=>e.values||[]).filter(({isActive:e})=>e),[t]),c=n.useMemo(()=>d().length,[d()]),[h,m]=n.useState({filterOptionTags:d(),expandedFilter:{}}),u=()=>{m(e=>Object.assign(Object.assign({},e),{filterOptionTags:d()})),i(!1),e.onSubmit(t)},p=t=>{e.onClearAll(t)};n.useEffect(()=>{l?document.body.classList.add("max-md:overflow-hidden"):document.body.classList.remove("max-md:overflow-hidden")},[l]);const v=(0,x.t)();return n.useEffect(()=>{v||a(e.filters)},[e.filters]),n.useEffect(()=>
1{r.current?r.current=!1:0===h.filterOptionTags.length&&p(!0)},[h.filterOptionTags]),(0,s.jsx)(b.Provider,{value:[h,m],children:(0,s.jsxs)(g.Provider,{value:Object.assign({},e),children:[(0,s.jsx)("div",{className:"mb-5 mt-5 w-full px-[30px] md:hidden",children:(0,s.jsxs)("button",{className:"flex w-full flex-row items-center justify-center gap-[10px] rounded-md bg-amethyst-base px-3 py-[15px] font-sans text-s-subcopy text-neutral-white",onClick:()=>i(e=>!e),"data-testid":"directorylistingFilterListButtonMobile",children:[(0,s.jsx)("span",{children:e.filterButtonLabel}),(0,s.jsx)(F,{})]})}),l&&(0,s.jsx)("div",{className:"before:fixed before:left-0 before:right-0 before:top-0 before:z-[100] before:h-full before:w-full before:bg-[rgba(49,49,49,0.2)] max-md:before:content-[''] md:hidden"}),(0,s.jsxs)("div",{className:(0,f.A)("md:container-fluid left-0 top-[50px] z-[200] bg-neutral-white px-8 py-[20px] max-md:fixed max-md:flex max-md:h-[calc(100%_-_50px)] max-md:w-full max-md:translate-y-[100%] max-md:flex-col max-md:rounded-t-[20px] max-md:transition-all max-md:duration-300 md:grid md:bg-platinum-base md:py-[40px]",l?"max-md:opacity-1 max-md:pointer-events-auto max-md:!translate-y-0":"max-md:pointer-events-none max-md:opacity-0"),children:[l&&(0,s.jsxs)("div",{className:"mb-8 flex items-center justify-between font-sans text-s-h5 text-pezzottaite-base md:hidden","data-testid":"directorylistingFilterListMobile",children:[h.expandedFilter.id?(0,s.jsxs)("button",{className:"flex flex-row items-center gap-[10px]",onClick:()=>m(e=>Object.assign(Object.assign({},e),{expandedFilter:{}})),"data-testid":"directorylistingFilterListBackButtonMobile",children:[(0,s.jsx)(C,{}),(0,s.jsx)("span",{children:e.filterBackLabel})]}):(0,s.jsx)("span",{"data-testid":"directorylistingFilterListLabelMobile",children:e.filterListLabel}),(0,s.jsx)("button",{onClick:()=>i(!1),"data-testid":"directorylistingFilterListCloseButtonMobile",children:(0,s.jsx)(L,{className:"text-pezzottaite-base",height:"20",width:"20"})})]}),(0,s.jsx)("div",{className:`max-md:relative max-md:flex-1 ${!h.expandedFilter.id&&"max-md:filter-grad-bottom"} max-md:overflow-hidden`,children:(0,s.jsx)("div",{className:`md:grid-base max-md:h-full md:grid-cols-12 ${!h.expandedFilter.id&&"max-md:overflow-y-auto"}`,children:t.map(t=>(0,s.jsx)(S,{ServerFilter:e.serverSideFilter,label:t.label,values:t.values,helpText:t.helpText,id:t.id,onSubmit:()=>u()},t.id))})}),!h.expandedFilter.id&&(0,s.jsxs)("div",{className:(0,f.A)("flex flex-wrap gap-5 bg-neutral-white p-5 max-md:justify-start md:hidden"),children:[(0,s.jsxs)("button",{className:(0,f.A)("inline-flex items-center justify-center p-3 text-s-subcopy",c?"text-amethyst-base":"text-silver-base md:hidden"),disabled:!c,onClick:()=>{a(e=>[...e.map(e=>(e.values.map(e=>e.isActive=!1),e))])},"data-testid":"directorylistingFilterListClearFilterOptionsButtonMobile",children:[(0,s.jsx)("span",{className:"mr-[15px] inline-block",children:e.filterClear}),(0,s.jsx)(L,{className:c?"text-amethyst-base":"text-silver-base",height:"16",width:"16"})]}),(0,s.jsx)("button",{className:"btn-primary",onClick:()=>u(),"data-testid":"directorylistingFilterListSearchButtonMobile",children:(0,o.JT)(e.filterResultsFormatString,[""])})]})]}),h.filterOptionTags.length>0&&(0,s.jsxs)("div",{className:"container-fluid mt-8 flex gap-[15px] bg-neutral-white py-5 font-sans","data-testid":"directorylistingAppliedFilterOptions",children:[(0,s.jsx)("label",{className:"whitespace-nowrap pt-[5px] text-s-subcopy text-neutral-60","data-testid":"directorylistingAppliedFilterOptionsLabel",children:(0,o.JT)(e.filterApplied,[h.filterOptionTags.length])}),(0,s.jsx)("div",{className:"filter-grad-right relative overflow-hidden text-s-subcopy text-amethyst-base md:after:!hidden",children:(0,s.jsxs)("div",{className:"grid snap-x snap-mandatory auto-cols-max grid-flow-col flex-wrap gap-x-[15px] gap-y-5 overflow-auto pb-3 md:flex md:pb-0","data-testid":"directorylistingAppliedFilterOptionsButtonList",children:[h.filterOptionTags.map((e,t)=>(0,s.jsx)(n.Fragment,{children:(0,s.jsxs)("button",{className:"inline-flex snap-start items-center justify-center gap-[5px] rounded-[50px] bg-platinum-base px-[20px] py-[5px]",onClick:()=>{var t;d().map(t=>(t.key===e.key&&(t.isActive=!1),t)),u(),1==(null===(t=null==h?void 0:h.filterOptionTags)||void 0===t?void 0:t.length)&&p(!0)},"data-testid":`directorylistingAppliedFilterOptionsButton-${t}`,children:[(0,s.jsx)("span",{children:e.label}),(0,s.jsx)(L,{className:"text-amethyst-base",height:"12",width:"12"})]})},e.key)),h.filterOptionTags.length>=2&&(0,s.jsxs)("button",{className:"inline-flex items-center justify-center gap-[5px] rounded-[50px] px-[20px] py-[5px]",onClick:()=>{d().map(e=>(e.isActive=!1,e)),u(),p(!0)},"data-testid":"directorylistingAppliedFilterOptionsClearAllButton",children:[(0,s.jsx)("span",{children:e.filterClear}),(0,s.jsx)(L,{className:"text-amethyst-base",height:"12",width:"12"})]})]})})]})]})})},T=e=>{var t;const[a,l]=n.useState(null!==(t=e.searchText)&&void 0!==t?t:""),[i,r]=n.useState(""),d=((0,x.t)(),t=>{e.onSubmit&&e.onSubmit(t)});return n.useEffect(()=>{},[]),(0,s.jsxs)("div",{className:"relative mb-7 flex h-[50px] md:w-[366px] w-full items-center px-[20px] py-[10px] justify-between overflow-hidden rounded-[6px] border border-silver-base col-span-12 md:col-span-6 md:mb-0 focus-within:outline focus-within:outline-offset focus-within:outline-[#313131] ",children:[(0,s.jsx)("input",{type:"text",id:"search",name:"search",placeholder:e.searchPlaceholder,className:"search-reset w-full rounded-[6px] bg-neutral-white text-[18px] text-neutral-base placeholder:text-[18px] placeholder:text-neutral-60 focus:outline-none",value:a,onChange:t=>{l(t.target.value),e.submitSearchFieldOnTextChange&&d(Object.assign({searchText:t.target.value},e.dropdown&&{dropdownData:i}))},onKeyDown:t=>{"Enter"===t.key&&d(Object.assign({searchText:a},e.dropdown&&{dropdownData:i}))},"data-testid":"DirectorySearchHeroSearchTextbox"}),a?(0,s.jsx)("button",{onClick:()=>{var t;l(""),e.submitSearchFieldOnTextChange&&d(Object.assign({searchText:""},e.dropdown&&{dropdownData:i})),null===(t=e.onClearSearch)||void 0===t||t.call(e)},"data-testid":"DirectorySearchHeroClearSearchTermButton",children:(0,s.jsx)(L,{className:"text-neutral-base",height:"20",width:"20"})}):(0,s.jsx)(O,{})]})},O=()=>(0,s.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg","data-testid":"directorylistingFilterSearchIcon",children:(0,s.jsx)("path",{d:"M12.8387 13.2L18 18M8.19355 14.8C11.6142 14.8 14.3871 11.9346 14.3871 8.4C14.3871 4.86538 11.6142 2 8.19355 2C4.77295 2 2 4.86538 2 8.4C2 11.9346 4.77295 14.8 8.19355 14.8Z",stroke:"#DC199B",strokeWidth:"2"})});var A=function(e,t,a,s){return new(a||(a=Promise))(function(l,i){function r(e){try{d(s.next(e))}catch(e){i(e)}}function n(e){try{d(s.throw(e))}catch(e){i(e)}}function d(e){var t;e.done?l(e.value):(t=e.value,t instanceof a?t:new a(function(e){e(t)})).then(r,n)}d((s=s.apply(e,t||[])).next())})};const B=(0,d.withDefault)(d.JsonParam,[]),M=(0,d.withDefault)(d.NumberParam,0),R=(0,d.withDefault)(d.StringParam,""),D=({searchDisplayedResultsLabel:e,singleResultLabel:t,from:a,pageSize:l,total:i,className:r,id:n})=>{const d=a+l,c=1===i?t:(0,o.JT)(e,[a+1,d>i?i:d,i]);return(0,s.jsx)("div",{className:r,id:n,"data-testid":"paginationResults",children:(0,s.jsx)("label",{className:"mt-10 text-[18px] text-neutral-70",children:c})})},E=({data:e})=>(0,s.jsx)("div",{className:"md:grid-base grid grid-cols-4 gap-8 sm:grid-cols-8 md:gap-4 lg:grid-cols-12","data-testid":"directoryListingCardList",children:e.items.map((e,t)=>{switch(e.type){case"PeopleCard":return(0,s.jsx)(h,Object.assign({},e),t);case"SearchResultCard":return(0,s.jsx)(m.A,Object.assign({},e),t)}})}),H=(0,c.z)(e=>{var t,a,l;console.log(e);const c=(null==e?void 0:e.serverSideFilterJson)?JSON.parse(null==e?void 0:e.serverSideFilterJson):"",[h]=n.useState(c),[m,f]=n.useState(e.initialData),[b,g]=n.useState(!1),v=n.useMemo(()=>m.filters.filter(t=>{var a;return null===(a=e.facetsToShow)||void 0===a?void 0:a.includes(t.key)}).map(({helpText:e,key:t,label:a,values:s})=>({id:t,helpText:e,label:a,values:s})),[m.filters]),[w,j]=n.useState("idle"),[y,N]=(0,d.useQueryParams)(function(e){const t={from:M,q:R};
1return e.forEach(e=>{t[e.id]=B}),t}(v)),[S,L]=n.useState(null===(a=null===r.A||void 0===r.A?void 0:r.A.parse(null===(t=null===window||void 0===window?void 0:window.location)||void 0===t?void 0:t.href))||void 0===a?void 0:a.sort),F=e.initialData.items.length<e.initialData.total,[C,O]=n.useState(F),H=n.useMemo(()=>Math.ceil(m.total/e.pageSize),[m.total,e.pageSize]),[z,_]=(n.useMemo(()=>Array(H).fill(null).map((e,t)=>++t),[H]),n.useState(e.initialData.from/e.pageSize+1)),[P,I]=n.useState(!1),Z=(0,x.t)(),$=n.useRef(null),V=n.useRef(!1);function J(){return A(this,void 0,void 0,function*(){var t;$.current&&$.current.abort(),$.current=new AbortController,j("loading");let a={culture:e.culture,facetsToShow:e.facetsToShow,pageSize:e.pageSize,sort:S};if(e.showSearchBox&&(a.showSearchBox=e.showSearchBox),e.showProductCulturSpecific&&(a.showProductCulturSpecific=e.showProductCulturSpecific),h)for(const e in h)Array.isArray(a[e])?a[e]=i()(a[e],Array.isArray(h[e])?h[e]:[]):a[e]=h[e];a=b?Object.assign({},a):Object.assign(Object.assign({},a),y),console.log(a),g(!1);const s=yield function(t,a){return A(this,void 0,void 0,function*(){const s=r.A.stringify(t,{skipEmptyString:!0,skipNull:!0}),l=`${e.searchEndpoint}?${s}`,i=yield fetch(l,{signal:a});if(!i.ok)throw i;return i.json()})}(a,$.current.signal);s&&f(s),j("idle");const l=s.items.length<s.total;O(l),_(y.from/e.pageSize+1),y.q&&I(!0),V.current&&(null===(t=document.getElementById("directoryListingDisplayedResultsHeader"))||void 0===t||t.scrollIntoView(),V.current=!1)})}n.useEffect(()=>{try{Z||J()}catch(e){console.error(e),j("error")}},[y,S]);return(0,s.jsxs)(s.Fragment,{children:["loading"===w&&(0,s.jsx)("div",{className:"fixed inset-0 z-10 flex h-full place-content-center place-items-center bg-primary/50 text-neutral-base","data-testid":"loader",children:(0,s.jsxs)("div",{className:"relative",children:[(0,s.jsx)("div",{className:"absolute h-12 w-12 rounded-full border-8 border-solid border-platinum-base"}),(0,s.jsx)("div",{className:"absolute h-12 w-12 animate-spin rounded-full border-8 border-solid border-amethyst-base border-t-transparent"})]})}),e.showDirectorySearchHero&&e.directorySearchHero&&(0,s.jsx)(u,Object.assign({},e.directorySearchHero,{searchText:y.q,total:P?m.total:null,resultsNotFoundLabel:e.filterNotFoundTitle,searchPlaceholder:e.directorySearchPlaceholder,onSubmit:e=>{const t={from:0};v.forEach(e=>{t[e.id]=e.values.filter(({isActive:e})=>e).map(({key:e})=>e)}),(0,o.nM)({event:"view_search_results",location:"search results",search_term:e.searchText}),N(Object.assign({q:e.searchText,from:0},t),"pushIn")},onClearSearch:()=>{const e={q:"",from:0,sort:S};v.forEach(t=>{e[t.id]=t.values.filter(({isActive:e})=>e).map(({key:e})=>e)}),N(e,"pushIn")}})),(0,s.jsx)(k,Object.assign({},e,{serverSideFilter:h,onClearAll:()=>{j("loading"),window.location.reload()},filters:v,onSubmit:e=>{const t={from:0};e.forEach(e=>{t[e.id]=e.values.filter(({isActive:e})=>e).map(({key:e})=>e)}),N(t,"pushIn")}})),(0,s.jsxs)("div",{className:"container-fluid hero-spacing",children:[(0,s.jsxs)("div",{className:`mb-6 mt-6 flex-wrap items-center ${Boolean(m.total)?"justify-between":"justify-end"} md:flex`,children:[Boolean(m.total)&&(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(D,{searchDisplayedResultsLabel:e.searchDisplayedResultsLabel,singleResultLabel:e.singleResultLabel,from:m.from,pageSize:e.pageSize,total:m.total,className:"mb-6 font-sans md:mb-0",id:"directoryListingDisplayedResultsHeader"})}),(0,s.jsxs)("div",{className:"flex max-md:flex-col",children:[e.showSearchBox&&(0,s.jsx)(T,{submitSearchFieldOnTextChange:!1,searchText:y.q,searchPlaceholder:e.searchLabel,onSubmit:e=>{const t={from:0};v.forEach(e=>{t[e.id]=e.values.filter(({isActive:e})=>e).map(({key:e})=>e)}),(0,o.nM)({event:"view_search_results",location:"search results",search_term:e.searchText}),N(Object.assign({q:e.searchText,from:0},t),"pushIn")},onClearSearch:()=>{const e={q:"",from:0,sort:S};v.forEach(t=>{e[t.id]=t.values.filter(({isActive:e})=>e).map(({key:e})=>e)}),N(e,"pushIn")}}),Boolean(m.total)&&(null==e?void 0:e.enableSorting)&&(0,s.jsxs)("select",{defaultValue:S,onChange:e=>(e=>{L(e.target.value);const t={from:0,sort:e.target.value};
1v.forEach(e=>{t[e.id]=e.values.filter(({isActive:e})=>e).map(({key:e})=>e)}),N(t,"pushIn")})(e),className:`select-custom-sortarrow backgorund-color-amethyst-base h-[48px] w-full ${e.showSearchBox&&"md:ml-[20px]"} appearance-none rounded-[6px] border border-silver-base px-[12px] text-[18px] font-normal leading-none text-amethyst-base text-opacity-100 outline-0 focus-visible:border-amethyst-base sm:w-auto md:h-[50px] md:w-auto md:pr-[40px] [[data-error="true"]_&:not(:focus)]:border-pezzottaite-base`,"data-testid":"formFieldDropdown","aria-label":"sort",name:"sort",children:[(0,s.jsx)("option",{value:"","data-testid":"sortoptions",label:"Sort By",children:"Sort By"}),null===(l=e.initialData.sortOptions)||void 0===l?void 0:l.map((e,t)=>(0,s.jsx)("option",{value:e.key,"data-testid":"sortoptions",children:e.label},t))]})]})]}),m.total?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(E,{data:m}),C&&(0,s.jsx)("div",{className:"mt-8 flex justify-center",children:(0,s.jsxs)("button",{className:"btn-secondary","aria-label":"sort",onClick:()=>{const t={from:z*e.pageSize};v.forEach(e=>{t[e.id]=e.values.filter(({isActive:e})=>e).map(({key:e})=>e)}),N(t,"pushIn")},children:[e.showMoreLable,(0,s.jsx)("svg",{className:"ml-2 h-3 w-3",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"5 5 30 30",children:(0,s.jsx)("path",{fill:"currentcolor","fill-rule":"evenodd",d:"M17.5 17.5V5h5v12.5H35v5H22.5V35h-5V22.5H5v-5h12.5Z","clip-rule":"evenodd"})})]})})]}):(0,s.jsx)("div",{className:"flex justify-center",children:(0,s.jsx)(p.A,{noResultText:e.noResultText,noResultTitle:e.noResultTitle})})]})]})})},8379(e,t,a){a.d(t,{A:()=>l});var s=a(4848);const l=e=>(0,s.jsxs)("div",{className:"col-span-4 md:col-span-8 md:col-start-3",children:[(0,s.jsx)("h3",{className:"mb-5 font-headline text-s-h3 text-amethyst-base sm:text-amethyst-80","data-testid":"noResultsTitle",children:e.noResultTitle}),(0,s.jsx)("div",{className:"rich-text",dangerouslySetInnerHTML:{__html:e.noResultText},"data-testid":"noResultsText"})]})},2084(e,t,a){a.d(t,{JT:()=>s,nM:()=>l});const s=(e,t)=>(null==t||t.forEach((t,a)=>{e=null==e?void 0:e.replace(`{${a}}`,t.toString())}),e||"");function l(e){window.dataLayer&&window.dataLayer.push(e)}},6129(e,t,a){a.d(t,{z:()=>n});var s=a(4848),l=a(5570),i=a(3423),r=a(3184);function n(e,t){var a;function n(t){const a="undefined"==typeof window?l.kO:l.Kd,n="string"==typeof t.basename?t.basename:"/",d="string"==typeof t.location?t.location:"/";return(0,s.jsx)(a,{basename:n,location:d,children:(0,s.jsx)(i.QueryParamProvider,{adapter:r.S,children:(0,s.jsx)(l.BV,{children:(0,s.jsx)(l.qh,{path:"*",element:(0,s.jsx)(e,Object.assign({},t))})})})})}return void 0===t&&(t=null!==(a=e.displayName)&&void 0!==a?a:e.name),n.displayName=`withQueryParams(${t})`,n}},890(e,t,a){a.d(t,{t:()=>l});var s=a(6540);function l(){const e=s.useRef(!0);return(0,s.useEffect)(()=>{e.current&&(e.current=!1)},[]),e.current}}}]);
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.