1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,974661,e=>{"use strict";var t=e.i(843476),r=e.i(326999),s=e.i(995926),n=e.i(640602),a=e.i(88777);function i(e){let{...s}=e;return(0,t.jsx)(r.Portal,{"data-slot":"sheet-portal",...s})}function l(e){let{className:s,...a}=e;return(0,t.jsx)(r.Overlay,{"data-slot":"sheet-overlay",className:(0,n.cn)("fixed inset-0 z-50","bg-overlay/85","data-[state=open]:animate-in data-[state=open]:fade-in-0","data-[state=closed]:animate-out data-[state=closed]:fade-out-0",s),...a})}e.s(["Sheet",0,function(e){let{...s}=e;return(0,t.jsx)(r.Root,{"data-slot":"sheet",...s})},"SheetBody",0,function(e){let{className:r,...s}=e;return(0,t.jsx)("div",{"data-slot":"sheet-body",className:(0,n.cn)("flex-1 overflow-y-auto",r),...s})},"SheetContent",0,function(e){let{className:a,children:o,side:c="right",hideCloseButton:u=!1,closeSrText:d="Close",...f}=e;return(0,t.jsxs)(i,{children:[(0,t.jsx)(l,{}),(0,t.jsxs)(r.Content,{"data-slot":"sheet-content","data-side":c,className:(0,n.cn)("group/sheet-content","fixed z-50","flex flex-col gap-6 p-6","bg-background shadow-lg","transition ease-in-out","data-[state=open]:animate-in data-[state=closed]:animate-out","data-[state=closed]:duration-300 data-[state=open]:duration-500","right"===c&&["bottom-0 max-h-svh w-full border-t","lg:right-0 lg:h-full lg:w-lg lg:border-0 lg:border-l","data-[state=open]:max-lg:slide-in-from-bottom data-[state=closed]:max-lg:slide-out-to-bottom","lg:data-[state=open]:slide-in-from-right lg:data-[state=closed]:slide-out-to-right"],"left"===c&&["top-0 max-h-svh w-full border-b","lg:left-0 lg:h-full lg:w-lg lg:border-0 lg:border-r","data-[state=open]:max-lg:slide-in-from-top data-[state=closed]:max-lg:slide-out-to-top","lg:data-[state=open]:slide-in-from-left lg:data-[state=closed]:slide-out-to-left"],a),...f,children:[o,!u&&(0,t.jsxs)(r.Close,{className:(0,n.cn)("absolute top-4 right-4","rounded-2xs border-2 border-transparent","hover:opacity-80","focus:opacity-80","focus:border-ring/20","focus:outline-hidden","transition-opacity","cursor-pointer"),children:[(0,t.jsx)(s.XIcon,{className:"size-4"}),(0,t.jsx)("span",{className:"sr-only",children:d})]})]})]})},"SheetFooter",0,function(e){let{className:r,children:s,...n}=e;return(0,t.jsxs)("div",{"data-slot":"sheet-footer",className:"flex flex-col gap-6",...n,children:[(0,t.jsx)(a.Separator,{}),(0,t.jsx)("div",{className:r,children:s})]})},"SheetHeader",0,function(e){let{className:r,...s}=e;return(0,t.jsx)("div",{"data-slot":"sheet-header",className:(0,n.cn)("flex flex-col gap-2",r),...s})},"SheetTitle",0,function(e){let{className:s,...a}=e;return(0,t.jsx)(r.Title,{"data-slot":"sheet-title",className:(0,n.cn)("text-foreground text-center text-lg leading-normal font-semibold lg:text-left",s),...a}
1)},"SheetTrigger",0,function(e){let{...s}=e;return(0,t.jsx)(r.Trigger,{"data-slot":"sheet-trigger",...s})}])},612939,e=>{"use strict";var t=e.i(843476);e.s(["default",0,function(e){let{children:r}=e;return r({p:e=>(0,t.jsx)("p",{children:e}),b:e=>(0,t.jsx)("b",{className:"font-semibold",children:e}),i:e=>(0,t.jsx)("i",{className:"italic",children:e}),branded:e=>(0,t.jsx)("span",{className:"text-highlighted-content",children:e}),ul:e=>(0,t.jsx)("ul",{className:"list-inside list-disc",children:e}),li:e=>(0,t.jsx)("li",{className:"list-item",children:e})})}])},932920,e=>{"use strict";var t=e.i(620873);e.i(870165);var r=e.i(881921),s=e.i(869230),n=e.i(992571),a=class extends s.QueryObserver{bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(e){super.setOptions({...e,behavior:(0,n.infiniteQueryBehavior)()})}getOptimisticResult(e){return e.behavior=(0,n.infiniteQueryBehavior)(),super.getOptimisticResult(e)}fetchNextPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"forward"}}})}fetchPreviousPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"backward"}}})}createResult(e,t){let{state:r}=e,s=super.createResult(e,t),{isFetching:a,isRefetching:i,isError:l,isRefetchError:o}=s,c=r.fetchMeta?.fetchMore?.direction,u=l&&"forward"===c,d=a&&"forward"===c,f=l&&"backward"===c,p=a&&"backward"===c;return{...s,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:(0,n.hasNextPage)(t,r.data),hasPreviousPage:(0,n.hasPreviousPage)(t,r.data),isFetchNextPageError:u,isFetchingNextPage:d,isFetchPreviousPageError:f,isFetchingPreviousPage:p,isRefetchError:o&&!u&&!f,isRefetching:i&&!d&&!p}}constructor(e,t){super(e,t)}},i=e.i(469637),l=e.i(266027),o=e.i(861745),c=e.i(601330);e.s(["useRecommendedJobsByJobId",0,function(e,s){let n=(0,o.useLocale)();return(0,l.useQuery)({queryKey:[t.TanstackQueryKeys.RECOMMENDED_JOBS_BY_JOB_ID,e,n,s],queryFn:async()=>(await r.recommendationsService.getRecommendedJobsByJobId(e,{locale:n,...s})).items})},"useRecommendedJobsByProfileInfinite",0,function(e){var s;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,{isAuthenticated:l}=(0,c.useAuth)(),u=(0,o.useLocale)();return s={queryKey:[t.TanstackQueryKeys.RECOMMENDED_JOBS_BY_PROFILE,u,e],queryFn:async t=>{let{pageParam:s}=t;return await r.recommendationsService.getRecommendedJobsByProfile({locale:u,...e,page:s})},getNextPageParam:(e,t)=>{let r=t.length;if(r<e.pages)return r},enabled:l,initialPageParam:0,staleTime:n},(0,i.useBaseQuery)(s,a,void 0)},"useRecommendedJobsForMassApplyByJobId",0,function(e,s){let n=(0,o.useLocale)();return(0,l.useQuery)({queryKey:[t.TanstackQueryKeys.RECOMMENDED_MASS_APPLY_JOBS,e,n,s],queryFn:async()=>(await r.recommendationsService.getRecommendedJobsForMassApplyByJobId(e,{locale:n,...s})).items})}],932920)},325147,e=>{"use strict";var t=e.i(948148);e.i(126194),e.i(160646);e.s(["useSafeTranslations",0,function(){let e=(0,t.useTranslations)();return{t:e,safeTranslate:(t,r)=>{var s;return(s=t,e.has(s))?e(t):r||t.split(".").pop()||t}}},"useSafeTranslationsWithNamespace",0,function(e){let r=(0,t.useTranslations)(e);return{t:r,safeTranslate:(e,t)=>
1{var s;return(s=e,r.has(s))?r(e):t||e.split(".").pop()||e}}}])},307551,e=>{"use strict";var t=e.i(620873);e.i(870165);var r=e.i(238926),s=e.i(266027),n=e.i(861745),a=e.i(601330);e.s(["useCompaniesById",0,function(e){return(0,s.useQuery)({queryKey:[t.TanstackQueryKeys.COMPANIES_BY_ID,e],queryFn:()=>r.companiesService.getById(e),enabled:e.length>0,staleTime:3e5,gcTime:6e5})},"useCompanyAutocomplete",0,function(e,a){let i=(0,n.useLocale)(),l=e?.trim()??"";return(0,s.useQuery)({queryKey:[t.TanstackQueryKeys.COMPANY_AUTOCOMPLETE,l,i],queryFn:()=>r.companiesService.get({locale:i,name:l,limit:50}),enabled:a?.enabled,staleTime:3e5,gcTime:6e5})},"useFollowedCompanies",0,function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{enabled:i=!0}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{page:l=0,limit:o=10}=e,c=(0,n.useLocale)(),{isAuthenticated:u}=(0,a.useAuth)();return(0,s.useQuery)({queryKey:[t.TanstackQueryKeys.FOLLOWED_COMPANIES,l,o,c],queryFn:async()=>await r.companiesService.get({page:l,limit:o,followed:!0,locale:c}),enabled:i??u,staleTime:3e5,gcTime:6e5})},"useFollowedCompanyById",0,e=>{let{isAuthenticated:n}=(0,a.useAuth)();return(0,s.useQuery)({queryKey:[t.TanstackQueryKeys.FOLLOWED_COMPANIES_IDS,{authenticated:n}],queryFn:async()=>new Set(await r.companiesService.getFollowedIds()),select:t=>t.has(e),enabled:n,staleTime:3e5})}],307551)},93243,e=>{"use strict";let t={MICRO:"1-15",SMALL:"16-50",MEDIUM:"51-100",MEDIUM_HIGH:"101-250",LARGE:"251-500",LARGE_HIGH:"501-2000",ENTERPRICE:"2001-30000"};e.s(["getCompanySizeLabel",0,e=>e in t?t[e]:""])},710869,e=>{"use strict";var t=e.i(843476),r=e.i(484849),s=e.i(884378),n=e.i(660022),a=e.i(598710);e.s(["JobCardSkeleton",0,function(e){let{showCover:i=!0}=e;return(0,t.jsxs)(r.Card,{className:"gap-0 p-0",children:[i&&(0,t.jsx)(a.Skeleton,{className:"aspect-32/9 w-full"}),(0,t.jsxs)(r.CardContent,{className:"flex flex-col gap-4 p-4",children:[(0,t.jsxs)("div",{className:"flex gap-2",children:[(0,t.jsx)(a.Skeleton,{className:"size-24 rounded-lg"}),(0,t.jsx)("div",{className:"flex grow items-center",children:(0,t.jsx)(a.Skeleton,{className:"h-4 w-full max-w-[200px]"})}),(0,t.jsx)(n.Button,{variant:"ghost",size:"icon",className:"text-muted-foreground",children:(0,t.jsx)(s.Icon,{name:"Loader2",className:"animate-spin"})})]}),(0,t.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,t.jsx)(a.Skeleton,{className:"h-4 w-full max-w-[222px]"}),(0,t.jsx)(a.Skeleton,{className:"h-4 w-full max-w-[167px]"})]}),(0,t.jsx)(a.Skeleton,{className:"h-4 w-full max-w-[222px]"})]})]})}])},959411,e=>{"use strict";var t=e.i(271645),r=e.i(39275),s=e.i(843476),n=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),a=t.forwardRef((e,t)=>(0,s.jsx)(r.Primitive.span,{...e,ref:t,style:{...n,...e.style}}));a.displayName="VisuallyHidden",e.s(["Root",0,a,"VISUALLY_HIDDEN_STYLES",0,n])},211436,e=>{"use strict";var t=e.i(843476),r=e.i(271645),s=e.i(981140),n=e.i(820783),a=e.i(30030),i=e.i(726330),l=e.i(610772),o=e.i(853660),c=e.i(774606),u=e.i(296626),d=e.i(39275),f=e.i(991918),p=e.i(369340),m=e.i(959411),[h,g]=(0,a.createContextScope)("Tooltip",[o.createPopperScope]),x=(0,o.createPopperScope)(),b="TooltipProvider",y="tooltip.open",[v,j]=h(b),w=e=>{let{__scopeTooltip:s,delayDuration:n=700,skipDelayDuration:a=300,disableHoverableContent:i=!1,children:l}=e,o=r.useRef(!0),c=r.useRef(!1),u=r.useRef(0);return r.useEffect(()=>{let e=u.current;return()=>window.clearTimeout(e)},[]),(0,t.jsx)(v,{scope:s,isOpenDelayedRef:o,delayDuration:n,onOpen:r.useCallback(()=>{window.clearTimeout(u.current),o.current=!1},[]),onClose:r.useCallback(()=>{window.clearTimeout(u.current),u.current=window.setTimeout(()=>o.current=!0,a)},[a]),isPointerInTransitRef:c,onPointerInTransitChange:r.useCallback(e=>{c.current=e},[]),disableHoverableContent:i,children:l})};w.displayName=b;var N="Tooltip",[S,T]=h(N),C=e=>{let{__scopeTooltip:s,children:n,open:a,defaultOpen:i,onOpenChange:c,disableHoverableContent:u,delayDuration:d}=e,f=j(N,e.__scopeTooltip),m=x(s),[h,g]=r.useState(null),b=(0,l.useId)(),v=r.useRef(0),w=u??f.disableHoverableContent,T=d??f.delayDuration,C=r.useRef(!1),[O,E]=(0,p.useControllableState)({prop:a,defaultProp:i??!1,onChange:e=>{e?(f.onOpen(),document.dispatchEvent(new CustomEvent(y))):f.onClose(),c?.(e)},caller:N}),P=r.useMemo(()=>O?C.current?"delayed-open":"instant-open":"closed",[O]),R=r.useCallback(()=>{window.clearTimeout(v.current),v.current=0,C.current=!1,E(!0)},[E]),k=r.useCallback(()=>{window.clearTimeout(v.current),v.current=0,E(!1)},[E]),A=r.useCallback(()=>{window.clearTimeout(v.current),v.current=window.setTimeout(()=>{C.current=!0,E(!0),v.current=0},T)},[T,E]);return r.useEffect(()=>()=>{v.current&&(window.clearTimeout(v.current),v.current=0)},[]),(0,t.jsx)(o.Root,{...m,children:(0,t.jsx)(S,{scope:s,contentId:b,open:O,stateAttribute:P,trigger:h,onTriggerChange:g,onTriggerEnter:r.useCallback(()=>{f.isOpenDelayedRef.current?A():R()},[f.isOpenDelayedRef,A,R]),onTriggerLeave:r.useCallback(()=>{w?k():(window.clearTimeout(v.current),v.current=0)},[k,w]),onOpen:R,onClose:k,disableHoverableContent:w,children:n})})};C.displayName=N;var O="TooltipTrigger",E=r.forwardRef((e,a)=>{let{__scopeTooltip:i,...l}=e,c=T(O,i),u=j(O,i),f=x(i),p=r.useRef(null),m=(0,n.useComposedRefs)(a,p,c.onTriggerChange),h=r.useRef(!1),g=r.useRef(!1),b=r.useCallback(()=>h.current=!1,[]);return r.useEffect(()=>()=>document.removeEventListener("pointerup",b),[b]),(0,t.jsx)(o.Anchor,{asChild:!0,...f,children:(0,t.jsx)(d.Primitive.button,{"aria-describedby":c.open?c.c
1ontentId:void 0,"data-state":c.stateAttribute,...l,ref:m,onPointerMove:(0,s.composeEventHandlers)(e.onPointerMove,e=>{"touch"!==e.pointerType&&(g.current||u.isPointerInTransitRef.current||(c.onTriggerEnter(),g.current=!0))}),onPointerLeave:(0,s.composeEventHandlers)(e.onPointerLeave,()=>{c.onTriggerLeave(),g.current=!1}),onPointerDown:(0,s.composeEventHandlers)(e.onPointerDown,()=>{c.open&&c.onClose(),h.current=!0,document.addEventListener("pointerup",b,{once:!0})}),onFocus:(0,s.composeEventHandlers)(e.onFocus,()=>{h.current||c.onOpen()}),onBlur:(0,s.composeEventHandlers)(e.onBlur,c.onClose),onClick:(0,s.composeEventHandlers)(e.onClick,c.onClose)})})});E.displayName=O;var P="TooltipPortal",[R,k]=h(P,{forceMount:void 0}),A=e=>{let{__scopeTooltip:r,forceMount:s,children:n,container:a}=e,i=T(P,r);return(0,t.jsx)(R,{scope:r,forceMount:s,children:(0,t.jsx)(u.Presence,{present:s||i.open,children:(0,t.jsx)(c.Portal,{asChild:!0,container:a,children:n})})})};A.displayName=P;var I="TooltipContent",_=r.forwardRef((e,r)=>{let s=k(I,e.__scopeTooltip),{forceMount:n=s.forceMount,side:a="top",...i}=e,l=T(I,e.__scopeTooltip);return(0,t.jsx)(u.Presence,{present:n||l.open,children:l.disableHoverableContent?(0,t.jsx)(F,{side:a,...i,ref:r}):(0,t.jsx)(L,{side:a,...i,ref:r})})}),L=r.forwardRef((e,s)=>{let a=T(I,e.__scopeTooltip),i=j(I,e.__scopeTooltip),l=r.useRef(null),o=(0,n.useComposedRefs)(s,l),[c,u]=r.useState(null),{trigger:d,onClose:f}=a,p=l.current,{onPointerInTransitChange:m}=i,h=r.useCallback(()=>{u(null),m(!1)},[m]),g=r.useCallback((e,t)=>{let r,s=e.currentTarget,n={x:e.clientX,y:e.clientY},a=function(e,t){let r=Math.abs(t.top-e.y),s=Math.abs(t.bottom-e.y),n=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x);switch(Math.min(r,s,n,a)){case a:return"left";case n:return"right";case r:return"top";case s:return"bottom";default:throw Error("unreachable")}}(n,s.getBoundingClientRect());u(((r=[...function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:5,s=[];switch(t){case"top":s.push({x:e.x-r,y:e.y+r},{x:e.x+r,y:e.y+r});break;case"bottom":s.push({x:e.x-r,y:e.y-r},{x:e.x+r,y:e.y-r});break;case"left":s.push({x:e.x+r,y:e.y-r},{x:e.x+r,y:e.y+r});break;case"right":s.push({x:e.x-r,y:e.y-r},{x:e.x-r,y:e.y+r})}return s}(n,a),...function(e){let{top:t,right:r,bottom:s,left:n}=e;return[{x:n,y:t},{x:r,y:t},{x:r,y:s},{x:n,y:s}]}(t.getBoundingClientRect())].slice()).sort((e,t)=>e.x<t.x?-1:e.x>t.x?1:e.y<t.y?-1:1*!!(e.y>t.y)),function(e){if(e.length<=1)return e.slice();let t=[];for(let r=0;r<e.length;r++){let s=e[r];for(;t.length>=2;){let e=t[t.length-1],r=t[t.length-2];if((e.x-r.x)*(s.y-r.y)>=(e.y-r.y)*(s.x-r.x))t.pop();else break}t.push(s)}t.pop();let r=[];for(let t=e.length-1;t>=0;t--){let s=e[t];for(;r.length>=2;){let e=r[r.length-1],t=r[r.length-2];if((e.x-t.x)*(s.y-t.y)>=(e.y-t.y)*(s.x-t.x))r.pop();else break}r.push(s)}return(r.pop(),1===t.length&&1===r.length&&t[0].x===r[0].x&&t[0].y===r[0].y)?t:t.concat(r)}(r))),m(!0)},[m]);return r.useEffect(()=>()=>h(),[h]),r.useEffect(()=>{if(d&&p){let e=e=>g(e,p),t=e=>g(e,d);return d.addEventListener("pointerleave",e),p.addEventListener("pointerleave",t),()=>{d.removeEventListener("pointerleave",e),p.removeEventListener("pointerleave",t)}}},[d,p,g,h]),r.useEffect(()=>{if(c){let e=e=>{let t=e.target,r={x:e.clientX,y:e.clientY},s=d?.contains(t)||p?.contains(t),n=!function(e,t){let{x:r,y:s}=e,n=!1;for(let e=0,a=t.length-1;e<t.length;a=e++){let i=t[e],l=t[a],o=i.x,c=i.y,u=l.x,d=l.y;c>s!=d>s&&r<(u-o)*(s-c)/(d-c)+o&&(n=!n)}return n}(r,c);s?h():n&&(h(),f())};return document.addEventListener("pointermove",e),()=>document.removeEventListener("pointermove",e)}},[d,p,c,f,h]),(0,t.jsx)(F,{...e,ref:o})}),[M,B]=h(N,{isInside:!1}),D=(0,f.createSlottable)("TooltipContent"),F=r.forwardRef((e,s)=>{let{__scopeTooltip:n,children:a,"aria-label":l,onEscapeKeyDown:c,onPointerDownOutside:u,...d}=e,f=T(I,n),p=x(n),{onClose:h}=f;return r.useEffect(()=>(document.addEventListener(y,h),()=>document.removeEventListener(y,h)),[h]),r.useEffect(()=>{if(f.trigger){let e=e=>{let t=e.target;t?.contains(f.trigger)&&h()};return window.addEventListener("scroll",e,{capture:!0}),()=>window.removeEventListener("scroll",e,{capture:!0})}},[f.trigger,h]),(0,t.jsx)(i.DismissableLayer,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:c,onPointerDownOutside:u,onFocusOutside:e=>e.preventDefault(),onDismiss:h,children:(0,t.jsxs)(o.Content,{"data-state":f.stateAttribute,...p,...d,ref:s,style:{...d.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[(0,t.jsx)(D,{children:a}),(0,t.jsx)(M,{scope:n,isInside:!0,children:(0,t.jsx)(m.Root,{id:f.contentId,role:"tooltip",children:l||a})})]})})});_.displayName=I;var q="TooltipArrow",J=r.forwardRef((e,r)=>{let{__scopeTooltip:s,...n}=e,a=x(s);return B(q,s).isInside?null:(0,t.jsx)(o.Arrow,{...a,...n,ref:r})});J.displayName=q;var z=e.i(640602);function U(e){let{delayDuration:r=0,...s}=e;return(0,t.jsx)(w,{"data-slot":"tooltip-provider",delayDuration:r,...s})}e.s(["Tooltip",0,function(e){let{...r}=e;return(0,t.jsx)(U,{children:(0,t.jsx)(C,{"data-slot":"tooltip",...r})})},"TooltipContent",0,function(e){let{className:r,sideOffset:s=0,children:n,...a}=e;return(0,t.jsx)(A,{children:(0,t.jsxs)(_,{"data-slot":"tooltip-content",sideOffset:s,className:(0,z.cn)("z-50 w-fit","max-w-sm","px-3 py-1.5","text-xs leading-normal","bg-secondary-foreground text-secondary rounded-xs","animate-in fade-in-0 zoom-in-95","data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95","data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2","data-[side=right]:sli
1de-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",r),...a,children:[n,(0,t.jsx)(J,{className:(0,z.cn)("z-50","size-2.5","bg-secondary-foreground fill-secondary-foreground rounded-[2px]","translate-y-[calc(-50%_-_1px)] rotate-45")})]})})},"TooltipTrigger",0,function(e){let{...r}=e;return(0,t.jsx)(E,{"data-slot":"tooltip-trigger",...r})}],211436)},162663,e=>{"use strict";var t=e.i(843476),r=e.i(271645),s=e.i(981140),n=e.i(820783),a=e.i(30030),i=e.i(369340),l=e.i(999682),o=e.i(635804),c=e.i(39275),u="Switch",[d,f]=(0,a.createContextScope)(u),[p,m]=d(u),h=r.forwardRef((e,a)=>{let{__scopeSwitch:l,name:o,checked:d,defaultChecked:f,required:m,disabled:h,value:g="on",onCheckedChange:x,form:v,...j}=e,[w,N]=r.useState(null),S=(0,n.useComposedRefs)(a,e=>N(e)),T=r.useRef(!1),C=!w||v||!!w.closest("form"),[O,E]=(0,i.useControllableState)({prop:d,defaultProp:f??!1,onChange:x,caller:u});return(0,t.jsxs)(p,{scope:l,checked:O,disabled:h,children:[(0,t.jsx)(c.Primitive.button,{type:"button",role:"switch","aria-checked":O,"aria-required":m,"data-state":y(O),"data-disabled":h?"":void 0,disabled:h,value:g,...j,ref:S,onClick:(0,s.composeEventHandlers)(e.onClick,e=>{E(e=>!e),C&&(T.current=e.isPropagationStopped(),T.current||e.stopPropagation())})}),C&&(0,t.jsx)(b,{control:w,bubbles:!T.current,name:o,value:g,checked:O,required:m,disabled:h,form:v,style:{transform:"translateX(-100%)"}})]})});h.displayName=u;var g="SwitchThumb",x=r.forwardRef((e,r)=>{let{__scopeSwitch:s,...n}=e,a=m(g,s);return(0,t.jsx)(c.Primitive.span,{"data-state":y(a.checked),"data-disabled":a.disabled?"":void 0,...n,ref:r})});x.displayName=g;var b=r.forwardRef((e,s)=>{let{__scopeSwitch:a,control:i,checked:c,bubbles:u=!0,...d}=e,f=r.useRef(null),p=(0,n.useComposedRefs)(f,s),m=(0,l.usePrevious)(c),h=(0,o.useSize)(i);return r.useEffect(()=>{let e=f.current;if(!e)return;let t=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set;if(m!==c&&t){let r=new Event("click",{bubbles:u});t.call(e,c),e.dispatchEvent(r)}},[m,c,u]),(0,t.jsx)("input",{type:"checkbox","aria-hidden":!0,defaultChecked:c,...d,tabIndex:-1,ref:p,style:{...d.style,...h,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});function y(e){return e?"checked":"unchecked"}b.displayName="SwitchBubbleInput";var v=e.i(640602),j=e.i(211436);let w={default:(0,v.cn)("data-[state=checked]:bg-primary"),gradient:(0,v.cn)("data-[state=checked]:bg-[linear-gradient(var(--main-gradient))] data-[state=checked]:bg-origin-border")};e.s(["Switch",0,function(e){let{className:r,label:s,description:n,disabledTooltip:a,id:i="switch",box:l=!1,color:o="default",loading:c=!1,...u}=e;return(0,t.jsxs)("div",{className:(0,v.cn)("pointer-events-none flex items-start gap-3",l&&["rounded-lg border p-4","has-[[data-state=checked]]:border-primary",!u.disabled&&["hover:bg-accent hover:border-primary","has-focus-visible:bg-focus-background has-focus-visible:border-primary has-focus-visible:ring-ring/20 outline-none has-focus-visible:ring-[3px]"],u.disabled&&"cursor-not-allowed opacity-50"],r),children:[(0,t.jsxs)("label",{className:"pointer-events-auto flex flex-col gap-1",htmlFor:i,children:[s&&(0,t.jsx)("span",{className:"text-foreground text-sm leading-normal font-medium",children:s}),n&&(0,t.jsx)("span",{className:"text-muted-foreground text-xs leading-normal",children:n})]}),(0,t.jsxs)(j.Tooltip,{open:!!u.disabled&&!!a&&void 0,children:[(0,t.jsx)(j.TooltipTrigger,{asChild:!0,children:(0,t.jsx)("div",{className:"pointer-events-auto relative h-5 w-9 flex-shrink-0",children:(0,t.jsx)(h,{"data-slot":"switch",id:i,className:(0,v.cn)("group/switch outline-none","h-full w-full","rounded-full border-2 border-transparent","bg-input",w[o],"focus-visible:data-[state=unchecked]:border-primary","focus-visible:data-[state=checked]:border-ring-offset","focus-visible:ring-ring/20 focus-visible:border-1 focus-visible:ring-[3px]","disabled:cursor-not-allowed disabled:opacity-50",c&&"pointer-events-none"),disabled:c||u.disabled,...u,children:(0,t.jsx)(x,{"data-slot":"switch-thumb",className:(0,v.cn)("block size-4 rounded-full","focus-visible:border-primary focus-visible:border-1","group-enabled/switch:group-hover/switch:data-[state=unchecked]:border-primary","group-enabled/switch:group-hover/switch:data-[state=unchecked]:border-1","bg-background","group-enabled/switch:group-hover/switch:bg-accent","transition-transform data-[state=checked]:translate-x-full")})})})}),(0,t.jsx)(j.TooltipContent,{children:a})]})]})}],162663)},88664,e=>{"use strict";var t=e.i(843476),r=e.i(948148);
1e.s(["JobListEmptyState",0,()=>{let e=(0,r.useTranslations)("components.job-list-empty-state");return(0,t.jsxs)("div",{className:"border-border bg-background mt-8 rounded-lg border p-12 text-center shadow-sm",children:[(0,t.jsx)("h3",{className:"text-foreground text-lg font-medium",children:e("no-jobs-found")}),(0,t.jsx)("p",{className:"text-muted-foreground mt-2",children:e("try-adjusting-criteria")})]})}])},720482,e=>{"use strict";var t,r=e.i(511474);function s(e,t,s){try{return e(t)}catch(e){return(0,r.warn)("[nuqs] Error while parsing value `%s`: %O"+(s?" (for key `%s`)":""),t,e,s),null}}var n=function(){if("u"<typeof window||!window.GestureEvent)return 50;try{let e=navigator.userAgent?.match(/version\/([\d\.]+) safari/i);return parseFloat(e[1])>=17?120:320}catch{return 320}}(),a=new Map,i={history:"replace",scroll:!1,shallow:!0,throttleMs:n},l=new Set,o=0,c=null;function u(e,t,s,o){let c=null===t?null:s(t);return(0,r.debug)("[nuqs queue] Enqueueing %s=%s %O",e,c,o),a.set(e,c),"push"===o.history&&(i.history="push"),o.scroll&&(i.scroll=!0),!1===o.shallow&&(i.shallow=!1),o.startTransition&&l.add(o.startTransition),i.throttleMs=Math.max(o.throttleMs??n,Number.isFinite(i.throttleMs)?i.throttleMs:0),c}function d(){return new URLSearchParams(location.search)}function f(e){let{getSearchParamsSnapshot:t=d,updateUrl:s,rateLimitFactor:u=1}=e;return null===c&&(c=new Promise((e,d)=>{if(!Number.isFinite(i.throttleMs)){(0,r.debug)("[nuqs queue] Skipping flush due to throttleMs=Infinity"),e(t()),setTimeout(()=>{c=null},0);return}function f(){o=performance.now();let[u,f]=function(e){let{updateUrl:t,getSearchParamsSnapshot:s}=e,o=s();if(0===a.size)return[o,null];let c=Array.from(a.entries()),u={...i},d=Array.from(l);for(let[e,t]of(a.clear(),l.clear(),i.history="replace",i.scroll=!1,i.shallow=!0,i.throttleMs=n,(0,r.debug)("[nuqs queue] Flushing queue %O with options %O",c,u),c))null===t?o.delete(e):o.set(e,t);try{var f,p;let e;return f=d,p=()=>{t(o,{history:u.history,scroll:u.scroll,shallow:u.shallow})},(e=t=>
1{if(t===f.length)return p();let r=f[t];if(!r)throw Error("Invalid transition function");r(()=>e(t+1))})(0),[o,null]}catch(e){return console.error((0,r.error)(429),c.map(e=>{let[t]=e;return t}).join(),e),[o,e]}}({updateUrl:s,getSearchParamsSnapshot:t});null===f?e(u):d(u),c=null}setTimeout(function(){let e=performance.now()-o,t=i.throttleMs,s=u*Math.max(0,Math.min(t,t-e));(0,r.debug)("[nuqs queue] Scheduling flush in %f ms. Throttled at %f ms",s,t),0===s?f():setTimeout(f,s)},0)})),c}var p=e.i(271645);function m(e){function t(t){if(void 0===t)return null;let r="";if(Array.isArray(t)){if(void 0===t[0])return null;r=t[0]}return"string"==typeof t&&(r=t),s(e.parse,r)}return{eq:(e,t)=>e===t,...e,parseServerSide:t,withDefault(e){return{...this,defaultValue:e,parseServerSide:r=>t(r)??e}},withOptions(e){return{...this,...e}}}}m({parse:e=>e,serialize:e=>`${e}`});var h=m({parse:e=>{let t=parseInt(e);return Number.isNaN(t)?null:t},serialize:e=>Math.round(e).toFixed()});function g(e,t){return e.valueOf()===t.valueOf()}m({parse:e=>{let t=h.parse(e);return null===t?null:t-1},serialize:e=>h.serialize(e+1)}),m({parse:e=>{let t=parseInt(e,16);return Number.isNaN(t)?null:t},serialize:e=>{let t=Math.round(e).toString(16);return t.padStart(t.length+t.length%2,"0")}}),m({parse:e=>{let t=parseFloat(e);return Number.isNaN(t)?null:t},serialize:e=>e.toString()}),m({parse:e=>"true"===e,serialize:e=>e?"true":"false"}),m({parse:e=>{let t=parseInt(e);return Number.isNaN(t)?null:new Date(t)},serialize:e=>e.valueOf().toString(),eq:g}),m({parse:e=>{let t=new Date(e);return Number.isNaN(t.valueOf())?null:t},serialize:e=>e.toISOString(),eq:g}),m({parse:e=>{let t=new Date(e.slice(0,10));return Number.isNaN(t.valueOf())?null:t},serialize:e=>e.toISOString().slice(0,10),eq:g});var x={all:t=t||new Map,on:function(e,r){var s=t.get(e);s?s.push(r):t.set(e,[r])},off:function(e,r){var s=t.get(e);s&&(r?s.splice(s.indexOf(r)>>>0,1):t.set(e,[]))},emit:function(e,r){var s=t.get(e);s&&s.slice().map(function(e){e(r)}),(s=t.get("*"))&&s.slice().map(function(t){t(e,r)})}},b={};function y(e,t,r,n,i){let l=!1,o=Object.keys(e).reduce((o,c)=>{let u=t?.[c]??c,{parse:d}=e[c],f=a.get(u),p=void 0===f?r?.get(u)??null:f;if(n&&i&&(n[u]??null)===p)return o[c]=i[c]??null,o;l=!0;let m=null===p?null:s(d,p,c);return o[c]=m??null,n&&(n[u]=p),o},{});if(!l){let t=Object.keys(e),r=Object.keys(i??{});l=t.length!==r.length||t.some(e=>!r.includes(e))}return{state:o,hasChanged:l}}function v(e,t){return Object.fromEntries(Object.keys(e).map(r=>[r,e[r]??t[r]??null]))}e.s(["parseAsInteger",0,h,"parseAsStringEnum",0,function(e){return m({parse:t=>e.includes(t)?t:null,serialize:e=>e.toString()})},"useQueryState",0,function(e){let{history:t="replace",shallow:i=!0,scroll:l=!1,throttleMs:o=n,parse:c=e=>e,serialize:d=String,eq:m=(e,t)=>e===t,defaultValue:h,clearOnDefault:g=!0,startTransition:b}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{history:"replace",scroll:!1,shallow:!0,throttleMs:n,parse:e=>e,serialize:String,eq:(e,t)=>e===t,clearOnDefault:!0,defaultValue:void 0},y=(0,r.useAdapter)(),v=y.searchParams,j=(0,p.useRef)(v?.get(e)??null),[w,N]=(0,p.useState)(()=>{let t=a.get(e),r=void 0===t?v?.get(e)??null:t;return null===r?null:s(c,r,e)}),S=(0,p.useRef)(w);(0,r.debug)("[nuqs `%s`] render - state: %O, iSP: %s",e,w,v?.get(e)??null),(0,p.useEffect)(()=>{let t=v?.get(e)??null;if(t===j.current)return;let n=null===t?null:s(c,t,e);(0,r.debug)("[nuqs `%s`] syncFromUseSearchParams %O",e,n),S.current=n,j.current=t,N(n)},[v?.get(e),e]),(0,p.useEffect)(()=>{function t(t){let{state:s,query:n}=t;(0,r.debug)("[nuqs `%s`] updateInternalState %O",e,s),S.current=s,j.current=n,N(s)}return(0,r.debug)("[nuqs `%s`] subscribing to sync",e),x.on(e,t),()=>{(0,r.debug)("[nuqs `%s`] unsubscribing from sync",e),x.off(e,t)}},[e]);let T=(0,p.useCallback)(function(r){let s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n="function"==typeof r?r(S.current??h??null):r;(s.clearOnDefault??g)&&null!==n&&void 0!==h&&m(n,h)&&(n=null);let a=u(e,n,d,{history:s.history??t,shallow:s.shallow??i,scroll:s.scroll??l,throttleMs:s.throttleMs??o,startTransition:s.startTransition??b});
1return x.emit(e,{state:n,query:a}),f(y)},[e,t,i,l,o,b,y.updateUrl,y.getSearchParamsSnapshot,y.rateLimitFactor]);return[w??h??null,T]},"useQueryStates",0,function(e){let{history:t="replace",scroll:s=!1,shallow:a=!0,throttleMs:i=n,clearOnDefault:l=!0,startTransition:o,urlKeys:c=b}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},d=Object.keys(e).join(","),m=(0,p.useMemo)(()=>Object.fromEntries(Object.keys(e).map(e=>[e,c[e]??e])),[d,JSON.stringify(c)]),h=(0,r.useAdapter)(),g=h.searchParams,j=(0,p.useRef)({}),w=(0,p.useMemo)(()=>Object.fromEntries(Object.keys(e).map(t=>[t,e[t].defaultValue??null])),[Object.values(e).map(e=>{let{defaultValue:t}=e;return t}).join(",")]),[N,S]=(0,p.useState)(()=>y(e,c,g??new URLSearchParams).state),T=(0,p.useRef)(N);if((0,r.debug)("[nuq+ `%s`] render - state: %O, iSP: %s",d,N,g),Object.keys(j.current).join("&")!==Object.values(m).join("&")){let{state:t,hasChanged:r}=y(e,c,g,j.current,T.current);r&&(T.current=t,S(t)),j.current=Object.fromEntries(Object.values(m).map(e=>[e,g?.get(e)??null]))}(0,p.useEffect)(()=>{let{state:t,hasChanged:r}=y(e,c,g,j.current,T.current);r&&(T.current=t,S(t))},[Object.values(m).map(e=>`${e}=${g?.get(e)}`).join("&")]),(0,p.useEffect)(()=>{let t=Object.keys(e).reduce((t,s)=>(t[s]=t=>{var n;let{state:a,query:i}=t,{defaultValue:l}=e[s],o=m[s];T.current={...T.current,[s]:a??l??null},j.current[o]=i,(0,r.debug)("[nuq+ `%s`] Cross-hook key sync %s: %O (default: %O). Resolved: %O",d,o,a,l,T.current),n=T.current,(0,r.debug)("[nuq+ `%s`] updateInternalState %O",d,n),T.current=n,S(n)},t),{});for(let s of Object.keys(e)){let e=m[s];(0,r.debug)("[nuq+ `%s`] Subscribing to sync for `%s`",d,e),x.on(e,t[s])}return()=>{for(let s of Object.keys(e)){let e=m[s];(0,r.debug)("[nuq+ `%s`] Unsubscribing to sync for `%s`",d,e),x.off(e,t[s])}}},[d,m]);let C=(0,p.useCallback)(function(n){let c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},p=Object.fromEntries(Object.keys(e).map(e=>[e,null])),g="function"==typeof n?n(v(T.current,w))??p:n??p;for(let[n,f]of((0,r.debug)("[nuq+ `%s`] setState: %O",d,g),Object.entries(g))){let r=e[n],d=m[n];if(!r)continue;(c.clearOnDefault??r.clearOnDefault??l)&&null!==f&&void 0!==r.defaultValue&&(r.eq??((e,t)=>e===t))(f,r.defaultValue)&&(f=null);let p=u(d,f,r.serialize??String,{history:c.history??r.history??t,shallow:c.shallow??r.shallow??a,scroll:c.scroll??r.scroll??s,throttleMs:c.throttleMs??r.throttleMs??i,startTransition:c.startTransition??r.startTransition??o});x.emit(d,{state:f,query:p})}return f(h)},[d,t,a,s,i,o,m,h.updateUrl,h.getSearchParamsSnapshot,h.rateLimitFactor,w]);return[(0,p.useMemo)(()=>v(N,w),[N,w]),C]}],720482)},618487,e=>{"use strict";var t=e.i(843476);e.s(["JobListContainer",0,e=>{let{children:r}=e;return(0,t.jsx)("div",{className:"flex flex-col gap-3",children:r})}])},80983,e=>{"use strict";var t=e.i(771227);e.s(["jobAlertsService",()=>t.default])},17720,e=>{"use strict";var t=e.i(843476),r=e.i(459803),s=e.i(88664),n=e.i(618487),a=e.i(546412),i=e.i(522499);e.s(["JobAdsList",0,e=>{let{jobAds:l,showCoverImage:o=!1,showQuickApply:c=!1,emptyState:u,onJobClick:d}=e;return l?.length===0?u||(0,t.jsx)(s.JobListEmptyState,{}):(0,t.jsx)(n.JobListContainer,{children:l?.map((e,s)=>(0,t.jsx)(a.JobSearchResultsTrackingProvider,{metadata:{cardPosition:s+1},children:(0,t.jsx)(i.JobTrackingProvider,{metadata:{job:e},children:(0,t.jsx)(r.JobCard,{job:e,showCoverImage:o,showQuickApply:c,onClick:d})})},`job-${e.id}-${s}`))})}])},598847,e=>{"use strict";var t,r=((t={}).APPLICATIONS="applications",t.SAVED_JOBS="saved-jobs",t.JOB_ALERTS="job-alerts",t.COMPANIES="companies",t);e.s(["DashboardStatsTab",()=>r])},526126,e=>{"use strict";var t=e.i(266027);e.i(870165);var r=e.i(80983),s=e.i(620873),n=e.i(861745),a=e.i(601330);e.s(["useJobAlerts",0,function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{page:i=0,limit:l=10}=e,o=(0,n.useLocale)(),{isAuthenticated:c}=(0,a.useAuth)();return(0,t.useQuery)({queryKey:[s.TanstackQueryKeys.JOB_ALERTS,o,i,l],queryFn:()=>r.jobAlertsService.getJobAlerts({locale:o,page:i,limit:l}),enabled:c})},"useJobAlertsCount",0,function(){let{isAuthenticated:e}=(0,a.useAuth)();return(0,t.useQuery)({queryKey:[s.TanstackQueryKeys.JOB_ALERTS_COUNT],queryFn:()=>r.jobAlertsService.getJobAlertsCount(),enabled:e})}])},667585,(e,t,r)=>{"use strict";
1Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"BailoutToCSR",{enumerable:!0,get:function(){return n}});let s=e.r(132061);function n(e){let{reason:t,children:r}=e;if("u"<typeof window)throw Object.defineProperty(new s.BailoutToCSRError(t),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});return r}},309885,(e,t,r)=>{"use strict";function s(e){return e.split("/").map(e=>encodeURIComponent(e)).join("/")}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"encodeURIPath",{enumerable:!0,get:function(){return s}})},652157,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"PreloadChunks",{enumerable:!0,get:function(){return o}});let s=e.r(843476),n=e.r(174080),a=e.r(563599),i=e.r(309885),l=e.r(543369);function o(e){let{moduleIds:t}=e;if("u">typeof window)return null;let r=a.workAsyncStorage.getStore();if(void 0===r)return null;let o=[];if(r.reactLoadableManifest&&t){let e=r.reactLoadableManifest;for(let r of t){if(!e[r])continue;let t=e[r].files;o.push(...t)}}if(0===o.length)return null;let c=(0,l.getAssetTokenQuery)();return(0,s.jsx)(s.Fragment,{children:o.map(e=>{let t=`${r.assetPrefix}/_next/${(0,i.encodeURIPath)(e)}${c}`;return e.endsWith(".css")?(0,s.jsx)("link",{precedence:"dynamic",href:t,rel:"stylesheet",as:"style",nonce:r.nonce},e):((0,n.preload)(t,{as:"script",fetchPriority:"low",nonce:r.nonce}),null)})})}},869093,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"default",{enumerable:!0,get:function(){return c}});let s=e.r(843476),n=e.r(271645),a=e.r(667585),i=e.r(652157);function l(e){return{default:e&&"default"in e?e.default:e}}let o={loader:()=>Promise.resolve(l(()=>null)),loading:null,ssr:!0},c=function(e){let t={...o,...e},r=(0,n.lazy)(()=>t.loader().then(l)),c=t.loading;function u(e){let l=c?(0,s.jsx)(c,{isLoading:!0,pastDelay:!0,error:null}):null,o=!t.ssr||!!t.loading,u=o?n.Suspense:n.Fragment,d=t.ssr?(0,s.jsxs)(s.Fragment,{children:["u"<typeof window?(0,s.jsx)(i.PreloadChunks,{moduleIds:t.modules}):null,(0,s.jsx)(r,{...e})]}):(0,s.jsx)(a.BailoutToCSR,{reason:"next/dynamic",children:(0,s.jsx)(r,{...e})});return(0,s.jsx)(u,{...o?{fallback:l}:{},children:d})}return u.displayName="LoadableComponent",u}},770703,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"default",{enumerable:!0,get:function(){return n}});let s=e.r(555682)._(e.r(869093));function n(e,t){let r={};"function"==typeof e&&(r.loader=e);let n={...r,...t};return(0,s.default)({...n,modules:n.loadableGenerated?.modules})}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},652677,e=>{"use strict";var t,r,s,n,a=e.i(843476),i=e.i(885857),l=e.i(484849),o=e.i(640602);let c=e=>{let{href:t,children:r,className:s}=e,n=(0,o.cn)("hover:border-primary hover:cursor-pointer hover:shadow-sm hover:underline","focus:border-primary focus:outline-offset-0 focus:outline-2 focus:outline-primary focus:bg-focus-background focus:ring-4 focus:ring-ring/20","transition-[border-color,box-shadow,outline] duration-150",s);return(0,a.jsx)(l.Card,{asChild:!0,children:(0,a.jsx)(i.Link,{href:t,className:n,children:r})})};var u=e.i(17720),d=e.i(710869),f=e.i(612939),p=e.i(598847),m=e.i(809803),h=e.i(307551),g=e.i(316893),x=e.i(526126),b=e.i(932920),y=e.i(637038),v=e.i(745982),j=e.i(278208),w=e.i(522499);e.i(870165);var N=e.i(432119),S=e.i(534068),T=e.i(660022),C=e.i(884378),O=e.i(598710),E=e.i(296556),P=e.i(948148),R=e.i(720482),k=e.i(271645),A=e.i(922256);function I(){let e=(0,P.useTranslations)("pages.dashboard.recommended-jobs-empty-state"),t=(0,i.useRouter)();return(0,a.jsxs)("div",{className:"flex flex-col items-center justify-center gap-6",children:[(0,a.jsx)(E.Typography,{variant:"h3",className:"text-foreground text-center md:text-left",children:e("title")}),(0,a.jsx)(A.Svg,{path:"/assets/svgs/office-work.svg",alt:"",height:192,className:"w-auto! object-contain"}),(0,a.jsxs)(T.Button,{onClick:()=>{t.push(m.PublicRoutes.JOBS)},variant:"default",children:[(0,a.jsx)(C.Icon,{name:"Search"}),e("buttonText")]})]})}var _=e.i(139962);let L=()=>{let e,t=(0,P.useTranslations)("pages.dashboard"),r=(0,_.useRequiredUser)(),s=(e=new Date().getHours())<12?"good-morning":e<18?"good-afternoon":"good-evening";return(0,a.jsx)(E.Typography,{variant:"h2",className:"text-primary",children:(0,a.jsx)(f.default,{children:e=>t.rich(s,{...e,name:r.firstName})})})};var M=e.i(909544),B=e.i(186716),D=e.i(566734),F=e.i(986628),q=e.i(18536),J=e.i(553639),z=e.i(686742),U=e.i(730730),H=e.i(366319),Q=e.i(31642),K=e.i(325147),Y=e.i(93243),$=e.i(602330),G=e.i(88777),V=e.i(974661),W=e.i(468355);let X=e=>{let{jobAd:t,open:r,onOpenChange:s}=e,{safeTranslate:n}=(0,K.useSafeTranslationsWithNamespace)("common"),i=(0,P.useTranslations)("pages.jobs"),{trackCompanyClick:l}=(0,Q.useTracking)(),o=t?.id;(0,k.useEffect)(()=>{r&&o&&$.jobAdsStatisticsService.updateJobAdViewStatistics(o).catch(()=>{})},[r,o]);let c=()=>
1{l()};return(0,a.jsx)(V.Sheet,{open:r,onOpenChange:s,children:t?(0,a.jsxs)(V.SheetContent,{side:"right",className:"max-sm:pb-21",children:[(0,a.jsx)(V.SheetHeader,{children:(0,a.jsx)(V.SheetTitle,{className:"line-clamp-2",children:t.title})}),(0,a.jsxs)(V.SheetBody,{className:"space-y-6",children:[(0,a.jsxs)("div",{className:"flex flex-row items-center gap-4",children:[(0,a.jsx)(M.JobAdCompanyAvatar,{company:t.company,size:"lg",onClick:c}),(0,a.jsx)(B.JobAdCompanyName,{className:"text-muted-foreground line-clamp-2 flex-1",job:t,variant:"h5",onClick:c}),t.company&&"size"in t.company&&(0,a.jsx)(F.InfoBadge,{className:"text-muted-foreground",label:(0,Y.getCompanySizeLabel)(t.company.size),icon:"Users"})]}),(0,a.jsx)(G.Separator,{}),(0,a.jsxs)("div",{className:"space-y-4",children:[(0,a.jsxs)("div",{className:"flex flex-wrap gap-3",children:[t.location?.city&&(0,a.jsx)(F.InfoBadge,{label:t.location?.city,icon:"MapPin"}),t.category&&(0,a.jsx)(F.InfoBadge,{label:n(`category.${t.category}.label`),icon:"Tag"}),t.occupationType&&(0,a.jsx)(F.InfoBadge,{label:n(`job-occupation-type.${t.occupationType}`),icon:"Briefcase"}),t.seniority&&(0,a.jsx)(F.InfoBadge,{label:n(`seniority.${t.seniority}`),icon:"LayersIcon"}),t.publishedAt&&(0,a.jsx)(F.InfoBadge,{label:(0,a.jsx)(U.RelativeTime,{className:"font-[inherit]",date:t.publishedAt}),icon:"Clock"})]}),(0,a.jsx)(J.DaysToApply,{job:t})]}),(0,a.jsx)(D.TinyMCEHtmlRenderer,{content:t.description})]}),(0,a.jsxs)(V.SheetFooter,{className:"flex flex-row items-center gap-3",children:[(0,a.jsx)(q.ApplyButton,{uniqueId:H.UniqueAuthGuardedIdEnum.JOB_DETAILS_DRAWER_APPLY_BUTTON(t.id),job:t,className:"flex-1",variant:"highlighted",onInternalApplicationCompletion:()=>{W.toast.success(i("congratulations"),i("apply-completion-success")),s(!1)},onExternalApplicationCompletion:()=>s(!1)}),(0,a.jsx)(z.SaveJobButton,{job:t,variant:"outline",uniqueId:H.UniqueAuthGuardedIdEnum.JOB_DETAILS_DRAWER_SAVE_JOB_BUTTON(t.id)})]})]}):null})};var Z=e.i(777291),ee=e.i(526329),et=e.i(559770),er=((t={})[t.NOT_STARTED=0]="NOT_STARTED",t[t.BASIC_INFO=30]="BASIC_INFO",t[t.CAREER_INFO=60]="CAREER_INFO",t[t.FULL_PROFILE=100]="FULL_PROFILE",t),es=((r={}).FIRSTNAME="firstName",r.LASTNAME="lastName",r.PHONE_NUMBER="phoneNumber",r),en=((s={}).DESIRED_JOB_TITLE="desiredJobTitle",s.DESIRED_EMPLOYMENT_TYPE="desiredEmploymentType",s.DESIRED_OCCUPATION_TYPE="desiredOccupationType",s.SALARY="salary",s.CURRENCY="currency",s.PAYROLL_FREQUENCY="payrollFrequency",s.AVAILABILITY="availability",s.ELIGIBLE_TO_WORK_IN="eligibleToWorkIn",s),ea=((n={}).JOB_CATEGORY="jobCategory",n.JOB_TITLE="jobTitle",n.YEARS_OF_EXPERIENCE="yearsOfExperience",n.ADDRESS="address",n.GENDER="gender",n.YEAR_OF_BIRTH="yearOfBirth",n.NATIONALITY="nationality",n.LOCATION="location",n);let ei=e=>null==e||Array.isArray(e)&&!e.length;var el=e.i(25733),eo=e.i(225913);let ec=(0,eo.cva)("flex items-center justify-center rounded-full transition-all shrink-0 size-8 p-2",{variants:{status:{completed:"bg-primary text-accent",pending:"bg-accent text-muted-foreground"}},defaultVariants:{status:"pending"}}),eu=(0,eo.cva)("text-sm leading-none text-muted-foreground",{variants:{status:{completed:"font-semibold",pending:"font-medium "}},defaultVariants:{status:"pending"}});function ed(e){let{progress:t,milestones:r=[],className:s,...n}=e,i=Math.max(0,Math.min(t,100)),l=[...r].sort((e,t)=>e.percentage-t.percentage);return(0,a.jsx)("div",{className:(0,o.cn)("flex w-full items-center justify-center gap-2",s),role:"progressbar","aria-valuenow":i,"aria-valuemin":0,"aria-valuemax":100,"aria-label":`Progress: ${i}%`,...n,children:0===l.length?(0,a.jsx)("div",{className:"bg-primary h-2 flex-shrink-0 grow rounded-full bg-gradient-to-t from-white/80 to-white/80",children:(0,a.jsx)("div",{className:(0,o.cn)("bg-primary h-full rounded-l-full transition-all",100===i?"rounded-r-full":""),style:{width:`${i}%`},"aria-hidden":"true"})}):l.map((e,t)=>{var r,s;let n=i>=e.percentage,c=t===l.length-1?null:l[t+1],u=(c?.percentage??100)-e.percentage,d=c?(r=e.percentage,s=c.percentage,i<=r?0:i>=s?100:(i-r)/(s-r)*100):0;return(0,a.jsxs)(k.Fragment,{children:[(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)("div",{className:(0,o.cn)(ec({status:n?"completed":"pending"})),"aria-label":`Milestone at ${e.percentage}%${n?" - Completed":""}`,children:e.icon?e.icon:(0,a.jsx)(C.Icon,{name:"Check",className:"h-full w-full"})}),e.text?(0,a.jsx)("span",{className:eu({status:n?"completed":"pending"}),children:e.text}):null]}),c&&(0,a.jsx)("div",{className:"bg-primary h-2 rounded-full bg-gradient-to-t from-white/80 to-white/80","aria-hidden":"true",style:{width:`${u}%`},children:(0,a.jsx)("div",{className:(0,o.cn)("bg-primary h-full rounded-l-full transition-all",100===d?"rounded-r-full":""),style:{width:`${d}%`}})})]},t)})})}let ef=()=>{let e=(0,i.useRouter)(),t=(0,P.useTranslations)("pages.dashboard.profile-completeness"),{trackProfileCompleteClick:r}=(0,Q.useTracking)(),{isProfileComplete:s,profileCompleteness:n,isLoading:o}=function(){let{data:e,isLoading:t}=(0,ee.usePersonalDetails)(),{data:r,isLoading:s}=(0,ee.useCareerGoals)(),{data:n,isLoading:a}=(0,et.useCVs)(),i=t||s||a,l=(0,k.useMemo)(()=>
1{if(i)return er.NOT_STARTED;return e&&!Object.values(es).some(t=>ei(e[t]))&&(n?.items?.length??0)>0?(e=>{if(!e)return!1;let t={[en.ELIGIBLE_TO_WORK_IN]:Z.activeConfig.profile?.fields?.eligibleToWorkIn??!1};return!Object.values(en).filter(e=>!(e in t)||t[e]).some(t=>ei(e[t]))})(r)?e&&!Object.values(ea).some(t=>ei(e[t]))?er.FULL_PROFILE:er.CAREER_INFO:er.BASIC_INFO:er.NOT_STARTED},[e,r,n,i]),o=l===er.FULL_PROFILE;return{profileCompleteness:l,isLoading:i,isProfileComplete:o}}(),[c,u]=(0,el.useSyncStorage)("hide-profile-banner",!1);if(o)return(0,a.jsx)(ep,{});if(c&&s)return null;let d=s?()=>{u(()=>!0)}:()=>{r({payload:{completionPercentage:n}}),e.push(m.PrivateRoutes.PROFILE("personal-info"))},f=t(s?"button.dismiss-profile-banner":"button.complete-profile-label");return(0,a.jsxs)(l.Card,{className:"w-full gap-0 py-4",children:[(0,a.jsx)(l.CardHeader,{className:"my-0 gap-0 py-0",title:t(`status.${n}.title`),description:t(`status.${n}.description`)}),(0,a.jsx)(l.CardContent,{children:(0,a.jsxs)("div",{className:"flex flex-col items-center gap-3 pt-6",children:[(0,a.jsx)("div",{className:"w-full items-center",children:(0,a.jsx)(ed,{progress:n,milestones:[{percentage:0,icon:(0,a.jsx)(C.Icon,{name:"Check"})},{percentage:50,icon:(0,a.jsx)(C.Icon,{name:"Flag"})},{percentage:100,icon:(0,a.jsx)(C.Icon,{name:"Star"})}]})}),(0,a.jsx)(E.default,{variant:"h5",className:"text-muted-foreground whitespace-nowrap",children:t("progress",{progress:n})}),(0,a.jsx)(T.Button,{onClick:d,variant:"outline",className:"w-full md:w-auto",children:(0,a.jsx)(E.default,{variant:"accent",children:f})})]})})]})},ep=()=>(0,a.jsx)(l.Card,{className:"items-start gap-5 self-stretch px-0 py-5 md:gap-6 md:py-6",children:(0,a.jsxs)(l.CardContent,{className:"flex flex-col gap-4 self-stretch px-6 py-0",children:[(0,a.jsx)(O.Skeleton,{className:"h-6 w-48"}),(0,a.jsx)(O.Skeleton,{className:"h-4.5 w-64"}),(0,a.jsx)(O.Skeleton,{className:"mt-4 h-21 w-full"})]})});var em=e.i(751096),eh=e.i(162663);let eg=(0,e.i(770703).default)(()=>e.A(365297).then(e=>({default:e.ProfileVisibilityGraph})),{loadableGenerated:{modules:[751944]},ssr:!1,loading:()=>{let e=(0,P.useTranslations)("pages.dashboard");return(0,a.jsx)("div",{className:"bg-muted/20 flex h-[180px] items-center justify-center rounded-lg p-2",children:(0,a.jsx)("div",{className:"text-muted-foreground text-sm",children:e("loading-chart")})})}}),ex=()=>{let{id:e,email:t,publicProfile:r}=(0,_.useRequiredUser)(),{mutate:s,isPending:n}=(0,em.useUpdatePublicProfile)({notification:!1}),{trackVisibleProfileChangeStatus:i,trackVisibleProfileChanged:l}=(0,Q.useTracking)(),c=(0,P.useTranslations)("pages.dashboard");return(0,a.jsxs)("div",{className:(0,o.cn)("border-border w-full rounded-md border p-6",!r&&"border-2 border-transparent [background:var(--main-bg-gradient)]"),children:[(0,a.jsxs)("div",{className:"flex w-full items-center justify-between",children:[(0,a.jsx)(E.default,{variant:"h4",className:"text-card-foreground",children:c("profile-visibility")}),(0,a.jsxs)("div",{className:"flex items-center gap-3",children:[(0,a.jsx)(eh.Switch,{color:"gradient",checked:r,onCheckedChange:()=>{s({publicProfile:!r},{onSuccess:()=>{i(),l({userId:e,email:t,publicProfile:!r})}})},loading:n,"aria-label":c("profile-visibility")}),(0,a.jsx)(E.default,{className:"text-muted-foreground",children:c(r?"visible":"hidden")})]})]}),!r&&(0,a.jsx)(eg,{}),(0,a.jsx)(E.default,{className:"text-muted-foreground",children:c(r?"profile-visibility-description.public":"profile-visibility-description.private")})]})};function eb(e){let{text:t,icon:r,iconColor:s="text-muted-foreground"}=e;return(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)(C.Icon,{name:r,size:16,className:s}),(0,a.jsx)(E.default,{className:"text-muted-foreground text-sm",children:t})]})}let ey=()=>{let e=(0,P.useTranslations)("pages.dashboard.tips"),t=[{text:e("browse-fresh-jobs"),icon:"Calendar"},{text:e("save-organize"),icon:"Heart"},{text:e("instant-notifications"),icon:"Bell"},{text:e("follow-companies"),icon:"Building"},{text:e("apply-quickly"),icon:"FileCheck"},{text:e("advanced-filters"),icon:"Search"}];return(0,a.jsx)(l.Card,{className:"flex w-full flex-col items-start gap-6 px-0 py-5",children:(0,a.jsx)(l.CardContent,{className:"flex w-full flex-col gap-4 px-6",children:t.map((e,t)=>(0,a.jsx)(eb,{text:e.text,icon:e.icon,iconColor:"text-muted-foreground"},t))})})};e.s(["default",0,function(){let[e,t]=(0,k.useState)(null),[r]=(0,R.useQueryState)("limit",R.parseAsInteger.withDefault(10)),{data:s,isLoading:n}=(0,y.useSavedJobAdsCount)(),{data:i,isLoading:o}=(0,g.useJobApplicationsCount)(),{data:A,isLoading:_}=(0,x.useJobAlertsCount)(),{data:M,isLoading:B}=(0,h.useFollowedCompanies)(),{data:D,fetchNextPage:F,hasNextPage:q,isFetchingNextPage:J,isLoading:z}=(0,b.useRecommendedJobsByProfileInfinite)({limit:r,orderBy:"publishedAt"}),U=(D?.pages??[]).flatMap(e=>e.items),H=(0,P.useTranslations)("pages.dashboard"),Q=[{id:p.DashboardStatsTab.APPLICATIONS,title:H("applications"),count:i||0,icon:"FileCheck"},{id:p.DashboardStatsTab.SAVED_JOBS,title:H("saved-jobs"),count:s||0,icon:"Heart"},{id:p.DashboardStatsTab.JOB_ALERTS,title:H("job-alerts"),count:A||0,icon:"Bell"},{id:p.DashboardStatsTab.COMPANIES,title:H("companies"),count:M?.count||0,icon:"Building"}];return(0,a.jsx)(j.EventContextTrackingProvider,{metadata:{eventContext:S.EventContextTypesEnum.DASHBOARD},children:(0,a.jsx)(v.CompanyImpressionTrackingProvider,{metadata:{companyImpression:N.CompanyImpressionType.DASHBOARD_JOBS},children:(0,a.jsxs)("div",{className:"mx-auto flex w-full max-w-7xl min-w-3xs flex-col items-start gap-8 p-6 md:gap-12",children:[(0,a.jsxs)("div",{className:"flex w-full flex-col items-start gap-6",children:[(0,a.jsx)(L,{}),(0,a.jsx)("div",{className:"grid w-full grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-4",children:n||o||_||B?Q.map((e,t)=>(0,a.jsx)(l.Card,{children:(0,a.jsx)(O.Skeleton,{className:"h-6 w-4/5"})},t)):Q.map(e=>(0,a.jsxs)(c,{href:m.PrivateRoutes.DASHBOARD_STATS(e.id),className:"flex h-20 w-full flex-row items-center justify-center gap-3",children:[(0,a.jsxs)(E.default,{variant:"accent/lg",className:"text-card-foreground flex-1",children:[e.title," (",e.count,")"]}),(0,a.jsx)(C.Icon,{name:e.icon,size:24,className:"text-muted-foreground"})]},e.id))})]}),(0,a.jsxs)("div",{className:"grid w-full gap-5 md:grid-cols-[minmax(var(--container-3xs),var(--container-3xl))_minmax(var(--container-3xs),var(--container-lg))] md:grid-rows-[auto_auto_auto] md:gap-6",children:[(0,a.jsx)("section",{className:"md:col-span-2 md:row-start-1",children:(0,a.jsx)(E.default,{variant:"h2",className:"text-primary",children:(0,a.jsx)(f.default,{children:e=>H.rich("recommended-jobs-title",e)})})}),(0,a.jsx)("section",{className:"md:col-start-1 md:row-start-2",children:(0,a.jsx)("div",{className:"flex flex-col gap-5 md:gap-6",children:(0,a.jsx)("div",{children:z?(0,a.jsx)("div",{className:"flex flex-col gap-4",children:Array.from({length:r}).map((e,t)=>(0,a.jsx)(d.JobCardSkeleton,{},t))}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(u.JobAdsList,{jobAds:U,showCoverImage:!0,onJobClick:e=>{t(e)},emptyState:(0,a.jsx)(I,{})}),q&&(0,a.jsx)(T.Button,{onClick:()=>F(),disabled:J,variant:"outline",className:"my-4 w-full md:w-auto",children:H("load-more")}),e&&(0,a.jsx)(w.JobTrackingProvider,{metadata:{job:e},children:(0,a.jsx)(X,{jobAd:e,open:!!e,onOpenChange:()=>{t(null)}})})]})})})}),(0,a.jsx)("section",{className:"md:col-start-2 md:row-start-2",children:(0,a.jsxs)("div",{className:"flex w-full flex-1 flex-col items-start gap-4 md:max-w-lg md:min-w-3xs",children:[(0,a.jsx)(ef,{}),(0,a.jsx)(ex,{}),(0,a.jsx)(ey,{})]})})]})]})})})}
1],652677)},365297,e=>{e.v(t=>Promise.all(["static/chunks/184kmvruj_h3a.js"].map(t=>e.l(t))).then(()=>t(751944)))}]);
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.