PageSourceSearch

https://cdn2.yalemedicine.org/build/5637.es2015.fd1e26f9e00f57187f1e.js

js yalemedicine.org collected 2026-09-24 08:32:18 UTC 3,069 bytes, 1 lines download raw bytes

1"use strict";(globalThis.__LOADABLE_LOADED_CHUNKS__||=[]).push([[5637],{67883(v,m,s){const n=new Intl.NumberFormat("en-US");function e(g){return n.format(g)}const h={format:e};s.d(m,["A",0,h])},78950(v,m,s){s.r(m),s.d(m,{default:()=>F});var n=s(92422),e=s(47478),h=s(22876),g=s.n(h),x=s(11226),u=s(4420),A=s(37880),L=s(67640),f=s(76480),C=s(93516),I=s(56972),T=s(70874),y=s(35280),j=s(67883),B=s(45990),E=s(60033),M=s(45248),S=s(54783),z=s(32355),D=s(38984);function O({location:t}){const{name:l,url:d,address:c}=t,{title:i,buildingName:a,streetInfo:r,locationInfo:o}=u.A.getAddressDisplayInfo(c),P=S.A.joinNonEmpty(" ",i!==l?i:null,a!==i?a:null,r,o);return(0,n.jsx)("article",{className:"location-listing-card",children:(0,n.jsxs)(z.A,{href:d,className:"location-listing-card__link",children:[(0,n.jsx)("span",{className:"location-listing-card__icon-container",children:(0,n.jsx)(M.A,{className:"location-listing-card__icon",icon:D.A})}),(0,n.jsxs)("div",{className:"location-listing-card__content",children:[(0,n.jsx)("span",{className:"location-listing-card__title",children:l}),(0,n.jsxs)("address",{className:"location-listing-card__address",children:["Address: ",P]})]})]})})}const N=4;function H({locations:t}){const[l,d]=(0,e.useState)(!1),c=(0,e.useCallback)(()=>{d(!0)},[]),i=l?t:t.slice(0,N),a=!l&&t.length>N,r=`Showing ${j.A.format(i.length)} of ${j.A.format(t.length)} ${B.A.getName("Result",t.length)}`;return(0,n.jsxs)("div",{className:"location-city-card-list",children:[(0,n.jsx)("ul",{className:"location-city-card-list__list",children:i.map(o=>(0,n.jsx)("li",{className:"location-city-card-list__item",children:(0,n.jsx)(O,{location:o})},o.id))}),a&&(0,n.jsx)(E.Ay,{className:"location-city-card-list__show-more-button",label:"Show More",type:"button",onClick:c}),(0,n.jsx)("span",{className:"location-city-card-list__results-count-label",children:r})]})}function U(t,l){return{heading:t,content:(0,n.jsx)(H,{locations:l}),buttonAriaLabel:`Toggle ${t} locations`,panelAriaLabel:`${t} locations`,itemButtonClassName:"location-listing__accordion-button",itemPanelClassName:"location-listing__accordion-panel"}}function $(t,l){return{title:t,plainTextTitle:t,url:"",description:null,additionalInformationNode:(0,n.jsx)(L.A,{items:[U(t,l)]}),isLink:!1}}function F({data:t}){const{title:l,subtitle:d,locations:c}=t,i=(0,e.useMemo)(()=>{const a=g()(c,o=>u.A.getCityStateLabel(o.address)),r=Object.keys(a).map(o=>$(o,a[o]));return new y.A(r)},[c]);return(0,n.jsx)(C.A,{children:(0,n.jsxs)("section",{className:"location-listing","aria-label":"Locations Listing",children:[(0,n.jsxs)("div",{className:"location-listing__heading",children:[(0,n.jsx)(A.A,{zLayer:1,children:(0,n.jsx)(f.A,{className:"location-listing__title",children:l})}),(0,n.jsx)(A.A,{zLayer:2,children:(0,n.jsx)(x.A,{html:d,className:"location-listing__subtitle"})})]}),(0,n.jsx)("div",{className:"location-listing__content",children:(0,n.jsx)("div",{className:"location-listing__results",children:(0,n.jsx)(I.A,{model:i,colorMode:T.A.YaleBlue,isAlphabeticalPanelShown:!1})})})]})})}}}]);

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.