1import{b9 as L,bu as m,bp as e,C as u,o as v,p as y,k as a,aX as R,m as k,l as g,d as B,b as P,w as J,c as d,aB as f,aR as A,aY as D,aH as E,bz as F,bF as U,bJ as O,ah as w,i as S,aK as q,ai as G,aI as T}from"./index-Bz4x43kN.js";import{I}from"./info-ubLLwv1D.js";import{M as H}from"./map-pin-NtNX2OCM.js";import{C as M}from"./circle-help-CFYyawcx.js";import{S as z}from"./square-pen-Dth2iaQP.js";/** 2 * @license lucide-react v0.453.0 - ISC 3 * 4 * This source code is licensed under the ISC license. 5 * See the LICENSE file in the root directory of this source tree. 6 */const V=L("Compass",[["path",{d:"m16.24 7.76-1.804 5.411a2 2 0 0 1-1.265 1.265L7.76 16.24l1.804-5.411a2 2 0 0 1 1.265-1.265z",key:"9ktpf1"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]),p=[{id:"welcome",title:"Welcome to Career Discovery",description:"Explore comprehensive career planning and discovery tools to help you find your ideal career path and make informed decisions.",icon:e.jsx(V,{className:"h-5 w-5"})},{id:"career-discovery",title:"Career Discovery Search",description:"Search and explore thousands of career opportunities. Get salary insights, required skills, and market demand for any career you're interested in.",icon:e.jsx(f,{className:"h-5 w-5"}),action:"Click 'Career Discovery' to start exploring careers"},{id:"career-paths",title:"Career Path Explorer",description:"Discover career progression opportunities and see how you can advance from your current role. Visualize potential career trajectories and required skills.",icon:e.jsx(H,{className:"h-5 w-5"}),action:"Explore career progression with Career Path Explorer"},{id:"assessment",title:"Career Assessment",description:"Take a comprehensive personality and skills assessment to discover careers that match your strengths, interests, and work style.",icon:e.jsx(A,{className:"h-5 w-5"}),action:"Complete the assessment to get personalized recommendations"},{id:"hot-tech",title:"Hot Technologies",description:"Stay ahead with trending skills and technologies. See what's in demand and plan your learning path to remain competitive.",icon:e.jsx(D,{className:"h-5 w-5"}),action:"Check out Hot Technologies to see what's trending"},{id:"horoscope",title:"Career Horoscope",description:"Get daily personalized career insights and motivation tailored to your zodiac sign. A fun way to start your day with career focus!",icon:e.jsx(E,{className:"h-5 w-5"}),action:"Read your daily Career Horoscope"},{id:"tips",title:"Pro Tips",description:"Combine multiple tools for best results: Start with Career Assessment, explore paths, search for specific roles, and track trending skills in your field.",icon:e.jsx(I,{className:"h-5 w-5"})}];function W({isOpen:j,onClose:N}){const[t,c]=m.useState(0),[s,n]=m.useState(!1),r=p[t],i=t===p.length-1,o=t===0;m.useEffect(()=>{j&&(n(!0),c(0))},[j]);const l=()=>{i?x():c(b=>b+1)},h=()=>{t>0&&c(b=>b-1)},x=()=>{localStorage.setItem("job-search-tutorial-completed","true"),N()},C=()=>{localStorage.setItem("job-search-tutorial-completed","true"),N()};return!j||!s?null:e.jsx("div",{className:"fixed inset-0 bg-black/50 flex items-center justify-center z-50 p-3 sm:p-4 overflow-y-auto",children:e.jsxs(u,{className:"w-full max-w-md bg-white shadow-xl my-auto",children:[e.jsxs(v,{className:"pb-3 sm:pb-4",children:[e.jsxs("div",{className:"flex items-center justify-between gap-2",children:[e.jsxs("div",{className:"flex items-center gap-2 min-w-0 flex-1",children:[r.icon,e.jsx(y,{className:"text-base sm:text-lg truncate",children:r.title})]}),e.jsx(a,{variant:"ghost",size:"sm",onClick:C,className:"flex-shrink-0",children:e.jsx(R,{className:"h-4 w-4"})})]}),e.jsxs(k,{children:["Step ",t+1," of ",p.length]})]}),e.jsxs(g,{className:"space-y-4",children:[e.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[e.jsx("div",{className:"flex-1 bg-gray-200 rounded-full h-2",children:e.jsx("div",{className:"bg-blue-600 h-2 rounded-full transition-all duration-300",style:{width:`${(t+1)/p.length*100}%`}})}),e.jsxs(B,{variant:"secondary",children:[t+1,"/",p.length]})]}),e.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed",children:r.description}),r.action&&e.jsx("div",{className:"bg-blue-50 p-3 rounded-lg",children:e.jsxs("p",{className:"text-xs font-medium text-blue-800 flex items-center gap-2",children:[e.jsx(I,{className:"h-3 w-3"}),r.action]})}),e.jsxs("div",{className:"flex flex-col sm:flex-row items-stretch sm:items-center justify-between gap-2 pt-4",children:[e.jsxs(a,{variant:"outline",onClick:h,disabled:o,className:"flex items-center justify-center gap-2 order-1",children:[e.jsx(P,{className:"h-4 w-4"}),e.jsx("span",{className:"hidden xs:inline",children:"Previous"}),e.jsx("span",{className:"xs:hidden",children:"Prev"})]}),e.jsxs(a,{onClick:C,variant:"ghost",size:"sm",className:"order-3 sm:order-2",children:[e.jsx("span",{className:"hidden xs:inline",children:"Skip Tutorial"}),e.jsx("span",{className:"xs:hidden",children:"Skip"})]}),e.jsx(a,{onClick:l,className:"flex items-center justify-center gap-2 order-2 sm:order-3",children:i?e.jsxs(e.Fragment,{children:[e.jsx(J,{className:"h-4 w-4"}),e.jsx("span",{className:"hidden xs:inline",children:"Complete"}),e.jsx("span",{className:"xs:hidden",children:"Done"})]}):e.jsxs(e.Fragment,{children:[e.jsx("span",{className:"hidden xs:inline",children:"Next"}),e.jsx("span",{className:"xs:hidden",children:"Next"}),e.jsx(d,{className:"h-4 w-4"})]})})]}),i&&e.jsx("div",{className:"bg-green-50 p-3 rounded-lg mt-4",children:e.jsx("p",{className:"text-xs text-green-800 text-center",children:"You're ready to start exploring your career options! Use these tools together for the best results."})})]})]})})}function Q(){const[j,N]=m.useState("overview"),[t,c]=m.useState(!1),{user:s,isPremiumUser:n,isLoading:r}=F(),{isWPUser:i,hasJobSearchToolkitAccess:o,isAdmin:l}=U(),[,h]=O();console.log("[JobSearchToolkit] Access check:",{isWPUser:i,hasJobSearchToolkitAccess:o,isAdmin:l,user:s==null?void 0:s.username,userId:s==null?void 0:s.id});const x=(s==null?void 0:s.id)===1;return m.useEffect(()=>{!r&&s&&!l&&!x?(console.log("[JobSearchToolkit] Restricting access - user not ID 1"),h("/hub")):!r&&s&&i&&
6!o&&!l&&(console.log("[JobSearchToolkit] Redirecting WP user without OTO5 access"),h("/toolkit/resume"))},[r,s,i,o,l,x,h]),r?e.jsx("div",{className:"flex items-center justify-center min-h-screen",children:e.jsx(w,{className:"h-8 w-8 animate-spin text-primary"})}):s&&!l&&!x?e.jsx("div",{className:"flex items-center justify-center min-h-screen",children:e.jsx(w,{className:"h-8 w-8 animate-spin text-primary"})}):s&&i&&!o&&!l?e.jsx("div",{className:"flex items-center justify-center min-h-screen",children:e.jsx(w,{className:"h-8 w-8 animate-spin text-primary"})}):e.jsx("div",{className:"min-h-screen bg-gradient-to-br from-slate-50 via-blue-50 to-indigo-50 p-4",children:e.jsxs("div",{className:"max-w-7xl mx-auto space-y-8",children:[e.jsxs("div",{className:"flex flex-col sm:flex-row justify-between items-stretch sm:items-center gap-3",children:[e.jsxs(a,{variant:"outline",size:"sm",onClick:()=>window.location.href="/toolkit/resume",className:"flex items-center justify-center gap-2 bg-white/80 backdrop-blur-sm",children:[e.jsx(P,{className:"h-4 w-4"}),e.jsx("span",{children:"Back to Toolkit"})]}),e.jsxs(a,{variant:"outline",size:"sm",onClick:()=>c(!0),className:"flex items-center justify-center gap-2 bg-blue-50 border-blue-200 text-blue-700 hover:bg-blue-100",children:[e.jsx(M,{className:"h-4 w-4"}),e.jsx("span",{className:"hidden xs:inline",children:"Start Tutorial"}),e.jsx("span",{className:"xs:hidden",children:"Tutorial"})]})]}),e.jsx(W,{isOpen:t,onClose:()=>c(!1)}),e.jsx("div",{className:"text-center space-y-4",children:e.jsxs("div",{className:"inline-flex items-center gap-3 mb-4",children:[e.jsx("div",{className:"p-3 bg-gradient-to-r from-blue-600 to-purple-600 rounded-xl",children:e.jsx(S,{className:"h-8 w-8 text-white"})}),e.jsxs("div",{children:[e.jsx("h1",{className:"text-3xl sm:text-4xl font-bold bg-gradient-to-r from-blue-900 to-purple-900 bg-clip-text text-transparent",children:"Career Tools Menu"}),e.jsx("p",{className:"text-base sm:text-lg text-gray-600 mt-2",children:"Explore job search tools, resume toolkit, and career coaching"})]})]})}),e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{children:[e.jsxs("div",{className:"bg-gradient-to-r from-blue-600 to-purple-600 p-4 rounded-t-lg",children:[e.jsxs("h2",{className:"text-2xl font-bold text-white flex items-center gap-2",children:[e.jsx(f,{className:"h-6 w-6"}),"Job Search Tools"]}),e.jsx("p",{className:"text-blue-100 mt-1",children:"Discover careers, explore paths, and plan your journey"})]}),e.jsx("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6 mt-6",children:e.jsxs(u,{children:[e.jsxs(v,{children:[e.jsxs(y,{className:"flex items-center gap-2",children:[e.jsx(f,{className:"h-5 w-5 text-blue-600"}),"Career Discovery & Planning"]}),e.jsx(k,{children:"Discover your ideal career path and plan your professional journey"})]}),e.jsx(g,{className:"space-y-4",children:e.jsxs("div",{className:"space-y-3",children:[e.jsxs("div",{className:"flex items-center justify-between p-3 bg-blue-50 rounded-lg",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx(f,{className:"h-5 w-5 text-blue-600"}),e.jsxs("div",{children:[e.jsx("h4",{className:"font-medium",children:"Career Discovery"}),e.jsx("p",{className:"text-sm text-gray-600",children:"Search and explore career opportunities"})]})]}),e.jsx(a,{size:"sm",onClick:()=>window.location.href="/saved-jobs",className:"bg-blue-600 hover:bg-blue-700",children:e.jsx(d,{className:"h-4 w-4"})})]}),e.jsxs("div",{className:"flex items-center justify-between p-3 bg-purple-50 rounded-lg",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx(H,{className:"h-5 w-5 text-purple-600"}),e.jsxs("div",{children:[e.jsx("h4",{className:"font-medium",children:"Career Path Explorer"}),e.jsx("p",{className:"text-sm text-gray-600",children:"Discover career progression opportunities"})]})]}),e.jsx(a,{size:"sm",onClick:()=>window.location.href="/career-paths",className:"bg-purple-600 hover:bg-purple-700",children:e.jsx(d,{className:"h-4 w-4"})})]}),e.jsxs("div",{className:"flex items-center justify-between p-3 bg-green-50 rounded-lg",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx(A,{className:"h-5 w-5 text-green-600"}),e.jsxs("div",{children:[e.jsx("h4",{className:"font-medium",children:"Career Assessment"}),e.jsx("p",{className:"text-sm text-gray-600",children:"Comprehensive personality & skills assessment"})]})]}),e.jsx(a,{size:"sm",onClick:()=>window.location.href="/assessment",className:"bg-green-600 hover:bg-green-700",children:e.jsx(d,{className:"h-4 w-4"})})]}),e.jsxs("div",{className:"flex items-center justify-between p-3 bg-orange-50 rounded-lg",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx(D,{className:"h-5 w-5 text-orange-600"}),e.jsxs("div",{children:[e.jsx("h4",{className:"font-medium",children:"Hot Technologies"}),e.jsx("p",{className:"text-sm text-gray-600",children:"Trending skills and technologies"})]})]}),e.jsx(a,{size:"sm",onClick:()=>window.location.href="/hot-technologies",className:"bg-orange-600 hover:bg-orange-700",children:e.jsx(d,{className:"h-4 w-4"})})]}),e.jsxs("div",{className:"flex items-center justify-between p-3 bg-teal-50 rounded-lg",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx(E,{className:"h-5 w-5 text-teal-600"}),e.jsxs("div",{children:[e.jsx("h4",{className:"font-medium",children:"Career Horoscope"}),e.jsx("p",{className:"text-sm text-gray-600",children:"Daily career insights and motivation"})]})]}),e.jsx(a,{size:"sm",onClick:()=>window.location.href="/horoscope",className:"bg-teal-600 hover:bg-teal-700",children:e.jsx(d,{className:"h-4 w-4"})})]})]})})]})})]}),e.jsxs(u,{className:"bg-gradient-to-br from-amber-50 to-orange-50 border-amber-200",children:[e.jsx(v,{children:e.jsx("div",{className:"flex items-center justify-between",children:e.jsxs("div",{children:[e.jsxs(y,{className:"flex items-center gap-2 text-2xl",children:[e.jsx(z,{className:"h-6 w-6 text-amber-600"}),"Resume Toolkit"]}),e.jsx(k,{className:"mt-2",children:"Build, optimize, and perfect your resume & interview materials"})]})})}),e.jsx(g,{children:e.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-4",children:[e.jsxs(a,{onClick:()=>
6window.location.href="/resume-builder-info",className:"h-auto py-6 bg-gradient-to-r from-amber-600 to-orange-600 hover:from-amber-700 hover:to-orange-700 flex flex-col items-center gap-2",children:[e.jsx(z,{className:"h-8 w-8"}),e.jsx("span",{className:"text-lg font-semibold",children:"Resume Builder"}),e.jsx("span",{className:"text-xs opacity-90",children:"Create & optimize resumes"})]}),e.jsxs(a,{onClick:()=>window.location.href="/profile-assessment",className:"h-auto py-6 bg-gradient-to-r from-red-600 to-red-700 hover:from-red-700 hover:to-red-800 flex flex-col items-center gap-2",children:[e.jsx(q,{className:"h-8 w-8"}),e.jsx("span",{className:"text-lg font-semibold",children:"Resume Roaster"}),e.jsx("span",{className:"text-xs opacity-90",children:"AI feedback & KVI⢠scoring"})]}),e.jsxs(a,{onClick:()=>n?window.location.href="/career-toolkit":window.location.href="/subscription",disabled:!n,className:"h-auto py-6 bg-gradient-to-r from-purple-600 to-indigo-600 hover:from-purple-700 hover:to-indigo-700 flex flex-col items-center gap-2 disabled:opacity-60 disabled:cursor-not-allowed",children:[!n&&e.jsx(G,{className:"h-5 w-5 absolute top-2 right-2"}),e.jsx(S,{className:"h-8 w-8"}),e.jsx("span",{className:"text-lg font-semibold",children:"Career Toolkit"}),e.jsx("span",{className:"text-xs opacity-90",children:n?"Comprehensive career tools":"Enhanced Feature"})]})]})})]}),!n&&e.jsx(u,{className:"bg-gradient-to-r from-amber-50 to-orange-50 border-amber-200",children:e.jsx(g,{className:"p-6",children:e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx(T,{className:"h-6 w-6 text-amber-600"}),e.jsxs("div",{children:[e.jsx("h3",{className:"font-semibold text-amber-900",children:"Unlock Enhanced Features"}),e.jsx("p",{className:"text-sm text-amber-700",children:"Career Toolkit, Interview Prep, Brand Generator, and advanced career tools"})]})]}),e.jsxs(a,{onClick:()=>window.location.href="/subscription",className:"bg-gradient-to-r from-amber-600 to-orange-600 hover:from-amber-700 hover:to-orange-700",children:[e.jsx(T,{className:"h-4 w-4 mr-2"}),"View Options"]})]})})})]})]})})}export{Q as default};
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.