PageSourceSearch

https://www.hbs.edu/_next/static/chunks/6607.2563628f105b0bb0.js

js hbs.edu collected 2026-09-24 07:34:09 UTC 4,851 bytes, 2 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6607],{46607:(e,s,i)=>{"use strict";i.r(s),i.d(s,{ContentfulHomePage:()=>x});var a=i(6029);i(73588);var t=i(31008),l=i(78333);function n(e){let{topper:s,children:i,footer:n,header:r}=e;return(0,a.jsx)(t.Y,{className:"hbs-page hbs-home-page",footer:n,header:r,"data-theme":"white",children:(0,a.jsxs)("main",{id:"skipto-main",tabIndex:-1,children:[s&&(0,a.jsx)(l.MissionTopper,{...s}),(0,a.jsx)("div",{className:"hbs-landing-page-body__wrapper",children:(0,a.jsx)("div",{className:"hbs-landing-page-body",children:(0,a.jsx)("div",{className:"hbs-landing-page-body__main",children:(0,a.jsx)("section",{className:"hbs-page-body hbs-landing-page-body__content",children:i})})})})]})})}var r=i(75922),d=i(61277),o=i(78678),c=i(28178),p=i(51747),h=i(65474),m=i(43154),u=i(30642);let x=(0,d.i)(e=>{let s,{entry:i}=e,{getEntry:t,site:l}=(0,u.U)(),d=t(i.fields.topper);return(0,p.I)("missionTopper",d)&&(s=(0,c.J)(d)),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(h.n,{entry:i.fields.seo}),(0,a.jsx)(n,{topper:s,header:{name:"SiteHeader",props:(0,r.L)(l)},footer:(0,o.v)(null==l?void 0:l.fields.footer),children:(0,a.jsx)(m.A,{entry:i})})]})})},49156:()=>{},73588:()=>{},78333:(e,s,i)=>{"use strict";let a;i.r(s),i.d(s,{MissionTopper:()=>h});var t=i(6029);i(49156);var l=i(55729),n=i(50212),r=i(56939),d=i(75621),o=i(30882),c=i(28207);let p="hbs-disable-hover";function h(e){var s,i,h,m;let{parts:u,defaultMedia:x,editAttributes:v}=e;Array.isArray(u)||(u=[]);let[b,j]=(0,l.useState)(null),_=(0,l.useRef)(null),f=(0,l.useRef)(null);x.image&&(x.image.loading="eager"),function(e,s,i){let{debounceDelay:a,...t}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},n=a?(0,r.s)(s):s;(0,l.useEffect)(()=>{if(i)return i.addEventListener(e,n,t),()=>i.removeEventListener(e,n)},[i,e,s,n,t])}("scroll",()=>{a&&clearTimeout(a);let e=_.current;e&&(e.classList.contains(p)||e.classList.add(p),a=setTimeout(()=>{e.classList.remove(p)},500))},window);let g=(0,l.useMemo)(()=>u.map((e,s)=>({partIndex:s,...e})).filter(e=>!!e.details),[u]),N=(0,l.useMemo)(()=>g[0],[g]),I=(0,l.useMemo)(()=>g[g.length-1],[g]),k=(0,l.useMemo)(()=>g.find(e=>e.partIndex===b),[g,b]),w=(0,l.useMemo)(()=>k?g.findIndex(e=>e.partIndex===k.partIndex):-1,[g,k]),y=e=>{let s="hbs-mission-topper__media-inner--fadeout",i=f.current;null==i||i.classList.add(s),setTimeout(()=>{j(e),null==i||i.classList.remove(s)},250)};return(0,t.jsx)("div",{className:"hbs-mission-topper hbs-topper-wrapper",ref:_,"data-theme":"white","data-region":"topper-mission",children:(0,t.jsxs)("div",{className:"hbs-mission-topper__content",children:[(0,t.jsx)("h1",{className:"hbs-global-visually-hidden",children:"Harvard Business School"}),(0,t.jsx)("div",{className:"hbs-mission-topper__title-wrapper",children:(0,t.jsx)("div",{...null==v?void 0:v.text,className:"hbs-mission-topper__title",children:(0,t.jsx)("span",{children:u.map((e,s)=>{let{details:i,text:a}=e;return(0,t.jsxs)("span",{children:[i?(0,t.jsx)("button",{className:(0,n.A)("hbs-mission-topper__has-details",s===b&&"hbs-mission-topper__has-details--active"),onClick:()=>y(s),"aria-label":a,"aria-description":"advance to this slide in the carousel",children:(0,t.jsx)("span",{children:a})}):(0,t.jsx)("span",{children:a}),s!==u.length-2&&" "]},s)})})})}),(0,t.jsxs)("div",{className:"hbs-mission-topper__media",children:[(0,t.jsxs)("div",{className:"hbs-mission-topper__media-controls",children:[(0,t.jsx)("button",{className:"hbs-mission-topper__media-control--left","aria-label":"Previous slide",onClick:()=>{if(!b&&I)return void y(I.partIndex);if(b===(null==N?void 0:N.partIndex))return void y(null);let e=g[w-1];e&&y(e.partIndex)},children:(0,t.jsx)(c.I,{name:"arrow"})}),(0,t.jsx)("button",{className:"hbs-mission-topper__media-control--right","aria-label":"Next slide",onClick:()=>{if(!b&&N)return void y(N.partIndex);if(b===(null==I?void 0:I.partIndex))return void y(null);let e=g[w+1];e&&y(e.partIndex)},children:(0,t.jsx)(c.I,{name:"arrow"})})]}),(0,t.jsx)("div",{className:"hbs-mission-topper__media-inner",ref:f,role:"region","aria-live":"polite",children:k?(0,t.jsxs)(t.Fragment,{children:[(null==(s=k.details)?void 0:s.media)&&(0,t.jsx)(o.Z,{...k.details.media}),(null==(i=k.details)?void 0:i.cta)&&(0,t.jsxs)("div",{className:"hbs-mission-topper__cta",children:[(0,t.jsx)("div",{...null==(h=k.details.cta.editAttributes)?void 0:h.text,children:k.details.cta.text}),(0,t.jsx)(d.l,{editAttributes:null==(m=k.details.cta.editAttributes)?void 0:m.linkText,className:"hbs-mission-topper__cta-link",href:k.details.cta.linkUrl,isSmall:!0,children:k.details.cta.linkText})]})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(o.Z,{...x}),(0,t.jsx)("div",{className:"hbs-global-visually-hidden",children:"Default topper image"})]})},b)]})]})})}}}]);
2//# sourceMappingURL=6607.2563628f105b0bb0.js.map

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.