1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3878],{52182:function(e,t,o){var n=o(57437),r=o(2265),i=o(12032),a=o(99342),s=o(24287),c=o(44986);t.Z=function(e){let{mode:t,message:o,duration:l=5e3,bulletPoints:u=[],onClose:d}=e,[f,m]=(0,r.useState)(!0),[p,h]=(0,r.useState)(!1);(0,r.useEffect)(()=>{let e=setTimeout(()=>{b()},l);return()=>clearTimeout(e)},[l]);let b=()=>{h(!0),setTimeout(()=>{m(!1),d&&d()},300)};return f?(0,n.jsx)("div",{role:"alert","aria-live":"assertive",className:"w-full border border-offBlack/20 ".concat((()=>{switch(t){case"error":return"bg-errorBg";case"alert":return"bg-alertBg";case"success":return"bg-successBg";default:return"bg-offWhite"}})()," rounded-sm shadow-lg overflow-hidden transition-all duration-300 ease-in-out ").concat(p?"opacity-0 translate-y-2":"opacity-100 translate-y-0"),children:(0,n.jsx)("div",{className:"p-4",children:(0,n.jsxs)("div",{className:"flex items-start",children:[(0,n.jsx)("div",{className:"flex-shrink-0",children:(()=>{switch(t){case"error":return(0,n.jsx)(i.Z,{className:"h-6 w-6 text-coral","aria-hidden":"true"});case"alert":return(0,n.jsx)(a.Z,{className:"h-6 w-6 text-offBlack","aria-hidden":"true"});case"success":return(0,n.jsx)(s.Z,{className:"h-6 w-6 text-green","aria-hidden":"true"});default:return null}})()}),(0,n.jsxs)("div",{className:"ml-3 w-0 flex-1 pt-0.5",children:[(0,n.jsx)("p",{className:"text-sm font-medium text-offBlack",children:o}),u.length>0&&(0,n.jsx)("ul",{className:"mt-2 text-sm text-offBlack list-disc list-inside",children:u.map((e,t)=>(0,n.jsx)("li",{children:e},t))})]}),(0,n.jsx)("div",{className:"ml-4 flex-shrink-0 flex",children:(0,n.jsx)("button",{className:"bg-transparent rounded-sm inline-flex text-offBlack-400 hover:text-offBlack focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-gray",onClick:b,"aria-label":"Close",children:(0,n.jsx)(c.Z,{className:"h-5 w-5","aria-hidden":"true"})})})]})})}):null}},61357:function(e,t,o){var n=o(57437),r=o(2265),i=o(27648),a=o(99376),s=o(97491);let c={xs:"px-2 py-1 text-[11px]",sm:"px-2.5 py-1.5 text-xs",md:"px-3 py-2 text-xs",lg:"px-3.5 py-2.5 text-sm",xl:"px-4 py-3 text-sm"},l={primary:"bg-green text-offWhite shadow-sm hover:bg-offBlack focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-green",secondary:"bg-offWhite text-offBlack shadow-sm ring-1 ring-inset ring-offBlack/20 hover:bg-gray/70",search:"bg-green text-offWhite hover:bg-offBlack focus:outline-none focus:ring-2 focus:ring-green focus:ring-offset-2 sm:text-sm sm:leading-6",danger:"bg-coral text-offWhite shadow-sm hover:bg-offBlack focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-coral"},u=r.forwardRef((e,t)=>{let{children:o,className:u="",size:d="md",variant:f="primary",href:m,leftIcon:p,rightIcon:h,loading:b=!1,type:g="button",...x}=e,[v,y]=(0,r.useState)(!1),w=(0,a.useRouter)(),k=c[d],N=l[f],C=(b||v)&&"primary"===f?"bg-offBlack":"",E="inline-flex items-center justify-center rounded-sm font-mono uppercase tracking-[0.18em] font-medium transition-colors ".concat(k," ").concat(N," ").concat(C," ").concat(u),S=(0,n.jsxs)(n.Fragment,{children:[(b||v)&&(0,n.jsx)(s.Z,{}),p&&(0,n.jsx)("span",{className:"mr-2 -ml-0.5",children:p}),o,h&&(0,n.jsx)("span",{className:"ml-2 -mr-0.5",children:h})]});return m?(0,n.jsx)(i.default,{href:m,onClick:e=>{m&&(e.preventDefault(),y(!0),w.push(m))},children:(0,n.jsx)("span",{ref:t,className:E,...x,children:S})}):(0,n.jsx)("button",{ref:t,type:g,className:E,...x,children:S})});u.displayName="Button",t.default=u},97491:function(e,t,o){o.d(t,{Z:function(){return r}});var n=o(57437);function r(e){let{theme:t="primary"}=e,o="primary"===t?"bg-primary rounded-sm animate-square-pulse":"bg-white rounded-sm animate-square-pulse";return(0,n.jsx)("div",{"aria-hidden":"true",className:"inline-grid grid-cols-2 gap-0.5 w-5 h-5 mr-2",children:[0,1,2,3].map(e=>(0,n.jsx)("div",{className:o,style:{animationDelay:"".concat(.15*e,"s")}},e))})}},83878:function(e,t,o){o.r(t),o.d(t,{default:function(){return b}});var n=o(57437),r=o(2265),i=o(60923),a=o(61357),s=o(52059),c=o(21921),l=o(84678),u=o(1933),d=o(36836),f=o(26071),m=o(7621),p=o(59559),h=o(69626);function b(e){let{itemId:t,type:o="job",variant:b="icon",className:g}=e,[x,v]=(0,r.useState)(!1),{showAlert:y}=(0,s.V)();(0,r.useEffect)(()=>
1{if("job"===o){v((0,d.tm)(t));let e=()=>{v((0,d.tm)(t))};return window.addEventListener("savedJobsUpdated",e),()=>{window.removeEventListener("savedJobsUpdated",e)}}if("company"===o){v((0,u.jf)(t));let e=()=>{v((0,u.jf)(t))};return window.addEventListener("followedCompaniesUpdated",e),()=>{window.removeEventListener("followedCompaniesUpdated",e)}}},[t,o]);let w=async e=>{e.preventDefault(),e.stopPropagation();let n="job"===o?(0,c.CD)(l.BI.SAVED_JOBS):(0,c.CD)(l.BI.FOLLOWED_COMPANIES);if(!((0,c.FL)(l.yk.FUNCTIONAL)&&n)){y("alert","Please enable the relevant cookies to ".concat("job"===o?"save jobs":"follow companies"));return}if("job"===o){v((0,d.C8)(t));return}if("company"===o){v((0,u.iR)(t));return}},k=()=>"job"===o?x?(0,n.jsx)(f.Z,{className:"h-6 w-6 text-primary"}):(0,n.jsx)(m.Z,{className:"h-6 w-6"}):(0,n.jsx)(i.Z,{icon:x?p.Z:h.Z,color:"lilac",className:"cursor-pointer hover:bg-lilac/30 transition-colors",children:x?"Followed":"Follow"});return"company"===o?(0,n.jsx)("button",{onClick:w,className:"focus:outline-none focus:ring-2 focus:ring-green focus:ring-offset-2","aria-label":x?"Unfollow company":"Follow company",children:k()}):"button"===b?(0,n.jsxs)(a.default,{variant:"secondary",size:"lg",className:g,onClick:w,children:[k(),x?"Saved":"Save Job"]}):(0,n.jsx)("button",{onClick:w,className:"text-offBlack/40 hover:text-green focus:outline-none focus:ring-2 focus:ring-green focus:ring-offset-2","aria-label":x?"Unsave job":"Save job",children:k()})}},60923:function(e,t,o){o.d(t,{Z:function(){return r}});var n=o(57437);function r(e){var t,o,r;let{children:i,icon:a,iconPosition:s="left",size:c="sm",color:l="lilac",className:u="",selected:d=!1,onRemove:f,asButton:m=!1,...p}=e,h={xs:"text-[10px] px-2 py-0.5 gap-1",sm:"text-xs px-2.5 py-0.5 gap-1",md:"text-sm px-3 py-1 gap-1.5",lg:"text-sm px-3.5 py-1.5 gap-2",xl:"text-base px-4 py-2 gap-2",xxl:"text-base px-5 py-2.5 gap-2.5",category:"text-xs px-3 py-1.5 gap-1.5"},b={xs:"h-2.5 w-2.5",sm:"h-3 w-3",md:"h-3.5 w-3.5",lg:"h-4 w-4",xl:"h-4.5 w-4.5",xxl:"h-5 w-5",category:"h-3 w-3"},g={green:"bg-green/10 text-green-800 border border-green/20",lilac:"bg-lilac/10 text-lilac-800 border border-lilac/20",coral:"bg-coral/10 text-coral-800 border border-coral/20",lime:"bg-lime/50 text-lime-800 border border-lime/20",offBlack:"bg-offBlack/10 text-offBlack border border-offBlack/20",outline:"bg-transparent border border-offBlack/20 text-offBlack hover:bg-gray/40",neutral:"bg-gray/50 text-offBlack border border-gray/80",primary:"bg-lilac/10 text-lilac-800 border border-lilac/20"},x=["inline-flex items-center font-mono uppercase tracking-[0.1em] rounded-sm whitespace-nowrap transition-colors focus:outline-none focus:ring-1 focus:ring-offset-1",null!==(t=h[c])&&void 0!==t?t:h.sm,null!==(o=g[l])&&void 0!==o?o:g.lilac,d?"ring-1 ring-green ring-offset-1":"",u].filter(
1Boolean).join(" "),v=null!==(r=b[c])&&void 0!==r?r:b.sm,y=a?(0,n.jsx)(a,{className:"".concat(v," flex-shrink-0"),"aria-hidden":!0}):null,w=(0,n.jsxs)(n.Fragment,{children:["left"===s&&y,null!=i&&""!==i&&(0,n.jsx)("span",{children:i}),"right"===s&&y,f&&(0,n.jsx)("button",{type:"button",onClick:e=>{e.preventDefault(),e.stopPropagation(),f()},className:"ml-1 -mr-0.5 inline-flex h-4 w-4 flex-shrink-0 items-center justify-center rounded-full hover:bg-current/10 focus:outline-none focus:ring-1 focus:ring-current","aria-label":"Remove ".concat("string"==typeof i?i:"badge"),children:(0,n.jsx)("svg",{className:"h-2 w-2",stroke:"currentColor",fill:"none",viewBox:"0 0 8 8",children:(0,n.jsx)("path",{strokeLinecap:"round",strokeWidth:"1.5",d:"M1 1l6 6m0-6L1 7"})})})]});return m||p.onClick?(0,n.jsx)("button",{type:"button",className:x,...p,children:w}):(0,n.jsx)("span",{className:x,...p,children:w})}},37402:function(e,t,o){o.d(t,{AlertProvider:function(){return s},w:function(){return a}});var n=o(57437),r=o(2265),i=o(52182);let a=(0,r.createContext)();function s(e){let{children:t}=e,[o,s]=(0,r.useState)([]),c=(0,r.useCallback)(function(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:5e3,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],r="".concat(Date.now(),"-").concat(Math.random().toString(36).substring(2,9));s(i=>[...i,{id:r,mode:e,message:t,duration:o,bulletPoints:n}])},[]),l=(0,r.useCallback)(e=>{s(t=>t.filter(t=>t.id!==e))},[]);return(0,n.jsxs)(a.Provider,{value:{showAlert:c},children:[t,o.length>0&&(0,n.jsx)("div",{className:"fixed bottom-8 left-1/2 -translate-x-1/2 z-50 flex max-w-sm w-full flex-col-reverse items-center gap-3",children:o.map(e=>(0,n.jsx)(i.Z,{mode:e.mode,message:e.message,duration:e.duration,bulletPoints:e.bulletPoints,onClose:()=>l(e.id)},e.id))})]})}},52059:function(e,t,o){o.d(t,{V:function(){return i}});var n=o(2265),r=o(37402);function i(){let e=(0,n.useContext)(r.w);if(!e)throw Error("useAlert must be used within an AlertProvider");return e}},21921:function(e,t,o){o.d(t,{HQ:function(){return p},H$:function(){return l},IZ:function(){return f},FL:function(){return u},CD:function(){return d},QQ:function(){return m}});var n=o(84678);o(83079);var r=(0,o(12119).$)("93971afdd1a726f383ed32d2e7a56b3ec5a59360");let i={[n.BI.SAVED_JOBS]:"saved_jobs",[n.BI.FOLLOWED_COMPANIES]:"followed_companies",[n.BI.HIDDEN_RECOMMENDATIONS]:"hidden_recommendations"};function a(e){try{let t=new Date(0).toUTCString();document.cookie="".concat(e,"=; expires=").concat(t,"; path=/; SameSite=Lax"),document.cookie="".concat(e,"=; expires=").concat(t,"; path=/; SameSite=Lax; domain=").concat(window.location.hostname),document.cookie="".concat(e,"=; expires=").concat(t,"; path=/; SameSite=Lax; domain=.").concat(window.location.hostname)}catch(t){console.error("Error deleting cookie ".concat(e,":"),t)}}function s(e){if(!(null==e?void 0:e.services))return[];let t=e.services;return t[n.yk.FUNCTIONAL]?Array.isArray(t[n.yk.FUNCTIONAL])?t[n.yk.FUNCTIONAL]:[]:Object.keys(t).filter(e=>Object.values(n.BI).includes(e)&&!0===t[e])}let c={saved_jobs:"savedJobsUpdated",followed_companies:"followedCompaniesUpdated"};function l(e,t){try{var o,r;let l=new Set,u=null==e?void 0:null===(o=e.categories)||void 0===o?void 0:o.includes(n.yk.FUNCTIONAL),d=null==t?void 0:null===(r=t.categories)||void 0===r?void 0:r.includes(n.yk.FUNCTIONAL);if(u&&!d)Object.values(i).forEach(e=>{a(e),l.add(e)});else{let o=s(e),n=s(t);o.filter(e=>!n.includes(e)).forEach(e=>{let t=i[e];t&&(a(t),l.add(t))})}l.forEach(e=>{let t=c[e];t&&window.dispatchEvent(new CustomEvent(t))})}catch(e){console.error("Error deleting revoked cookies:",e)}}function u(e){try{var t;let o=document.cookie.split("; ").find(e=>e.startsWith("".concat(n.HR.CONSENT,"=")));if(!o)return!1;let r=JSON.parse(decodeURIComponent(o.split("=")[1]));return(null===(t=r.categories)||void 0===t?void 0:t.includes(e))||!1}catch(e){return console.error("Error checking cookie consent:",e),!1}}function d(e){try{let t=document.cookie.split("; ").find(e=>e.startsWith("".concat(n.HR.CONSENT,"=")));if(!t)return!1;let o=JSON.parse(decodeURIComponent(t.split("=")[1]));return Object.values(o.services||{}).some(t=>Array.isArray(t)&&t.includes(e))}catch(e){return console.error("Error checking service consent:",e),!1}}function f(){try{let e=document.cookie.split("; ").find(e=>e.startsWith("".concat(n.HR.CONSENT,"=")));if(!e)return null;return JSON.parse(decodeURIComponent(e.split("=")[1]))}catch(e){return console.error("Error getting cookie consent preferences:",e),null}}function m(){window.dispatchEvent(new CustomEvent("cookieConsentUpdate"))}async function p(e,t){try{await r({action:e,consentData:t})}catch(e){console.error("Failed to audit consent:",e)}}},84678:function(e,t,o){o.d(t,{AO:function(){return a},BI:function(){return r},HR:function(){return i},th:function(){return l},yk:function(){return n}});let n={NECESSARY:"necessary",FUNCTIONAL:"functional",ADVERTISING:"advertising"},r={SAVED_JOBS:"saved_jobs",FOLLOWED_COMPANIES:"followed_companies",LIKED_ITEMS:"liked_items",HIDDEN_RECOMMENDATIONS:"hidden_recommendations"},i={CONSENT:"cc_cookie"},a={ACCEPT_ALL:"accept_all",ACCEPT_NECESSARY:"accept_necessary",CUSTOM:"custom",UPDATE:"update",WITHDRAW:"withdraw"},s={cookie:{name:i.CONSENT,expiresAfterDays:365,sameSite:"Lax"},categories:{[n.NECESSARY]:{enabled:!0,readOnly:!0},[n.FUNCTIONAL]:{enabled:!1,readOnly:!1,services:{[r.SAVED_JOBS]:{label:"Saved Jobs",description:"Remembers jobs you have saved for quick access later"},[r.FOLLOWED_COMPANIES]:{label:"Followed Companies",description:"Remembers companies you follow to receive updates and notifications"},[r.LIKED_ITEMS]:{label:"Liked Items",description:"Remembers articles, jobs, and other content you have liked for personalized recommendations"},[r.HIDDEN_RECOMMENDATIONS]:{label:"Hidden Dashboard Recommendations",description:"Remembers dashboard recommendations you choose to hide"}}},[n.ADVERTISING]:{enabled:!1,readOnly:!1}},guiOptions:{consentModal:{layout:"box",position:"bottom right"},preferencesModal:{layout:"box",position:"right"}}},c={default:"en",translations:{en:{consentModal:{title:"Cookie Preferences",description:"We use cookies to ensure our website functions properly and to enhance your experience.",acceptAllBtn:"Accept All",acceptNecessaryBtn:"Accept Necessary Only",showPreferencesBtn:"Manage Preferences"},preferencesModal:{title:"Cookie Preferences",acceptAllBtn:"Accept All",acceptNecessaryBtn:"Accept Necessary Only",savePreferencesBtn:"Save Preferences",sections:[{title:"Necessary Cookies",description:"These cookies are essential for the website to function properly and cannot be disabled. They include cookies for user authentication, security, and basic website functionality.",linkedCategory:n.NECESSARY},{title:"Functional Cookies",description:"These cookies enhance your experience by remembering your preferences and interactions with the website. You can choose to enable or disable specific features below.",linkedCategory:n.FUNCTIONAL,services:[{service:r.SAVED_JOBS,label:"Saved Jobs",description:"Remembers jobs you have saved for quick access later"},{service:r.FOLLOWED_COMPANIES,label:"Followed Companies",description:"Remembers companies you follow to receive updates and notifications"},{service:r.LIKED_ITEMS,label:"Liked Items",description:"Remembers articles, jobs, and other content you have liked for personalized recommendations"},{service:r.HIDDEN_RECOMMENDATIONS,label:"Hidden Dashboard Recommendations",description:"Remembers dashboard recommendations you choose to hide"}]},{title:"Advertising Cookies",description:"These cookies are used to measure the effectiveness of advertising campaigns. They help us understand which ads lead to job applications.",linkedCategory:n.ADVERTISING},{title:"More Information",description:'For more information about our cookie usage, please read our <a href="/privacy" target="_blank">Privacy Policy</a>.'}]}}}};function l(){return{...s,language:c}}},1933:function(e,t,o){o.d(t,{AZ:function(){return s},iR:function(){return c},jf:function(){return l}});var n=o(21921),r=o(84678);let i="followed_companies";function a(){return(0,n.FL)(r.yk.FUNCTIONAL)&&(0,n.CD)(r.BI.FOLLOWED_COMPANIES)}function s(){if(!a())return[];try{let e=document.cookie.split("; ").find(e=>e.startsWith("".concat(i,"=")));if(!e)return[];let t=JSON.parse(decodeURIComponent(e.split("=")[1]));return Array.isArray(t)?t:[]}catch(e){return console.error("Error reading followed companies from cookie
1:",e),[]}}function c(e){return s().includes(e)?(!function(e){if(!a()){console.warn("Cannot remove company: User has not consented to functional cookies");return}try{let t=s().filter(t=>t!==e),o=new Date;o.setFullYear(o.getFullYear()+1),document.cookie="".concat(i,"=").concat(encodeURIComponent(JSON.stringify(t)),"; expires=").concat(o.toUTCString(),"; path=/; SameSite=Lax"),window.dispatchEvent(new CustomEvent("followedCompaniesUpdated"))}catch(e){console.error("Error removing company from cookie:",e)}}(e),!1):(!function(e){if(!a()){console.warn("Cannot save company: User has not consented to functional cookies");return}try{let t=s();if(!t.includes(e)){t.push(e);let o=new Date;o.setFullYear(o.getFullYear()+1),document.cookie="".concat(i,"=").concat(encodeURIComponent(JSON.stringify(t)),"; expires=").concat(o.toUTCString(),"; path=/; SameSite=Lax"),window.dispatchEvent(new CustomEvent("followedCompaniesUpdated"))}}catch(e){console.error("Error saving company to cookie:",e)}}(e),!0)}function l(e){return s().includes(e)}},36836:function(e,t,o){o.d(t,{C8:function(){return c},Om:function(){return s},tm:function(){return l}});var n=o(21921),r=o(84678);let i="saved_jobs";function a(){return(0,n.FL)(r.yk.FUNCTIONAL)&&(0,n.CD)(r.BI.SAVED_JOBS)}function s(){if(!a())return[];try{let e=document.cookie.split("; ").find(e=>e.startsWith("".concat(i,"=")));if(!e)return[];let t=JSON.parse(decodeURIComponent(e.split("=")[1]));return Array.isArray(t)?t:[]}catch(e){return console.error("Error reading saved jobs from cookie:",e),[]}}function c(e){return s().includes(e)?(!function(e){if(!a()){console.warn("Cannot remove job: User has not consented to functional cookies");return}try{let t=s().filter(t=>t!==e),o=new Date;o.setFullYear(o.getFullYear()+1),document.cookie="".concat(i,"=").concat(encodeURIComponent(JSON.stringify(t)),"; expires=").concat(o.toUTCString(),"; path=/; SameSite=Lax"),window.dispatchEvent(new CustomEvent("savedJobsUpdated"))}catch(e){console.error("Error removing job from cookie:",e)}}(e),!1):(!function(e){if(!a()){console.warn("Cannot save job: User has not consented to functional cookies");return}try{let t=s();if(!t.includes(e)){t.push(e);let o=new Date;o.setFullYear(o.getFullYear()+1),document.cookie="".concat(i,"=").concat(encodeURIComponent(JSON.stringify(t)),"; expires=").concat(o.toUTCString(),"; path=/; SameSite=Lax"),window.dispatchEvent(new CustomEvent("savedJobsUpdated"))}}catch(e){console.error("Error saving job to cookie:",e)}}(e),!0)}function l(e){return s().includes(e)}}}]);
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.