PageSourceSearch

https://www.careerfairy.io/_next/static/chunks/pages/portal/[[...livestreamDialog]]-d414cb0feeeadb0f.js

js careerfairy.io collected 2026-10-01 15:26:31 UTC 111,124 bytes, 1 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="cf113991-6bd3-4051-bc52-af99851fa08b",e._sentryDebugIdIdentifier="sentry-dbid-cf113991-6bd3-4051-bc52-af99851fa08b")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5964],{76522:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/portal/[[...livestreamDialog]]",function(){return n(7591)}])},39660:function(e,t,n){"use strict";var r=n(32670),o=n(24022),i=n(4670),a=n(73509),s=n(22970),l=n(27534),c=n(63413),u=n(3255),d=n(18231),p=n(51195),f=n(63761);t.Z=function(e){var t=e.totalItems,n=e.businessFunctionTagIds,h=e.jobTypesIds,m=e.disabled,x=e.ignoreIds,v=void 0===x?[]:x,g=(0,u.ZP)(m?null:["get-custom-jobs-by-tags",t,n,h,v],(0,r._)(function(){var e,r;return(0,s.Jh)(this,function(o){switch(o.label){case 0:return[4,(0,c.PL)(c.IO.apply(void 0,[(0,c.hJ)(p.O,"customJobs"),(0,c.ar)("deadline",">",new Date),(0,c.ar)("published","==",!0),(0,c.Xo)("deadline","asc")].concat((0,a._)((null==n?void 0:n.length)?[(0,c.ar)("businessFunctionsTagIds","array-contains-any",n)]:[]),(0,a._)((null==h?void 0:h.length)?[(0,c.ar)("jobType","in",h)]:[]),(0,a._)(t?[(0,c.b9)(t)]:[]))).withConverter((0,l._R)()))];case 1:return[2,(null===(r=o.sent().docs)||void 0===r?void 0:null===(e=r.map(function(e){return e.data()}))||void 0===e?void 0:e.filter(function(e){return!v.includes(e.id)}
1))||[]]}})}),(0,i._)((0,o._)({},f.k),{onError:function(e,r){(0,d.LS)(e,{key:r,businessFunctionTagIds:n,ignoreIds:v,totalItems:t})},suspense:!1}));return{customJobs:g.data||[],isLoading:g.isLoading}}},5566:function(e,t,n){"use strict";var r=n(24022),o=n(4670),i=n(2784),a=n(3255),s=n(63761);t.Z=function(e){var t=(0,i.useMemo)(function(){return null==e?void 0:e.reduce(function(e,t){return e[t.id]=t.groupId,e},{})},[e]),n=(0,s.Z)(),l=(0,a.ZP)(["fetchCustomJobGroupNames",t],n,(0,o._)((0,r._)({},s.k),{suspense:!1})),c=l.data;return{data:null!=c?c:{},isLoading:l.isLoading}}},89150:function(e,t,n){"use strict";n.d(t,{E:function(){return useUserRecommendedJobs},k:function(){return usePreFetchRecommendedJobs}});var r=n(32670),o=n(24022),i=n(4670),a=n(73509),s=n(22970),l=n(89178),c=n(39720),u=n(2784),d=n(3255),p=n(63761),useUserRecommendedJobs=function(e){var t=(0,l.a)().isLoadingAuth,n=e||{},u=n.limit,f=void 0===u?10:u,h=n.suspense,m=n.userAuthId,x=n.bypassCache,v=void 0!==x&&x,g=n.referenceJobId,b=n.initialData,y=n.countryCode;return(0,d.ZP)(t?null:["getRecommendedJobs",f].concat((0,a._)(m?["userAuthId=".concat(m)]:[]),(0,a._)(v?["bypassCache=".concat(v)]:[]),(0,a._)(g?["referenceJobId=".concat(g)]:[]),(0,a._)(y?["countryCode=".concat(y)]:[])),(0,r._)(function(){return(0,s.Jh)(this,function(e){return[2,c.kg.getRecommendedJobs(f,m,v,{referenceJobId:g,userCountryCode:y})]})}),(0,i._)((0,o._)({},p.k),{suspense:void 0!==h&&h,fallbackData:b,keepPreviousData:!0}))},usePreFetchRecommendedJobs=function(e){var t=(null==e?void 0:e.limit)||10,n=(0,l.a)(),r=n.authenticatedUser,o=n.isLoadingAuth,i=e||{},s=i.userAuthId,p=i.bypassCache,f=i.referenceJobId,h=i.countryCode;return(0,u.useEffect)(function(){(0,d.MA)(o?["getRecommendedJobs",t].concat((0,a._)(s?["userAuthId=".concat(s)]:[]),(0,a._)(p?["bypassCache=".concat(p)]:[]),(0,a._)(f?["referenceJobId=".concat(f)]:[]),(0,a._)(h?["countryCode=".concat(h)]:[])):null,function(){return c.kg.getRecommendedJobs(t,null==r?void 0:r.uid,p,{referenceJobId:f,userCountryCode:h})})},[t,null==r?void 0:r.uid,f,o,s,p,h]),null}},89595:function(e,t,n){"use strict";n.d(t,{IL:function(){return supplementFeaturedGroups},K6:function(){return m},No:function(){return orderForDisplay},Vs:function(){return f},yP:function(){return h}});var r,o,i=n(32670),a=n(73509),s=n(22970),l=n(27534),c=n(75280),u=n(63413),d=n(18231),p=n(51195),f=4,h=(r=(0,i._)(function(e){return(0,s.Jh)(this,function(t){switch(t.label){case 0:return[4,(0,u.PL)((0,u.IO)((0,u.hJ)(p.O,"careerCenterData"),(0,u.ar)("featured.targetCountries","array-contains",e)).withConverter((0,l._R)()))];case 1:return[2,t.sent().docs.map(function(e){return e.data()})]}})}),function(e){return r.apply(this,arguments)}),m=(o=(0,i._)(function(){return(0,s.Jh)(this,function(e){switch(e.label){case 0:return[4,(0,u.PL)((0,u.IO)((0,u.hJ)(p.O,"careerCenterData"),(0,u.ar)("publicProfile","==",!0),(0,u.b9)(20)).withConverter((0,l._R)()))];case 1:return[2,e.sent().docs.map(function(e){return e.data()})]}})}),function(){return o.apply(this,arguments)}),supplementFeaturedGroups=function(e,t,n,r){var o=f-e.length;if(o<=0)return e;var i=new Set(e.map(function(e){return e.groupId})),s=t.filter(function(e){return!i.has(e.groupId)&&!0!==e.inActive}).sort(function(e,t){return rankGroup(t,n,r)-rankGroup(e,n,r)}).slice(0,o);return(0,a._)(e).concat((0,a._)(s))},orderForDisplay=function(e){var t=e.filter(function(e){return e.featured}),n=e.filter(function(e){return!e.featured});return(0,a._)((0,d.sZ)(t,t.length)).concat((0,a._)((0,d.sZ)(n,n.length)))};function rankGroup(e,t,n){var r,o,i=0;return(null===(r=e.targetedCountries)||void 0===r?void 0:r.some(function(e){return e.id===t}))&&(i+=100),n&&(null===(o=e.targetedFieldsOfStudy)||void 0===o?void 0:o.some(function(e){return c.PW[e.id]===n}))&&(i+=50),e.hasUpcomingEvents&&(i+=3),e.hasJobs&&(i+=2),e.hasSparks&&(i+=1),i+=Math.random()}},33095:function(e,t,n){"use strict";n.d(t,{z:function(){return useFeaturedGroupsSWR}});var r=n(32670),o=n(24022),i=n(4670),a=n(22970),s=n(75280),l=n(89178),c=n(3255),u=n(18231),d=n(63761),p=n(89595),useFeaturedGroupsSWR=function(e,t){var n,f,h,m=(0,l.a)(),x=m.userData,v=m.isLoggedIn,g=(null==t?void 0:t.disabled)||!(null==e?void 0:e.length)||v&&(!(null==x?void 0:null===(n=x.fieldOfStudy)||void 0===n?void 0:n.id)||(null==x?void 0:null===(f=x.fieldOfStudy)||void 0===f?void 0:f.id)&&!s.PW[null==x?void 0:null===(h=x.fieldOfStudy)||void 0===h?void 0:h.id]);return(0,c.ZP)(g?null:["get-featured-groups-".concat(e,"-").concat(null==x?void 0:x.authId)],(0,r._)(function(){return(0,a.Jh)(this,function(t){switch(t.label){case 0:return[4,(0,p.yP)(e)];case 1:return[2,t.sent().filter(function(e){var t,n,r,o,i;return v&&(null==x?void 0:null===(t=x.fieldOfStudy)||void 0===t?void 0:t.id)?null===(i=e.featured)||void 0===i?void 0:null===(o=i.targetAudience)||void 0===o?void 0:o.includes(s.PW[null==x?void 0:null===(r=x.fieldOfStudy)||void 0===r?void 0:r.id]):(!v||null!=x&&null!==(n=x.fieldOfStudy)&&void 0!==n&&!!n.id
1)&&!v})]}})}),(0,i._)((0,o._)({},d.k),{fallbackData:[],onError:function(e,t){(0,u.LS)(e,{key:t})}}))}},79470:function(e,t,n){"use strict";n.d(t,{M:function(){return h.MA},w:function(){return useLivestreamSearchAlgolia}});var r=n(32670),o=n(24022),i=n(4670),a=n(87963),s=n(22970),l=n(4386),c=n(2784),u=n(3255),d=n(66635),p=n(18231),f=n(33743),h=n(84406);function useLivestreamSearchAlgolia(e,t){var n,m,x,v=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},g=v.targetReplica,b=v.disable,y=v.itemsPerPage,j=v.anchorMs,C=v.initialData,w=(0,c.useRef)(Date.now()),S=null!==(x=null!==(m=null==C?void 0:C.anchorMs)&&void 0!==m?m:j)&&void 0!==x?x:w.current,k=(0,c.useMemo)(function(){return new Date(S)},[S]),Z=(0,h.MA)(t,k),_=(0,c.useMemo)(function(){if((null==C?void 0:C.response)&&e===C.searchTerm&&Z===C.filters)return[(0,i._)((0,o._)({},C.response),{deserializedHits:C.response.hits.map(f.hz)})]},[C,e,Z]),I=(0,c.useRef)(null),F=void 0!==_&&void 0!==C&&I.current!==C.anchorMs,E=(0,c.useCallback)(function(t,n){return n&&!n.hits.length?null:["searchLivestreams",e,Z,t,g,y]},[e,Z,g,y]),T=(0,u.kY)().mutate;(0,c.useEffect)(function(){C&&_&&I.current!==C.anchorMs&&(I.current=C.anchorMs,T((0,d.wE)(E),_,{revalidate:!1}))},[C,_,E,T]);var L=(n=(0,r._)(function(e){var t,n,r,c,u,d,p;return(0,s.Jh)(this,function(s){switch(s.label){case 0:return n=(t=(0,a._)(e,6))[1],r=t[2],c=t[3],u=t[4],d=t[5],[4,l.Z.searchLivestreams(n,r,c,u,d)];case 1:return p=s.sent(),[2,(0,i._)((0,o._)({},p),{deserializedHits:p.hits.map(f.hz)})]}})}),function(e){return n.apply(this,arguments)});return(0,d.ZP)(b?null:E,L,{onError:function(e,t){return(0,p.LS)(e,{message:"Error fetching livestreams",key:t})},keepPreviousData:!0,fallbackData:_,revalidateOnMount:!F&&void 0,revalidateIfStale:!F&&void 0,refreshInterval:(0,p.uB)()?1e3:void 0})}},9149:function(e,t,n){"use strict";n.d(t,{K:function(){return usePrefetchUserSparks},$:function(){return useUserSparks}});var r,o,i,a,s=n(32670),l=n(87963),c=n(22970),u=n(27534),d=n(23555),p=n(26814),f=n(89178),h=n(51195),m=n(8301),x=n(63413),v=n(2784),g=n(76940),b=n(3255),y=n(18231),j=n(70632),C=n(62519),w=(r=(0,s._)(function(){return(0,c.Jh)(this,function(e){switch(e.label){case 0:return[4,m.OK.getPrioritySparks()];case 1:return[2,e.sent().map(d.FN.toFirebaseObject)]}})}),function(){return r.apply(this,arguments)}),S=(o=(0,s._)(function(e){var t,n,r;return(0,c.Jh)(this,function(o){switch(o.label){case 0:return n=(0,x.IO)((0,x.hJ)(h.O,"sparks"),(0,x.ar)("group.publicSparks","==",!0),(0,x.Xo)("publishedAt","desc"),(0,x.b9)(10)).withConverter((0,u._R)()),[4,Promise.all([(0,s._)(function(){var r,o;return(0,c.Jh)(this,function(i){switch(i.label){case 0:if(!e)return[3,4];return r=(0,C.kJ)(e),o=(0,x.IO)(n,(0,x.ar)("group.targetedCountries","array-contains",r)),[4,(0,x.PL)(o)];case 1:if(!((t=i.sent()).size<10))return[3,3];return[4,(0,x.PL)(n)];case 2:t=i.sent(),i.label=3;case 3:return[3,6];case 4:return[4,(0,x.PL)(n)];case 5:t=i.sent(),i.label=6;case 6:return[2]}})})(),w()])];case 1:return r=l._.apply(void 0,[o.sent(),2])[1],[2,(0,p.iM)({naturalSparks:t.docs.map(function(e){return e.data()}),prioritySparks:r,isFirstPage:!0})]}})}),function(e){return o.apply(this,arguments)}),getKey=function(e,t){return e?"userSparks-".concat(e):"userSparks".concat(t?"-".concat(t):"")},k=(i=(0,s._)(function(e){var t,n,r;return(0,c.Jh)(this,function(o){switch(o.label){case 0:return[4,Promise.all([(0,x.PL)((0,x.IO)((0,x.hJ)(h.O,"userData/".concat(e,"/sparksFeed")),(0,x.ar)("group.publicSparks","==",!0),(0,x.Xo)("addedToFeedAt","desc"),(0,x.b9)(10)).withConverter((0,u._R)())),w()])];case 1:if(n=(t=l._.apply(void 0,[o.sent(),2]))[0],r=t[1],!n.empty)return[3,3];return[4,m.OK.fetchFeed({numberOfSparks:10,userId:e})];case 2:return[2,o.sent().sparks.map(d.FN.toFirebaseObject)];case 3:return[2,(0,p.iM)({naturalSparks:n.docs.map(function(e){return e.data()}),prioritySparks:r,isFirstPage:!0})]}})}),function(e){return i.apply(this,arguments)}),Z=(a=(0,s._)(function(e){var t,n;return(0,c.Jh)(this,function(r){return(t=e.userId,n=e.countryCode,t)?[2,k(t)]:[2,S(n)]})}),function(e){return a.apply(this,arguments)}),useUserSparks=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(0,f.a)().authenticatedUser,n=(0,j.Z)().userCountryCode,r=(0,l._)((0,g.Z)("userCountryCode",null),2),o=r[0],i=r[1];(0,v.useEffect)(function(){n&&i(n)},[n,i]);var a=getKey(t.email,o),s=(0,b.ZP)(!1===e.enabled?null:a,function(){return Z({userId:t.email,countryCode:o})},{suspense:null==e?void 0:e.suspense,onError:function(e,t){(0,y.LS)(e,{message:"Error fetching user sparks",key:t})}});return{sparks:s.data,isLoading:s.isLoading}},usePrefetchUserSparks=function(){var e=(0,f.a)(),t=e.authenticatedUser,n=e.isLoggedIn;return(0,v.useEffect)(function(){n&&(0,b.MA)(getKey(t.email),function(){return Z({userId:t.email})})},[t.email,n]),null}},21085:function(e,t,n){"use strict";n.d(t,{n:function(){return useRandomItem}});var r=n(2784),subscribe=function(){return function(){}},useRandomItem=function(e){var t=(0,r.useRef)(Math.random()).current;return e[(0,r.useSyncExternalStore)(subscribe,function(){return!0},function(){return!1})?Math.floor(t*e.length):0]}},55315:function(e,t,n){"use strict";n.d(t,{u:function(){return useUserFollowingCompanies}});var r=n(87963),o=n(27534),i=n(89178),a=n(63413),s=n(2784),l=n(45),useUserFollowingCompanies=function(){var e=(0,i.a)().userData,t=(0,l.CU)(),n=(0,r._)((0,s.use
1State)([]),2),c=n[0],u=n[1];return(0,s.useEffect)(function(){if(null==e?void 0:e.id){var n=sessionStorage.getItem("companies-".concat(e.id));n&&u(JSON.parse(n));var r=(0,a.cf)((0,a.IO)((0,a.hJ)(t,"userData",e.id,"companiesUserFollows"),(0,a.Xo)("createdAt","desc")).withConverter((0,o._R)()),function(t){var n,r=(null===(n=t.docs)||void 0===n?void 0:n.map(function(e){return e.data()}))||[];u(r),sessionStorage.setItem("companies-".concat(e.id),JSON.stringify(r))});return function(){r(),u([])}}},[null==e?void 0:e.id,t]),c}},23859:function(e,t,n){"use strict";n.d(t,{b:function(){return VisuallyHiddenPageHeading}});var r=n(52322),o=n(79312),i=n(12048),VisuallyHiddenPageHeading=function(e){var t=e.children;return(0,r.jsx)(o.Z,{component:"h1",sx:i.Z,children:t})}},53232:function(e,t,n){"use strict";n.d(t,{o:function(){return XCircleIcon}});var r=n(24022),o=n(4670),i=n(52322),a=n(5007),XCircleIcon=function(e){return(0,i.jsx)(a.Z,(0,o._)((0,r._)({},e),{children:(0,i.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",children:[(0,i.jsxs)("g",{clipPath:"url(#clip0_19545_25567)",children:[(0,i.jsx)("path",{d:"M9.99935 18.3333C14.6017 18.3333 18.3327 14.6024 18.3327 9.99999C18.3327 5.39762 14.6017 1.66666 9.99935 1.66666C5.39698 1.66666 1.66602 5.39762 1.66602 9.99999C1.66602 14.6024 5.39698 18.3333 9.99935 18.3333Z",fill:"#8E8E8E",stroke:"#8E8E8E",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,i.jsx)("path",{d:"M12.5 7.5L7.5 12.5",stroke:"white",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,i.jsx)("path",{d:"M7.5 7.5L12.5 12.5",stroke:"white",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),(0,i.jsx)("defs",{children:(0,i.jsx)("clipPath",{id:"clip0_19545_25567",children:(0,i.jsx)("rect",{width:"20",height:"20",fill:"white"})})})]})}))}},20108:function(e,t,n){"use strict";n.d(t,{j:function(){return BrandedSearchField}});var r=n(87963),o=n(52322),i=n(42921),a=n(12115),s=n(80422),l=n(69811),c=n(87037),u=n(82056),d=n(58784),p=n(53232),f=n(2784),h=n(32465),m=n(51107),x=n(27866),v=n(83776),g=n(10173),b=(0,v.e)({searchField:{"& .MuiFilledInput-root":{background:function(e){return"".concat(e.brand.white[100]," !important")}},"& .MuiInputBase-root":{p:"4px 12px",height:"48px",borderRadius:"12px",border:function(e){return"1px solid ".concat(e.palette.neutral[50])},background:function(e){return e.brand.white[100]},"&.Mui-focused":{border:function(e){return"1.2px solid ".concat(e.palette.neutral[100])},background:function(e){return e.brand.white[100]}}},"& .MuiInputBase-input":{ml:"8px",p:"0px","&::placeholder":{color:function(e){return e.palette.neutral[600]},opacity:1,fontSize:{xs:"14px",sm:"14px",md:"16px"},fontWeight:"400"}},"& .MuiFilledInput-input":{color:function(e){return e.palette.neutral[800]},fontSize:{xs:"14px",sm:"14px",md:"16px"},fontWeight:"400"}},searchIcon:{color:function(e){return e.palette.neutral[600]},width:"24px",height:"24px",flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center"},optionIcon:{width:"16px",height:"16px"},clearIcon:{width:"24px",height:"24px",flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center","&:hover":{cursor:"pointer"}},dropdownContainer:{position:"relative",width:"100%"},dropdown:{position:"absolute",top:"100%",left:0,right:0,mt:1,maxHeight:"500px",overflow:"auto",borderRadius:"8px",boxShadow:"0px 0px 12px 0px rgba(20, 20, 20, 0.08)",zIndex:function(e){return e.zIndex.appBar-1}},optionItem:{color:function(e){return e.palette.neutral[700]},px:{xs:0,md:1.5},py:1,cursor:"pointer",position:"relative","&:hover":{backgroundColor:function(e){return e.brand.black[100]}},"&.selected":{backgroundColor:function(e){return e.palette.neutral[100]}}},deleteButton:{color:function(e){return e.palette.neutral[200]},width:"24px",height:"24px",padding:"4px","&:hover":{color:function(e){return e.palette.neutral[600]},backgroundColor:function(e){return e.palette.neutral[100]}}}}),Input=function(e){var t=e.value,n=e.onChange,r=e.placeholder,a=e.fullWidth,s=e.onKeyDown,l=e.showStartIcon,c=e.onFocus,u=e.onBlur,d=e.onClear,f=e.autoFocus,m=e["aria-expanded"],x=e["aria-controls"];return(0,o.jsx)(g.Z,{id:"search-field-input",fullWidth:void 0===a||a,placeholder:void 0===r?"Search...":r,sx:b.searchField,autoFocus:void 0!==f&&f,In
1putProps:{startAdornment:void 0===l||l?(0,o.jsx)(i.Z,{component:h.Z,sx:b.searchIcon}):null,endAdornment:(null==t?void 0:t.length)?(0,o.jsx)(i.Z,{sx:b.clearIcon,component:p.o,onClick:function(){n(""),null==d||d()}}):null},inputProps:{"aria-expanded":m,"aria-controls":x,"aria-autocomplete":"list",role:"combobox",autoComplete:"off"},value:t,onChange:function(e){n(e.target.value)},onKeyDown:s,onFocus:c,onBlur:u})},Dropdown=function(e){var t=e.isOpen,n=e.handleClose,r=e.children,i=(0,f.useRef)(null);return((0,x.Z)(i,function(){t&&n()}),t)?(0,o.jsx)(a.Z,{ref:i,sx:b.dropdown,id:"search-field-dropdown",role:"listbox","aria-labelledby":"search-field-input",children:"function"==typeof r?r({close:n}):r}):null},BrandedSearchField=function(e){var t=e.value,n=e.onChange,a=e.placeholder,s=e.fullWidth,l=e.onKeyDown,c=e.showStartIcon,u=e.onFocus,d=e.onBlur,p=e.onClear,h=e.children,m=e.enableDropdown,x=void 0!==m&&m,v=e.autoFocus,g=(0,r._)((0,f.useState)(!1),2),y=g[0],j=g[1];return(0,o.jsxs)(i.Z,{sx:b.dropdownContainer,children:[(0,o.jsx)(Input,{value:t,onChange:function(e){n(e),x&&j(!0)},placeholder:void 0===a?"Search...":a,fullWidth:void 0===s||s,onKeyDown:function(e){"Escape"===e.key&&y&&(j(!1),e.preventDefault()),"Enter"===e.key&&(j(function(e){return!e}),e.preventDefault()),null==l||l(e)},showStartIcon:void 0===c||c,onFocus:function(){x&&j(!0),null==u||u()},onBlur:function(){null==d||d()},onClear:function(){j(!0),null==p||p()},autoFocus:void 0!==v&&v,"aria-expanded":y,"aria-controls":"search-field-dropdown"}),!!x&&(0,o.jsx)(Dropdown,{isOpen:y,handleClose:function(){j(!1)},children:h})]})};BrandedSearchField.Input=Input,BrandedSearchField.DropdownList=function(e){var t=e.onSelect,n=e.options,r=e.startIcon,a=void 0===r?h.Z:r,p=e.onDelete,f=(0,d.Z)(),handleOptionClick=function(e){t(e)},handleDelete=function(e,t){e.stopPropagation(),null==p||p(t)};return(0,o.jsx)(s.Z,{dense:!0,children:n.map(function(e,t){return(0,o.jsxs)(l.ZP,{sx:b.optionItem,onClick:function(){return handleOptionClick(e)},secondaryAction:p?(0,o.jsx)(c.Z,{sx:b.deleteButton,onClick:function(t){return handleDelete(t,e)},children:(0,o.jsx)(m.Z,{size:16})}):null,children:[(0,o.jsx)(i.Z,{component:a,sx:[b.optionIcon,{mr:f?1.5:1}]}),(0,o.jsx)(u.Z,{primary:e,primaryTypographyProps:{fontSize:"16px",fontWeight:"400"}})]},"".concat(e,"-").concat(t))})})}},95830:function(e,t,n){"use strict";n.d(t,{o:function(){return HiredAvatar}});var r=n(52322),o=n(42921),i=n(96577),a=n.n(i),s=(0,n(83776).e)({root:{position:"relative",flexShrink:0},portrait:{position:"relative",width:"100%",height:"100%",borderRadius:"50%",overflow:"hidden",border:"3px solid",borderColor:"primary.main"},badge:{position:"absolute",right:0,bottom:0,borderRadius:"50%",overflow:"hidden",backgroundColor:function(e){return e.brand.white[50]},boxShadow:"0 2px 10px rgba(0, 0, 0, 0.28)"}}),HiredAvatar=function(e){var t=e.photoUrl,n=e.logoUrl,i=e.companyName,l=e.size,c=Math.round(.36*l);return(0,r.jsxs)(o.Z,{sx:s.root,width:l,height:l,children:[(0,r.jsx)(o.Z,{sx:s.portrait,children:(0,r.jsx)(a(),{src:t,alt:"",fill:!0,sizes:"".concat(l,"px"),style:{objectFit:"cover"}})}),(0,r.jsx)(o.Z,{sx:s.badge,width:c,height:c,children:(0,r.jsx)(a(),{src:n,alt:i,fill:!0,sizes:"".concat(c,"px"),style:{objectFit:"cover"}})})]})}},76341:function(e,t,n){"use strict";n.d(t,{Oo:function(){return ChapterForm},tx:function(){return formatSecondsToTime}});var r=n(24022),o=n(4670),i=n(87963),a=n(52322),s=n(6812),l=n(41712),c=n(42921),u=n(38677),d=n(10173),p=n(17661),f=n(2784),h=n(63955),m=n(83776),x=n(65413),v=(0,m.e)({editForm:{border:"1px solid",borderColor:function(e){return e.brand.white[500]},borderRadius:"12px",p:1,display:"flex",flexDirection:"column",gap:1},editFormFields:{display:"flex",flexDirection:"row",gap:.5,width:"100%",alignItems:"flex-start"},chapterNameField:{flexGrow:1,minWidth:0,flexBasis:0,"& .MuiFilledInput-root":{backgroundColor:function(e){return e.brand.white[300]},borderColor:function(e){return e.palette.secondary["100"]}}},timeField:{width:"85px",flexShrink:0,"& .MuiFilledInput-root":{backgroundColor:function(e){return e.brand.white[300]},borderColor:function(e){return e.palette.secondary["100"]}}},editFormActions:{display:"flex",flexDirection:"row",gap:1,justifyContent:{xs:"center",md:"flex-end"},width:"100%"},cancelButton:{color:"neutral.600",px:2,py:1,borderRadius:"18px",flexGrow:{xs:1,md:0},flexBasis:{xs:0,md:"auto"},minWidth:{xs:0,md:"auto"}},saveButton:{backgroundColor:"secondary.main",color:"white",px:2,py:1,borderRadius:"18px",flexGrow:{xs:1,md:0},flexBasis:{xs:0,md:"auto"},width:{xs:"auto",md:"82px"},minWidth:{xs:0,md:"82px"},"&:hover":{backgroundColor:"secondary.dark"}}}),formatSecondsToTime=function(e){var t=Math.floor(e/3600),n=Math.floor(e%3600/60),r=e%60;return t>0?"".concat(t,":").concat(n.toString().padStart(2,"0"),":").concat(r.toString().padStart(2,"0")):"".concat(n,":").concat(r.toString().padStart(2,"0"))},parseTimeToSeconds=function(e){var t=e.trim();if(!t)return NaN;var n=t.split(":");if(n.length<2||n.length>3)return NaN;var r=n.map(Number);if(r.some(function(e){return isNaN(e)||e<0}))return NaN;if(2===n.length){var o=(0,i._)(r,2),a=o[0],s=o[1];return s>=60?NaN:60*a+s}var l=(0,i._)(r,3),c=l[0],u=l[1],d=l[2];return u>=60||d>=60?NaN:3600*c+60*u+d},ChapterFormContent=function(e){var t,n=e.onCancel,r=e.onSave,o=e.isLoading,s=(0,h.Gc)(),m=s.handleSubmit,x=s.watch,g=s.setValue,b=s.formState,y=b.errors,j=b.isValid,C=x("startSec"),w=(0,i._)((0,f.useState)(function(){return formatSecondsToTime(C||0)}),2),S=w[0],k=w[1];(0,f.useEffect)(function(){isNaN(C)||k(formatSecondsToTime(C))},[C]);var handleTimeChange=function(e){k(e),g("startSec",parseTimeToSeconds(e),{shouldValidate:!0})},Z=null===(t=y.startSec)||void 0===t?void 0:t.message;return(0,a.jsxs)(c.Z,{sx:v.editForm,children:[(0,a.jsxs)(c.Z,{sx:v.editFormFields,children:[(0,a.jsx)(p.N,{name:"title",label:"Chapter name",required:!0,InputLabelProps:{required:!1},sx:v.chapterNameField,placeholder:"Add chapter title"}),(0,a.jsx)(d.Z,{label:"Time",required:!0,InputLabelProps:{required:!1},value:S,onChange:function(e){return handleTimeChange(e.target.value)},sx:v.timeField,error:!!Z,helperText:Z})]}),(0,a.jsxs)(c.Z,{sx:v.editFormActions,children:[(0,a.jsx)(u.Z,{variant:"text",onClick:n,sx:v.cancelButton,disabled:o,children:"Cancel"}),(0,a.jsx)(l.Z,{variant:"contained",color:"secondary",onClick:m(r),sx:v.saveButton,loading:o,disabled:!j||o,children:"Save"})]})]})},ChapterForm=function(e){var t=e.onCancel,n=e.onSave,i=e.defaultValues,l=e.isLoading,c=e.maxDuration,u=(0,h.cI)({defaultValues:i||{title:"",startSec:0}
1,resolver:(0,s.X)(x.object({title:x.string().trim().min(3,"Must be at least 3 characters").required("Chapter name is required"),startSec:x.number().typeError("Invalid format").required("Start time is required").test("max","Time exceeds recording duration",function(e){return null==e||void 0===c||0===c||e<=c})})),mode:"onChange"}),d=!!i,p=null==i?void 0:i.title,m=null==i?void 0:i.startSec;return(0,f.useEffect)(function(){d&&u.reset({title:null!=p?p:"",startSec:null!=m?m:0})},[m,p,d,u]),(0,a.jsx)(h.RV,(0,o._)((0,r._)({},u),{children:(0,a.jsx)(ChapterFormContent,{onCancel:t,onSave:n,isLoading:l})}))}},8150:function(e,t,n){"use strict";n.d(t,{r:function(){return CustomJobDialogLayout}});var r=n(87963),o=n(52322),i=n(94509),a=n(11025),s=n(23880),l=n(42921),c=n(87037),u=n(58784),d=n(77091),p=n(51195),f=n(5632),h=n(2784),m=(0,n(83776).e)({profilePaperProps:{position:"fixed",bottom:0,left:0,right:0,margin:"0",width:"100%",maxHeight:"85vh",height:"auto",borderRadius:"12px 12px 0 0"}}),CustomJobDialogLayout=function(e){var t=e.customJobDialogData,n=e.dialogSource,x=void 0===n?"jobsDialog":n,v=e.children,g=e.source,b=e.hideApplicationConfirmation,y=(0,u.Z)(),j=(0,f.useRouter)(),C=j.query,w=j.push,S=j.pathname,k=C[x],Z=(0,r._)(k||[],2)[1],_=(0,h.useMemo)(function(){return(null==t?void 0:t.serverSideCustomJob)?i.F.parseDocument(null==t?void 0:t.serverSideCustomJob,p.oP):null},[null==t?void 0:t.serverSideCustomJob]),I=(0,h.useMemo)(function(){return isCustomJobDialogOpen(C,x)},[C,x]),F=(0,h.useCallback)(function(){delete C[x],w({pathname:S,query:C},void 0,{scroll:!1,shallow:!0})},[S,w,C,x]),E=!!((g.source==a.X.Profile||g.source==a.X.Portal)&&y);return(0,o.jsxs)(o.Fragment,{children:[v,(0,o.jsx)(d.ZP,{serverSideCustomJob:_,customJobId:Z,isOpen:I,onClose:F,source:g,heroContent:y?null:(0,o.jsx)(l.Z,{display:"flex",flexDirection:"row-reverse",p:0,m:0,children:(0,o.jsx)(c.Z,{onClick:F,children:(0,o.jsx)(s.Z,{})})}),heroSx:{m:0,py:"0px !important",px:"10px !important"},paperPropsSx:E?m.profilePaperProps:null,hideApplicationConfirmation:b})]})},isCustomJobDialogOpen=function(e,t){var n=e[t],o=(0,r._)(n||[],2),i=o[0],a=o[1];return!!("jobs"===i&&a)}},35929:function(e,t,n){"use strict";var r=n(52322),o=n(35199),i=n(69811),a=n(42921),s=n(58784),l=n(55006),c=n(63239),u=n(47672),d=n(39097),p=n.n(d),f=n(5632),h=n(83776),m=(0,h.e)({jobListWrapper:{px:{xs:2,md:2},pb:{xs:3,md:3},width:"100%"},jobListItemWrapper:{m:0,p:0}});t.Z=function(e){var t=e.customJobs,n=e.hrefLink,d=e.jobWrapperSx,x=e.jobsGroupNamesMap,v=e.applied,g=(0,s.Z)(),b=(0,f.useRouter)();return(0,r.jsx)(o.Z,{sx:(0,h.E)(m.jobListWrapper,d),spacing:1,children:t.map(function(e,t){return(0,r.jsx)(p(),{href:{pathname:"".concat(n,"/").concat(e.id),query:b.query},shallow:!0,passHref:!0,scroll:!1,legacyBehavior:!0,children:(0,r.jsx)(i.ZP,{sx:m.jobListItemWrapper,children:(0,r.jsx)(l.Z,{fallback:(0,r.jsx)(a.Z,{width:"100%",children:(0,r.jsx)(u.P,{})}),children:(0,r.jsx)(c.Z,{job:e,previewMode:!0,hideJobUrl:!0,smallCard:g,companyName:x[e.id],applied:v})})})},t)})})}},51674:function(e,t,n){"use strict";n.d(t,{Z:function(){return events_preview_RecommendedEvents}});var r=n(52322),o=n(89178),i=n(32670),a=n(24022),s=n(4670),l=n(87963),c=n(22970),u=n(33648),d=n(55044),p=n(3255),f=n(18231),h=n(63761),m=[],usePortalLiveStreams=function(e){var t=e.userEmail,n=e.initialEvents,r=(null==n?void 0:n.length)?{events:n,source:"recommended"}:void 0;return(0,p.ZP)(t?["portal-live-streams",t]:null,(0,i._)(function(){var e,n,r;return(0,c.Jh)(this,function(o){switch(o.label){case 0:return[4,Promise.all([d.hE.getRecommendedEvents(10,t),u.$h.getRegisteredEvents(t)])];case 1:if(n=(e=l._.apply(void 0,[o.sent(),2]))[0],r=e[1],n.length>0)return[2,{events:n,source:"recommended"}];if(r.length>0)return[2,{events:r,source:"registered"}];return[2,{events:m,source:"recommended"}]}})}),(0,s._)((0,a._)({},h.k),{fallbackData:r,suspense:!1,onError:function(e){(0,f.LS)(e,{message:"Failed to fetch portal live streams"})}}))},x=n(42577),v={mainWrapperBoxSx:{mt:2}},g=[],events_preview_RecommendedEvents=function(e){var t,n=e.title,i=e.titleComponent,a=e.initialEvents,s=(0,o.a)(),l=s.authenticatedUser,c=s.isLoadingAuth,u=s.userData,d=usePortalLiveStreams({userEmail:l.email,initialEvents:a}),p=d.data,f=d.isLoading,h=null!==(t=null==p?void 0:p.events)&&void 0!==t?t:g;return c||f||0!==h.length?(0,r.jsx)(x.Z,{title:n,titleComponent:i,events:h,location:(null==p?void 0:p.source)==="registered"?"portal-registered-livestreams-carousel":"portal-recommended-livestreams-carousel",loading:0===h.length&&(c||f),isRecommended:(null==p?void 0:p.source)!=="registered",isAdmin:null==u?void 0:u.isAdmin,styling:v,seeMoreLink:(null==p?void 0:p.source)==="registered"?"/next-livestreams/my-registrations":void 0}):null}},46951:function(e,t,n){"use strict";n.d(t,{Z:function(){return formatLivestreamsEvents}});var formatLivestreamsEvents=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return arguments.length>1&&void 0!==arguments[1]&&arguments[1],e}},42390:function(e,t,n){"use strict";n.d(t,{X$:function(){return SearchProvider},AB:function(){return useSearchContext}});var r=n(24022),o=n(4670),i=n(83286),a=n(87963),s=n(52322),l=n(24808),c=n(5632),u=n(2784),d=n(73509),p=n(32383),f=n(53691),usePersistentState=function(e,t){var n=(0,a._)((0,f.Z)(e,t),2),r=n[0],o=n[1],i=(0,a._)((0,u.useState)(null!=r?r:t),2),s=i[0],l=i[1];return(0,u.useEffect)(function(){o(s)},[s,o]),[s,l]},useRecentSearches=function(){var e=(0,a._)(usePersistentState(p.sF,[]),2),t=e[0],n=e[1];return{recentSearches:t||[],addRecentSearch:(0,u.useCallback)(function(e){n(function(t){var n=t.filter(function(t){return t!==e});return[e].concat((0,d._)(n)).slice(0,5)})},[n]),removeRecentSearch:(0,u.useCallback)(function(e){n(function(t){return t.filter(function(t){return t!==e})})},[n]),clearRecentSearches:(0,u.useCallback)(function(){n([])},[n])}},h=(0,u.createContext)(void 0),SearchProvider=function(e){var t=e.children,n=(0,a._)((0,u.useState)(""),2),d=n[0],p=n[1],f=(0,a._)((0,u.useState)("all"),2),m=f[0],x=f[1],v=(0,c.useRouter)(),g=v.query,b=v.push,y=v.pathname,j=v.isReady,C=useRecentSearches(),w=C.recentSearches,S=C.addRecentSearch,k=C.removeRecentSearch,Z=C.clearRecentSearches,_=g.selectedLivestreamId||null,I=g.selectedJobId||null;(0,u.useEffect)(function(){if(g.q){var e=Array.isArray(g.q)?g.q[0]:g.q;e&&p(e)}if(g.tab){var t=Array.isArray(g.tab)?g.tab[0]:g.tab;t&&x(t)}},[j,g.q,g.tab]);var F=(0,u.useCallback)(function(e){if(e.trim().length>0){var t=e.trim();S(t),b("/portal/search?q=".concat(encodeURIComponent(t)))}},[b,S]),E=(0,u.useCallback)(function(e){e.length>0&&(p(e),F(e))},[F]),T=(0,u.useCallback)(function(e,t){var n=(0,r._)({},g);t.length>0?n[e]=t.join(","):delete n[e],b({pathname:y,query:n},void 0,{shallow:!0})},[g,b,y]),L=(0,u.useCallback)(function(e){return(0,l.N3)(g[e])},[g]),D=(0,u.useCallback)(function(e){b({pathname:y,query:(0,o._)((0,r._)({},g),{selectedLivestreamId:e})},void 0,{shallow:!0})},[g,b,y]),P=(0,u.useCallback)(function(){g.selectedLivestreamId,b({pathname:y,query:(0,i._)(g,["selectedLivestreamId"])},void 0,{shallow:!0})},[g,b,y]),R=(0,u.useCallback)(function(e){b({pathname:y,query:(0,o._)((0,r._)({},g),{selectedJobId:e})},void 0,{shallow:!0})},[g,b,y]),O=(0,u.useCallback)(function(){g.selectedJobId,b({pathname:y,query:(0,i._)(g,["selectedJobId"])},void 0,{shallow:!0})},[g,b,y]),A=(0,u.useCallback)(function(e,t){x(t);var n=(0,r._)({},g);"all"===t?delete n.tab:n.tab=t,b({pathname:y,query:n},void 0,{shallow:!0})},[g,b,y]),W=(0,u.useMemo)(function(){return{searchQuery:d,setSearchQuery:p,handleDropdownSelect:E,recentSearches:w,removeRecentSearch:k,clearRecentSearches:Z,handleSearchSubmit:F,handleFilterSelect:T,getFilterValues:L,selectedLivestreamId:_,handleOpenLivestreamDialog:D,handleCloseLivestreamDialog:P,selectedJobId:I,handleOpenJobDialog:R,handleCloseJobDialog:O,currentTab:m,setCurrentTab:x,handleTabChange:A}},[d,p,E,w,k,Z,F,T,L,_,D,P,I,R,O,m,x,A]);return(0,s.jsx)(h.Provider,{value:W,children:t})},useSearchContext=function(){var e=(0,u.useContext)(h);if(!e)throw Error("useSearchContext must be used within a SearchContextProvider");return e}},68891:function(e,t,n){"use strict";n.d(t,{U:function(){return SearchField}});var r=n(24022),o=n(87963),i=n(52322),a=n(47746),s=n(42921),l=n(35199),c=n(79312),u=n(58784),d=n(65239),p=n(59903),f=n(5632),h=n(2784),m=n(95157),x=n(10341),v=n(83776),g=n(20108),b=n(42390),y=(0,v.e)({backStack:{flexDirection:"row",justifyContent:"space-between",alignItems:"center",gap:1},backButton:{fontSize:24,color:"neutral.800",display:"flex",cursor:"pointer"}}),SearchField=function(e){var t=e.type,n=void 0===t?"main":t,c=(0,b.AB)(),x=c.searchQuery,v=c.setSearchQuery,j=c.handleSearchSubmit,C=c.handleDropdownSelect,w=(0,u.Z)(),S=(0,a.Z)(),k=(0,f.useRouter)(),Z=(0,o._)((0,h.useState)("idle"),2),_=Z[0],I=Z[1],F="idle"!==_,E="opening"===_||"open"===_,T="closing"===_,L="open"===_,D="open"===_||"opening"===_,P=w&&F&&!T,createFullScreenStyle=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,r._)({position:"fixed",top:0,left:0,right:0,bottom:0,backgroundColor:"#F7F8FC",zIndex:e},t)},R=createFullScreenStyle(S.zIndex.drawer,{display:"flex",flexDirection:"column",padding:"20px"}),O=createFullScreenStyle(S.zIndex.drawer-1,{pointerEvents:"none"}),A=(0,h.useCallback)(function(){w&&I("opening")},[w]),W=(0,h.useCallback)(function(){I("closing")},[]),M=(0,h.useCallback)(function(){"opening"===_&&I("open")},[_]),J=(0,h.useCallback)(function(){"closing"===_&&I("idle")},[_]),N=(0,h.useCallback)(function(){W()},[W]),B=(0,h.useCallback)(function(e){C(e),N()},[C,N]),U=(0,h.useCallback)(function(e){e.trim().length>0&&(j(e),N())},[j,N]),q=(0,h.useCallback)(function(e){"Enter"===e.key&&x.trim().length>0&&U(x)},[U,x]);return(0,i.jsxs)(s.Z,{sx:{position:"relative",width:"100%",mx:"auto"},children:[(0,i.jsx)(d.M,{children:!!P&&(0,i.jsx)(p.E.div,{initial:{opacity:0}
1,animate:{opacity:1},exit:{opacity:0},transition:{duration:.25},style:O})}),(0,i.jsx)(d.M,{children:!!E&&(0,i.jsxs)(p.E.div,{role:"dialog","aria-modal":"true","aria-labelledby":"search-drawer-title","aria-describedby":"search-drawer-description",initial:{opacity:0,x:0},animate:{opacity:1,x:0},transition:{duration:.25},onAnimationComplete:M,style:R,children:[!!D&&(0,i.jsx)(p.E.div,{initial:{opacity:0},animate:{opacity:1},transition:{duration:.075},children:(0,i.jsxs)(l.Z,{sx:[y.backStack,{mb:3}],children:[(0,i.jsx)(s.Z,{component:m.Z,sx:y.backButton,onClick:N}),(0,i.jsx)(s.Z,{sx:{flex:1},children:(0,i.jsx)(p.E.div,{layoutId:"search-field",style:{width:"100%"},transition:{layout:"opening"!==_?{duration:0,ease:"linear"}:{duration:.25,ease:[.4,0,.2,1]}},children:(0,i.jsx)(g.j,{value:x,onChange:v,placeholder:"What are you looking for?",showStartIcon:!1,autoFocus:!0,onKeyDown:q})})})]})}),(0,i.jsx)(d.M,{children:!!L&&(0,i.jsxs)(p.E.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.125},children:[(0,i.jsx)(RecentSearches,{onOptionSelect:B}),(0,i.jsx)(SuggestedSearches,{onOptionSelect:B})]})})]})}),(0,i.jsx)(p.E.div,{layoutId:"search-field",style:{position:"relative",width:"100%"},transition:{layout:"opening"!==_?{duration:0,ease:"linear"}:{duration:.25,ease:[.4,0,.2,1]}},onAnimationComplete:J,children:(0,i.jsxs)(l.Z,{sx:[y.backStack,{mx:w?1.5:0}],children:[w&&"backButton"===n?(0,i.jsx)(s.Z,{component:m.Z,sx:y.backButton,onClick:function(){k.push("/portal")}}):null,(0,i.jsx)(s.Z,{sx:{mx:w?0:2,mt:w?0:2,flex:1},children:(0,i.jsx)(g.j,{value:x,onChange:v,placeholder:"What are you looking for?",onFocus:A,onClear:A,enableDropdown:!w,showStartIcon:"main"===n||"backButton"===n&&!w,onKeyDown:q,children:function(e){var t=e.close;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(RecentSearches,{onOptionSelect:function(e){B(e),t()}}),(0,i.jsx)(SuggestedSearches,{onOptionSelect:function(e){B(e),t()}})]})}})})]})})]})},RecentSearches=function(e){var t=e.onOptionSelect,n=(0,u.Z)(),r=(0,b.AB)(),o=r.recentSearches,a=r.removeRecentSearch;return 0===o.length?null:(0,i.jsxs)(s.Z,{sx:{mb:n?1:1.5},children:[(0,i.jsx)(s.Z,{sx:{px:n?0:1.5,pt:n?1:1.5},children:(0,i.jsx)(c.Z,{variant:"brandedBody",color:"neutral.800",fontWeight:600,children:"Recent searches"})}),(0,i.jsx)(g.j.DropdownList,{onSelect:t,options:o,startIcon:x.Z,onDelete:a,showDeleteButtons:!0})]})},j=["Application Process","Engineering","Consulting","Internships","Automotive"],SuggestedSearches=function(e){var t=e.onOptionSelect,n=(0,u.Z)();return(0,i.jsxs)(s.Z,{children:[(0,i.jsx)(s.Z,{sx:{px:n?0:1.5,pt:n?1:1.5},children:(0,i.jsx)(c.Z,{variant:"brandedBody",color:"neutral.800",fontWeight:600,children:"Suggested searches"})}),(0,i.jsx)(g.j.DropdownList,{onSelect:t,options:j})]})}},47672:function(e,t,n){"use strict";n.d(t,{P:function(){return JobCardSkeleton},S:function(){return JobListSkeleton}});var r=n(52322),o=n(35199),i=n(42921),a=n(21647),s=n(79312),l=(0,n(83776).e)({jobList:{gap:1.5},jobCard:function(e){return{display:"flex",alignItems:"center",alignSelf:"stretch",borderRadius:2,border:"1px solid ".concat(e.brand.white[500]),background:e.brand.white[100],overflow:"hidden"}},jobCardSideWrapper:{alignSelf:"stretch",display:"flex"},jobCardSide:{height:"100%",width:"8px",bgcolor:function(e){return e.palette.primary[300]}},jobInfo:{display:"flex",padding:1.5,flexDirection:"column",gap:1,flex:"1 0 0",alignSelf:"stretch"},jobTitle:{alignSelf:"stretch"},jobIconsSection:{display:"flex",flexDirection:"column",alignItems:"flex-start",spacing:.25,alignSelf:"stretch"},jobIconWrapper:{display:"flex",alignItems:"center",gap:.75,alignSelf:"stretch",color:function(e){return e.palette.neutral[500]}},bottomText:{display:"flex",alignItems:"center",gap:.75,alignSelf:"stretch"},applyText:{display:"flex",height:"24px",flexDirection:"column",justifyContent:"center",flex:"1 0 0"},seeMore:{textAlign:"right",textOverflow:"ellipsis",padding:0}}),JobListSkeleton=function(){return(0,r.jsxs)(o.Z,{sx:l.jobList,children:[(0,r.jsx)(JobCardSkeleton,{}),(0,r.jsx)(JobCardSkeleton,{})]})},JobCardSkeleton=function(){return(0,r.jsxs)(i.Z,{sx:l.jobCard,children:[(0,r.jsx)(i.Z,{sx:l.jobCardSideWrapper,children:(0,r.jsx)(a.Z,{variant:"rectangular",sx:l.jobCardSide})}),(0,r.jsx)(i.Z,{sx:l.jobInfo,children:(0,r.jsxs)(o.Z,{spacing:1,children:[(0,r.jsxs)(o.Z,{children:[(0,r.jsx)(s.Z,{variant:"brandedBody",children:(0,r.jsx)(a.Z,{variant:"rounded",width:200,sx:l.jobTitle})}),(0,r.jsx)(o.Z,{sx:l.jobIconsSection,children:(0,r.jsxs)(i.Z,{sx:l.jobIconWrapper,children:[(0,r.jsx)(a.Z,{variant:"circular",width:12,height:12}),(0,r.jsx)(s.Z,{variant:"small",children:(0,r.jsx)(a.Z,{variant:"text",width:100})})]})})]}),(0,r.jsxs)(i.Z,{sx:l.bottomText,children:[(0,r.jsx)(s.Z,{variant:"xsmall",sx:l.applyText,children:(0,r.jsx)(a.Z,{variant:"text",width:"120px"})}),(0,r.jsx)(s.Z,{variant:"xsmall",children:(0,r.jsx)(a.Z,{variant:"text",width:"50px",sx:l.seeMore})})]})]})})]})}},68810:function(e,t,n){"use strict";n.d(t,{I:function(){return TagsCarouselSkeleton}});var r=n(52322),o=n(35199),i=n(42921),a=n(21647),s=(0,n(83776).e)({contentWrapper:{display:"flex",flexDirection:"row",width:"-webkit-fill-available"},skeletonChip:{height:32,width:{xs:60,sm:80},borderRadius:16,flexShrink:0},skeletonWrapper:{overflowX:"auto",width:"100%","&::-webkit-scrollbar":{display:"none"},msOverflowStyle:"none",scrollbarWidth:"none"}}),TagsCarouselSkeleton=function(){return(0,r.jsx)(o.Z,{spacing:1.25,direction:"row",mb:3,children:(0,r.jsx)(i.Z,{sx:s.contentWrapper,pr:3,children:(0,r.jsx)(i.Z,{sx:s.skeletonWrapper,children:(0,r.jsx)(o.Z,{direction:"row",spacing:"12px",pl:2,pr:2,children:Array.from({length:18}).map(function(e,t){return(0,r.jsx)(a.Z,{variant:"rounded",sx:s.skeletonChip},t)})})})})})}},90361:function(e,t,n){"use strict";n.d(t,{x:function(){return i}});var r="https://firebasestorage.googleapis.com/v0/b/careerfairy-e1fd9.appspot.com/o/testimonials",o="https://firebasestorage.googleapis.com/v0/b/careerfairy-e1fd9.appspot.com/o/groups",i=[{id:"anton-yang-danfoss",student:{firstName:"Anton",lastName:"Yang",photoUrl:"".concat(r,"%2Fanton-young.jpeg?alt=media&token=d8fb4441-b58e-4f71-b380-bdb14084e3e9"),university:"ETH Z\xfcrich"},role:"Global Postgraduate",company:{name:"Danfoss",logoUrl:"".concat(o,"%2F
1hICGeEdA7QzSJqAyuNun%2Flogos%2Fec0522e0-b53b-4917-b8b6-e98c3a097062.png?alt=media&token=fc1cdd8b-937b-489b-9ae5-59e0e0e796be")},groupId:"hICGeEdA7QzSJqAyuNun",quote:"I could ask the Danfoss team questions, hear their candid experiences and rewatch the Live Stream while applying. It really helped me personalise my application.",livestream:{id:"WVfLVqNlHsI4iBZyDwJy",title:"Start your sustainable career with the Danfoss Postgraduate Program"}},{id:"michel-gysin-grant-thornton",student:{firstName:"Michel",lastName:"Gysin",photoUrl:"".concat(r,"%2Fmichel-gysin.png?alt=media&token=e788ea00-4673-4c57-80b5-f598c623b9a7"),university:"FHNW - Fachhochschule Nordwestschweiz"},role:"Junior Assistant, Audit",company:{name:"Grant Thornton",logoUrl:"".concat(o,"%2F1dGZnHVaeYaz1KuLHvei%2Flogos%2Fc3d3a918-27ab-4c33-90ae-4040aeefb7f7.png?alt=media&token=9b4726c4-02d2-49e8-aaaf-64531130a38b")},groupId:"1dGZnHVaeYaz1KuLHvei",quote:"I connected with the Grant Thornton recruiter through CareerFairy Live Streams. I was ultimately able to secure a position within the Audit Team at Grant Thornton and accomplish my career change",livestream:{id:"qxGfiqwsbKPq9qfUcCXq",title:"Wie zwei junge Audit-Profis den Arbeitsalltag meistern"}},{id:"ines-moura-lgt-private-banking",student:{firstName:"In\xeas",lastName:"Moura",photoUrl:"".concat(r,"%2Fines-moura.jpeg?alt=media&token=8dc0d775-b662-4b75-9bff-287cbaebbdd9"),university:"University of St. Gallen"},role:"Fund Solutions Manager",company:{name:"LGT Private Banking",logoUrl:"".concat(o,"%2FSGdFWPWiv7RUTGKthZ9k%2Flogos%2Fe531fe5b-846c-481b-b89b-40521dac77c2.png?alt=media&token=fee9b830-d7d3-4c25-a8e6-a783fd5fb7ab")},groupId:"SGdFWPWiv7RUTGKthZ9k",quote:"I was able to directly connect with previous graduates in the LGT team on a CareerFairy Live Stream and engage in an insightful Q&A session. This helped me make an informed decision, and eventually join the team!",livestream:{id:"IYVONlHGM4WnI5K15aea",title:"Starte deine Karriere mit dem LGT Graduate Programm"}},{id:"abishan-arumugavel-loreal",student:{firstName:"Abishan",lastName:"Arumugavel",photoUrl:"".concat(r,"%2Fabishan.webp?alt=media&token=62f72399-08e4-4676-83f0-df2fcefea29b"),university:"HSLU"},role:"Data Scientist",company:{name:"BKW",logoUrl:"".concat(o,"%2FdgM2NzToEWXC3U6dR2Cl%2Flogos%2Fb76e7098-05d4-465c-90d7-56c56ee11b05.png?alt=media&token=cac9e644-073b-4524-a3d0-308cb2a8e5cd")},groupId:"dgM2NzToEWXC3U6dR2Cl",quote:"The CareerFairy Live Stream gave me a clear understanding of the job and a deeper insight into BKW. This helped me ultimately join the BKW team!",livestream:{id:"PK3pKZKUCgcYrNvmuBCX",title:"Gestalte die Energiewende zusammen mit BKW: Einblicke in die Arbeit von BKW Power Grid"}},{id:"amelie-harbich-julius-bar",student:{firstName:"Amelie",lastName:"Harbich",photoUrl:"".concat(r,"%2Famelie-jb.jpeg?alt=media&token=4bb014e5-d6fc-42b9-a8de-903ea19c6bc1"),university:"University of Geneva & HSG"},role:"Graduate FX & PM PB Sales",company:{name:"Julius B\xe4r",logoUrl:"".concat(o,"%2FtkZLbG66n6FdDs6EcyIo%2Flogos%2F6e5e05cd-e1e0-4a71-b76e-6edad283776f.png?alt=media&token=c28dd011-d553-4300-b8be-971e8332ba8e")},groupId:"tkZLbG66n6FdDs6EcyIo",quote:"I joined a CareerFairy Live Stream just before starting my application. Hearing from current graduates share their experiences helped me understand what the bank was looking for and gave me more confidence when applying.",livestream:{id:"Z4P8srx84MGg5MN8nbxY",title:"Meet Julius Baer - Explore our Graduate opportunities 2025"}},{id:"esmee-huijten-axpo",student:{firstName:"Esmee",lastName:"Huijten",photoUrl:"".concat(r,"%2Fesmee-huijten.jpeg?alt=media&token=4044694f-cda9-406e-9d13-565f78e9ff9c"),university:"ETH Z\xfcrich"},role:"Junior Optimization Manager",company:{name:"Axpo",logoUrl:"".concat(o,"%2FKTaGGOPeMgs34KMLuZZv%2Flogos%2Ff0d49bb0-c758-4af4-8fa6-a4b4ae54bd82.png?alt=media&token=ee1595cb-7db5-4ed0-b2c8-6c4cf4b8d0eb")},groupId:"KTaGGOPeMgs34KMLuZZv",quote:"CareerFairy was great for discovering more about companies that I didn’t know much about. With Spark Videos & Live streams, I was able to figure out if they are a good match for me",livestream:{id:"n82e3VMYyNJPtUSZMd
1R2",title:"Digitalizing the energy sector"}},{id:"joaquim-decouvelaere-nestle",student:{firstName:"Joaquim",lastName:"Decouvelaere",photoUrl:"".concat(r,"%2Fjoaquim-decouvelaere.png?alt=media&token=dac5748c-fcd3-4f0c-bd38-2c2e7fea6645"),university:"EPFL & ETHZ"},role:"Manufacturing Projects Intern",company:{name:"Nestl\xe9",logoUrl:"".concat(o,"%2FCDsb5v08tGhFikXvGDw4%2Flogos%2Fe9109c9f-2cb8-4c4b-9466-cff75777fa2a.png?alt=media&token=fe75fa9a-155c-4eba-af5e-299d3fd9ebef")},groupId:"CDsb5v08tGhFikXvGDw4",quote:"The Nestl\xe9 team on the Live Stream was easy to connect with and willing to answer all our questions openly which helped me land an internship in Switzerland",livestream:{id:"bnwteMjKrONNThlhcft1",title:"Land a Nestl\xe9 internship in Switzerland"}}]},69922:function(e,t,n){"use strict";n.d(t,{Lf:function(){return h}});var r=n(32670),o=n(43612),i=n(24022),a=n(4670),s=n(22970),l=n(27534),c=n(14579),u=n(63413),d=n(63293),p=n(29488),f=n(51195),h=new(function(){function OfflineEventService(e){(0,o._)(this,OfflineEventService),this.firestore=e}var e=OfflineEventService.prototype;return e.createOfflineEvent=function(e,t){var n=this;return(0,r._)(function(){var r,o,c;return(0,s.Jh)(this,function(s){switch(s.label){case 0:return r=(0,u.JU)((0,u.hJ)(n.firestore,"offlineEvents")).withConverter((0,l._R)()),o=u.EK.now(),c=(0,a._)((0,i._)({},e),{id:r.id,author:t,createdAt:o,updatedAt:o,lastUpdatedBy:t}),[4,(0,u.pl)(r,c)];case 1:return s.sent(),[2,r.id]}})})()},e.updateOfflineEvent=function(e,t){var n=this;return(0,r._)(function(){var r,o;return(0,s.Jh)(this,function(s){switch(s.label){case 0:if(!e.id)throw Error("Offline event ID is required for update");return r=(0,u.JU)(n.firestore,"offlineEvents",e.id).withConverter((0,l._R)()),o=(0,a._)((0,i._)({},e),{lastUpdatedBy:t,updatedAt:u.EK.now()}),[4,(0,u.r7)(r,o)];case 1:return s.sent(),[2]}})})()},e.deleteOfflineEvent=function(e){var t=this;return(0,r._)(function(){var n;return(0,s.Jh)(this,function(r){switch(r.label){case 0:return n=(0,u.JU)(t.firestore,"offlineEvents",e),[4,(0,u.oe)(n)];case 1:return r.sent(),[2]}})})()},e.getById=function(e){var t=this;return(0,r._)(function(){var n,r;return(0,s.Jh)(this,function(o){switch(o.label){case 0:return n=(0,u.JU)(t.firestore,"offlineEvents",e).withConverter((0,l._R)()),[4,(0,u.QT)(n)];case 1:return[2,(r=o.sent()).exists()?r.data():null]}})})()},e.decreaseGroupAvailableOfflineEvents=function(e){var t=this;return(0,r._)(function(){var n;return(0,s.Jh)(this,function(r){switch(r.label){case 0:return n=(0,u.JU)(t.firestore,"careerCenterData",e),[4,(0,u.r7)(n,{availableOfflineEvents:(0,u.nP)(-1)})];case 1:return r.sent(),[2]}})})()},e.getOfflineEvents=function(e){return(0,r._)(function(){var t,n,r;return(0,s.Jh)(this,function(o){switch(o.label){case 0:return o.trys.push([0,3,,4]),t=new URLSearchParams,(null==e?void 0:e.stateIsoCode)&&(null==e?void 0:e.countryIsoCode)&&(t.append("stateCode",e.stateIsoCode),t.append("countryCode",e.countryIsoCode)),n="/api/offline-events/nearby".concat(t.toString()?"?".concat(t.toString()):""),[4,fetch(n)];case 1:if(!(r=o.sent()).ok)return console.error("API request failed with status: ".concat(r.status)),[2,[]];return[4,r.json()];case 2:return[2,o.sent().map(p.C)];case 3:return console.error("Error fetching offline events by location:",o.sent()),[2,[]];case 4:return[2]}})})()},e.getOfflineEventStats=function(e){var t=this;return(0,r._)(function(){var n,r;return(0,s.Jh)(this,function(o){switch(o.label){case 0:return n=(0,u.JU)(t.firestore,"offlineEventStats",e).withConverter((0,l._R)()),[4,(0,u.QT)(n)];case 1:return[2,(r=o.sent()).exists()?r.data():null]}})})()},e.getClosestFutureOfflineEventStatsFromDate=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Date,n=this;return(0,r._)(function(){var r,o;return(0,s.Jh)(this,function(i){switch(i.label){case 0:return o=(0,u.IO)((0,u.hJ)(n.firestore,"offlineEventStats"),(0,u.ar)("offlineEvent.group.id","==",e),(0,u.ar)("offlineEvent.startAt",">",t),(0,u.ar)("offlineEvent.published","==",!0),(0,u.Xo)("offlineEvent.startAt","asc"),(0,u.ar)("deleted","==",!1),(0,u.b9)(1)).withConverter((0,l._R)()),[4,(0,u.PL)(o)];case 1:return[2,(null===(r=i.sent().docs[0])||void 0===r?void 0:r.data())||null]}})})()},e.getClosestPastOfflineEventStatsFromDate=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Date,n=this;return(0,r._)(function(){var r,o;return(0,s.Jh)(this,function(i){switch(i.label){case 0:return o=(0,u.IO)((0,u.hJ)(n.firestore,"offlineEventStats"),(0,u.ar)("offlineEvent.group.id","==",e),(0,u.ar)("offlineEvent.
1startAt","<",t),(0,u.ar)("offlineEvent.published","==",!0),(0,u.Xo)("offlineEvent.startAt","desc"),(0,u.ar)("deleted","==",!1),(0,u.b9)(1)).withConverter((0,l._R)()),[4,(0,u.PL)(o)];case 1:return[2,(null===(r=i.sent().docs[0])||void 0===r?void 0:r.data())||null]}})})()},e.getFutureAndPublishedOfflineEventStats=function(e){var t=this;return(0,r._)(function(){var n;return(0,s.Jh)(this,function(r){switch(r.label){case 0:return n=(0,u.IO)((0,u.hJ)(t.firestore,"offlineEventStats"),(0,u.ar)("offlineEvent.group.id","==",e),(0,u.ar)("offlineEvent.startAt",">",new Date),(0,u.ar)("offlineEvent.published","==",!0),(0,u.ar)("deleted","==",!1),(0,u.Xo)("offlineEvent.startAt","asc")).withConverter((0,l._R)()),[4,(0,u.PL)(n)];case 1:return[2,r.sent().docs.map(function(e){return e.data()})]}})})()},e.trackOfflineEventAction=function(e,t,n,o){return(0,r._)(function(){var r;return(0,s.Jh)(this,function(a){switch(a.label){case 0:return r="object"==typeof n,[4,(0,d.V1)(f.M8,c.G.trackOfflineEventAction)((0,i._)({offlineEventId:e,actionType:t,utm:o},r?{userData:n}:{fingerprint:n}))];case 1:return a.sent(),[2]}})})()},OfflineEventService}())(f.O)},7591:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSP:function(){return tH},default:function(){return _livestreamDialog_}});var r,o,i=n(20606),a=n(24022),s=n(4670),l=n(87963),c=n(52322),u=n(42921),d=n(79312),p=n(86617),f=n(25237),h=n.n(f),m=n(5632),x=n(2784),v=n(1103),g=n(87438),b=n(89178),y=n(73509),j=n(92207),C=n(52883),w=n(33648),S=n(42577),k=n(46951),Z={suspense:!1,initialData:[]},_={mainWrapperBoxSx:{mt:2}},events_preview_ComingUpNextEvents=function(e){var t=e.limit,n=e.serverSideEvents,r=e.title,o=e.titleComponent,i=(0,b.a)().isLoggedIn,s=(0,m.useRouter)().query.livestreamId,u=(0,l._)((0,x.useState)(n),2),d=u[0],p=u[1],f=(0,l._)((0,x.useState)(null),2),h=f[0],v=f[1],g=(0,x.useMemo)(function(){return w.$h.upcomingEventsQuery(void 0,i?t:80)},[i,t]),I=(0,C.L)(g,Z).data;return(0,x.useEffect)(function(){if(s){var e=w.$h.listenToSingleEvent(s,function(e){v(e.exists?(0,a._)({id:e.id},e.data()):null)});return function(){return e()}}},[s]),(0,x.useEffect)(function(){var e=!d.length||(null==I?void 0:I.length)?new j.W(I).filterByNotEndedEvents().get():(0,y._)(d),t=e.find(function(e){return e.id===(null==h?void 0:h.id)});t&&e.filter(function(e){return e.id===t.id}),h&&e.unshift(h),p(e||[])},[h,I]),(0,c.jsx)(S.Z,{id:"upcoming-events",title:r||"Upcoming live streams",titleComponent:o,location:"portal-next-livestreams-carousel",events:(0,k.Z)(d),seeMoreLink:"/next-livestreams",isRecommended:!0,styling:_})},I=n(51674),events_preview_PortalLiveStreamsSection=function(e){var t=e.title,n=e.titleComponent,r=e.serverSideEvents,o=(0,b.a)(),i=o.isLoadingAuth,a=o.isLoggedIn;return(0,g.Z)()()&&!i&&a?(0,c.jsx)(I.Z,{title:t,titleComponent:n,initialEvents:r}):(0,c.jsx)(events_preview_ComingUpNextEvents,{title:t,titleComponent:n,serverSideEvents:r,limit:20})},F=n(1964),E=n(72430),T=n(11025),L=n(20500),D=n(64688),P=n(3255),R=n(18231),O=n(63761),A=(0,s._)((0,a._)({},O.k),{keepPreviousData:!0,suspense:!1,onError:function(e,t){return(0,R.LS)(e,{message:"Error fetching tags content hits: ".concat(t)})}}),useTagsContentHits=function(){var e=(0,O.Z)();return(0,P.ZP)(["fetchTagsContentHits",{}],e,A)},useAvailableTagsByHits=function(){var e=(0,b.a)(),t=e.isLoggedIn,n=e.userData,r=useTagsContentHits(),o=r.data,i=r.isLoading,a=(null==o?void 0:o.businessFunctions.hits)||[],s=(null==o?void 0:o.contentTopics.hits)||[],l=D.PN.filter(function(e){var t=a[e.id];return t&&shouldShowBusinessFunctionTagByCount(t.count,6)}),c=D.Ci.filter(function(e){var t=s[e.id];return t&&shouldShowContentTopicTagByCount(t.count,6,6)});return{tags:sortByUserInterests((0,y._)(l).concat((0,y._)(c)),n,t),isLoading:i}},sortByUserInterests=function(e,t,n){if((null==e?void 0:e.length)===0)return[];var r=(0,D.Wp)(e.map(function(e){return e.id})),o=createGroupedOptionGroupGetter(r.businessFunctions),i=createGroupedOptionGroupGetter(r.contentTopics),a=createGroupedOptionGroupGetter(r.language),s=Object.keys(r.businessFunctions||[]),l=Object.keys(r.contentTopics||[]),c=Object.keys(r.language||[]),u=sortTags(((null==t?void 0:t.businessFunctionsTagIds)||[]).concat((null==t?void 0:t.contentTopicsTagIds)||[]),function(e){return s.includes(e)?o(e):i(e)}
1).filter(Boolean),d=sortTags(s.filter(function(e){return!u.find(function(t){return t.id==e})}),o),p=sortTags(l.filter(function(e){return!u.find(function(t){return t.id==e})}),i),f=sortTags(c,a);return n?u.concat(p).concat(d).concat(f):p.concat(d).concat(f)},createGroupedOptionGroupGetter=function(e){return function(t){return e[t]}},sortTags=function(e,t){return e.map(t).sort(alphabeticalSort)},alphabeticalSort=function(e,t){return e.name.localeCompare(t.name)},shouldShowBusinessFunctionTagByCount=function(e,t){return e.livestreams>t},shouldShowContentTopicTagByCount=function(e,t,n){return e.livestreams>t&&e.sparks>n},W=n(58784),M=n(36757),J=n(40669),N=n(35199),B=n(55006),U=n(38677),q=n(39660),H=n(46655),G=n(5566),z=n(35929),V=n(89150),K=n(44472),X=n(63239),Q=n(61387),Y=n(47672),$=n(12739),ee=n(4213),et=n(14647),en=n(39097),er=n.n(en),eo=n(83776),ei=n(33743),ea=n(21542),es=(0,eo.e)({wrapper:{m:0,p:0},carouselContainer:{pl:{xs:2,md:2},pb:{xs:3,md:3}},jobListWrapper:{px:{xs:2,md:2},pb:{xs:3,md:3},width:"100%",height:"250px"},headerRight:{pr:2},contentCarouselContainer:{position:"static"}}),RecommendedCustomJobs=function(e){var t=e.userCountryCode,n=e.serverSideJobs;return(0,c.jsx)(N.Z,{spacing:0,sx:es.wrapper,id:"highlighted-jobs",children:(0,c.jsx)(Content,{userCountryCode:t,serverSideJobs:n})})},toCardJob=function(e){return(0,ei.qN)(e)},Content=function(e){var t=e.userCountryCode,n=e.serverSideJobs,r=(0,m.useRouter)(),o=(0,b.a)().isLoggedIn,i=(0,V.E)({limit:10,countryCode:t}),a=i.data,s=i.isLoading,p=(0,x.useMemo)(function(){var e;return null!==(e=null==n?void 0:n.map(toCardJob))&&void 0!==e?e:[]},[n]),f=(null==a?void 0:a.length)?a:p,h=(0,l._)((0,$.Z)({loop:!1,axis:"x",dragFree:!0,skipSnaps:!0},[(0,ee.Y)()]),2),v=h[0],g=h[1];return s&&!f.length?(0,c.jsx)(RecommendedCustomJobsSkeleton,{}):f.length?(0,c.jsx)(u.Z,{sx:es.carouselContainer,children:(0,c.jsx)(K.Z,{slideWidth:320,headerTitle:(0,c.jsx)(d.Z,{variant:"brandedH4",component:"h2",fontWeight:600,children:o?"Recommended jobs":"Trending jobs"}),seeAll:(0,c.jsx)(Q.C,{href:"/jobs"}),emblaProps:{emblaRef:v,emblaApi:g},containerSx:es.contentCarouselContainer,headerRightSx:es.headerRight,disableArrows:!1,children:f.map(function(e){var t,n;return(0,c.jsx)(B.C,{children:(0,c.jsx)(u.Z,{maxWidth:"320px",minWidth:"320px",display:"flex",component:er(),href:(0,et.TD)(e),onClick:function(t){(0,ea.k)(t)||(t.preventDefault(),r.push("/jobs?currentJobId=".concat(e.id,"&first=true")))},children:(0,c.jsx)(X.Z,{job:e,titleComponent:"h3",previewMode:!0,hideJobUrl:!0,smallCard:!0,showCompanyLogo:!0,companyLogoUrl:null===(t=e.group)||void 0===t?void 0:t.logoUrl,companyName:null===(n=e.group)||void 0===n?void 0:n.universityName})})},e.id)})})}):null},RecommendedCustomJobsSkeleton=function(){return(0,c.jsxs)(N.Z,{sx:es.jobListWrapper,spacing:1,direction:"row",children:[(0,c.jsx)(Y.P,{}),(0,c.jsx)(Y.P,{}),(0,c.jsx)(Y.P,{})]})},el=n(95271),ec=(0,eo.e)({heading:{fontSize:"18px",fontWeight:600,m:2,mt:4},wrapper:{m:0,p:0},seeMore:function(e){return{color:e.palette.neutral[600],borderRadius:"20px",border:"1px solid ".concat(e.palette.neutral[200]),"&:hover":{background:e.brand.black[400],color:e.brand.black[700],border:"1px solid ".concat(e.palette.neutral[50])},mx:"15px !important",mb:4}},jobsWrapper:{width:"100%"},jobListWrapper:{px:{xs:2,md:2},pb:{xs:3,md:3},width:"100%"},jobListItemWrapper:{m:0,p:0}}),CustomJobsTagsContent_Content=function(e){var t=e.businessFunctionTagIds,n=e.totalCount,r=(0,l._)((0,x.useState)(3),2),o=r[0],i=r[1],a=(0,q.Z)({businessFunctionTagIds:t}),s=a.customJobs,u=a.isLoading,d=(0,x.useMemo)(function(){return s.slice(0,o)},[s,o]),p=(0,x.useCallback)(function(){i(o+3)},[i,o]),f=(0,G.Z)(s),h=f.data,m=f.isLoading,v=d.length==n;return u||m?(0,c.jsx)(RecommendedCustomJobsSkeleton,{}
1):(0,c.jsxs)(N.Z,{sx:ec.jobsWrapper,children:[(0,c.jsx)(z.Z,{customJobs:d,hrefLink:"/portal/jobs",jobsGroupNamesMap:h}),v?void 0:(0,c.jsxs)(U.Z,{disabled:v,onClick:p,sx:[ec.seeMore],children:["See more ",(0,c.jsx)(el.Z,{})]})]})},content_CustomJobsTagsContent=function(e){var t=e.tags,n=e.title,r=Object.keys(t.businessFunctions),o=(0,H.Z)({businessFunctionTagIds:r}).count;return o?(0,c.jsxs)(N.Z,{spacing:0,sx:ec.wrapper,children:[(0,c.jsx)(d.Z,{sx:ec.heading,color:"neutral.800",children:n}),(0,c.jsx)(CustomJobsTagsContent_Content,{businessFunctionTagIds:r,totalCount:o})]}):null},eu=n(70860),ed=n(41075),ep=n(63596),ef=n(79470),useLivestreamsByTags=function(e,t,n){var r,o={contentTopicsTagIds:Object.keys(t.contentTopics),businessFunctionsTagIds:Object.keys(t.businessFunctions),languageCode:Object.keys(t.language)},i=(0,ef.w)("",{arrayFilters:o,dateFilter:e,booleanFilters:{hidden:!1}},{targetReplica:"future"===e?ep.F7.START_ASC:ep.F7.START_DESC,itemsPerPage:n}),a=i.data,s=i.setSize;return{hasMorePages:(null==a?void 0:a.length)&&(null===(r=a.at(0))||void 0===r?void 0:r.nbPages)>a.length,data:((null==a?void 0:a.flatMap(function(e){return e.deserializedHits}))||[]).map(function(e){return e}),setSize:s}},eh=n(47746),em=n(27149),tags_useLivestreamsPerBatch=function(e){var t,n=(0,eh.Z)(),r=(0,em.Z)(n.breakpoints.only("xs")),o=(0,em.Z)(n.breakpoints.only("sm")),i=(0,em.Z)(n.breakpoints.down(1280)),a=(0,em.Z)(n.breakpoints.up(600));return(null===(t=[{active:r,itemsPerBatch:"future"===e?6:3},{active:o||a&&i,itemsPerBatch:"future"===e?6:4},{active:(0,em.Z)(n.breakpoints.up("lg")),itemsPerBatch:3}].find(function(e){return e.active}))||void 0===t?void 0:t.itemsPerBatch)||2},ex=n(40461),ev=(0,eo.e)({seeMore:function(e){return{color:e.palette.neutral[600],borderRadius:"20px",border:"1px solid ".concat(e.palette.neutral[200]),"&:hover":{background:e.brand.black[400],color:e.brand.black[700],border:"1px solid ".concat(e.palette.neutral[50])},mx:"15px !important"}},heading:{fontSize:"18px",pl:2,fontWeight:600},eventsRowWrapper:{px:2,flexWrap:"wrap"},slide:{position:"relative",maxWidth:"368px",ml:2}}),EventsPreview=function(e){var t=e.events,n=e.seeMoreDisabled,r=e.onSeeMore,o=e.tags,i=(0,W.Z)(),a=(0,x.useMemo)(function(){return o.businessFunctions[0]?"".concat(eu.uN.businessFunctionsTagsCarousel,"-").concat(o.businessFunctions[0].id):o.contentTopics[0]?"".concat(eu.uN.contentTopicsTagsCarousel,"-").concat(o.contentTopics[0].id):"".concat(eu.uN.otherTagsCarousel)},[o.businessFunctions,o.contentTopics]);return(0,c.jsxs)(N.Z,{direction:"column",sx:{width:"100%"},spacing:1,children:[(0,c.jsx)(u.Z,{sx:{p:{xs:2,md:2},width:"100%"},children:(0,c.jsx)(ed.ZP,{container:!0,spacing:i?2:3,children:t.map(function(e,t,n){return(0,c.jsx)(ed.ZP,{xs:12,sm:6,lg:4,item:!0,children:(0,c.jsx)(ex.Z,{index:t,totalElements:n.length,location:a,event:e,isRecommended:!0},e.id)},e.id)})})}),n?void 0:(0,c.jsxs)(U.Z,{disabled:n,onClick:r,sx:[ev.seeMore],children:["See more ",(0,c.jsx)(el.Z,{})]})]})},content_LivestreamTagsContent=function(e){var t=tags_useLivestreamsPerBatch(e.type),n=useLivestreamsByTags(e.type,e.tags,t),r=n.data,o=n.setSize,i=n.hasMorePages;return r.length?(0,c.jsxs)(N.Z,{children:[(0,c.jsx)(d.Z,{sx:ev.heading,color:"neutral.800",children:e.title}),(0,c.jsx)(EventsPreview,{events:r,seeMoreDisabled:!i,onSeeMore:function(){return o(function(e){return e+1})},tags:e.tags})]}):null},eg=n(28263),eb=n(70071),useSparksByTags=function(e,t){var n,r={contentTopicsTagIds:Object.keys(e.contentTopics),languageTagIds:Object.keys(e.language)},o=(0,eb.o)("",{arrayFilters:r,booleanFilters:{published:!0,groupPublicSparks:!0}},t,eg.w2.PUBLISHED_AT_DESC),i=o.data,a=o.setSize;return{hasMorePages:(null==i?void 0:i.length)&&(null===(n=i.at(0))||void 0===n?void 0:n.nbPages)>i.length,data:((null==i?void 0:i.flatMap(function(e){return e.deserializedHits}))||[]).map(function(e){return e}),setSize:a}},ey=n(6623),ej=(0,eo.e)({heading:{fontSize:"18px",fontWeight:600},carousel:{ml:"16px !important",mr:4},header:{mr:2}}),content_SparksTagsContent=function(e){var t=e.tags,n=e.selectedTagLabel,r=e.selectTagIds,o=(0,m.useRouter)(),i=useSparksByTags(t,10).data;return i.length?(0,c.jsx)(ey.x,{header:(0,c.jsx)(d.Z,{sx:ej.heading,color:"neutral.800",children:"Sparks talking about ".concat(n)}),sparks:i,handleSparksClicked:function(e){if(e)return o.push({pathname:"/sparks/".concat(e.id),query:(0,s._)((0,a._)({},o.query),{interactionSource:L.u.PortalTag,contentTopic:r.filter(function(e){return!!D.Ci.find(function(t){return t.id==e})})})})}
1,containerSx:ej.carousel,headerSx:ej.header}):null},eC=(0,J.el)({wrapper:{transition:function(e){return e.transitions.create(["opacity"])}}}),CategoryTagsContentComponent=function(e){var t=e.categories,n=Object.keys(t).filter(function(e){return t[e].selected}),r=(0,D.Wp)(n),o=!!Object.keys(r.businessFunctions).length,i=!!Object.keys(r.contentTopics).length,a=!!Object.keys(r.language).length,s=n.map(function(e){return D.SY[e]}).join(", ");return(0,c.jsxs)(N.Z,{sx:eC.wrapper,spacing:3,children:[!!(i||a)&&(0,c.jsx)(content_SparksTagsContent,{tags:r,selectTagIds:n,selectedTagLabel:s}),!!(o||i||a)&&(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(content_LivestreamTagsContent,{title:"Upcoming live streams related to "+s,type:"future",tags:r}),(0,c.jsx)(M.Z,{condition:o,children:(0,c.jsx)(content_CustomJobsTagsContent,{tags:r,title:"Top "+s+" jobs"})}),(0,c.jsx)(content_LivestreamTagsContent,{title:"Top "+s+" recordings",type:"past",tags:r})]})]})},CategoryTagsContentSkeleton=function(){return(0,c.jsx)(c.Fragment,{})},tags_CategoryTagsContent=function(e){return(0,c.jsx)(B.Z,{fallback:(0,c.jsx)(CategoryTagsContentSkeleton,{}),children:(0,c.jsx)(CategoryTagsContentComponent,{categories:e.categories})})},ew=n(8150),eS=n(59616),ek={Click:"click",View:"view"},eZ=n(47591),e_=n(69089),eI=n(87037),eF=n(86063),eE=n(9926),eT=n(54532),eL=n(68066),eD=n(5007),BasicShareIcon=function(e){return(0,c.jsx)(eD.Z,(0,s._)((0,a._)({viewBox:"0 0 20 20"},e),{children:(0,c.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",children:(0,c.jsx)("path",{d:"M11.6667 7.33333V4L17.5 9.83333L11.6667 15.6667V12.25C7.5 12.25 4.58333 13.5833 2.5 16.5C3.33333 12.3333 5.83333 8.16667 11.6667 7.33333Z",stroke:"white",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})}))},eP=n(19542),eR=n(39095),eO=n(46704),eA=n(69922),eW=n(96577),eM=n.n(eW),eJ=n(95157),eN=n(51107),eB=n(78046),eU=n(19360),eq=n(65),eH=n(26110),eG=n(49771),ez=n(34224),eV=n(37065),eK=n(34882),eX=n(83987),eQ=(0,eo.e)({header:{position:"relative",width:"100%",aspectRatio:"3/2",overflow:"hidden"},headerOverlayTop:{position:"absolute",inset:0,background:function(e){return"linear-gradient(0deg, ".concat((0,eZ.Fq)(e.palette.common.black,.2)," 0%, ").concat((0,eZ.Fq)(e.palette.common.black,.2)," 100%)")},pointerEvents:"none"},headerOverlayBottom:{position:"absolute",inset:0,background:function(e){return"linear-gradient(180deg, ".concat((0,eZ.Fq)(e.palette.common.black,0)," 73%, ").concat((0,eZ.Fq)(e.palette.common.black,.5)," 97%)")},pointerEvents:"none"},iconsContainer:{position:"absolute",top:0,right:0,left:0,p:1.5,width:"100%"},closeIcon:{p:1,color:function(e){return e.brand.white[100]},backgroundColor:function(e){return(0,eZ.Fq)(e.brand.black[900],.5)},"& svg":{width:20,height:20}},content:{position:"relative",p:1,pt:1.5,gap:1,borderRadius:"12px",top:-12,backgroundColor:function(e){return e.brand.white[100]}},detailsContainer:{display:"flex",flexDirection:{xs:"column",md:"row"},gap:1,p:1,borderRadius:2,backgroundColor:function(e){return e.brand.white[300]}},detailCol:{display:"flex",gap:1,p:1,alignItems:"flex-start",flex:1},icon:{color:"neutral.700",width:18,height:18,flexShrink:0,mt:.4},text:{color:"neutral.700"},headerText:{color:"neutral.800",fontWeight:600},organisedContainer:{p:1,borderRadius:2,backgroundColor:function(e){return e.brand.white[300]},display:"flex",flexDirection:"column",gap:1},organisedRow:{display:"flex",alignItems:"center",gap:1,width:"100%"},aboutContainer:{p:1,borderRadius:2,backgroundColor:function(e){return e.brand.white[300]},display:"flex",flexDirection:"column",gap:1.5},stickyCta:{position:"sticky",bottom:0,px:2,pt:4,pb:2,background:function(e){return"linear-gradient(180deg, ".concat((0,eZ.Fq)(e.palette.common.white,0)," 0%, ").concat((0,eZ.Fq)(e.palette.common.white,.98)," 78%)")},display:"flex",justifyContent:"center",width:"100%"},dialogPaper:(0,s._)((0,a._)({},eO.$D),{transition:function(e){return e.transitions.create("max-width")},borderRadius:{md:5},maxWidth:915,height:"100%",overflow:"auto"}),aboutDescription:{wordBreak:"break-word",whiteSpace:"pre-line",color:function(e){return e.palette.neutral[800]}}}),eY="offline-event",OfflineEventDialog=function(e){var t=e.eventFromServer,n=(0,m.useRouter)(),r=n.push,o=n.query,i=n.pathname,s=(0,W.Z)(),u=(0,eT.t)(),d=(0,eE.Z)().successNotification,p=(0,l._)((0,eH.Z)(),2)[1],f=(0,x.useCallback)(function(){p((0,et.sC)(t.id)),(0,ez.VV)(eG._.OfflineEventShare,{medium:"Copy Link",eventId:t.id}),d("Event link has been copied to your clipboard","Copied")}
1,[p,t,d]),h=(0,P.ZP)(o[eY]?["event",o[eY]]:null,function(){return eA.Lf.getById(o[eY])},{fallbackData:(null==t?void 0:t.id)===o[eY]?t:null}).data,g=(0,x.useCallback)(function(){var e=(0,a._)({},o);delete e[eY],r({pathname:i,query:e},void 0,{shallow:!0})},[r,o,i]);return(0,c.jsxs)(c.Fragment,{children:[h?(0,c.jsx)(v.Z,(0,a._)({},(0,eX.z)(h))):null,(0,c.jsx)(e_.Z,{open:!!h,onClose:g,closeAfterTransition:!0,disablePortal:!0,TransitionComponent:s?eR.k2:eR.sV,maxWidth:"md",fullWidth:!0,fullScreen:s,PaperProps:{sx:eQ.dialogPaper},sx:(0,a._)({},eO.$D),TransitionProps:{unmountOnExit:!0,appear:u},children:(0,c.jsx)(OfflineEventDialog_Content,{event:h,onClose:g,onShare:f})})]})},OfflineEventDialog_Content=function(e){var t,n,r,o,i,a,s,l,p,f,h=e.event,m=e.onClose,v=e.onShare,g=(0,W.Z)(),y=(0,b.a)(),j=y.userData,C=y.isLoadingUserData,w=(0,eF.Z)(),S=w.data,k=w.isLoading,Z=(null==h?void 0:null===(t=h.group)||void 0===t?void 0:t.publicProfile)?(0,ea.C7)(null==h?void 0:null===(n=h.group)||void 0===n?void 0:n.universityName,{interactionSource:eS.i.Offline_Event_Dialog}):void 0,_=h||{},I=_.backgroundImageUrl,F=_.title,E=_.startAt,T=_.description,L=_.registrationUrl,D=_.address,P=(0,x.useRef)(!1);(0,x.useEffect)(function(){if(!C&&!k){var e=j||S;if(h&&!P.current&&e){P.current=!0;var t=eV.Z.getUTMParams();(0,ez.ND)(eG._.OfflineEventView,h),eA.Lf.trackOfflineEventAction(h.id,ek.View,e,t).catch(function(n){(0,R.LS)(n,{description:"Failed to track offline event view",offlineEventId:h.id,identifier:e,utm:t})})}}},[h,null==h?void 0:h.id,j,S,C,k]);var O=(0,x.useCallback)(function(){if(h){var e,t=eV.Z.getUTMParams();if((0,ez.ND)(eG._.OfflineEventRegister,h),j||S){var n=j||S;eA.Lf.trackOfflineEventAction(h.id,ek.Click,n,t).catch(function(e){(0,R.LS)(e,{description:"Failed to track offline event click",offlineEventId:h.id,userDataOrFingerprint:n,utm:t})})}var r=new URL(L);(null===(e=h.group)||void 0===e?void 0:e.id)!=="hxjg7FRopki8ZxHMlICL"&&r.searchParams.set("utm_source","careerfairy"),window.open(r.toString(),"_blank","noopener")}},[j,S,h,L]);return(0,c.jsxs)(u.Z,{position:"relative",children:[(0,c.jsxs)(u.Z,{sx:eQ.header,children:[I?(0,c.jsx)(eM(),{src:I,alt:"".concat(F," banner"),fill:!0,style:{objectFit:"cover"},priority:!0}):null,(0,c.jsx)(u.Z,{sx:eQ.headerOverlayTop}),(0,c.jsx)(u.Z,{sx:eQ.headerOverlayBottom}),(0,c.jsxs)(N.Z,{direction:g?"row-reverse":"row",justifyContent:g?"space-between":"flex-end",sx:eQ.iconsContainer,spacing:1,children:[(0,c.jsx)(eI.Z,{onClick:v,sx:eQ.closeIcon,children:(0,c.jsx)(BasicShareIcon,{})}),(0,c.jsx)(eI.Z,{onClick:m,sx:eQ.closeIcon,children:(0,c.jsx)(u.Z,{component:g?eJ.Z:eN.Z})})]})]}),(0,c.jsxs)(N.Z,{sx:eQ.content,children:[(0,c.jsx)(d.Z,{variant:"desktopBrandedH4",fontWeight:600,px:1,children:F}),(0,c.jsxs)(N.Z,{sx:eQ.detailsContainer,children:[(0,c.jsxs)(u.Z,{sx:eQ.detailCol,children:[(0,c.jsx)(u.Z,{component:eB.Z,sx:eQ.icon}),(0,c.jsxs)(N.Z,{children:[(0,c.jsx)(d.Z,{variant:"medium",color:"neutral.800",children:eK.Z.getPrettyDateWithWeekdayDayjs(null==E?void 0:E.toDate())}),(0,c.jsx)(d.Z,{variant:"small",sx:eQ.text,children:E?"At ".concat(eK.Z.eventPreviewHour(E.toDate())):null})]})]}),(0,c.jsxs)(u.Z,{sx:eQ.detailCol,children:[(0,c.jsx)(u.Z,{component:eU.Z,sx:eQ.icon}),(0,c.jsxs)(u.Z,{children:[(0,c.jsxs)(d.Z,{variant:"medium",color:"neutral.800",children:[null==D?void 0:D.city,", ",null==D?void 0:D.country]}),(0,c.jsx)("br",{}),(0,c.jsxs)(d.Z,{variant:"small",color:"neutral.600",children:[null==D?void 0:D.street," ",null==D?void 0:D.city,", ",null==D?void 0:D.country]})]})]})]}),(0,c.jsxs)(u.Z,{sx:eQ.organisedContainer,component:Z?er():u.Z,href:Z,children:[(0,c.jsx)(d.Z,{variant:"medium",sx:eQ.headerText,children:"Organised by"}),(0,c.jsxs)(u.Z,{sx:eQ.organisedRow,children:[(null==h?void 0:null===(r=h.group)||void 0===r?void 0:r.logoUrl)?(0,c.jsx)(eP.Z,{src:(null==h?void 0:null===(o=h.group)||void 0===o?void 0:o.logoUrl)||"",alt:"".concat(null==h?void 0:null===(i=h.group)||void 0===i?void 0:i.universityName," logo"),size:40}):null,(0,c.jsxs)(u.Z,{sx:{flex:1,minWidth:0},children:[(0,c.jsx)(d.Z,{variant:"medium",color:"neutral.800",children:null==h?void 0:null===(a=h.group)||void 0===a?void 0:a.universityName}),(0,c.jsx)("br",{}),(null==h?void 0:null===(l=h.group)||void 0===l?void 0:null===(s=l.companyIndustries)||void 0===s?void 0:s.length)?(0,c.jsx)(d.Z,{variant:"small",sx:eQ.text,children:null==h?void 0:null===(f=h.group)||void 0===f?void 0:null===(p=f.companyIndustries)||void 0===p?void 0:p.map(function(e){return e.name}).join(", ")}):null]}),(0,c.jsx)(u.Z,{component:eq.Z,sx:{color:"neutral.700",width:24,height:24}})]})]}),(0,c.jsxs)(u.Z,{sx:eQ.aboutContainer,children:[(0,c.jsx)(d.Z,{variant:"medium",sx:eQ.headerText,children:"About this event"}),(0,c.jsx)(eL.Z,{color:"neutral.700",htmlString:T,sx:eQ.aboutDescription,openLinksInNewTab:!0,autoLinkUrls:!0})]}),(0,c.jsx)(u.Z,{sx:eQ.stickyCta,children:(0,c.jsx)(U.Z,{variant:"contained",color:"primary",size:"large",onClick:O,sx:{width:"100%",maxWidth:570},children:"Register to event"})})]})]})},e$=n(32670),e0=n(22970),useOfflineEvents=function(){var e=(0,b.a)(),t=e.userData,n=e.isLoadingUserData;return(0,P.ZP)(n?null:["offline-events",null==t?void 0:t.stateIsoCode,null==t?void 0:t.countryIsoCode],(0,e$._)(function(){var e;return(0,e0.Jh)(this,function(n){return e=(null==t?void 0:t.stateIsoCode)&&(null==t?void 0:t.countryIsoCode)?{stateIsoCode:t.stateIsoCode,countryIsoCode:t.countryIsoCode}:void 0,[2,eA.Lf.getOfflineEvents(e)]})}),(0,s._)((0,a._)({},O.k),{suspense:!1}))},e1=n(96607),e2=(0,eo.e)({card:{width:"100%",backgroundColor:function(e){return e.brand.white[100]},border:function(e){return"1px solid ".concat(e.palette.secondary[50])},borderRadius:"12px",overflow:"hidden",transition:function(e){return e.transitions.create(["box-shadow","border"])},"&:hover,&:focus":{border:function(e){return"1px solid ".concat(e.palette.secondary[100]
1)},boxShadow:"0 0 12px 0 rgba(20, 20, 20, 0.08)"}},bannerWrapper:{position:"relative",width:"100%",aspectRatio:"3/2"},content:{pt:0,pb:2,px:0},row:{px:2,width:"100%",display:"flex",alignItems:"center",gap:1},companyName:{color:"neutral.800"},title:(0,a._)({px:2,color:"neutral.800",height:"47px"},(0,e1.K6)(2)),detailRow:{px:2,display:"flex",alignItems:"center",gap:1},icon:{color:"neutral.700",width:16,height:16,flexShrink:0},detailText:(0,a._)({color:"neutral.700"},(0,e1.K6)(1))}),OfflineEventCard=function(e){var t=e.event,n=(0,m.useRouter)().pathname,r=t.backgroundImageUrl,o=t.group,a=t.title,s=t.address,l=t.startAt;return(0,c.jsxs)(u.Z,{component:er(),href:{pathname:n,query:(0,i._)({},eY,t.id)},scroll:!1,sx:e2.card,"data-name":"Offline event card",children:[(0,c.jsx)(u.Z,{sx:e2.bannerWrapper,children:(0,c.jsx)(eM(),{src:r,alt:"".concat(a," banner"),fill:!0,style:{objectFit:"cover"},priority:!0})}),(0,c.jsxs)(N.Z,{sx:e2.content,children:[(0,c.jsxs)(u.Z,{sx:e2.row,pt:1,children:[(0,c.jsx)(eP.Z,{src:(null==o?void 0:o.logoUrl)||"",alt:"".concat(o.universityName," logo"),size:28}),(0,c.jsx)(d.Z,{variant:"brandedBody",sx:e2.companyName,children:o.universityName})]}),(0,c.jsx)(d.Z,{mt:1,variant:"brandedBody",sx:e2.title,fontWeight:600,children:a}),(0,c.jsxs)(u.Z,{pt:1,sx:e2.detailRow,children:[(0,c.jsx)(u.Z,{component:eU.Z,sx:e2.icon}),(0,c.jsxs)(d.Z,{variant:"small",sx:e2.detailText,children:[null==s?void 0:s.city,", ",null==s?void 0:s.country]})]}),(0,c.jsxs)(u.Z,{pt:1,sx:e2.detailRow,children:[(0,c.jsx)(u.Z,{component:eB.Z,sx:e2.icon}),(0,c.jsx)(d.Z,{variant:"small",sx:e2.detailText,children:eK.Z.getPrettyDateWithoutHourDayjs(l.toDate())})]})]})]})},e3=n(21647),e5=(0,eo.e)({card:{width:"100%",backgroundColor:function(e){return e.brand.white[100]},border:function(e){return"1px solid ".concat(e.palette.secondary[50])},borderRadius:"12px",overflow:"hidden",transition:function(e){return e.transitions.create(["box-shadow","border"])},"&:hover,&:focus":{border:function(e){return"1px solid ".concat(e.palette.secondary[100])},boxShadow:"0 0 12px 0 rgba(20, 20, 20, 0.08)"}},bannerWrapper:{position:"relative",width:"100%",aspectRatio:"3/2"},bannerSkeleton:{width:"100%",height:"100%"},content:{pt:0,pb:2,px:0},row:{px:2,width:"100%",display:"flex",alignItems:"center",gap:1},title:{px:2,height:"47px",display:"flex",alignItems:"center"},detailRow:{px:2,display:"flex",alignItems:"center",gap:1},iconSkeleton:{width:16,height:16,flexShrink:0}}),OfflineEventCardSkeleton=function(){return(0,c.jsxs)(u.Z,{sx:e5.card,"data-name":"Offline event card skeleton",children:[(0,c.jsx)(u.Z,{sx:e5.bannerWrapper,children:(0,c.jsx)(e3.Z,{variant:"rectangular",sx:e5.bannerSkeleton,animation:"wave"})}),(0,c.jsxs)(N.Z,{sx:e5.content,children:[(0,c.jsxs)(u.Z,{sx:e5.row,pt:1,children:[(0,c.jsx)(e3.Z,{variant:"circular",width:28,height:28,animation:"wave"}),(0,c.jsx)(e3.Z,{variant:"text",width:"40%",height:24,animation:"wave"})]}),(0,c.jsx)(u.Z,{sx:e5.title,pt:1,children:(0,c.jsx)(e3.Z,{variant:"text",width:"90%",height:24,animation:"wave"})}),(0,c.jsxs)(u.Z,{pt:1,sx:e5.detailRow,children:[(0,c.jsx)(e3.Z,{variant:"circular",sx:e5.iconSkeleton,animation:"wave"}),(0,c.jsx)(e3.Z,{variant:"text",width:"60%",height:18,animation:"wave"})]}),(0,c.jsxs)(u.Z,{pt:1,sx:e5.detailRow,children:[(0,c.jsx)(e3.Z,{variant:"circular",sx:e5.iconSkeleton,animation:"wave"}),(0,c.jsx)(e3.Z,{variant:"text",width:"50%",height:18,animation:"wave"})]})]})]})},e6=(0,eo.e)({root:{pl:{xs:2,md:2},pb:{xs:3,md:3},width:"100%"},headerRight:{pr:2}}),OfflineEvents=function(){var e=useOfflineEvents(),t=e.data,n=e.isLoading;return n||(null==t?void 0:t.length)?(0,c.jsx)(u.Z,{sx:e6.root,children:(0,c.jsx)(K.Z,{slideWidth:317,headerTitle:(0,c.jsx)(d.Z,{variant:"brandedH4",component:"h2",fontWeight:600,children:"Events near you"}),headerRightSx:e6.headerRight,disableArrows:!1,children:n?Array.from({length:3}).map(function(e,t){return(0,c.jsx)(OfflineEventCardSkeleton,{},t)}):null==t?void 0:t.map(function(e,t){return(0,c.jsx)(OfflineEventCard,{event:e},e.id+t)})})}):null},e4=n(75280),e7=n(56961),e8=n(89595),e9=n(33095),useSupplementedFeaturedGroupsSWR=function(e,t){var n,r=(0,e9.z)(e,{disabled:null==t?void 0:t.disabled}),o=(0,b.a)(),i=o.userData,l=o.isLoggedIn,c=(0,x.useMemo)(function(){var e;return null!==(e=r.data)&&void 0!==e?e:[]},[r.data]),u=e8.Vs-c.length,d=(null==i?void 0:null===(n=i.fieldOfStudy)||void 0===n?void 0:n.id)?e4.PW[i.fieldOfStudy.id]:void 0,p=!(null==t?void 0:t.disabled)&&u>0&&(null==e?void 0:e.length)>0&&(!l||!!d),f=(0,P.ZP)(p?["public-profile-groups"]:null,e8.K6,(0,s._)((0,a._)({},O.k),{fallbackData:[],onError:function(e,t){return(0,R.LS)(e,{key:t})}})).data,h=(0,x.useMemo)(function(){return p?(0,e8.IL)(c,null!=f?f:[],e,d):c},[c,f,p,e,d]);return(0,s._)((0,a._)({},r),{data:h})},te=n(70632),tt=n(81714),tn=n(85855),tr=n(55315),to=n(92516);function _extends(){return(_extends=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}var featured_company_public_sparks_badge=function(e){return x.createElement("svg",_extends({xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none"},e),r||(r=x.createElement("g",{clipPath:"url(#featured-company-public-sparks-badge_svg__clip0_17774_2572)"},x.createElement("circle",{cx:12,cy:12.231,r:10,fill:"#fff"}),x.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.12.989a3 3 0 00-4.092 0l-.208.193a3 3 0 01-2.41.784l-.283-.035a3 3 0 00-3.31 2.405l-.054.278a3 3 0 01-1.49 2.051l-.248.138A3 3 0 00.76 10.694l.12.258a3 3 0 010 2.535l-.12.257a3 3 0 001.265 3.891l.248.138a3 3 0 011.49 2.05l.054.28a3 3 0 003.31 2.404l.282-.034a3 3 0 012.411.783l.208.194a3 3 0 004.091 0l.208-.194a3 3 0 012.41-.783l.283.034a3 3 0 003.31-2.405l.054-.278a3 3 0 011.49-2.051l.248-.138a3 3 0 001.265-3.891l-.12-.257a3 3 0 010-2.535l.12-.258a3 3 0 00-1.265-3.89l-.248-.139a3 3 0 01-1.49-2.05l-.054-.28a3 3 0 00-3.31-2.404l-.282.035a3 3 0 01-2.411-.784L14.119.99zm-2.178 20.427a9.328 9.328 0 100-18.656 9.328 9.328 0 000 18.656z",fill:"#2ABAA5"}),x.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.942 20.102a8.014 8.014 0 100-16.028 8.014 8.014 0 000 16.028zm-2.746-7.733l-.085-.193a.095.095 0 00-.175 0l-.086.193a4.479 4.479 0 01-1.67 1.892l-.133.081a.096.096 0 000 .164A4.478 4.478 0 018.85 16.48l.086.193a.095.095 0 00.175 0l.085-.193A4.479 4.479 0 0111 14.506a.095.095 0 000-.164l-.134-.08a4.48 4.48 0 01-1.669-1.893zm4.568-5.198a11.518 11.518 0 01-.15-.338.166.166 0 00-.307 0c-.049.113-.098.227-.15.338a7.837 7.837 0 01-3.155 3.452.167.167 0 000 .288 7.836 7.836 0 013.305 3.79.166.166 0 00.307 0 7.837 7.837 0 013.305-3.79.167.167 0 000-.287 7.838 7.838 0 01-3.155-3.452z",fill:"#2ABAA5"}))),o||(o=x.createElement("defs",null,x.createElement("clipPath",{id:"featured-company-public-sparks-badge_svg__clip0_17774_2572"},x.createElement("path",{fill:"#fff",transform:"translate(0 .23)",d:"M0 0h24v24H0z"})))))},icons_FeaturedCompanySparksBadge=function(e){return(0,c.jsx)(eD.Z,(0,a._)({component:featured_company_public_sparks_badge,inheritViewBox:!0},e))},ti=n(79778),ta=(0,J.el)({companyCardRoot:{py:2,pr:1,width:{xs:"317px !important",sm:"317px !important",md:"340px !important"},minWidth:{xs:"317px !important",sm:"317px !important",md:"340px !important"},maxWidth:{xs:"317px !important",sm:"317px !important",md:"340px !important"}},carouselRoot:{overflow:"hidden",px:2},companyLogo:{width:"64px",height:"64px",borderRadius:"70px",border:function(e){return"1.5px solid ".concat(e.brand.white[400])}},companyName:{color:function(e){return e.brand.white[100]}
1,fontWeight:600,textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"},companyIndustries:{color:function(e){return e.brand.white[400]},fontWeight:400,textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"},companyCountry:{color:function(e){return e.brand.white[400]},fontWeight:400,textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"},followButton:{width:"78px",p:"4px 12px",borderRadius:"18px",background:"rgba(252, 252, 254, 0.43)",backdropFilter:"blur(100px)",boxShadow:"0px 0px 42px 0px rgba(20, 20, 20, 0.08)",border:"1px solid transparent",transition:"all 0.2s ease-in-out","&:hover":{borderRadius:"18px",border:"1px solid #FFF",background:"rgba(252, 252, 254, 0.43)",boxShadow:"0px 0px 42px 0px rgba(20, 20, 20, 0.08)",backdropFilter:"blur(100px)"}},followingButton:{width:"92px",background:"rgba(37, 37, 37, 0.43)",border:"none","&:hover":{background:"rgba(37, 37, 37, 0.43)",border:"none"}},badge:{width:24,height:24}}),FeaturedCompaniesCarousel=function(e){var t=e.companies,n=e.emblaRef,r=(0,tr.u)();return(0,c.jsx)(u.Z,{sx:ta.carouselRoot,ref:n,children:(0,c.jsx)(N.Z,{direction:"row",spacing:"32px",children:t.map(function(e){return(0,c.jsx)(FeaturedCompanyCard,{company:e,following:!!r.find(function(t){return t.groupId===e.id})},e.id)})})})},FeaturedCompanyCard=function(e){var t,n,r,o=e.company,i=e.following,a=(0,m.useRouter)(),s=(0,b.a)(),l=s.userData,u=s.isLoggedIn,p=(0,ti.g5)().trackEvent,f=(null!==(r=o.companyIndustries)&&void 0!==r?r:[]).map(function(e){return e.name}).join(", "),h=(0,tn.A)(o),v=(null==o?void 0:o.hasCoffeeChats)&&h,g=(0,x.useCallback)((t=(0,e$._)(function(e){var t;return(0,e0.Jh)(this,function(n){switch(n.label){case 0:if(!i)return[3,2];return[4,w.gJ.unfollowCompany(l.id,e)];case 1:return n.sent(),[2];case 2:return[4,w.gJ.getGroupById(e)];case 3:return t=n.sent(),[4,w.gJ.followCompany(l,t)];case 4:return n.sent(),p(e,eS.A.Follow,eS.i.Portal_Page_Featured_Company),(0,ez.VV)("featured_company_follow",{companyId:e,companyName:o.universityName}),[2]}})}),function(e){return t.apply(this,arguments)}),[l,i,o.universityName,p]);return(0,c.jsx)(er(),{onClick:function(){(0,ez.VV)(eG._.FeaturedCompanyView,{companyId:o.id,companyName:o.universityName})},href:(0,ea.C7)(o.universityName,{interactionSource:eS.i.Portal_Page_Featured_Company}),children:(0,c.jsxs)(N.Z,{direction:"row",spacing:2,sx:ta.companyCardRoot,alignItems:"center",children:[(0,c.jsx)(tt.Z,{src:o.logoUrl,sx:ta.companyLogo}),(0,c.jsxs)(N.Z,{sx:{flex:1,minWidth:0},children:[(0,c.jsxs)(N.Z,{direction:"row",spacing:.5,alignItems:"center",children:[(0,c.jsx)(d.Z,{variant:"medium",sx:ta.companyName,children:o.universityName}),o.publicSparks&&!v?(0,c.jsx)(icons_FeaturedCompanySparksBadge,{sx:ta.badge}):null,v?(0,c.jsx)(to.N,{sx:ta.badge}):null]}),(0,c.jsx)(d.Z,{variant:"small",sx:ta.companyIndustries,children:f}),(0,c.jsx)(d.Z,{variant:"small",sx:ta.companyCountry,children:null===(n=o.companyCountry)||void 0===n?void 0:n.name})]}),(0,c.jsx)(U.Z,{variant:"contained",sx:[ta.followButton,i?ta.followingButton:null],onClick:function(e){e.stopPropagation(),e.preventDefault(),u?g(o.id):a.push({pathname:"/login",query:{absolutePath:a.asPath}})},children:(0,c.jsx)(d.Z,{variant:"small",fontWeight:400,sx:{color:function(e){return e.brand.white[100]}},children:i?"Unfollow":"Follow"})})]})})},ts=(0,J.el)({chevron:{cursor:"pointer",color:function(e){return e.brand.white[100]},p:"8px",width:"32px",height:"32px",borderRadius:"36px",background:"rgba(235, 235, 239, 0.35)",backdropFilter:"blur(10px)",transition:"border 0.2s ease-in-out",boxSizing:"border-box",border:"1px solid transparent","& svg":{width:"16px",height:"16px"},"&:hover":{borderRadius:"36px",background:"rgba(235, 235, 239, 0.55)",backdropFilter:"blur(10px)"},"&:active":{borderRadius:"36px",border:"1px solid rgba(255, 255, 255, 0.60)",background:"rgba(235, 235, 239, 0.55)",backdropFilter:"blur(10px)"}},mobileHeader:{px:{xs:2,sm:2,md:0}},seeAllCompanies:{color:function(e){return e.brand.white[100]},textDecoration:"underline"},desktopHeader:{px:2}}),FeaturedCompaniesHeader=function(e){var t=e.category,n=e.onPreviousClick,r=e.onNextClick,o=(0,W.Z)(),MobileHeader=function(){return(0,c.jsxs)(d.Z,{component:"h2",sx:ts.mobileHeader,children:[(0,c.jsx)(d.Z,{variant:"brandedH5",fontWeight:400,sx:{color:function(e){return e.brand.white[100]}},children:"Featured companies"})," ",(0,c.jsxs)(d.Z,{variant:"mobileBrandedH3",fontWeight:700,sx:{color:function(e){return e.brand.white[100]}},children:["hiring"," ".concat(t?e4.RU[t].name.concat(" students"):" right now")]})]})};return(0,c.jsx)(M.Z,{condition:!o,fallback:(0,c.jsx)(MobileHeader,{}),children:(0,c.jsxs)(N.Z,{direction:"row",alignItems:"center",justifyContent:"space-between",sx:ts.desktopHeader,children:[(0,c.jsx)(MobileHeader,{}),(0,c.jsxs)(N.Z,{direction:"row",alignItems:"flex-end",gap:2,children:[(0,c.jsx)(er(),{href:"/companies?featured=true&category=".concat(t),children:(0,c.jsx)(d.Z,{variant:"small",sx:ts.seeAllCompanies,children:"See all c
1ompanies"})}),(0,c.jsxs)(N.Z,{direction:"row",gap:1,children:[(0,c.jsx)(u.Z,{sx:ts.chevron,component:eJ.Z,onClick:n}),(0,c.jsx)(u.Z,{sx:ts.chevron,component:eq.Z,onClick:r})]})]})]})})},tl=n(24808),tc=(0,J.el)({carouselRoot:{overflow:"hidden",px:2}}),MobileFeaturedCompaniesCarousel=function(e){var t=e.companies,n=(0,tl.F3)(t,2),r=(0,tr.u)();return(0,c.jsx)(K.Z,{slideWidth:317,viewportSx:tc.carouselRoot,children:n.map(function(e,t){return(0,c.jsx)(N.Z,{spacing:1,children:e.map(function(e){return(0,c.jsx)(FeaturedCompanyCard,{company:e,following:!!r.find(function(t){return t.groupId===e.id})},e.id)})},"chunk-".concat(t))})})},tu=(0,J.el)({root:{ml:2,borderRadius:"16px",background:"linear-gradient(125deg, #5A86E2 0%, #5F9BD9 100%)",mb:"40px",py:"24px","@media (max-width: 1540px)":{m:"0px 16px 24px 16px"}},mobileRoot:{borderRadius:0,mx:"0px !important"},divider:{my:2,strokeWidth:"1px",borderColor:function(e){return e.brand.white[50]},opacity:.41},exploreMore:{color:function(e){return e.brand.white[100]},fontWeight:400},exploreChevron:{color:function(e){return e.brand.white[50]},"& svg":{width:"24px",height:"24px"}}}),td={dragFree:!0,slidesToScroll:2},FeaturedCompanies=function(e){return(0,c.jsx)(FeaturedCompaniesView,(0,a._)({},e))},FeaturedCompaniesView=function(e){var t,n=e.serverSideCompanies,r=e.userCountryCode,o=(0,b.a)().userData,i=(0,te.Z)().userCountryCode,a=(null==o?void 0:o.countryIsoCode)||i||r;return(null==a?void 0:a.length)?(0,c.jsx)(FeaturedCompaniesComponent,{fieldOfStudyId:null==o?void 0:null===(t=o.fieldOfStudy)||void 0===t?void 0:t.id,countryCode:a,serverSideCompanies:n}):null},FeaturedCompaniesComponent=function(e){var t=e.fieldOfStudyId,n=e.countryCode,r=e.serverSideCompanies,o=(0,W.Z)(),i=useSupplementedFeaturedGroupsSWR(n,{disabled:!(0,b.a)().isLoggedIn&&!!(null==r?void 0:r.length)}).data,a=(0,x.useMemo)(function(){return(0,e8.No)(null!=i?i:[])},[i]),s=a.length?a:null!=r?r:[],p=(0,l._)((0,$.Z)(td,[(0,ee.Y)()]),2),f=p[0],h=p[1];return(null==s?void 0:s.length)?(0,c.jsxs)(u.Z,{sx:[tu.root,o?tu.mobileRoot:null],children:[(0,c.jsxs)(N.Z,{spacing:2,children:[(0,c.jsx)(FeaturedCompaniesHeader,{category:t?e4.PW[t]:null,onPreviousClick:function(){null==h||h.scrollPrev()},onNextClick:function(){null==h||h.scrollNext()}}),o?(0,c.jsx)(MobileFeaturedCompaniesCarousel,{companies:s}):(0,c.jsx)(FeaturedCompaniesCarousel,{companies:s,emblaRef:f})]}),o?(0,c.jsxs)(u.Z,{sx:{px:{xs:2,sm:2,md:0}},children:[(0,c.jsx)(e7.Z,{sx:tu.divider}),(0,c.jsx)(er(),{href:"/companies?featured=true&category=".concat(t?e4.PW[t]:""),children:(0,c.jsxs)(N.Z,{direction:"row",spacing:.5,children:[(0,c.jsx)(d.Z,{variant:"small",sx:tu.exploreMore,children:"Explore more companies"}),(0,c.jsx)(u.Z,{sx:tu.exploreChevron,component:eq.Z})]})})]}):null]}):null},tp=n(18831),tf={title:"Student Jobs, Internships & Hiring Events | CareerFairy",description:"Find student jobs, part-time roles and internships. Meet top employers at virtual hiring events and apply to your dream student job today.",h1:"Find student jobs, internships & hiring events",intro:"Browse open roles from employers hiring students and graduates, and meet their teams live before you apply.",livestreamQuotes:{h2:"Career advice from recruiters and young professionals",intro:"Straight from our live streams: how to apply, interview and grow."},successStory:{h2:"From live stream to hired",intro:"Students who met these teams on CareerFairy, and landed the role."},explore:{h2:"Explore CareerFairy",links:[{href:"/next-livestreams",label:"Upcoming career live streams"},{href:"/past-livestreams",label:"Live stream recordings"},{href:"/jobs",label:"Student jobs and internships"},{href:"/companies",label:"Companies hiring students"},{href:"/sparks",label:"Employer Q&A videos"},{href:"/",label:"How CareerFairy works"}]}},th=(0,eo.e)({root:{ml:2,mr:2,mb:3},list:{listStyle:"none",display:"flex",flexWrap:"wrap",columnGap:3,rowGap:1,m:0,mt:1,p:0},link:{color:"neutral.700",textDecorationColor:function(e){return e.palette.neutral[300]}}}),PortalExploreLinks=function(){return(0,c.jsxs)(u.Z,{component:"nav","aria-label":tf.explore.h2,sx:th.root,children:[(0,c.jsx)(d.Z,{variant:"brandedH5",component:"h2",fontWeight:600,children:tf.explore.h2}),(0,c.jsx)(u.Z,{component:"ul",sx:th.list,children:tf.explore.links.map(function(e){var t=e.href,n=e.label;return(0,c.jsx)("li",{children:(0,c.jsx)(tp.C,{href:t,variant:"small",sx:th.link,children:n})},t)})})]})},tm=n(21085),tx=n(6871),tv=n(95830),tg=n(90361),tb=n(3517),ty=n(81166),tj=n(1724),tC=(0,eo.e)({sectionHeader:{ml:2,mb:1.5},root:{ml:2,mb:"40px",p:{xs:3,mobile:4},borderRadius:"16px",overflow:"hidden",border:"1px solid",borderColor:"neutral.800",backgroundColor:"neutral.900",backgroundImage:function(e){return"linear-gradient(101deg, ".concat((0,eZ.Fq)(e.brand.purple[600],0)," 0%, ").concat((0,eZ.Fq)(e.brand.purple[600],.28)," 46%, ").concat((0,eZ.Fq)(e.brand.tq[800],.3)," 100%)")},"@media (max-width: 1540px)":{m:"0px 16px 40px 16px"},"@media (max-width: 768px)":{borderRadius:0,mx:"0px !important"}},hiredChip:{alignSelf:{xs:"center",mobile:"flex-start"},display:"flex",alignItems:"center",gap:.75,borderRadius:"100px",border:"1px solid",borderColor:function(e){return(0,eZ.Fq)(e.brand.success[600],.45)},backgroundColor:function(e){return(0,eZ.Fq)(e.brand.success[600],.16)},color:function(e){return e.brand.success[600]},px:1.5,py:.75,"& svg":{flexShrink:0}},outcome:{color:"common.white"},quote:{color:"neutral.100",borderLeft:{mobile:"2px solid"},borderColor:"primary.main",pl:{mobile:2}},cta:{alignSelf:{xs:"stretch",mobile:"flex-start"},borderRadius:"100px",px:3.5,py:1.5,color:"neutral.900","& .cta-arrow":{display:"inline-flex",transition:"transform 160ms ease-out"},"&:hover":{boxShadow:function(e){return"0 0 0 6px ".concat((0,eZ.Fq)(e.palette.primary.main,.18))}},"&:hover .cta-arrow":{transform:"translateX(4px)"},"@media (prefers-reduced-motion: reduce)":{"& .cta-arrow":{transition:"none"},"&:hover .cta-arrow":{transform:"none"}}}}),SuccessStorySpotlight=function(){var e=(0,tm.n)(tg.x);return e?(0,c.jsxs)(u.Z,{children:[(0,c.jsxs)(N.Z,{spacing:.5,sx:tC.sectionHeader,children:[(0,c.jsx)(d.Z,{variant:"brandedH4",component:"h2",fontWeight:600,children:tf.successStory.h2}),(0,c.jsx)(d.Z,{variant:"small",color:"neutral.700",children:tf.successStory.intro})]}),(0,c.jsx)(SuccessStorySpotlightCard,{story:e})]}):null},SuccessStorySpotlightCard=function(e){var t=e.story,n=(0,tb.J)(),r=t.student,o=t.company,i=t.role,a=t.quote,s=t.livestream;return(0,c.jsx)(tx.Z,{sx:tC.root,initial:!n&&{opacity:0,y:16},whileInView:{opacity:1,y:0},viewport:{once:!0,amount:.3},transition:{duration:.32,ease:"easeOut"},children:(0,c.jsxs)(N.Z,{direction:{xs:"column",mobile:"row"},alignItems:{xs:"center",mobile:"flex-start"},spacing:{xs:3,mobile:4},children:[(0,c.jsx)(tv.o,{photoUrl:r.photoUrl,logoUrl:o.logoUrl,companyName:o.name,size:136}),(0,c.jsxs)(N.Z,{spacing:1.5,flexGrow:1,width:"100%",alignItems:{xs:"center",mobile:"flex-start"},textAlign:{xs:"center",mobile:"left"},children:[(0,c.jsxs)(u.Z,{sx:tC.hiredChip,children:[(0,c.jsx)(ty.Z,{size:16}),(0,c.jsx)(d.Z,{variant:"small",fontWeight:600,color:"inherit",children:"Hired after a CareerFairy Live Stream"})]}),(0,c.jsxs)(N.Z,{spacing:.5,alignItems:"inherit",children:[(0,c.jsx)(d.Z,{variant:"brandedH3",component:"h3",fontWeight:600,sx:tC.outcome,children:"".concat(i," at ").concat(o.name)}),(0,c.jsx)(d.Z,{variant:"small",color:"neutral.300",children:"".concat(r.firstName," ").concat(r.lastName," \xb7 ").concat(r.university)})]}),(0,c.jsx)(d.Z,{variant:"medium",component:"blockquote",sx:tC.quote,children:"“".concat(a,"”")}),(0,c.jsx)(d.Z,{variant:"xsmall",color:"neutral.400",children:"After attending “".concat(s.title,"”")}),(0,c.jsx)(U.Z,{component:er(),href:"/next-livestreams",variant:"contained",color:"primary",sx:tC.cta,endIcon:(0,c.jsx)(u.Z,{component:"span",className:"cta-arrow",children:(0,c.jsx)(tj.Z,{size:18})}),children:"Explore Upcoming Live Streams"})]})]})})},tw=n(90766),tS=n(90453),tk=n(76341),tZ=n(22577),t_=n(77451),tI=(0,eo.e)({sectionHeader:{ml:2,mb:1.5},root:{position:"relative",ml:2,mb:"32px",borderRadius:"16px",overflow:"hidden",border:"1px solid",borderColor:function(e){return(0,eZ.Fq)(e.brand.purple[600],.12)},backgroundColor:function(e){return e.brand.white[50]},boxShadow:function(e){return"0 1px 2px rgba(16, 24, 40, 0.04), 0 12px 32px -16px ".concat((0,eZ.Fq)(e.brand.purple[600],.2))},"&::before":{content:'""',position:"absolute",inset:"0 0 auto 0",height:2,backgroundImage:function(e){return"linear-gradient(90deg, ".concat(e.brand.purple[600]," 0%, ").concat(e.brand.tq[600]," 100%)")},zIndex:1},"@media (max-width: 1540px)":{m:"0px 16px 32px 16px"},"@media (max-width: 768px)":{borderRadius:0,mx:"0px !important",borderLeft:"none",borderRight:"none"}},slide:{width:"100%",px:{xs:2.5,md:4},pt:{xs:2.5,md:3},pb:{xs:2.5,md:2.5}},topicRow:{alignItems:"center",gap:1.25,pr:10},quoteMark:{display:"grid",placeItems:"center",flexShrink:0,width:28,height:28,borderRadius:"8px",color:function(e){return e.brand.purple[600]},backgroundColor:function(e){return(0,eZ.Fq)(e.brand.purple[600],.08)}},topic:{color:function(e){return e.brand.purple[700]},fontWeight:600,letterSpacing:"0.01em"},headline:{color:"neutral.900",letterSpacing:"-0.01em"},quote:{m:0,color:"neutral.700",lineHeight:1.6,display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:{xs:5,md:2},overflow:"hidden"},footer:{flexDirection:{xs:"column",sm:"row"},alignItems:{xs:"flex-start",sm:"center"},justifyContent:"space-between",gap:1.5,mt:.5,pt:2,borderTop:"1px solid",borderColor:function(e){return(0,eZ.Fq)(e.brand.purple[600],.08)}},avatarWrap:{position:"relative",flexShrink:0,width:40,height:40},avatar:{width:40,height:40,fontSize:15,fontWeight:600,bgcolor:function(e){return e.brand.purple[600]},outline:"1px solid",outlineColor:function(e){return(0,eZ.Fq)(e.brand.purple[600],.15)},outlineOffset:2},logoBadge:{position:"absolute",right:-4,bottom:-4,width:20,height:20,borderRadius:"50%",overflow:"hidden",border:"2px s
1olid",borderColor:function(e){return e.brand.white[50]},backgroundColor:function(e){return e.brand.white[50]},boxShadow:"0 1px 3px rgba(16, 24, 40, 0.16)"},speakerMeta:{color:"neutral.600",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:1,overflow:"hidden"},watchLink:{display:"inline-flex",alignItems:"center",gap:.5,flexShrink:0,fontWeight:600,color:function(e){return e.brand.purple[600]},textDecoration:"none",transition:function(e){return e.transitions.create("color")},"& svg":{transition:"transform 160ms ease-out"},"&:hover":{color:function(e){return e.brand.purple[800]}},"&:hover svg":{transform:"translateX(3px)"},"@media (prefers-reduced-motion: reduce)":{"& svg":{transition:"none"},"&:hover svg":{transform:"none"}}},dots:{position:"absolute",top:{xs:30,md:34},right:{xs:20,md:32},zIndex:1},dot:{width:6,height:6,borderRadius:"100px",backgroundColor:function(e){return(0,eZ.Fq)(e.brand.purple[600],.2)},transition:function(e){return e.transitions.create(["width","background-color"])}},dotActive:{width:18,backgroundColor:function(e){return e.brand.purple[600]}}}),LivestreamQuotesCarousel=function(e){var t=e.quotes,n=(0,tb.J)(),r=(0,x.useRef)((0,t_.Z)({delay:7e3,playOnInit:!1,stopOnInteraction:!1,stopOnMouseEnter:!0})).current,o=(0,l._)((0,$.Z)({loop:!0},[r,(0,ee.Y)()]),2),i=o[0],a=o[1],s=(0,l._)((0,x.useState)(0),2),p=s[0],f=s[1];if((0,x.useEffect)(function(){if(a){var onSelect=function(){return f(a.selectedScrollSnap())};return a.on("select",onSelect),function(){a.off("select",onSelect)}}},[a]),(0,x.useEffect)(function(){if(a&&!n)return r.play(),function(){return r.stop()}},[a,n,r]),!(null==t?void 0:t.length))return null;var goTo=function(e){null==a||a.scrollTo(e),r.reset()};return(0,c.jsxs)(u.Z,{component:"section","aria-roledescription":"carousel",children:[(0,c.jsxs)(N.Z,{spacing:.5,sx:tI.sectionHeader,children:[(0,c.jsx)(d.Z,{variant:"brandedH4",component:"h2",fontWeight:600,children:tf.livestreamQuotes.h2}),(0,c.jsx)(d.Z,{variant:"small",color:"neutral.700",children:tf.livestreamQuotes.intro})]}),(0,c.jsxs)(u.Z,{sx:tI.root,children:[(0,c.jsx)(tS.C,{emblaRef:i,emblaApi:a,gap:"0px",children:t.map(function(e,n){return(0,c.jsx)(tS.C.Slide,{slideWidth:"100%","aria-roledescription":"slide","aria-label":"".concat(n+1," of ").concat(t.length),children:(0,c.jsx)(QuoteSlide,{quote:e})},e.id)})}),t.length>1?(0,c.jsx)(N.Z,{direction:"row",spacing:.75,sx:tI.dots,children:t.map(function(e,n){return(0,c.jsx)(tw.Z,{"aria-label":"Show quote ".concat(n+1," of ").concat(t.length),"aria-current":n===p,onClick:function(){return goTo(n)},sx:[tI.dot,n===p&&tI.dotActive]},e.id)})}):null]})]})},QuoteSlide=function(e){var t=e.quote,n=(0,m.useRouter)(),r=t.speaker,o=t.company,i=t.livestream,a="".concat(r.firstName," ").concat(r.lastName).trim();return(0,c.jsxs)(N.Z,{component:"figure",spacing:1.25,sx:tI.slide,m:0,children:[(0,c.jsxs)(N.Z,{direction:"row",sx:tI.topicRow,children:[(0,c.jsx)(u.Z,{sx:tI.quoteMark,"aria-hidden":!0,children:(0,c.jsx)(QuoteMarkIcon,{})}),(0,c.jsx)(d.Z,{variant:"small",sx:tI.topic,children:t.topicTitle})]}),(0,c.jsxs)(N.Z,{spacing:.5,children:[(0,c.jsx)(d.Z,{variant:"brandedH5",component:"h3",fontWeight:600,sx:tI.headline,children:t.headline}),(0,c.jsx)(d.Z,{variant:"medium",component:"blockquote",sx:tI.quote,children:t.quote})]}),(0,c.jsxs)(N.Z,{component:"figcaption",direction:"row",sx:tI.footer,children:[(0,c.jsxs)(N.Z,{direction:"row",spacing:1.5,alignItems:"center",minWidth:0,children:[(0,c.jsxs)(u.Z,{sx:tI.avatarWrap,children:[(0,c.jsx)(tt.Z,{sx:tI.avatar,children:r.avatarUrl?(0,c.jsx)(eM(),{src:r.avatarUrl,alt:"",fill:!0,sizes:"".concat(40,"px"),style:{objectFit:"cover"}}):r.firstName.charAt(0)}),(0,c.jsx)(u.Z,{sx:tI.logoBadge,children:(0,c.jsx)(eM(),{src:o.logoUrl,alt:"",fill:!0,sizes:"".concat(20,"px"),style:{objectFit:"contain"}})})]}),(0,c.jsxs)(u.Z,{minWidth:0,children:[(0,c.jsx)(d.Z,{variant:"small",fontWeight:600,color:"neutral.900",children:a}),(0,c.jsx)(d.Z,{variant:"xsmall",sx:tI.speakerMeta,children:"".concat(r.position," \xb7 ").concat(o.name)})]})]}),(0,c.jsxs)(d.Z,{variant:"small",component:er(),href:(0,tZ.Vq)({router:n,link:{type:"livestreamDetails",livestreamId:i.id,recordingStartSeconds:i.timestampSeconds},originSource:"portal-livestream-quotes"}),shallow:!0,scroll:!1,title:i.title,sx:tI.watchLink,children:["Watch from ".concat((0,tk.tx)(i.timestampSeconds)),(0,c.jsx)(tj.Z,{size:16})]})]})]})},QuoteMarkIcon=function(){return(0,c.jsx)("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"
1currentColor",children:(0,c.jsx)("path",{d:"M9.6 5C5.9 6.3 3 9.6 3 14.2V19h7v-7H6.3c.2-2.5 1.8-4.4 4.2-5.3L9.6 5Zm11 0c-3.7 1.3-6.6 4.6-6.6 9.2V19h7v-7h-3.7c.2-2.5 1.8-4.4 4.2-5.3L20.6 5Z"})})},tF=n(83286),tE=n(9149),tT=n(63413),tL=n(70028),SparksLoadingFallback=function(){return(0,c.jsx)(tL.D,{header:(0,c.jsx)(d.Z,{variant:"brandedH4",color:"neutral.800",fontWeight:"600",children:"Sparks"}),sx:{mb:4,ml:2}})},tD=(0,eo.e)({sparksCarousel:{mb:4,ml:2},sparksCarouselHeader:{mr:2}}),toCardSpark=function(e){var t;return(0,s._)((0,a._)({},e),{createdAt:tT.EK.fromMillis(null!==(t=e.createdAtMs)&&void 0!==t?t:0)})},sparkHref=function(e){return"/sparks/".concat(e.id)},UserSparksCarousel=function(e){var t,n=e.header,r=e.serverSparks,o=(0,tF._)(e,["header","serverSparks"]),i=(0,b.a)(),l=i.isLoadingAuth,u=i.isLoggedIn,d=(0,eT.t)(),p=(0,x.useMemo)(function(){var e;return null!==(e=null==r?void 0:r.map(toCardSpark))&&void 0!==e?e:[]},[r]),f=p.length>0,h=(0,tE.$)({enabled:!!u||!f}),m=h.sparks,v=h.isLoading,g=u&&(null==m?void 0:m.length)?m:f?p:m;return!(null==g?void 0:g.length)&&(l||v)?(0,c.jsx)(SparksLoadingFallback,{}):(0,c.jsx)(ey.x,(0,s._)((0,a._)({},o),{header:n,sparks:null!==(t=d?g:null==g?void 0:g.slice(0,6))&&void 0!==t?t:[],containerSx:tD.sparksCarousel,headerSx:tD.sparksCarouselHeader,sparkHref:sparkHref,cardQuestionComponent:"h3"}))},tP=n(42390),tR=n(68891),tO=n(68810),tA=n(29488),tW=n(23859),tM=n(29318),tJ=h()(function(){return n.e(9370).then(n.bind(n,59370)).then(function(e){return{default:e.default}})},{loadableGenerated:{webpack:function(){return[59370]}},ssr:!1,loading:function(){return(0,c.jsx)(tO.I,{})}}),tN=h()(function(){return n.e(2887).then(n.bind(n,92887)).then(function(e){return{default:e.WelcomeDialogContainer}})},{loadableGenerated:{webpack:function(){return[92887]}},ssr:!1}),tB=h()(function(){return n.e(5785).then(n.bind(n,25785)).then(function(e){return{default:e.LocationPromptDialogContainer}})},{loadableGenerated:{webpack:function(){return[25785]}},ssr:!1}),tU=h()(function(){return n.e(5906).then(n.bind(n,5906)).then(function(e){return{default:e.UpcomingPanelEvents}})},{loadableGenerated:{webpack:function(){return[5906]}},ssr:!1}),tq=(0,eo.e)({welcomeTextContainer:{ml:2,pb:2,mt:{xs:2,md:0}},pageHeading:{mt:1},introText:{maxWidth:"60ch",mt:.5,mb:1.5}}),PortalTags=function(e){var t=e.children,n=useAvailableTagsByHits(),r=n.tags,o=n.isLoading,a=(0,l._)((0,x.useState)(void 0),2),s=a[0],d=a[1],handleCategoryChipClicked=function(e){d(function(t){return t===e?void 0:e})};return(0,c.jsxs)(u.Z,{sx:{mb:3,mt:1.5,minHeight:"100vh"},children:[(0,c.jsx)(tJ,{selectedCategories:s?[s]:[],tags:r,isLoading:o,handleTagClicked:handleCategoryChipClicked,handleAllClicked:function(){return handleCategoryChipClicked(void 0)}}),s?(0,c.jsx)(tags_CategoryTagsContent,{categories:(0,i._)({},s,{selected:!0})}):t]})},tH=!0,_livestreamDialog_=function(e){var t=e.comingUpNextEvents,n=e.pastEvents,r=e.livestreamDialogData,o=e.userCountryCode,i=e.customJobDialogData,l=e.serializedOfflineEvent,f=e.featuredCompanies,h=e.portalJobs,g=e.portalSparks,y=e.livestreamQuotes,j=(0,b.a)().userData,C=(0,m.useRouter)(),w=(0,W.Z)(),k=(0,x.useMemo)(function(){return(0,E.V8)(n)},[n]),Z=(0,x.useMemo)(function(){return(0,E.V8)(t)},[t]),_=(0,tM.dv)(r);return(0,c.jsxs)(x.Fragment,{children:[(0,c.jsx)(v.Z,{id:tf.title,description:tf.description,title:tf.title}),(0,c.jsx)(F.Z,{pageDisplayName:"",isPortalPage:!0,bgColor:"#FAFAFE linear-gradient(180deg, #2ABAA50F 274px, #F7F8FC0F 400px)",headerType:"fixed",blurHeaderOnScroll:!0,headerScrollThreshold:20,children:(0,c.jsxs)(x.Fragment,{children:[(0,c.jsx)(tM.wt,{livestreamDialogData:r,children:(0,c.jsx)(ew.r,{customJobDialogData:i,source:{source:T.X.Portal,id:T.X.Portal},dialogSource:"livestreamDialog",children:(0,c.jsxs)(p.Z,{disableGutters:!0,sx:{mt:w?7:2.5},children:[_?(0,c.jsx)(tW.b,{children:_}):null,(0,c.jsxs)(u.Z,{sx:tq.welcomeTextContainer,children:[(0,c.jsx)(d.Z,{variant:"brandedH4",component:"p",color:"neutral.900",fontWeight:700,children:(null==j?void 0:j.firstName)?"Welcome, ".concat(null==j?void 0:j.firstName,"!"):"Nice to see you!"}),_?null:(0,c.jsxs)(x.Fragment,{children:[(0,c.jsx)(d.Z,{variant:"brandedH4",component:"h1",color:"neutral.900",fontWeight:700,sx:tq.pageHeading,children:tf.h1}),(0,c.jsx)(d.Z,{variant:"medium",component:"p",color:"neutral.700",sx:tq.introText,children:tf.intro})]})]}),(0,c.jsx)(tP.X$,{children:(0,c.jsx)(tR.U,{})}),(0,c.jsxs)(PortalTags,{children:[(0,c.jsx)(events_preview_PortalLiveStreamsSection,{title:"Live streams",titleComponent:"h2",serverSideEvents:Z}),(0,c.jsx)(tU,{userCountryCode:o}),(0,c.jsx)(SuccessStorySpotlight,{}),(0,c.jsx)(RecommendedCustomJobs,{serverSideJobs:h,userCountryCode:o}),(0,c.jsx)(OfflineEvents,{}),(0,c.jsx)(FeaturedCompanies,{serverSideCompanies:f,userCountryCode:o}),(0,c.jsx)(LivestreamQuotesCarousel,{quotes:y}),(0,c.jsx)(UserSparksCarousel,{header:(0,c.jsx)(d.Z,{variant:"brandedH4",component:"h2",color:"neutral.800",fontWeight:"600",children:"Sparks"}),handleSparksClicked:function(e){if(e)return C.push({pathname:"/sparks/".concat(e.id),query:(0,s._)((0,a._)({}
1,C.query),{interactionSource:L.u.Portal})})},serverSparks:g}),(0,c.jsx)(M.Z,{condition:!!(null==k?void 0:k.length),children:(0,c.jsx)(S.Z,{id:"past-events",title:"Recordings",titleComponent:"h2",location:"portal-past-livestreams-carousel",disableAutoPlay:!0,events:k,seeMoreLink:"/past-livestreams",preventPaddingSlide:!0})})]}),(0,c.jsx)(PortalExploreLinks,{})]})})}),(0,c.jsx)(tN,{}),(0,c.jsx)(tB,{})]})}),(0,c.jsx)(OfflineEventDialog,{eventFromServer:(0,tA.C)(l)})]})}},29488:function(e,t,n){"use strict";n.d(t,{C:function(){return deserializeDocument}});var r=n(87963),o=n(83617),deserializeDocument=function(e){if(null==e)return null;var convertValue=function(e){return"object"==typeof e&&null!==e&&"_seconds"in e&&"_nanoseconds"in e&&"number"==typeof e._seconds&&"number"==typeof e._nanoseconds?new o.Z.firestore.Timestamp(e._seconds,e._nanoseconds):"object"==typeof e&&null!==e&&"_latitude"in e&&"_longitude"in e&&"number"==typeof e._latitude&&"number"==typeof e._longitude?new o.Z.firestore.GeoPoint(e._latitude,e._longitude):e&&"object"==typeof e?Array.isArray(e)?e.map(convertValue):Object.fromEntries(Object.entries(e).map(function(e){var t=(0,r._)(e,2);return[t[0],convertValue(t[1])]})):e};return Object.fromEntries(Object.entries(e).map(function(e){var t=(0,r._)(e,2);return[t[0],convertValue(t[1])]}))}},84406:function(e,t,n){"use strict";n.d(t,{Bg:function(){return buildLivestreamFilterOptions},MA:function(){return buildAlgoliaFilterString},WW:function(){return getLivestreamQueryVariables}});var r=n(24022),o=n(4670),i=n(73509),a=n(70860),s=n(24808),l=n(36234),c=n(33743),getLivestreamQueryVariables=function(e){var t=(0,s.VK)(e.recordedOnly),n="string"==typeof e.companyId&&e.companyId?e.companyId:null;return{languages:(0,s.N3)(e.languages),companyCountries:(0,s.N3)(e.companyCountries),companyIndustries:(0,s.N3)(e.companyIndustries),fieldsOfStudy:(0,s.N3)(e.fieldsOfStudy),recordedOnly:t,companyId:n}},buildLivestreamFilterOptions=function(e,t){var n=e.languages,i=e.companyCountries,a=e.companyIndustries,s=e.fieldsOfStudy,l=e.companyId,c=e.recordedOnly,u="pastEvents"===t;return(0,o._)((0,r._)({arrayFilters:(0,r._)({companyIndustries:a,fieldOfStudyIdTags:s,languageCode:n},l&&{groupIds:[l]}),orArrayFilters:i.length?[{fields:["companyCountries","targetCountryIds"],values:i}]:[],booleanFilters:(0,r._)({hidden:!1,test:!1},"upcomingEvents"===t&&{hasEnded:!1},u&&{hasEnded:!0})},c&&{rawFilters:["NOT denyRecordingAccess:true"]}),{dateFilter:u?"past":"future"})},generateDateFilterString=function(e,t){if(!e)return"";switch(e){case"future":return(0,c.yV)("startTimeMs",new Date(t.getTime()-a.iy),null);case"past":return(0,c.yV)("startTimeMs",l.ou.fromJSDate(t,{zone:"utc"}).minus({months:36}).toJSDate(),t);default:return(0,c.yV)(e.attribute,e.startDate,e.endDate)}},buildAlgoliaFilterString=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Date,n=[],r=e.arrayFilters,o=e.orArrayFilters,a=e.booleanFilters,s=e.dateFilter,l=e.rawFilters;if(n.push((0,c.XB)(r)),null==o?void 0:o.length){var u=!0,d=!1,p=void 0;try{for(var f,h=o[Symbol.iterator]();!(u=(f=h.next()).done);u=!0)!function(){var e=f.value,t=e.fields,r=e.values.filter(Boolean).flatMap(function(e){return t.map(function(t){return"".concat(t,":").concat(e)})}).join(" OR ");r&&n.push("(".concat(r,")"))}()}catch(e){d=!0,p=e}finally{try{u||null==h.return||h.return()}finally{if(d)throw p}}}return n.push((0,c.V)(a)),n.push(generateDateFilterString(s,t)),(null==l?void 0:l.length)&&n.push.apply(n,(0,i._)(l)),n.push("livestreamType:livestream"),n.filter(Boolean).join(" AND ")}},75280:function(e,t,n){"use strict";n.d(t,{RU:function(){return r},PW:function(){return o}});var r={stem:{id:"stem",name:"STEM"},business_plus:{id:"business_plus",name:"Business+"}},o={business_administration_economics:"business_plus",finance:"business_plus",law:"business_plus",luxury_fashion:"business_plus",marketing:"business_plus",military_sciences:"business_plus",public_administration:"business_plus",transportation:"business_plus",business_engineering:"stem",chemical_engineering:"stem",civil_engineering:"stem",electrical_engineering:"stem",materials_science_and_engineering:"stem",mechanical_engineering:"stem",space_sciences:"stem",computer_science:"stem",mathematics:"stem",astronomy:"stem",biology:"stem",chemistry:"stem",earth_sciences:"stem",environmental_studies_and_forestry:"stem",geography:"stem",life_sciences:"stem",medicine:"stem",physics:"stem",systems_science:"stem"}},63596:function(e,t,n){"use strict";n.d(t,{F7:function(){return r}});var r={START_ASC:"livestreams_startTimeMs_asc",START_DESC:"livestreams_startTimeMs_desc"}},77451:function(e,t,n){"use strict";n.d(t,{Z:function(){return Autoplay}});let r={active:!0,breakpoints:{},delay:4e3,jump:!1,playOnInit:!0,stopOnFocusIn:!0,stopOnInteraction:!0,stopOnMouseEnter:!1,stopOnLastSnap:!1,rootNode:null};function Autoplay(e={}){let t,n,o,i;let a=null,s=0,l=!1,c=!1,u=!1,d=!1;function startAutoplay(){if(!o){if(documentIsHidden()){u=!0;return}l||n.emit("autoplay:play"),function(){let{ownerWindow:e}=n.internalEngine();e.clearTimeout(s),s=e.setTimeout(next,i[n.selectedScrollSnap()]),a=new Date().getTime(),n.emit("autoplay:timerset")}(),l=!0}}function stopAutoplay(){o||(l&&n.emit("autoplay:stop"),function(){let{ownerWindow:e}=n.internalEngine();e.clearTimeout(s),s=0,a=null,n.emit("autoplay:timerstopped")}(),l=!1)}function visibilityChange(){if(documentIsHidden())return u=l,stopAutoplay();u&&startAutoplay()}function documentIsHidden(){let{ownerDocument:e}=n.internalEngine();return"hidden"===e.visibilityState}function pointerDown(){c||stopAutoplay()}function pointerUp(){c||startAutoplay()}function mouseEnter(){c=!0,stopAutoplay()}function mouseLeave(){c=!1,startAutoplay()}function next(){let{index:e}=n.internalEngine(),r=e.clone().add(1).get(),o=n.scrollSnapList().length-1,i=t.stopOnLastSnap&&r===o;if(n.canScrollNext()?n.scrollNext(d):n.scrollTo(0,d),n.emit("autoplay:select"),i)return stopAutoplay();startAutoplay()}return{name:"autoplay",options:e,init:function(a,s){n=a;let{mergeOptions:l,optionsAtMedia:c}=s,u=l(r,Autoplay.globalOptions),p=l(u,e);if(t=c(p),n.scrollSnapList().length<=1)return;d=t.jump,o=!1,i=function(e,t){let n=e.scrollSnapList();return"number"==typeof t?n.map(()=>t):t(n,e)}(n,t.delay);let{eventStore:f,ownerDocument:h}=n.internalEngine(),m=!!n.internalEngine().options.watchDrag,x=function(e,t){let n=e.rootNode();return t&&t(n)||n}(n,t.rootNode);f.add(h,"visibilitychange",visibilityChange),m&&n.on("pointerDown",pointerDown),m&&!t.stopOn
1Interaction&&n.on("pointerUp",pointerUp),t.stopOnMouseEnter&&f.add(x,"mouseenter",mouseEnter),t.stopOnMouseEnter&&!t.stopOnInteraction&&f.add(x,"mouseleave",mouseLeave),t.stopOnFocusIn&&n.on("slideFocusStart",stopAutoplay),t.stopOnFocusIn&&!t.stopOnInteraction&&f.add(n.containerNode(),"focusout",startAutoplay),t.playOnInit&&startAutoplay()},destroy:function(){n.off("pointerDown",pointerDown).off("pointerUp",pointerUp).off("slideFocusStart",stopAutoplay),stopAutoplay(),o=!0,l=!1},play:function(e){void 0!==e&&(d=e),startAutoplay()},stop:function(){l&&stopAutoplay()},reset:function(){l&&startAutoplay()},isPlaying:function(){return l},timeUntilNext:function(){if(!a)return null;let e=i[n.selectedScrollSnap()],t=new Date().getTime()-a;return e-t}}}Autoplay.globalOptions=void 0},3517:function(e,t,n){"use strict";n.d(t,{J:function(){return useReducedMotion}});var r=n(2784),o=n(52062),i=n(23993);function useReducedMotion(){i.O.current||(0,o.A)();let[e]=(0,r.useState)(i.n.current);return e}}},function(e){e.O(0,[8421,2212,5351,1446,5188,960,1139,1251,6523,6573,3486,1236,8325,9650,1757,6659,6262,8255,5507,5947,8468,9774,2888,179],function(){return e(e.s=76522)}),_N_E=e.O()}]);

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.