PageSourceSearch

https://app.nxtjob.ai/_next/static/chunks/pages/navigator-8612ff155493581e.js

js nxtjob.ai collected 2026-09-24 12:52:27 UTC 47,481 bytes, 1 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="12e2ba1a-27e4-4b7f-8799-a6d41ddd6b75",e._sentryDebugIdIdentifier="sentry-dbid-12e2ba1a-27e4-4b7f-8799-a6d41ddd6b75")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9339],{5900:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});let a=(0,r(27059).A)("video",[["path",{d:"m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5",key:"ftymec"}],["rect",{x:"2",y:"6",width:"14",height:"12",rx:"2",key:"158x01"}]])},22752:()=>{},23890:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});var a=r(94458);r(22752);var l=r(68658);let s=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{autoPlay:a=!1,muted:s=!0,retries:n=3,controls:i=["play_pause","time_and_duration","spacer","mute","volume","fullscreen"],addBigPlayButton:o=!1,enableTooltips:c=!1,...d}=t,[h,u]=(0,l.useState)(!0),[x,m]=(0,l.useState)(null),p=(0,l.useRef)(),g=(0,l.useRef)(),b=(0,l.useRef)(null),y=(0,l.useRef)(null),v=async(e,t,r)=>{for(let a=0;a<r;a++)try{await e.load(t);return}catch(e){if(console.error("Retry ".concat(a+1," failed:"),e),a===r-1)throw e}},w=async()=>{if(b.current||!e)return;let t=p.current,r=g.current;if(t&&r)try{let l=new window.shaka.Player(t),h=new window.shaka.ui.Overlay(l,r,t),x={addSeekBar:!0,addBigPlayButton:o,enableTooltips:c,controlPanelElements:Array.isArray(i)?i:["play_pause","time_and_duration","spacer","mute","volume","fullscreen"]};h.configure(x),l.configure({abr:{enabled:!0,defaultBandwidthEstimate:1e6},...d}),await v(l,e,n),s&&(t.muted=!0),a&&await t.play(),b.current=l,y.current=h,u(!1),m(null)}catch(e){console.error("Error loading video:",e),m(e),u(!1)}},j=async()=>{try{let e=await r.e(9104).then(r.t.bind(r,95165,23));if(e.polyfill.installAll(),e.Player.isBrowserSupported())window.shaka=e,w();else{let e=Error("Browser not supported!");m(e),u(!1)}}catch(e){console.error("Error loading Shaka Player:",e),m(e),u(!1)}};return(0,l.useEffect)(()=>(e&&(u(!0),m(null),j()),()=>{b.current&&(b.current.destroy(),b.current=null),y.current&&(y.current.destroy(),y.current=null)}),[e]),{videoRef:p,videoContainerRef:g,loading:h,error:x,player:b.current,ui:y.current,play:()=>{p.current&&p.current.play()},pause:()=>{p.current&&p.current.pause()},seek:e=>{p.current&&(p.current.currentTime=e)}}},n=e=>{let{url:t,className:r="",containerClassName:l="",width:n="100%",height:i="100%",autoPlay:o=!1,muted:c=!0,loadingComponent:d=null,errorComponent:h=null,iconSize:u="normal",...x}=e,{videoRef:m,videoContainerRef:p,loading:g,error:b}=s(t,{autoPlay:o,muted:c,...x}),y=(0,a.jsx)("div",{className:"flex absolute justify-center items-center w-full h-full",children:(0,a.jsx)("div",{className:"text-gray-500",children:"Loading..."})}),v=b&&(0,a.jsx)("div",{className:"flex absolute justify-center items-center w-full h-full",children:(0,a.jsxs)("div",{className:"text-red-500",children:["Error loading video: ",b.message]})});return(0,a.jsx)("div",{className:"relative ".concat(l),children:(0,a.jsxs)("div",{ref:p,className:"relative w-full h-full bg-gray-200 ".concat(r),style:"small"===u?{"--shaka-control-button-size":"32px","--shaka-control-panel-height":"40px"}:"large"===u?{"--shaka-control-button-size":"48px","--shaka-control-panel-height":"60px"}:{},children:[g&&(d||y),b&&(h||v),(0,a.jsx)("video",{ref:m,width:n,height:i,className:"w-full h-full shaka-video",autoPlay:o,muted:c,preload:"auto"})]})})}},37548:(e,t,r)=>{"use strict";r.d(t,{A:()=>g});var a=r(94458),l=r(66547),s=r(13767),n=r(99314),i=r(91609),o=r(24581),c=r.n(o),d=r(38129),h=r(68658),u=r(18916),x=r(69047),m=r(19761),p=r(87925);let g=e=>{let{email:t}=e,r=(0,u.wA)(),o=(0,d.useRouter)(),{query:g}=o,b=(0,u.d4)(e=>e.omegaSlice.showConfirmDeleteModal),y=(0,u.d4)(e=>e.omegaSlice.confirmDeleteItemType),v=(0,u.d4)(e=>e.omegaSlice.activeCompany),w=(0,u.d4)(e=>e.omegaSlice.activeRole),j=(0,u.d4)(e=>e.omegaSlice.activeJob),f=(0,u.d4)(e=>
1e.omegaSlice.activeNiche),{useDeleteCompany:N,useUpdateCompany:C,useDeleteJob:A,useDeleteNiche:k}=(0,n.T)(),{isLoading:I,mutate:S}=N(),{isLoading:T,mutate:D}=C(),{isLoading:z,mutate:_}=A(),{isLoading:F,mutate:M}=k(),[L,R]=(0,h.useState)(!1);(0,h.useEffect)(()=>{if(!(0,s.xl)(o.pathname))return void R(!1);"true"===localStorage.getItem("darkMode")&&R(!0);let e=e=>{(0,s.xl)(o.pathname)&&R(e.detail.isDarkMode)};return window.addEventListener("darkModeChange",e),()=>window.removeEventListener("darkModeChange",e)},[o.pathname]);let E=()=>{r((0,i.C3)(!1)),r((0,i.zt)(null))},J=()=>"company"===y?"Delete Company":"role"===y?"Delete Role":"job"===y?"Delete Job":"niche"===y?"Delete Niche":void 0;return(0,a.jsx)(p.A,{className:"z-[99999]",isOpen:b,onClose:E,children:(0,a.jsxs)("div",{className:"p-8 w-full max-w-md rounded-lg ".concat(L?"bg-[#020420] border border-white/10":"bg-white"),children:[(0,a.jsxs)("div",{className:"flex flex-col justify-center items-center w-full",children:[(0,a.jsx)("div",{className:"flex flex-col gap-2 justify-center items-center mb-2 w-full",children:(0,a.jsx)(c(),{src:"/delete_icon.svg",width:48,height:48,alt:"Delete"})}),(0,a.jsx)("h2",{className:"mb-2 text-3xl font-semibold ".concat(L?"text-white":"text-gray-700"),children:J()}),(0,a.jsx)("p",{className:"text-lg text-center ".concat(L?"text-white/60":"text-gray-600"),children:"You will not be able to recover this in the future"}),"niche"===y&&(0,a.jsx)("p",{className:"mt-1 text-xs font-medium text-center text-orange-500",children:"Warning: All your jobs for this niche will be deleted along with it."})]}),(0,a.jsxs)("div",{className:"flex gap-4 justify-center items-center mt-8 w-full",children:[(0,a.jsx)(l.$,{onClick:E,className:"py-3 w-full border ".concat(L?"border-white/20 text-white/80 hover:bg-white/5":""),variant:"outline",children:"Cancel"}),(0,a.jsx)(l.$,{onClick:()=>{if("job"===y&&_({jobId:j.jobId},{onSuccess:()=>{r((0,i.C3)(!1)),r((0,i.f7)(!1))},onSettled:()=>{r((0,i.zt)(null))},onError:e=>{x.oR.error(e.message),console.log("error",e)}}),"niche"===y&&M({nicheId:f.nicheId},{onSuccess:()=>{r((0,i.C3)(!1))},onSettled:()=>{r((0,i.zt)(null))}}),"company"===y&&S(v.companyId,{onSuccess:()=>{r((0,i.C3)(!1))},onSettled:()=>{r((0,i.zt)(null))}}),"role"===y){var e;D({...v,roles:null==v||null==(e=v.roles)?void 0:e.filter(e=>e.roleId!==w.roleId),email:t},{onSuccess:()=>{r((0,i.C3)(!1));let e=((e,t)=>{let r=t.findIndex(t=>t.roleId===e);return r<t.length-1?t[r+1]:r>0?t[r-1]:t[0]})(w.roleId,v.roles);r((0,i.xY)(e)),o.push({pathname:o.pathname,query:{...g,companyId:v.companyId,roleId:e.roleId}},void 0,{shallow:!0})}})}},className:"py-3 w-full bg-red-500 hover:bg-red-600",variant:"destructive",children:I||T||z||F?(0,a.jsx)(m.A,{className:"w-4 h-4 text-white"}):J()})]})]})})}},39477:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});let a=(0,r(27059).A)("clock",[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]])},42295:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});let a=(0,r(27059).A)("play",[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]])},42460:(e,t,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/navigator",function(){return r(81278)}])},50775:(e,t,r)=>{"use strict";r.d(t,{A:()=>h});var a=r(94458),l=r(33967),s=r(77431),n=r(68658),i=r(69206),o=r(39206),c=r(71125),d=r(85452);let h=e=>{let{options:t=[],placeholder:r="Select...",isMulti:h=!1,value:u,onChange:x,className:m,showChevron:p=!1,showCrossButton:g=!1,useLocalOptions:b=!1,popoverContentClassName:y="",isDarkMode:v=!1}=e,[w,j]=(0,n.useState)(""),[f,N]=(0,n.useState)([]);(0,n.useEffect)(()=>{let e=setTimeout(async()=>{if(w)if(b){let e=t.filter(e=>{var t,r,a;return(null==(t=e.label)?void 0:t.toLowerCase().includes(w.toLowerCase()))||(null==(r=e.value)?void 0:r.toLowerCase().includes(w.toLowerCase()))||(null==e||null==(a=e.parent)?void 0:a.toLowerCase().includes(w.toLowerCase()))});N([{label:w,value:w},...e])}else{let e=await (0,c.o)(w);if(null==e?void 0:e.length){let t=new Map;for(let r of(t.set(w,{label:w,value:w}),e))r!==w&&t.set(r,{label:r,value:r});
1N(Array.from(t.values()))}else N([{label:w,value:w}])}else b?N(t):N([])},100);return()=>clearTimeout(e)},[w,b,t]);let C=(0,n.useMemo)(()=>(Array.isArray(u)?u:u?[u]:[]).filter(e=>"string"==typeof e&&""!==e.trim()),[u]),A=e=>{if(h)x(C.includes(e)?C.filter(t=>t!==e):[...C,e]);else{let t=f.find(t=>t.value===e);x((null==t?void 0:t.value)||null)}},k=v?"text-white data-[selected=true]:bg-white/10 data-[selected=true]:text-white":"";return(0,a.jsxs)(o.AM,{children:[(0,a.jsx)(o.Wv,{asChild:!0,children:(0,a.jsxs)("div",{className:(0,d.cn)("flex p-2 min-h-[38px]",m),children:[(0,a.jsx)("div",{className:"flex flex-wrap gap-1 items-center w-full",children:C.length>0?C.map(e=>(0,a.jsxs)("div",{className:(0,d.cn)("flex gap-1 items-center px-2 py-1",v?"bg-[#0D5CDF]/15 border border-[#0D5CDF]/30 text-[#5AA5FF] rounded-sm":"bg-gray-200 rounded-md"),children:[(0,a.jsx)("span",{children:(e=>{let r=f.find(t=>t.value===e);return!r&&b&&(r=t.find(t=>t.value===e)),(null==r?void 0:r.label)||e})(e)}),g&&(0,a.jsx)(l.A,{className:(0,d.cn)("w-3 h-3 cursor-pointer",v?"text-[#5AA5FF]/60":""),onClick:t=>{t.stopPropagation(),A(e)}})]},e)):(0,a.jsx)("span",{className:v?"text-white/30":"text-gray-400",children:r})}),p&&(0,a.jsx)(s.A,{className:(0,d.cn)("ml-2 w-4 h-4",v?"text-white/50":"")})]})}),(0,a.jsx)(o.hl,{className:(0,d.cn)("p-0 w-[--radix-popover-trigger-width]",v?"bg-[#020420] border border-white/10 rounded-sm":"",y),align:"start",style:{minWidth:"var(--radix-popover-trigger-width)"},children:(0,a.jsxs)(i.uB,{shouldFilter:!1,className:(0,d.cn)("w-full",v&&"bg-[#020420] text-white"),children:[(0,a.jsx)(i.G7,{placeholder:"Search skills",value:w,onValueChange:e=>{j(e)},wrapperClassName:v?"border border-white/10 rounded-sm bg-transparent hover:border-white/20 focus-within:border-[#0D5CDF]":void 0,className:(0,d.cn)("p-0 px-1 w-full text-sm border-none focus:border-none hover:border-none",v?"bg-transparent text-white placeholder:text-white/30":"bg-gray-50")}),(0,a.jsx)(i.oI,{className:(0,d.cn)("w-full max-h-[200px] overflow-y-auto border-t",v?"border-white/10":""),children:f.length>0?(()=>{let e=f.filter(e=>e.parent),t=f.filter(e=>!e.parent);if(0===e.length)return f.map(e=>(0,a.jsx)(i.h_,{onSelect:()=>A(e.value),className:k,children:e.label},e.value));let r=e.reduce((e,t)=>{let r=t.parent;return e[r]||(e[r]=[]),e[r].push(t),e},{});return(0,a.jsxs)(a.Fragment,{children:[t.map(e=>(0,a.jsx)(i.h_,{onSelect:()=>A(e.value),className:k,children:e.label},e.value)),Object.entries(r).map(e=>{let[t,r]=e;return(0,a.jsx)(i.L$,{heading:t,className:(0,d.cn)("[&_[cmdk-group-heading]]:text-primary",v?"[&_[cmdk-group-heading]]:text-[#5AA5FF]":""),children:r.map(e=>(0,a.jsx)(i.h_,{onSelect:()=>A(e.value),className:k,children:e.label},e.value))},t)})]})})():(0,a.jsx)(i.xL,{className:v?"text-white/50":"",children:"No results found."})})]})})]})}},71125:(e,t,r)=>{"use strict";r.d(t,{o:()=>l});var a=r(43477);let l=async e=>{try{var t,r;let l=await a.A.post("https://search.nxtjob.ai/indexes/skills/search",{q:e,facets:[],limit:20,offset:0},{headers:{"Content-type":"application/json",Authorization:"Bearer Hu52dwsas2AdxdE23"}});return(null==l||null==(r=l.data)||null==(t=r.hits)?void 0:t.map(e=>{var t;return null==(t=e.skill)?void 0:t.toLowerCase()}))||[]}catch(e){console.log(e)}}},72396:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});let a=(0,r(27059).A)("square-pen",[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z",key:"ohrbg2"}]])},81278:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>eo});var a=r(94458),l=r(79328),s=r(37548),n=r(27947),i=r(83326),o=r(23890);let c=e=>{let{videourl:t,children:r,onOpenChange:l}=e;return(0,a.jsxs)(n.lG,{onOpenChange:e=>{l&&l(e)},children:[(0,a.jsx)(n.zM,{asChild:!0,children:r}),(0,a.jsxs)(n.ZJ,{children:[(0,a.jsx)(n.LC,{className:"z-[9998] bg-black/80 backdrop-blur-sm"}),(0,a.jsxs)(n.Cf,{id:"PopoverVideoPlayer",className:"z-[9999] p-0 border-0 bg-transparent shadow-none max-w-3xl w-[90vw] overflow-hidden rounded-xl",closeClassName:"text-white/70 hover:text-white bg-black/50 hover:bg-black/70 rounded-full p-1 right-3 top-3",closeSize:"w-5 h-5",children:[(0,a.jsx)(n.L3,{className:"hidden",children:"Video"}),(0,a.jsx)(i.P.div,{initial:{opacity:0,scale:.95}
1,animate:{opacity:1,scale:1},transition:{duration:.3,ease:"easeOut"},className:"rounded-xl overflow-hidden bg-black shadow-[0_0_60px_rgba(0,0,0,0.8)]",children:(0,a.jsx)(o.A,{url:t,autoPlay:!0,muted:!0,iconSize:"small",className:"rounded-xl",containerClassName:"w-full h-full"})}),(0,a.jsx)(n.rr,{className:"hidden",children:"Video"})]})]})]})};var d=r(7147),h=r(66547),u=r(84196);r(85073);var x=r(56988),m=r(13767),p=r(99314),g=r(91609),b=r(77299),y=r(72396),v=r(18488),w=r(90525),j=r(42295),f=r(27170),N=r(75737),C=r(33967),A=r(39477),k=r(5900),I=r(73301),S=r(24581),T=r.n(S),D=r(38129),z=r(68658),_=r(18916),F=r(69047);let M="navigator_video_sidebar_open",L=[{title:"Introduction to Omega",duration:"2:30",url:"https://vz-2381c2f4-665.b-cdn.net/965449bc-5ebe-440a-96dc-79e4d6777f59/playlist.m3u8"},{title:"Choosing Your Target Niche",duration:"5:30",url:"https://vz-2381c2f4-665.b-cdn.net/c16287d7-9e5a-472c-9d18-e0216a84ec5c/playlist.m3u8"},{title:"Understanding Job Descriptions",duration:"5:30",url:"https://vz-2381c2f4-665.b-cdn.net/4ac1dfb0-518a-4e79-871c-5e39a1e39529/playlist.m3u8"},{title:"Skill Intelligence Mapping",duration:"5:30",url:"https://vz-2381c2f4-665.b-cdn.net/578ff5c4-e6b6-4938-989f-97084e300f3b/playlist.m3u8"},{title:"Skill Frequency Analysis",duration:"5:30",url:"https://vz-2381c2f4-665.b-cdn.net/b07bb1cc-372e-4b32-b712-6b8bb2ffd507/playlist.m3u8"},{title:"Experience Mining",duration:"5:30",url:"https://vz-2381c2f4-665.b-cdn.net/c724e7c7-4613-44f2-92b3-496922f0b7a8/playlist.m3u8"},{title:"Writing CAR",duration:"5:30",url:"https://vz-2381c2f4-665.b-cdn.net/f97914cb-e042-4a99-921a-0371ddcc7182/playlist.m3u8"},{title:"Turning CAR into Resume Bullets",duration:"5:30",url:"https://vz-2381c2f4-665.b-cdn.net/8524b158-f3b8-4cdd-bbd3-9aab1a033d76/playlist.m3u8"},{title:"SWOT Analysis Deep Dive",duration:"5:30",url:"https://vz-2381c2f4-665.b-cdn.net/9ea4fbc8-1b29-43b1-bc96-05ed21aa7675/playlist.m3u8"},{title:"Dealing with Threats",duration:"5:30",url:"https://vz-2381c2f4-665.b-cdn.net/e0f4ec9a-bc2d-4ee6-843f-63cc625ec1d7/playlist.m3u8"},{title:"Breaking Macro to Micro Achievements",duration:"5:30",url:"https://vz-2381c2f4-665.b-cdn.net/e9223dd8-ca2e-4a0a-be0c-2973c44dece6/playlist.m3u8"}],R=e=>{let{label:t,value:r,dark:l}=e;return(0,a.jsxs)("div",{className:"flex flex-col gap-1 min-w-[100px]",children:[(0,a.jsxs)("div",{className:"flex justify-between items-center",children:[(0,a.jsx)("span",{className:"text-xs font-semibold tracking-wide ".concat(l?"text-white/60":"text-gray-500"),children:t}),(0,a.jsxs)("span",{className:"text-xs font-bold ".concat(l?"text-white":"text-gray-800"),children:[r,"%"]})]}),(0,a.jsx)("div",{className:"h-2 rounded-full w-full ".concat(l?"bg-white/10":"bg-gray-200"),children:(0,a.jsx)("div",{className:"h-2 rounded-full bg-[#0D5CDF] transition-all duration-500",style:{width:"".concat(Math.max(r,2),"%")}})})]})},E=e=>{let{niche:t,isActive:r,onClick:l,isLoading:s,dark:n,index:i,onApprove:o,isApproving:c,canApprove:h}=e,x=(0,_.wA)(),m=s?"Niche ".concat(i+1):t.primaryJobTitle;return(0,a.jsx)("div",{onClick:l,className:"group flex items-center gap-2 px-4 py-2.5 cursor-pointer transition-all duration-200 border-b-2 -mb-[2px] ".concat(r?n?"border-[#0D5CDF] text-white bg-white/[0.04]":"border-[#0D5CDF] text-gray-800 bg-white":n?"border-transparent text-white/50 hover:text-white/70 hover:bg-white/[0.03]":"border-transparent text-gray-500 hover:text-gray-700 hover:bg-gray-50"),children:s?(0,a.jsx)("div",{className:"w-20 h-4 rounded animate-pulse ".concat(n?"bg-white/10":"bg-gray-200")}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("span",{className:"text-sm font-medium whitespace-nowrap",children:(null==m?void 0:m.length)>30?(0,a.jsx)(d.A,{text:m,children:(0,a.jsxs)("span",{children:[m.slice(0,30),"..."]})}):m}),(0,a.jsxs)(u.rI,{children:[(0,a.jsx)(u.ty,{asChild:!0,children:(0,a.jsx)("div",{onClick:e=>e.stopPropagation(),className:"flex items-center justify-center w-5 h-5 rounded transition-opacity cursor-pointer ".concat(r?"opacity-50 hover:opacity-100":"opacity-0 group-hover:opacity-50 hover:!opacity-100"),children:(0,a.jsxs)("svg",{width:"14",height:"14",viewBox:"0 0 16 16",fill:"none",children:[(0,a.jsx)("circle",{cx:"8",cy:"3",r:"1.5",fill:n?"white":"#6B7280"}),(0,a.jsx)("circle",{cx:"8",cy:"8",r:"1.5",fill:n?"white":"#6B7280"}),(0,a.jsx)("circle",{cx:"8",cy:"13",r:"1.5",fill:n?"white":"#6B7280"})]})})}),(0,a.jsxs)(u.SQ,{align:"end",className:"min-w-[160px] ".concat(n?"bg-[#0a0c2e] border-white/10":""),children:[(null==t?void 0:t.status)!=="ADDED"&&h&&(0,a.jsxs)(u._2,{onClick:()=>
1!c&&(null==o?void 0:o(t)),disabled:c,className:"cursor-pointer gap-2 font-medium ".concat(n?"text-emerald-400 hover:text-emerald-300":"text-emerald-600 hover:text-emerald-700"," ").concat(c?"opacity-50 cursor-not-allowed":""),children:[(0,a.jsx)(b.A,{size:14})," ",c?"Approving…":"Approve Niche"]}),(0,a.jsxs)(u._2,{onClick:()=>{x((0,g._J)(t)),x((0,g.p2)(!0))},className:"cursor-pointer gap-2 ".concat(n?"text-white/80 hover:text-white":""),children:[(0,a.jsx)(y.A,{size:14})," Edit Niche"]}),(0,a.jsxs)(u._2,{onClick:()=>(e=>{let t=Object.entries({"Primary Job Title":e.primaryJobTitle||"","Job Title Alias":Array.isArray(e.jobTitleAlias)?e.jobTitleAlias.join(", "):"","Fundamental Function":Array.isArray(e.fundamentalFunction)?e.fundamentalFunction.join(", "):"",Seniority:e.seniority||"",Industry:Array.isArray(e.industry)?e.industry.join(", "):"","Role Category":Array.isArray(e.roleCategory)?e.roleCategory.join(", "):"","Company Type":Array.isArray(e.companyType)?e.companyType.join(", "):"",Experience:e.experience||"",Location:e.location||"","Target Companies":Array.isArray(e.targetCompanies)?e.targetCompanies.join(", "):"","Inclusive Keywords":Array.isArray(e.inclusiveKeywords)?e.inclusiveKeywords.join(", "):"","Exclusive Keywords":Array.isArray(e.exclusiveKeywords)?e.exclusiveKeywords.join(", "):""}).map(e=>{let[t,r]=e;return"".concat(t,": ").concat(r)}).join("\n");navigator.clipboard.writeText(t).then(()=>F.oR.success("Niche data copied to clipboard")).catch(()=>F.oR.error("Failed to copy niche data"))})(t),className:"cursor-pointer gap-2 ".concat(n?"text-white/80 hover:text-white":""),children:[(0,a.jsx)(v.A,{size:14})," Copy Niche"]}),(0,a.jsxs)(u._2,{onClick:()=>{x((0,g.C3)(!0)),x((0,g.zt)("niche")),x((0,g._J)(t))},className:"cursor-pointer gap-2 text-red-500 hover:text-red-600",children:[(0,a.jsx)(w.A,{size:14})," Delete Niche"]})]})]})]})})},J=e=>{let{step:t,title:r,description:l,status:s,actionLabel:n,onAction:i,isLoading:o,dark:c}=e,d={Completed:(0,a.jsx)(b.A,{size:20,className:"text-white"}),"In Progress":(0,a.jsx)(j.A,{size:18,className:"text-white ml-0.5"}),Locked:(0,a.jsx)(f.A,{size:18,className:c?"text-white/30":"text-gray-400"})};return o?(0,a.jsxs)("div",{className:"flex gap-4 items-start",children:[(0,a.jsx)("div",{className:"w-10 h-10 rounded-full animate-pulse shrink-0 ".concat(c?"bg-white/10":"bg-gray-200")}),(0,a.jsxs)("div",{className:"flex-1 p-5 rounded-xl border animate-pulse ".concat(c?"bg-white/[0.02] border-white/10":"bg-white border-gray-200"),children:[(0,a.jsx)("div",{className:"w-20 h-4 rounded mb-2 ".concat(c?"bg-white/10":"bg-gray-200")}),(0,a.jsx)("div",{className:"w-48 h-6 rounded mb-2 ".concat(c?"bg-white/10":"bg-gray-200")}),(0,a.jsx)("div",{className:"w-full h-4 rounded ".concat(c?"bg-white/10":"bg-gray-200")})]})]}):(0,a.jsxs)("div",{className:"flex gap-4 items-start",children:[(0,a.jsx)("div",{className:"w-10 h-10 rounded-full flex items-center justify-center shrink-0 mt-4 ".concat({Completed:"bg-emerald-500","In Progress":"bg-[#0D5CDF]",Locked:c?"bg-white/10":"bg-gray-200"}[s]),children:d[s]}),(0,a.jsxs)("div",{className:"flex-1 p-5 rounded-xl border transition-all duration-200 ".concat({Completed:c?"border-emerald-500/30":"border-green-200","In Progress":c?"border-[#0D5CDF]/40":"border-blue-200",Locked:c?"border-white/10":"border-gray-200"}[s]," ").concat(c?"bg-white/[0.02]":"bg-white"," ").concat("Locked"!==s?c?"hover:bg-white/[0.04]":"hover:shadow-md":"opacity-75"),children:[(0,a.jsxs)("div",{className:"flex justify-between items-start mb-2",children:[(0,a.jsxs)("div",{children:[(0,a.jsxs)("p",{className:"text-xs font-semibold tracking-wider mb-1 ".concat("Completed"===s?c?"text-emerald-400/70":"text-green-500":c?"text-white/40":"text-gray-400"),children:["STEP ",t]}),(0,a.jsx)("h3",{className:"text-lg font-semibold ".concat(c?"text-white":"text-gray-800"),children:r})]}),(0,a.jsx)("span",{className:"px-3 py-1 text-xs font-medium rounded-md ".concat({Completed:c?"bg-emerald-500/15 text-emerald-400":"bg-green-50 text-green-600","In Progress":c?"bg-[#0D5CDF]/15 text-[#5AA5FF]":"bg-blue-50 text-blue-600",Locked:c?"bg-white/5 text-white/40":"bg-gray-100 text-gray-400"}[s]),children:s})]}),(0,a.jsx)("p",{className:"text-sm leading-relaxed ".concat(c?"text-white/50":"text-gray-500"),children:l}),n&&"Locked"!==s&&(0,a.jsxs)(h.$,{onClick:i,className:"mt-4 gap-2 rounded-lg transition-all duration-300 ".concat("Completed"===s?c?"bg-white/[0.06] hover:bg-white/10 text-white/70":"bg-gray-100 hover:bg-gray-200 text-gray-700":"bg-[#0D5CDF] hover:bg-[#0b4fc7] text-white shadow-[0_0_20px_rgba(13,92,223,0.3)] hover:shadow-[0_0_30px_rgba(13,92,223,0.5)]"),children:["Completed"===s?"Open":n," ",(0,a.jsx)(N.A,{size:16})]})]})]})},P=e=>{let{dark:t,onClose:r}=e;return(0,a.jsxs)("div",{className:"w-80 shrink-0 rounded-xl border overflow-hidden flex flex-col ".concat(t?"bg-white/[0.02] border-white/10":"bg-white border-gray-200"),children:[(0,a.jsxs)("div",{className:"p-4 border-b flex items-center gap-3 ".concat(t?"border-white/10":"border-gray-100"),children:[(0,a.jsx)("div",{className:"w-8 h-8 rounded-full bg-[#0D5CDF] flex items-center justify-center shrink-0",children:(0,a.jsx)(j.A,{size:14,className:"text-white ml-0.5"})}),(0,a.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,a.jsx)("h3",{className:"text-sm font-bold ".concat(t?"text-white":"text-gray-800"),children:"Omega Process Guide"}),(0,a.jsx)("p",{className:"text-xs ".concat(t?"text-white/40":"text-gray-400"),children:"Watch short videos to understand each step"})]}),(0,a.jsx)("button",{type:"button",onClick:e=>{e.preventDefault(),e.stopPropagation(),r()},className:"shrink-0 p-2 rounded-lg transition-colors cursor-pointer ".concat(t?"hover:bg-white/10 text-white/40 hover:text-white":"hover:bg-gray-100 text-gray-400 hover:text-gray-600"),children:(0,a.jsx)(C.A,{size:18})})]}),(0,a.jsx)("div",{className:"flex-1 overflow-y-auto",children:L.map((e,r)=>(0,a.jsx)(c,{videourl:e.url,children:(0,a.jsxs)("div",{className:"flex items-center gap-3 px-4 py-3 cursor-pointer transition-colors ".concat(t?"hover:bg-white/[0.04] border-b border-white/5":"hover:bg-gray-50 border-b border-gray-50"),children:[(0,a.jsx)("span",{className:"text-sm font-bold w-6 text-center shrink-0 ".concat(t?"text-white/30":"text-gray-300"),children:r+1}),(0,a.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,a.jsx)("p",{className:"text-sm font-medium truncate ".concat(t?"text-white/80":"text-gray-700"),children:e.title}),(0,a.jsxs)("div",{className:"flex items-center gap-1 mt-0.5 ".concat(t?"text-white/30":"text-gray-400"),children:[(0,a.jsx)(A.A,{size:11}),(0,a.jsx)("span",{className:"text-xs",children:e.duration})]})]})]})},r))})]})},B=e=>{let{onClick:t,dark:r}=e;return(0,a.jsx)("button",{type:"button",onClick:t,className:"fixed bottom-6 right-6 z-50 w-12 h-12 rounded-full flex items-center justify-center transition-all duration-300 hover:scale-110 bg-[#0D5CDF] hover:bg-[#0b4fc7] shadow-[0_0_20px_rgba(13,92,223,0.4)] hover:shadow-[0_0_30px_rgba(13,92,223,0.6)]",children:(0,a.jsx)(k.A,{size:20,className:"text-white"})})},K=e=>{var t;let{email:r}=e,l=(0,D.useRouter)(),s=(0,_.d4)(e=>e.omegaSlice.nicheData),n=(0,_.d4)(e=>e.omegaSlice.activeNiche),i=(0,_.d4)(e=>e.authSlice.auth),o=(0,_.wA)(),c=(()=>{let[e,t]=(0,z.useState)(!1),r=(0,D.useRouter)();return(0,z.useEffect)(()=>
1{if(!(0,m.xl)(r.pathname))return void t(!1);"true"===localStorage.getItem("darkMode")&&t(!0);let e=e=>{(0,m.xl)(r.pathname)&&t(e.detail.isDarkMode)};return window.addEventListener("darkModeChange",e),()=>window.removeEventListener("darkModeChange",e)},[r.pathname]),e})(),[u,y]=(0,z.useState)(()=>{let e=localStorage.getItem(M);return null===e||"true"===e}),v=()=>{y(e=>{let t=!e;return localStorage.setItem(M,String(t)),t})},{useFetchNiche:w,useFetchOnboardingDetails:j,useUpdateNiche:N}=(0,p.T)(),{isLoading:C,data:A}=w({email:r}),{isLoading:k}=j({email:r,enabled:(null==A?void 0:A.length)===0}),{mutate:S,isLoading:T}=N(),L=e=>{if(!e||T)return;let t={...e,status:"ADDED"};S({...t,email:r},{onSuccess:()=>{(null==n?void 0:n.nicheId)===e.nicheId&&o((0,g._J)(t)),F.oR.success("Niche approved — SWOT & CAR are now unlocked")}})},K=(0,z.useCallback)(()=>{try{let e=localStorage.getItem(x.p.ACTIVE_NICHE);return e?JSON.parse(e):null}catch(e){return null}},[]),O=(0,z.useCallback)(e=>{if(e)try{localStorage.setItem(x.p.ACTIVE_NICHE,JSON.stringify(e))}catch(e){}},[]);(0,z.useEffect)(()=>{if((null==s?void 0:s.length)>0&&!n){let e=K();if(e){let t=s.find(t=>t.nicheId===e.nicheId);if(t)return void o((0,g._J)(t))}o((0,g._J)(s[0]))}},[s,n,K,o]),(0,z.useEffect)(()=>{n&&(O(n),o((0,g.Gi)()),o((0,g.kd)(null)),o((0,g.By)([])),o((0,g.Rj)([])))},[n,O,o]);let q=(null==n?void 0:n.status)==="ADDED",W=!!(null==i||null==(t=i.email)?void 0:t.includes("nxtjob.ai")),V=100*(null!=n&&!!n.isSwotCompleted),Y=100*(null!=n&&!!n.isCarCompleted),H=Math.round((V+Y+100*!!q)/3);return(null==s?void 0:s.length)!==0||C?(0,a.jsxs)("div",{className:"flex gap-6 p-6 h-full overflow-hidden",children:[(0,a.jsxs)("div",{className:"flex-1 flex flex-col gap-5 min-w-0 overflow-y-auto pr-2",children:[(0,a.jsxs)("div",{className:"flex items-end gap-0 border-b ".concat(c?"border-white/10":"border-gray-200"),children:[C?Array.from({length:3}).map((e,t)=>(0,a.jsx)(E,{niche:{},isActive:0===t,isLoading:!0,dark:c,index:t},t)):null==s?void 0:s.map((e,t)=>(0,a.jsx)(E,{niche:e,isActive:(null==n?void 0:n.nicheId)===e.nicheId,onClick:()=>o((0,g._J)(e)),isLoading:!1,dark:c,index:t,onApprove:L,isApproving:T,canApprove:W},e.nicheId)),(0,a.jsx)(d.A,{text:"Add Niche",children:(0,a.jsx)("button",{type:"button",onClick:()=>o((0,g.fo)(!0)),disabled:C,className:"flex items-center justify-center w-10 h-10 rounded-full mb-1 ml-2 transition-all duration-200 ".concat(c?"text-white/40 hover:text-white hover:bg-white/[0.06]":"text-gray-400 hover:text-gray-600 hover:bg-gray-100"),children:(0,a.jsx)(I.A,{size:18})})})]}),!C&&n&&!q&&(0,a.jsxs)("div",{className:"flex flex-wrap items-center justify-between gap-4 p-5 rounded-xl border ".concat(c?"bg-amber-500/10 border-amber-500/30":"bg-amber-50 border-amber-200"),children:[(0,a.jsxs)("div",{className:"flex gap-3 items-start min-w-0",children:[(0,a.jsx)("div",{className:"w-9 h-9 rounded-full flex items-center justify-center shrink-0 ".concat(c?"bg-amber-500/20":"bg-amber-100"),children:(0,a.jsx)(f.A,{size:16,className:c?"text-amber-400":"text-amber-600"})}),(0,a.jsxs)("div",{className:"min-w-0",children:[(0,a.jsx)("p",{className:"text-sm font-semibold ".concat(c?"text-amber-300":"text-amber-800"),children:W?"Approve this niche to unlock SWOT & CAR":"Niche pending approval"}),(0,a.jsx)("p",{className:"text-xs mt-0.5 ".concat(c?"text-amber-300/70":"text-amber-700"),children:W?"Review the “".concat(n.primaryJobTitle,"” niche, then approve it to start the Learning Path."):"Your coach will activate “".concat(n.primaryJobTitle,"” on your niche call to unlock SWOT & CAR.")})]})]}),W&&(0,a.jsxs)(h.$,{onClick:()=>L(n),disabled:T,className:"gap-2 text-white bg-emerald-600 rounded-lg shrink-0 hover:bg-emerald-700 disabled:opacity-60",children:[(0,a.jsx)(b.A,{size:16})," ",T?"Approving…":"Approve Niche"]})]}),(0,a.jsx)("div",{className:"p-6 rounded-xl border ".concat(c?"bg-white/[0.02] border-white/10":"bg-white border-gray-200"),children:(0,a.jsxs)("div",{className:"flex justify-between items-start gap-6",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-xs font-semibold tracking-wider mb-3 ".concat(c?"text-[#5AA5FF]":"text-blue-500"),children:"RESUME READINESS"}),C?(0,a.jsx)("div",{className:"w-24 h-12 rounded animate-pulse ".concat(c?"bg-white/10":"bg-gray-200")}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"flex items-baseline gap-2",children:[(0,a.jsxs)("span",{className:"text-5xl font-bold ".concat(c?"text-white":"text-gray-800"),children:[H,"%"]}),(0,a.jsx)("span",{className:"text-sm font-medium text-emerald-500",children:"Completed"})]}),(0,a.jsxs)("p",{className:"text-sm mt-2 ".concat(c?"text-white/40":"text-gray-400"),children:["Based on ",(null==n?void 0:n.primaryJobTitle)||"your"," Niche"]})]})]}),(0,a.jsxs)("div",{className:"flex gap-6 pt-1",children:[(0,a.jsx)(R,{label:"SWOT",value:V,dark:c}),(0,a.jsx)(R,{label:"CAR",value:Y,dark:c})]})]})}),(0,a.jsx)("h2",{className:"text-xl font-bold mt-2 ".concat(c?"text-white":"text-gray-800"),children:"Your Learning Path"}),(0,a.jsxs)("div",{className:"flex flex-col gap-4 pb-6",children:[(0,a.jsx)(J,{step:1,title:"Define Your Target Niche",description:n?"Your target niche is set to ".concat(n.primaryJobTitle,"."):"Define your career focus area to get started.",status:n?"Completed":"In Progress",isLoading:C,dark:c}),(0,a.jsx)(J,{step:2,title:"Skill Intelligence Mapping (SWOT)",description:"Reverse-engineer job descriptions to discover which skills employers actually want. Upload JDs and see which skills appear most frequently.",status:q?(null==n?void 0:n.isSwotCompleted)?"Completed":"In Progress":"Locked",actionLabel:"Continue SWOT",onAction:()=>l.push("/jobs"),isLoading:C,dark:c}),(0,a.jsx)(J,{step:3,title:"Experience Mining (CAR)",description:"Turn your past work into strong, structured stories that showcase your impact.",status:q?(null==n?void 0:n.isCarCompleted)?"Completed":(null==n?void 0:n.isSwotCompleted)?"In Progress":"Locked":"Locked",actionLabel:"Continue CAR",onAction:()=>l.push("/car"),isLoading:C,dark:c})]})]}),u?(0,a.jsx)(P,{dark:c,onClose:v}):(0,a.jsx)(B,{onClick:v,dark:c})]}):(0,a.jsxs)("div",{className:"flex flex-col w-full h-full items-center justify-center ".concat(c?"text-white":""),children:[(0,a.jsx)("p",{className:"text-lg ".concat(c?"text-white/80":"text-gray-600"),children:"No Niche Added!"}),(0,a.jsx)("p",{className:"text-sm mt-1 ".concat(c?"text-white/50":"text-gray-500"),children:"Get started by adding your first niche"}),(0,a.jsx)(h.$,{onClick:()=>o((0,g.fo)(!0)),className:"mt-4 w-44 bg-[#0D5CDF] hover:bg-[#0b4fc7] text-white shadow-[0_0_20px_rgba(13,92,223,0.3)]",children:"Add Niche"})]})};var O=r(3097),q=r(56268),W=r(52786),V=r(77431),Y=r(17508),H=r(99702),G=r(50775),$=r(95546),U=r(97336),X=r(96126),Z=r(47094),Q=r.n(Z),ee=r(75912),et=r(35063),er=r(19761),ea=r(85999),el=r(12120);let es=H.z.object({primaryJobTitle:H.z.string().min(1,"Primary job title is required").max(40,"Primary job title must be 40 characters or less"),jobTitleAlias:H.z.array(H.z.string()).min(1,"Job title alias is required"),fundamentalFunction:H.z.array(H.z.string()).min(1,"Fundamental function is required"),seniority:H.z.string().min(1,"Seniority/Hierarchy is required"),industry:H.z.array(H.z.string()).min(1,"Industry is required"),roleCategory:H.z.array(H.z.string()).min(1,"Role category is required"),
1companyType:H.z.array(H.z.string()).min(1,"Company type is required"),experience:H.z.string().min(1,"Years of experience is required"),location:H.z.string().min(1,"Location preference is required"),targetCompanies:H.z.array(H.z.string()).min(1,"Targeted companies is required"),inclusiveKeywords:H.z.array(H.z.string()).optional(),exclusiveKeywords:H.z.array(H.z.string()).optional()}),en=e=>{var t,r,l,s,n,i,o,c,u,x,b,y;let{email:v}=e,[w,j]=(0,z.useState)(!1),f=(0,_.d4)(e=>e.omegaSlice.showAddNicheModal),N=(0,_.d4)(e=>e.onboardingSlice.onboardingDetails),C=(0,_.d4)(e=>e.omegaSlice.nicheData),A=(0,_.wA)(),k=(0,D.useRouter)(),[I,S]=(0,z.useState)(!1);(0,z.useEffect)(()=>{if(!(0,m.xl)(k.pathname))return void S(!1);"true"===localStorage.getItem("darkMode")&&S(!0);let e=e=>{(0,m.xl)(k.pathname)&&S(e.detail.isDarkMode)};return window.addEventListener("darkModeChange",e),()=>window.removeEventListener("darkModeChange",e)},[k.pathname]);let F=(0,Y.mN)({resolver:(0,O.u)(es),defaultValues:{primaryJobTitle:"",jobTitleAlias:[],fundamentalFunction:[],seniority:"",industry:[],roleCategory:[],companyType:[],experience:"",location:"",targetCompanies:[],inclusiveKeywords:[],exclusiveKeywords:[]}}),{control:M,handleSubmit:L,formState:{errors:R},reset:E,watch:J,setValue:P}=F,{useCreateNiche:B,useGenerateJobTitleAlias:K}=(0,p.T)(),{mutate:H,isLoading:Z}=K(),{mutate:en,isLoading:ei}=B(),eo=()=>{A((0,g.fo)(!1)),E(),j(!1)},ec=X.S.map(e=>({label:e,value:e})),ed=(0,el.q0)(J("industry"));(0,z.useEffect)(()=>{N&&(null==C?void 0:C.length)===0&&E({primaryJobTitle:N.primaryTargetJobTitle,jobTitleAlias:N.targetJobTitleAlias,fundamentalFunction:N.fundamentalFunction,seniority:N.seniority,industry:N.targetIndustry,roleCategory:N.roleCategory,companyType:N.companyType||[],experience:N.experience,location:N.location,targetCompanies:N.targetCompanies,inclusiveKeywords:N.inclusiveKeywords,exclusiveKeywords:N.exclusiveKeywords}),N&&(null==C?void 0:C.length)>0&&E({primaryJobTitle:"",jobTitleAlias:[],fundamentalFunction:[],seniority:"",industry:[],roleCategory:[],companyType:[],experience:"",location:"",targetCompanies:[],inclusiveKeywords:[],exclusiveKeywords:[]})},[N,C]);let eh="text-sm font-medium ".concat(I?"text-[#5AA5FF]":""),eu="p-2 w-full text-sm rounded-md border ".concat(I?"bg-white/[0.03] border-white/10 text-white placeholder:text-white/30 focus:border-[#0D5CDF] focus:outline-none":""),ex=I?"w-full bg-white/[0.03] border border-white/10 rounded-lg hover:border-white/20":"w-full bg-white border border-gray-300 rounded-lg ".concat(Q().secondary_input_hover),em=I?"z-[1100] bg-[#020420] border-white/10":"z-[1100] bg-white",ep=I?"dark-select":"custom-select",eg=e=>{let{label:t,closable:r,onClose:l}=e;return(0,a.jsx)(q.A,{className:"my-0.5",color:I?"transparent":"#e5e7eb",closable:r,onClose:l,style:{marginRight:3,borderRadius:4,padding:"2px 6px",fontSize:"12px",color:I?"#5AA5FF":"#000000",border:I?"1px solid rgba(13,92,223,0.3)":void 0,background:I?"rgba(13,92,223,0.15)":void 0},closeIcon:(0,a.jsx)("span",{style:{color:I?"#5AA5FF":"#000000",fontSize:"14px",paddingLeft:"6px"},children:"\xd7"}),children:t})};return(0,a.jsx)(U.cj,{modal:!1,open:f,onOpenChange:e=>A((0,g.fo)(e)),children:(0,a.jsx)(U.h,{side:"right",className:"w-[780px] h-full z-50 shadow-lg p-0 overflow-hidden ".concat(I?"bg-[#020420] border-white/10":"bg-white border-gray-100"),showClose:!1,children:(0,a.jsxs)("div",{className:"flex flex-col h-full",children:[(0,a.jsxs)("div",{className:"flex items-center px-6 h-16 border-b ".concat(I?"border-white/10":""),children:[(0,a.jsx)(T(),{onClick:eo,className:"w-8 h-8 rounded-md border cursor-pointer ".concat(I?"border-white/20 invert":""),src:"/right_arrow.svg",alt:"right_arrow",width:20,height:20}),(0,a.jsx)("h2",{className:"ml-6 text-lg font-medium leading-6 ".concat(I?"text-white":"text-gray-900"),children:"Add Niche"})]}),(0,a.jsx)("p",{className:"px-6 pt-4 text-sm ".concat(I?"text-white/50":"text-gray-500"),children:"Define your career niche with specific details below."}),(0,a.jsx)("div",{className:"overflow-auto flex-1 px-6 h-screen",children:(0,a.jsx)(Y.Op,{...F,children:(0,a.jsxs)("form",{onSubmit:L(e=>{en({...e,jobTitleAlias:(0,ee.m2)(e.jobTitleAlias),fundamentalFunction:(0,ee.m2)(e.fundamentalFunction),industry:(0,ee.m2)(e.industry),roleCategory:(0,ee.m2)(e.roleCategory),companyType:(0,ee.m2)(e.companyType),targetCompanies:(0,ee.m2)(e.targetCompanies),inclusiveKeywords:(0,ee.m2)(e.inclusiveKeywords),exclusiveKeywords:(0,ee.m2)(e.exclusiveKeywords),email:v},{onSuccess:()=>{eo()},onError:e=>{console.error(e)}})}),className:"pb-4",children:[(0,a.jsxs)("div",{className:"mt-4 space-y-4",children:[(0,a.jsx)("div",{children:(0,a.jsxs)($.eI,{children:[(0,a.jsxs)($.lR,{className:eh,
1children:["Industries",(0,a.jsx)("span",{className:"text-red-500 ml-0.5",children:"*"})]}),(0,a.jsx)($.MJ,{children:(0,a.jsx)(Y.xI,{control:M,name:"industry",render:e=>{let{field:t}=e;return(0,a.jsx)("div",{className:ep,children:(0,a.jsx)(G.A,{isDarkMode:I,isMulti:!0,options:ea.ZD,value:Array.isArray(t.value)?t.value:[t.value],onChange:t.onChange,placeholder:"Target Industries",className:ex,showCrossButton:!0,showChevron:!0,useLocalOptions:!0,popoverContentClassName:em})})}})}),(0,a.jsx)($.C5,{children:null==(t=R.industry)?void 0:t.message})]})}),(0,a.jsx)("div",{children:(0,a.jsxs)($.eI,{children:[(0,a.jsxs)($.lR,{className:eh,children:["Role Category",(0,a.jsx)("span",{className:"text-red-500 ml-0.5",children:"*"})]}),(0,a.jsx)($.MJ,{children:(0,a.jsx)(Y.xI,{name:"roleCategory",control:M,render:e=>{let{field:t}=e;return(0,a.jsx)(G.A,{isDarkMode:I,isMulti:!0,label:"Role Category",options:ed,value:Array.isArray(t.value)?t.value:[t.value],onChange:t.onChange,placeholder:"Role Category",className:ex,showCrossButton:!0,showChevron:!0,useLocalOptions:!0,popoverContentClassName:em})}})}),(0,a.jsx)($.C5,{children:null==(r=R.roleCategory)?void 0:r.message})]})}),(0,a.jsx)("div",{children:(0,a.jsxs)($.eI,{children:[(0,a.jsxs)($.lR,{className:eh,children:["Years of Experience",(0,a.jsx)("span",{className:"text-red-500 ml-0.5",children:"*"})]}),(0,a.jsx)($.MJ,{children:(0,a.jsx)(Y.xI,{control:M,name:"experience",render:e=>{let{field:t}=e;return(0,a.jsx)("div",{children:(0,a.jsx)(et.A,{isDarkMode:I,id:"experience",placeholder:"Select years of experience",value:t.value,options:ec,onChange:t.onChange,className:I?"w-full border h-[38px] py-0 bg-white/[0.03] border-white/10 rounded-lg hover:border-white/20":"w-full border h-[38px] py-0 bg-white border-gray-300 rounded-lg",inputBgColor:I?"bg-transparent":"bg-white",showChevron:!0,popoverContentClassName:em})})}})}),(0,a.jsx)($.C5,{children:null==(l=R.experience)?void 0:l.message})]})}),(0,a.jsx)("div",{children:(0,a.jsxs)($.eI,{children:[(0,a.jsxs)($.lR,{className:eh,children:["Targeted Companies",(0,a.jsx)("span",{className:"text-red-500 ml-0.5",children:"*"})]}),(0,a.jsx)($.MJ,{children:(0,a.jsx)(Y.xI,{control:M,name:"targetCompanies",render:e=>{let{field:t}=e;return(0,a.jsx)("div",{className:ep,children:(0,a.jsx)(W.A,{id:"targetCompanies",mode:"tags",value:t.value,onChange:t.onChange,placeholder:"Type company names and press enter",style:{width:"100%"},tokenSeparators:[",",";","\n"],notFoundContent:null,open:!1,suffixIcon:null,tagRender:eg})})}})}),(0,a.jsx)($.C5,{children:null==(s=R.targetCompanies)?void 0:s.message})]})}),(0,a.jsx)("div",{children:(0,a.jsxs)($.eI,{children:[(0,a.jsxs)($.lR,{className:eh,children:["Location Preference",(0,a.jsx)("span",{className:"text-red-500 ml-0.5",children:"*"})]}),(0,a.jsx)($.MJ,{children:(0,a.jsx)(Y.xI,{name:"location",control:M,render:e=>{let{field:t}=e;return(0,a.jsx)("input",{...t,type:"text",placeholder:"Enter location preference separated by commas eg: 'New Delhi, Mumbai, Bangalore'",className:eu})}})}),(0,a.jsx)($.C5,{children:null==(n=R.location)?void 0:n.message})]})}),(0,a.jsx)("div",{children:(0,a.jsxs)($.eI,{children:[(0,a.jsxs)($.lR,{className:eh,children:["Primary Target Job Title",(0,a.jsx)("span",{className:"text-red-500 ml-0.5",children:"*"}),(0,a.jsx)("span",{className:"ml-1 text-xs font-normal ".concat(I?"text-white/40":"text-gray-500"),children:"(Only 1 Job Title, 40 Chars Max)"})]}),(0,a.jsx)($.MJ,{children:(0,a.jsx)(Y.xI,{name:"primaryJobTitle",control:M,render:e=>{let{field:t}=e;return(0,a.jsx)("input",{...t,type:"text",placeholder:"Enter primary job title",className:eu,maxLength:40})}})}),(0,a.jsx)($.C5,{children:null==(i=R.primaryJobTitle)?void 0:i.message})]})}),(0,a.jsx)("div",{children:(0,a.jsxs)($.eI,{children:[(0,a.jsxs)($.lR,{className:eh,children:["Target Job Title Alias",(0,a.jsx)("span",{className:"text-red-500 ml-0.5",children:"*"})]}),(0,a.jsx)($.MJ,{children:(0,a.jsxs)("div",{className:"flex gap-2",children:[(0,a.jsx)(Y.xI,{name:"jobTitleAlias",control:M,render:e=>{let{field:t}=e;return(0,a.jsx)("div",{className:"flex-1 ".concat(ep),children:(0,a.jsx)(W.A,{mode:"tags",value:t.value,onChange:t.onChange,placeholder:"Enter job title alias",className:"cursor-pointer",style:{width:"100%"},tokenSeparators:[",",";","\n"],notFoundContent:null,open:!1,suffixIcon:(0,a.jsx)(V.A,{className:"w-4 h-4 opacity-50 ".concat(I?"text-white":"text-gray-900")}),tagRender:eg})})}}
1),(0,a.jsx)(d.A,{text:Z?"Generating aliases...":"Generate with AI",children:(0,a.jsx)("div",{className:"flex flex-col justify-center items-center cursor-pointer ".concat(Z?"opacity-50 cursor-not-allowed":"opacity-70 hover:opacity-100"),onMouseDown:e=>e.stopPropagation(),onClick:Z?void 0:()=>{var e,t,r;let a=J(),l={primaryJobTitle:a.primaryJobTitle,experience:a.experience,location:a.location,targetCompanies:a.targetCompanies,industry:a.industry,roleCategory:a.roleCategory};if(!l.primaryJobTitle||!l.experience||!l.location||!(null==(e=l.targetCompanies)?void 0:e.length)||!(null==(t=l.industry)?void 0:t.length)||!(null==(r=l.roleCategory)?void 0:r.length))return void j(!0);j(!1),H(l,{onSuccess:e=>{P("jobTitleAlias",[...new Set([...a.jobTitleAlias||[],...(null==e?void 0:e.alternativeJobTitles)||[]])])}})},id:"ai_toolbox",children:(0,a.jsx)("div",{className:"relative w-7 h-7 rounded-full shadow-lg cursor-pointer",children:Z?(0,a.jsx)("div",{className:"flex justify-center items-center w-full h-full",children:(0,a.jsx)(er.A,{className:"text-[#0D5CDF]"})}):(0,a.jsx)(T(),{src:"/ai.svg",alt:"ai",width:26,height:26})})})})]})}),w&&(0,a.jsx)("span",{className:"text-xs text-red-500",children:"* Primary job title, Years of experience, Location preference, Targeted companies, Industries are required to generate a job title alias"}),(0,a.jsx)($.C5,{children:null==(o=R.jobTitleAlias)?void 0:o.message})]})}),(0,a.jsx)("div",{children:(0,a.jsxs)($.eI,{children:[(0,a.jsx)($.lR,{className:eh,children:"keywords to include"}),(0,a.jsx)($.MJ,{children:(0,a.jsx)(Y.xI,{control:M,name:"inclusiveKeywords",render:e=>{let{field:t}=e;return(0,a.jsx)("div",{className:ep,children:(0,a.jsx)(W.A,{mode:"tags",value:t.value,onChange:t.onChange,placeholder:"skills you have eg: 'sales', 'marketing', 'finance'",className:"cursor-pointer",style:{width:"100%"},tokenSeparators:[",",";","\n"],notFoundContent:null,open:!1,suffixIcon:null,tagRender:eg})})}})}),(0,a.jsx)($.C5,{children:null==(c=R.inclusiveKeywords)?void 0:c.message})]})}),(0,a.jsx)("div",{children:(0,a.jsxs)($.eI,{children:[(0,a.jsx)($.lR,{className:eh,children:"keywords to exclude"}),(0,a.jsx)($.MJ,{children:(0,a.jsx)(Y.xI,{control:M,name:"exclusiveKeywords",render:e=>{let{field:t}=e;return(0,a.jsx)("div",{className:ep,children:(0,a.jsx)(W.A,{mode:"tags",value:t.value,onChange:t.onChange,placeholder:"skills you don't have eg: 'sales', 'marketing', 'finance'",className:"cursor-pointer",style:{width:"100%"},tokenSeparators:[",",";","\n"],notFoundContent:null,open:!1,suffixIcon:null,tagRender:eg})})}})}),(0,a.jsx)($.C5,{children:null==(u=R.exclusiveKeywords)?void 0:u.message})]})}),(0,a.jsx)("div",{children:(0,a.jsxs)($.eI,{children:[(0,a.jsxs)($.lR,{className:eh,children:["Seniority/Hierarchy",(0,a.jsx)("span",{className:"text-red-500 ml-0.5",children:"*"})]}),(0,a.jsx)($.MJ,{children:(0,a.jsx)(Y.xI,{name:"seniority",control:M,render:e=>{let{field:t}=e;return(0,a.jsx)(et.A,{isDarkMode:I,label:"Seniority/Hierarchy",options:ea.ny,value:t.value,onChange:t.onChange,placeholder:"Seniority/Hierarchy",className:I?"w-full bg-white/[0.03] rounded-lg border border-white/10 hover:border-white/20":"w-full bg-white rounded-lg border border-gray-300",showCrossButton:!0,inputBgColor:I?"bg-transparent":"bg-white",showChevron:!0,popoverContentClassName:em})}})}),(0,a.jsx)($.C5,{children:null==(x=R.seniority)?void 0:x.message})]})}),(0,a.jsx)("div",{children:(0,a.jsxs)($.eI,{children:[(0,a.jsxs)($.lR,{className:eh,children:["Fundamental Function",(0,a.jsx)("span",{className:"text-red-500 ml-0.5",children:"*"})]}),(0,a.jsx)($.MJ,{children:(0,a.jsx)("div",{children:(0,a.jsx)(Y.xI,{control:M,name:"fundamentalFunction",render:e=>{var t;let{field:r}=e;return(0,a.jsx)(et.A,{isDarkMode:I,id:"fundamentalFunction",className:I?"w-full bg-white/[0.03] rounded-lg border border-white/10 hover:border-white/20":"w-full bg-white rounded-lg border border-gray-300",secondary:!0,placeholder:"Select fundamental function(s)",value:r.value,options:el.ef.map(e=>({label:e,value:e})),onChange:r.onChange,error:null==(t=R.fundamentalFunction)?void 0:t.message,placeholderClassName:I?"placeholder:text-sm placeholder:leading-6 placeholder:font-normal placeholder:text-white/30":"placeholder:text-sm placeholder:leading-6 placeholder:font-normal placeholder:text-gray-400",showCrossButton:!0,popoverContentClassName:em,isMulti:!0,showChevron:!0})}})})}),(0,a.jsx)($.C5,{children:null==(b=R.fundamentalFunction)?void 0:b.message})]})}),(0,a.jsx)("div",{children:(0,a.jsxs)($.eI,{children:[(0,a.jsxs)($.lR,{className:eh,
1children:["Company Type",(0,a.jsx)("span",{className:"text-red-500 ml-0.5",children:"*"})]}),(0,a.jsx)($.MJ,{children:(0,a.jsx)(Y.xI,{name:"companyType",control:M,render:e=>{let{field:t}=e;return(0,a.jsx)(et.A,{isDarkMode:I,isMulti:!0,id:"companyType",placeholder:"Select company type",value:t.value,options:el.KV,onChange:t.onChange,className:I?"w-full bg-white/[0.03] rounded-lg border border-white/10 hover:border-white/20":"w-full bg-white rounded-lg border border-gray-300",inputBgColor:I?"bg-transparent":"bg-white",showChevron:!0,showCrossButton:!0,popoverContentClassName:em})}})}),(0,a.jsx)($.C5,{children:null==(y=R.companyType)?void 0:y.message})]})})]}),(0,a.jsx)(h.$,{className:"mt-4 w-full bg-[#0D5CDF] hover:bg-[#0b4fc7] text-white dark:bg-[#0D5CDF] dark:hover:bg-[#0b4fc7] dark:text-white",variant:"ghost",type:"submit",disabled:ei,children:(0,a.jsxs)("div",{className:"flex relative justify-center items-center",children:[(0,a.jsx)("span",{className:"text-white ".concat(ei?"opacity-50":""),children:"Add Niche"}),ei&&(0,a.jsx)("div",{className:"flex absolute inset-0 justify-center items-center",children:(0,a.jsx)(er.A,{className:"text-white"})})]})})]})})})]})})})};var ei=r(21539);let eo=()=>{let{email:e}=(0,D.useRouter)().query;return(0,a.jsx)(l.A,{children:(0,a.jsxs)("div",{className:"h-full overflow-hidden",children:[(0,a.jsx)(K,{email:e}),(0,a.jsx)(en,{email:e}),(0,a.jsx)(ei.A,{email:e}),(0,a.jsx)(s.A,{})]})})}},90525:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});let a=(0,r(27059).A)("trash",[["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]])}},e=>{e.O(0,[2103,6013,4205,5444,9614,8014,3215,3452,2120,8161,1539,636,6593,8792],()=>e(e.s=42460)),_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.