PageSourceSearch

https://shorelight.com/_next/static/chunks/4085-9ae09234ed5e95cd.js

js shorelight.com collected 2026-09-27 21:35:13 UTC 17,394 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4085],{36968:function(e,t,r){var n=r(10611);e.exports=function(e,t,r){return null==e?e:n(e,t,r)}},90638:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(78282).Z;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var r=a.default,i=(null==t?void 0:t.suspense)?{}:{loading:function(e){e.error,e.isLoading;return e.pastDelay,null}};n(e,Promise)?i.loader=function(){return e}:"function"===typeof e?i.loader=e:"object"===typeof e&&(i=s({},i,e));if((i=s({},i,t)).suspense)throw new Error("Invalid suspense option usage in next/dynamic. Read more: https://nextjs.org/docs/messages/invalid-dynamic-suspense");i.suspense&&(delete i.ssr,delete i.loading);i.loadableGenerated&&delete(i=s({},i,i.loadableGenerated)).loadableGenerated;if("boolean"===typeof i.ssr&&!i.suspense){if(!i.ssr)return delete i.ssr,o(r,i);delete i.ssr}return r(i)},t.noSSR=o;var s=r(31032).Z,i=r(12845).Z,a=(i(r(67294)),i(r(14302)));function o(e,t){return delete t.webpack,delete t.modules,e(t)}("function"===typeof t.default||"object"===typeof t.default&&null!==t.default)&&"undefined"===typeof t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},16319:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LoadableContext=void 0;var n=(0,r(12845).Z)(r(67294)).default.createContext(null);t.LoadableContext=n},14302:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(25125).Z,s=r(40).Z;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(31032).Z,a=(0,r(12845).Z)(r(67294)),o=r(16319),c=r(61688).useSyncExternalStore,l=[],u=[],d=!1;function p(e){var t=e(),r={loading:!0,loaded:null,error:null};return r.promise=t.then((function(e){return r.loading=!1,r.loaded=e,e})).catch((function(e){throw r.loading=!1,r.error=e,e})),r}var f=function(){function e(t,r){n(this,e),this._loadFn=t,this._opts=r,this._callbacks=new Set,this._delay=null,this._timeout=null,this.retry()}return s(e,[{key:"promise",value:function(){return this._res.promise}},{key:"retry",value:function(){var e=this;this._clearTimeouts(),this._res=this._loadFn(this._opts.loader),this._state={pastDelay:!1,timedOut:!1};var t=this._res,r=this._opts;t.loading&&("number"===typeof r.delay&&(0===r.delay?this._state.pastDelay=!0:this._delay=setTimeout((function(){e._update({pastDelay:!0})}),r.delay)),"number"===typeof r.timeout&&(this._timeout=setTimeout((function(){e._update({timedOut:!0})}),r.timeout))),this._res.promise.then((function(){e._update({}),e._clearTimeouts()})).catch((function(t){e._update({}),e._clearTimeouts()})),this._update({})}},{key:"_update",value:function(e){this._state=i({},this._state,{error:this._res.error,loaded:this._res.loaded,loading:this._res.loading},e),this._callbacks.forEach((function(e){return e()}))}},{key:"_clearTimeouts",value:function(){clearTimeout(this._delay),clearTimeout(this._timeout)}},{key:"getCurrentValue",value:function(){return this._state}},{key:"subscribe",value:function(e){var t=this;return this._callbacks.add(e),function(){t._callbacks.delete(e)}}}]),e}();function h(e){return function(e,t){var r=function(){if(!l){var t=new f(e,s);l={getCurrentValue:t.getCurrentValue.bind(t),subscribe:t.subscribe.bind(t),retry:t.retry.bind(t),promise:t.promise.bind(t)}}return l.promise()},n=function(){r();var e=a.default.useContext(o.LoadableContext);e&&Array.isArray(s.modules)&&s.modules.forEach((function(t){e(t)}))},s=Object.assign({loader:null,loading:null,delay:200,timeout:null,webpack:null,modules:null,suspense:!1},t);s.suspense&&(s.lazy=a.default.lazy(s.loader));var l=null;if(!d){var p=s.webpack?s.webpack():s.modules;p&&u.push((function(e){var t=!0,n=!1,s=void 0;try{for(var i,a=p[Symbol.iterator]();!(t=(i=a.next()).done);t=!0){var o=i.value;if(-1!==e.indexOf(o))return r()}}catch(c){n=!0,s=c}finally{try{t||null==a.return||a.return()}finally{if(n)throw s}}}))}var h=s.suspense?function(e,t){return n(),a.default.createElement(s.lazy,i({},e,{ref:t}))}:function(e,t){n();var r=c(l.subscribe,l.getCurrentValue,l.getCurrentValue);return a.default.useImperativeHandle(t,(function(){return{retry:l.retry}}),[]),a.default.useMemo((function(){return r.loading||r.error?a.default.createElement(s.loading,{isLoading:r.loading,pastDelay:r.pastDelay,timedOut:r.timedOut,error:r.error,retry:l.retry}):r.loaded?a.default.createElement((t=r.loaded)&&t.__esModule?t.default:t,e):null;var t}),[e,r])};return h.preload=function(){return r()},h.displayName="LoadableComponent",a.default.forwardRef(h)}(p,e)}function _(e,t){for(var r=[];e.length;){var n=e.pop();r.push(n(t))}return Promise.all(r).then((function(){if(e.length)return _(e,t)}))}h.preloadAll=function(){return new Promise((function(e,t){_(l).then(e,t)}))},h.preloadReady=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return new Promise((function(t){var r=function(){return d=!0,t()};_(u,e).then(r,r)}))},window.__NEXT_PRELOADREADY=h.preloadReady;var y=h;t.default=y},49154:function(e,t,r){"use strict";var n=r(85893),s=(r(67294),r(45697)),i=r.n(s),a=r(41664),o=r.n(a),c=r(90279),l=r.n(c),u=function(e){var t=e.breadcrumbs;return(0,n.jsx)("div",{className:l().breadcrumbsContainer,children:t.map((function(e,t){return(0,n.jsx)("div",{className:l().breadcrumb,children:(0,n.jsx)(o(),{href:e.href,as:e.as,children:(0,n.jsx)("a",{className:l().breadcrumbLink,children:e.text})})},t)}))})};u.propTypes={breadcrumbs:i().array},t.Z=u},92691:function(e,t,r){"use strict";var n=r(85893),s=r(67294),i=r(45697),a=r.n(i),o=r(13927),c=r.n(o),l=r(15038),u=function(e){var t=e.isOpened,r=e.setIsPopUpOpe
1ned,i=e.componentToDisplay;return(0,s.useEffect)((function(){var e=setTimeout((function(){r(!0)}),1e4);return function(){return clearTimeout(e)}}),[]),(0,n.jsx)(l.Z,{children:(0,n.jsx)("div",{className:"".concat(c().wrapper," ").concat(t&&c().isOpened),children:i})})};u.propTypes={isOpened:a().bool,setIsPopUpOpened:a().func,componentToDisplay:a().any},t.Z=u},37425:function(e,t,r){"use strict";r.d(t,{Z:function(){return re}});var n=r(67573),s=r(14251),i=r(52875),a=r(85893),o=r(67294),c=r(5152),l=r.n(c),u=r(93967),d=r.n(u),p=r(27361),f=r.n(p),h=r(64721),_=r.n(h),y=r(36968),m=r.n(y),v=r(25946),b=r.n(v),g=r(45697),x=r.n(g),j=r(42614),T=r.n(j),A=r(49154),w=r(91127),C=r(71969),k=r(15230),Z=r(69733),S=r(82637),N=r(70526),E=r(7508),O=r(17225),L={universityMatchText:"Let us help you find your best fit university!"},R=function(e){var t=e.children,r=e.storyArticle,n=e.breadcrumbs,c=e.showCTA,l=e.setCTAMarginTop,u=e.universityMatchText,d=e.locales,p=e.tagsLocales,f=r.header,h=r.tags,_=r.image,y=r.video,m=r.tease,v=y&&_&&_.fields,b=(0,o.useRef)(null),g=(0,o.useRef)(null),x=(0,o.useRef)(null),j=function(){if(b.current&&g.current){var e,t=((null===x||void 0===x||null===(e=x.current)||void 0===e?void 0:e.clientHeight)||0)+50-(b.current.offsetHeight||0)+"px";l(t)}},R=d||L;return(0,o.useEffect)((function(){c&&j()}),[c]),(0,o.useEffect)((function(){var e=function(){b.current&&g.current&&(g.current.style.minHeight="",window.innerWidth>1069&&(c&&j(),g.current.style.minHeight=b.current.offsetHeight+"px"))};return e(),O.x.subscribe(e)}),[]),(0,a.jsx)("header",(0,i.Z)((0,s.Z)({},(0,N.ok)(T().wrapper,v&&T().hasVideo+" has-video")),{children:(0,a.jsx)("div",{className:T().content,children:(0,a.jsxs)("div",{className:T().row,ref:b,children:[(0,a.jsxs)("div",{className:T().colLeft,children:[(0,a.jsx)("div",{className:T().breadcrumbsContainer,children:(0,a.jsx)(A.Z,{breadcrumbs:n})}),(0,a.jsxs)("div",{className:T().text,children:[f&&(0,a.jsx)("h1",{className:T().title,"data-cypress-id":"cypress-story-title",children:f}),h&&(0,a.jsx)(k.default,{tags:h,showShareLinks:!0,hiddenShareLink:"twitterLink",tagsLocales:p,onTagSelection:E.iV}),u?(0,a.jsxs)("div",{className:T().universityMatchWrapper,children:[(0,a.jsx)("span",{children:R.universityMatchText}),(0,a.jsx)(S.Z,{link:"/university-match/?referer=student-stories/".concat(r.slug),theme:"secondary",label:u})]}):null,(0,a.jsx)(Z.Z,{testimonial:r,locales:d}),m&&(0,a.jsx)("p",{className:T().intro,children:m}),t]})]}),(v||_)&&(0,a.jsx)("div",{className:T().colRight,ref:g,children:(0,a.jsx)("div",{ref:x,children:(0,a.jsx)("div",(0,i.Z)((0,s.Z)({},(0,N.ok)(v?T().video:_&&T().figure)),{children:v?(0,a.jsx)(w.default,{video:y,poster:_}):_&&(0,a.jsx)(C.default,{image:_,className:T().image,resize:{fit:"thumb"}})}))})})]})})}))};R.propTypes={storyArticle:x().object,children:x().node,showCTA:x().bool,setCTAMarginTop:x().func,label:x().string,breadcrumbs:x().array,school:x().object,universityMatchText:x().any};var P=R,M=r(15038),W=r(10657),B=r(16127),D=r(41664),I=r.n(D),V=r(11583),U=r.n(V),G={writtenBy:"Written By"},z=function(e){var t=e.author,r=e.locales||G;return(0,a.jsx)(I(),{href:"/author/".concat(t.slug),children:(0,a.jsxs)("a",{className:U().authorBlock,children:[(0,a.jsxs)("div",{className:U().authorRow,children:[(0,a.jsxs)("div",{className:U().authorText,children:[(0,a.jsx)("div",{children:r.writtenBy}),(0,a.jsx)("div",{className:U().title,children:t.name})]}),t.image&&(0,a.jsx)("div",{className:U().authorImage,children:(0,a.jsx)(C.default,{className:U().headshot,image:t.image,resize:{fit:"thumb",w:120,h:120}})})]}),(0,a.jsx)("div",{className:U().description,children:t.description})]})})};z.propTypes={author:x().object};var H=z,Y=r(29961),q=r(94824),F=r(50556),K=r(92691),J=r(50983),X=r(49550),Q=l()((function(){return Promise.all([r.e(7339),r.e(507)]).then(r.bind(r,97339))}),{loadableGenerated:{webpack:function(){return[97339]}}}),$=l()((function(){return Promise.all([r.e(4550),r.e(1911)]).then(r.bind(r,74550))}),{loadableGenerated:{webpack:function(){return[74550]}}}),ee=l()((function(){return r.e(5470).then(r.bind(r,75470))}),{loadableGenerated:{webpack:function(){return[75470]}}}),te={breadcrumbs:{studentStories:{href:"/student-stories",text:"Stories"},newsAndInsights:{href:"/news-and-insights",text:"News and Insights"}}},re=function(e){var t=e.storyArticle,r=e.relevantStories,c=void 0===r?[]:r,l=e.universityMatchText,u=e.replaceSlash,p=void 0===u||u,h=e.locales,y=e.category,v=e.tagsLocales,g=(0,o.useState)("0px"),x=g[0],j=g[1],T=f()(t,"
1school.fields.name",""),A=!(!t.countryText||!T),w=t.countryText||T,C=f()(t,"author.fields"),k={description:f()(t,"seoDescription",""),thumbnailUrl:f()(t,"image.fields.file.url",""),updatedAt:f()(t,"updatedAt","")},Z=h||te,S=y||{text:t.category,href:t.category},E=_()(F.STORY_CATEGORIES,t.category)?Z.breadcrumbs.studentStories:Z.breadcrumbs.newsAndInsights,O=(0,o.useState)(!1),L=O[0],R=O[1],D=(0,o.useState)(!1),I=D[0],V=D[1];(0,o.useEffect)((function(){var e=f()(t,"popUpCTA.fields.ctaType");V(!!e&&!f()((0,J.RK)("wasCTAPopUpOpened"),"".concat(e)));var r=X.k.subscribe((function(t){V(!t&&!!e&&!f()((0,J.RK)("wasCTAPopUpOpened"),"".concat(e)))}));if(document){var n=document.querySelector("div[class^='embeddedEntry_embeddedServiceWrapper']"),s=document.querySelector("div[class='startOfStickyServiceAd']"),i=document.querySelector("div[class='endOfStickyServiceAd']"),a=function(){!(document.body.clientWidth<721)&&n&&s&&i&&(m()(s.style,"position","absolute"),m()(i.style,"position","absolute"),m()(s.style,"visibility","hidden"),m()(i.style,"visibility","hidden"),i.getBoundingClientRect().top>300&&s.getBoundingClientRect().top<100?(m()(n,"style.visibility","visible"),R(!0)):(m()(n,"style.visibility","hidden"),R(!1)))};return document.addEventListener("scroll",a),function(){document.removeEventListener("scroll",a),r.unsubscribe()}}}),[]);var U=(0,o.useState)(!1),G=U[0],z=U[1];return(0,a.jsxs)(a.Fragment,{children:[I&&(0,a.jsx)(K.Z,{isOpened:G,setIsPopUpOpened:z,componentToDisplay:(0,a.jsx)(ee,{cta:t.popUpCTA,onClose:function(){var e=f()(t,"popUpCTA.fields.ctaType");e&&(0,J.HH)("wasCTAPopUpOpened",(0,i.Z)((0,s.Z)({},(0,J.RK)("wasCTAPopUpOpened")),(0,n.Z)({},e,!0))),V(!1)}})}),(0,a.jsx)(P,{school:t.school,storyArticle:t,breadcrumbs:(0,N.f0)(S,E),showCTA:!0,setCTAMarginTop:function(e){return j(e)},universityMatchText:l,locales:h,tagsLocales:v,children:(t.name||w)&&(0,a.jsxs)("p",{className:b().attribution,children:[t.name&&(0,a.jsx)("span",{className:b().name,children:t.name}),w&&(0,a.jsxs)("span",{className:b().location,children:[t.countryText,A&&(0,a.jsx)(q.Z,{}),T]})]})}),(0,a.jsx)("main",{id:"main",children:(0,a.jsxs)("div",{className:b().contentWrapper,children:[(0,a.jsxs)("div",{className:d()(b().mainContent,(0,n.Z)({},b().paddingRight,!t.cta)),children:[(0,a.jsx)(M.Z,{children:(0,a.jsx)(W.Z,{content:t.mainContent,videoSchemaData:k,locales:h})}),C&&(0,a.jsx)(M.Z,{children:(0,a.jsx)("div",{className:b().author,children:(0,a.jsx)(H,{author:C,locales:h})})})]}),t.cta&&(0,a.jsx)("div",{className:b().cta,children:(0,a.jsx)(Y.Z,{media:Y.Z.queries.onTabletMD,notMatchContent:(0,a.jsx)($,{cta:t.cta,school:t.school}),children:(0,a.jsx)("div",{className:"".concat(b().stickyCTAWrapper," ").concat(L&&b().hideCTA),children:(0,a.jsx)(Q,{cta:t.cta,school:t.school,isTopBannerLocated:!0,ctaMarginTop:x,replaceSlash:p})})})})]})}),(0,a.jsx)(M.Z,{children:(0,a.jsx)("div",{className:b().relevantWrapper,children:(0,a.jsx)(B.default,{testimonials:c,locales:h,linkProp:{base:"student-stories",pagePath:"student-stories/[slug]"},tagsLocales:v})})})]})}},43489:function(e,t,r){"use strict";r.d(t,{Z:function(){return a}});var n=r(34727),s=r(69779),i=r(97582);function a(e){return o.apply(this,arguments)}function o(){return(o=(0,n.Z)((function(e){var t,r,n,a,o,c,l,u,d,p,f;return(0,i.__generator)(this,(function(i){switch(i.label){case 0:return t=e.contentClient,r=e.formatEntriesForSSR,n=e.testimonial,a=[],o=4,Array.isArray(n.tags)&&n.tags.length?(c=n.tags.map((function(e){return e.sys.id})),[4,t.getEntries({content_type:"testimonial","fields.slug[ne]":n.slug,"fields.tags.sys.id[all]":c.join(","),order:"-sys.updatedAt",limit:o}).then((function(e){return r(e,!0,!0)}))]):[3,2];case 1:l=i.sent(),a=(0,s.Z)(l),i.label=2;case 2:return a.length<o?(u=[n.slug].concat((0,s.Z)(a.map((function(e){return e.slug})))),[4,t.getEntries({content_type:"testimonial","fields.slug[nin]":u.join(","),"fields.category":n.category,order:"-sys.updatedAt",limit:o-a.length}).then((function(e){return r(e,!0,!0)}))]):[3,4];case 3:d=i.sent(),a=(0,s.Z)(a).concat((0,s.Z)(d)),i.label=4;case 4:return a.length<o?(p=[n.slug].concat((0,s.Z)(a.map((function(e){return e.slug})))),[4,t.getEntries({content_type:"testimonial","fields.slug[nin]":p.join(","),order:"-sys.updatedAt",limit:o-a.length}).then((function(e){return r(e,!0,!0)}))]):[3,6];case 5:f=i.sent(),a=(0,s.Z)(a).concat((0,s.Z)(f)),i.label=6;case 6:return[2,a]}}))}))).apply(this,arguments)}},11583:function(e){e.exports={authorBlock:"authorBlock_authorBlock__OCrLK",headshot:"authorBlock_headshot__LR_ly",authorRow:"authorBlock_authorRow__E_fac",authorText:"authorBlock_authorText__T6P6Y",authorImage:"authorBlock_authorImage__HNeFF",title:"authorBlock_title__lUNYG",description:"authorBlock_description__JkD08"}},90279:function(e){e.exports={breadcrumbsContainer:"breadcrumbs_breadcrumbsContainer__8_U3V",breadcrumb:"breadcrumbs_breadcrumb__v6Cz_",breadcrumbLink:"breadcrumbs_breadcrumbLink__CG2Fn"}},13927:function(e){e.exports={wrapper:"popUp_wrapper__iZwnV",isOpened:"popUp_isOpened__7NQzv"}},42614:function(e){e.exports={wrapper:"storyArticleTopper_wrapper__1tWJ9",content:"storyArticleTopper_content__11vs6",breadcrumbsContainer:"storyArticleTopper_breadcrumbsContainer__Z2_Tg",title:"storyArticleTopper_title__4Xsfa",text:"storyArticleTopper_text__V_XBI",intro:"storyArticleTopper_intro__kI3iV",figure:"storyArticleTopper_figure__I_rMZ",video:"storyArticleTopper_video__PzWPr",quote:"storyArticleTopper_quote__S6_q_",author:"storyArticleTopper_author__VnhL_",colLeft:"storyArticleTopper_colLeft__BBLkb",hasVideo:"storyArticleTopper_hasVideo__0EJkE",colRight:"storyArticleTopper_colRight__wjr5H",universityMatchWrapper:"storyArticleTopper_universityMatchWrapper__hifhu"}},25946:function(e){e.exports={attribution:"storyArticle_attribution__WE5Br",mainContent:"storyArticle_mainContent__naypw",paddingRight:"storyArticle_paddingRight__2YYN4",name:"storyArticle_name__YEEoG",location:"storyArticle_location__KWtzE",author:"storyArticle_author__YG_6z",contentWrapper:"storyArticle_contentWrapper__J1ZCi",cta:"storyArticle_cta__h_ra0",stickyCTAWrapper:"storyArticle_stickyCTAWrapper__VWBP5",hideCTA:"storyArticle_hideCTA__Wy8Lf",relevantWrapper:"storyArticle_relevantWrapper__L_nmI"}},5152:function(e,t,r){e.exports=r(90638)},53250:function(e,t,r){"use strict";var n=r(67294);var s="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t},i=n.useState,a=n.useEffect,o=n.useLayoutEffect,c=n.useDebugValue;function l(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!s(e,r)}catch(n){return!0}}var u="undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement?function(e,t){return t()}:function(e,t){var r=t(),n=i({inst:{value:r,getSnapshot:t}}),s=n[0].inst,u=n[1];return o((function(){s.value=r,s.getSnapshot=t,l(s)&&u({inst:s})}),[e,r,t]),a((function(){return l(s)&&u({inst:s}),e((function(){l(s)&&u({inst:s})}
1))}),[e]),c(r),r};t.useSyncExternalStore=void 0!==n.useSyncExternalStore?n.useSyncExternalStore:u},61688:function(e,t,r){"use strict";e.exports=r(53250)}}]);

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.