PageSourceSearch

https://www.fieldmuseum.org/_next/static/immutable/chunks/1098qm0jjpilk.js

js fieldmuseum.org collected 2026-09-24 08:29:42 UTC 8,450 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,89488,91613,e=>{"use strict";var t=e.i(91398),a=e.i(91788),l=e.i(59919);e.i(83973);var i=e.i(51243),r=e.i(41158),s=e.i(72043);e.i(45539);var d=e.i(5556),o=e.i(85552),n=e.i(58137),c=e.i(88503),u=e.i(53583);function m({item:e,enableDarkMode:a,enableSpecialCardView:l,cardInfoPosition:h,defaultImage:g,colorsData:p,additionalClasses:x="",now:f}){let{card:b,externalLink:j}=e,_=!!b,y=b?.title||j?.title,v=b?.subtitle,w=b?.thumbnail||b?.lpBannerImage||b?.heroImage||j?.image||g,k=b?.__typename,N=j?.externalLink||_&&(0,n.getCardLink)({typename:k,slug:b?.slug,type:b?.type,seriesSlug:b&&"eventSeries"in b?b.eventSeries?.slug:void 0})||"",C=b?.type,S=b?.location,I="museum"===S?"Field Museum":"custom"===S?b?.customLocationName:S,T=b?.metadata?.[0]?.label||I,D=b?.openDate,L=b?.closeDate,z="ExhibitionFlyerRecord"===k,R=(0,u.requiresTicket)(b?.ticketed)||z&&"3D Movie"===C,{color:A,isSpecial:$}=(0,c.getCardColor)(b?.colorOptions,p);b?.__typename==="ProjectNarrativeRecord"&&(N=(0,n.getProjectNarrativeLink)(b?.pathType,b?.slug));let P=!!j;return(0,t.jsx)("div",{className:(0,s.default)(`${x} card${l?" card__animated":""}`,{[`card-${h}`]:!!h&&!l,"card--reverse-mode":!!a}),...A?{style:{"--card-title-bg":A}}:{},children:(0,t.jsxs)(r.default,{href:N,className:"card__link","aria-label":`${y} - Card Link`,"data-testid":"link-element",children:[(0,t.jsxs)("div",{className:(0,s.default)("card__image-wrapper",{"card__image-wrapper__square":!!l}),children:[(0,t.jsx)(i.default,{image:w,className:"card__image"}),!!C&&(0,t.jsx)("div",{className:`card__type${A&&!$?" card__type-dark":""}`,children:C}),!l&&(A||p?.primaryBrandColour?.hex)&&(0,t.jsx)("span",{className:(0,s.default)("card__image-icon",{"card__image-icon-dark":A&&!$}),style:{backgroundColor:A||p?.primaryBrandColour?.hex},children:P?(0,t.jsx)(o.IconArrowTopRight,{color:"currentColor"}):(0,t.jsx)(o.IconArrowRight,{color:"currentColor"})})]}),(0,t.jsxs)("div",{className:(0,s.default)("card__title",{"card__title-colorful":A,"items-center":!!l}),children:[(0,t.jsxs)("div",{className:"grow",children:[(0,t.jsx)("h4",{className:"card__title-text",children:y}),_&&"ProjectNarrativeRecord"===k&&(0,t.jsx)("p",{className:"card__desc",children:v}),_&&(z||"EventSeriesRecord"===k)&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("p",{className:"card__desc",children:(0,t.jsx)(d.default,{openDate:D,closeDate:L,now:f})}),!!T&&(0,t.jsx)("div",{className:"card__meta",children:T})]})]}),R?(0,t.jsx)("span",{className:"px-2 py-5",children:(0,t.jsx)(o.IconTicket,{color:a?"#fff":void 0})}):l?(0,t.jsx)("span",{className:"card__icon",children:P?(0,t.jsx)(o.IconArrowTopRight,{color:"currentColor"}):(0,t.jsx)(o.IconArrowRight,{color:"currentColor"})}):null]})]})})}e.s(["default",0,m],91613),e.i(83803);var h=e.i(38147),g=e.i(81306),p=e.i(60120);e.i(3653);var x=e.i(18378),f=e.i(56707);e.s(["default",0,({id:e,layout:i="medium",heading:r,headingSubtext:d,cards:o=[],collectionItems:n=[],defaultContentImage:c,externalLink:u=[],linkWithTitle:b,showAsSlider:j=!0,enableDarkMode:_,enableSpecialCardView:y,cardInfoPosition:v,title:w,link:k,extraLink:N,isTransparent:C=!1,swiperOptions:S={},swiperBPDesktopOptions:I={},defaultIndents:T="",externalFeaturedCard:D})=>{let L=(0,a.useContext)(l.AppContext),z=L?.siteWideData?.museumInformation,R=new Date(L.alerts.serverTimeISO),{width:A}=(0,f.useWindowSize)(),$=A>=1024,P=e.replace(/[^a-zA-Z0-9_-]/g,"-"),B=`featured-horizontal-item-${P}`,E=n?.length>0?n?.length?n.map(e=>{let t=e.iconicCollectionItem?.thumbnail??e.imageOverride??null,a=e.iconicCollectionItem?.slug?`/collection-item-iconic/${e.iconicCollectionItem.slug}`:e.guid?`/collection-item/${e.guid}`:"#";return{id:e.id,title:e.title,subtitle:e.subtitle,image:t,externalLink:a}}):[]:o;D&&o?.length&&(o=o.filter(({id:e})=>![D].some(t=>t.id===e)));let M=[...D?[{...D,additionalClasses:`${B}`}]:[],...E,...u],O="medium"===i?3:"large"===i?2:4,[V,G]=(0,a.useState)(O),H=!j&&M.length>O&&V<M.length,q=j?M:M.slice(0,V),F=w||r,K=D?{slidesPerGroup:1}:{},U=(0,a.useMemo)(()=>q?.map((e,a)=>{let l=a>=o.length?{externalLink:e,card:null}:{card:e,externalLink:null},i=e.additionalClasses||"";return(0,t.jsx)(m,{item:l,defaultImage:c,enableSpecialCardView:y,enableDarkMode:_,cardInfoPosition:v,colorsData:z,additionalClasses:i,now:R},a)}),[v,o.length,q,z,c,_,y]);return((0,a.useEffect)(()=>{let e=document.querySelector(`.${B}`);e&&($&&j?e.classList.add("opacity-0"):e.classList.remove("opacity-0"))},[$,j]),M.length)?(0,t.jsxs)("div",{"data-testid":"main-wrapper",className:(0,s.default)(`${T||"base-y-block-indents"}
1 horizontal-card-stack`,{"p-16 md:p-40 radius-xl md:radius-2xl":!C,"bg-white":!C&&!_,"bg-natural-950":!C&&!!_}),children:[(0,t.jsxs)("div",{className:`${F||j||k?.url||b||d?"mb-16 md:mb-40":""}`,children:[(0,t.jsxs)("div",{className:"grid grid-flow-col justify-between gap-8",children:[F&&(0,t.jsx)("h2",{className:(0,s.default)("h2",{"text-white":!!_}),"data-testid":"heading",children:F}),(0,t.jsxs)("div",{className:"grid grid-flow-col content-start gap-8 lg:gap-16",children:[j&&(0,t.jsx)(g.HorizontalSwiperNav,{blockId:e,isLightMode:_}),(k?.url||b)&&(0,t.jsx)(x.default,{block:{id:"horizontal-button-desktop",arrowExist:!0,buttonIconType:"Arrow Right",buttonStyle:_?"Tertiary Light":"Secondary Dark",label:k?.title||b?.title,url:k?.url||b?.url},additionalClasses:"hidden md:flex"}),N?.url&&(0,t.jsx)(x.default,{block:{id:"horizontal-button-extra-desktop",arrowExist:!0,buttonIconType:"Arrow Right",buttonStyle:_?"Tertiary Light":"Secondary Dark",label:N?.title,url:N?.url},additionalClasses:"hidden md:flex"})]})]}),d&&(0,t.jsx)("div",{className:"mt-8 md:mt-16",children:(0,t.jsx)("p",{className:(0,s.default)({"text-white":!!_}),children:(0,p.default)(d)})})]}),j?(0,t.jsxs)("div",{className:"relative",children:[D&&(0,t.jsx)("div",{className:"absolute top-0 left-0 z-2 w-full h-full pointer-events-none hidden lg:block","aria-hidden":!0,children:(0,t.jsx)("div",{className:"py-3 h-full",children:(0,t.jsx)("div",{className:(0,s.default)("grid pointer-events-none h-[calc(100%-16px)] gap-16",{"grid-cols-3":"medium"===i,"grid-cols-2":"large"===i,"grid-cols-4":"small"===i}),children:(0,t.jsx)("div",{className:(0,s.default)("pointer-events-auto",{"bg-white shadow-[0_0_0_8px_#fff]":!C&&!_,"bg-natural-950 shadow-[0_0_0_8px_#1a1c1f]":!C&&!!_}),children:(0,t.jsx)(m,{item:{card:D},defaultImage:c,enableSpecialCardView:y,enableDarkMode:_,cardInfoPosition:v,colorsData:z,now:R})})})})}),(0,t.jsx)(h.default,{blockId:e,defaultIndents:"no-indents",isContentful:!0,isCustomNav:!0,isLightMode:_,isBottomAlign:"top"===v||"plain"===v,swiperOptions:{spaceBetween:16,autoplay:!1,slidesPerView:1.1,breakpoints:{768:{slidesPerView:2,...K},1024:{slidesPerView:"medium"===i?3:"large"===i?2:4,...I,...K}},...S,...K},children:U})]}):(0,t.jsx)("div",{className:(0,s.default)("grid","medium"===i?"lg:grid-cols-3 md:grid-cols-2":"large"===i?"md:grid-cols-2":"lg:grid-cols-4 md:grid-cols-2",{"gap-8 md:gap-16":!C,"gap-16":C}),children:U}),H&&(0,t.jsx)("div",{className:"grid justify-items-center mt-16 md:mt-40",children:(0,t.jsx)("button",{onClick:()=>G(V+O),className:(0,s.default)("px-23 py-15 w-full md:w-auto justify-center",{"btn-secondary-dark":!_,"btn-tertiary-light":_}),children:"View more"})}),(k?.url||b)&&(0,t.jsx)(x.default,{block:{id:"horizontal-button-desktop",arrowExist:!0,buttonIconType:"Arrow Right",buttonStyle:_?"Tertiary Light":"Secondary Dark",label:k?.title||b?.title,url:k?.url||b?.url},additionalClasses:"md:hidden flex mt-16"}),N?.url&&(0,t.jsx)(x.default,{block:{id:"horizontal-button-extra-desktop",arrowExist:!0,buttonIconType:"Arrow Right",buttonStyle:_?"Tertiary Light":"Secondary Dark",label:N?.title,url:N?.url},additionalClasses:"md:hidden flex mt-16"})]}):null}],89488)},5347,e=>{"use strict";e.i(50846);var t=e.i(89488),a=e.i(99421);e.s(["HorizontalCardStackStyleGuide",()=>a.HorizontalCardStackStyleGuide,"default",()=>t.default])},58742,function(e){e.n(e.i(5347))},50846,99421,e=>{"use strict";e.i(89488);var t=e.i(91398),a=e.i(91613);e.s(["HorizontalCardStackStyleGuide",0,function({stacks:e}){if(!e?.[0]?.cards)return null;let l=e[0].cards;return(0,t.jsx)("div",{className:"container",children:(0,t.jsx)("ul",{className:"row my-0 p-0 d-flex flex-wrap horizontal-stack__card-list",children:l.map((e,l)=>(0,t.jsx)(a.default,{item:{card:e}},l))})})}],99421),e.s([],50846)}]);

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.