"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7163],{87753:function(e,l,a){a.d(l,{Z:function(){return h}});var t=a(57437);a(2265);var n=a(41448),i=a.n(n),s=a(49087),o=a(78066),r=a(27899),c=a(82213),d=a(81817),u=a(9772),m=a.n(u);let p=e=>{let{className:l,name:a,value:n,render:i}=e;return null==n?null:(0,t.jsxs)("div",{className:m()("max-w-full","grow","shrink-0","flex","flex-col","items-start","justify-center",{"basis-[46%]":!l||!l.match(/basis-/)},l),children:[(0,t.jsx)(c.H3,{className:"whitespace-nowrap",children:a}),(0,t.jsx)("div",{className:m()("max-w-full",{"leading-relaxed":"string"==typeof n}),children:"function"==typeof i?i(n):n})]})};p.propTypes={className:i().string,name:i().string,value:i().oneOfType([i().string,i().number,i().bool]),render:i().func};let g=e=>{var l;let{className:a,isRental:n,phoneNumber:i,management:u,schedule:m,invoice:g,links:h,collectorUrl:v}=e,f="block text-link max-w-full overflow-x-hidden whitespace-nowrap text-ellipsis";return(0,t.jsx)("div",{className:a,children:(0,t.jsxs)("div",{className:"flex flex-wrap gap-x-6 gap-y-10",children:[!(0,s.Z)(h)&&(0,t.jsxs)("div",{className:"basis-full",children:[(0,t.jsx)(c.H3,{children:"Links"}),(0,t.jsx)(d.Z,{links:h,collectorUrl:v,showAdmin:!0})]}),(0,t.jsx)(p,{name:"Phone Number",value:i,render:e=>(0,t.jsx)("a",{href:(0,o.Pu)(e),className:f,children:e})}),(0,t.jsx)(p,{name:"Management",value:(0,s.Z)(null==u?void 0:u.companies)?null:u.companies[u.companies.length-1].name}),(0,t.jsx)(p,{name:"Scheduling Email",value:null==m?void 0:m.scheduleEmail,render:e=>(0,t.jsx)("a",{href:"mailto:".concat(e),className:f,children:e})}),(0,t.jsx)(p,{name:"Agent License Required",value:(null==g?void 0:g.agent_license_required)||void 0,render:e=>!0===e?(0,t.jsx)(r.C,{color:"danger",size:"sm",text:"Yes, Required to Tour"}):null}),(0,t.jsx)(p,{className:"basis-full",name:"Listing Notes",value:null==u?void 0:u.listing_note}),(0,t.jsx)(p,{className:"basis-full",name:"Virtual Tour Notes",value:null==m?void 0:m.virtual_tour_note}),(0,t.jsx)(p,{className:"basis-full",name:"Notes Requiring Attention",value:null==m?void 0:m.attention_note}),(0,t.jsx)(p,{name:"Short Term Lease",value:null==u?void 0:u.short_term_lease_months,render:e=>"".concat(e," months")}),(0,t.jsx)(p,{name:"Proratable",value:null==u?void 0:u.proratable,render:e=>!0===e?"Yes":"No"}),(0,t.jsx)(p,{name:"Lease Hold Days",value:null==u?void 0:u.hold_days,render:e=>"".concat(e," days")}),(0,t.jsx)(p,{className:(null==u?void 0:u.pr_permission_note)?"basis-full":"",name:"Advertising Allowed",value:null==u?void 0:u.pr_permission,render:e=>(0,t.jsxs)("div",{className:"inline",children:[e?"Yes. ":(0,t.jsx)(r.C,{className:"!inline-flex mr-2",size:"sm",color:"danger",text:"No"}),(null==u?void 0:u.pr_permission_note)&&(0,t.jsx)("span",{children:null==u?void 0:u.pr_permission_note})]})}),(0,t.jsx)(p,{className:"basis-full",name:"Income Requirements",value:null==u?void 0:u.income_specification}),(0,t.jsx)(p,{name:"Invoice Due",value:null!==(l=null==g?void 0:g.building_payment_wait_days)&&void 0!==l?l:n?30:null,render:e=>"".concat(e," days after lease start")}),(0,t.jsx)(p,{name:"Invoice Method",value:(null==g?void 0:g.invoice_method)||(null==g?void 0:g.payment_ach)||null,render:()=>(0,t.jsxs)("div",{className:"inline",children:[(null==g?void 0:g.payment_ach)&&(0,t.jsx)(r.C,{className:"!inline-flex mr-2",color:"primary",size:"sm",text:"ACH Payment"}),(null==g?void 0:g.invoice_method)?(0,t.jsx)("span",{children:null==g?void 0:g.invoice_method}):null]})})]})})};g.propTypes={className:i().string,isRental:i().bool,phoneNumber:i().string,management:i().object,schedule:i().object,invoice:i().object,links:i().array,collectorUrl:i().string};var h=g},70915:function(e,l,a){a.d(l,{default:function(){return K}});var t=a(57437),n=a(2265),i=a(41448),s=a.n(i),o=a(9772),r=a.n(o),c=a(8780),d=a(99718),u=a(49087),m=(e,l)=>{if(Array.isArray(e)&&Array.isArray(l))return e.filter(e=>l.includes(e))},p=a(34590),g=a(73879),h=a(3358),v=a(13492),f=a(18222),x=a(37184),b=a(93130),j=a(82072),y=a(37262),w=a(74840),N=a(82213),_=a(26826),k=a(53339);let C=e=>{let{className:l,activeBed:a,categorizedUnits:i,canSeeUnitDetail:s,searchRegex:o,onClick:c,onInputChange:d}=e,[u,m]=(0,n.useState)(!1),{bar:p,barStart:g,barEnd:h,canScrollRight:v,canScrollLeft:f,onClickScrollLeft:x,onClickScrollRight:b}=(0,k.VM)();(0,n.useEffect)(()=>{m(s)},[s]);let j=e=>{let{target:l}=e.currentTarget.dataset;c(l)};return(0,t.jsxs)("div",{className:r()("flex justify-start relative",l),children:[(0,t.jsxs)("div",{ref:p,className:r()(["flex","flex-row","block","relative","p-0","m-0","overflow-x-auto","overflow-y-hidden","md:items-center","lg:justify-center"]),children:[(0,t.jsx)("div",{ref:g}),[{label:"Studio",value:0},{label:"Convertible",value:.5,hideIfNone:!0},{label:"1 Bed",value:1},{label:"2 Bed",value:2},{label:"3+ Bed",value:3,hideIfNone:!0}].map(e=>{var l,n;let s=!(null===(l=i[e.value])||void 0===l?void 0:l.totalCount),o=!(null===(n=i[e.value])||void 0===n?void 0:n.filteredCount);return e.hideIfNone&&s?null:(0,t.jsx)("div",{className:r()(["flex","h-9","md:h-12","inline-block","font-light","border-b","border-solid",{"hover:border-primary-dark":!o},{"border-primary-dark":e.value==a},"transition-colors"]),children:(0,t.jsx)("button",{type:"button","data-target":e.value,onClick:j,className:r()(["w-max","px-4","md:px-5","py-1.5","md:py-3","font-body",{"text-global-dark":!o},{"text-global-light/80":o},"uppercase","text-sm","md:text-base","border-b","transition-colors",{"border-primary-dark":e.value==a},{"border-transparent":e.value!=a},{"hover:border-primary-dark":!o}]),disabled:o,children:e.label})},e.label)}),u&&(0,t.jsx)("div",{children:(0,t.jsx)(_.II,{className:"!w-40",inputClassName:"h-9 md:h-12 !pt-2 md:!pt-[14px] !box-border",labelClassName:"cursor-pointer text-sm md:text-base !-top-[9px] md:!-top-[7px] text-global-dark",debounce:1e3,label:"Unit # or Floorplan",value:null!=o?o:"",onChange:d})}),(0,t.jsx)("div",{ref:h})]}),(0,t.jsx)("div",{className:"grow border-b border-solid"}),(0,t.jsx)(k.xO,{className:"h-8",onClickScrollLeft:x,canScrollLeft:f}),(0,t.jsx)(k.h4,{className:"h-8",onClickScrollRight:b,canScrollRight:v})]})};C.propTypes={className:s().string,activeBed:s().number,categorizedUnits:s().object.isRequired,canSeeUnitDetail:s().bool.isRequired,searchRegex:s().string,onClick:s().func.isRequired,onInputChange:s().func.isRequired};var Z=a(55297),I=a(49915),D=a(66107),R=a(86605),q=a(2598),T=a(78066),A=a(27899),S=a(87520),M=a(83831),E=a(12176),O=a(3708);let P=e=>{var l;let{floorplanName:a,floorplanImage:i,units:s,labels:o,selected:c,highlighted:d,iconElem:m,buttonElem:p,onClickCard:g=()=>{},onClickImage:h=()=>{}}=e,v=null==s?void 0:s[0],f=(0,n.useMemo)(()=>{var e,l;let a="Ask for Price",t=null!==(l=null==s?void 0:s.length)&&void 0!==l?l:0;if(1===t)(null==s?void 0:null===(e=s[0])||void 0===e?void 0:e.price)&&(a=(0,E.kh)({minRent:s[0].price}));else{let e=s.map(e=>{let{price:l}=e;return l}).filter(e=>"number"==typeof e);e.sort(),(0,u.Z)(e)||(a=(0,E.kh)({minRent:e[0],maxRent:e[e.length-1],unitCount:t}))}return a},[s]),x=(0,n.useMemo)(()=>(0,E.Bi)(null==v?void 0:v.date_available),[null==v?void 0:v.date_available]);return(0,t.jsxs)("div",{role:"presentation",onClick:g,className:r()(["relative","text-global","hover:text-global","h-36",{"bg-global":!c},{"drop-shadow-gold":!c&&d},{"!bg-secondary-light/50":c}]),children:[(0,t.jsx)("div",{className:"absolute top-1 left-3",children:(0,t.jsx)(O.Z,{labels:o,className:"!text-[11px] !py-px"})}),m&&(0,t.jsx)("div",{className:r()(["absolute","top-3.5","right-0","z-20"]),children:m}),(0,t.jsxs)("div",{className:"flex w-full h-full",children:[(0,t.jsxs)("div",{className:r()(["flex","flex-col","grow","items-start","justify-between","w-3/5","pt-6","pb-4","pl-3","md:pl-4","hover:cursor-pointer"]),children:[(0,t.jsx)("div",{className:r()(["flex","flex-row","flex-wrap","items-center"]),children:(0,t.jsx)("div",{className:r()(["font-semibold","text-xl","md:text-2xl","text-global-dark","mr-2"]),children:f})}),(0,t.jsxs)("div",{className:r()(["flex","flex-row","flex-wrap","items-center","text-sm","lg:text-base","whitespace-nowrap","w-full","overflow-x-clip","gap-x-2"]),children:[(0,t.jsx)("div",{children:(0,T.Ay)(v.bedrooms,null===(l=v.features)||void 0===l?void 0:l.den)}),(0,t.jsx)("div",{children:(0,T.C9)(v.bathrooms)}),v.square_footage?(0,t.jsx)("div",{children:(0,T.nC)(v.square_footage)}):null,a?(0,t.jsx)(A.C,{className:"!py-0.5 !px-1.5 justify-center",size:"xs",children:(0,t.jsx)("span",{className:"text-xs max-w-[130px] text-ellipsis overflow-hidden whitespace-nowrap capitalize text-global-dark",children:a})}):null]}),null!=p?p:(0,t.jsxs)("div",{className:r()(["flex","flex-row","items-baseline","leading-5","lg:leading-6","text-xs","uppercase","font-semibold","text-global-dark","whitespace-nowrap","hover:text-global"]),children:[(0,t.jsxs)("span",{className:"text-sm lg:text-base normal-case mr-2",children:["#",v.unit_number]}),(0,t.jsx)(A.C,{text:"Available ".concat(x),className:"max-lg:-mt-0.5 max-lg:-mb-1",size:"xs"})]})]}),i&&(0,t.jsx)("div",{className:"p-2 h-full w-36 relative",children:(0,t.jsxs)("div",{className:r()(["relative","h-full","w-full","group","hover:cursor-pointer"]),onClick:h,role:"presentation",children:[(0,t.jsx)("div",{className:r()(["w-full","h-full","absolute","duration-200","ease-in-out","z-10"]),children:(0,t.jsx)("div",{className:r()(["opacity-0","text-gold-light","group-hover:opacity-100","transition-opacity","absolute","top-1/2","left-1/2","transform","-translate-x-1/2","-translate-y-1/2"]),children:(0,t.jsx)(M.default,{icon:"magnifyingGlass",size:"2x"})})}),(0,t.jsx)(S.Z,{src:i,height:200,alt:"Floorplan",className:"group-hover:opacity-50 transition-opacity"})]})})]})]})};P.propTypes={units:s().array.isRequired,labels:s().object,floorplanImage:s().string,floorplanName:s().string,selected:s().bool,highlighted:s().bool,iconElem:s().node,buttonElem:s().node,onClickCard:s().func,onClickImage:s().func};var F=a(48666),L=a(17162);let U=e=>{var l;let{permission:a,units:i,buildingID:s,unitIDs:o,floorplanName:c,floorplanImages:d,selectedUnitID:u,cardLink:m,iconElem:p,expandedElem:g,onClickLink:h,onClickCard:v,onClickImage:f}=e,[x,b]=(0,n.useState)(!1),j=null!==(l=null==i?void 0:i.length)&&void 0!==l?l:0,y=1===j,{canSeeUnitDetail:w}=a,N=(0,n.useMemo)(()=>(0,F.Z)({units:i}),[i]),_=e=>{w&&!y&&(e.preventDefault(),e.stopPropagation(),b(!x))},{starType:k}=(0,L.tk)({buildingID:s,unitIDs:o}),C=(0,n.useMemo)(()=>{let e=!1;if(u){for(let l=0,a=o.length;l<a;l++)if(o[l]===u){e=!0;break}}return e},[o,u]),Z=r()(["flex","flex-row","w-full","items-center","leading-5","lg:leading-6","text-xs","uppercase","font-bold","text-global-dark","whitespace-nowrap","hover:text-global"]),I=m?q.Z:"div";return(0,t.jsxs)("div",{className:r()(["flex","flex-col","relative"]),children:[(0,t.jsx)(I,{to:m,onClick:h,children:(0,t.jsx)(P,{floorplanName:c,floorplanImage:null==d?void 0:d[0],units:i,labels:N,selected:C,highlighted:null!==k,onClickCard:w?_:v,onClickImage:f,buttonElem:w?j>1?(0,t.jsxs)("button",{type:"button",className:Z,onClick:_,children:[(0,t.jsx)("span",{className:"w-3",children:x?"-":"+"}),x?"Hide units":"View All ".concat(j," units")]}):null:(0,t.jsx)("button",{type:"button",className:Z,children:j>1?"View All ".concat(j," apartments"):"View 1 apartment"}),iconElem:p})}),w&&(0,t.jsx)("div",{className:r()("flex","flex-col","space-y-2","mt-2","mb-10",{hidden:!x}),children:g})]})};U.propTypes={permission:s().shape({canSeeUnitDetail:s().bool}),units:s().arrayOf(s().shape({_id:s().string.isRequired})),unitIDs:s().arrayOf(s().string),buildingID:s().string,floorplanName:s().string,floorplanImages:s().arrayOf(s().string),selectedUnitID:s().string,cardLink:s().string,iconElem:s().node,expandedElem:s().node,onClickLink:s().func,onClickCard:s().func,onClickImage:s().func};var z=a(46151);let H=e=>{let{permission:l,units:a,buildingID:i,slug:s,floorplanName:o,floorplanImages:r,selectedUnitID:c,isModal:d,openGallery:m}=e,p=(0,b.TH)(),g=(0,b.tv)(),h=(null==a?void 0:a.length)===1,v=null==a?void 0:a[0],{canSeeUnitDetail:f,canFavorite:x}=l,j=(0,z.Z)(),y=f&&h?(0,Z.Z)({...p,slug:s,unitID:a[0]._id,isModal:d}):void 0,w=(0,n.useMemo)(()=>a.map(e=>e._id),[a]);return(0,t.jsx)(U,{permission:l,buildingID:i,slug:s,units:a,unitIDs:w,floorplanName:o,floorplanImages:r,selectedUnitID:c,cardLink:y,onClickLink:e=>(0,D.Z)({...p,unitID:null==v?void 0:v._id,slug:s,event:e,router:g,isModal:d}),onClickCard:e=>{f||(e.preventDefault(),j("floorplanCard"))},onClickImage:e=>{e.preventDefault(),e.stopPropagation(),(0,u.Z)(r)||m(r)},iconElem:(0,t.jsx)(R.Z,{type:"floorplanCard",buildingID:i,unitIDs:w,canFavorite:x,onClick:e=>{f||(e.preventDefault(),e.stopPropagation(),j("floorplanCardStar"))}}),expandedElem:a.map(e=>(0,t.jsx)(I.Z,{buildingID:i,slug:s,unit:e,isModal:d,selected:e._id===c,canFavorite:x},e._id))})};H.propTypes={permission:s().shape({canSeeUnitDetail:s().bool,canFavorite:s().bool}),units:s().arrayOf(s().shape({_id:s().string.isRequired})),buildingID:s().string,slug:s().string.isRequired,floorplanName:s().string,floorplanImages:s().arrayOf(s().string),selectedUnitID:s().string,isModal:s().bool,openGallery:s().func};var Y=a(27562),V=a(4854),B=a(20479);let W=e=>{let{className:l,onClick:a}=e,i=(0,c.oR)(e=>e.search.filter),s=(0,n.useMemo)(()=>{let e=!1;return Object.keys(i).forEach(l=>{null!=i[l]&&(l in V.W2.bedBath?e=!0:l in V.W2.rent?e=!0:l in V.W2.moveInDate?e=!0:l in V.W2.unitFeatures&&(e=!0))}),e},[i]);return(0,t.jsx)(B.Z,{className:l,highlighted:s,center:!0,onClick:a,label:"Filters"})};W.propTypes={className:s().string,onClick:s().func};let $=(0,x.Z)(()=>Promise.all([a.e(4853),a.e(8355),a.e(5071),a.e(7488),a.e(5035),a.e(9715)]).then(a.bind(a,39894))),G=Object.keys(p.default),X=["bedrooms","bathrooms","minRent","maxRent","moveInDateStart","moveInDateEnd","squareFootage"].concat(G),J=(e,l,a)=>{let t=!0;if(a&&a.length>=2){let l=RegExp(a,"i");e.unit_number.match(l)||e.floorplan_name&&e.floorplan_name.match(l)||e.floorplan_display_name&&e.floorplan_display_name.match(l)||(t=!1)}else{if(Array.isArray(l.bedrooms)){let a=e.bedrooms>3?3:e.bedrooms;l.bedrooms.includes(a)||(t=!1)}l.bathrooms&&(!e.bathrooms||e.bathrooms<l.bathrooms)&&(t=!1),l.minRent&&(!e.price||e.price<l.minRent)&&(t=!1),l.maxRent&&(!e.price||e.price>l.maxRent)&&(t=!1),l.moveInDateStart&&e.date_available_calculated&&(0,v.Z)(e.date_available_calculated)<l.moveInDateStart&&(t=!1),l.moveInDateEnd&&e.date_available&&(0,v.Z)(e.date_available)>l.moveInDateEnd&&(t=!1),l.squareFootage&&(!e.square_footage||e.square_footage<l.squareFootage)&&(t=!1),G.forEach(a=>{if(null!=l[a]){var n;let{dbField:i}=p.default[a],s=l[a],o=null===(n=e.features)||void 0===n?void 0:n[i];if("exposure"===a){let e=m(s,o);Array.isArray(e)&&e.length>0||(t=!1)}else o!==s&&(t=!1)}})}return t},Q=e=>{var l;let{permissionProps:a,loading:i,regionObj:s,buildingID:o,slug:m,buildingName:p,targetBedroom:x,listingsUpdatedAt:_,isModal:k}=e,Z=(0,Y.Z)(a),I={0:{totalCount:0,filteredCount:0,floorplans:{}},.5:{totalCount:0,filteredCount:0,floorplans:{}},1:{totalCount:0,filteredCount:0,floorplans:{}},2:{totalCount:0,filteredCount:0,floorplans:{}},3:{totalCount:0,filteredCount:0,floorplans:{}}},[D,R]=(0,n.useState)(null!=x?x:null),[q,T]=(0,n.useState)(null),[A,S]=(0,n.useState)(!1),M=(0,n.useRef)(),E=(0,b.TH)(),O=(0,n.useMemo)(()=>{var e;return null===(e=E.searchParams)||void 0===e?void 0:e.unit},[E.searchParams]),P=(0,c.FT)(e=>({...X.reduce((l,a)=>(l[a]=e.search.filter[a],l),{})}),d.VS),F=(0,n.useMemo)(()=>k?P:{},[k,P]),{data:L,isLoading:U}=(0,g.a)(["availableUnits",{buildingID:o}],h.J,{enabled:!!o,revalidateOnFocus:!1});(0,n.useEffect)(()=>{T(null)},[o]);let z=null!==(l=null==L?void 0:L.length)&&void 0!==l?l:0,{categorizedUnits:V,filteredUnitCount:B}=(0,n.useMemo)(()=>{let e={...I},l=0;return(0,u.Z)(L)||L.forEach(a=>{let t;if(null==a.bedrooms)return;let n=J(a,F,q),i=a.bedrooms<3?"".concat(a.bedrooms):"3",s=e[i];if(s.totalCount+=1,!n)return;s.filteredCount+=1,l+=1;let r="other",c=a.unit_number,d=[];a.floorplan_name?(a.images&&a.images.length&&(r="hasFloorplan",d=d.concat(a.images)),r="hasFloorplan",c=a.floorplan_name):a.unit_number_components&&(c="".concat(a.unit_number_components.building?"".concat(a.unit_number_components.building,"-"):"").concat(a.unit_number_components.unit)),(0,u.Z)(a.photos)||(d=d.concat(a.photos)),a.floorplan_display_name&&(t=a.floorplan_display_name,c=a.floorplan_display_name),(c="".concat(o,"-").concat(i,"-").concat(c))in s.floorplans||(s.floorplans[c]={key:c,type:r,floorplanImages:d,floorplanName:t,listings:[]}),s.floorplans[c].listings.push(a)}),{categorizedUnits:e,filteredUnitCount:l}},[o,L,q,F]);(0,n.useEffect)(()=>{let e=[1,2,3,0,.5];if(!(0,u.Z)(L)){if(O){let e;for(let l=0,a=L.length;l<a;l++){let a=L[l];if(a._id===O){null!=a.bedrooms&&(e=a.bedrooms<3?a.bedrooms:3);break}}null!=e&&R(e)}else if(D){if(V[D].filteredCount<=0)for(let l=0,a=e.length;l<a;l++){let a=e[l];if(V[a].filteredCount){R(a);break}}}else for(let l=0,a=e.length;l<a;l++){let a=e[l];if(V[a].filteredCount){R(a);break}}}},[o,O,V,L]);let G=(0,n.useMemo)(()=>{let e=p;return p?(e.match(/apartment/i)||(e+=" Apartments"),(null==s?void 0:s.name)&&e.length<25&&(e+=", ".concat(s.name))):e="Available Apartments",e},[p,null==s?void 0:s.name]),Q=(0,n.useMemo)(()=>{let e=null;if(_){let l=Math.abs(new Date-(0,v.Z)(_))/6e4;l<1440&&(l>=720&&(l=720),e=(0,f.Z)(l))}return e},[_]),K=(0,n.useMemo)(()=>{let e=[];return V[D]&&(e=Object.values(V[D].floorplans)).sort((e,l)=>e.listings[0].price-l.listings[0].price),e},[D,V]);(0,w.Z)(A);let ee=(0,y.Z)(M),el=i||U,ea=Object.values(F).filter(e=>null!=e).length>0||q&&q.length>=2;return(0,t.jsxs)(N.$,{children:[(0,t.jsx)("h1",{className:r()("mt-2","mb-1.5"),children:(0,t.jsx)("span",{className:r()("uppercase","text-xl","md:text-2xl",{loading:i},i?"text-transparent":"text-global-dark","leading-snug","tracking-wider"),children:G})}),(0,t.jsxs)("div",{className:"w-full text-xs md:text-sm uppercase tracking-widest min-h-[32px] flex items-center my-2",children:[k&&(0,t.jsx)(W,{className:"mr-2 shrink-0 whitespace-nowrap !h-8 !w-fit !text-sm",onClick:()=>{S(e=>!e)}}),el?(0,t.jsx)("span",{className:"text-transparent loading",children:"--- Apartments Available"}):(0,t.jsxs)("div",{className:"flex-grow flex flex-wrap",children:[ea&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"text-secondary whitespace-nowrap",children:"".concat(B," filtered")}),(0,t.jsx)("span",{className:"last:hidden",children:" | "})]}),(0,t.jsx)("span",{className:"whitespace-nowrap",children:"".concat(z," apartment").concat(1===z?"":"s"," available")}),(0,t.jsx)("span",{className:"last:hidden",children:" | "}),Q&&""!==Q&&(0,t.jsxs)("span",{className:"whitespace-nowrap",children:["Updated\xa0",(0,t.jsx)("strong",{className:"text-global-dark",children:Q}),"\xa0ago"]})]})]}),(0,t.jsx)(C,{activeBed:D,categorizedUnits:V,canSeeUnitDetail:null==Z?void 0:Z.canSeeUnitDetail,onClick:e=>{R(parseFloat(e))},searchRegex:q,onInputChange:e=>{let{value:l}=e.target,a=l.trim();""===a?T(null):T(a)}}),(0,t.jsx)("div",{ref:M,className:"pt-6",children:(0,t.jsx)("div",{className:"w-full h-[480px] overflow-y-auto relative",children:el?(0,t.jsx)(j.Z,{transparent:!0}):B>0&&o?(0,t.jsx)("div",{className:r()("w-full","grid","sm:grid-cols-[repeat(auto-fill,_minmax(390px,_1fr))]","gap-6"),children:K.map(e=>(0,t.jsx)("div",{className:"",children:(0,t.jsx)(H,{permission:Z,buildingID:o,slug:m,buildingName:p,floorplanName:e.floorplanName,floorplanImages:e.floorplanImages,selectedUnitID:O,units:e.listings,canSeeUnitDetail:null==Z?void 0:Z.canSeeUnitDetail,isModal:k,openGallery:ee})},e.key))}):(0,t.jsx)("div",{className:"w-full text-center text-global-light/80 py-5 top-1/2 -translate-y-1/2 absolute",children:"No Apartments Available"})})}),k&&(0,t.jsx)($,{regionObj:s,toggled:A,onClose:()=>{S(!1)}})]})};Q.propTypes={permissionProps:s().object,loading:s().bool,regionObj:s().shape({name:s().string}),slug:s().string,buildingID:s().string,buildingName:s().string,targetBedroom:s().number,listingsUpdatedAt:s().instanceOf(Date),isModal:s().bool};var K=Q},44013:function(e,l,a){a.d(l,{default:function(){return h}});var t=a(57437),n=a(2265),i=a(41448),s=a.n(i),o=a(49087),r=a(63129),c=a(13492),d=a(70174);let u=e=>{let l=null;if(e instanceof Date){let a=new Date-e,t=Math.floor(a/6e4),n=Math.floor(a/36e5),i=Math.floor(a/864e5);if(t<60)l="".concat(t," min").concat(t<=1?"":"s");else if(n<=24)l="".concat(n," hour").concat(n<=1?"":"s");else{if(!(i<=7))return null;l="".concat(i," day").concat(i<=1?"":"s")}}return l};var m=function(){let e,{name:l,region:a,address:t,property_type:n,listing_count:i,aggregatePrice:s,neighborhood:r,amenities:m,pets:p,rating:g}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},h=[],v=l||t;if(!v)return[];if(null==i?void 0:i.available_count){let e,l="";if(null==i?void 0:i.updated_at){let e=u((0,c.Z)(null==i?void 0:i.updated_at),{includeDays:!0});e&&(l=", as of ".concat(e," ago"))}e=(null==i?void 0:i.available_count)===1?"is ".concat(i.available_count," unit"):(null==i?void 0:i.available_count)?"are ".concat(null==i?void 0:i.available_count," units"):"are currently no units",h.push({question:"How many units are available at ".concat(v,"?"),answer:"There ".concat(e," available at ").concat(v).concat(l,".")})}if(!(0,o.Z)(s)){let e="",l={0:"studio",.5:"convertible",1:"1-bedroom",2:"2-bedroom",3:"3-bedroom"},a=Object.keys(s).sort((e,l)=>e-l);a.forEach((t,n)=>{let i=s[t].avgPrice;if(!i)return;let o=i.toLocaleString();0===n?e+="The ":n===a.length-1&&n>0?e+=", and the ":e+=", the ",e+="average price of a ".concat(l[t]," apartment at ").concat(v," is $").concat(o," per month")}),e&&(e+=" (Average price is calculated using the latest three months of rates)."),h.push({question:"What is the average price at ".concat(v,"?"),answer:e})}if((null==r?void 0:r.neighborhood_name)&&h.push({question:"What neighborhood is ".concat(v," in?"),answer:"".concat(v," is located in the ").concat(r.neighborhood_name," neighborhood of ").concat(a,".")}),null==i?void 0:i.updated_at){let e=(0,c.Z)(null==i?void 0:i.updated_at),l=new Date;if(e>new Date(l.getFullYear(),l.getMonth(),l.getDate()-7)){let l=u(e);h.push({question:"When were prices and availability last updated?",answer:"Prices & availability for ".concat(v," were updated ").concat(l," ago.")})}}if(m){let e;let l=[];m.laundry_room&&l.push("on-site laundry facilities"),m.dry_cleaning&&l.push("concierge dry cleaning services"),m.inunit_wd?(e="Yes, apartments at ".concat(v," come equipped with in-unit washers & dryers"),1===l.length?e+=" as well as ".concat(l[0]):2===l.length&&(e+=", ".concat(l[0],", and ").concat(l[1]))):(e=!1===m.inunit_wd?"No, apartments at ".concat(v," do not have in-unit laundry"):"It is unclear if apartments at ".concat(v," have in-unit laundry"),l.length&&(e+=", however, the building does have",1===l.length?e+=" ".concat(l[0]):2===l.length&&(e+=" ".concat(l[0]," and ").concat(l[1])))),e+=".",h.push({question:"Does ".concat(v," have in-unit laundry?"),answer:e})}let f=(0,d.Z)(a);h.push({question:"Can I see a model or tour ".concat(v,"?"),answer:"Yes! You can reach out here to get in touch with a ".concat(f.toLowerCase()," and see virtual tours, videos of specific units, and get more information on individual units.")});let x="";if((null==g?void 0:g.reviews_count)?(e=(null==g?void 0:g.reviews_count)===1?"1 review":"".concat(null==g?void 0:g.reviews_count," reviews"),g.average_rating&&(x=", with a total score of ".concat(g.average_rating," / 5 stars"))):e="no reviews at this time",h.push({question:"Does ".concat(v," have good reviews?"),answer:"".concat(v," has ").concat(e," on our site").concat(x,".")}),p){let e,l;let a="Rental"===n,t=" However, you should confirm with each individual unit.";p.cats_allowed?(e="Yes, ".concat(v," ").concat(a?"":"generally ","allows cats."),a||(e+=t)):e=!1===p.cats_allowed?"No, ".concat(v," does not allow cats."):"It is unclear if ".concat(v," allows cats, please reach out to a Locator and we’d be happy to find out for you!"),h.push({question:"Does ".concat(v," allow cats?"),answer:e}),p.dogs_allowed?(l="Yes, ".concat(v," ").concat(a?"":"generally ","allows dogs."),a||(l+=t)):l=!1===p.dogs_allowed?"No, ".concat(v," does not allow dogs."):"It is unclear if ".concat(v," allows dogs, please reach out to a Locator and we’d be happy to find out for you!"),h.push({question:"Does ".concat(v," allow dogs?"),answer:l})}if(null==m?void 0:m.pet_park){let e="Yes, ".concat(v," has a dog run");m.dog_spa&&(e+=" and a dog spa"),e+=".",h.push({question:"Does ".concat(v," have a dog run or a dog park?"),answer:e})}return h},p=a(82213);let g=e=>{let{building:l}=e,a=(0,n.useMemo)(()=>m(l),[null==l?void 0:l._id]);return(0,o.Z)(a)?null:(0,t.jsxs)(p.$,{className:"!pb-0",children:[(0,t.jsx)(p.H2,{children:"Frequently Asked Questions"}),(0,t.jsx)("div",{className:"w-full",children:a.map((e,l)=>{let{question:a,answer:n}=e;return(0,t.jsx)(r.default,{index:l,initialToggled:0===l,question:a,answer:n},a)})})]})};g.propTypes={building:s().object};var h=g},12106:function(e,l,a){var t=a(57437);a(2265);var n=a(41448),i=a.n(n),s=a(83135),o=a(84645),r=a(82213);let c=e=>{let{region:l}=e,a=(0,s.A)({region:l});return(0,t.jsxs)(r.$,{children:[(0,t.jsx)(r.H2,{children:"From The Blog"}),(0,t.jsx)(o.Z,{posts:a})]})};c.propTypes={region:i().string},l.default=c},21840:function(e,l,a){a.d(l,{default:function(){return y}});var t=a(57437);a(2265);var n=a(41448),i=a.n(n),s=a(9772),o=a.n(s),r=a(49087),c=a(73879),d=a(24524),u=a(33997).default,m=a(82213),p=a(87520),g=a(2598);let h=e=>{let{image:l,link:a,title:n,height:i,width:s,className:r,titleClassName:c,imageProps:d}=e;return(0,t.jsx)(g.Z,{to:a,className:o()(["relative","block","border",r]),children:(0,t.jsxs)("div",{className:o()("flex","h-full","justify-start","items-center","group","relative"),children:[(0,t.jsx)(p.Z,{className:"h-full w-full object-cover",src:l,imageProps:d,height:i,width:s,alt:n}),(0,t.jsx)("div",{className:"flex h-full w-full justify-center absolute bg-black/30 ease-in-out duration-500 hover:bg-black/0"}),(0,t.jsx)("div",{className:o()("flex","absolute","bottom-0","left-0","right-0","px-5","z-10","pb-6","overflow-hidden","text-white","text-xl","font-heading","tracking-widest","uppercase",c),children:n})]})})};h.propTypes={image:i().string.isRequired,title:i().oneOfType([i().string,i().node]).isRequired,link:i().string.isRequired,height:i().number,width:i().number,className:i().string,titleClassName:i().string,imageProps:i().object};var v=a(55297),f=a(65011);let x=e=>{let{isModal:l,className:a,state:n,region:i,city:s,slug:o,name:r,address:c,...d}=e,u=null!=r?r:c,m=(0,v.Z)({state:n,city:s,region:i,slug:o,isModal:l}),p=(0,f.Z)(d);return(0,t.jsx)(h,{className:a,title:u,link:m,image:p,imageProps:{alt:u},height:250})};x.propTypes={isModal:i().bool,className:i().string,state:i().string,city:i().string,region:i().string,slug:i().string,name:i().string,address:i().string};let b={"(min-width: 600px)":{slides:{perView:2,spacing:32}},"(min-width: 900px)":{slides:{perView:3,spacing:32}},"(min-width: 1200px)":{slides:{perView:4,spacing:32}}},j=e=>{let{buildingID:l,isModal:a}=e,{data:n,isLoading:i}=(0,c.a)(["buildingsNearby",{buildingID:l}],d.Yu,{enabled:!!l,revalidateOnFocus:!1});if(!l)return null;let s="h-[250px]";return i||(0,r.Z)(n)?null:(0,t.jsxs)(m.$,{className:"!pb-20",children:[(0,t.jsx)(m.H2,{children:"Similar Apartments"}),(0,t.jsx)("div",{className:o()("relative","px-3",s),children:(0,t.jsx)(u,{items:n.map(e=>(0,t.jsx)(x,{className:s,isModal:a,...e},e.slug)),sliderProps:{loop:!0,spacing:32,slidesPerView:1,breakpoints:b},arrowNav:!0,buttonNav:!0})})]})};j.propTypes={buildingID:i().string,isModal:i().bool};var y=j},57118:function(e,l,a){var t=a(57437),n=a(2265),i=a(41448),s=a.n(i),o=a(9772),r=a.n(o),c=a(53681),d=a(8780),u=a(44855),m=a(49087),p=a(58362),g=a(93130),h=a(55297),v=a(43336),f=a(62520),x=a(52380),b=a(62537),j=a(87753);let y=e=>{var l;let{region:a,building:i,unit:s,isModal:o=!1}=e,{pathname:y,params:w,searchParams:N}=(0,g.TH)(),_=(0,g.tv)(),k=(0,u.Oy)(),C=(0,p.Z)(k),Z=(0,d.I0)(),I=(0,d.oR)(e=>{var l;return null===(l=e.building)||void 0===l?void 0:l.infoModalToggled}),{isGuest:D,isClient:R,isActiveClient:q,isActiveStaff:T}=C,A=q||T,S=R&&!q,M=!!(null==N?void 0:N.unit)||!!(null==w?void 0:w.unitID);return((0,n.useEffect)(()=>{A&&(M&&!I?Z(d.lX.toggleInfoModal(!0)):!M&&I&&Z(d.lX.toggleInfoModal(!1)))},[M,A]),!M&&!D&&!S&&!(T&&!M)||T&&!M&&!(null==i?void 0:i.phoneNumber)&&(0,m.Z)(null==i?void 0:i.management)&&(0,m.Z)(null==i?void 0:i.schedule)&&(0,m.Z)(null==i?void 0:i.invoice)&&(0,m.Z)(null==i?void 0:i.newLinks))?null:(0,t.jsx)(c.Z,{in:I,appear:!0,timeout:150,classNames:"fade",children:(0,t.jsxs)("div",{className:r()("hidden","grow-0","shrink-0","duration-150","mx-auto","max-lg:right-3","max-lg:left-3","max-lg:z-1050","max-lg:fixed","max-lg:max-w-[600px]","lg:!flex","lg:!opacity-100","lg:!visible","lg:self-start","lg:sticky","lg:w-[508px]","lg:mt-[22px]","lg:pl-8","top-3","sm:top-8","md:top-10","lg:top-[40px]",{"lg:top-[40px]":o&&!A},{"lg:top-[24px]":o&&A},{"lg:top-[80px]":!o}),children:[(0,t.jsxs)("div",{className:r()("relative","w-full","max-h-[calc(100vh_-_105px)]","overflow-y-auto","max-lg:bg-global","lg:bg-global-light","shadow","border"),children:[A?M&&!(0,m.Z)(s)?(0,t.jsx)(b.Z,{buildingID:null==i?void 0:i._id,region:null==i?void 0:i.region,state:null==i?void 0:i.state,unitID:s._id,unitNumber:s.unit_number,price:s.price,status:s.status,dateAvailable:s.date_available,bedrooms:s.bedrooms,bathrooms:s.bathrooms,squareFootage:s.square_footage,floorplanName:s.floorplan_display_name||s.floorplan_name,floorplanImage:s.floorplan,pricePrevious:s.price_previous,priceUpdatedAt:s.price_updated_at,listedAt:s.listed_at,links:s.links,oldVideoLink:s.videolink_floorplan,features:s.features,apiSource:s.api_source,accessNote:s.access_note,brokerNote:s.broker_note,unitCommission:s.concession,unitDescription:s.description}):null:(0,t.jsx)("div",{className:"py-8 px-6",children:S?(0,t.jsx)(x.Z,{className:"min-h-96",submitAction:"building".concat(o?"modal":"page")}):(0,t.jsx)(f.Z,{className:"min-h-[415px]",submitAction:"building".concat(o?"modal":"page"),userInfoTitle:"Get the best deals in ".concat(a)})}),T&&!M&&(0,t.jsx)(j.Z,{className:"max-md:hidden px-6 py-8",isRental:(null==i?void 0:i.property_type)==="Rental",phoneNumber:null==i?void 0:i.phoneNumber,schedule:null==i?void 0:i.schedule,management:null==i?void 0:i.management,invoice:null==i?void 0:i.invoice,links:null==i?void 0:i.newLinks,collectorUrl:null==i?void 0:null===(l=i.collector)||void 0===l?void 0:l.url})]}),(0,t.jsx)(v.PZ,{onClick:()=>{if(!(0,m.Z)(s)){let e=(0,h.Z)({pathname:y,searchParams:N,params:w,slug:i.slug,isModal:o});_.push(e,{scroll:!1})}Z(d.lX.toggleInfoModal(!1))},className:"lg:hidden absolute z-40 top-0 right-0 pt-2.5 pr-2.5 pl-1 pb-1"})]})})};y.propTypes={region:s().string,building:s().object,unit:s().object,isModal:s().bool},l.default=y},49915:function(e,l,a){var t=a(57437),n=a(2265),i=a(41448),s=a.n(i),o=a(9772),r=a.n(o),c=a(93130),d=a(2598),u=a(86605),m=a(17162),p=a(56597),g=a(55297),h=a(48666),v=a(66107);let f=e=>{let{className:l,buildingID:a,slug:i,unit:s,selected:o,canFavorite:f,isModal:x}=e,b=(0,c.TH)(),j=(0,c.tv)(),y=(0,g.Z)({...b,slug:i,unitID:s._id,isModal:x}),{starType:w}=(0,m.tk)({buildingID:a,unitID:s._id}),N=(0,n.useMemo)(()=>(0,h.Z)({unit:s}),[s]);return(0,t.jsx)(d.Z,{to:y,onClick:e=>(0,v.Z)({...b,unitID:s._id,slug:i,event:e,router:j,isModal:x}),className:r()(["text-global","hover:text-global","cursor-pointer"]),children:(0,t.jsx)(p.Z,{className:l,highlighted:null!=w,selected:o,unitNumber:s.unit_number,status:s.status,dateAvailable:s.date_available,price:s.price,squareFootage:s.square_footage,labels:N,iconElem:(0,t.jsx)(u.Z,{type:"unitListCard",buildingID:a,unitID:s._id,canFavorite:f})})})};f.propTypes={className:s().string,buildingID:s().string.isRequired,slug:s().string.isRequired,unit:s().object.isRequired,selected:s().bool,canFavorite:s().bool,isModal:s().bool},l.Z=f},55297:function(e,l,a){var t=a(25388),n=a(33368),i=a(49087),s=a(23240);let o=["clientID","searchID","saved-list","building","unit"],r=e=>{let l={};if((0,n.Z)(e)){let a=new Set(o);Object.keys(e).forEach(t=>{a.has(t)&&(l[t]=e[t])})}return l};l.Z=e=>{let{state:l,city:a,region:n,slug:o,unitID:c,pathname:d,params:u={},searchParams:m={},isModal:p}=e,g="",h="";if("/myaccount"===d)g=d;else{var v,f,x,b;let e=null!==(v=null==d?void 0:d.split("/"))&&void 0!==v?v:[],t=null!==(f=null!=l?l:null==u?void 0:u.state)&&void 0!==f?f:e.length>=2?e[1]:null,i=null!==(b=null!==(x=p?n:a)&&void 0!==x?x:p?null==u?void 0:u.region:null==u?void 0:u.city)&&void 0!==b?b:e.length>=3?e[2]:null;h=e.length>=4?e.slice(3).join("/"):p?"Apartments":"Apartment",g="/".concat(t,"/").concat(i.replace(/\s/g,"-"),"/").concat(h)}if(p?m.building=o:"Apartment"===h&&(g+="/".concat(o)),c){let e=(0,t.Z)(c);m.unit=e}else m.unit&&delete m.unit;let j=r(m);return(0,i.Z)(j)||(g+="".concat((0,s.Z)(j))),g}},66107:function(e,l,a){var t=a(96508),n=a(55297);l.Z=e=>{let{event:l,router:a,isModal:i,pathname:s,searchParams:o={},params:r={},slug:c,unitID:d}=e,u=!1,m=window.location.search,p=(0,t.Z)(m);if((null==p?void 0:p.unit)&&d===p.unit&&(u=!0),u){l.preventDefault();let e=(0,n.Z)({pathname:s,searchParams:o,params:r,slug:c,isModal:i});a.push(e,{scroll:!1})}}},52380:function(e,l,a){a.d(l,{Z:function(){return y}});var t=a(57437),n=a(2265),i=a(41448),s=a.n(i),o=a(9772),r=a.n(o),c=a(8780),d=a(73879),u=a(65865),m=a(92918),p=a(43336),g=a(26826),h=a(4158);let v=e=>{let{prefix:l,message:a,onSubmit:i}=e,[s,o]=n.useState("");return(0,t.jsxs)("div",{className:r()(["flex","flex-col","w-full","justify-center","items-center"]),children:[(0,t.jsx)(h.Ox,{children:"Ready to continue your search?"}),(0,t.jsxs)("div",{className:r()(["w-full","flex","flex-col","space-y-4","items-start","justify-start"]),children:[(0,t.jsx)("div",{className:"text-global-dark leading-relaxed",children:a}),(0,t.jsx)(g.gx,{id:"".concat(l?"".concat(l,"-"):"","miaclient-comment"),rows:2,onChange:e=>{let{value:l}=e.currentTarget;o(l)},value:s,className:"bg-white",inputClassName:"!border pt-8",label:"+ Do you have more to tell us?",placeholder:"Hi, I would like to continue my search!"})]}),(0,t.jsx)("div",{className:"w-full flex justify-center mt-6",children:(0,t.jsx)(p.zx,{size:"lg",color:"secondary",onClick:()=>{i({comment:s})},children:"Reactivate my account"})})]})};v.propTypes={prefix:s().string,message:s().oneOfType([s().string,s().node]),onSubmit:s().func};var f=a(47269);let x=e=>{let{className:l}=e;return(0,t.jsxs)("div",{className:r()(["flex","flex-col","justify-center","items-center",l]),children:[(0,t.jsx)(h.Ox,{children:"We're excited to reconnect!"}),(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{children:"You just took the right step towards a completely stress-free apartment search!"}),(0,t.jsx)("p",{children:"Our 1-on-1 approach continues with a phone consultation, so be on the lookout for a call or text!"})]}),(0,t.jsx)("div",{className:"w-full relative px-2",children:(0,t.jsx)(f.default,{lazy:!1,limit:8,buttonNav:!1,sliderProps:{loop:!0}})})]})};x.propTypes={className:s().string};var b=a(32578);let j=e=>{let{submitAction:l,onSubmit:a,className:i}=e,s=(0,c.I0)(),o=(0,c.oR)(e=>e.common.region),p=(0,c.oR)(e=>e.client),g=(0,c.oR)(e=>e.guest),h=(0,c.oR)(e=>e.guest.formSubmitted),[f,j]=(0,n.useState)(h?1:0);(0,n.useEffect)(()=>{h&&f<=0&&j(1)},[h]);let{data:y}=(0,d.a)(["agent",{agentID:null==p?void 0:p.agentID}],u.YZ,{enabled:!!(null==p?void 0:p.agentID),revalidateOnFocus:!1,staleTime:1/0}),w=null==y?void 0:y.active,N=(0,n.useMemo)(()=>{let e=(null==p?void 0:p.name)?p.name.split(/[ ]/)[0]:null;return(0,t.jsxs)("p",{children:["".concat(e?"Hey ".concat(e,", it's"):"It's"," been a while!"),"\xa0Your account has been paused due to inactivity.",(0,t.jsx)("br",{}),(0,t.jsx)("br",{}),"To reactivate your account and unlock full search features, simply click the button below.",(0,t.jsx)("br",{}),(0,t.jsx)("br",{}),"".concat(w?"Your agent ".concat(y.firstName," will"):"We'll"," reach out shortly!")]})},[null==y?void 0:y.firstName,w,null==p?void 0:p.name]);return(0,t.jsx)("div",{className:r()(i),children:(0,t.jsxs)(m.Z,{page:f,onPageChange:e=>{j(e)},children:[(0,t.jsx)(v,{prefix:l,message:N,onSubmit:e=>{let{comment:t}=e,n={region:o,name:p.name,email:p.email,submitAction:l,medium:"Repeat"},i="string"==typeof t?t.trim():"";i&&(n.comment=i),w&&(n.agentID=p.agentID),j(1),(0,b.MI)({values:n,dispatch:s,guest:g,formType:"miaform",submitAction:l,emailCampaign:!1}),a&&a(!0)}}),(0,t.jsx)(x,{})]})})};j.propTypes={submitAction:s().string,onSubmit:s().func,className:s().string};var y=j},62520:function(e,l,a){var t=a(57437);a(2265);var n=a(41448),i=a.n(n),s=a(9772),o=a.n(s),r=a(32578),c=a(92918),d=a(32806),u=a(81507),m=a(28031);let p=["region","userInfo","submitted"],g=e=>{let{submitAction:l,userInfoTitle:a,onSubmit:n,onPageChange:i,className:s,initialRegions:g,hideEmailCampaign:h=!1}=e,{values:v,setValues:f,regionOptions:x,controlledPage:b,onPageChange:j,onValueChange:y,onRegionChange:w,onSubmit:N}=(0,r.$_)({initialRegions:g,hideEmailCampaign:h,onPageChange:i,onSubmit:n,pages:p,submitAction:l,formType:"simpleForm"});return(0,t.jsx)("div",{className:o()(s),children:(0,t.jsxs)(c.Z,{page:b,onPageChange:j,children:[(0,t.jsx)(d.Z,{regionOptions:x,onValueChange:w,value:v.region}),(0,t.jsx)(u.Z,{prefix:l,onValueChange:y,values:v,setValues:f,onSubmit:N,title:a,buttonText:"Send Request",hideEmailCampaign:h}),(0,t.jsx)(m.Z,{values:v,region:v.region,hideSearchLink:!0})]})})};g.propTypes={submitAction:i().string,onSubmit:i().func,onPageChange:i().func,className:i().string,userInfoTitle:i().string,initialRegions:i().array,hideEmailCampaign:i().bool},l.Z=g},63129:function(e,l,a){var t=a(57437),n=a(2265),i=a(41448),s=a.n(i),o=a(9772),r=a.n(o),c=a(97966);let d=e=>{let{initialToggled:l=!1,question:a,answer:i,answers:s}=e,[o,d]=(0,n.useState)(l);return i||s?(0,t.jsxs)("div",{children:[(0,t.jsxs)("button",{type:"button",className:r()(["flex","justify-between","py-4","text-lg","md:text-xl","bold","text-global-dark","w-full","text-left","border-b"]),onClick:()=>{d(e=>!e)},children:[(0,t.jsx)("span",{children:a}),(0,t.jsx)("span",{className:"shrink-0",children:(0,t.jsx)(c.Z,{className:r()(["h-6","w-6","stroke-2","transition-transform","ease-linear","duration-150",{"rotate-180":o}]),down:!0})})]}),(0,t.jsx)("div",{className:r()(["text-global","text-left","leading-relaxed","overflow-hidden",{"max-h-none":o,"max-h-0":!o}]),children:(0,t.jsx)("div",{className:"pt-5 pb-8 text-[15px] border-b",children:s?s.map(e=>(0,t.jsx)("p",{className:"mb-4",children:e},e)):i})})]}):null};d.propTypes={initialToggled:s().bool,question:s().string.isRequired,answer:s().string,answers:s().arrayOf(s().string)},l.default=d},74840:function(e,l,a){var t=a(2265);l.Z=e=>{(0,t.useEffect)(()=>{"undefined"!=typeof document&&(e?document.body.classList.add("max-md:overflow-hidden"):document.body.classList.remove("max-md:overflow-hidden"))},[e])}},70174:function(e,l,a){var t=a(18812);l.Z=e=>e&&e in t.A5?t.A5[e]:t.A5.default}}]);