PageSourceSearch

https://online.hbs.edu/_next/static/chunks/882-c9938fb5bea70403.js

js hbs.edu collected 2026-10-01 08:01:41 UTC 15,813 bytes, 2 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[882],{3525:(e,t,a)=>{"use strict";a.d(t,{K:()=>c});var s=a(6029),i=a(55729),l=a(50212),r=a(95544),n=a(5369);let c=(0,i.forwardRef)((e,t)=>{let{align:a,gravity:i,alt:c="",caption:d,className:o,aspectRatio:u,intrinsicAspectRatio:h,height:p="auto",hide:m,src:v,mobileWidth:b=600,loading:y="lazy",onError:g,width:f="100%",quality:_,editAttributes:j}=e,x=(0,n.qE)(e=>e.framework.Head),w={};(null==f?void 0:f.includes("px"))&&(w.width=parseInt(f.replace("px","")),w.width<b&&(b=w.width)),u?w.ratio=u.replace("/",":"):h&&(w.ratio=h.replace("/",":"),u=h),!u&&(null==p?void 0:p.includes("px"))&&(w.height=parseInt(p.replace("px",""))),i&&(w.gravity=i),_&&(w.quality=_);let N=(0,r.L)(v,w),L=(0,r.L)(v,{...w,width:b}),E="(max-width: 600px) ".concat(b,"px"),k="".concat(L," ").concat(b,"w, ").concat(N),P="center center";"west"===w.gravity&&(P="left"),"north"===w.gravity&&(P="top"),"east"===w.gravity&&(P="right"),"south"===w.gravity&&(P="bottom"),"center"===w.gravity&&(P="center"),"auto"===w.gravity&&(P="inherit");let R=!1,S=null!=u?u:h;if("number"==typeof S&&Number.isFinite(S)&&S>0)R=S<1;else if("string"==typeof S){let[e,t]=S.split("/").map(e=>Number(e));e&&t&&Number.isFinite(e)&&Number.isFinite(t)&&e>0&&t>0&&(R=t>e)}return(0,s.jsxs)(s.Fragment,{children:["eager"===y&&(0,s.jsx)(x,{children:(0,s.jsx)("link",{rel:"preload",as:"image",href:N,imageSrcSet:k,imageSizes:E})}),(0,s.jsxs)("figure",{className:(0,l.A)("hbs-media-asset hbs-media-asset--image",a&&"hbs-global-".concat(a),"hbs-media-asset--loaded",o,R&&"hbs-media-asset--vertical"),children:[(0,s.jsx)("span",{...null==j?void 0:j.src,className:"hbs-media-asset__wrapper",children:(0,s.jsx)("img",{alt:c,width:f,height:u?"auto":p,loading:y,src:N,srcSet:k,sizes:E,ref:t,onError:g,fetchpriority:"eager"===y?"high":"low",style:u?{aspectRatio:u,objectFit:"cover",objectPosition:P}:{}})}),!(null==m?void 0:m.caption)&&d&&(0,s.jsx)("figcaption",{children:(0,s.jsx)("span",{className:"hbs-media-asset__caption-text",children:d})})]})]})})},14751:()=>{},18737:(e,t,a)=>{"use strict";a.d(t,{U:()=>n});var s=a(6029);a(63571);var i=a(55729),l=a(95818),r=a(42744);function n(e){let{videoPath:t,media:a,caption:n}=e,c=(0,i.useRef)(null),{pushDataLayer:d}=(0,r.v)();return(0,i.useEffect)(()=>{let e=c.current;if(!e)return;let t=()=>{d({event:"video",event_data:{video_title:"livestream",video_type:"livestream"}})};return e.addEventListener("play",t),()=>{e.removeEventListener("play",t)}},[d]),(0,i.useEffect)(()=>{t?(0,l.k)("https://vjs.zencdn.net/7.11.4/video.min.js",{defer:!0}):console.warn("video.js script not loaded")},[t]),(0,i.useEffect)(()=>{let e=document.head.appendChild(Object.assign(document.createElement("link"),{rel:"stylesheet",href:"https://vjs.zencdn.net/7.11.4/video-js.css"})),t=document.querySelector(".hbs-topper.hbs-statistics-topper");return t&&t.classList.add("hbs-wowza-embed-topper"),()=>{document.head.removeChild(e)}},[]),(0,s.jsxs)("div",{className:"hbs-media-asset",children:[(0,s.jsxs)("video",{ref:c,id:"hbs-wowza-video",className:"video-js vjs-big-play-centered",controls:!0,preload:"none","data-setup":'{"suppressNotSupportedError": true}',poster:(null==a?void 0:a.src)||void 0,children:[(0,s.jsx)("source",{src:t,type:"application/x-mpegURL"}),(0,s.jsx)("p",{className:"vjs-no-js",children:"To view this video please enable JavaScript, and consider upgrading to a web browser that supports HTML5 video."})]}),(0,s.jsx)("figcaption",{children:(0,s.jsx)("span",{className:"hbs-media-asset__caption-text",children:(0,s.jsx)("div",{children:n})})})]})}},30882:(e,t,a)=>{"use strict";a.d(t,{Z:()=>g});var s=a(6029);a(14751);var i=a(3525),l=a(50212),r=a(55729),n=a(94264),c=a(96088);function d(e){let{align:t,descriptionVideo:a,descriptionImg:d,backupImage:o,caption:u,className:h,hide:p,inline:m=!0,autoplay:v=!0,src:b,mimeType:y,width:g="100%",aspectRatio:f,editAttributes:_}=e,[j,x]=(0,r.useState)(!1),[w,N]=(0,r.useState)(m&&v),L=(0,r.useRef)(null),E=(0,r.useRef)(null),k=(0,r.useRef)(null),P=(0,r.useRef)(null),R=(0,r.useRef)(null),S=function(){let[e,t]=(0,r.useState)(!1);return(0,r.useEffect)(()=>{let e=window.matchMedia("(prefers-reduced-motion)"),a=e=>t(e.matches);
1return e.addEventListener("change",a),t(e.matches),()=>e.removeEventListener("change",a)},[]),e}(),C=(0,r.useId)(),I=(0,l.A)("hbs-media-asset hbs-media-asset--video",t&&"hbs-global-".concat(t),j&&"hbs-media-asset--loaded",o&&"hidden with-backup-image",h),T=m&&{autoPlay:v,controls:!1,loop:!0,muted:!0,playsInline:!0};(0,r.useEffect)(()=>{let e=k.current;e&&v&&(S?e.pause():e.play())},[S]),(0,r.useEffect)(()=>{let e=L.current;function t(){let t=E.current,a=P.current;(null==e?void 0:e.classList.contains("hbs-media-asset--loaded"))||null==e||e.classList.add("hbs-media-asset--loaded"),(null==t?void 0:t.classList.contains("hbs-media-asset__wrapper"))||null==t||t.classList.add("hbs-media-asset__wrapper"),null==e||e.classList.remove("hidden"),null==a||a.classList.add("hidden")}!j||(null==e?void 0:e.classList.contains("hbs-media-asset--loaded"))||(x(!0),t()),(null==e?void 0:e.classList.contains("hbs-media-asset--loaded"))&&t()},[j,E,P]),(0,r.useEffect)(()=>{let e=()=>{let e=L.current;if(null==e?void 0:e.classList.contains("hbs-media-asset--loaded")){let t=E.current,a=P.current;(null==e?void 0:e.classList.contains("hbs-media-asset--loaded"))||null==e||e.classList.add("hbs-media-asset--loaded"),(null==t?void 0:t.classList.contains("hbs-media-asset__wrapper"))||null==t||t.classList.add("hbs-media-asset__wrapper"),null==e||e.classList.remove("hidden"),null==a||a.classList.add("hidden")}};return window.addEventListener("canplay",e),()=>window.removeEventListener("canplay",e)},[]);let A=e=>{e.stopPropagation();let t=k.current;t&&(t.paused?t.play():t.pause(),N(!t.paused))};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("figure",{className:I,ref:L,children:[(0,s.jsxs)("span",{...null==_?void 0:_.src,className:o?"media-span-wrapper":"hbs-media-asset__wrapper",ref:E,children:[(0,s.jsxs)("video",{id:"video-".concat(C),ref:k,width:g,poster:o,...a&&{"aria-describedby":"description-".concat(C)},...T,onCanPlay:()=>x(!0),onClick:A,style:f?{aspectRatio:f,objectFit:"cover",objectPosition:"center center"}:{},children:[(0,s.jsx)("source",{src:b,type:y}),(0,s.jsx)("p",{children:"Sorry, your browser doesn't support embedded videos."})]}),a&&(0,s.jsxs)("span",{className:"hbs-global-visually-hidden",id:"description-".concat(C),children:["Video of the following: ",a]}),(0,s.jsx)("button",{className:"hbs-media-asset__pause","aria-hidden":"true",onClick:A,children:w?(0,s.jsx)(n._,{className:"hbs-media-asset__pause-icon"}):(0,s.jsx)(c.A,{className:"hbs-media-asset__pause-icon"})})]}),!(null==p?void 0:p.caption)&&u&&(0,s.jsx)("figcaption",{className:"hbs-media-asset__caption",children:(0,s.jsx)("span",{className:"hbs-media-asset__caption-text",children:(0,s.jsx)("p",{children:u})})})]}),o&&(0,s.jsx)("span",{className:"backup-image",ref:P,children:(0,s.jsx)(i.K,{ref:R,src:o,width:g,alt:d})})]})}var o=a(27780),u=a(87161);a(72783);var h=a(95818),p=a(42744);function m(e){let{hide:t,caption:a,description:i,duration:n,entryId:c,title:d,withModal:o,className:m,threePlayId:v,threePlayProjectId:b}=e,y=(0,r.useId)().replace(/:/g,""),g=(0,r.useRef)(null),[f,_]=(0,r.useState)(null!=o&&o),{pushDataLayer:j}=(0,p.v)(),x=(0,r.useRef)(j),w=(0,r.useRef)(f),N="kaltura-player-".concat(c,"-").concat(y),L="threePlay-".concat(c),E="".concat(N,"_playBtn"),k=!!(v&&b),P=(0,r.useRef)(!1),R=(0,r.useRef)(null);return(0,r.useEffect)(()=>{x.current=j},[j]),(0,r.useEffect)(()=>{let e=null;if(f)return(0,h.k)(u.D3,{onload:()=>{var t;if(null==(t=g.current)||t.classList.add("hbs-global-visually-hidden"),window.KalturaPlayer)try{let t=document.getElementById(E);t&&(t.setAttribute("class","hbs-kaltura-play-button-hidden"),t.setAttribute("aria-disabled","true"));let a=document.getElementById(N);a&&(a.innerHTML=""),R.current=e=window.KalturaPlayer.setup({targetId:N,provider:{partnerId:"".concat(u.sd),uiconf_id:"".concat(u.Oi
1)}}),e.loadMedia({entryId:c}),e.title=d?"".concat(d," : ").concat(c):c,e.videoTargetId=N,"function"==typeof e.play&&e.play(),P.current=!0,function(e,t){let a=e.title||"Unknown Title",s=e.videoTargetId||"",i=[.01,.25,.5,.75,1],l=new Set;e.addEventListener(e.Event.PLAY,()=>{setTimeout(()=>{let e=document.querySelector("#".concat(s," .playkit-player"));e&&e.focus()},500)}),e.addEventListener(e.Event.TIME_UPDATE,()=>{let{currentTime:s,duration:r}=e;if(!r)return;let n=s/r;i.forEach(e=>{n>=e&&!l.has(e)&&(l.add(e),t({event:"video",event_data:{video_title:a,video_type:"recorded",video_duration:r,video_milestone:100*e}}))})})}(e,e=>x.current(e))}catch(e){console.error("Failed to embed Kaltura player:",e),_(!1),P.current=!1,R.current=null}}}),()=>{R.current&&"function"==typeof R.current.destroy&&(R.current.destroy(),R.current=null)}},[f,N,c,v,b,L]),(0,r.useEffect)(()=>{f||(()=>{let e=document.getElementById(N);if(e){let t=document.getElementById("".concat(N,"_playBtn"));t&&(t.style.display="block");let a=e.querySelector(".kWidgetCentered");a&&(a.style.display="block"),g.current&&g.current.classList.remove("hbs-global-visually-hidden")}})()},[f,N]),(0,r.useEffect)(()=>{var e;
1let t=null==(e=document.getElementById(N))?void 0:e.closest(".hbs-kaltura-embed"),a=()=>{_(!1),P.current=!1};return t&&t.addEventListener("resetKalturaPlayer",a),()=>{t&&t.removeEventListener("resetKalturaPlayer",a)}},[N]),(0,s.jsxs)("figure",{className:(0,l.A)("hbs-media-asset",m),children:[(0,s.jsxs)("div",{className:"hbs-kaltura-embed","data-chromatic":"ignore",children:[(0,s.jsx)("div",{className:"hbs-kaltura-embed__responsive-spacer"}),(0,s.jsx)("button",{onClick:()=>!0!==f&&_(!0),"aria-label":d?"Play ".concat(d," video"):"Play video content",className:"kWidgetCentered kWidgetPlayBtn",id:"".concat(N,"_playBtn")}),(0,s.jsx)("div",{id:N,className:"hbs-kaltura-embed__player",style:{width:"100%",height:"100%"},children:(0,s.jsx)("div",{style:{position:"relative",width:"100%",height:"100%"},children:(0,s.jsx)("img",{loading:"lazy",alt:"",className:"kWidgetCentered",src:"https://cdnsecakmi.kaltura.com/p/".concat(u.sd,"/thumbnail/entry_id/").concat(c,"/width/",650,"/type/1")})})}),!w.current&&(0,s.jsxs)("div",{className:"hbs-media-asset__kaltura-text",ref:g,children:[(0,s.jsx)("span",{className:"hbs-media-asset__kaltura-text-prompt","aria-hidden":"true",children:"Play"})," ",n&&(0,s.jsxs)("span",{className:"hbs-media-asset__kaltura-duration",children:[(0,s.jsx)("span",{className:"hbs-global-visually-hidden",children:"Video duration:"}),n]})]})]}),k&&(0,s.jsx)("div",{id:L,className:"hbs-threeplay-embed"}),i&&(0,s.jsx)("div",{className:"hbs-global-visually-hidden",children:i}),!(null==t?void 0:t.caption)&&a&&(0,s.jsx)("figcaption",{children:(0,s.jsx)("span",{className:"hbs-media-asset__caption-text",children:(0,s.jsx)("div",{children:a})})})]})}let v=(0,r.forwardRef)((e,t)=>{let{kaltura:a,className:i,aspectRatio:n,hide:c}=e,[d,h]=(0,r.useState)(!1),p="https://cdnsecakmi.kaltura.com/p/".concat(u.sd,"/thumbnail/entry_id/").concat(a.entryId,"/width/2000/type/1/quality/100"),v=n?{aspectRatio:n,objectFit:"cover",objectPosition:"center center"}:{},b=a.title?"Play ".concat(a.title," video"):"Play video content";return(0,s.jsxs)(o.bL,{open:d,onOpenChange:h,children:[(0,s.jsxs)("div",{className:(0,l.A)("hbs-media-asset__modal-trigger-wrapper",i),children:[(null==c?void 0:c.focusables)?(0,s.jsxs)("div",{className:"hbs-media-asset__modal-trigger",children:[(0,s.jsx)("img",{src:p,alt:"",loading:"lazy",style:v}),(0,s.jsx)("span",{className:"hbs-global-visually-hidden",children:b})]}):(0,s.jsxs)(o.l9,{ref:t,className:"hbs-media-asset__modal-trigger",children:[(0,s.jsx)("img",{src:p,alt:"",loading:"lazy",style:v}),(0,s.jsx)("span",{className:"hbs-global-visually-hidden",children:b})]}),(0,s.jsxs)("div",{className:"hbs-media-asset__kaltura-text",children:[(0,s.jsx)("span",{className:"hbs-media-asset__kaltura-text-prompt","aria-hidden":"true",children:"Play"})," ",a.duration&&(0,s.jsxs)("span",{className:"hbs-media-asset__kaltura-duration",children:[(0,s.jsx)("span",{className:"hbs-global-visually-hidden",children:"Video duration:"}),a.duration]})]})]}),(0,s.jsx)(o.ZL,{children:(0,s.jsx)(o.hJ,{className:"hbs-media-asset__modal-overlay",children:(0,s.jsx)(o.UC,{className:"hbs-media-asset__modal-content",children:(0,s.jsxs)("div",{className:"hbs-media-asset__modal-content-inner",children:[(0,s.jsx)(o.bm,{className:"hbs-media-asset__modal-content-close","aria-label":"Close popup",children:"✕"}),(0,s.jsx)(m,{...a})]})})})})]})});var b=a(87145),y=a(18737);let g=(0,r.forwardRef)((e,t)=>{let{className:a,hide:l,image:r,video:n,kaltura:c,embed:o,aspectRatio:u,wowzaEmbed:h}=e;return r?(0,s.jsx)(i.K,{aspectRatio:u,...r,hide:l,className:a}):n?(0,s.jsx)(d,{aspectRatio:u,...n,hide:l,className:a}):o?(0,s.jsx)(b.C,{...o,className:a}):h?(0,s.jsx)(y.U,{...h}):c?c.withModal?(0,s.jsx)(v,{aspectRatio:u,ref:t,kaltura:c,hide:l,className:a}):(0,s.jsx)(m,{...c,className:a}):null})},42744:(e,t,a)=>{"use strict";function s(){return{pushDataLayer:e=>{var t,a;null==(a=window)||null==(t=a.dataLayer)||t.push(e)}}}a.d(t,{v:()=>s})},63571:()=>{},72783:()=>{},87145:(e,t,a)=>{"use strict";a.d(t,{C:()=>l});var s=a(6029);a(95963);var i=a(50212);function l(e){let{align:t="center",type:a,src:l,aspectRatio:r=!0,width:n,height:c,title:d,className:o}=e,u=!r&&56.25,h="Podcast: ".concat(d);return n&&c&&r&&(u=c/n*100),(0,s.jsx)("div",{className:(0,i.A)(t&&"hbs-global-align-".concat(t),o,"hbs-embed-align-wrapper"),children:(0,s.jsx)("div",{className:(0,i.A)("hbs-embed-wrapper",r&&"hbs-embed-wrapper--aspect-ratio"),style:{paddingTop:"".concat(r?u:"0","%")},children:(0,s.jsx)("embed",{"data-chromatic":"ignore",className:"hbs-embed",type:a,src:l,width:r?"100%":n,height:r?"100%":c,title:d,"aria-label":h})})})}},87161:(e,t,a)=>{"use strict";a.d(t,{D3:()=>r,LO:()=>s,Oi:()=>l,sd:()=>i});let s={MOBILE:300,TABLET:600,DESKTOP:1024,DESKTOP_LG:1200,DESKTOP_XL:1340},i=1423662,l=0x360d406,r="https://cdnapisec.kaltura.com/p/".concat(i,"/embedPlaykitJs/uiconf_id/").concat(l)},95544:(e,t,a)=>{"use strict";function s(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)return"";if(e.startsWith("//")&&(e="https:"+e),!e.startsWith("http")||e.includes(".chromatic.")||e.includes("hbs-design-system.netlify.app")||e.includes("designsystem.hbs.edu")||e.includes("/api/authapi/photos/"))return e;let a=encodeURIComponent(e),s="f_"+(t.format||"webp"),i="c_fill";t.crop&&(i="c_".concat(t.crop));let l="q_auto";if(t.quality){let e=Number(t.quality);l=isNaN(e)?t.quality.toString():"q_".concat(e)}let r=[l];return(t.width||t.height||t.ratio)&&r.push(i),"Left"===t.gravity&&(t.gravity="west"),"Top"===t.gravity&&(t.gravity="north"),"Right"===t.gravity&&(t.gravity="east"),"Bottom"===t.gravity&&(t.gravity="south"),"Center"===t.gravity&&(t.gravity="center"),"Auto"===t.gravity&&(t.gravity="auto"),t.width&&r.push("w_".concat(t.width)),t.height&&r.push("h_".concat(t.height)),t.rotate&&r.push("a_".concat(t.rotate)),t.ratio&&r.push("ar_".concat(t.ratio)),t.gravity&&r.push("g_".concat(t.gravity)),t.opacity&&r.push("o_".concat(t.opacity)),t.zoom&&r.push("z_".concat(t.zoom)),"https://cloudinary.hbs.edu/hbsit/image/fetch/".concat(r.join(","),"/").concat(s,"/").concat(a)}a.d(t,{L:()=>s})},95818:(e,t,a)=>{"use strict";function s(e,t){if(!e)return;let{type:a,onload:s,allowDuplicates:i,dataTarget:l,defer:r,dataQpTargetId:n}=t||{};if(!document.querySelector("script[src='".concat(e,"']"))||i){let t=document.createElement("script");return t.src=e,a&&(t.type=a),s&&(t.onload=s),l&&(t.dataset.target=l),n&&t.setAttribute("data-qp-target-id",n),r&&(t.defer=r),document.head.appendChild(t),t}s&&s()}a.d(t,{k:()=>s}),a(55729)},95963:()=>{}}]);
2//# sourceMappingURL=882-c9938fb5bea70403.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.