PageSourceSearch

https://community.waddyado.com/assets/PathwayDetail-C1E3rTSp.js

js waddyado.com collected 2026-10-04 21:38:47 UTC 82,421 bytes, 37 lines download raw bytes

1import{W as $,b4 as D,b3 as Oe,r as b,s as H,j as e,m as P,Z as Te,J as K,b as He,B as A,a6 as Ne,a4 as we,ab as ls,w as Ve,e as Le,S as ue,z as pe,D as fe,F as ge,G as M,y as Ke,c as F,a5 as os,_ as ds,$ as cs,a0 as ms,a1 as xs,a2 as hs,a3 as us,v as ps,Y as fs}from"./index-BemFr6U8.js";import{H as gs,a as ke,A as je,b as js}from"./AppLayout-D-8NG18k.js";import{M as ys,u as vs}from"./use-mobile-1PH3TLH6.js";import{B as y}from"./badge-BiIcst9e.js";import{b as Ue,D as bs}from"./constants-1OK4Irmb.js";import{s as me}from"./displayTitle-DY0o-GPG.js";import{T as Ye}from"./target-xeUsjvuF.js";import{P as De}from"./pound-sterling-CL_bId8d.js";import{T as ee}from"./trending-up-fLbaVcUG.js";import{Z as Ns}from"./zap-BGiY2302.js";import{B as Ee}from"./briefcase-BP-VDXco.js";import{P as Ge}from"./progress-DR0CF5Ax.js";import{C as _e}from"./circle-check-big-pdnR18S4.js";import{C as xe}from"./clock-D6zosScz.js";import{T as ws,a as ks,b as te,c as re}from"./tabs-nn8eqG2N.js";import{S as V}from"./skeleton-k7o9rESh.js";import{C as Ie}from"./chart-column-BpeQBgjx.js";import{l as _s,D as Ss,F as Cs,M as As,b as ye,f as ae,c as Ps,A as Ts,d as J,h as Ls,e as Se,j as Ds,k as Es,n as qe,u as Os,G as Is,o as Me,p as Je,X as Z,Y as X,q as Ze,N as Ce,R as ne,C as ve,T as ie,a as Ms}from"./generateCategoricalChart-DrIxb7fB.js";import{P as Rs,a as Fs}from"./PieChart--TZjPbq1.js";import{M as $s}from"./map-pin-DMYbbIU0.js";import{C as Xe,a as Qe,b as es}from"./collapsible-H3XJvPD_.js";import{H as Bs}from"./heart-CRE5LoA7.js";import{U as de}from"./users-DkGVXX12.js";import{R as Ws}from"./route-BxFFY7y1.js";import{C as zs}from"./circle-alert-BaBosx45.js";import{E as R}from"./external-link-DKq0lasW.js";import{C as Hs}from"./circle-BKCgS2JE.js";import{G as le}from"./graduation-cap-CEbVvphc.js";import{F as Vs}from"./filter-Bc8RY_4W.js";import{S as be}from"./star-EoZPPjN6.js";import{P as Ks}from"./plus-DPfFCCaK.js";import{A as Us,b as Ys}from"./avatar-DgTnS3JG.js";import{L as Gs}from"./linkedin-D2ZmERom.js";import{U as qs}from"./users-round-CXGFpdCx.js";import{C as ss}from"./calendar-3ySejM75.js";import{F as Js}from"./file-text-C8QKV7L_.js";import{u as Zs}from"./useStripePrices-CRyZU3Gs.js";import{S as Xs,a as Qs}from"./scroll-area-DoZII18l.js";import{C as et}from"./chevron-left-BJ2ol6ov.js";import{S as st}from"./share-2-Bxtf85qD.js";import"./dropdown-menu-CZC9-CPz.js";import"./index-DrfWNKIO.js";import"./chevron-right-Dg8ilEqQ.js";import"./useNotifications-Ds3FsJ-S.js";import"./bell-BsQvpV9Y.js";import"./formatDistanceToNow-CSEz7yxR.js";import"./en-US-Ca8fhmg7.js";import"./endOfMonth-j36o3Juj.js";import"./compass-CszVyNUh.js";import"./shield-DrTblTXN.js";import"./useQuery-DTKw3BQf.js";/**
2 * @license lucide-react v0.462.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 Re=$("Coffee",[["path",{d:"M10 2v2",key:"7u0qdc"}],["path",{d:"M14 2v2",key:"6buw04"}],["path",{d:"M16 8a1 1 0 0 1 1 1v8a4 4 0 0 1-4 4H7a4 4 0 0 1-4-4V9a1 1 0 0 1 1-1h14a4 4 0 1 1 0 8h-1",key:"pwadti"}],["path",{d:"M6 2v2",key:"colzsn"}]]);/**
7 * @license lucide-react v0.462.0 - ISC
8 *
9 * This source code is licensed under the ISC license.
10 * See the LICENSE file in the root directory of this source tree.
11 */const tt=$("Hash",[["line",{x1:"4",x2:"20",y1:"9",y2:"9",key:"4lhtct"}],["line",{x1:"4",x2:"20",y1:"15",y2:"15",key:"vyu0kd"}],["line",{x1:"10",x2:"8",y1:"3",y2:"21",key:"1ggp8o"}],["line",{x1:"16",x2:"14",y1:"3",y2:"21",key:"weycgp"}]]);/**
12 * @license lucide-react v0.462.0 - ISC
13 *
14 * This source code is licensed under the ISC license.
15 * See the LICENSE file in the root directory of this source tree.
16 */const rt=$("Mic",[["path",{d:"M12 2a3 3 0 0 0-3 3v7a3 3 0 0 0 6 0V5a3 3 0 0 0-3-3Z",key:"131961"}],["path",{d:"M19 10v2a7 7 0 0 1-14 0v-2",key:"1vc78b"}],["line",{x1:"12",x2:"12",y1:"19",y2:"22",key:"x3vr5v"}]]);/**
17 * @license lucide-react v0.462.0 - ISC
18 *
19 * This source code is licensed under the ISC license.
20 * See the LICENSE file in the root directory of this source tree.
21 */const at=$("Newspaper",[["path",{d:"M4 22h16a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2H8a2 2 0 0 0-2 2v16a2 2 0 0 1-2 2Zm0 0a2 2 0 0 1-2-2v-9c0-1.1.9-2 2-2h2",key:"7pis2x"}],["path",{d:"M18 14h-8",key:"sponae"}],["path",{d:"M15 18h-5",key:"95g1m2"}],["path",{d:"M10 6h8v4h-8V6Z",key:"smlsk5"}]]);/**
22 * @license lucide-react v0.462.0 - ISC
23 *
24 * This source code is licensed under the ISC license.
25 * See the LICENSE file in the root directory of this source tree.
26 */const nt=$("Printer",[["path",{d:"M6 18H4a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-2",key:"143wyd"}],["path",{d:"M6 9V3a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v6",key:"1itne7"}],["rect",{x:"6",y:"14",width:"12",height:"8",rx:"1",key:"1ue0tg"}]]);/**
27 * @license lucide-react v0.462.0 - ISC
28 *
29 * This source code is licensed under the ISC license.
30 * See the LICENSE file in the root directory of this source tree.
31 */const it=$("Quote",[["path",{d:"M16 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z",key:"rib7q0"}],["path",{d:"M5 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z",key:"1ymkrd"}]]);/**
32 * @license lucide-react v0.462.0 - ISC
33 *
34 * This source code is licensed under the ISC license.
35 * See the LICENSE file in the root directory of this source tree.
36 */const lt=$("Twitter",[["path",{d:"M22 4s-.7 2.1-2 3.4c1.6 10-9.4 17.3-18 11.6 2.2.1 4.4-.6 6-2C3 15.5.5 9.6 3 5c2.2 2.6 5.6 4.1 9 4-.9-4.2 4-6.6 7-3.8 1.1 0 3-1.2 3-1.2z",key:"pff0z6"}]]);var ot=["type","layout","connectNulls","ref"],dt=["key"];function U(s){"@babel/helpers - typeof";return U=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},U(s)}function Fe(s,r){if(s==null)return{};var a=ct(s,r),t,d;
vendor: 9,726 bytes, lines 36-37
36if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(s);for(d=0;d<c.length;d++)t=c[d],!(r.indexOf(t)>=0)&&Object.prototype.propertyIsEnumerable.call(s,t)&&(a[t]=s[t])}return a}function ct(s,r){if(s==null)return{};var a={};for(var t in s)if(Object.prototype.hasOwnProperty.call(s,t)){if(r.indexOf(t)>=0)continue;a[t]=s[t]}return a}function Q(){return Q=Object.assign?Object.assign.bind():function(s){for(var r=1;r<arguments.length;r++){var a=arguments[r];for(var t in a)Object.prototype.hasOwnProperty.call(a,t)&&(s[t]=a[t])}return s},Q.apply(this,arguments)}function $e(s,r){var a=Object.keys(s);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(s);r&&(t=t.filter(function(d){return Object.getOwnPropertyDescriptor(s,d).enumerable})),a.push.apply(a,t)}return a}function O(s){for(var r=1;r<arguments.length;r++){var a=arguments[r]!=null?arguments[r]:{};r%2?$e(Object(a),!0).forEach(function(t){I(s,t,a[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(a)):$e(Object(a)).forEach(function(t){Object.defineProperty(s,t,Object.getOwnPropertyDescriptor(a,t))})}return s}function z(s){return ut(s)||ht(s)||xt(s)||mt()}function mt(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
37In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function xt(s,r){if(s){if(typeof s=="string")return Ae(s,r);var a=Object.prototype.toString.call(s).slice(8,-1);if(a==="Object"&&s.constructor&&(a=s.constructor.name),a==="Map"||a==="Set")return Array.from(s);if(a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return Ae(s,r)}}function ht(s){if(typeof Symbol<"u"&&s[Symbol.iterator]!=null||s["@@iterator"]!=null)return Array.from(s)}function ut(s){if(Array.isArray(s))return Ae(s)}function Ae(s,r){(r==null||r>s.length)&&(r=s.length);for(var a=0,t=new Array(r);a<r;a++)t[a]=s[a];return t}function pt(s,r){if(!(s instanceof r))throw new TypeError("Cannot call a class as a function")}function Be(s,r){for(var a=0;a<r.length;a++){var t=r[a];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(s,rs(t.key),t)}}function ft(s,r,a){return r&&Be(s.prototype,r),a&&Be(s,a),Object.defineProperty(s,"prototype",{writable:!1}),s}function gt(s,r,a){return r=ce(r),jt(s,ts()?Reflect.construct(r,a||[],ce(s).constructor):r.apply(s,a))}function jt(s,r){if(r&&(U(r)==="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return yt(s)}function yt(s){if(s===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s}function ts(){try{var s=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(ts=function(){return!!s})()}function ce(s){return ce=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(a){return a.__proto__||Object.getPrototypeOf(a)},ce(s)}function vt(s,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");s.prototype=Object.create(r&&r.prototype,{constructor:{value:s,writable:!0,configurable:!0}}),Object.defineProperty(s,"prototype",{writable:!1}),r&&Pe(s,r)}function Pe(s,r){return Pe=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,d){return t.__proto__=d,t},Pe(s,r)}function I(s,r,a){return r=rs(r),r in s?Object.defineProperty(s,r,{value:a,enumerable:!0,configurable:!0,writable:!0}):s[r]=a,s}function rs(s){var r=bt(s,"string");return U(r)=="symbol"?r:r+""}function bt(s,r){if(U(s)!="object"||!s)return s;var a=s[Symbol.toPrimitive];if(a!==void 0){var t=a.call(s,r);if(U(t)!="object")return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(s)}var se=function(s){function r(){var a;pt(this,r);for(var t=arguments.length,d=new Array(t),c=0;c<t;c++)d[c]=arguments[c];return a=gt(this,r,[].concat(d)),I(a,"state",{isAnimationFinished:!0,totalLength:0}),I(a,"generateSimpleStrokeDasharray",function(l,n){return"".concat(n,"px ").concat(l-n,"px")}),I(a,"getStrokeDasharray",function(l,n,h){var o=h.reduce(function(_,S){return _+S});if(!o)return a.generateSimpleStrokeDasharray(n,l);for(var p=Math.floor(l/o),j=l%o,m=n-l,x=[],u=0,f=0;u<h.length;f+=h[u],++u)if(f+h[u]>j){x=[].concat(z(h.slice(0,u)),[j-f]);break}var v=x.length%2===0?[0,m]:[m];return[].concat(z(r.repeat(h,p)),z(x),v).map(function(_){return"".concat(_,"px")}).join(", ")}),I(a,"id",Os("recharts-line-")),I(a,"pathRef",function(l){a.mainCurve=l}),I(a,"handleAnimationEnd",function(){a.setState({isAnimationFinished:!0}),a.props.onAnimationEnd&&a.props.onAnimationEnd()}),I(a,"handleAnimationStart",function(){a.setState({isAnimationFinished:!1}),a.props.onAnimationStart&&a.props.onAnimationStart()}),a}return vt(r,s),ft(r,[{key:"componentDidMount",value:function(){if(this.props.isAnimationActive){var t=this.getTotalLength();this.setState({totalLength:t})}}},{key:"componentDidUpdate",value:function(){if(this.props.isAnimationActive){var t=this.getTotalLength();t!==this.state.totalLength&&this.setState({totalLength:t})}}},{key:"getTotalLength",value:function(){var t=this.mainCurve;try{return t&&t.getTotalLength&&t.getTotalLength()||0}catch{return 0}}},{key:"renderErrorBar",value:function(t,d){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var c=this.props,l=c.points,n=c.xAxis,h=c.yAxis,o=c.layout,p=c.children,j=Cs(p,As);if(!j)return null;var m=function(f,v){return{x:f.x,y:f.y,value:f.value,errorVal:qe(f.payload,v)}},x={clipPath:t?"url(#clipPath-".concat(d,")"):null};return D.createElement(ye,x,j.map(function(u){return D.cloneElement(u,{key:"bar-".concat(u.props.dataKey),data:l,xAxis:n,yAxis:h,layout:o,dataPointFormatter:m})}))}},{key:"renderDots",value:function(t,d,c){var l=this.props.isAnimationActive;if(l&&!this.state.isAnimationFinished)return null;var n=this.props,h=n.dot,o=n.points,p=n.dataKey,j=ae(this.props,!1),m=ae(h,!0),x=o.map(function(f,v){var _=O(O(O({key:"dot-".concat(v),r:3},j),m),{},{index:v,cx:f.x,cy:f.y,value:f.value,dataKey:p,payload:f.payload,points:o});return r.renderDotItem(h,_)}),u={clipPath:t?"url(#clipPath-".concat(d?"":"dots-").concat(c,")"):null};return D.createElement(ye,Q({className:"recharts-line-dots",key:"dots"},u),x)}},{key:"renderCurveStatically",value:function(t,d,c,l){var n=this.props,h=n.type,o=n.layout,p=n.connectNulls;n.ref;var j=Fe(n,ot),m=O(O(O({},ae(j,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:d?"url(#clipPath-".concat(c,")"):null,points:t},l),{},{type:h,layout:o,connectNulls:p});return D.createElement(Ps,Q({},m,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(t,d){var c=this,l=this.props,n=l.points,h=l.strokeDasharray,o=l.isAnimationActive,p=l.animationBegin,j=l.animationDuration,m=l.animationEasing,x=l.animationId,u=l.animateNewValues,f=l.width,v=l.height,_=this.state,S=_.prevPoints,T=_.totalLength;return D.createElement(Ts,{begin:p,duration:j,isActive:o,easing:m,from:{t:0},to:{t:1},key:"line-".concat(x),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(C){var w=C.t;if(S){var i=S.length/n.length,g=n.map(function(E,he){var G=Math.floor(he*i);if(S[G]){var q=S[G],W=J(q.x,E.x),as=J(q.y,E.y);return O(O({},E),{},{x:W(w),y:as(w)})}if(u){var ns=J(f*2,E.x),is=J(v/2,E.y);return O(O({},E),{},{x:ns(w),y:is(w)})}return O(O({},E),{},{x:E.x,y:E.y})});return c.renderCurveStatically(g,t,d)}var N=J(0,T),k=N(w),L;if(h){var B="".concat(h).split(/[,\s]+/gim).map(function(E){return parseFloat(E)});L=c.getStrokeDasharray(k,T,B)}else L=c.generateSimpleStrokeDasharray(T,k);return c.renderCurveStatically(n,t,d,{strokeDasharray:L})})}},{key:"renderCurve",value:function(t,d){var c=this.props,l=c.points,n=c.isAnimationActive,h=this.state,o=h.prevPoints,p=h.totalLength;return n&&l&&l.length&&(!o&&p>0||!Ls(o,l))?this.renderCurveWithAnimation(t,d):this.renderCurveStatically(l,t,d)}},{key:"render",value:function(){var t,d=this.props,c=d.hide,l=d.dot,n=d.points,h=d.className,o=d.xAxis,p=d.yAxis,j=d.top,m=d.left,x=d.width,u=d.height,f=d.isAnimationActive,v=d.id;if(c||!n||!n.length)return null;var _=this.state.isAnimationFinished,S=n.length===1,T=Oe("recharts-line",h),C=o&&o.allowDataOverflow,w=p&&p.allowDataOverflow,i=C||w,g=Se(v)?this.id:v,N=(t=ae(l,!1))!==null&&t!==void 0?t:{r:3,strokeWidth:2},k=N.r,L=k===void 0?3:k,B=N.strokeWidth,E=B===void 0?2:B,he=Ds(l)?l:{},G=he.clipDot,q=G===void 0?!0:G,W=L*2+E;return D.createElement(ye,{className:T},C||w?D.createElement("defs",null,D.createElement("clipPath",{id:"clipPath-".concat(g)},D.createElement("rect",{x:C?m:m-x/2,y:w?j:j-u/2,width:C?x:x*2,height:w?u:u*2})),!q&&D.createElement("clipPath",{id:"clipPath-dots-".concat(g)},D.createElement("rect",{x:m-W/2,y:j-W/2,width:x+W,height:u+W}))):null,!S&&this.renderCurve(i,g),this.renderErrorBar(i,g),(S||l)&&this.renderDots(i,q,g),(!f||_)&&Es.renderCallByParent(this.props,n))}}],[{key:"getDerivedStateFromProps",value:function(t,d){return t.animationId!==d.prevAnimationId?{prevAnimationId:t.animationId,curPoints:t.points,prevPoints:d.curPoints}:t.points!==d.curPoints?{curPoints:t.points}:null}},{key:"repeat",value:function(t,d){for(var c=t.length%2!==0?[].concat(z(t),[0]):t,l=[],n=0;n<d;++n)l=[].concat(z(l),z(c));return l}},{key:"renderDotItem",value:function(t,d){var c;if(D.isValidElement(t))c=D.cloneElement(t,d);else if(_s(t))c=t(d);else{var l=d.key,n=Fe(d,dt),h=Oe("recharts-line-dot",typeof t!="boolean"?t.className:"");c=D.createElement(Ss,Q({key:l},n,{className:h}))}return c}}])}(b.PureComponent);I(se,"displayName","Line");I(se,"defaultProps",{xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendT
37ype:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!Is.isSsr,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1,label:!1});I(se,"getComposedData",function(s){var r=s.props,a=s.xAxis,t=s.yAxis,d=s.xAxisTicks,c=s.yAxisTicks,l=s.dataKey,n=s.bandSize,h=s.displayedData,o=s.offset,p=r.layout,j=h.map(function(m,x){var u=qe(m,l);return p==="horizontal"?{x:Me({axis:a,ticks:d,bandSize:n,entry:m,index:x}),y:Se(u)?null:t.scale(u),value:u,payload:m}:{x:Se(u)?null:a.scale(u),y:Me({axis:t,ticks:c,bandSize:n,entry:m,index:x}),value:u,payload:m}});return O({points:j,layout:p},o)});var Nt=Je({chartName:"LineChart",GraphicalChild:se,axisComponents:[{axisType:"xAxis",AxisComp:Z},{axisType:"yAxis",AxisComp:X}],formatAxisMap:Ze}),We=Je({chartName:"BarChart",GraphicalChild:Ce,defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"xAxis",AxisComp:Z},{axisType:"yAxis",AxisComp:X}],formatAxisMap:Ze});function wt(s){const[r,a]=b.useState(null),[t,d]=b.useState(!0),[c,l]=b.useState(null);return b.useEffect(()=>{if(!s)return;let n=!1;async function h(){d(!0),l(null);try{const{data:o,error:p}=await H.functions.invoke("generate-pathway-insights",{body:{pathway_id:s}});if(n)return;p?(console.error("Insights fetch error:",p),l("Failed to load insights")):a(o)}catch(o){n||(console.error("Insights error:",o),l("Failed to load insights"))}finally{n||d(!1)}}return h(),()=>{n=!0}},[s]),{insights:r,isLoading:t,error:c}}function kt({pathway:s,totalJobs:r,insights:a}){var S,T,C,w,i;const t=s.transition_difficulty?Ue[s.transition_difficulty]:null,d=s.demand_level?bs[s.demand_level]:null,l=(((S=a==null?void 0:a.market_data)==null?void 0:S.salary_histogram)||[]).map(g=>g.salary).sort((g,N)=>g-N),n=l.length>0?l[0]:null,h=l.length>0?l[l.length-1]:null,o=s.salary_min??n,p=s.salary_max??h,j=s.salary_change_pct,m=o!==null||p!==null,x=((C=(T=a==null?void 0:a.ai_content)==null?void 0:T.career_progression)==null?void 0:C.career_ladder)||[],u=((w=x.find(g=>g.current))==null?void 0:w.salary)||((i=x[Math.floor(x.length/2)])==null?void 0:i.salary)||null,f=g=>`£${(g/1e3).toFixed(0)}k`,v=r||0,_=me(s.occupation_title);return e.jsxs(P.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"card-elevated p-4 md:p-8 bg-gradient-to-br from-primary/5 to-primary/10",children:[e.jsxs("div",{className:"flex flex-wrap items-start justify-between gap-4 mb-6",children:[e.jsxs("div",{children:[e.jsx("h1",{className:"text-2xl md:text-4xl font-bold text-foreground mb-2",children:_}),e.jsx("p",{className:"text-muted-foreground",children:s.occupation_description||"Explore this career pathway and see if it's right for you"})]}),s.match_score&&t&&e.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[e.jsxs(y,{className:"bg-success text-success-foreground px-3 py-1.5 md:px-4 md:py-2 text-sm md:text-base font-semibold",children:[e.jsx(Ye,{className:"w-4 h-4 mr-1 md:mr-2"}),s.match_score,"% Match"]}),e.jsx(y,{variant:"outline",className:t.color+" px-3 py-1.5 md:px-4 md:py-2",children:t.label})]})]}),e.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-4",children:[e.jsxs("div",{className:"bg-card rounded-xl p-3 md:p-4 border border-border",children:[e.jsxs("div",{className:"flex items-center gap-2 text-muted-foreground mb-2",children:[e.jsx(De,{className:"w-4 h-4"}),e.jsx("span",{className:"text-sm",children:"Salary Range"})]}),e.jsx("p",{className:"text-lg md:text-xl font-bold text-foreground",children:o!==null&&p!==null&&o!==p?`${f(o)} – ${f(p)}`:u||(m?`Avg ${f(o??p)}`:"Not available")}),(()=>{const g=o!==null&&p!==null&&o!==p;return g&&j!==null&&j!==void 0?e.jsxs("p",{className:`text-sm ${j>=0?"text-success":"text-destructive"}`,children:[j>=0?"+":"",j.toFixed(0),"% vs current"]}):g?e.jsx("p",{className:"text-sm text-muted-foreground",children:"UK market range"}):u?e.jsx("p",{className:"text-sm text-muted-foreground",children:"Estimated UK range"}):m?e.jsx("p",{className:"text-sm text-muted-foreground",children:"UK market average"}):e.jsx("p",{className:"text-sm text-muted-foreground",children:"No live market data"})})()]}),e.jsxs("div",{className:"bg-card rounded-xl p-3 md:p-4 border border-border",children:[e.jsxs("div",{className:"flex items-center gap-2 text-muted-foreground mb-2",children:[e.jsx(ee,{className:"w-4 h-4"}),e.jsx("span",{className:"text-sm",children:"Market Demand"})]}),e.jsxs("p",{className:`text-lg md:text-xl font-bold ${(d==null?void 0:d.color)||"text-foreground"}`,children:[(d==null?void 0:d.label)||"Unknown"," Demand"]}),e.jsx("p",{className:"text-sm text-muted-foreground",children:"UK job market"})]}),e.jsxs("div",{className:"bg-card rounded-xl p-3 md:p-4 border border-border",children:[e.jsxs("div",{className:"flex items-center gap-2 text-muted-foreground mb-2",children:[e.jsx(Ns,{className:"w-4 h-4"}),e.jsx("span",{className:"text-sm",children:"Transition"})]}),e.jsx("p",{className:"text-lg md:text-xl font-bold text-foreground",children:(t==null?void 0:t.label)||"Unknown"}),e.jsx("p",{className:"text-sm text-muted-foreground",children:"Based on your skills"})]}),e.jsxs("div",{className:"bg-card rounded-xl p-3 md:p-4 border border-border",children:[e.jsxs("div",{className:"flex items-center gap-2 text-muted-foreground mb-2",children:[e.jsx(Ee,{className:"w-4 h-4"}),e.jsx("span",{className:"text-sm",children:"Jobs Available"})]}),e.jsx("p",{className:"text-lg md:text-xl font-bold text-primary",children:v>
370?`${v.toLocaleString()}+ jobs`:"Limited live listings"}),e.jsx("p",{className:"text-sm text-muted-foreground",children:v>0?"Updated today":"See other career pathway jobs"})]})]})]})}function _t({pathway:s,userProfile:r,currentJobTitle:a}){var l,n,h;const t=s.transition_difficulty?Ue[s.transition_difficulty]:null,d=()=>{switch(s.transition_difficulty){case"easy":return"3-6 months";case"moderate":return"6-12 months";case"challenging":return"12-18 months";default:return"6-12 months"}},c=()=>{const o=s.match_score||0;return o>=90?"This role is an excellent match for your skills and experience. You have most of the key competencies already.":o>=75?"This role aligns well with your background. You'll need to develop a few additional skills to excel.":o>=60?"This role is a good stretch opportunity. While you have foundational skills, you'll need dedicated upskilling.":"This role represents a significant career change. It will require substantial skill development but offers exciting new opportunities."};return e.jsxs(P.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.1},children:[e.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[e.jsx("div",{className:"w-10 h-10 rounded-xl bg-primary/10 flex items-center justify-center",children:e.jsx(Te,{className:"w-5 h-5 text-primary"})}),e.jsx("h2",{className:"text-xl md:text-2xl font-bold text-foreground",children:"Why This Role Fits You"})]}),e.jsxs("div",{className:"card-elevated p-4 md:p-6 space-y-6",children:[e.jsx("div",{children:e.jsxs("p",{className:"text-muted-foreground leading-relaxed",children:[c(),a&&e.jsxs("span",{className:"block mt-2",children:["Your experience as a ",e.jsx("strong",{className:"text-foreground",children:a})," gives you a solid foundation for this transition."]})]})}),s.skills_transferable&&s.skills_transferable.length>0&&e.jsxs("div",{children:[e.jsxs("h3",{className:"font-semibold text-foreground mb-3 flex items-center gap-2",children:[e.jsx(_e,{className:"w-4 h-4 text-success"}),"Key Transferable Skills"]}),e.jsx("div",{className:"flex flex-wrap gap-2",children:s.skills_transferable.map(o=>e.jsx(y,{className:"bg-success/10 text-success border-success/20",children:o},o))})]}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4 pt-4 border-t border-border",children:[e.jsxs("div",{className:"p-4 rounded-xl bg-secondary/30",children:[e.jsx("p",{className:"text-sm text-muted-foreground mb-2",children:"Transition Difficulty"}),e.jsx("div",{className:"flex items-center gap-2",children:t&&e.jsxs(e.Fragment,{children:[e.jsx("div",{className:`w-3 h-3 rounded-full ${t.bgColor}`}),e.jsx("span",{className:"font-semibold text-foreground",children:t.label})]})}),e.jsx(Ge,{value:s.transition_difficulty==="easy"?33:s.transition_difficulty==="moderate"?66:100,className:"mt-2 h-2"})]}),e.jsxs("div",{className:"p-4 rounded-xl bg-secondary/30",children:[e.jsx("p",{className:"text-sm text-muted-foreground mb-2",children:"Estimated Timeline"}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(xe,{className:"w-4 h-4 text-primary"}),e.jsx("span",{className:"font-semibold text-foreground",children:d()})]}),e.jsx("p",{className:"text-xs text-muted-foreground mt-2",children:"With focused effort"})]}),e.jsxs("div",{className:"p-4 rounded-xl bg-secondary/30",children:[e.jsx("p",{className:"text-sm text-muted-foreground mb-2",children:"Skills Overlap"}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("span",{className:"text-2xl font-bold text-primary",children:((l=s.skills_transferable)==null?void 0:l.length)||0}),e.jsxs("span",{className:"text-muted-foreground",children:["/ ",(((n=s.skills_transferable)==null?void 0:n.length)||0)+(((h=s.skills_to_acquire)==null?void 0:h.length)||0)," skills"]})]}),e.jsx("p",{className:"text-xs text-muted-foreground mt-2",children:"You already have"})]})]}),e.jsxs("div",{className:"flex items-center justify-between pt-4 border-t border-border",children:[e.jsx("p",{className:"text-sm text-muted-foreground",children:"Ready to make this transition?"}),e.jsxs("a",{href:"#skills-roadmap",className:"inline-flex items-center gap-2 text-primary font-medium hover:underline",children:["View your skills roadmap",e.jsx(K,{className:"w-4 h-4"})]})]})]})]})}
37function Y({icon:s,title:r,description:a="Generating personalised insights...",skeletonCount:t=3,skeletonHeight:d="h-20",layout:c="rows"}){const[l,n]=b.useState(0);return b.useEffect(()=>{const h=setInterval(()=>{n(o=>o>=90?o:o+Math.random()*8+2)},600);return()=>clearInterval(h)},[]),e.jsxs(P.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},children:[e.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[e.jsx("div",{className:"w-10 h-10 rounded-xl bg-primary/10 flex items-center justify-center",children:s}),e.jsx("h2",{className:"text-xl md:text-2xl font-bold text-foreground",children:r})]}),e.jsxs("div",{className:"card-elevated p-4 md:p-6",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[e.jsx(He,{className:"w-4 h-4 text-primary animate-spin shrink-0"}),e.jsxs("div",{className:"flex-1",children:[e.jsx("p",{className:"text-sm text-muted-foreground mb-2",children:a}),e.jsx(Ge,{value:l,className:"h-1.5"})]})]}),c==="grid"?e.jsx("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-3 md:gap-4 mt-4",children:[...Array(t)].map((h,o)=>e.jsx(V,{className:`${d} rounded-xl`,style:{animationDelay:`${o*150}ms`}},o))}):c==="cards"?e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-3 md:gap-4 mt-4",children:[...Array(t)].map((h,o)=>e.jsx(V,{className:`${d} rounded-xl`,style:{animationDelay:`${o*150}ms`}},o))}):e.jsx("div",{className:"space-y-3 mt-4",children:[...Array(t)].map((h,o)=>e.jsx(V,{className:`${d} rounded-lg`,style:{animationDelay:`${o*150}ms`}},o))})]})]})}const ze=["hsl(var(--primary))","hsl(var(--success))","hsl(var(--warning))","hsl(var(--accent))","hsl(var(--muted-foreground))","hsl(var(--secondary))"];function St({pathway:s,insights:r,insightsLoading:a}){var C,w;const[t,d]=b.useState("overview"),c=me(s.occupation_title),l=(r==null?void 0:r.market_data)||{},n=(C=r==null?void 0:r.ai_content)==null?void 0:C.market_insights,h=l.total_jobs||0,o=l.remote_percentage||0,p=(n==null?void 0:n.growth_rate)||0,j=l.salary_histogram||[],m=s.salary_avg||(j.length>0?(w=j[Math.floor(j.length/2)])==null?void 0:w.salary:0)||0,x=(l.location_distribution||[]).map((i,g)=>({...i,jobs:i.percentage,color:ze[g%ze.length]})),u=(n==null?void 0:n.top_sectors)||[],f=(n==null?void 0:n.hiring_months)||[],v=(n==null?void 0:n.top_skills_premium)||[],_=(l.historical_trend||[]).map(i=>({year:i.month,jobs:i.count})),S=(n==null?void 0:n.best_month)||"September",T=(n==null?void 0:n.best_month_tip)||"";return a?e.jsx(Y,{icon:e.jsx(Ie,{className:"w-5 h-5 text-primary"}),title:"Labour Market Overview",description:"Fetching live market data and trends...",skeletonCount:4,skeletonHeight:"h-24",layout:"grid"}):e.jsxs(P.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.2},children:[e.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[e.jsx("div",{className:"w-10 h-10 rounded-xl bg-primary/10 flex items-center justify-center",children:e.jsx(Ie,{className:"w-5 h-5 text-primary"})}),e.jsx("h2",{className:"text-xl md:text-2xl font-bold text-foreground",children:"Labour Market Overview"})]}),e.jsxs("div",{className:"card-elevated p-4 md:p-6",children:[e.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-4 mb-8",children:[e.jsxs("div",{className:"text-center p-4 rounded-xl bg-secondary/30",children:[e.jsx(ee,{className:"w-6 h-6 text-success mx-auto mb-2"}),e.jsx("p",{className:"text-xl md:text-2xl font-bold text-foreground",children:p>0?`+${p}%`:"—"}),e.jsx("p",{className:"text-sm text-muted-foreground",children:"Projected Growth"})]}),e.jsxs("div",{className:"text-center p-4 rounded-xl bg-secondary/30",children:[e.jsx(Ee,{className:"w-6 h-6 text-primary mx-auto mb-2"}),e.jsx("p",{className:"text-xl md:text-2xl font-bold text-foreground",children:h>0?`${h.toLocaleString()}+`:"—"}),e.jsx("p",{className:"text-sm text-muted-foreground",children:"Active Jobs"})]}),e.jsxs("div",{className:"text-center p-4 rounded-xl bg-secondary/30",children:[e.jsx(gs,{className:"w-6 h-6 text-warning mx-auto mb-2"}),e.jsxs("p",{className:"text-xl md:text-2xl font-bold text-foreground",children:[o,"%"]}),e.jsx("p",{className:"text-sm text-muted-foreground",children:"Remote Available"})]}),e.jsxs("div",{className:"text-center p-4 rounded-xl bg-secondary/30",children:[e.jsx(De,{className:"w-6 h-6 text-success mx-auto mb-2"}),e.jsxs("p",{className:"text-xl md:text-2xl font-bold text-foreground",children:["£",m>0?(m/1e3).toFixed(0)+"k":"—"]}),e.jsx("p",{className:"text-sm text-muted-foreground",children:"Avg Salary"})]})]}),e.jsxs(ws,{value:t,onValueChange:d,children:[e.jsxs(ks,{className:"grid grid-cols-4 mb-6 w-full h-auto",children:[e.jsx(te,{value:"overview",className:"text-xs md:text-sm px-1 md:px-3 py-2",children:"Growth"}),e.jsx(te,{value:"salary",className:"text-xs md:text-sm px-1 md:px-3 py-2",children:"Salary"}),e.jsx(te,{value:"location",className:"text-xs md:text-sm px-1 md:px-3 py-2",children:"Location"}),e.jsx(te,{value:"timing",className:"text-xs md:text-sm px-1 md:px-3 py-2",children:"Best Time"})]}),e.jsxs(re,{value:"overview",className:"space-y-6",children:[e.jsxs("div",{children:[e.jsx("h3",{className:"font-semibold text-foreground mb-4",children:"Job Listing Trends"}),_.length>0?e.jsx("div",{className:"h-48 md:h-64",children:e.jsx(ne,{width:"100%",height:"100%",children:e.jsxs(Nt,{data:_,children:[e.jsx(ve,{strokeDasharray:"3 3",stroke:"hsl(var(--border))"}),e.jsx(Z,{dataKey:"year",stroke:"hsl(var(--muted-foreground))"}),e.jsx(X,{stroke:"hsl(var(--muted-foreground))"}
37),e.jsx(ie,{contentStyle:{backgroundColor:"hsl(var(--card))",border:"1px solid hsl(var(--border))",borderRadius:"8px"}}),e.jsx(se,{type:"monotone",dataKey:"jobs",stroke:"hsl(var(--primary))",strokeWidth:3,dot:{fill:"hsl(var(--primary))"}})]})})}):e.jsx("p",{className:"text-sm text-muted-foreground py-8 text-center",children:"Historical trend data not available for this role."}),p>0&&e.jsxs("p",{className:"text-sm text-muted-foreground mt-4",children:["The market for ",c," roles is projected to grow by ",p,"% over the coming years."]})]}),u.length>0&&e.jsxs("div",{className:"pt-6 border-t border-border",children:[e.jsx("h3",{className:"font-semibold text-foreground mb-4",children:"Top Hiring Industries"}),e.jsx("div",{className:"space-y-3",children:u.map(i=>e.jsxs("div",{className:"flex items-center gap-3 md:gap-4",children:[e.jsx("span",{className:"w-20 md:w-28 text-xs md:text-sm text-muted-foreground truncate",children:i.sector}),e.jsx("div",{className:"flex-1 bg-secondary/30 rounded-full h-2.5 md:h-3",children:e.jsx("div",{className:"bg-primary h-2.5 md:h-3 rounded-full transition-all duration-500",style:{width:`${i.percentage}%`}})}),e.jsxs("span",{className:"w-10 md:w-12 text-xs md:text-sm font-medium text-foreground text-right",children:[i.percentage,"%"]})]},i.sector))})]})]}),e.jsxs(re,{value:"salary",className:"space-y-6",children:[e.jsxs("div",{children:[e.jsx("h3",{className:"font-semibold text-foreground mb-4",children:"Salary by Experience Level"}),j.length>0?e.jsx("div",{className:"h-48 md:h-64",children:e.jsx(ne,{width:"100%",height:"100%",children:e.jsxs(We,{data:j,children:[e.jsx(ve,{strokeDasharray:"3 3",stroke:"hsl(var(--border))"}),e.jsx(Z,{dataKey:"level",stroke:"hsl(var(--muted-foreground))"}),e.jsx(X,{stroke:"hsl(var(--muted-foreground))"}),e.jsx(ie,{contentStyle:{backgroundColor:"hsl(var(--card))",border:"1px solid hsl(var(--border))",borderRadius:"8px"},formatter:i=>[`£${(i/1e3).toFixed(0)}k`,"Salary"]}),e.jsx(Ce,{dataKey:"salary",fill:"hsl(var(--primary))",radius:[4,4,0,0]})]})})}):e.jsx("p",{className:"text-sm text-muted-foreground py-8 text-center",children:"Salary distribution data not available."})]}),v.length>0&&e.jsxs("div",{className:"pt-6 border-t border-border",children:[e.jsx("h3",{className:"font-semibold text-foreground mb-4",children:"Skills with Highest Salary Premium"}),e.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-3 md:gap-4",children:v.map(i=>e.jsxs("div",{className:"flex items-center justify-between p-3 rounded-lg bg-secondary/30",children:[e.jsx("span",{className:"text-sm text-foreground",children:i.skill}),e.jsx(y,{className:"bg-success/10 text-success",children:i.premium})]},i.skill))})]})]}),e.jsx(re,{value:"location",className:"space-y-6",children:x.length>0?e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[e.jsxs("div",{children:[e.jsx("h3",{className:"font-semibold text-foreground mb-4",children:"Geographic Distribution"}),e.jsx("div",{className:"h-48 md:h-64",children:e.jsx(ne,{width:"100%",height:"100%",children:e.jsxs(Rs,{children:[e.jsx(Fs,{data:x,cx:"50%",cy:"50%",innerRadius:60,outerRadius:100,paddingAngle:2,dataKey:"jobs",children:x.map((i,g)=>e.jsx(Ms,{fill:i.color},`cell-${g}`))}),e.jsx(ie,{contentStyle:{backgroundColor:"hsl(var(--card))",border:"1px solid hsl(var(--border))",borderRadius:"8px"},formatter:i=>[`${i}%`,"Jobs"]})]})})})]}),e.jsxs("div",{children:[e.jsx("h3",{className:"font-semibold text-foreground mb-4",children:"Top Locations"}),e.jsx("div",{className:"space-y-3",children:x.slice(0,5).map((i,g)=>e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"w-8 h-8 rounded-full flex items-center justify-center text-sm font-bold",style:{backgroundColor:i.color,color:"white"},children:g+1}),e.jsxs("div",{className:"flex-1",children:[e.jsx("p",{className:"font-medium text-foreground",children:i.region}),e.jsxs("p",{className:"text-sm text-muted-foreground",children:[i.jobs,"% of jobs"]})]}),e.jsx($s,{className:"w-4 h-4 text-muted-foreground"})]},i.region))})]})]}):e.jsx("p",{className:"text-sm text-muted-foreground py-8 text-center",children:"Location data not available."})}),e.jsx(re,{value:"timing",className:"space-y-6",children:e.jsxs("div",{children:[e.jsx("h3",{className:"font-semibold text-foreground mb-4",children:"Seasonal Hiring Patterns"}),f.length>0?e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"h-48 md:h-64",children:e.jsx(ne,{width:"100%",height:"100%",children:e.jsxs(We,{data:f,children:[e.jsx(ve,{strokeDasharray:"3 3",stroke:"hsl(var(--border))"}),e.jsx(Z,{dataKey:"month",stroke:"hsl(var(--muted-foreground))"}),e.jsx(X,{stroke:"hsl(var(--muted-foreground))"}
37),e.jsx(ie,{contentStyle:{backgroundColor:"hsl(var(--card))",border:"1px solid hsl(var(--border))",borderRadius:"8px"}}),e.jsx(Ce,{dataKey:"hires",fill:"hsl(var(--primary))",radius:[4,4,0,0]})]})})}),e.jsxs("div",{className:"flex items-center gap-4 mt-4 p-4 rounded-lg bg-success/10",children:[e.jsx(ee,{className:"w-6 h-6 text-success"}),e.jsxs("div",{children:[e.jsxs("p",{className:"font-semibold text-foreground",children:["Best time to apply: ",S]}),e.jsx("p",{className:"text-sm text-muted-foreground",children:T})]})]})]}):e.jsx("p",{className:"text-sm text-muted-foreground py-8 text-center",children:"Hiring pattern data not available."})]})})]})]})]})}function Ct({pathway:s,insights:r,insightsLoading:a}){var m;const[t,d]=b.useState(!1),c=(m=r==null?void 0:r.ai_content)==null?void 0:m.reality_check,l=(c==null?void 0:c.responsibilities)||[],n=(c==null?void 0:c.quotes)||[],h=(c==null?void 0:c.challenges)||[],o=(c==null?void 0:c.work_life_balance)||{score:0,description:""},p=(c==null?void 0:c.team_structure)||{report_to:"",direct_reports:"",cross_functional:[]},j=x=>e.jsxs("div",{className:"flex items-center gap-1.5 md:gap-2 flex-wrap",children:[[...Array(10)].map((u,f)=>e.jsx("div",{className:`w-2.5 h-2.5 md:w-3 md:h-3 rounded-full transition-colors ${f<x?"bg-success":"bg-muted"}`},f)),e.jsxs("span",{className:"ml-1 md:ml-2 text-sm font-medium text-foreground",children:[x,"/10"]})]});return a?e.jsx(Y,{icon:e.jsx(Re,{className:"w-5 h-5 text-primary"}),title:"A Day in the Life",description:"Building a realistic picture of this role...",skeletonCount:4,skeletonHeight:"h-16"}):c?e.jsxs(P.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.3},children:[e.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[e.jsx("div",{className:"w-10 h-10 rounded-xl bg-primary/10 flex items-center justify-center",children:e.jsx(Re,{className:"w-5 h-5 text-primary"})}),e.jsx("h2",{className:"text-xl md:text-2xl font-bold text-foreground",children:"A Day in the Life"})]}),e.jsxs("div",{className:"card-elevated p-4 md:p-6 space-y-8",children:[l.length>0&&e.jsx("div",{children:e.jsxs(Xe,{open:t,onOpenChange:d,children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("h3",{className:"font-semibold text-foreground flex items-center gap-2",children:[e.jsx(xe,{className:"w-4 h-4 text-primary"}),"Typical Daily Responsibilities"]}),l.length>4&&e.jsx(Qe,{asChild:!0,children:e.jsx(A,{variant:"ghost",size:"sm",children:t?e.jsxs(e.Fragment,{children:["Show Less ",e.jsx(Ne,{className:"w-4 h-4 ml-1"})]}):e.jsxs(e.Fragment,{children:["Show All ",e.jsx(we,{className:"w-4 h-4 ml-1"})]})})})]}),e.jsx("div",{className:"mt-4 space-y-2",children:l.slice(0,4).map((x,u)=>e.jsxs("div",{className:"flex items-start gap-3 p-3 rounded-lg bg-secondary/30",children:[e.jsx("div",{className:"w-6 h-6 rounded-full bg-primary/10 text-primary flex items-center justify-center text-sm font-medium shrink-0",children:u+1}),e.jsx("p",{className:"text-sm text-foreground",children:x})]},u))}),e.jsx(es,{children:e.jsx("div",{className:"mt-2 space-y-2",children:l.slice(4).map((x,u)=>e.jsxs("div",{className:"flex items-start gap-3 p-3 rounded-lg bg-secondary/30",children:[e.jsx("div",{className:"w-6 h-6 rounded-full bg-primary/10 text-primary flex items-center justify-center text-sm font-medium shrink-0",children:u+5}),e.jsx("p",{className:"text-sm text-foreground",children:x})]},u+4))})})]})}),n.length>0&&e.jsxs("div",{className:"pt-6 border-t border-border",children:[e.jsxs("h3",{className:"font-semibold text-foreground flex items-center gap-2 mb-4",children:[e.jsx(Bs,{className:"w-4 h-4 text-destructive"}),"What People Love About This Role"]}),e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:n.map((x,u)=>e.jsxs("div",{className:"p-4 rounded-xl bg-secondary/30 relative",children:[e.jsx(it,{className:"w-8 h-8 text-primary/20 absolute top-2 left-2"}),e.jsxs("p",{className:"text-sm text-foreground italic mb-3 relative z-10 pl-4",children:['"',x.text,'"']}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("div",{className:"w-8 h-8 rounded-full bg-primary/10 flex items-center justify-center text-primary font-medium text-sm",children:x.author.charAt(0)}),e.jsxs("div",{children:[e.jsx("p",{className:"text-sm font-medium text-foreground",children:x.author}),e.jsx("p",{className:"text-xs text-muted-foreground",children:x.role})]})]})]},u))})]}),h.length>0&&e.jsxs("div",{className:"pt-6 border-t border-border",children:[e.jsxs("h3",{className:"font-semibold text-foreground flex items-center gap-2 mb-4",children:[e.jsx(ls,{className:"w-4 h-4 text-warning"}),"Common Challenges (Honest Perspective)"]}),e.jsx("div",{className:"flex flex-wrap gap-2",children:h.map((x,u)=>e.jsx(y,{variant:"outline",className:"bg-warning/5 text-warning border-warning/20 py-2 px-3",children:x},u))})]}),e.jsxs("div",{className:"pt-6 border-t border-border grid grid-cols-1 md:grid-cols-2 gap-6",children:[o.score>0&&e.jsxs("div",{className:"p-4 rounded-xl bg-secondary/30",children:[e.jsx("h4",{className:"font-semibold text-foreground mb-3",children:"Work-Life Balance"}),j(o.score),e.jsx("p",{className:"text-sm text-muted-foreground mt-3",children:o.description})]}),p.report_to&&e.jsxs("div",{className:"p-4 rounded-xl bg-secondary/30",children:[e.jsxs("h4",{className:"font-semibold text-foreground flex items-center gap-2 mb-3",children:[e.jsx(de,{className:"w-4 h-4 text-primary"}),"Team Structure"]}),e.jsxs("div",{className:"space-y-2 text-sm",children:[e.jsxs("div",{className:"flex justify-between",children:[e.jsx("span",{className:"text-muted-foreground",children:"Report to:"}),e.jsx("span",{className:"font-medium text-foreground",children:p.report_to})]}),e.jsxs("div",{className:"flex justify-between",children:[e.jsx("span",{className:"text-muted-foreground",children:"Direct reports:"}),e.jsx("span",{className:"font-medium text-foreground",children:p.direct_reports})]}),p.cross_functional.length>0&&e.jsxs("div",{className:"pt-2 border-t border-border",children:[e.jsx("span",{className:"text-muted-foreground block mb-2",children:"Work closely with:"}),e.jsx("div",{className:"flex flex-wrap gap-1",children:p.cross_functional.map(x=>e.jsx(y,{variant:"secondary",className:"text-xs",children:x},x))})]})]})]})]})]})]}):null}const At=s=>[{platform:"LinkedIn Learning",course:`${s} Foundations`,url:"https://linkedin.com/learning",duration:"4 hours"},{platform:"Coursera",course:`${s} Professional Certificate`,url:"https://coursera.org",duration:"20 hours"}];function Pt({pathway:s,insights:r}){var m;const[a,t]=b.useState({}),[d,c]=b.useState(!1),l=x=>{t(u=>({...u,[x]:!u[x]}))},n=s.skills_transferable||[],h=s.skills_to_acquire||[],o=((m=r==null?void 0:r.ai_content)==null?void 0:m.nice_to_have_skills)||[],p=n.length+h.length+o.length,j=p>0?Math.round(n.length/p*100):0;return e.jsxs(P.div,{initial:{opacity:0,y:20}
37,animate:{opacity:1,y:0},transition:{delay:.4},children:[e.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[e.jsx("div",{className:"w-10 h-10 rounded-xl bg-primary/10 flex items-center justify-center",children:e.jsx(Ws,{className:"w-5 h-5 text-primary"})}),e.jsx("h2",{className:"text-xl md:text-2xl font-bold text-foreground",children:"Your Skills Roadmap"})]}),e.jsxs("div",{className:"card-elevated p-4 md:p-6 space-y-8",children:[e.jsxs("div",{className:"flex items-center justify-between p-4 rounded-xl bg-secondary/30",children:[e.jsxs("div",{children:[e.jsx("p",{className:"text-sm text-muted-foreground",children:"Overall skill readiness"}),e.jsxs("p",{className:"text-2xl font-bold text-foreground",children:[j,"% ready"]})]}),e.jsxs("div",{className:"text-right",children:[e.jsx("p",{className:"text-sm text-muted-foreground",children:"Skills you have"}),e.jsxs("p",{className:"text-lg font-semibold text-success",children:[n.length," / ",p]})]})]}),e.jsxs("div",{className:"flex flex-wrap gap-4 text-sm",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("div",{className:"w-3 h-3 rounded-full bg-success"}),e.jsx("span",{className:"text-muted-foreground",children:"Skills you have"})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("div",{className:"w-3 h-3 rounded-full bg-warning"}),e.jsx("span",{className:"text-muted-foreground",children:"Skills to develop"})]}),o.length>0&&e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("div",{className:"w-3 h-3 rounded-full bg-muted"}),e.jsx("span",{className:"text-muted-foreground",children:"Nice to have"})]})]}),n.length>0&&e.jsxs("div",{children:[e.jsxs("h3",{className:"font-semibold text-foreground flex items-center gap-2 mb-4",children:[e.jsx(_e,{className:"w-5 h-5 text-success"}),"Skills You Already Have",e.jsx(y,{className:"bg-success/10 text-success ml-2",children:n.length})]}),e.jsx("div",{className:"flex flex-wrap gap-2",children:n.map(x=>e.jsxs(y,{className:"bg-success/10 text-success border border-success/20 px-4 py-2 text-sm hover:bg-success/20 hover:text-success",children:[e.jsx(_e,{className:"w-3 h-3 mr-2"}),x]},x))})]}),h.length>0&&e.jsxs("div",{className:"pt-6 border-t border-border",children:[e.jsxs("h3",{className:"font-semibold text-foreground flex items-center gap-2 mb-4",children:[e.jsx(zs,{className:"w-5 h-5 text-warning"}),"Skills to Develop",e.jsx(y,{className:"bg-warning/10 text-warning ml-2",children:h.length})]}),e.jsx("div",{className:"space-y-3",children:(d?h:h.slice(0,4)).map((x,u)=>e.jsx(Xe,{open:a[x],onOpenChange:()=>l(x),children:e.jsxs("div",{className:"rounded-xl border border-warning/20 bg-warning/5 overflow-hidden",children:[e.jsx(Qe,{asChild:!0,children:e.jsxs("button",{className:"w-full p-4 flex items-center justify-between hover:bg-warning/10 transition-colors",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsxs("div",{className:"w-8 h-8 rounded-full bg-warning/20 text-warning flex items-center justify-center font-semibold text-sm",children:["P",u+1]}),e.jsx("span",{className:"font-medium text-foreground",children:x})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(y,{variant:"outline",className:"text-xs",children:"Priority"}),a[x]?e.jsx(Ne,{className:"w-4 h-4 text-muted-foreground"}):e.jsx(we,{className:"w-4 h-4 text-muted-foreground"})]})]})}),e.jsx(es,{children:e.jsxs("div",{className:"px-4 pb-4 pt-2 border-t border-warning/20",children:[e.jsx("p",{className:"text-sm text-muted-foreground mb-4",children:"How to acquire this skill:"}),e.jsx("div",{className:"space-y-2",children:At(x).map((f,v)=>e.jsxs("a",{href:f.url,target:"_blank",rel:"noopener noreferrer",className:"flex items-center justify-between p-3 rounded-lg bg-card hover:bg-secondary/50 transition-colors border border-border",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx(ke,{className:"w-4 h-4 text-primary"}),e.jsxs("div",{children:[e.jsx("p",{className:"text-sm font-medium text-foreground",children:f.course}),e.jsxs("p",{className:"text-xs text-muted-foreground",children:[f.platform," · ",f.duration]})]})]}),e.jsx(R,{className:"w-4 h-4 text-muted-foreground"})]},v))})]})})]})},x))}),h.length>4&&e.jsxs(A,{variant:"ghost",onClick:()=>c(!d),className:"mt-4 w-full",children:[d?"Show Less":`Show All ${h.length} Skills`,d?e.jsx(Ne,{className:"w-4 h-4 ml-2"}):e.jsx(we,{className:"w-4 h-4 ml-2"})]})]}),o.length>0&&e.jsxs("div",{className:"pt-6 border-t border-border",children:[e.jsxs("h3",{className:"font-semibold text-foreground flex items-center gap-2 mb-4",children:[e.jsx(Hs,{className:"w-5 h-5 text-muted-foreground"}),"Nice to Have",e.jsx(y,{variant:"secondary",className:"ml-2",children:o.length})]}),e.jsx("div",{className:"flex flex-wrap gap-2",children:o.map(x=>e.jsx(y,{variant:"secondary",className:"px-4 py-2 text-sm",children:x},x))}),e.jsx("p",{className:"text-sm text-muted-foreground mt-3",children:"These skills can help you stand out but aren't essential for entry-level positions."})]})]})]})}function Tt({pathway:s,insights:r,insightsLoading:a}){var w;const{user:t}=Ve(),d=Le(),[c,l]=b.useState(new Set),[n,h]=b.useState(new Set),[o,p]=b.useState("all"),[j,m]=b.useState("all"),[x,u]=b.useState("all"),f=(((w=r==null?void 0:r.ai_content)==null?void 0:w.learning_resources)||[]).map(i=>({id:i.id,title:i.title,provider:i.provider,duration:i.duration,cost:i.cost,cost_value:i.cost_value,format:i.format,rating:i.rating,skill_addressed:i.skill_addressed,certification:i.certification,recommended:i.recommended,url:i.url}));b.useEffect(()=>{if(!t||f.length===0)return;const i=f.map(g=>g.title);H.from("user_learning_plan").select("title").eq("user_id",t.id).eq("pathway_id",s.id).in("title",i).then(({data:g})=>{if(g){const N=new Set;for(const k of g){const L=f.find(B=>B.title===k.title);L&&N.add(L.id)}l(N)}})},[t,f.length,s.id]);const v=f.filter(i=>!(o==="free"&&i.cost_value>0||o==="paid"&&i.cost_value===0||x==="yes"&&!i.certification||x==="no"&&i.certification||j==="short"&&!i.duration.includes("hour")&&!i.duration.includes("week")||j==="long"&&(i.duration.includes("hour")||i.duration.includes("week")&&parseInt(i.duration)<4))),_=v.filter(i=>i.recommended),S=v.filter(i=>!i.recommended),T=async i=>{if(!t)return;const g=c.has(i.id);if(h(N=>new Set(N).add(i.id)),g){const{error:N}=await H.from("user_learning_plan").delete().eq("user_id",t.id).eq("pathway_id",s.id).eq("title",i.title);N?F.error("Failed to remove"):(l(k=>{const L=new Set(k);return L.delete(i.id),L}),F.success("Removed from your Learning Plan"))}else{const{error:N}=await H.from("user_learning_plan").insert({user_id:t.id,pathway_id:s.id,title:i.title,provider:i.provider,url:i.url,duration:i.duration,cost:i.cost,skill_addressed:i.skill_addressed,certification:i.certification,format:i.format,rating:i.rating});N?F.error("Failed to add"):(l(k=>new Set(k).add(i.id)),F.success("Added to your Learning Plan"))}h(N=>{const k=new Set(N);return k.delete(i.id),k})};if(a)return e.jsx(Y,{icon:e.jsx(le,{className:"w-5 h-5 text-primary"}),title:"How to Get There",description:"Finding the best learning resources for you...",skeletonCount:3,skeletonHeight:"h-48",layout:"cards"});const C=i=>{const g=c.has(i.id),N=n.has(i.id);return e.jsxs(P.div,{initial:{opacity:0,y:10}
37,animate:{opacity:1,y:0},className:"card-elevated p-4 md:p-6 hover:shadow-lg transition-shadow",children:[e.jsxs("div",{className:"flex items-start justify-between gap-4 mb-4",children:[e.jsxs("div",{className:"flex-1",children:[i.recommended&&e.jsxs(y,{className:"bg-primary/10 text-primary mb-2",children:[e.jsx(be,{className:"w-3 h-3 mr-1 fill-primary"}),"Recommended for you"]}),e.jsx("h4",{className:"font-semibold text-foreground mb-1",children:i.title}),e.jsx("p",{className:"text-sm text-primary font-medium",children:i.provider})]}),e.jsxs("div",{className:"flex items-center gap-1 text-warning",children:[e.jsx(be,{className:"w-4 h-4 fill-current"}),e.jsx("span",{className:"text-sm font-medium",children:i.rating})]})]}),e.jsxs("div",{className:"grid grid-cols-2 gap-3 mb-4 text-sm",children:[e.jsxs("div",{className:"flex items-center gap-2 text-muted-foreground",children:[e.jsx(xe,{className:"w-4 h-4"}),e.jsx("span",{children:i.duration})]}),e.jsxs("div",{className:"flex items-center gap-2 text-muted-foreground",children:[e.jsx(De,{className:"w-4 h-4"}),e.jsx("span",{children:i.cost})]})]}),e.jsxs("div",{className:"flex flex-wrap gap-2 mb-4",children:[e.jsx(y,{variant:"secondary",className:"text-xs",children:i.format==="online"?"🌐 Online":i.format==="hybrid"?"🔄 Hybrid":"🏢 In-person"}),i.certification&&e.jsx(y,{variant:"secondary",className:"text-xs",children:"📜 Certificate"}),e.jsxs(y,{variant:"outline",className:"text-xs",children:["Addresses: ",i.skill_addressed]})]}),e.jsxs("div",{className:"flex gap-2",children:[e.jsx(A,{variant:g?"default":"outline",className:"flex-1",disabled:N,onClick:()=>T(i),children:N?e.jsx(He,{className:"w-4 h-4 mr-2 animate-spin"}):g?e.jsxs(e.Fragment,{children:[e.jsx(Ke,{className:"w-4 h-4 mr-2"}),"Added"]}):e.jsxs(e.Fragment,{children:[e.jsx(Ks,{className:"w-4 h-4 mr-2"}),"Add to Plan"]})}),e.jsx(A,{variant:"ghost",size:"icon",onClick:()=>window.open(i.url,"_blank"),children:e.jsx(R,{className:"w-4 h-4"})})]})]},i.id)};return e.jsxs(P.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.6},children:[e.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[e.jsx("div",{className:"w-10 h-10 rounded-xl bg-primary/10 flex items-center justify-center",children:e.jsx(le,{className:"w-5 h-5 text-primary"})}),e.jsx("h2",{className:"text-xl md:text-2xl font-bold text-foreground",children:"How to Get There"})]}),f.length>0&&e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"card-elevated p-4 mb-6",children:[e.jsxs("div",{className:"flex items-center gap-2 mb-4",children:[e.jsx(Vs,{className:"w-4 h-4 text-muted-foreground"}),e.jsx("span",{className:"text-sm font-medium text-foreground",children:"Filter courses"})]}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:[e.jsxs(ue,{value:o,onValueChange:p,children:[e.jsx(pe,{children:e.jsx(fe,{placeholder:"Cost"})}),e.jsxs(ge,{children:[e.jsx(M,{value:"all",children:"All costs"}),e.jsx(M,{value:"free",children:"Free only"}),e.jsx(M,{value:"paid",children:"Paid only"})]})]}),e.jsxs(ue,{value:j,onValueChange:m,children:[e.jsx(pe,{children:e.jsx(fe,{placeholder:"Duration"})}),e.jsxs(ge,{children:[e.jsx(M,{value:"all",children:"All durations"}),e.jsx(M,{value:"short",children:"Short (<1 month)"}),e.jsx(M,{value:"long",children:"Long (1+ months)"})]})]}),e.jsxs(ue,{value:x,onValueChange:u,children:[e.jsx(pe,{children:e.jsx(fe,{placeholder:"Certification"})}),e.jsxs(ge,{children:[e.jsx(M,{value:"all",children:"All courses"}),e.jsx(M,{value:"yes",children:"With certificate"}),e.jsx(M,{value:"no",children:"No certificate"})]})]})]})]}),c.size>0&&e.jsx("div",{className:"mb-6 p-4 rounded-xl bg-success/10 border border-success/20",children:e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{children:[e.jsx("p",{className:"font-semibold text-foreground",children:"Your Learning Plan"}),e.jsxs("p",{className:"text-sm text-muted-foreground",children:[c.size," courses added"]})]}),e.jsx(A,{variant:"outline",size:"sm",onClick:()=>d("/learning"),children:"View Plan"})]})}),_.length>0&&e.jsxs("div",{className:"mb-8",children:[e.jsxs("h3",{className:"font-semibold text-foreground mb-4 flex items-center gap-2",children:[e.jsx(be,{className:"w-5 h-5 text-warning fill-warning"}),"Recommended for You"]}),e.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-4",children:_.map(C)})]}),S.length>0&&e.jsxs("div",{children:[e.jsx("h3",{className:"font-semibold text-foreground mb-4",children:"More Learning Options"}),e.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-4",children:S.map(C)})]}),v.length===0&&e.jsxs("div",{className:"text-center py-12 text-muted-foreground",children:[e.jsx(le,{className:"w-12 h-12 mx-auto mb-4 opacity-50"}),e.jsx("p",{children:"No courses match your filters. Try adjusting your criteria."})]})]}),f.length===0&&!a&&e.jsxs("div",{className:"text-center py-12 text-muted-foreground",children:[e.jsx(le,{className:"w-12 h-12 mx-auto mb-4 opacity-50"}),e.jsx("p",{children:"Learning recommendations are being generated..."})]})]})}function Lt({pathway:s}){const r=Le(),{canAccessJobs:a}=os(),t=me(s.occupation_title);return a?e.jsxs("div",{className:"rounded-xl border border-border bg-muted/30 p-6 text-center",children:[e.jsx("div",{className:"w-12 h-12 rounded-xl bg-primary/10 flex items-center justify-center mx-auto mb-4",children:e.jsx(Ee,{className:"w-6 h-6 text-primary"})}),e.jsx("h2",{className:"text-lg font-semibold text-foreground mb-2",children:"Ready to explore opportunities?"}),e.jsxs("p",{className:"text-sm text-muted-foreground max-w-md mx-auto mb-6",children:['View live job listings tailored to your skills and "',t,'" pathway.']}),e.jsxs(A,{onClick:()=>r(`/jobs?pathway=${encodeURIComponent(s.occupation_title)}`),className:"gap-2",children:["Go to your personalised job matches",e.jsx(K,{className:"w-4 h-4"})]})]}):null}function Dt({pathway:s,insights:r,insightsLoading:a}){var l;const t=(l=r==null?void 0:r.ai_content)==null?void 0:l.career_progression,d=(t==null?void 0:t.career_ladder)||[],c=(t==null?void 0:t.lateral_moves)||[];return a?e.jsx(Y,{icon:e.jsx(ee,{className:"w-5 h-5 text-primary"}),title:"Where This Could Take You",description:"Mapping out your career progression...",skeletonCount:4,skeletonHeight:"h-24"}):t?e.jsxs(P.div,{initial:{opacity:0,y:20}
37,animate:{opacity:1,y:0},transition:{delay:.8},children:[e.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[e.jsx("div",{className:"w-10 h-10 rounded-xl bg-primary/10 flex items-center justify-center",children:e.jsx(ee,{className:"w-5 h-5 text-primary"})}),e.jsx("h2",{className:"text-xl md:text-2xl font-bold text-foreground",children:"Where This Could Take You"})]}),e.jsxs("div",{className:"card-elevated p-4 md:p-6 space-y-8",children:[d.length>0&&e.jsxs("div",{children:[e.jsx("h3",{className:"font-semibold text-foreground mb-6",children:"Typical Career Progression"}),e.jsxs("div",{className:"relative",children:[e.jsx("div",{className:"absolute left-4 md:left-6 top-0 bottom-0 w-0.5 bg-border"}),e.jsx("div",{className:"space-y-0",children:d.map((n,h)=>e.jsxs(P.div,{initial:{opacity:0,x:-20},animate:{opacity:1,x:0},transition:{delay:h*.1},className:`relative pl-12 md:pl-16 pb-6 md:pb-8 ${h===d.length-1?"pb-0":""}`,children:[e.jsx("div",{className:`absolute left-0 w-8 h-8 md:w-12 md:h-12 rounded-full flex items-center justify-center z-10 ${n.current?"bg-primary text-primary-foreground":"bg-card border-2 border-border text-muted-foreground"}`,children:e.jsx("span",{className:"text-xs md:text-sm font-bold",children:h+1})}
37),e.jsxs("div",{className:`p-3 md:p-4 rounded-xl ${n.current?"bg-primary/5 border-2 border-primary/20":"bg-secondary/30"}`,children:[e.jsxs("div",{className:"flex flex-wrap items-center gap-1.5 md:gap-2 mb-2",children:[e.jsx(y,{variant:n.current?"default":"secondary",className:"text-xs",children:n.level}),n.current&&e.jsxs(y,{className:"bg-success/10 text-success text-xs",children:[e.jsx(Ye,{className:"w-3 h-3 mr-1"}),"Target Role"]})]}),e.jsx("h4",{className:"font-semibold text-foreground text-sm md:text-base mb-2",children:n.title}),e.jsxs("div",{className:"flex flex-wrap gap-2 md:gap-4 text-xs md:text-sm mb-3",children:[e.jsxs("span",{className:"flex items-center gap-1 text-muted-foreground",children:[e.jsx(xe,{className:"w-4 h-4"}),n.timeline]}),n.salary&&e.jsxs("span",{className:"flex items-center gap-1 text-muted-foreground",title:"Estimated salary range",children:[n.salary," ",e.jsx("span",{className:"text-[10px] opacity-70",children:"(est.)"})]})]}),e.jsx("div",{className:"flex flex-wrap gap-1",children:n.skills.map(o=>e.jsx(y,{variant:"outline",className:"text-xs",children:o},o))})]})]},n.level))})]})]}),c.length>0&&e.jsxs("div",{className:"pt-6 border-t border-border",children:[e.jsx("h3",{className:"font-semibold text-foreground mb-4",children:"Alternative Lateral Moves"}),e.jsx("p",{className:"text-sm text-muted-foreground mb-4",children:"These roles leverage similar skills and experience, offering different career paths:"}),e.jsx("div",{className:"grid grid-cols-1 gap-3 md:grid-cols-3 md:gap-4",children:c.map((n,h)=>e.jsxs(P.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{delay:.5+h*.1},className:"p-4 rounded-xl bg-secondary/30 hover:bg-secondary/50 transition-colors cursor-pointer group",children:[e.jsxs("div",{className:"flex items-center justify-between mb-2",children:[e.jsx("h4",{className:"font-medium text-foreground",children:n.title}),e.jsxs(y,{variant:"secondary",className:"text-xs",children:[n.match,"% match"]})]}),e.jsx("p",{className:"text-sm text-muted-foreground mb-3",children:n.description}),e.jsxs("span",{className:"text-sm text-primary flex items-center gap-1 group-hover:underline",children:["Explore pathway ",e.jsx(K,{className:"w-3 h-3"})]})]},n.title))})]})]})]}):null}function Et({pathway:s,insights:r,insightsLoading:a}){var h;const t=(h=r==null?void 0:r.ai_content)==null?void 0:h.community;if(a)return e.jsx(Y,{icon:e.jsx(de,{className:"w-5 h-5 text-primary"}),title:"Learn from Others Who Made the Switch",description:"Finding relevant success stories and communities...",skeletonCount:3,skeletonHeight:"h-28"});if(!t)return null;const d=t.success_stories||[],c=t.discussions||[],l=t.external_groups||[],n=o=>o.toLowerCase().includes("linkedin")?Gs:tt;return e.jsxs(P.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.9},children:[e.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[e.jsx("div",{className:"w-10 h-10 rounded-xl bg-primary/10 flex items-center justify-center",children:e.jsx(de,{className:"w-5 h-5 text-primary"})}),e.jsx("h2",{className:"text-xl md:text-2xl font-bold text-foreground",children:"Learn from Others Who Made the Switch"})]}),e.jsxs("div",{className:"space-y-8",children:[d.length>0&&e.jsxs("div",{className:"card-elevated p-4 md:p-6",children:[e.jsx("h3",{className:"font-semibold text-foreground mb-4",children:"Success Stories"}),e.jsx("div",{className:"grid grid-cols-1 gap-4",children:d.map(o=>e.jsxs("div",{className:"p-4 rounded-xl bg-secondary/30",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-3",children:[e.jsx(Us,{children:e.jsx(Ys,{className:"bg-primary/10 text-primary",children:o.name.split(" ").map(p=>p[0]).join("")})}),e.jsxs("div",{children:[e.jsx("p",{className:"font-medium text-foreground",children:o.name}),e.jsxs("p",{className:"text-sm text-muted-foreground",children:["Transitioned in ",o.transition_time]})]})]}),e.jsxs("div",{className:"flex items-center gap-2 text-sm mb-3 flex-wrap",children:[e.jsx(y,{variant:"secondary",className:"text-xs",children:o.before_role}),e.jsx(K,{className:"w-3 h-3 text-muted-foreground shrink-0"}),e.jsx(y,{className:"bg-success/10 text-success text-xs",children:o.after_role})]}),e.jsxs("p",{className:"text-sm text-muted-foreground italic",children:['"',o.quote,'"']})]},o.id))})]}),c.length>0&&e.jsxs("div",{className:"card-elevated p-4 md:p-6",children:[e.jsxs("div",{className:"flex items-center justify-between mb-4",children:[e.jsxs("h3",{className:"font-semibold text-foreground flex items-center gap-2",children:[e.jsx(ys,{className:"w-5 h-5 text-primary"}),"Active Discussions"]}),e.jsx(A,{variant:"ghost",size:"sm",onClick:()=>window.open("/community","_self"),children:"Ask the Community"})]}),e.jsx("div",{className:"space-y-3",children:c.map(o=>e.jsxs("div",{className:"flex items-center justify-between p-3 rounded-lg bg-secondary/30 hover:bg-secondary/50 transition-colors cursor-pointer",children:[e.jsxs("div",{children:[e.jsx("p",{className:"font-medium text-foreground text-sm",children:o.title}),e.jsxs("p",{className:"text-xs text-muted-foreground",children:[o.replies," replies · Last active ",o.last_active]})]}),e.jsx(K,{className:"w-4 h-4 text-muted-foreground"})]},o.id))})]}),l.length>0&&e.jsxs("div",{className:"card-elevated p-4 md:p-6",children:[e.jsx("h3",{className:"font-semibold text-foreground mb-4",children:"Groups to Join"}),e.jsx("div",{className:"space-y-3",children:l.map(o=>{const p=n(o.platform);return e.jsxs("div",{className:"flex items-center justify-between p-3 rounded-lg bg-secondary/30 hover:bg-secondary/50 transition-colors cursor-pointer",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"w-10 h-10 rounded-full bg-primary/10 flex items-center justify-center",children:e.jsx(p,{className:"w-5 h-5 text-primary"})}),e.jsxs("div",{children:[e.jsx("p",{className:"font-medium text-foreground text-sm",children:o.name}),e.jsxs("p",{className:"text-xs text-muted-foreground",children:[o.platform," · ",o.members," members"]})]})]}),e.jsx(R,{className:"w-4 h-4 text-muted-foreground"})]},o.name)})})]})]})]})}function Ot({pathway:s,insights:r,insightsLoading:a}){var j;const t=(j=r==null?void 0:r.ai_content)==null?void 0:j.resources;if(a)return e.jsx(Y,{icon:e.jsx(ke,{className:"w-5 h-5 text-primary"}),title:"Essential Resources",description:"Curating the best resources for your transition...",skeletonCount:4,skeletonHeight:"h-40",layout:"cards"});if(!t)return null;const d=t.publications||[],c=t.influencers||[],l=t.associations||[],n=t.conferences||[],h=t.podcasts||[],o=(s.occupation_title||"").toLowerCase(),p=/\b(ned|non[- ]?executive|non exec|fractional|portfolio career|board (member|director|advisor)|board role|chair(person)?|trustee|advisory board|advisor)\b/.test(o);return e.jsxs(P.div,{initial:{opacity:0,y:20}
37,animate:{opacity:1,y:0},transition:{delay:1},children:[e.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[e.jsx("div",{className:"w-10 h-10 rounded-xl bg-primary/10 flex items-center justify-center",children:e.jsx(ke,{className:"w-5 h-5 text-primary"})}),e.jsx("h2",{className:"text-xl md:text-2xl font-bold text-foreground",children:"Essential Resources"})]}),p&&e.jsx("div",{className:"mb-6 rounded-2xl border border-[#6e72f5]/30 bg-gradient-to-br from-[#6e72f5]/10 via-[#cfd4ff]/20 to-transparent p-5 md:p-6",children:e.jsxs("div",{className:"flex items-start gap-4",children:[e.jsx("div",{className:"w-11 h-11 rounded-xl bg-[#6e72f5] text-white flex items-center justify-center flex-shrink-0",children:e.jsx(Te,{className:"w-5 h-5"})}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsxs("div",{className:"flex items-center gap-2 mb-1 flex-wrap",children:[e.jsx("h3",{className:"font-semibold text-foreground",children:"Connectd — recommended partner for board & fractional roles"}),e.jsx(y,{variant:"secondary",className:"text-[10px]",children:"Partner"})]}),e.jsx("p",{className:"text-sm text-muted-foreground mb-3",children:"Connectd matches senior leaders with NED, advisory, fractional and portfolio opportunities across high-growth UK businesses. Build your board profile, get matched to roles, and join a curated community of executives."}),e.jsx("a",{href:"https://join.connectd.co/op7gela3m6if",target:"_blank",rel:"noopener noreferrer",children:e.jsxs(A,{className:"bg-[#6e72f5] hover:bg-[#6e72f5]/90 text-white",children:["Join Connectd ",e.jsx(R,{className:"w-4 h-4 ml-2"})]})})]})]})}),e.jsxs("div",{className:"grid grid-cols-1 gap-4 md:grid-cols-2 md:gap-6",children:[d.length>0&&e.jsxs("div",{className:"card-elevated p-4 md:p-6",children:[e.jsxs("h3",{className:"font-semibold text-foreground flex items-center gap-2 mb-4",children:[e.jsx(at,{className:"w-5 h-5 text-primary"}),"Industry Publications"]}),e.jsx("div",{className:"space-y-3",children:d.map(m=>e.jsxs("a",{href:m.url,target:"_blank",rel:"noopener noreferrer",className:"flex items-center justify-between p-3 rounded-lg bg-secondary/30 hover:bg-secondary/50 transition-colors",children:[e.jsxs("div",{children:[e.jsx("p",{className:"font-medium text-foreground text-sm",children:m.name}),e.jsx("p",{className:"text-xs text-muted-foreground",children:m.description})]}),e.jsx(R,{className:"w-4 h-4 text-muted-foreground"})]},m.name))})]}),c.length>0&&e.jsxs("div",{className:"card-elevated p-4 md:p-6",children:[e.jsxs("h3",{className:"font-semibold text-foreground flex items-center gap-2 mb-4",children:[e.jsx(lt,{className:"w-5 h-5 text-primary"}),"Key Influencers to Follow"]}),e.jsx("div",{className:"space-y-3",children:c.map(m=>{const x=m.url?"a":"div",u=m.url?{href:m.url,target:"_blank",rel:"noopener noreferrer"}:{};return e.jsxs(x,{...u,className:"flex items-start sm:items-center justify-between p-3 rounded-lg bg-secondary/30 hover:bg-secondary/50 transition-colors gap-2",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"w-10 h-10 rounded-full bg-primary/10 flex items-center justify-center text-primary font-bold",children:m.name.charAt(0)}),e.jsxs("div",{children:[e.jsx("p",{className:"font-medium text-foreground text-sm",children:m.name}),e.jsxs("p",{className:"text-xs text-muted-foreground",children:[m.handle," · ",m.specialty]})]})]}),e.jsxs("div",{className:"flex items-center gap-2 flex-wrap mt-1 sm:mt-0",children:[e.jsx(y,{variant:"secondary",className:"text-xs",children:m.platform}),m.url&&e.jsx(R,{className:"w-4 h-4 text-muted-foreground"})]})]},m.name)})})]}),l.length>0&&e.jsxs("div",{className:"card-elevated p-4 md:p-6",children:[e.jsxs("h3",{className:"font-semibold text-foreground flex items-center gap-2 mb-4",children:[e.jsx(qs,{className:"w-5 h-5 text-primary"}),"Professional Associations"]}),e.jsx("div",{className:"space-y-3",children:l.map(m=>{const x=m.url?"a":"div",u=m.url?{href:m.url,target:"_blank",rel:"noopener noreferrer"}:{};return e.jsxs(x,{...u,className:"p-4 rounded-lg bg-secondary/30 hover:bg-secondary/50 transition-colors block",children:[e.jsxs("div",{className:"flex items-center justify-between mb-2",children:[e.jsx("p",{className:"font-medium text-foreground",children:m.name}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(y,{variant:"outline",className:"text-xs",children:m.cost}),m.url&&e.jsx(R,{className:"w-4 h-4 text-muted-foreground"})]})]}),e.jsx("p",{className:"text-sm text-muted-foreground",children:m.description})]},m.name)})})]}),h.length>0&&e.jsxs("div",{className:"card-elevated p-4 md:p-6",children:[e.jsxs("h3",{className:"font-semibold text-foreground flex items-center gap-2 mb-4",children:[e.jsx(rt,{className:"w-5 h-5 text-primary"}),"Podcasts to Listen"]}),e.jsx("div",{className:"space-y-3",children:h.map(m=>{const x=m.url?"a":"div",u=m.url?{href:m.url,target:"_blank",rel:"noopener noreferrer"}:{};return e.jsxs(x,{...u,className:"flex items-center justify-between p-3 rounded-lg bg-secondary/30 hover:bg-secondary/50 transition-colors",children:[e.jsxs("div",{children:[e.jsx("p",{className:"font-medium text-foreground text-sm",children:m.name}),e.jsxs("p",{className:"text-xs text-muted-foreground",children:["Hosted by ",m.host]})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsxs(y,{variant:"secondary",className:"text-xs",children:[m.episodes," eps"]}),m.url&&e.jsx(R,{className:"w-4 h-4 text-muted-foreground"})]})]},m.name)})})]}),n.length>0&&e.jsxs("div",{className:"card-elevated p-4 md:p-6",children:[e.jsxs("h3",{className:"font-semibold text-foreground flex items-center gap-2 mb-4",children:[e.jsx(ss,{className:"w-5 h-5 text-primary"}),"Conferences & Events"]}),e.jsx("div",{className:"space-y-3",children:n.map(m=>{const x=m.url?"a":"div",u=m.url?{href:m.url,target:"_blank",rel:"noopener noreferrer"}:{};return e.jsxs(x,{...u,className:"flex items-center justify-between p-3 rounded-lg bg-secondary/30 hover:bg-secondary/50 transition-colors",children:[e.jsxs("div",{children:[e.jsx("p",{className:"font-medium text-foreground text-sm",children:m.name}),e.jsxs("p",{className:"text-xs text-muted-foreground",children:[m.date," · ",m.location]})]}),m.url&&e.jsx(R,{className:"w-4 h-4 text-muted-foreground"})]},m.name)})})]}),e.jsxs("div",{className:"card-elevated p-4 md:p-6",children:[e.jsxs("h3",{className:"font-semibold text-foreground flex items-center gap-2 mb-4",children:[e.jsx(Js,{className:"w-5 h-5 text-primary"}),"Templates & Guides"]}),e.jsx("div",{className:"space-y-3",children:e.jsxs("a",{href:"/documents/Waddyado_CV_Template.docx",download:!0,className:"flex items-center justify-between p-3 rounded-lg bg-secondary/30 hover:bg-secondary/50 transition-colors",children:[e.jsxs("div",{children:[e.jsx("p",{className:"font-medium text-foreground text-sm",children:"CV Template"}),e.jsx("p",{className:"text-xs text-muted-foreground",children:"CV · Word"})]}),e.jsx(A,{variant:"ghost",size:"sm",children:"Download"})]})})]})]})]})}const It=[{name:"Clarity",stripeKey:"clarity",tagline:"Find Your Direction",features:["1× 60-minute direction-setting coaching session","Comprehensive AI-powered career assessment","Personalised career transition roadmap","1× 30-day check-in call (60 mins)"],recommended:!1}
37,{name:"Confidence",stripeKey:"confidence",tagline:"Build Your Strategy",features:["4× 60-minute 1:1 coaching sessions (over 8 weeks)","Strength-focused psychometric assessment to identify strengths and build confidence","A structured plan matched to your focus: career strategy, leadership capability, or executive development","Accountability check-ins"],recommended:!0},{name:"Career Change",stripeKey:"career-change",tagline:"Transform Your Career",features:["6× 60-minute 1:1 coaching sessions (over 12 weeks)","Full psychometric assessment and profile: personality, strengths, values and motivators, working style, and derailers, giving you a complete evidence-based picture to power your transformation","Behavioural psychology barrier-breaking work","Job search strategy and market positioning","Offer negotiation support","Email support between sessions"],recommended:!1}];function Mt(){const{toast:s}=ds(),{currency:r}=cs(),{formatPrice:a,isLoading:t}=Zs(),[d,c]=b.useState(null),l=async n=>{const h=us();c(n);try{const p={Clarity:"clarity",Confidence:"confidence","Career Change":"career-change"}[n];if(!p)throw new Error("Unknown tier");const j=ms[p],{data:m,error:x}=await H.functions.invoke("create-checkout",{body:{priceId:j.price_id,mode:j.mode,successUrl:`${window.location.origin}/coaching/confirmation?package=${p}`,currency:r}});if(x)throw x;xs(m==null?void 0:m.url,h)}catch(o){hs(),s({title:"Error",description:o.message,variant:"destructive"})}finally{c(null)}};return e.jsxs(P.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.5},className:"relative overflow-hidden rounded-2xl md:rounded-3xl bg-gradient-to-br from-primary via-primary/90 to-primary-glow p-5 md:p-12",children:[e.jsx("div",{className:"absolute top-0 right-0 w-64 h-64 bg-white/10 rounded-full blur-3xl -translate-y-1/2 translate-x-1/2"}),e.jsx("div",{className:"absolute bottom-0 left-0 w-48 h-48 bg-white/5 rounded-full blur-2xl translate-y-1/2 -translate-x-1/2"}),e.jsxs("div",{className:"relative z-10",children:[e.jsxs("div",{className:"text-center mb-6 md:mb-10",children:[e.jsxs("div",{className:"inline-flex items-center gap-2 bg-white/10 text-white px-4 py-2 rounded-full text-sm font-medium mb-4",children:[e.jsx(Te,{className:"w-4 h-4"}),"Accelerate Your Transition"]}),e.jsx("h2",{className:"text-2xl md:text-3xl font-bold text-white mb-3",children:"Feeling overwhelmed about where to start?"}),e.jsx("p",{className:"text-white/80 max-w-2xl mx-auto",children:"Our career coaches have helped hundreds of professionals successfully transition to new roles. Get personalized guidance tailored to your journey."})]}),e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4 md:gap-6 mb-6 md:mb-10",children:It.map(n=>e.jsxs("div",{className:`rounded-2xl p-6 transition-all ${n.recommended?"bg-white shadow-xl md:scale-105":"bg-white/10 backdrop-blur-sm border border-white/20"}`,children:[n.recommended&&e.jsx(y,{className:"bg-primary text-primary-foreground mb-4",children:"Most Popular"}),e.jsx("h3",{className:`text-xl font-bold mb-1 ${n.recommended?"text-foreground":"text-white"}`,children:n.name}),e.jsx("p",{className:`text-sm mb-4 ${n.recommended?"text-muted-foreground":"text-white/70"}`,children:n.tagline}),e.jsx("div",{className:`text-3xl font-bold mb-6 ${n.recommended?"text-primary":"text-white"}`,children:a(n.stripeKey)??(t?"Loading...":"Unavailable")}),e.jsx("ul",{className:"space-y-3 mb-6",children:n.features.map((h,o)=>e.jsxs("li",{className:"flex items-start gap-2",children:[e.jsx(Ke,{className:`w-4 h-4 mt-0.5 shrink-0 ${n.recommended?"text-success":"text-white/80"}`}),e.jsx("span",{className:`text-sm ${n.recommended?"text-foreground":"text-white/80"}`,children:h})]},o))}),e.jsx(A,{className:`w-full ${n.recommended?"bg-primary text-primary-foreground hover:bg-primary/90":"bg-white/20 text-white hover:bg-white/30 border-0"}`,disabled:d===n.name||!a(n.stripeKey),onClick:()=>l(n.name),children:d===n.name?"Loading...":`Choose ${n.name}`})]},n.name))}),e.jsxs("div",{className:"text-center space-y-4",children:[e.jsxs(A,{size:"lg",className:"bg-white text-primary hover:bg-white/90 px-5 md:px-8 py-4 md:py-6 text-sm md:text-lg font-semibold w-full sm:w-auto",onClick:()=>window.open("https://calendly.com/waddyado","_blank"),children:[e.jsx(ss,{className:"w-4 h-4 md:w-5 md:h-5 mr-2"}),"Book a Free 15-min Consultation",e.jsx(K,{className:"w-4 h-4 md:w-5 md:h-5 ml-2"})]}),e.jsxs("div",{className:"flex items-center justify-center gap-2 text-white/70 text-xs md:text-sm",children:[e.jsx(de,{className:"w-4 h-4"}),e.jsx("span",{children:"Join 156 professionals who've successfully transitioned"})]})]})]})]})}function Rt({sections:s,activeSection:r,onSectionClick:a}){return e.jsxs("nav",{className:"sticky top-24 space-y-1",children:[e.jsx("p",{className:"text-sm font-semibold text-muted-foreground mb-4 uppercase tracking-wider",children:"On this page"}),s.map(t=>e.jsxs("button",{onClick:()=>a(t.id),className:ps("w-full text-left px-4 py-2 text-sm rounded-lg transition-all duration-200 relative",r===t.id?"text-primary font-medium bg-primary/5":"text-muted-foreground hover:text-foreground hover:bg-secondary/50"),children:[r===t.id&&e.jsx(P.div,{layoutId:"active-indicator",className:"absolute left-0 top-0 bottom-0 w-0.5 bg-primary rounded-full"}),t.label]},t.id))]})}const oe=[{id:"why-fits",label:"Why This Role Fits"},{id:"market-insights",label:"Market Insights"},{id:"reality-check",label:"A Day in the Life"},{id:"skills-roadmap",label:"Skills Roadmap"},{id:"learning",label:"Learning Pathways"},{id:"jobs",label:"Live Jobs"},{id:"progression",label:"Career Progression"},{id:"community",label:"Community & Mentorship"},{id:"resources",label:"Resources"}];function Ir(){var w;const{pathwayId:s}=fs(),r=Le(),{user:a,profile:t,extendedProfile:d,isLoading:c}=Ve(),[l,n]=b.useState(null),[h,o]=b.useState(!0),[p,j]=b.useState("why-fits"),[m,x
37]=b.useState(!1),{insights:u,isLoading:f}=wt(s),v=vs(),_=b.useRef(null);b.useEffect(()=>{!a&&!c&&r("/login")},[a,c,r]),b.useEffect(()=>{async function i(){if(!a||!s)return;const{data:g,error:N}=await H.from("career_pathways").select("*").eq("id",s).single();if(N||!g){F.error("Pathway not found"),r("/dashboard");return}n(g),o(!1)}i()},[a,s,r]),b.useEffect(()=>{const i=()=>{const g=oe.map(k=>document.getElementById(k.id)),N=window.scrollY+200;for(let k=g.length-1;k>=0;k--){const L=g[k];if(L&&L.offsetTop<=N){j(oe[k].id);break}}};return window.addEventListener("scroll",i),()=>window.removeEventListener("scroll",i)},[]);const S=async()=>{try{const i=me(l==null?void 0:l.occupation_title);await navigator.share({title:`Career Pathway: ${i}`,text:"Check out this career pathway on Waddyado",url:window.location.href})}catch{navigator.clipboard.writeText(window.location.href),F.success("Link copied to clipboard")}},T=()=>{window.print()},C=()=>{x(!m),F.success(m?"Removed from saved pathways":"Saved to your pathways")};return c||h?e.jsx(je,{children:e.jsx("div",{className:"container max-w-7xl py-8 px-4",children:e.jsxs("div",{className:"space-y-8",children:[e.jsx(V,{className:"h-12 w-48"}),e.jsx(V,{className:"h-64 w-full"}),e.jsx(V,{className:"h-96 w-full"})]})})}):l?e.jsx(je,{children:e.jsxs("div",{className:"min-h-screen",children:[e.jsx("div",{className:"bg-secondary/30 border-b border-border",children:e.jsx("div",{className:"container max-w-7xl py-3 md:py-4 px-3 md:px-4",children:e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs(A,{variant:"ghost",size:"sm",onClick:()=>r("/dashboard"),className:"hover:bg-secondary px-2 md:px-3",children:[e.jsx(et,{className:"w-4 h-4 mr-1 md:mr-2"}),e.jsx("span",{className:"hidden sm:inline",children:"Back to Dashboard"}),e.jsx("span",{className:"sm:hidden",children:"Back"})]}),e.jsxs("div",{className:"flex items-center gap-1.5 md:gap-2",children:[e.jsx(A,{variant:"outline",size:"icon",className:"h-8 w-8 md:h-9 md:w-9",onClick:S,children:e.jsx(st,{className:"w-3.5 h-3.5 md:w-4 md:h-4"})}),e.jsx(A,{variant:"outline",size:"icon",className:`h-8 w-8 md:h-9 md:w-9 ${m?"bg-primary text-primary-foreground":""}`,onClick:C,children:e.jsx(js,{className:`w-3.5 h-3.5 md:w-4 md:h-4 ${m?"fill-current":""}`})}),e.jsx(A,{variant:"outline",size:"icon",onClick:T,className:"hidden md:flex",children:e.jsx(nt,{className:"w-4 h-4"})})]})]})})}),v&&e.jsx("div",{className:"sticky top-0 z-30 bg-background/95 backdrop-blur-sm border-b border-border",ref:_,children:e.jsxs(Xs,{className:"w-full",children:[e.jsx("div",{className:"flex gap-1 px-4 py-2",children:oe.map(i=>e.jsx("button",{onClick:()=>{var g;(g=document.getElementById(i.id))==null||g.scrollIntoView({behavior:"smooth"})},className:`whitespace-nowrap px-3 py-1.5 text-xs font-medium rounded-full transition-colors ${p===i.id?"bg-primary text-primary-foreground":"bg-secondary/50 text-muted-foreground"}`,children:i.label},i.id))}),e.jsx(Qs,{orientation:"horizontal"})]})}),e.jsx("div",{className:"container max-w-7xl py-4 md:py-8 px-3 md:px-4",children:e.jsxs("div",{className:"flex gap-4 md:gap-8",children:[e.jsx("div",{className:"hidden lg:block w-64 shrink-0",children:e.jsx(Rt,{sections:oe,activeSection:p,onSectionClick:i=>{var g;(g=document.getElementById(i))==null||g.scrollIntoView({behavior:"smooth"})}})}),e.jsxs("div",{className:"flex-1 min-w-0 max-w-4xl space-y-6 md:space-y-16",children:[e.jsx(kt,{pathway:l,totalJobs:(w=u==null?void 0:u.market_data)==null?void 0:w.total_jobs,insights:u}),e.jsx("section",{id:"why-fits",children:e.jsx(_t,{pathway:l,userProfile:d,currentJobTitle:d==null?void 0:d.current_job_title})}),e.jsx("section",{id:"market-insights",children:e.jsx(St,{pathway:l,insights:u,insightsLoading:f})}),e.jsx("section",{id:"reality-check",children:e.jsx(Ct,{pathway:l,insights:u,insightsLoading:f})}),e.jsx("section",{id:"skills-roadmap",children:e.jsx(Pt,{pathway:l,insights:u})}),e.jsx(Mt,{}),e.jsx("section",{id:"learning",children:e.jsx(Tt,{pathway:l,insights:u,insightsLoading:f})}),e.jsx("section",{id:"jobs",children:e.jsx(Lt,{pathway:l})}),e.jsx("section",{id:"progression",children:e.jsx(Dt,{pathway:l,insights:u,insightsLoading:f})}),e.jsx("section",{id:"community",children:e.jsx(Et,{pathway:l,insights:u,insightsLoading:f})}),e.jsx("section",{id:"resources",children:e.jsx(Ot,{pathway:l,insights:u,insightsLoading:f})})]})]})})]})}):e.jsx(je,{children:e.jsxs("div",{className:"container max-w-7xl py-16 text-center",children:[e.jsx("p",{className:"text-muted-foreground",children:"Pathway not found"}),e.jsx(A,{onClick:()=>
37r("/dashboard"),className:"mt-4",children:"Back to Dashboard"})]})})}export{Ir 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.