1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3409],{73409:function(e,t,r){r.r(t),r.d(t,{DraggableResumeEditor:function(){return N}});var a=r(85893),l=r(67294),o=r(24942),s=r(31767),n=r(28627),i=r(62190),d=r(43765),c=r(78865),x=r(37864),u=r(4270),b=r(33058),g=r(61929),p=r(69819),m=r(31855),h=r(23488),y=r(42171),v=r(87542),f=r(4307),j=e=>{let{id:t,title:r,defaultOpen:o=!0,children:s,className:n="",onToggle:i}=e,[d,c]=l.useState(o);return(0,a.jsxs)("section",{id:t,className:"collapsible-section ".concat(n),children:[(0,a.jsxs)("button",{onClick:()=>{let e=!d;c(e),"function"==typeof i&&i(e)},"aria-controls":t?"".concat(t,"-content"):void 0,"aria-expanded":d,className:"collapsible-toggle",style:{display:"flex",alignItems:"center",width:"100%",background:"transparent",border:"none",padding:0,cursor:"pointer"},children:[(0,a.jsx)("span",{style:{display:"flex",alignItems:"center",gap:"8px"},children:d?(0,a.jsx)(y.Z,{size:18}):(0,a.jsx)(f.Z,{size:18})}),(0,a.jsx)("h3",{style:{marginLeft:8,fontWeight:700},children:r})]}),(0,a.jsx)("div",{id:t?"".concat(t,"-content"):void 0,style:{display:d?"block":"none",marginTop:8},children:s})]})},k=e=>{if(!e)return e;let t=String(e),r=[],l=0,o="__TRUERESUME_BOLD_START__",s="__TRUERESUME_BOLD_END__";for(;l<t.length;){let e=t.indexOf(o,l);if(-1===e){r.push(t.slice(l));break}e>l&&r.push(t.slice(l,e));let n=t.indexOf(s,e+o.length);if(-1===n){r.push(t.slice(e+o.length));break}let i=t.slice(e+o.length,n);r.push((0,a.jsx)("strong",{children:String(i)},"b-".concat(e))),l=n+s.length}let n=[];return r.forEach((e,t)=>{if("string"!=typeof e){n.push(e);return}e.split(/(\*\*[^*]+\*\*)/g).filter(Boolean).forEach((e,r)=>{let l=e.match(/^\*\*([^*]+)\*\*$/);l?n.push((0,a.jsx)("strong",{children:l[1]},"md-".concat(t,"-").concat(r))):n.push((0,a.jsx)("span",{children:e},"txt-".concat(t,"-").concat(r)))})}),n};let N=e=>{var t,r;let{generatedResume:f,editedResume:N,setEditedResume:w,onApply:C,onCancel:A,theme:F,profileCertifications:D=[]}=e,E=N||f,[S,B]=(0,l.useState)(null),[Y,Z]=(0,l.useState)(""),[I,P]=(0,l.useState)(""),[T,_]=(0,l.useState)(""),[L,R]=(0,l.useState)(!1),[O,q]=(0,l.useState)([]),[z,M]=(0,l.useState)(!1),U=(0,l.useMemo)(()=>{let e={};return(E.education||[]).forEach((t,r)=>{let a={};t.degree&&""!==t.degree.trim()||(a.degree="Degree is required"),t.institution&&""!==t.institution.trim()||(a.institution="Institution is required"),t.endYear||t.graduationDate||t.endDate||t.year||(a.endYear="Graduation year is required"),Object.keys(a).length>0&&(e[r]=a)}),e},[E.education]),G=(0,l.useMemo)(()=>Object.keys(U).length>0,[U]),V=(e,t)=>{if(!t.destination||!E.experiences)return;let r=E.experiences[e];if(!r.bullets)return;let a=Array.from(r.bullets),[l]=a.splice(t.source.index,1);a.splice(t.destination.index,0,l);let o=[...E.experiences];o[e]={...r,bullets:a},w({...E,experiences:o})},$=e=>{if(!e.destination||!E.experiences)return;let t=Array.from(E.experiences),[r]=t.splice(e.source.index,1);t.splice(e.destination.index,0,r),w({...E,experiences:t})},J=(e,t)=>{var r;if(!E.experiences)return;let a=E.experiences[e],l=(null===(r=a.bullets)||void 0===r?void 0:r.filter((e,r)=>r!==t))||[],o=[...E.experiences];o[e]={...a,bullets:l},w({...E,experiences:o})},H=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return"".concat(Date.now().toString(36),"-").concat(Math.random().toString(36).slice(2,8)).concat(e?"-".concat(e):"")};(0,l.useEffect)(()=>{let e=(null==E?void 0:E.skillsSection)||{},t=Object.keys(e||{});if(!(0===O.length||t.length!==O.length||t.some(e=>!O.find(t=>t.name===e))))return;let r=Object.entries(e).map(e=>{let[t,r]=e;return{id:H(t.replace(/\s+/g,"-").toLowerCase()),name:t,skills:Array.isArray(r)?r:"string"==typeof r?r.split(",").map(e=>e.trim()).filter(Boolean):[],raw:Array.isArray(r)?r.join(", "):String(r||"")}});q(r.length?r:[])},[null==E?void 0:E.skillsSection]);let W=e=>{if(!e&&0!==e)return;let t=String(e).trim();if(!t||/present|current/i.test(t))return;let r=t.match(/^(\d{1,2})\/(\d{4})$/);if(r)return parseInt(r[2],10);let a=t.match(/^(\d{4})-(\d{1,2})$/);if(a)return parseInt(a[1],10);if(/^\d{4}$/.test(t))return parseInt(t,10);let l=t.match(/(19|20)\d{2}/);if(l)return parseInt(l[0],10)};(0,l.useEffect)(()=>{let e=(null==f?void 0:f.education)||[];
1if(!e||0===e.length)return;let t=!1,r=e.map(e=>{var r,a;let l=null!==(r=e.startYear)&&void 0!==r?r:W(e.startDate||e.start||e.year||e.startYear),o=null!==(a=e.endYear)&&void 0!==a?a:W(e.endDate||e.graduationDate||e.end||e.endYear);return(l&&l!==e.startYear||o&&o!==e.endYear)&&(t=!0),{...e,startYear:null!=l?l:e.startYear,endYear:null!=o?o:e.endYear}});t&&!N&&w({...f,education:r})},[null==f?void 0:f.education]),(0,l.useEffect)(()=>{var e,t;let r=(null==E?void 0:null===(e=E.skillsSection)||void 0===e?void 0:e.technical)||[],a=(null==E?void 0:null===(t=E.skillsSection)||void 0===t?void 0:t.soft)||[];P(Array.isArray(r)?r.join(", "):String(r||"")),_(Array.isArray(a)?a.join(", "):String(a||""))},[null==E?void 0:null===(t=E.skillsSection)||void 0===t?void 0:t.technical,null==E?void 0:null===(r=E.skillsSection)||void 0===r?void 0:r.soft]);let K=e=>{let t={};for(let r of e){let e=(r.name||"").trim();if(e){if(t[e]){let a=2,l="".concat(e," ").concat(a);for(;t[l];)a++,l="".concat(e," ").concat(a);t[l]=Array.isArray(r.skills)?r.skills:[]}else t[e]=Array.isArray(r.skills)?r.skills:[]}}w({...E,skillsSection:t})},Q=e=>{if(!E.experiences)return;let t=E.experiences[e],r=[...t.bullets||[],"New achievement or responsibility"],a=[...E.experiences];a[e]={...t,bullets:r},w({...E,experiences:a})},X=(e,t,r)=>{B({expIndex:e,bulletIndex:t}),Z(r)},ee=()=>{if(!S||!E.experiences)return;let{expIndex:e,bulletIndex:t}=S,r=E.experiences[e],a=[...r.bullets||[]];a[t]=Y;let l=[...E.experiences];l[e]={...r,bullets:a},w({...E,experiences:l}),B(null),Z("")},et=()=>{B(null),Z("")};return(0,a.jsx)(n.Z5,{onDragEnd:e=>{e&&("bullet"===e.type?V(parseInt(e.source.droppableId.split("-")[1]),e):"experience"===e.type&&$(e))},children:(0,a.jsx)("div",{className:"h-full overflow-y-auto ".concat("dark"===F?"bg-[#030303]":"bg-gray-50"),children:(0,a.jsxs)("div",{className:"p-4 sm:p-6 lg:p-8 space-y-6",children:[(0,a.jsx)(v.E.div,{initial:{y:-20,opacity:0},animate:{y:0,opacity:1},className:"sticky top-0 z-20 p-4 sm:p-6 rounded-xl border-2 shadow-2xl ".concat("dark"===F?"bg-[#1A1A1B]/95 border-[#343536]":"bg-white border-gray-200"),children:(0,a.jsxs)("div",{className:"flex items-center justify-between",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("h2",{className:"text-xl sm:text-2xl font-bold ".concat("dark"===F?"text-white":"text-gray-900"),children:"Edit Your Resume"}),(0,a.jsx)("p",{className:"text-sm mt-1 ".concat("dark"===F?"text-[#818384]":"text-gray-500"),children:"Drag bullet points to reorder ⢠Click to edit ⢠Add or remove points"})]}),(0,a.jsxs)("div",{className:"flex items-center gap-3",children:[(0,a.jsxs)("button",{onClick:A,className:"px-4 py-2 rounded-full font-medium text-sm transition-all hover:scale-105 ".concat("dark"===F?"bg-[#272729] text-white hover:bg-[#343536] border border-[#343536]":"bg-white text-gray-700 hover:bg-gray-50 border border-gray-300"),children:[(0,a.jsx)(i.Z,{className:"w-4 h-4 sm:hidden"}),(0,a.jsx)("span",{className:"hidden sm:inline",children:"Cancel"})]}),(0,a.jsx)("button",{onClick:()=>{if(G){let e=document.querySelector(".border-red-500");null==e||e.scrollIntoView({behavior:"smooth",block:"center"});return}R(!0)},className:"flex items-center gap-2 px-4 sm:px-6 py-2 sm:py-2.5 rounded-full font-semibold text-sm transition-all hover:scale-105 shadow-lg ".concat(G?"dark"===F?"bg-red-600/50 text-red-200 cursor-not-allowed":"bg-red-100 text-red-600 cursor-not-allowed":"dark"===F?"bg-gradient-to-r from-[#FF4500] to-[#CC3700] text-white hover:from-blue-600 hover:to-[#CC3700]":"bg-gradient-to-r from-[#FF4500] to-[#CC3700] text-white hover:from-[#CC3700] hover:to-[#B03000]"),title:G?"Please fix validation errors before applying":"",children:G?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(d.Z,{className:"w-4 h-4"}),(0,a.jsx)("span",{className:"hidden sm:inline",children:"Fix Errors"}),(0,a.jsx)("span",{className:"sm:hidden",children:"Fix"})]}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(c.Z,{className:"w-4 h-4"}),(0,a.jsx)("span",{className:"hidden sm:inline",children:"Apply Changes"}),(0,a.jsx)("span",{className:"sm:hidden",children:"Apply"})]})})]})]})}),(0,a.jsx)(o.u,{appear:!0,show:L,as:l.Fragment,children:(0,a.jsxs)(s.Vq,{as:"div",className:"relative z-50",onClose:()=>R(!1),children:[(0,a.jsx)(o.u.Child,{as:l.Fragment,enter:"ease-out duration-200",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in duration-150",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:(0,a.jsx)("div",{className:"fixed inset-0 bg-black/40"})}),(0,a.jsx)("div",{className:"fixed inset-0 overflow-y-auto",children:(0,a.jsx)("div",{className:"flex min-h-full items-center justify-center p-4",children:(0,a.jsx)(o.u.Child,{as:l.Fragment,enter:"ease-out duration-200",enterFrom:"opacity-0 scale-95",enterTo:"opacity-100 scale-100",leave:"ease-in duration-150",leaveFrom:"opacity-100 scale-100",leaveTo:"opacity-0 scale-95",children:(0,a.jsx)(s.Vq.Panel,{className:"w-full max-w-md transform overflow-hidden rounded-2xl shadow-2xl transition-all ".concat("dark"===F?"bg-[#1A1A1B] border border-[#343536]":"bg-white"),children:(0,a.jsxs)("div",{className:"p-6",children:[(0,a.jsx)(s.Vq.Title,{className:"text-lg font-bold mb-2 ".concat("dark"===F?"text-white":"text-gray-900"),children:"Apply changes"}),(0,a.jsx)("p",{className:"text-sm mb-4 ".concat("dark"===F?"text-[#D7DADC]":"text-gray-600"),children:"Your edits will be applied to the resume. Click Apply to continue."}),(0,a.jsxs)("div",{className:"flex justify-end gap-2",children:[(0,a.jsx)("button",{onClick:()=>R(!1),className:"px-3 py-2 rounded-full border border-gray-300 dark:border-[#343536] bg-transparent text-sm",children:"Cancel"}),(0,a.jsx)("button",{onClick:()=>{R(!1),C(E,!1)},className:"px-3 py-2 rounded-full bg-gradient-to-r from-[#FF4500] to-[#CC3700] text-white text-sm",children:"Apply"})]})]})})})})})]})}),G&&(0,a.jsxs)(v.E.div,{initial:{opacity:0,y:-10}
1,animate:{opacity:1,y:0},className:"p-4 rounded-xl border-2 flex items-start gap-3 ".concat("dark"===F?"bg-red-900/20 border-red-500/50 text-red-300":"bg-red-50 border-red-200 text-red-700"),children:[(0,a.jsx)(d.Z,{className:"w-5 h-5 flex-shrink-0 mt-0.5"}),(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"font-semibold text-sm",children:"Please fix validation errors"}),(0,a.jsx)("p",{className:"text-xs mt-1 ".concat("dark"===F?"text-red-400":"text-red-600"),children:"Education entries require: Degree, Institution, and Graduation Year"})]})]}),(0,a.jsx)(j,{id:"personal-info",title:"Personal Information",defaultOpen:!0,children:(0,a.jsxs)(v.E.div,{initial:{y:20,opacity:0},animate:{y:0,opacity:1},transition:{delay:.1},className:"p-6 rounded-xl border-2 ".concat("dark"===F?"bg-[#1A1A1B] border-[#343536]":"bg-white border-[#EDEFF1]"),children:[(0,a.jsx)("h3",{className:"text-lg font-bold mb-4 ".concat("dark"===F?"text-white":"text-gray-900"),children:"Personal Information"}),(0,a.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[{key:"fullName",label:"Full Name"},{key:"email",label:"Email"},{key:"phone",label:"Phone"},{key:"location",label:"Location"},{key:"linkedin",label:"LinkedIn"},{key:"github",label:"GitHub"}].map(e=>{var t;return(0,a.jsxs)("div",{children:[(0,a.jsx)("label",{className:"block text-xs font-medium mb-1.5 ".concat("dark"===F?"text-[#818384]":"text-gray-600"),children:e.label}),(0,a.jsx)("input",{type:"text",value:(null===(t=E.personalInfo)||void 0===t?void 0:t[e.key])||"",onChange:t=>w({...E,personalInfo:{...E.personalInfo,[e.key]:t.target.value}}),className:"w-full px-3 py-2 rounded-lg border-2 text-sm transition-all focus:ring-2 ".concat("dark"===F?"bg-[#272729] text-white border-[#343536] focus:border-blue-500 focus:ring-[#FF4500]/20":"bg-white text-gray-900 border-gray-300 focus:border-blue-500 focus:ring-[#FF4500]/20"),placeholder:"Enter ".concat(e.label.toLowerCase())})]},e.key)})})]})}),(0,a.jsx)(j,{id:"professional-summary",title:"Professional Summary",defaultOpen:!0,children:(0,a.jsxs)(v.E.div,{initial:{y:20,opacity:0},animate:{y:0,opacity:1},transition:{delay:.2},className:"p-6 rounded-xl border-2 ".concat("dark"===F?"bg-[#1A1A1B] border-[#343536]":"bg-white border-[#EDEFF1]"),children:[(0,a.jsx)("h3",{className:"text-lg font-bold mb-4 ".concat("dark"===F?"text-white":"text-gray-900"),children:"Professional Summary"}),(0,a.jsx)("textarea",{value:E.summary||"",onChange:e=>w({...E,summary:e.target.value}),rows:6,className:"w-full px-4 py-3 rounded-lg border-2 text-sm transition-all focus:ring-2 ".concat("dark"===F?"bg-[#272729] text-white border-[#343536] focus:border-blue-500 focus:ring-[#FF4500]/20":"bg-white text-gray-900 border-gray-300 focus:border-blue-500 focus:ring-[#FF4500]/20"),placeholder:"Write a compelling professional summary..."})]})}),(0,a.jsx)(j,{id:"skills-section-editor",title:"Technical Skills / Core Competencies",defaultOpen:!0,children:(0,a.jsxs)(v.E.div,{initial:{y:20,opacity:0},animate:{y:0,opacity:1},transition:{delay:.25},className:"p-6 rounded-xl border-2 ".concat("dark"===F?"bg-[#1A1A1B] border-[#343536]":"bg-white border-[#EDEFF1]"),children:[(0,a.jsx)("h3",{className:"text-lg font-bold mb-3 ".concat("dark"===F?"text-white":"text-gray-900"),children:"Technical Skills / Core Competencies"}),(0,a.jsxs)("div",{className:"space-y-3",children:[O.map((e,t)=>{var r;return(0,a.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-2 items-center",children:[(0,a.jsx)("input",{type:"text",value:e.name,onChange:t=>{q(O.map(r=>r.id===e.id?{...r,name:t.target.value}:r))},onBlur:t=>{let r=O.map(r=>r.id===e.id?{...r,name:t.target.value}:r);q(r),K(r)},className:"px-2 py-1 rounded border-2 text-sm ".concat("dark"===F?"bg-[#272729] text-white border-[#343536]":"bg-gray-50 text-gray-900 border-gray-300"),placeholder:"Category (e.g., Programming Languages)"}),(0,a.jsxs)("div",{className:"col-span-2 flex items-center gap-2",children:[(0,a.jsx)("input",{type:"text",value:null!==(r=e.raw)&&void 0!==r?r:Array.isArray(e.skills)?e.skills.join(", "):String(e.skills||""),onChange:t=>{q(O.map(r=>r.id===e.id?{...r,raw:t.target.value}:r))},onBlur:t=>{let r=t.target.value.split(",").map(e=>
1e.trim()).filter(Boolean),a=O.map(a=>a.id===e.id?{...a,skills:r,raw:t.target.value}:a);q(a),K(a)},className:"flex-1 px-2 py-1 rounded border-2 text-sm ".concat("dark"===F?"bg-[#272729] text-white border-[#343536]":"bg-gray-50 text-gray-900 border-gray-300"),placeholder:"Comma separated skills (e.g., Node.js, TypeScript)"}),(0,a.jsx)("button",{onClick:()=>{let t=O.filter(t=>t.id!==e.id);q(t),K(t)},title:"Delete category",className:"px-2 py-1 rounded ".concat("dark"===F?"bg-red-600 text-white":"bg-red-50 text-red-700 border border-red-200"),children:(0,a.jsx)(x.Z,{className:"w-4 h-4"})})]})]},e.id)}),(0,a.jsx)("div",{children:(0,a.jsxs)("button",{onClick:()=>{let e=1,t="Category ".concat(e),r=new Set(O.map(e=>e.name));for(;r.has(t);)e++,t="Category ".concat(e);let a=[...O,{id:H(t),name:t,skills:[],raw:""}];q(a),K(a)},className:"px-3 py-1.5 rounded-lg text-sm font-medium ".concat("dark"===F?"bg-[#0079D3] text-white":"bg-[#FFF1EE] text-[#FF4500] border border-[#EDEFF1]"),children:[(0,a.jsx)(u.Z,{className:"inline w-4 h-4 mr-2"})," Add Category"]})})]})]})}),E.experiences&&E.experiences.length>0&&(0,a.jsxs)(v.E.div,{initial:{y:20,opacity:0},animate:{y:0,opacity:1},transition:{delay:.3},children:[(0,a.jsxs)("div",{className:"flex items-center justify-between mb-4",children:[(0,a.jsx)("h3",{className:"text-lg font-bold ".concat("dark"===F?"text-white":"text-gray-900"),children:"Professional Experience"}),(0,a.jsxs)("div",{className:"flex items-center gap-2 px-3 py-1.5 rounded-lg text-xs font-medium ".concat("dark"===F?"bg-blue-500/10 text-blue-400 border border-blue-500/20":"bg-blue-50 text-blue-600 border border-blue-200"),children:[(0,a.jsx)(b.Z,{className:"w-3.5 h-3.5"}),"Drag to reorder"]})]}),(0,a.jsx)(j,{id:"experience-section",title:"Professional Experience",defaultOpen:!0,children:(0,a.jsx)("div",{className:"space-y-4",children:E.experiences.map((e,t)=>(0,a.jsxs)("div",{className:"p-6 rounded-xl border-2 transition-all ".concat("dark"===F?"bg-[#1A1A1B] border-[#343536]":"bg-white border-[#EDEFF1]"),children:[(0,a.jsx)("div",{className:"flex items-start gap-3 mb-4",children:(0,a.jsxs)("div",{className:"flex-1",children:[(0,a.jsx)("input",{type:"text",value:e.title||e.role||"",onChange:r=>{let a=[...E.experiences];a[t]={...e,title:r.target.value,role:r.target.value},w({...E,experiences:a})},className:"w-full text-lg font-bold mb-2 px-2 py-1 rounded border-2 border-transparent transition-all hover:border-blue-500/20 focus:border-blue-500 ".concat("dark"===F?"bg-[#272729] text-white":"bg-gray-50 text-gray-900"),placeholder:"Job Title"}),(0,a.jsx)("input",{type:"text",value:e.company,onChange:r=>{let a=[...E.experiences];a[t]={...e,company:r.target.value},w({...E,experiences:a})},className:"w-full text-sm font-medium mb-1 px-2 py-1 rounded border-2 border-transparent transition-all hover:border-blue-500/20 focus:border-blue-500 ".concat("dark"===F?"bg-[#272729] text-[#D7DADC]":"bg-gray-50 text-gray-700"),placeholder:"Company Name"}),(0,a.jsx)("div",{className:"text-xs ".concat("dark"===F?"text-[#818384]":"text-gray-500"),children:(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)("input",{type:"text",value:e.startDate||"",onChange:r=>{let a=[...E.experiences];a[t]={...e,startDate:r.target.value},w({...E,experiences:a})},placeholder:"Start (e.g., Jan 2022)",className:"text-sm px-2 py-1 rounded border-2 ".concat("dark"===F?"bg-[#272729] text-white border-[#343536]":"bg-gray-50 text-gray-700 border-gray-200")}),(0,a.jsx)("span",{className:"text-sm opacity-80",children:"-"}),(0,a.jsx)("input",{type:"text",value:e.endDate||"",onChange:r=>{let a=[...E.experiences];a[t]={...e,endDate:r.target.value},w({...E,experiences:a})},placeholder:"End (e.g., Present or Jun 2023)",className:"text-sm px-2 py-1 rounded border-2 ".concat("dark"===F?"bg-[#272729] text-white border-[#343536]":"bg-gray-50 text-gray-700 border-gray-200")}),(0,a.jsx)("input",{type:"text",value:e.location||"",onChange:r=>{let a=[...E.experiences];a[t]={...e,location:r.target.value},w({...E,experiences:a})},placeholder:"Location (optional)",className:"px-2 py-1 rounded border-2 text-xs ".concat("dark"===F?"bg-[#272729] text-white border-[#343536]":"bg-gray-50 text-gray-700 border-gray-300")})]})}),(0,a.jsxs)("div",{className:"mt-3",children:[(0,a.jsx)("input",{type:"text",value:e.projectName||"",onChange:r=>{let a=[...E.experiences],l=r.target.value;a[t]={...e,projectName:l,projects:l.trim()?[{name:l,description:e.projectDescription||"",responsibilities:[]}]:void 0},w({...E,experiences:a})},placeholder:"Project Name (optional)",className:"w-full text-sm font-medium mb-2 px-2 py-1 rounded border-2 border-transparent transition-all hover:border-blue-500/20 focus:border-blue-500 ".concat("dark"===F?"bg-[#272729] text-[#D7DADC]":"bg-gray-50 text-gray-700")}),(0,a.jsx)("textarea",{value:e.projectDescription||"",onChange:r=>{let a=[...E.experiences],l=r.target.value,o=(e.projectName||"").trim()||l.trim();a[t]={...e,projectDescription:l,projects:o?[{name:e.projectName||"",description:l,responsibilities:[]}]:void 0},w({...E,experiences:a})},rows:3,placeholder:"Project Description (optional)",className:"w-full px-3 py-2 text-sm rounded border-2 ".concat("dark"===F?"bg-[#1A1A1B] text-white border-[#343536] focus:ring-2 focus:ring-[#FF4500]/20":"bg-white text-gray-900 border-gray-300 focus:ring-2 focus:ring-[#FF4500]/20")})]})]})}),e.bullets&&e.bullets.length>0&&(0,a.jsx)(n.bK,{droppableId:"bullets-".concat(t),type:"bullet",children:(r,l)=>(0,a.jsxs)("div",{ref:r.innerRef,...r.droppableProps,className:"space-y-2 mb-3 p-3 rounded-lg transition-all ".concat(l.isDraggingOver?"dark"===F?"bg-[#272729] border-2 border-dashed border-blue-500":"bg-blue-50 border-2 border-dashed border-blue-400":"dark"===F?"bg-[#272729]":"bg-gray-50/50"),children:[e.bullets.map((e,r)=>(0,a.jsx)(n._l,{draggableId:"bullet-".concat(t,"-").concat(r),index:r,children:(l,o)=>(0,a.jsxs)("div",{ref:l.innerRef,...l.draggableProps,className:"group flex items-start gap-2 p-3 rounded-lg transition-all ".concat(o.isDragging?"dark"===F?"bg-blue-500/20 border-2 border-blue-500 shadow-xl scale-105":"bg-blue-100 border-2 border-blue-500 shadow-xl scale-105":"dark"===F?"bg-[#272729] hover:bg-[#343536] border-2 border-[#343536]":"bg-white hover:bg-gray-50 border-2 border-gray-200"),children:[(0,a.jsx)("div",{...l.dragHandleProps,className:"mt-1 p-1 rounded cursor-grab active:cursor-grabbing transition-all ".concat("dark"===F?"text-[#4F4F51] hover:text-[#818384] hover:bg-[#343536]":"text-gray-300 hover:text-gray-500 hover:bg-gray-100"),children:(0,a.jsx)(g.Z,{className:"w-4 h-4"})}),(null==S?void 0:S.expIndex)===t&&(null==S?void 0:S.bulletIndex)===r?(0,a.jsxs)("div",{className:"flex-1",children:[(0,a.jsx)("textarea",{value:Y,onChange:e=>Z(e.target.value),rows:3,autoFocus:!0,className:"w-full px-3 py-2 text-sm rounded border-2 ".concat("dark"===F?"bg-[#1A1A1B] text-white border-blue-500 focus:ring-2 focus:ring-[#FF4500]/20":"bg-white text-gray-900 border-blue-500 focus:ring-2 focus:ring-[#FF4500]/20")}),(0,a.jsxs)("div",{className:"flex items-center gap-2 mt-2",children:[(0,a.jsxs)("button",{onClick:ee,className:"px-3 py-1.5 text-xs font-medium rounded bg-green-600 text-white hover:bg-green-700 transition-all flex items-center gap-1",children:[(0,a.jsx)(p.Z,{className:"w-3 h-3"}),"Save"]}),(0,a.jsx)("button",{onClick:et,className:"px-3 py-1.5 text-xs font-medium rounded transition-all ".concat("dark"===F?"bg-[#343536] text-white hover:bg-[#343536]":"bg-gray-200 text-gray-700 hover:bg-gray-300"),children:"Cancel"})]})]}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"flex-1 flex items-start gap-2",children:[(0,a.jsx)("span",{className:"mt-1.5 text-xs ".concat("dark"===F?"text-[#818384]":"text-gray-400"),children:"â¢"}),(0,a.jsx)("p",{className:"text-sm leading-relaxed ".concat("dark"===F?"text-[#D7DADC]":"text-gray-700"),children:k(e)})]}),(0,a.jsxs)("div",{className:"flex items-center gap-1 opacity-0 group-hover:opacity-100 transition-opacity",children:[(0,a.jsx)("button",{onClick:()=>X(t,r,e),className:"p-1.5 rounded transition-all hover:scale-110 ".concat("dark"===F?"text-blue-400 hover:bg-blue-500/20":"text-blue-600 hover:bg-blue-100"),title:"Edit",children:(0,a.jsx)(m.Z,{className:"w-3.5 h-3.5"})}),(0,a.jsx)("button",{onClick:()=>J(t,r),className:"p-1.5 rounded transition-all hover:scale-110 ".concat("dark"===F?"text-red-400 hover:bg-red-500/20":"text-red-600 hover:bg-red-100"),title:"Delete",children:(0,a.jsx)(x.Z,{className:"w-3.5 h-3.5"})})]})]})]})},"".concat(t,"-").concat(r))),r.placeholder]})}),(0,a.jsxs)("button",{onClick:()=>
1Q(t),className:"flex items-center gap-2 px-3 py-2 rounded-full text-sm font-medium transition-all hover:scale-105 ".concat("dark"===F?"bg-[#272729] text-blue-400 hover:bg-[#343536] border border-[#343536]":"bg-gray-100 text-blue-600 hover:bg-gray-200 border border-gray-300"),children:[(0,a.jsx)(u.Z,{className:"w-4 h-4"}),"Add Achievement"]}),(0,a.jsxs)("div",{className:"mt-4 pt-4 border-t border-dashed border-[#343536]",children:[(0,a.jsx)("label",{className:"block text-xs font-medium mb-2 ".concat("dark"===F?"text-[#818384]":"text-gray-600"),children:"Environment / Tech Stack"}),(0,a.jsx)("textarea",{value:(e.techStack||[]).join(", "),onChange:r=>{let a=[...E.experiences];a[t]={...e,techStack:r.target.value.split(",").map(e=>e.trim()).filter(Boolean)},w({...E,experiences:a})},rows:2,placeholder:"C#, ASP.NET, SQL Server, Azure, React...",className:"w-full px-3 py-2 rounded-lg border-2 text-sm transition-all focus:ring-2 ".concat("dark"===F?"bg-[#272729] text-white border-[#343536] focus:border-blue-500 focus:ring-[#FF4500]/20":"bg-white text-gray-900 border-gray-300 focus:border-blue-500 focus:ring-[#FF4500]/20")}),(0,a.jsx)("p",{className:"text-xs mt-1 ".concat("dark"===F?"text-[#818384]":"text-gray-400"),children:'Separate technologies with commas. Shows as "Environment:" in Executive template.'})]})]},e.id||t))})})]}),E.skillsSection&&(0,a.jsxs)(v.E.div,{initial:{y:20,opacity:0},animate:{y:0,opacity:1},transition:{delay:.4},className:"p-6 rounded-xl border-2 ".concat("dark"===F?"bg-[#1A1A1B] border-[#343536]":"bg-white border-[#EDEFF1]"),children:[(0,a.jsx)("h3",{className:"text-lg font-bold mb-4 ".concat("dark"===F?"text-white":"text-gray-900"),children:"Skills"}),E.skillsSection.technical&&(0,a.jsxs)("div",{className:"mb-4",children:[(0,a.jsx)("label",{className:"block text-xs font-medium mb-2 ".concat("dark"===F?"text-[#818384]":"text-gray-600"),children:"Technical Skills"}),(0,a.jsx)("textarea",{value:I,onChange:e=>P(e.target.value),onBlur:e=>w({...E,skillsSection:{...E.skillsSection,technical:e.target.value.split(",").map(e=>e.trim()).filter(Boolean)}}),rows:3,className:"w-full px-4 py-3 rounded-lg border-2 text-sm transition-all focus:ring-2 ".concat("dark"===F?"bg-[#272729] text-white border-[#343536] focus:border-blue-500 focus:ring-[#FF4500]/20":"bg-white text-gray-900 border-gray-300 focus:border-blue-500 focus:ring-[#FF4500]/20"),placeholder:"Enter skills separated by commas"})]}),E.skillsSection.soft&&(0,a.jsxs)("div",{children:[(0,a.jsx)("label",{className:"block text-xs font-medium mb-2 ".concat("dark"===F?"text-[#818384]":"text-gray-600"),children:"Soft Skills"}),(0,a.jsx)("textarea",{value:T,onChange:e=>_(e.target.value),onBlur:e=>w({...E,skillsSection:{...E.skillsSection,soft:e.target.value.split(",").map(e=>e.trim()).filter(Boolean)}}),rows:2,className:"w-full px-4 py-3 rounded-lg border-2 text-sm transition-all focus:ring-2 ".concat("dark"===F?"bg-[#272729] text-white border-[#343536] focus:border-blue-500 focus:ring-[#FF4500]/20":"bg-white text-gray-900 border-gray-300 focus:border-blue-500 focus:ring-[#FF4500]/20"),placeholder:"Enter skills separated by commas"})]})]}),(0,a.jsx)(j,{id:"education",title:"Education",defaultOpen:!0,children:(0,a.jsxs)(v.E.div,{initial:{y:20,opacity:0},animate:{y:0,opacity:1},transition:{delay:.5},className:"p-6 rounded-xl border-2 ".concat("dark"===F?"bg-[#1A1A1B] border-[#343536]":"bg-white border-[#EDEFF1]"),children:[(0,a.jsx)("h3",{className:"text-lg font-bold mb-4 ".concat("dark"===F?"text-white":"text-gray-900"),children:"Education"}),(0,a.jsxs)("div",{className:"space-y-4",children:[(E.education||[]).map((e,t)=>{var r,l,o,s,n,i,c,u;return(0,a.jsxs)("div",{className:"p-4 rounded-lg border-2 relative ".concat("dark"===F?"bg-[#272729] border-[#343536]":"bg-gray-50 border-gray-200"),children:[(0,a.jsx)("button",{onClick:()=>{let e=(E.education||[]).filter((e,r)=>r!==t);w({...E,education:e})},className:"absolute top-2 right-2 p-1.5 rounded-lg transition-colors ".concat("dark"===F?"hover:bg-red-500/20 text-[#818384] hover:text-red-400":"hover:bg-red-50 text-gray-400 hover:text-red-500"),title:"Remove education","aria-label":"Remove education ".concat(e.degree),children:(0,a.jsx)(x.Z,{className:"w-4 h-4"})}),(0,a.jsxs)("div",{className:"mb-2",children:[(0,a.jsx)("input",{type:"text",value:e.degree||"",onChange:r=>{let a=[...E.education||[]];a[t]={...e,degree:r.target.value},w({...E,education:a})},className:"w-full pr-10 text-base font-bold px-2 py-1 rounded border-2 transition-all hover:border-blue-500/20 focus:border-blue-500 ".concat((null===(r=U[t])||void 0===r?void 0:r.degree)?"border-red-500":"border-transparent"," ").concat("dark"===F?"bg-[#1A1A1B] text-white":"bg-white text-gray-900"),placeholder:"Degree * (e.g., Bachelor of Science)"}),(null===(l=U[t])||void 0===l?void 0:l.degree)&&(0,a.jsxs)("p",{className:"text-xs text-red-500 mt-1 flex items-center gap-1",children:[(0,a.jsx)(d.Z,{className:"w-3 h-3"}),U[t].degree]})]}),(0,a.jsx)("div",{className:"mb-2",children:(0,a.jsx)("input",{type:"text",value:e.field||"",onChange:r=>{let a=[...E.education||[]];a[t]={...e,field:r.target.value},w({...E,education:a})},className:"w-full text-sm px-2 py-1 rounded border-2 border-transparent transition-all hover:border-blue-500/20 focus:border-blue-500 ".concat("dark"===F?"bg-[#1A1A1B] text-[#D7DADC]":"bg-white text-gray-700"),placeholder:"Field of Study (e.g., Computer Science)"})}),(0,a.jsxs)("div",{className:"mb-1",children:[(0,a.jsx)("input",{type:"text",value:e.institution||e.school||"",onChange:r=>{let a=[...E.education||[]];a[t]={...e,institution:r.target.value,school:r.target.value},w({...E,education:a})},className:"w-full text-sm font-medium px-2 py-1 rounded border-2 transition-all hover:border-blue-500/20 focus:border-blue-500 ".concat((null===(o=U[t])||void 0===o?void 0:o.institution)?"border-red-500":"border-transparent"," ").concat("dark"===F?"bg-[#1A1A1B] text-[#D7DADC]":"bg-white text-gray-700"),placeholder:"Institution *"}),(null===(s=U[t])||void 0===s?void 0:s.institution)&&(0,a.jsxs)("p",{className:"text-xs text-red-500 mt-1 flex items-center gap-1",children:[(0,a.jsx)(d.Z,{className:"w-3 h-3"}),U[t].institution]})]}),(0,a.jsx)("div",{className:"mb-2",children:(0,a.jsx)("input",{type:"text",value:e.location||"",onChange:r=>{let a=[...E.education||[]];a[t]={...e,location:r.target.value},w({...E,education:a})},className:"w-full text-xs px-2 py-1 rounded border-2 border-transparent transition-all hover:border-blue-500/20 focus:border-blue-500 ".concat("dark"===F?"bg-[#1A1A1B] text-[#818384]":"bg-white text-gray-600"),placeholder:"Location (optional)"})}),(0,a.jsxs)("div",{className:"grid grid-cols-3 gap-2 mt-2",children:[(0,a.jsx)("input",{type:"text",value:(null===(n=e.startYear)||void 0===n?void 0:n.toString())||"",onChange:r=>{let a=[...E.education||[]];a[t]={...e,startYear:r.target.value?parseInt(r.target.value):void 0},w({...E,education:a})},className:"text-xs px-2 py-1 rounded border-2 border-transparent transition-all hover:border-blue-500/20 focus:border-blue-500 ".concat("dark"===F?"bg-[#1A1A1B] text-[#818384]":"bg-white text-gray-600"),placeholder:"Start Year"}),(0,a.jsxs)("div",{children:[(0,a.jsx)("input",{type:"text",value:(null===(i=e.endYear)||void 0===i?void 0:i.toString())||e.graduationDate||e.endDate||"",onChange:r=>{let a=[...E.education||[]],l=r.target.value?parseInt(r.target.value):void 0;a[t]={...e,endYear:l,graduationDate:r.target.value||void 0,endDate:r.target.value||void 0,year:l},w({...E,education:a})},className:"w-full text-xs px-2 py-1 rounded border-2 transition-all hover:border-blue-500/20 focus:border-blue-500 ".concat((null===(c=U[t])||void 0===c?void 0:c.endYear)?"border-red-500":"border-transparent"," ").concat("dark"===F?"bg-[#1A1A1B] text-[#818384]":"bg-white text-gray-600"),placeholder:"End Year *"}),(null===(u=U[t])||void 0===u?void 0:u.endYear)&&(0,a.jsxs)("p",{className:"text-xs text-red-500 mt-1 flex items-center gap-1",children:[(0,a.jsx)(d.Z,{className:"w-3 h-3"}),"Required"]})]}),(0,a.jsx)("input",{type:"text",value:e.gpa||"",onChange:r=>{let a=[...E.education||[]];a[t]={...e,gpa:r.target.value},w({...E,education:a})},className:"text-xs px-2 py-1 rounded border-2 border-transparent transition-all hover:border-blue-500/20 focus:border-blue-500 ".concat("dark"===F?"bg-[#1A1A1B] text-[#818384]":"bg-white text-gray-600"),placeholder:"GPA (optional)"})]})]},e.id||t)}),(0,a.jsxs)("button",{onClick:()=>
1{let e={id:"edu-".concat(Date.now()),degree:"",institution:"",field:"",startYear:void 0,endYear:new Date().getFullYear(),gpa:""};w({...E,education:[...E.education||[],e]})},className:"w-full py-2 px-4 rounded-full border-2 border-dashed transition-colors flex items-center justify-center gap-2 ".concat("dark"===F?"border-[#343536] hover:border-blue-500 text-[#818384] hover:text-blue-400":"border-gray-300 hover:border-blue-500 text-gray-500 hover:text-blue-600"),children:[(0,a.jsx)(u.Z,{className:"w-4 h-4"}),(0,a.jsx)("span",{className:"text-sm font-medium",children:"Add Education"})]})]})]})}),(0,a.jsx)(j,{id:"certifications",title:"Certifications",defaultOpen:!0,children:(0,a.jsxs)(v.E.div,{initial:{y:20,opacity:0},animate:{y:0,opacity:1},transition:{delay:.6},className:"p-6 rounded-xl border-2 ".concat("dark"===F?"bg-[#1A1A1B] border-[#343536]":"bg-white border-[#EDEFF1]"),children:[(0,a.jsx)("h3",{className:"text-lg font-bold mb-4 ".concat("dark"===F?"text-white":"text-gray-900"),children:"Certifications"}),(0,a.jsxs)("div",{className:"space-y-4",children:[(E.certifications||[]).map((e,t)=>{var r;return(0,a.jsxs)("div",{className:"p-4 rounded-lg border-2 relative ".concat("dark"===F?"bg-[#272729] border-[#343536]":"bg-gray-50 border-gray-200"),children:[(0,a.jsx)("button",{onClick:()=>{let e=(E.certifications||[]).filter((e,r)=>r!==t);w({...E,certifications:e})},className:"absolute top-2 right-2 p-1.5 rounded-lg transition-colors ".concat("dark"===F?"hover:bg-red-500/20 text-[#818384] hover:text-red-400":"hover:bg-red-50 text-gray-400 hover:text-red-500"),title:"Remove certification","aria-label":"Remove certification ".concat(e.name),children:(0,a.jsx)(x.Z,{className:"w-4 h-4"})}),(0,a.jsx)("input",{type:"text",value:e.name||"",onChange:r=>{let a=[...E.certifications||[]];a[t]={...e,name:r.target.value},w({...E,certifications:a})},className:"w-full pr-10 text-base font-bold mb-2 px-2 py-1 rounded border-2 border-transparent transition-all hover:border-blue-500/20 focus:border-blue-500 ".concat("dark"===F?"bg-[#1A1A1B] text-white":"bg-white text-gray-900"),placeholder:"Certification Name"}),(0,a.jsxs)("div",{className:"grid grid-cols-2 gap-2",children:[(0,a.jsx)("input",{type:"text",value:e.issuer||"",onChange:r=>{let a=[...E.certifications||[]];a[t]={...e,issuer:r.target.value},w({...E,certifications:a})},className:"text-xs px-2 py-1 rounded border-2 border-transparent transition-all hover:border-blue-500/20 focus:border-blue-500 ".concat("dark"===F?"bg-[#1A1A1B] text-[#818384]":"bg-white text-gray-600"),placeholder:"Issuer"}),(0,a.jsx)("input",{type:"text",value:(null===(r=e.year)||void 0===r?void 0:r.toString())||"",onChange:r=>{let a=[...E.certifications||[]];a[t]={...e,year:r.target.value?parseInt(r.target.value):void 0},w({...E,certifications:a})},className:"text-xs px-2 py-1 rounded border-2 border-transparent transition-all hover:border-blue-500/20 focus:border-blue-500 ".concat("dark"===F?"bg-[#1A1A1B] text-[#818384]":"bg-white text-gray-600"),placeholder:"Year"})]})]},e.id||t)}),(0,a.jsxs)("button",{onClick:()=>{let e={id:"cert-".concat(Date.now()),name:"",issuer:"",year:new Date().getFullYear()};w({...E,certifications:[...E.certifications||[],e]})},className:"w-full py-2 px-4 rounded-full border-2 border-dashed transition-colors flex items-center justify-center gap-2 ".concat("dark"===F?"border-[#343536] hover:border-blue-500 text-[#818384] hover:text-blue-400":"border-gray-300 hover:border-blue-500 text-gray-500 hover:text-blue-600"),children:[(0,a.jsx)(u.Z,{className:"w-4 h-4"}),(0,a.jsx)("span",{className:"text-sm font-medium",children:"Add Certification"})]}),D&&D.length>0&&(0,a.jsxs)("div",{className:"relative mt-2",children:[(0,a.jsxs)("button",{onClick:()=>M(!z),className:"w-full py-2 px-4 rounded-lg border-2 transition-colors flex items-center justify-center gap-2 ".concat("dark"===F?"border-blue-600 bg-blue-600/10 hover:bg-blue-600/20 text-blue-400":"border-blue-500 bg-blue-50 hover:bg-blue-100 text-blue-600"),children:[(0,a.jsx)(h.Z,{className:"w-4 h-4"}),(0,a.jsxs)("span",{className:"text-sm font-medium",children:["Add from Profile (",D.length,")"]}),(0,a.jsx)(y.Z,{className:"w-4 h-4 transition-transform ".concat(z?"rotate-180":"")})]}),z&&(0,a.jsx)("div",{className:"absolute top-full left-0 right-0 mt-1 rounded-lg border-2 shadow-lg z-50 max-h-60 overflow-y-auto ".concat("dark"===F?"bg-[#272729] border-[#343536]":"bg-white border-[#
1EDEFF1]"),children:D.map((e,t)=>{var r;let l=null===(r=E.certifications)||void 0===r?void 0:r.some(t=>{var r,a,l,o;return(null===(r=t.name)||void 0===r?void 0:r.toLowerCase())===(null===(a=e.name)||void 0===a?void 0:a.toLowerCase())&&(null===(l=t.issuer)||void 0===l?void 0:l.toLowerCase())===(null===(o=e.issuer)||void 0===o?void 0:o.toLowerCase())});return(0,a.jsxs)("button",{onClick:()=>{if(!l){let r={id:"cert-".concat(Date.now(),"-").concat(t),name:e.name||"",issuer:e.issuer||"",year:e.year||new Date().getFullYear()};w({...E,certifications:[...E.certifications||[],r]})}M(!1)},disabled:l,className:"w-full px-4 py-3 text-left transition-colors flex items-center justify-between ".concat(l?"dark"===F?"bg-[#343536] text-[#818384] cursor-not-allowed":"bg-gray-100 text-gray-400 cursor-not-allowed":"dark"===F?"hover:bg-[#343536] text-white":"hover:bg-gray-50 text-gray-900"),children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("div",{className:"font-medium text-sm ".concat(l?"line-through":""),children:e.name||"Unnamed Certification"}),(0,a.jsxs)("div",{className:"text-xs ".concat("dark"===F?"text-[#818384]":"text-gray-500"),children:[e.issuer,e.year?" ⢠".concat(e.year):""]})]}),l&&(0,a.jsx)("span",{className:"text-xs px-2 py-1 rounded ".concat("dark"===F?"bg-green-500/20 text-green-400":"bg-green-100 text-green-600"),children:"Added"})]},e.id||t)})})]})]})]})}),E.projects&&E.projects.length>0&&(0,a.jsxs)(v.E.div,{initial:{y:20,opacity:0},animate:{y:0,opacity:1},transition:{delay:.7},className:"p-6 rounded-xl border-2 ".concat("dark"===F?"bg-[#1A1A1B] border-[#343536]":"bg-white border-[#EDEFF1]"),children:[(0,a.jsx)("h3",{className:"text-lg font-bold mb-4 ".concat("dark"===F?"text-white":"text-gray-900"),children:"Projects"}),(0,a.jsx)("div",{className:"space-y-4",children:E.projects.map((e,t)=>{var r;return(0,a.jsxs)("div",{className:"p-4 rounded-lg border-2 ".concat("dark"===F?"bg-[#272729] border-[#343536]":"bg-gray-50 border-gray-200"),children:[(0,a.jsx)("input",{type:"text",value:e.name,onChange:r=>{let a=[...E.projects];a[t]={...e,name:r.target.value},w({...E,projects:a})},className:"w-full text-base font-bold mb-2 px-2 py-1 rounded border-2 border-transparent transition-all hover:border-blue-500/20 focus:border-blue-500 ".concat("dark"===F?"bg-[#1A1A1B] text-white":"bg-white text-gray-900"),placeholder:"Project Name"}),(0,a.jsx)("input",{type:"text",value:e.role||"",onChange:r=>{let a=[...E.projects];a[t]={...e,role:r.target.value},w({...E,projects:a})},className:"w-full text-sm mb-2 px-2 py-1 rounded border-2 border-transparent transition-all hover:border-blue-500/20 focus:border-blue-500 ".concat("dark"===F?"bg-[#1A1A1B] text-[#D7DADC]":"bg-white text-gray-700"),placeholder:"Your Role"}),(0,a.jsx)("input",{type:"text",value:(null===(r=e.techStack)||void 0===r?void 0:r.join(", "))||"",onChange:r=>{let a=[...E.projects];a[t]={...e,techStack:r.target.value.split(",").map(e=>e.trim()).filter(Boolean)},w({...E,projects:a})},className:"w-full text-xs px-2 py-1 rounded border-2 border-transparent transition-all hover:border-blue-500/20 focus:border-blue-500 ".concat("dark"===F?"bg-[#1A1A1B] text-[#818384]":"bg-white text-gray-600"),placeholder:"Technologies (comma separated)"}),(0,a.jsx)("textarea",{value:e.description||"",onChange:r=>{let a=[...E.projects];a[t]={...e,description:r.target.value},w({...E,projects:a})},rows:3,className:"w-full text-sm px-2 py-2 rounded border-2 border-transparent transition-all hover:border-blue-500/20 focus:border-blue-500 ".concat("dark"===F?"bg-[#1A1A1B] text-white":"bg-white text-gray-700"),placeholder:"Project Description (optional)"})]},t)})})]}),(0,a.jsx)("div",{className:"h-20"})]})})})}},31855:function(e,t,r){r.d(t,{Z:function(){return a}});let a=(0,r(63759).Z)("Pen",[["path",{d:"M17 3a2.85 2.83 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5Z",key:"5qss01"}]])}}]);
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.