1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1541],{2043:(e,t,l)=>{l.d(t,{ie:()=>a,nk:()=>s});var i=l(911),r=l(13403),n=l(40980);function s(e,t){if((0,r.M)("modernProgram",e))if("expandable"===t)return function(e){var t,l,r,n,s;let a="To Be Confirmed";return{type:"Program",style:"expandable",id:(null==(t=e.display)?void 0:t.abbreviation)||e.id,url:e.url,title:e.title,description:e.description&&(0,i.Q)(e.description),topics:null==(l=e.topic)?void 0:l.map(e=>({title:e})),industry:null==(r=e.industry)?void 0:r.map(e=>({title:e})),format:e.format,sessions:null==(s=e.display)||null==(n=s.sessions)?void 0:n.map(e=>({displayDate:e.displayDate,startDate:e.startDate,endDate:e.endDate,overrideSessionDisplay:e.overrideSessionDisplay,dateLabel:void 0===e.startDate||void 0===e.endDate?a:void 0,format:e.format,status:void 0===e.startDate||void 0===e.endDate?"Check Back to Apply":e.status,fee:void 0===e.startDate||void 0===e.endDate?a:e.fee,eyebrowStatus:void 0===e.startDate||void 0===e.endDate?"Start Date to Be Confirmed":void 0}))}}(e);else{if("card"!==t)return a(e);var l,n,s,o;return{type:"Course",id:(null==(n=(l=e).display)?void 0:n.abbreviation)||l.id,title:l.title,description:l.description&&(0,i.Q)(l.description),link:l.url,sessions:null==(o=l.display)||null==(s=o.sessions)?void 0:s.map(e=>({startDate:e.startDate,endDate:e.endDate,format:e.format,fee:e.fee,overrideSessionDisplay:e.overrideSessionDisplay})),isExEd:!0}}}function a(e){var t,l,s,a,o,d,u,c,f,p;let v=e.description;(null==(t=e.highlight)?void 0:t.description)&&Array.isArray(null==(l=e.highlight)?void 0:l.description)&&(v=null==(u=e.highlight)?void 0:u.description[0]),(null==(s=e.highlight)?void 0:s.body)&&Array.isArray(null==(a=e.highlight)?void 0:a.body)&&(v=(0,n.Q)(null==(c=e.highlight)?void 0:c.body[0])),!v&&e.body&&(v=e.body.substring(0,500).trim());let h=v&&(0,i.Q)(v),m={type:(null==(o=e.subset)?void 0:o.includes("coursePages"))?"Course":"Program",title:e.title,link:e.url,tease:h||""},g="Program";return(null==(d=e.subset)?void 0:d.includes("coursePages"))&&(g="Course"),m.category={label:g},(0,r.M)("modern",e)&&(null==(p=e.display)||null==(f=p.thumbnail)?void 0:f.src)&&(m.image=e.display.thumbnail),m}},4916:(e,t,l)=>{function i(e,t,l,i,r){if(e){var n;let s=null==l||null==(n=l.fields)?void 0:n.sfDomainBrochure,a=s?new URL(s).origin:"https://forms.exed.hbs.edu",o=new URL(s&&(s.toLowerCase().includes("/program-brochures")||s.toLowerCase().includes("/inquiry/webform"))?s:"".concat(a,"/Inquiry/WebForm"));o.searchParams.set("fid","pdfd"),o.searchParams.set("pac",e.toLowerCase());let d=o.toString();if(i&&e.indexOf("-cn")>1&&t?d="/documents/".concat(t,"-cn-brochure.pdf"):i&&(null==l?void 0:l.fields.brochureUrl)&&(d=null==l?void 0:l.fields.brochureUrl),r){let e=r.includes("?")?"&":"?";return r+e+"initurl="+d}return d}}function r(e,t,l,i,r){if(!l&&e){var n;let l=(null==t||null==(n=t.fields)?void 0:n.sfDomain)||"https://forms.exed.hbs.edu",s="".concat(l,"/Admissions/CommunitiesSelfReg?lang=").concat(i?"zh_cn":"en_us","&startURL=%2FAdmissions%2FProgramForm%3Fitn%3D").concat(e.toLowerCase());if(r){let e=r.includes("?")?"&":"?";return r+e+"initurl="+s}return s}}function n(e,t,l,i){if(e){var r;let n=(null==t||null==(r=t.fields)?void 0:r.sfDomain)||"https://forms.exed.hbs.edu",s="".concat(n,"/Admissions/ProgramForm?itn=").concat(e.toLowerCase(),"&lang=").concat(l?"zh_cn":"en_us");if(i){let e=i.includes("?")?"&":"?";return i+e+"initurl="+s}return s}}l.d(t,{Af:()=>r,np:()=>n,uB:()=>i})},61541:(e,t,l)=>{l.r(t),l.d(t,{ContentfulExEdProgramFinderArchivePage:()=>q});var i=l(6029),r=l(52229),n=l(55729),s=l(6388),a=l(11767),o=l(88882),d=l(48741),u=l(74171),c=l(13793),f=l(35745),p=l(95689),v=l(95738),h=l(20587),m=l(19255),g=l(3551),y=l(82599),_=l(35932),b=l(65474),D=l(74425),w=l(78678),S=l(75922),x=l(61277),j=l(23185),C=l(51747),P=l(33966),A=l(13403),k=l(2043),R=l(30642),F=l(42744),L=l(65104),O=l(75136),T=l(6726),E=l(25692),U=l(4916),I=l(43154),B=l(6216);let q=(0,x.i)(e=>{let{entry:t}=e,l=(0,r.useSearchParams)().get("programs");return l?(0,i.jsx)(Q,{entry:t,programsToCompare:l}):(0,i.jsx)(M,{entry:t})});function M(e){var t,l,m,g,_,x,j,P;let{entry:L}=e,T=(0,r.useSearchParams)(),{site:U,getEntry:q,getEntries:M}=(0,R.U)(),{breadcrumbs:Q}=(0,O.b)(),z=q(L.fields.body),H=void 0!==z&&"contentSource"in z.fields?z:void 0,N=q(null==H?void 0:H.fields.contentSource),W=q(null==H?void 0:H.fields.facetConfig),K=M(null==W?void 0:W.fields.facets),V=K.filter(e=>(0,C.I)("termFacet",e)),{dateRange:G,handleDatePickerSubmit:Y,getEsDateFilters:J}=(0,B.Fi)(),{pushDataLayer:X}=(0,F.v)(),Z=(0,n.useRef)(null),$=T.get("q"),ee=parseInt(T.get("page")||"1"),et={};
1V.forEach(e=>{let t=e.fields.field;if(!t)return;let l=T.get(t);l&&(et[t]=null==l?void 0:l.split(","))});let[el,ei]=(0,n.useState)((0,B.nf)(T,(null==H?void 0:H.fields.sortOptions)||[])),[er,en]=(0,n.useState)(!1),[es,ea]=(0,n.useState)($||""),eo=(0,v.d)(es,300),[ed,eu]=(0,n.useState)(et||{}),[ec,ef]=(0,n.useState)(ee),ep=function(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];ef(e),t&&(()=>{if(!0!==window.matchMedia("(prefers-reduced-motion: reduce)").matches){var e;null==(e=Z.current)||e.scrollIntoView()}})()},ev=()=>{1!==ec&&ep(1,!1)},eh=e=>{"Enter"===e.key&&(e.preventDefault(),ea(e.currentTarget.value),ev())},em=e=>{var t,l,i;let r=null==(t=e.currentTarget)?void 0:t.previousElementSibling;(null==(i=e.currentTarget)||null==(l=i.previousElementSibling)?void 0:l.classList.contains("hbs-search-box__input"))&&(e.preventDefault(),ea(r.value),ev())},eg=(0,n.useRef)();(0,n.useEffect)(()=>{window.onpopstate=e=>{e.state&&history.go(0)}}),(0,n.useEffect)(()=>{let e=new URL(window.location.href);if(eo?e.searchParams.set("q",eo):e.searchParams.delete("q"),ec>1?e.searchParams.set("page",ec.toString()):e.searchParams.delete("page"),Object.entries(ed).length>0)for(let[t,l]of Object.entries(ed))e.searchParams.set(t,l.join(","));else V.forEach(t=>{let l=t.fields.field;l&&e.searchParams.delete(l)});if(Object.entries(el).length>0)for(let[t,l]of Object.entries(el))for(let i of(e.searchParams.delete(t),l))e.searchParams.append(t,i);eg.current&&eg.current!==e.href&&window.history.pushState({},"",e),eg.current=e.href},[ed,el,V,ec,eo]);let ey=[];V.forEach(e=>{e.fields.field&&ey.push(e.fields.field)});let e_=Object.values(ed).flat(),eb="";if((null==N?void 0:N.fields.query)&&(eb+=N.fields.query),ed){for(let[e,t]of Object.entries(ed))if(t.length>0){let l=eb?" AND ":"";eb+="".concat(l).concat(e,':("').concat(t.join('" OR "'),'")')}}let eD=J(eb);eD&&(eb+=eD);let ew=el.sort?el.sort.join(","):null==N||null==(l=N.fields)||null==(t=l.sort)?void 0:t.join(","),eS=(null==N?void 0:N.fields.index)||"modern",ex=parseInt((null==N?void 0:N.fields.limit)||"10"),ej=()=>{var e;let t=null==N||null==(e=N.fields)?void 0:e.sort;ei(()=>({sort:t||[]}))},eC={facets:ey,index:eS,query:eo,filters:eb,from:ex*(ec-1),size:ex,sort:ew,options:(null==N||null==(m=N.fields.options)?void 0:m.includes("useBoostScore"))?["useBoostScore"]:void 0},{data:eP}=(0,E.SQ)(eC),eA=(0,n.useRef)(eP),[ek,eR]=(0,n.useState)({event:"program_finder_result_click",event_data:{program_name:"",search_term:"",facet_filter_category:"",facet_filter_value:"",facet_filter_full:""}});if((0,n.useEffect)(()=>{let e=new URL(window.location.href);if(e.searchParams.get("expanded")&&en("true"===e.searchParams.get("expanded")),ed&&eA.current!==eP){let t={event:eP&&eP.total<1?"no_program_finder_results":"program_finder_results",event_data:{}},l="",i="",r="",n=0;if(ed)for(let[e,t]of Object.entries(ed))t.length>0&&(n+=t.length,l+=""!==l?",".concat(e):e,i+=0!==i.length?",".concat(t.join(",")):t.join(","),r+=0!==r.length?",".concat(e,":").concat(t.join(",")):"".concat(e,":").concat(t.join(",")));if(eD&&eA.current!==eP){let e="sortDate",t=eD.split(":")[1];n+=1,l+=""!==l?",".concat(e):e,i+=0!==i.length?",".concat(t):t,r+=0!==r.length?",".concat(e,":").concat(t):"".concat(e,":").concat(t)}t.event=eP&&eP.total<1?"no_program_finder_results":"program_finder_results",t.event_data={search_term:e.searchParams.get("q")||"",search_numresults:(null==eP?void 0:eP.total)||0,search_type:"search-primary",search_type_ahead:!1,search_result_page:!eP||eP.total<1?0:ec,search_result_page_url:window.location.href.split("?")[0],facet_filter_category:l,facet_filter_value:i,facet_filter_full:r,facet_filter_depth:n},X(t),eR({event:"program_finder_result_click",event_data:{search_term:t.event_data.search_term,facet_filter_category:l,facet_filter_value:i,facet_filter_full:r}}),eA.current=eP}},[ec,eP,ed,eD,X]),ed){for(let[e,t]of Object.entries(ed))if(t.length>0){eb.startsWith("(")&&eb.endsWith(")")||(eb="("+eb+")");let l=eb?" AND ":"";eb+="".concat(l).concat(e,':("').concat(t.join('" OR "'),'")')}}let eF=[];if(null==eP?void 0:eP.total)for(let e of Array(Math.ceil(eP.total/ex)).keys()){let t=e+1,l=new URL(window.location.href);l.searchParams.set("page",t.toString()),eF.push({number:t,link:l.toString(),isCurrent:t===ec})}let eL=[];
1null==eP||null==(g=eP.hits)||g.forEach(e=>{if((0,A.M)("modernProgram",e)){let t=(0,k.nk)(e,"expandable");if(t){let e={...ek,event_data:{...ek.event_data,program_name:t.title}};t.dataLayer=e,t.expanded=er,eL.push({name:"ProgramTease",props:t})}}});let eO=(0,D.h)(L.fields.topper);(0,C.I)("searchTopper",q(L.fields.topper))&&(eO.props={...eO.props,query:es,onKeyDown:eh,onMouseDown:em});let eT=q(null==U?void 0:U.fields.contentReferences),eE=new Date(new Date().getFullYear(),11,31);eE&&eE.setDate(eE.getDate()+730);let eU=(0,s.A)(eE,"M/d/y"),eI=el.sort,eB=eI?eI[0]:void 0,eq=(null==N||null==(_=N.fields)?void 0:_.sort)?N.fields.sort[0]:void 0,eM=[];(null==H?void 0:H.fields.sortOptions)&&H.fields.sortOptions.length>0&&(eq?!eq||(null==H?void 0:H.fields.sortOptions.includes("Oldest"))||eM.push({value:"sortDate:asc",label:"Start Date"}):eM.push({value:"reset",label:"Relevancy"})),(null==H?void 0:H.fields.sortOptions)&&eM.push(...H.fields.sortOptions.map(e=>({value:B.Am[e],label:e})));let eQ=(null==H?void 0:H.fields.sortOptions)&&H.fields.sortOptions.length>0?{options:eM,onChange:e=>{"reset"===e.target.value?ej():ei(t=>{let l={...t};return l.sort=[e.target.value],l})},selectedOption:eB||((null==N||null==(x=N.fields)?void 0:x.sort)?N.fields.sort[0]:void 0)}:void 0;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(b.n,{entry:L.fields.seo}),(0,i.jsx)(o.C,{header:{name:"SiteHeader",props:(0,S.L)(U)},footer:(0,w.v)(null==U?void 0:U.fields.footer),topper:eO,breadcrumbs:Q,body:{topContent:(0,i.jsx)(I.A,{entry:L,options:{key:"topContent"}}),content:(0,i.jsx)(d.r,{aside:(0,i.jsxs)(i.Fragment,{children:[(null==W||null==(j=W.fields)?void 0:j.showSearchBox)&&(0,i.jsx)(c.G,{searchTerm:es,handleSearch:e=>{ea(e),ev()},handleKeydownSearch:eh,handleMousedownSearch:em,placeholder:(null==W||null==(P=W.fields)?void 0:P.placeholder)||"",isSmall:!0}),null==K?void 0:K.map(e=>{var t,l,r,n;if((0,C.I)("termFacet",e)){let r=e.fields.field;if(!r)return null;let n=[];return null==eP||null==(l=eP.facets)||null==(t=l[r])||t.forEach(e=>{var t;n.push({name:e.name,value:e.name,checked:(null==(t=ed[r])?void 0:t.includes(e.name))||!1,number:e.count.toString()})}),(0,i.jsx)(u.c,{title:e.fields.label,items:n,onFacetChanged:(e,t)=>{eu(l=>{let i;if(!e.value)return l;let n={...l};if(t)i=[...n[r]||[],e.value];else{var s;i=null==(s=n[r])?void 0:s.filter(t=>t!==e.value)}return i&&(n[r]=i),n}),ev()}},r)}return(0,C.I)("datePickerFacet",e)?(0,i.jsx)(f.L,{selectedRange:G,handleDatePickerSubmit:e=>{Y(e),ev()},endDate:eU,label:null!=(r=e.fields.label)?r:""},null!=(n=e.fields.label)?n:"date-picker"):null})]}),pagination:{pages:eF,onPageClick:e=>{ep(e.number)}},children:(0,i.jsxs)(h.v,{programs:[],children:[(0,i.jsx)(a.z,{ref:Z,align:"wide",teaseStyle:"expandable",totalHits:null==eP?void 0:eP.total,searchInfo:(0,i.jsx)(p.I,{teaseType:"program",totalHits:null==eP?void 0:eP.total,searchQuery:es,facetValues:e_,dateRange:G,onClearAll:function(){ea(""),eu({}),ej(),Y({from:void 0,to:void 0}),ev()}}),sortByOptions:eQ,items:eL}),(0,i.jsx)(y.a,{contentReferences:eT,dataLayer:ek})]})}),preFooterContent:(0,i.jsx)(I.A,{entry:L,options:{key:"preFooterContent"}})}})]})}function Q(e){let t,l,{entry:r,programsToCompare:n}=e,{site:s,getEntry:a,getEntryUrl:o}=(0,R.U)(),{locale:d}=(0,T.l)(),{t:u}=(0,m.c)(),c="zh-cn"===d.toLowerCase(),f=[],p=a(null==s?void 0:s.fields.contentReferences);(0,C.I)("contentReferences",p)&&(t=p);let{data:v}=(0,L.s)({url:"/api/fetch/exed-program-finder",params:{abbreviations:n}});if((null==v?void 0:v.items)&&v.includes&&v.items.forEach(e=>{var l;let i,r=(0,P.Tp)(v.includes,e.fields.learningTrack),n=(0,P.Tp)(v.includes,null==r?void 0:r.fields.relatedPage),s=n&&o(n),a=(null==(l=e.fields.sessions)?void 0:l.map(e=>(0,P.Tp)(v.includes,e)).filter(e=>!!e))||[],d=o(e.fields.alternateBrochureUrl);e.fields.hideDownloadLink||(i=d||(0,U.uB)(e.fields.abbreviation,e.fields.slug,t,c,null==t?void 0:t.fields.programFormRedirect));let p={id:e.fields.abbreviation||e.sys.id,title:e.fields.title||"",description:(0,j.C)(e.fields.description),url:o(e),sessions:[],summary:(0,j.C)(e.fields.programComparisonSummary),benef
1its:(0,j.C)(e.fields.programComparisonBenefits),whoShouldAttend:(0,j.C)(e.fields.programComparisonWhoShouldAttend),learningTrack:null==r?void 0:r.fields.title,learningTrackUrl:s};a.forEach(e=>{var l,r;let n=!!((null==e?void 0:e.fields.endDate)&&new Date(null==e?void 0:e.fields.endDate).getTime()<Date.now()),s=!!((null==e?void 0:e.fields.startDate)&&new Date(null==e?void 0:e.fields.startDate).getTime()<Date.now())&&(null==e||!e.fields.overrideSessionDisplay||(null==e?void 0:e.fields.overrideSessionDisplay)!=="yes"),a=n||s?"Last Ran":null==(l=(0,P.Tp)(v.includes,e.fields.status))?void 0:l.fields.title,d=(0,P.Tp)(v.includes,e.fields.format),f=null==(r=e.fields.locations)?void 0:r.map(e=>(0,P.Tp)(v.includes,e)).filter(e=>!!e),h,m=!1,g=(0,U.np)(e.fields.sfApplicationId,t,c,null==t?void 0:t.fields.programFormRedirect);if(!e.fields.hideApplicationLink){if(e.fields.externalApplicationUrl)h=o((0,P.Tp)(v.includes,e.fields.externalApplicationUrl)),m=!0;else if(e.fields.sfApplicationId){let l=!1;(n||s)&&(l=!0),h=(0,U.Af)(e.fields.sfApplicationId,t,l,c,null==t?void 0:t.fields.programFormRedirect)}}p.sessions.push({displayDate:e.fields.displayDate,status:a,startDate:e.fields.startDate,endDate:e.fields.endDate,format:null==d?void 0:d.fields.title,locations:null==f?void 0:f.map(e=>({title:e.fields.title})),fee:e.fields.fee,brochureUrl:i,applyUrl:h,loginUrl:g,externalApplyUrl:m,displayDates:e.fields.startDate&&e.fields.endDate?(0,_.nP)(e.fields.startDate,e.fields.endDate):u("toBeConfirmed")})}),f.push(p)}),t){let e=null==t?void 0:t.fields.programFinderPage;e&&(l=o(e))}return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(b.n,{entry:r.fields.seo}),(0,i.jsx)(h.v,{programs:f,children:(0,i.jsx)(g.h,{header:{name:"SiteHeader",props:(0,S.L)(s)},footer:(0,w.v)(null==s?void 0:s.fields.footer),programFinderUrl:l,contentReferences:t})})]})}}}]); 2//# sourceMappingURL=1541.9859715e77362d0c.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.