PageSourceSearch

https://vizops360.ai/assets/resumeDataBridge-DM2-54vw.js

js vizops360.ai collected 2026-10-05 13:51:18 UTC 161,384 bytes, 298 lines download raw bytes

1import{r as se,j as e,bq as gt,br as bt,bs as vt,v as Lt,S as jt,a5 as At,cB as Tt,al as $t,ao as Z,bc as Me,bd as ze,b9 as be,as as we,at as ve,w as Bt,aK as Ke,j_ as et,a8 as Ge,a7 as Fe,M as Ve,j3 as yt,a1 as Nt,du as rt,a9 as Rt,b1 as Ot,aa as Ht,bG as _t,X as Mt,u as De,fH as zt}from"./index-CpeGhXo5.js";import{i as Kt,a as Se,G as wt,s as ye,b as Gt,c as Ft}from"./forbiddenResumeTerms-5-QApUge.js";import{E as Vt}from"./earth-DVK62as_.js";import{F as Wt}from"./file-check-DgOG7DHv.js";import{t as Le,a as Ae,b as _}from"./sectionUtils-BvjwZB9d.js";const Ks=[{id:"teal",name:"Teal Modern",primary:"#00b894",primaryDark:"#008a6e",secondary:"#00cec9",accentBg:"#e6fffa",text:"#2d3748",sidebarBg:"#f7fafc"},{id:"navy",name:"Classic Navy",primary:"#1e3799",primaryDark:"#0c2461",secondary:"#4a69bd",accentBg:"#ebf8ff",text:"#1e293b",sidebarBg:"#f8fafc"},{id:"emerald",name:"Emerald Executive",primary:"#059669",primaryDark:"#047857",secondary:"#10b981",accentBg:"#ecfdf5",text:"#1f2937",sidebarBg:"#f9fafb"},{id:"burgundy",name:"Burgundy Rich",primary:"#881337",primaryDark:"#4c0519",secondary:"#be123c",accentBg:"#fff1f2",text:"#27272a",sidebarBg:"#fafafa"},{id:"slate",name:"Corporate Slate",primary:"#334155",primaryDark:"#0f172a",secondary:"#475569",accentBg:"#f1f5f9",text:"#0f172a",sidebarBg:"#f8fafc"},{id:"violet",name:"Creative Violet",primary:"#6d28d9",primaryDark:"#4c1d95",secondary:"#8b5cf6",accentBg:"#f5f3ff",text:"#1e1b4b",sidebarBg:"#faf5ff"},{id:"coral",name:"Sunset Coral",primary:"#e17055",primaryDark:"#d63031",secondary:"#fab1a0",accentBg:"#fff5f5",text:"#2d3436",sidebarBg:"#fafafa"},{id:"charcoal",name:"Minimal Monochrome",primary:"#18181b",primaryDark:"#09090b",secondary:"#3f3f46",accentBg:"#f4f4f5",text:"#18181b",sidebarBg:"#fafafa"}],Jt=new Set;function Gs(t,s,o,i){return!t.sectionKey||!s||t.sectionKey!==s?!1:t.itemId?!(o!==t.itemId||t.field&&i&&t.field!==i):!o}const qt=se.createContext({highlightedIds:Jt,mode:"idle",isHighlighted:()=>!1,matchesLocation:()=>!1});function kt(){return se.useContext(qt)}function ot({warning:t}){const s="w-2.5 h-2.5 shrink-0";return t.source==="ats"||t.type==="tip"?t.source==="ats"?e.jsx(jt,{className:s}):e.jsx(At,{className:s}):t.type==="warning"?e.jsx(Tt,{className:s}):e.jsx($t,{className:s})}const c=({value:t,onChange:s,placeholder:o="Click to edit text...",multiline:i=!1,className:d="",tagName:p="span",warning:n,onFixWarning:f,onAiRefineRequest:j,onDark:B=!1,commitOnBlur:S=!1})=>{const[C,O]=se.useState(!1),[u,w]=se.useState(!1),[y,H]=se.useState(t),q=se.useRef(null),M=se.useRef(null);se.useEffect(()=>{C||H(t)},[t,C]);const h=I=>{O(!1);const z=I.trim();z!==t&&s(z||t)},{isHighlighted:P,matchesLocation:G,mode:F}=kt(),te=!!(n?.id&&P(n.id)||G(n?.sectionKey,n?.itemId,n?.field));se.useEffect(()=>{C&&q.current&&(q.current.focus(),q.current.tagName==="TEXTAREA"&&(q.current.style.height="auto",q.current.style.height=q.current.scrollHeight+"px"))},[C]);const X=`${Math.min(Math.max((S?y:t).length+1,18),72)}ch`;se.useEffect(()=>()=>{M.current&&clearTimeout(M.current)},[]),se.useEffect(()=>{te&&w(!0)},[te]);function U(){M.current&&(clearTimeout(M.current),M.current=null),w(!0)}function ee(){M.current&&clearTimeout(M.current),M.current=setTimeout(()=>{w(!1),M.current=null},200)}const D=!t||t.trim()==="",g=D?o:t,k=n?.source==="ats",r=!!n?.proposedText?.trim(),l=k?"bg-sky-500":n?.type==="warning"?"bg-amber-500":n?.type==="tip"?"bg-sky-500":"bg-rose-500",b=n?k||n.type==="tip"?"bg-sky-500/10 outline outline-1 outline-sky-400/80":n.type==="warning"?"bg-amber-500/10 outline outline-1 outline-amber-400/70":"bg-rose-500/10 outline outline-1 outline-rose-400/70":"",E=te?F==="applied"?"resume-issue-pulse resume-issue-pulse-applied z-[5]":k||n?.type==="tip"?"resume-issue-pulse resume-issue-pulse-sky z-[5]":n?.type==="warning"?"resume-issue-pulse resume-issue-pulse-amber z-[5]":"resume-issue-pulse resume-issue-pulse-rose z-[5]":"";if(C)return i?e.jsx("div",{className:"relative inline-block w-full min-w-0 max-w-full",children:e.jsx("textarea",{ref:q,value:S?y:t,onChange:I=>{S?H(I.target.value):s(I.target.value)},onBlur:()=>{S?h(y):O(!1)},onKeyDown:I=>{I.key==="Escape"&&(S&&H(t),O(!1))},placeholder:o,rows:3,className:`w-full bg-teal-500/10 border-b-2 border-teal-500 rounded p-1 text-inherit font-inherit focus:outline-none resize-y ${d}`})}):e.jsx("textarea",{ref:q,rows:1,value:S?y:t,onChange:I=>{S?H(I.target.value):s(I.target.value),I.target.style.height="auto",I.target.style.height=I.target.scrollHeight+"px"},onBlur:()=>{S?h(y):O(!1)},onKeyDown:I=>{I.key==="Enter"&&(I.preventDefault(),S?h(y):O(!1)),I.key==="Escape"&&(S&&H(t),O(!1))},placeholder:o,style:{width:X},className:`relative z-10 bg-teal-500/10 border-b-2 border-teal-500 rounded px-1 text-inherit font-inherit focus:outline-none max-w-full resize-none overflow-hidden ${d}`});const K=p;return e.jsxs("span",{className:`group/editable relative inline items-center max-w-full${D?" no-print":""}`,"data-warning-id":n?.id||void 0,"data-resume-section":n?.sectionKey||void 0,"data-resume-item":n?.itemId||void 0,"data-resume-field":n?.field||void 0,children:[e.jsx(K,{onClick:()=>
1O(!0),className:`cursor-pointer transition rounded px-0.5 break-words [overflow-wrap:anywhere] hover:bg-teal-500/10 hover:outline hover:outline-1 hover:outline-teal-400 ${D?B?"italic text-white/90 border-b border-dashed border-white/70":"italic text-slate-600 border-b border-dashed border-slate-500":""} ${b} ${E} ${d}`,children:g}),n&&e.jsxs(gt,{open:u,onOpenChange:I=>{M.current&&(clearTimeout(M.current),M.current=null),w(I)},children:[e.jsx("span",{className:"relative inline-block ml-1 no-print align-middle",onMouseEnter:U,onMouseLeave:ee,children:e.jsx(bt,{asChild:!0,children:e.jsx("button",{type:"button",onClick:I=>I.stopPropagation(),className:`resume-warning-badge w-4 h-4 rounded-full ${l} text-white flex items-center justify-center shadow-md hover:scale-125 transition ${te?"scale-125 ring-2 ring-offset-1 ring-current animate-bounce":"animate-pulse"}`,title:n.title,"aria-expanded":u,children:e.jsx(ot,{warning:n})})})}),e.jsxs(vt,{side:"bottom",align:"end",sideOffset:8,collisionPadding:16,onOpenAutoFocus:I=>I.preventDefault(),onCloseAutoFocus:I=>I.preventDefault(),onMouseEnter:U,onMouseLeave:ee,onClick:I=>I.stopPropagation(),className:"z-[200] w-72 max-w-[min(18rem,calc(100vw-1.5rem))] bg-slate-900 text-white text-[11px] p-2.5 rounded-lg shadow-xl border border-slate-700 space-y-1.5 pointer-events-auto",children:[e.jsxs("div",{className:`font-semibold flex items-start gap-1 ${k||n.type==="tip"?"text-sky-300":n.type==="warning"?"text-amber-300":"text-rose-400"}`,children:[e.jsx(ot,{warning:n}),e.jsx("span",{className:"min-w-0 break-words",children:n.title})]}),n.description?e.jsx("p",{className:"text-slate-300 text-[10px] leading-tight break-words",children:n.description}):null,r?e.jsxs("div",{className:"rounded border border-slate-600 bg-slate-800/80 px-2 py-1.5 space-y-0.5",children:[e.jsx("div",{className:"text-[9px] uppercase tracking-wide text-slate-400",children:"Proposed replacement"}),e.jsx("p",{className:"text-sky-100 text-[10px] leading-snug break-words",children:n.proposedText})]}):n.suggestion?e.jsx("p",{className:"text-slate-400 text-[10px] italic break-words",children:n.suggestion}):null,f&&e.jsx("button",{type:"button",onClick:I=>{I.stopPropagation(),w(!1),f(n)},className:`mt-0.5 w-full py-1.5 font-bold rounded text-[10px] flex items-center justify-center gap-1 ${r?"bg-sky-500 text-slate-950":"bg-teal-500 text-slate-950"}`,children:r?e.jsxs(e.Fragment,{children:[e.jsx(Lt,{className:"w-3 h-3"}),"Replace with proposed text"]}):e.jsxs(e.Fragment,{children:[e.jsx(jt,{className:"w-3 h-3"}),"Auto-Fix with AI"]})}),j&&!r?e.jsx("button",{type:"button",onClick:I=>{I.stopPropagation(),w(!1),j(t)},className:"w-full py-0.5 text-[10px] text-slate-300 underline",children:"Edit manually…"}):null]})]})]})},tt=({section:t,theme:s,onUpdateSection:o,onRemoveSection:i,onUpdateTitle:d,onHideSection:p,bulletMarker:n,itemMarker:f})=>{const j=n??e.jsx("span",{className:"text-slate-400 shrink-0 mt-0.5 select-none",children:"•"}),[B,S]=se.useState(null),C=t.contentType??"items",O=()=>{const g={id:`cs-item-${Date.now()}`,title:"Item / Role Title",subtitle:"Organization / Institution",date:"2024",description:"Short summary or key description of this activity or custom record.",bullets:["Key accomplishment or detail."]};o({...t,items:[...t.items,g]})},u=(g,k)=>{o({...t,items:t.items.map(r=>r.id===g?{...r,...k}:r)})},w=g=>{o({...t,items:t.items.filter(k=>k.id!==g)})},y=(g,k)=>{const r=k==="up"?g-1:g+1;if(r<0||r>=t.items.length)return;const l=[...t.items],b=l[g];l[g]=l[r],l[r]=b,o({...t,items:l})},H=g=>{const k=t.items.find(r=>r.id===g);k&&u(g,{bullets:[...k.bullets,"New detail bullet point."]})},q=(g,k)=>{const r=t.items.find(l=>l.id===g);r&&u(g,{bullets:r.bullets.filter((l,b)=>b!==k)})},M=t.bullets??[],h=()=>{o({...t,bullets:[...M,"New bullet point."]})},P=(g,k)=>{const r=[...M];r[g]=k,o({...t,bullets:r})},G=g=>{o({...t,bullets:M.filter((k,r)=>r!==g)})},F=t.keyValues??[],te=()=>{o({...t,keyValues:[...F,{key:"Label",value:"Value"}]})},X=(g,k,r)=>{const l=F.map((b,E)=>E===g?{...b,[k]:r}:b);o({...t,keyValues:l})},U=g=>{o({...t,keyValues:F.filter((k,r)=>r!==g)})},ee=g=>{o({...t,paragraph:g})},D=({addAction:g,addLabel:k})=>e.jsxs("div",{className:"flex items-center justify-between border-b-2 border-slate-200 pb-1 group/section",children:[e.jsx("h3",{className:"text-sm font-bold uppercase tracking-wider flex items-center gap-2",style:{color:s.primary},children:e.jsx(c,{value:t.title,onChange:d,placeholder:"Custom Section Title"})}),e.jsxs("div",{className:"no-print flex items-center gap-1",children:[g&&e.jsxs("button",{onClick:g,className:"text-[11px] font-bold px-2.5 py-1 rounded-full bg-emerald-100 hover:bg-emerald-200 text-emerald-800 flex items-center gap-1 transition shadow-sm",title:k??"Add entry",children:[e.jsx(Z,{className:"w-3.5 h-3.5"}),k??"Add Entry"]}),p?e.jsx("button",{type:"button",onClick:p,className:"p-1 text-slate-400 hover:text-rose-600 rounded opacity-0 group-hover/section:opacity-100 transition",title:"Hide this section",children:e.jsx(ve,{className:"w-3.5 h-3.5"})}):null,e.jsx("button",{onClick:()=>i(t.id),className:"p-1 text-slate-400 hover:text-rose-600 rounded opacity-0 group-hover/section:opacity-100 transition",title:"Delete this section",children:e.jsx(be,{className:"w-3.5 h-3.5"})})]})]});return C==="paragraph"?e.jsxs("div",{className:"space-y-3 my-4",children:[e.jsx(D,{}),e.jsx("div",{className:"text-xs text-slate-600 leading-relaxed",children:e.jsx(c,{value:t.paragraph??"",onChange:ee,multiline:!0,placeholder:"Write your paragraph content here..."})})]}):C==="bullets"?e.jsxs("div",{className:"space-y-3 my-4",children:[e.jsx(D,{addAction:h,addLabel:"Add Bullet"}),e.jsx("ul",{className:"list-none space-y-1.5 text-xs text-slate-700",children:M.map((g,k)=>e.jsxs("li",{className:"group/bullet flex items-start gap-1.5 list-none",children:[j,e.jsx("span",{className:"flex-1 min-w-0",children:e.jsx(c,{value:g,onChange:r=>P(k,r),multiline:!0,placeholder:"Bullet point..."})}),e.jsx("button",{onClick:()=>G(k),className:"no-print opacity-0 group-hover/bullet:opacity-100 text-rose-500 hover:text-rose-700 ml-1 text-[10px] shrink-0",title:"Remove bullet",children:"×"})]},k))}),M.length===0&&e.jsx("p",{className:"text-[11px] text-muted-foreground italic",children:'No bullets yet — click "Add Bullet" to start.'})]}):C==="keyvalue"?e.jsxs("div",{className:"space-y-3 my-4",children:[e.jsx(D,{addAction:te,addLabel:"Add Row"}),e.jsx("div",{className:"space-y-1.5",children:F.map((g,k)=>e.jsxs("div",{className:"group/kv flex items-center gap-2 text-xs",children:[e.jsx("div",{className:"font-semibold text-slate-700 w-[5.5rem] shrink-0 min-w-0",children:e.jsx(c,{value:g.key,onChange:r=>X(k,"key",r),placeholder:"Label"})}),e.jsx("span",{className:"text-slate-400 shrink-0",children:":"}),e.jsx("div",{className:"flex-1 min-w-0 break-words text-slate-600",children:e.jsx(c,{value:g.value,onChange:r=>X(k,"value",r),placeholder:"Value"})}),e.jsx("button",{onClick:()=>U(k),className:"no-print opacity-0 group-hover/kv:opacity-100 text-rose-500 hover:text-rose-700 shrink-0 text-[10px]",title:"Remove row",children:"×"})]},k))}),F.length===0&&e.jsx("p",{className:"text-[11px] text-muted-foreground italic",children:'No rows yet — click "Add Row" to start.'})]}):e.jsxs("div",{className:"space-y-4 my-4",children:[e.jsx(D,{addAction:O}),e.jsxs("div",{className:we("space-y-5",f&&"space-y-3"),children:[t.items.map((g,k)=>{const r=e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"flex items-baseline justify-between gap-2",children:[e.jsx("h4",{className:"text-sm font-bold text-slate-800 min-w-0 break-words",children:e.jsx(c,{value:g.title,onChange:l=>u(g.id,{title:l}),placeholder:"Entry Title"})}),g.date!==void 0&&e.jsx("span",{className:"text-[11px] font-mono text-slate-500 bg-slate-100 px-2 py-0.5 rounded shrink-0",children:e.jsx(c,{value:g.date,onChange:l=>u(g.id,{date:l}),placeholder:"Year / Date"})})]}),g.subtitle!==void 0&&e.jsx("div",{className:"text-xs font-semibold text-slate-600 break-words",children:e.jsx(c,{value:g.subtitle,onChange:l=>u(g.id,{subtitle:l}),placeholder:"Organization / Subtitle"})}),e.jsx("div",{className:"text-xs text-slate-600 leading-relaxed pt-0.5 break-words",children:e.jsx(c,{value:g.de
1scription,onChange:l=>u(g.id,{description:l}),multiline:!0,placeholder:"Description text..."})}),g.bullets&&g.bullets.length>0&&e.jsx("ul",{className:"space-y-1 text-xs text-slate-700 pt-1",children:g.bullets.map((l,b)=>e.jsxs("li",{className:"group/bullet flex items-start gap-1.5 list-none",children:[j,e.jsx("span",{className:"flex-1 min-w-0 break-words",children:e.jsx(c,{value:l,onChange:E=>{const K=[...g.bullets];K[b]=E,u(g.id,{bullets:K})},multiline:!0,placeholder:"Bullet point..."})}),e.jsx("button",{onClick:()=>q(g.id,b),className:"no-print opacity-0 group-hover/bullet:opacity-100 text-rose-500 hover:text-rose-700 ml-1 text-[10px] shrink-0",title:"Remove bullet",children:"×"})]},b))}),e.jsx("div",{className:"no-print pt-1",children:e.jsxs("button",{onClick:()=>H(g.id),className:"text-[10px] text-teal-600 hover:text-teal-800 font-medium flex items-center gap-0.5 opacity-60 hover:opacity-100 transition",children:[e.jsx(Z,{className:"w-3 h-3"}),"Add Bullet"]})})]});return e.jsxs("div",{onMouseEnter:()=>S(g.id),onMouseLeave:()=>S(null),className:we("relative group/item",f?"flex items-start gap-2":"pl-3 border-l-2 border-slate-200 hover:border-teal-500 transition space-y-1"),children:[B===g.id&&e.jsxs("div",{className:"no-print absolute -left-8 top-0 flex flex-col gap-1 bg-white border border-slate-200 rounded p-1 shadow-md z-20",children:[e.jsx("button",{onClick:()=>y(k,"up"),disabled:k===0,className:"p-1 hover:bg-slate-100 disabled:opacity-20 rounded",title:"Move up",children:e.jsx(Me,{className:"w-3 h-3"})}),e.jsx("button",{onClick:()=>y(k,"down"),disabled:k===t.items.length-1,className:"p-1 hover:bg-slate-100 disabled:opacity-20 rounded",title:"Move down",children:e.jsx(ze,{className:"w-3 h-3"})}),e.jsx("button",{onClick:()=>w(g.id),className:"p-1 hover:bg-rose-100 text-rose-600 rounded",title:"Delete item",children:e.jsx(be,{className:"w-3 h-3"})})]}),f?e.jsxs(e.Fragment,{children:[f,e.jsx("div",{className:"flex-1 min-w-0 space-y-1",children:r})]}):r]},g.id)}),t.items.length===0&&e.jsx("p",{className:"text-[11px] text-muted-foreground italic",children:'No entries yet — click "Add Entry" to start.'})]})]})};function V({sectionKey:t,itemId:s,field:o,warningId:i,className:d,children:p,...n}){const{isHighlighted:f,matchesLocation:j,mode:B}=kt(),S=!!(i&&f(i))||j(t,s,o);return e.jsx("div",{...n,"data-resume-section":t,"data-resume-item":s||void 0,"data-resume-field":o||void 0,"data-warning-id":i||void 0,className:we("min-w-0 max-w-full",d,S&&"rounded-sm outline outline-2 resume-issue-pulse",S&&B==="applied"&&"resume-issue-pulse-applied",S&&B!=="applied"&&"resume-issue-pulse-sky"),children:p})}const Yt=["Elementary","Limited Working","Professional Working","Full Professional","Native or Bilingual"],Qt={Elementary:"Elementary Proficiency","Limited Working":"Limited Working Proficiency","Professional Working":"Professional Working Proficiency","Full Professional":"Full Professional Proficiency","Native or Bilingual":"Native or Bilingual Proficiency"};function oe(t,s=3){const o=typeof t=="number"?t:Number(t);return Number.isFinite(o)?Math.min(5,Math.max(1,Math.round(o))):s}function Re(t){const s=(t||"").trim().toLowerCase();return{elementary:1,"limited working":2,limited:2,"professional working":3,professional:3,fluent:4,"full professional":4,native:5,bilingual:5,"native or bilingual":5,"bilingual/native":5}[s]??3}function Ne(t){return Yt[oe(t)-1]}function st(t){const s=t.level!=null?oe(t.level):Re(t.proficiency),o=Ne(s);return Qt[o]}function Xt(t){return oe(t,3)*20}function Zt(t){const s=t.level!=null?oe(t.level):Re(t.proficiency);return{...t,level:s,proficiency:Ne(s)}}function He({level:t,onChange:s,subjectLabel:o="Item",title:i="Proficiency Level",leftLabel:d="Elementary",rightLabel:p="Expert",children:n,className:f,accentColor:j="hsl(var(--primary))",align:B="end"}){const[S,C]=se.useState(!1),O=oe(t,3),u=se.useMemo(()=>(O-1)/4*100,[O]);return e.jsxs(gt,{open:S,onOpenChange:C,children:[e.jsx(bt,{asChild:!0,children:e.jsx("button",{type:"button",className:we("text-left rounded-sm outline-none focus-visible:ring-2 focus-visible:ring-ring","hover:opacity-90 cursor-pointer print:cursor-default print:pointer-events-none",f),title:`Set ${i.toLowerCase()} (1–5)`,children:n})}),e.jsxs(vt,{align:B,sideOffset:8,className:"w-[280px] p-4 space-y-3",onClick:w=>w.stopPropagation(),children:[e.jsxs("div",{children:[e.jsx("div",{className:"text-sm font-semibold text-foreground",children:i}),e.jsxs("div",{className:"mt-2 rounded-md bg-muted/80 px-2.5 py-1.5 text-[11px] text-muted-foreground",children:["Select level for: ",e.jsx("span",{className:"font-semibold text-foreground",children:o})]})]}),e.jsxs("div",{className:"space-y-2 pt-1",children:[e.jsxs("div",{className:"relative h-7 flex items-center px-1",children:[e.jsx("div",{className:"absolute left-1 right-1 h-1 rounded-full bg-muted"}),e.jsx("div",{className:"absolute left-1 h-1 rounded-full transition-all",style:{width:`calc(${u}% - 0px)`,backgroundColor:j,maxWidth:"calc(100% - 8px)"}}),e.jsx("div",{className:"relative z-10 flex w-full justify-between",children:[1,2,3,4,5].map(w=>{const y=w<=O;return e.jsx("button",{type:"button",onClick:()=>{s(w)},className:we("h-3.5 w-3.5 rounded-full border-2 transition-transform hover:scale-110 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",y?"border-transparent":"bg-background border-muted-foreground
1/40"),style:y?{backgroundColor:j}:void 0,"aria-label":`Level ${w} of 5`,"aria-pressed":w===O},w)})})]}),e.jsxs("div",{className:"flex justify-between text-[10px] font-medium text-muted-foreground px-0.5",children:[e.jsx("span",{children:d}),e.jsx("span",{children:p})]}),e.jsxs("div",{className:"text-center text-[11px] font-semibold text-foreground",children:[O," / 5"]})]}),e.jsxs("div",{className:"flex items-center gap-1.5 text-[10px] text-muted-foreground border-t border-border pt-2",children:[e.jsx(Bt,{className:"h-3 w-3 shrink-0"}),"Click a step to set the level. Shown on the resume as the label next to the name."]})]})]})}function _e({level:t,className:s,accentColor:o="hsl(var(--primary))",mutedColor:i="currentColor"}){const d=oe(t,3);return e.jsx("span",{className:we("inline-flex items-center gap-0.5",s),"aria-label":`Level ${d} of 5`,children:[1,2,3,4,5].map(p=>e.jsx("span",{className:"h-1.5 w-1.5 rounded-full",style:{backgroundColor:p<=d?o:i,opacity:p<=d?1:.25}},p))})}const Te=[{id:"personal",title:"Personal Details",visible:!0,column:"full"},{id:"contact",title:"Contact",visible:!0,column:"sidebar"},{id:"work",title:"Work Experience",visible:!0,column:"main"},{id:"education",title:"Education",visible:!0,column:"main"},{id:"skills",title:"Skills",visible:!0,column:"sidebar"},{id:"projects",title:"Projects",visible:!0,column:"main"},{id:"achievements",title:"Achievements",visible:!0,column:"sidebar"},{id:"languages",title:"Languages",visible:!0,column:"sidebar"},{id:"interests",title:"Interests",visible:!0,column:"sidebar"},{id:"certifications",title:"Certifications",visible:!0,column:"sidebar"}],Fs={id:"sample-prof-1",title:"Professional Resume",personalInfo:{fullName:"John Doe",title:"Senior Full Stack Software Engineer",summary:"Results-driven Software Engineer with 6+ years of experience building high-performance web applications, cloud microservices, and user-centric interfaces. Adept at leading cross-functional teams and optimizing system scalability.",email:"[email protected]",phone:"+1 (555) 382-9102",location:"San Francisco, CA",website:"https://Johndoe.dev",linkedin:"linkedin.com/in/Johndoe",github:"github.com/Johndoe"},workExperiences:[{id:"work-1",title:"Senior Full Stack Engineer",company:"TechNexus Innovations",location:"San Francisco, CA",startDate:"03/2022",endDate:"Present",current:!0,description:"Spearheaded front-end architecture migration and distributed microservices development.",bullets:["Architected and deployed React + TypeScript enterprise web app used by over 150,000 active monthly business customers.","Reduced server response latency by 42% through Node.js Redis caching layer and GraphQL query optimization.","Mentored a team of 5 junior engineers, driving code reviews, CI/CD pipeline automation, and unit test coverage to 94%."]},{id:"work-2",title:"Software Engineer",company:"CloudScale Analytics",location:"San Jose, CA",startDate:"06/2019",endDate:"02/2022",current:!1,description:"Developed real-time analytical dashboards and customer data pipelines.",bullets:["Engineered streaming data visualization canvas with Recharts and WebSockets, processing 5,000 events/sec.","Automated Docker container deployments on Kubernetes, cutting deployment pipeline time from 25 min to 6 min."]}],educations:[{id:"edu-1",degree:"B.S. in Computer Science",institution:"University of California, Berkeley",location:"Berkeley, CA",startDate:"09/2015",endDate:"05/2019",gpa:"3.85 / 4.0",description:"Focus on Distributed Systems, Algorithms, and Software Engineering Principles. Dean's List for 6 consecutive semesters."}],skills:[{id:"sk-1",name:"TypeScript & JavaScript",category:"Languages",level:5},{id:"sk-2",name:"React / Next.js",category:"Frontend",level:5},{id:"sk-3",name:"Node.js & Express",category:"Backend",level:5},{id:"sk-4",name:"Python & FastApi",category:"Backend",level:4},{id:"sk-5",name:"Tailwind CSS & UI Design",category:"Frontend",level:5},{id:"sk-6",name:"PostgreSQL & Redis",category:"Database",level:4},{id:"sk-7",name:"Docker & AWS / GCP",category:"DevOps",level:4}],projects:[{id:"proj-1",name:"AI Resume & Portfolio Engine",role:"Lead Creator",startDate:"01/2024",endDate:"Present",description:"Interactive resume creation platform with live formatting warnings and AI feedback.",bullets:["Integrated Gemini AI model for real-time section refinement and ATS syntax analysis.","Created custom client rendering pipeline supporting high-resolution vector PDF exp
1ort."]}],achievements:[{id:"ach-1",title:"Hackathon 1st Place Winner",organization:"SF Developer Week 2023",date:"2023",description:"Won top honor among 80+ teams for building an open-source real-time collaboration canvas."}],languages:[{id:"lang-1",name:"English",level:5,proficiency:"Native or Bilingual"},{id:"lang-2",name:"Spanish",level:3,proficiency:"Professional Working"}],interests:[{id:"int-1",name:"Open Source Tech"},{id:"int-2",name:"UI Architecture"},{id:"int-3",name:"UI/UX Prototyping"}],certifications:[{id:"cert-1",name:"AWS Certified Solutions Architect",issuer:"Amazon Web Services",date:"2023"}],sectionsOrder:Te},Vs={id:"sample-student",title:"Student / Fresh Graduate",personalInfo:{fullName:"Claire Russel",title:"Computer Science Undergraduate",summary:"Motivated and enthusiastic undergraduate seeking a summer software engineering internship. Skilled in Data Structures, React, Python, and cloud fundamentals.",email:"[email protected]",phone:"+1 (555) 901-4433",location:"Chicago, IL",github:"github.com/claire-russel",linkedin:"linkedin.com/in/claire-russel"},workExperiences:[{id:"w-stud-1",title:"Peer Computer Science Tutor",company:"Illinois University CS Dept",location:"Chicago, IL",startDate:"09/2023",endDate:"Present",current:!0,description:"Guided 40+ students weekly in Java, Python, and Object-Oriented Programming concepts.",bullets:["Held bi-weekly office hours aiding students with code debugging and algorithm design.","Created practice coding problems for midterm exam reviews."]}],educations:[{id:"e-stud-1",degree:"B.S. in Computer Science",institution:"Illinois Institute of Technology",startDate:"2022",endDate:"2026 (Expected)",gpa:"3.9 / 4.0",description:"Relevant Coursework: Algorithms, Web Development, Software Engineering, Database Systems."}],skills:[{id:"s-st-1",name:"Python",category:"Languages",level:4},{id:"s-st-2",name:"Java & C++",category:"Languages",level:4},{id:"s-st-3",name:"React & HTML/CSS",category:"Web",level:4},{id:"s-st-4",name:"Git & GitHub",category:"Tools",level:5}],projects:[{id:"p-st-1",name:"Community STEM Outreach Portal",role:"Lead Frontend Developer",startDate:"01/2023",endDate:"05/2023",description:"Web application coordinating STEM workshops for underserved youth in Chicago.",bullets:["Designed accessible React user interface serving 300+ registered student participants.","Organized sponsorship events, helping secure $8,000 in educational grants."]}],achievements:[{id:"a-st-1",title:"Google Women Techmakers Scholar",organization:"Google",date:"2024",description:"Selected among top candidates nationwide for academic excellence and leadership."}],languages:[{id:"l-st-1",name:"English",level:5,proficiency:"Native or Bilingual"},{id:"l-st-2",name:"German",level:1,proficiency:"Elementary"}],interests:[{id:"i-st-1",name:"Artificial Intelligence"},{id:"i-st-2",name:"Competitive Programming"}],certifications:[{id:"c-st-1",name:"Google Cloud Digital Leader",issuer:"Google Cloud",date:"2024"}],sectionsOrder:[{id:"personal",title:"Personal Details",visible:!0,column:"full"},{id:"contact",title:"Contact",visible:!0,column:"sidebar"},{id:"education",title:"Education",visible:!0,column:"main"},{id:"projects",title:"Projects",visible:!0,column:"main"},{id:"work",title:"Work Experience",visible:!0,column:"main"},{id:"skills",title:"Skills",visible:!0,column:"sidebar"},{id:"achievements",title:"Achievements",visible:!0,column:"sidebar"},{id:"languages",title:"Languages",visible:!0,column:"sidebar"},{id:"interests",title:"Interests",visible:!0,column:"sidebar"},{id:"certifications",title:"Certifications",visible:!0,column:"sidebar"}]};function ne(t,s){const o=t.sectionsOrder.find(i=>i.id===s);return o?o.visible!==!1:!0}function Q(t){return!!(t&&t.trim())}function Ee(t,s){switch(s){case"personal":case"contact":return!0;case"work":return t.workExperiences.some(o=>Q(o.title)||!Se(o.company)&&Q(o.company)||o.bullets.some(i=>Q(i)));case"education":return t.educations.some(o=>Q(o.degree)||Q(o.institution)||Q(o.description)||Q(o.gpa)||Q(o.location)||Q(o.startDate)||Q(o.endDate));case"skills":return t.skills.some(o=>Q(o.name));case"projects":return t.projects.some(o=>Q(o.name)||Q(o.description)||o.bullets.some(i=>Q(i)));case"certifications":return t.certifications.some(o=>Q(o.name)||Q(o.issuer));case"achievements":return t.achievements.some(o=>Q(o.title)||Q(o.description));case"languages":return t.languages.some(o=>Q(o.name));case"interests":return t.interests.some(o=>Q(o.name));default:{const o=t.customSections?.find(i=>i.id===s);return!o||o.visible===!1?!1:Q(o.paragraph)||(o.bullets||[]).some(i=>Q(i))||(o.keyValues||[]).some(i=>Q(i.key)||Q(i.value))?!0:o.items.some(i=>Q(i.title)||Q(i.subtitle)||Q(i.description)||(i.bullets||[]).some(d=>Q(d)))}}}function Ws(t){const s=t.sectionsOrder.map(i=>!i.visible||i.id==="personal"||i.id==="contact"||Ee(t,i.id)?i:{...i,visible:!1}),o=(t.customSections||[]).map(i=>Ee(t,i.id)?i:{...i,visible:!1});return{...t,sectionsOrder:s,customSections:o}}
1const Ut=new Set(["achievements","languages","interests"]);function it(t){const s=new Set(t.map(d=>d.id)),o=Te.filter(d=>!s.has(d.id));if(!o.length)return t;const i=[...t];for(const d of o){const p=Ut.has(d.id)?{...d,visible:!1}:{...d};if(d.id==="contact"){const n=i.findIndex(f=>f.id==="personal");i.splice(n>=0?n+1:0,0,p)}else i.push(p)}return i}function ie(t,s,o){if(!t.sectionsOrder.some(d=>d.id===s)){const d=Te.find(p=>p.id===s)??{id:s,title:String(s),visible:o,column:"sidebar"};return{...t,sectionsOrder:it([...t.sectionsOrder,{...d,visible:o}])}}return{...t,sectionsOrder:t.sectionsOrder.map(d=>d.id===s?{...d,visible:o}:d),customSections:t.customSections?.map(d=>d.id===s?{...d,visible:o}:d)}}const es=[{key:"email",hideKey:"hideEmail"},{key:"phone",hideKey:"hidePhone"},{key:"location",hideKey:"hideLocation"},{key:"linkedin",hideKey:"hideLinkedin"},{key:"github",hideKey:"hideGithub"},{key:"website",hideKey:"hideWebsite"}];function ts(t){return es.some(({key:s,hideKey:o})=>t[o]?!1:!!String(t[s]??"").trim())}function de(t,s){const o=s==null?null:Array.isArray(s)?s:[s];return t.sectionsOrder.filter(i=>!i.visible||i.id==="personal"||i.id==="contact"?!1:o?o.includes(i.column):!0)}function We(t){return t.sectionsOrder.filter(s=>s.visible&&s.column==="full"&&s.id!=="personal"&&s.id!=="contact")}const at=new Set(["personal","contact"]);function Js(t){const s=t.sectionsOrder.some(i=>i.column==="full"&&!at.has(i.id)),o=t.customSections?.some(i=>i.column==="full")??!1;return!s&&!o?t:{...t,sectionsOrder:t.sectionsOrder.map(i=>i.column==="full"&&!at.has(i.id)?{...i,column:"main"}:i),customSections:t.customSections?.map(i=>i.column==="full"?{...i,column:"main"}:i)}}function Ct(t,s){return t.customSections?.find(o=>o.id===s)}function Ze(t,s,o){return{...t,sectionsOrder:t.sectionsOrder.map(i=>i.id===s?{...i,title:o}:i),customSections:t.customSections?.map(i=>i.id===s?{...i,title:o}:i)}}function St(t,s){return{...t,customSections:(t.customSections||[]).map(o=>o.id===s.id?s:o)}}function ss(t,s){return{...t,customSections:(t.customSections||[]).filter(o=>o.id!==s),sectionsOrder:t.sectionsOrder.filter(o=>o.id!==s)}}function $e(t){return t.trim().toLowerCase().replace(/&/g,"and").replace(/[^a-z0-9]+/g," ").replace(/\s+/g," ").trim()}function is(t){const s=$e(t);return/^(skills?|technical skills?|core (expertise|skills?)|key skills?|skill set)$/.test(s)}function ns(t,s){const o=$e(t),i=$e(s);return!!(o&&i&&o===i)}function qs(t){return Kt(t)}const Be="__vizops360_studio_layout__";function J({onClick:t,title:s="Hide section",className:o,alwaysVisible:i}){return e.jsx("button",{type:"button",onClick:t,className:`no-print p-1 rounded text-slate-400 hover:text-rose-500 focus:opacity-100 transition ${i?"opacity-100":"opacity-0 group-hover/sechead:opacity-100"} ${o??""}`,title:s,"aria-label":s,children:e.jsx(ve,{className:"w-3.5 h-3.5"})})}function Et({photoUrl:t,onUpload:s,onHide:o,onClear:i,frameClassName:d="w-20 h-20 rounded-full bg-slate-100 border-2 border-slate-300",placeholderClassName:p="text-slate-400",overlayRadiusClass:n="rounded-full"}){return e.jsxs("div",{className:`relative group/photo shrink-0${t?"":" no-print"}`,children:[e.jsxs("label",{className:"cursor-pointer block",children:[e.jsx("input",{type:"file",accept:"image/*",onChange:s,className:"hidden"}),e.jsxs("div",{className:`${d} flex items-center justify-center overflow-hidden shadow-sm group-hover/photo:border-teal-500 transition`,children:[t?e.jsx("img",{src:t,alt:"Profile",className:"w-full h-full object-cover"}):e.jsx(Ke,{className:`w-1/2 h-1/2 ${p}`}),e.jsxs("div",{className:`no-print absolute inset-0 bg-slate-900/60 opacity-0 group-hover/photo:opacity-100 focus-within:opacity-100 transition flex flex-col items-center justify-center text-white text-[10px] font-medium ${n}`,children:[e.jsx(et,{className:"w-4 h-4 mb-0.5"}),e.jsx("span",{children:t?"Change":"Upload"})]})]})]}),e.jsx("button",{type:"button",onClick:o,className:"no-print absolute -top-1 -left-1 bg-white text-slate-600 border border-slate-200 w-5 h-5 rounded-full flex items-center justify-center opacity-0 group-hover/photo:opacity-100 focus:opacity-100 transition shadow",title:"Hide profile photo","aria-label":"Hide profile photo",children:e.jsx(ve,{className:"w-3 h-3"})}),t?e.jsx("button",{type:"button",onClick:i,className:"no-print absolute -top-1 -right-1 bg-rose-500 text-white w-5 h-5 rounded-full flex items-center justify-center text-xs font-bold opacity-0 group-hover/photo:opacity-100 focus:opacity-100 transition shadow",title:"Remove profile photo","aria-label":"Remove profile photo",children:"×"}):null]})}function Je({onShow:t}){return e.jsxs("button",{type:"button",onClick:t,className:"no-print inline-flex items-center gap-1 text-[10px] font-semibold text-slate-500 hover:text-teal-700 border border-dashed border-slate-300 hover:border-teal-400 rounded-full px-2 py-0.5",title:"Show profile photo",children:[e.jsx(Ke,{className:"w-3 h-3"}),"Photo"]})}const he="resume-section-heading text-sm font-bold uppercase tracking-wider flex items-center gap-1.5",xe="resume-section-icon w-3.5 h-3.5 shrink-0",Ce="resume-contact-icon w-3.5 h-3.5 shrink-0 text-slate-400",ct=({data:t,theme:s,warnings:o,onUpdate:i,onFixWarning:d,onAiRefineText:p})=>{const[n,f]=se.useState(null),[j,B]=se.useState(!1),S=m=>{i(ie(t,m,!1))},C=ne(t,"personal"),O=ne(t,"contact"),u=ts(t.personalInfo),w=O&&(u||j),y=(m,$,a,R)=>{const A=o.filter(W=>W.sectionKey!==m||a&&W.itemId&&W.itemId!==a?!1:R!==void 0?W.bulletIndex===R&&(!W.field||W.field==="bullets"||W.field===$):W.bulletIndex!==void 0?!1:$?!W.field||W.field===$:!0);if($){const W=A.find(pe=>pe.field===$);if(W)return W}return A.find(W=>W.source==="ats"&&W.proposedText)||A.find(W=>W.type==="error")||A[0]},H=(m,$)=>
1{i({...t,personalInfo:{...t.personalInfo,[m]:$}})},q=m=>{const $=m.target.files?.[0];if(!$)return;const a=new FileReader;a.onload=R=>{const A=R.target?.result;i({...t,personalInfo:{...t.personalInfo,photoUrl:A,hidePhoto:!1}})},a.readAsDataURL($)},M=(m,$)=>{const a=t.sectionsOrder.map(A=>A.id===m?{...A,title:$}:A),R=t.customSections?.map(A=>A.id===m?{...A,title:$}:A);i({...t,sectionsOrder:a,customSections:R})},h=m=>{const $=t.customSections?.map(a=>a.id===m.id?m:a)||[];i({...t,customSections:$})},P=m=>{i({...t,sectionsOrder:t.sectionsOrder.filter($=>$.id!==m),customSections:t.customSections?.filter($=>$.id!==m)})},G=()=>{const m={id:`w-${Date.now()}`,title:"Title / Position",company:"Organization / Company",location:"City, Country",startDate:"mm / yyyy",endDate:"mm / yyyy",current:!1,description:"Short description of your role and responsibilities.",bullets:["Accomplishment or key project achievement."]};i({...t,workExperiences:[...t.workExperiences,m]})},F=(m,$)=>{i({...t,workExperiences:t.workExperiences.map(a=>a.id===m?{...a,...$}:a)})},te=m=>{i({...t,workExperiences:t.workExperiences.filter($=>$.id!==m)})},X=(m,$)=>{const a=$==="up"?m-1:m+1;if(a<0||a>=t.workExperiences.length)return;const R=[...t.workExperiences],A=R[m];R[m]=R[a],R[a]=A,i({...t,workExperiences:R})},U=()=>{const m={id:`e-${Date.now()}`,degree:"Study Program / Degree",institution:"Institution / Organization",startDate:"mm / yyyy",endDate:"mm / yyyy",description:"Relevant coursework or GPA."};i({...t,educations:[...t.educations,m]})},ee=(m,$)=>{i({...t,educations:t.educations.map(a=>a.id===m?{...a,...$}:a)})},D=m=>{i({...t,educations:t.educations.filter($=>$.id!==m)})},g=()=>{const m={id:`s-${Date.now()}`,name:"New Skill",level:4};i({...t,skills:[...t.skills,m]})},k=(m,$)=>{const a=typeof $=="string"?{name:$}:$;i({...t,skills:t.skills.map(R=>R.id===m?{...R,...a}:R)})},r=m=>{i({...t,skills:t.skills.filter($=>$.id!==m)})},l=()=>{const m={id:`p-${Date.now()}`,name:"Project Name",role:"Role",description:"Brief summary of the project goals and tech stack.",bullets:["Project achievement or metric."]};i({...t,projects:[...t.projects,m]})},b=(m,$)=>{i({...t,projects:t.projects.map(a=>a.id===m?{...a,...$}:a)})},E=m=>{i({...t,projects:t.projects.filter($=>$.id!==m)})},K=m=>{const $=t.workExperiences.find(a=>a.id===m);$&&F(m,{bullets:[...$.bullets||[],"New accomplishment."]})},I=(m,$)=>{const a=t.workExperiences.find(R=>R.id===m);a&&F(m,{bullets:(a.bullets||[]).filter((R,A)=>A!==$)})},z=m=>{const $=t.projects.find(a=>a.id===m);$&&b(m,{bullets:[...$.bullets||[],"New project highlight."]})},x=(m,$)=>{const a=t.projects.find(R=>R.id===m);a&&b(m,{bullets:(a.bullets||[]).filter((R,A)=>A!==$)})},L=()=>{const m={id:`a-${Date.now()}`,title:"Achievement Title",organization:"Organization / Institution",description:"Brief context."};i({...t,achievements:[...t.achievements,m]})},v=()=>{const $={id:`l-${Date.now()}`,name:"Language",level:3,proficiency:Ne(3)};i({...t,languages:[...t.languages,$]})},T=()=>{const m={id:`i-${Date.now()}`,name:"Interest"};i({...t,interests:[...t.interests,m]})},N=(m,$,a,R)=>{if(R)return null;const A=String(t.personalInfo[m]??""),W=!!A.trim();return!W&&!j?null:e.jsxs("div",{className:`resume-contact-row group/citem${W?"":" no-print"}`,children:[$,e.jsx(c,{value:A,onChange:pe=>H(m,pe),placeholder:a,warning:y("personal",m),onFixWarning:d}),e.jsx("button",{type:"button",onClick:()=>H(m,""),className:"no-print opacity-0 group-hover/citem:opacity-100 text-rose-500 hover:text-rose-700 text-[11px] leading-none",title:`Delete ${a}`,children:"×"})]})},ae=m=>{const $=t.customSections?.find(a=>a.id===m.id);return $?e.jsx(tt,{section:$,theme:s,onUpdateSection:h,onRemoveSection:P,onUpdateTitle:a=>M(m.id,a),onHideSection:()=>S(m.id),onAiRefineText:p},m.id):m.id==="skills"?e.jsxs(V,{sectionKey:"skills",className:"space-y-3",children:[e.jsxs("div",{className:"flex items-center justify-between border-b-2 border-slate-200 pb-1 group/sechead",children:[e.jsxs("h3",{className:he,style:{color:s.primary},children:[e.jsx("span",{className:"inline-flex h-4 w-4 shrink-0 items-center justify-center",children:e.jsx(rt,{className:xe,"aria-hidden":!0})}),e.jsx(c,{value:m.title,onChange:a=>M(m.id,a),placeholder:"Skills",warning:y("skills"),onFixWarning:d})]}),e.jsxs("div",{className:"no-print flex items-center gap-1",children:[e.jsxs("button",{onClick:g,className:"text-[11px] font-bold px-2 py-0.5 rounded-full bg-emerald-100 hover:bg-emerald-200 text-emerald-800 flex items-center gap-1",children:[e.jsx(Z,{className:"w-3 h-3"}),"Add"]}),e.jsx(J,{onClick:()=>S(m.id)})]})]}),e.jsx("div",{className:"resume-chip-row flex flex-wrap items-start content-start gap-2 min-w-0",children:t.skills.map(a=>e.jsxs("div",{className:"resume-chip group relative inline-flex items-start align-top max-w-full min-w-0 px-2.5 py-1.5 rounded-md bg-slate-100 hover:bg-slate-200 text-xs font-semibold text-slate-700 transition leading-snug break-words",children:[e.jsx(c,{value:a.name,onChange:R=>k(a.id,{name:R}),className:"whitespace-normal break-words leading-snug"}),e.jsx("button",{type:"button",onClick:()=>r(a.id),className:"no-print opacity-0 group-hover:opacity-100 text-rose-500 hover:text-rose-700 text-[10px] ml-1.5 leading-none",children:"×"})]},a.id))})]},"skills"):m.id==="languages"?e.jsxs(V,{sectionKey:"languages",className:"space-y-3",children:[e.jsxs("div",{className:"flex items-center justify-between border-b-2 border-slate-200 pb-1 group/sechead",children:[e.jsxs("h3",{className:he,style:{color:s.primary},children:[e.jsx("span",{className:"inline-flex h-4 w-4 shrink-0 items-center justify-center",children:e.jsx(Vt,{className:xe,"aria-hidden":!0})}),e.jsx(c,{value:m.title,onChange:a=>M(m.id,a),placeholder:"Languages"})]}),e.jsxs("div",{className:"no-print flex items-center gap-1",children:[e.jsxs("button",{onClick:v,className:"text-[11px] font-bold px-2 py-0.5 rounded-full bg-emerald-100 hover:bg-emerald-200 text-emerald-800 flex items-center gap-1",children:[e.jsx(Z,{className:"w-3 h-3"}),"Add"]}),e.jsx(J,{onClick:()=>S(m.id)})]})]}),e.jsx("div",{className:"space-y-2",children:t.languages.map(a=>{const R=a.level!=null?oe(a.level):Re(a.proficiency);return e.jsxs("div",{className:"text-xs group/lang relative space-y-0.5 break-words",children:[e.jsxs("div",{className:"flex items-center justify-between gap-2",children:[e.jsx("span",{className:"font-bold text-slate-800 break-words min-w-0 flex-1",children:e.jsx(c,{value:a.name,onChange:A=>{i({...t,languages:t.languages.map(W=>W.id===a.id?{...W,name:A}:W)})}})}),e.jsxs("div",{className:"flex items-center gap-1.5",children:[e.jsx(_e,{level:R,accentColor:s.primary}),e.jsx("button",{type:"button",onClick:()=>{i({...t,languages:t.languages.filter(A=>A.id!==a.id)})},className:"no-print opacity-0 group-hover/lang:opacity-100 text-rose-500 hover:text-rose-700 text-[10px]",children:"×"})]})]}),e.jsx(He,{level:R,onChange:A=>{i({...t,languages:t.languages.map(W=>W.id===a.id?{...W,level:A,proficiency:Ne(A)}:W)})},subjectLabel:a.name||"Language",title:"Proficiency Level",leftLabel:"Elementary",rightLabel:"Bilingual/Native",accentColor:s.primary,children:e.jsx("span",{className:"italic text-slate-500 font-serif text-[11px]",children:st(a)})})]},a.id)})})]},"languages"):m.id==="interests"?e.jsxs(V,{sectionKey:"interests",className:"space-y-3",children:[e.jsxs("div",{className:"flex items-center justify-between border-b-2 border-slate-200 pb-1 group/sechead",children:[e.jsxs("h3",{className:he,style:{color:s.primary},children:[e.jsx("span",{className:"inline-flex h-4 w-4 shrink-0 items-center justify-center",children:e.jsx(Rt,{className:xe,"aria-hidden":!0})}),e.jsx(c,{value:m.title,onChange:a=>M(m.id,a),placeholder:"Interests"})]}),e.jsxs("div",{className:"no-print flex items-center gap-1",children:[e.jsxs("button",{onClick:T,className:"text-[11px] font-bold px-2 py-0.5 rounded-full bg-emerald-100 hover:bg-emerald-200 text-emerald-800 flex items-center gap-1",children:[e.jsx(Z,{className:"w-3 h-3"}),"Add"]}),e.jsx(J,{onClick:()=>S(m.id)})]})]}),e.jsx("div",{className:"resume-chip-row flex flex-wrap items-start content-start gap-2 min-w-0",children:t.interests.map(a=>e.jsxs("span",{className:"resume-chip group relative inline-flex items-start align-top max-w-full min-w-0 px-2.5 py-1.5 rounded-md border border-slate-300 bg-white text-xs font-medium text-slate-700 leading-snug break-words",children:[e.jsx(c,{value:a.name,onChange:R=>{i({...t,interests:t.interests.map(A=>A.id===a.id?{...A,name:R}:A)})},className:"whitespace-normal break-words leading-snug"}),e.jsx("button",{type:"button",onClick:()=>{i({...t,interests:t.interests.filter(R=>R.id!==a.id)})},className:"no-print opacity-0 group-hover:opacity-100 text-rose-500 hover:text-rose-700 text-[10px] ml-1.5 leading-none",children:"×"})]},a.id))})]},"interests"):m.id==="achievements"?e.jsxs(V,{sectionKey:"achievements",className:"space-y-3",children:[e.jsxs("div",{className:"flex items-center justify-between border-b-2 border-slate-200 pb-1 group/sechead",children:[e.jsxs("h3",{className:he,style:{color:s.primary},children:[e.jsx("span",{className:"inline-flex h-4 w-4 shrink-0 items-center justify-center",children:e.jsx(rt,{className:xe,"aria-hidden":!0})}),e.jsx(c,{value:m.title,onChange:a=>M(m.id,a),placeholder:"Achievements"})]}),e.jsxs("div",{className:"no-print flex items-center gap-1",children:[e.jsxs("button",{onClick:L,className:"text-[11px] font-bold px-2 py-0.5 rounded-full bg-emerald-100 hover:bg-emerald-200 text-emerald-800 flex items-center gap-1",children:[e.jsx(Z,{className:"w-3 h-3"}),"Add"]}),e.jsx(J,{onClick:()=>S(m.id)})]})]}),e.jsx("div",{className:"space-y-3",children:t.achievements.map(a=>e.jsxs("div",{className:"space-y-0.5 group/ach relative",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("h4",{className:"text-xs font-bold text-slate-800",children:e.jsx(c,{value:a.title,onChange:R=>{i({...t,achievements:t.achievements.map(A=>A.id===a.id?{...A,title:R}:A)})}})}),e.jsx("button",{onClick:()=>{i({...t,achievements:t.achievements.filter(R=>R.id!==a.id)})},className:"no-print opacity-0 group-hover/ach:opacity-100 text-rose-500 hover:text-rose-700 text-[10px]",children:"×"})]}),e.jsx("p",{className:"text-[11px] text-slate-600",children:e.jsx(c,{value:a.description,onChange:R=>{i({...t,achievements:t.achievements.map(A=>A.id===a.id?{...A,description:R}:A)})}})})]},a.id))})]},"achievements"):m.id==="certifications"?e.jsxs(V,{sectionKey:"certifications",className:"space-y-3",children:[e.jsxs("div",{className:"flex items-center justify-between border-b-2 border-slate-200 pb-1 group/sechead",children:[e.jsxs("h3",{className:he,style:{color:s.primary},children:[e.jsx("span",{className:"inline-flex h-4 w-4 shrink-0 items-center justify-center",children:e.jsx(Wt,{className:xe,"aria-hidden":!0})}),e.jsx(c,{value:m.title,onChange:a=>M(m.id,a),placeholder:"Certifications"})]}),e.jsx(J,{onClick:()=>S(m.id)})]}),e.jsx("div",{className:"space-y-2",children:t.certifications.map(a=>e.jsxs("div",{className:"text-xs space-y-0.5",children:[e.jsx("div",{className:"font-bold text-slate-800",children:e.jsx(c,{value:a.name,onChange:R=>{i({...t,certifications:t.certifications.map(A=>A.id===a.id?{...A,name:R}:A)})}})}),e.jsxs("div",{className:"text-slate-600",children:[e.jsx(c,{value:a.issuer,onChange:R=>{i({...t,certifications:t.certifications.map(A=>A.id===a.id?{...A,issuer:R}:A)})}}),a.date?` · ${a.date}`:""]})]},a.id))})]},"certifications"):m.id==="work"?e.jsxs(V,{sectionKey:"work",className:"space-y-4",children:[e.jsxs("div",{className:"flex items-center justify-between border-b-2 border-slate-200 pb-1 group/sechead",children:[e.jsxs("h3",{className:he,style:{color:s.primary},children:[e.jsx("span",{className:"inline-flex h-4 w-4 shrink-0 items-center justify-center",children:e.jsx(Ot,{className:xe,"aria-hidden":!0})}),e.jsx(c,{value:m.title,onChange:a=>M(m.id,a),placeholder:"Work Experience"})]}),e.jsxs("div",{className:"no-print flex items-center gap-1",children:[e.jsxs("button",{onClick:G,className:"text-[11px] font-bold px-2.5 py-1 rounded-full bg-emerald-100 hover:bg-emerald-200 text-emerald-800 flex items-center gap-1 transition shadow-sm",children:[e.jsx(Z,{className:"w-3.5 h-3.5"}),"Add Entry"]}),e.jsx(J,{onClick:()=>S(m.id)})]})]}),e.jsx("div",{className:"space-y-6",children:t.workExperiences.map((a,R)=>e.jsxs(V,{sectionKey:"work",itemId:a.id,onMouseEnter:()=>f(a.id),onMouseLeave:()=>f(null),className:"relative group pl-3 border-l-2 border-slate-200 hover:border-teal-500 transition space-y-1.5",children:[n===a.id&&e.jsxs("div",{className:"no-print absolute -left-8 top-0 flex flex-col gap-1 bg-white border border-slate-200 rounded p-1 shadow-md z-20",children:[e.jsx("button",{onClick:()=>X(R,"up"),disabled:R===0,className:"p-1 hover:bg-slate-100 disabled:opacity-20 rounded",children:e.jsx(Me,{className:"w-3 h-3"})}),e.jsx("button",{onClick:()=>X(R,"down"),disabled:R===t.workExperiences.length-1,className:"p-1 hover:bg-slate-100 disabled:opacity-20 rounded",children:e.jsx(ze,{className:"w-3 h-3"})}),e.jsx("button",{onClick:()=>te(a.id),className:"p-1 hover:bg-rose-100 text-rose-600 rounded",children:e.jsx(be,{className:"w-3 h-3"})})]}),e.jsxs("div",{className:"flex items-baseline justify-between gap-2",children:[e.jsx("h4",{className:"text-sm font-bold text-slate-800",children:e.jsx(c,{value:a.title,onChange:A=>F(a.id,{title:A}),placeholder:"Job Title",warning:y("work","title",a.id)||y("work",void 0,a.id),onFixWarning:d})}),e.jsxs("div",{className:"text-[11px] font-mono text-slate-500 bg-slate-100 px-2 py-0.5 rounded",children:[e.jsx(c,{value:a.startDate,onChange:A=>F(a.id,{startDate:A}),placeholder:"mm/yyyy"})," ","-"," ",e.jsx(c,{value:a.current?"Present":a.endDate,onChange:A=>F(a.id,{endDate:A}),placeholder:"mm/yyyy"})]})]}),e.jsxs("div",{className:`text-xs font-semibold text-slate-600 flex items-center justify-between${Se(a.company)&&!a.location?" no-print":""}`,children:[e.jsx("span",{className:Se(a.company)?"no-print":void 0,children:e.jsx(c,{value:a.company,onChange:A=>F(a.id,{company:A}),placeholder:"Company / Organization",warning:y("work","company",a.id),onFixWarning:d})}),a.location&&e.jsx("span",{className:"text-slate-400 font-normal",children:e.jsx(c,{value:a.location,onChange:A=>F(a.id,{location:A}),placeholder:"City, Country"})})]}),a.description&&e.jsx("p",{className:"text-xs text-slate-600 leading-relaxed pt-1",children:e.jsx(c,{value:a.description,onChange:A=>F(a.id,{description:A}),multiline:!0,warning:y("work","description",a.id),onFixWarning:d})}),e.jsx("ul",{className:"resume-bullet-list text-xs text-slate-700",children:(a.bullets||[]).map((A,W)=>e.jsxs("li",{className:"resume-bullet-item group/bullet",children:[e.jsx("span",{className:"resume-bullet-marker","aria-hidden":!0,
1children:"•"}),e.jsxs("span",{className:"min-w-0 flex-1",children:[e.jsx(c,{value:A,onChange:pe=>{const lt=[...a.bullets||[]];lt[W]=pe,F(a.id,{bullets:lt})},placeholder:"Accomplishment or metric bullet...",warning:y("work","bullets",a.id,W),onFixWarning:d}),e.jsx("button",{type:"button",onClick:()=>I(a.id,W),className:"no-print ml-1.5 text-rose-500 opacity-0 group-hover/bullet:opacity-100 text-[10px] hover:text-rose-700",title:"Remove bullet",children:"×"})]})]},W))}),e.jsxs("button",{type:"button",onClick:()=>K(a.id),className:"no-print text-[10px] font-semibold text-emerald-700 hover:text-emerald-900 hover:underline flex items-center gap-0.5 pt-0.5",children:[e.jsx(Z,{className:"w-3 h-3"}),"Add bullet"]})]},a.id))})]},"work"):m.id==="education"?e.jsxs(V,{sectionKey:"education",className:"space-y-4",children:[e.jsxs("div",{className:"flex items-center justify-between border-b-2 border-slate-200 pb-1 group/sechead",children:[e.jsxs("h3",{className:he,style:{color:s.primary},children:[e.jsx("span",{className:"inline-flex h-4 w-4 shrink-0 items-center justify-center",children:e.jsx(Ht,{className:xe,"aria-hidden":!0})}),e.jsx(c,{value:m.title,onChange:a=>M(m.id,a),placeholder:"Education"})]}),e.jsxs("div",{className:"no-print flex items-center gap-1",children:[e.jsxs("button",{onClick:U,className:"text-[11px] font-bold px-2.5 py-1 rounded-full bg-emerald-100 hover:bg-emerald-200 text-emerald-800 flex items-center gap-1 transition",children:[e.jsx(Z,{className:"w-3.5 h-3.5"}),"Add Entry"]}),e.jsx(J,{onClick:()=>S(m.id)})]})]}),e.jsx("div",{className:"space-y-4",children:t.educations.map(a=>e.jsxs(V,{sectionKey:"education",itemId:a.id,className:"space-y-1 group/edu relative",children:[e.jsxs("div",{className:"flex items-baseline justify-between",children:[e.jsx("h4",{className:"text-sm font-bold text-slate-800",children:e.jsx(c,{value:a.degree,onChange:R=>ee(a.id,{degree:R}),placeholder:"Degree / Study Program"})}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsxs("span",{className:"text-[11px] font-mono text-slate-500 bg-slate-100 px-2 py-0.5 rounded",children:[a.startDate," - ",a.endDate]}),e.jsx("button",{onClick:()=>D(a.id),className:"no-print opacity-0 group-hover/edu:opacity-100 text-rose-500 hover:text-rose-700 text-xs",title:"Delete education",children:e.jsx(be,{className:"w-3 h-3"})})]})]}),e.jsx("div",{className:"text-xs text-slate-600 font-medium",children:e.jsx(c,{value:a.institution,onChange:R=>ee(a.id,{institution:R}),placeholder:"Institution Name"})}),a.description&&e.jsx("p",{className:"text-xs text-slate-600",children:e.jsx(c,{value:a.description,onChange:R=>ee(a.id,{description:R})})})]},a.id))})]},"education"):m.id==="projects"?e.jsxs(V,{sectionKey:"projects",className:"space-y-4",children:[e.jsxs("div",{className:"flex items-center justify-between border-b-2 border-slate-200 pb-1 group/sechead",children:[e.jsxs("h3",{className:he,style:{color:s.primary},children:[e.jsx("span",{className:"inline-flex h-4 w-4 shrink-0 items-center justify-center",children:e.jsx(_t,{className:xe,"aria-hidden":!0})}),e.jsx(c,{value:m.title,onChange:a=>M(m.id,a),placeholder:"Projects"})]}),e.jsxs("div",{className:"no-print flex items-center gap-1",children:[e.jsxs("button",{onClick:l,className:"text-[11px] font-bold px-2.5 py-1 rounded-full bg-emerald-100 hover:bg-emerald-200 text-emerald-800 flex items-center gap-1 transition",children:[e.jsx(Z,{className:"w-3.5 h-3.5"}),"Add Entry"]}),e.jsx(J,{onClick:()=>S(m.id)})]})]}),e.jsx("div",{className:"space-y-4",children:t.projects.map(a=>e.jsxs(V,{sectionKey:"projects",itemId:a.id,className:"space-y-1 group/proj relative",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("h4",{className:"text-sm font-bold text-slate-800",children:e.jsx(c,{value:a.name,onChange:R=>b(a.id,{name:R})})}),e.jsx("button",{type:"button",onClick:()=>E(a.id),className:"no-print opacity-0 group-hover/proj:opacity-100 text-rose-500 hover:text-rose-700 text-xs",title:"Delete project",children:e.jsx(be,{className:"w-3 h-3"})})]}),(a.link||"").trim()?e.jsx("p",{className:"text-[11px] text-sky-700 break-all",children:e.jsx(c,{value:a.link||"",onChange:R=>b(a.id,{link:R})})}):null,e.jsx("p",{className:"text-xs text-slate-600",children:e.jsx(c,{value:a.description,onChange:R=>b(a.id,{description:R}),multiline:!0})}),e.jsx("ul",{className:"resume-bullet-list text-xs text-slate-700",children:(a.bullets||[]).map((R,A)=>e.jsxs("li",{className:"resume-bullet-item group/bullet",children:[e.jsx("span",{className:"resume-bullet-marker","aria-hidden":!0,
1children:"•"}),e.jsxs("span",{className:"min-w-0 flex-1",children:[e.jsx(c,{value:R,onChange:W=>{const pe=[...a.bullets||[]];pe[A]=W,b(a.id,{bullets:pe})},placeholder:"Project achievement or metric..."}),e.jsx("button",{type:"button",onClick:()=>x(a.id,A),className:"no-print ml-1.5 text-rose-500 opacity-0 group-hover/bullet:opacity-100 text-[10px] hover:text-rose-700",title:"Remove bullet",children:"×"})]})]},A))}),e.jsxs("button",{type:"button",onClick:()=>z(a.id),className:"no-print text-[10px] font-semibold text-emerald-700 hover:text-emerald-900 hover:underline flex items-center gap-0.5 pt-0.5",children:[e.jsx(Z,{className:"w-3 h-3"}),"Add bullet"]})]},a.id))})]},"projects"):null},le=t.sectionsOrder.filter(m=>m.visible&&m.column==="sidebar"&&m.id!=="personal"&&m.id!=="contact"),me=t.sectionsOrder.filter(m=>m.visible&&m.column==="main"&&m.id!=="personal"&&m.id!=="contact"),Ie=t.sectionsOrder.filter(m=>m.visible&&m.column==="full"&&m.id!=="personal"&&m.id!=="contact"),je=le.length>0,Y=m=>{const $=ae(m);return $?Ee(t,m.id)?$:e.jsx("div",{className:"no-print",children:$},m.id):null};return e.jsxs("div",{className:"bg-white text-slate-800 p-8 sm:p-12 min-h-full h-auto w-full font-sans relative",children:[e.jsx("style",{children:`
2        .resume-section-heading {
3          display: flex;
4          align-items: center;
5          gap: 0.375rem;
6          line-height: 1.2;
7        }
8        .resume-section-heading .resume-section-icon {
9          display: block;
10          flex-shrink: 0;
11          width: 14px;
12          height: 14px;
13          /* Keep Lucide glyphs optically centered with uppercase caps */
14          margin-top: 0;
15          position: relative;
16          top: 0;
17        }
18        .resume-section-heading .group\\/editable,
19        .resume-section-heading [class*="group/editable"] {
20          display: inline-flex !important;
21          align-items: center;
22          line-height: 1.2;
23          max-width: none;
24          vertical-align: middle;
25        }
26        .resume-full-name {
27          letter-spacing: normal !important;
28          word-spacing: normal !important;
29        }
30        .resume-full-name,
31        .resume-full-name * {
32          letter-spacing: normal !important;
33          word-spacing: normal !important;
34        }
35        .resume-full-name .group\\/editable,
36        .resume-full-name [class*="group/editable"] {
37          display: inline !important;
38          max-width: 100%;
39        }
40        .resume-contact-row {
41          display: flex;
42          align-items: center;
43          justify-content: flex-start;
44          gap: 0.4rem;
45          min-height: 1.15rem;
46          line-height: 1.15rem;
47        }
48        .resume-contact-row .resume-contact-icon {
49          display: block;
50          flex-shrink: 0;
51          width: 14px;
52          height: 14px;
53        }
54        .resume-contact-row .group\\/editable,
55        .resume-contact-row [class*="group/editable"] {
56          display: inline-flex !important;
57          align-items: center;
58          line-height: 1.15rem;
59        }
60        .resume-bullet-list {
61          list-style: none;
62          margin: 0.25rem 0 0;
63          padding: 0;
64        }
65        .resume-bullet-item {
66          display: flex;
67          align-items: flex-start;
68          gap: 0.4rem;
69          margin: 0 0 0.15rem;
70          padding: 0;
71          line-height: 1.35;
72        }
73        .resume-bullet-marker {
74          flex-shrink: 0;
75          width: 0.65rem;
76          text-align: center;
77          line-height: 1.35;
78        }
79      `}),(C||O)&&e.jsxs(V,{sectionKey:"personal",className:"border-b-2 border-slate-300 pb-6 mb-8 flex flex-row justify-between items-start gap-6 group/sechead",children:[C?e.jsxs("div",{className:"flex-1 min-w-0 space-y-2",children:[e.jsxs("div",{className:"flex flex-row justify-start items-center gap-4",children:[t.personalInfo.hidePhoto?e.jsx(Je,{onShow:()=>H("hidePhoto",!1)}):e.jsx(Et,{photoUrl:t.personalInfo.photoUrl,onUpload:q,onHide:()=>H("hidePhoto",!0),onClear:()=>H("photoUrl",""),frameClassName:"w-20 h-20 rounded-full",overlayRadiusClass:"rounded-full"}),e.jsxs("div",{className:"flex flex-col justify-between items-start gap-1 min-w-0 flex-1",children:[!t.personalInfo.hideName&&e.jsxs("div",{className:"resume-full-name text-3xl sm:text-4xl font-extrabold group/pitem relative pr-6",style:{color:s.text,letterSpacing:"normal",wordSpacing:"normal"},children:[e.jsx(c,{value:t.personalInfo.fullName,onChange:m=>H("fullName",m),placeholder:"Your Full Name",warning:y("personal","fullName"),onFixWarning:d}),e.jsx("button",{type:"button",onClick:()=>H("hideName",!0),className:"no-print absolute right-0 top-1/2 -translate-y-1/2 opacity-0 group-hover/pitem:opacity-100 text-slate-400 hover:text-rose-500 transition",title:"Hide Name for anonymized submission",children:e.jsx(ve,{className:"w-4 h-4"})})]}),!t.personalInfo.hideTitle&&e.jsxs("div",{className:"text-lg sm:text-xl font-semibold opacity-90 group/pitem relative pr-6 tracking-normal",style:{color:s.primary},children:[e.jsx(c,{value:t.personalInfo.title,onChange:m=>H("title",m),placeholder:"Professional title (e.g. Senior Full Stack Developer)",warning:y("personal","title"),onFixWarning:d}),e.jsx("button",{type:"button",onClick:()=>H("hideTitle",!0),className:"no-print absolute right-0 top-1/2 -translate-y-1/2 opacity-0 group-hover/pitem:opacity-100 text-slate-400 hover:text-rose-500 transition",title:"Hide Title",children:e.jsx(ve,{className:"w-3.5 h-3.5"})})]}),e.jsxs("div",{className:"no-print flex items-center gap-2 pt-0.5",children:[e.jsx(J,{onClick:()=>S("personal"),title:"Hide personal details",alwaysVisible:!0}),O&&!w?e.jsx("button",{type:"button",onClick:()=>B(!0),className:"text-[10px] font-semibold text-slate-500 hover:text-teal-700 border border-dashed border-slate-300 hover:border-teal-400 rounded-full px-2 py-0.5",children:"+ Contact"}):null]})]})]}),!t.personalInfo.hideSummary&&e.jsxs("div",{className:`text-xs sm:text-sm text-slate-600 leading-relaxed pt-1 group/pitem relative ${w?"max-w-2xl":"max-w-full"}`,children:[e.jsx(c,{value:t.personalInfo.summary,onChange:m=>H("summary",m),placeholder:"Short and engaging pitch about yourself...",multiline:!0,warning:y("personal","summary"),onFixWarning:d}),e.jsx("button",{onClick:()=>H("hideSummary",!0),className:"no-print opacity-0 group-hover/pitem:opacity-100 absolute right-0 top-1 text-slate-400 hover:text-rose-500 transition",title:"Hide Summary",children:e.jsx(ve,{className:"w-3.5 h-3.5"})})]})]}):null,w?e.jsxs("div",{className:"relative flex flex-col items-stretch gap-1.5 shrink-0 w-[13.5rem] group/sechead",children:[e.jsx(J,{className:"absolute -top-1 -right-1 z-10",onClick:()=>S("contact"),title:"Hide contact section"}),e.jsxs("div",{className:"w-full space-y-1.5 text-xs text-slate-600",children:[N("email",e.jsx(Ge,{className:Ce,"aria-hidden":!0}),"Email",t.personalInfo.hideEmail),N("phone",e.jsx(Fe,{className:Ce,"aria-hidden":!0}),"Phone",t.personalInfo.hidePhone),N("location",e.jsx(Ve,{className:Ce,"aria-hidden":!0}),"Location",t.personalInfo.hideLocation),N("linkedin",e.jsx(yt,{className:Ce,"aria-hidden":!0}),"LinkedIn",t.personalInfo.hideLinkedin),N("github",e.jsx(wt,{className:Ce,"aria-hidden":!0}),"GitHub",t.personalInfo.hideGithub),N("website",e.jsx(Nt,{className:Ce,"aria-hidden":!0}),"Website",t.personalInfo.hideWebsite)]})]}
79):O&&!C?e.jsx("button",{type:"button",onClick:()=>B(!0),className:"no-print text-[10px] font-semibold text-slate-500 hover:text-teal-700 border border-dashed border-slate-300 rounded-full px-2 py-0.5",children:"+ Contact"}):null]}),Ie.length>0?e.jsx("div",{className:"space-y-8 mb-8",children:Ie.map(Y)}):null,e.jsxs("div",{className:`min-w-0 ${je?"resume-split-body grid grid-cols-12 gap-8":""}`,children:[e.jsx("div",{className:`${je?"col-span-7":""} min-w-0 space-y-8`,children:me.map(Y)}),je?e.jsx("div",{className:"col-span-5 min-w-0 overflow-hidden break-words space-y-8",children:le.map(Y)}):null]})]})};function ke(t,s){const o=(D,g)=>{s({...t,personalInfo:{...t.personalInfo,[D]:g}})},i=()=>{const D={id:`w-${Date.now()}`,title:"Title / Position",company:"Organization / Company",location:"City, Country",startDate:"mm / yyyy",endDate:"mm / yyyy",current:!1,description:"Short description of your role and responsibilities.",bullets:["Accomplishment or key project achievement."]};s({...t,workExperiences:[...t.workExperiences,D]})},d=(D,g)=>{s({...t,workExperiences:t.workExperiences.map(k=>k.id===D?{...k,...g}:k)})},p=D=>{s({...t,workExperiences:t.workExperiences.filter(g=>g.id!==D)})},n=(D,g)=>{const k=g==="up"?D-1:D+1;if(k<0||k>=t.workExperiences.length)return;const r=[...t.workExperiences],l=r[D];r[D]=r[k],r[k]=l,s({...t,workExperiences:r})},f=()=>{const D={id:`e-${Date.now()}`,degree:"Study Program / Degree",institution:"Institution / Organization",startDate:"mm / yyyy",endDate:"mm / yyyy",description:"Relevant coursework or GPA."};s({...t,educations:[...t.educations,D]})},j=(D,g)=>{s({...t,educations:t.educations.map(k=>k.id===D?{...k,...g}:k)})},B=D=>{s({...t,educations:t.educations.filter(g=>g.id!==D)})},S=()=>{const D={id:`s-${Date.now()}`,name:"New Skill",level:4};s({...t,skills:[...t.skills,D]})},C=(D,g)=>{const k=typeof g=="string"?{name:g}:g,r=t.skills.find(l=>l.id===D);if(r){if(k.name&&/[\cdot\u2022,;|\n]|\s+[·•]\s+/.test(k.name)){const l=k.name.split(/[\u2022,;|\n]|\s+[·•]\s+/).map(b=>b.trim()).filter(Boolean);if(l.length>1){const b=l.map((I,z)=>({id:z===0?r.id:`s-${Date.now()}-${z}`,name:I,category:r.category,level:r.level})),E=t.skills.findIndex(I=>I.id===D),K=[...t.skills];K.splice(E,1,...b),s({...t,skills:K});return}}s({...t,skills:t.skills.map(l=>l.id===D?{...l,...k}:l)})}},O=D=>{s({...t,skills:t.skills.filter(g=>g.id!==D)})},u=()=>{const D={id:`p-${Date.now()}`,name:"Project Name",role:"Role",description:"Brief summary of the project goals and tech stack.",bullets:["Project achievement or metric."]};s({...t,projects:[...t.projects,D]})},w=(D,g)=>{s({...t,projects:t.projects.map(k=>k.id===D?{...k,...g}:k)})};return{updatePersonalInfo:o,addWorkExperience:i,updateWorkExperience:d,removeWorkExperience:p,moveWorkExperience:n,addEducation:f,updateEducation:j,removeEducation:B,addSkill:S,updateSkill:C,removeSkill:O,addProject:u,updateProject:w,removeProject:D=>{s({...t,projects:t.projects.filter(g=>g.id!==D)})},addAchievement:()=>{const D={id:`a-${Date.now()}`,title:"Achievement Title",organization:"Organization / Institution",description:"Brief context."};s({...t,achievements:[...t.achievements,D]})},updateAchievement:(D,g)=>{s({...t,achievements:t.achievements.map(k=>k.id===D?{...k,...g}:k)})},removeAchievement:D=>{s({...t,achievements:t.achievements.filter(g=>g.id!==D)})},addLanguage:()=>{const g={id:`l-${Date.now()}`,name:"Language",level:3,proficiency:Ne(3)};s({...t,languages:[...t.languages,g]})},updateLanguage:(D,g)=>{s({...t,languages:t.languages.map(k=>{if(k.id!==D)return k;const r={...k,...g};return g.level!=null?(r.level=oe(g.level),r.proficiency=Ne(r.level)):g.proficiency!=null&&(r.level=Re(String(g.proficiency)),r.proficiency=Ne(r.level)),r})})},removeLanguage:D=>{s({...t,languages:t.languages.filter(g=>g.id!==D)})},addInterest:()=>{const D={id:`i-${Date.now()}`,name:"Interest"};s({...t,interests:[...t.interests,D]})},removeInterest:D=>{s({...t,interests:t.interests.filter(g=>g.id!==D)})},updateBullet:(D,g,k,r)=>{if(D==="work"){const E=t.workExperiences.find(I=>I.id===g);if(!E)return;const K=[...E.bullets];K[k]=r,d(g,{bullets:K});return}const l=t.projects.find(E=>E.id===g);if(!l)return;const b=[...l.bullets];b[k]=r,w(g,{bullets:b})},addBullet:(D,g)=>{if(D==="work"){const r=t.workExperiences.find(l=>l.id===g);if(!r)return;d(g,{bullets:[...r.bullets,"New accomplishment."]});return}const k=t.projects.find(r=>r.id===g);k&&w(g,{bullets:[...k.bullets,"New project highlight."]})},removeBullet:(D,g,k)=>{if(D==="work"){const l=t.workExperiences.find(b=>b.id===g);if(!l)return;d(g,{bullets:l.bullets.filter((b,E)=>E!==k)});return}const r=t.projects.find(l=>l.id===g);r&&w(g,{bullets:r.bullets.filter((l,b)=>b!==k)})}}}function ls({onClick:t,label:s="Add Entry"}){return e.jsxs("button",{type:"button",onClick:t,className:"no-print text-[11px] font-bold px-2.5 py-1 rounded-full bg-emerald-100 hover:bg-emerald-200 text-emerald-800 flex items-center gap-1 transition shadow-sm",children:[e.jsx(Z,{className:"w-3.5 h-3.5"}),s]})}function ce({title:t,onAdd:s,addLabel:o,onHide:i,hideTitle:d="Hide section",titleClassName:p,children:n}){return e.jsxs("div",{className:`flex items-center justify-between gap-2 group/sechead ${p??""}`,children:[e.jsx("div",{className:"min-w-0 flex-1",children:n??t}),e.jsxs("div",{className:"no-print flex items-center gap-1 shrink-0",children:[s?e.jsx(ls,{onClick:s,label:o}):null,i?e.jsx(J,{onClick:i,title:d}):null]})]})}function rs({onRemove:t,onMoveUp:s,onMoveDown:o,canMoveUp:i,canMoveDown:d,light:p}){const n=p?"bg-black/40 border-white/20 text-white":"bg-white border-slate-200 text-slate-700",f=p?"hover:bg-white/15":"hover:bg-slate-100";return e.jsxs("div",{className:`no-print absolute -left-8 top-0 flex flex-col gap-1 border rounded p-1 shadow-md z-20 opacity-0 group-hover:opacity-100 transition ${n}`,children:[s?e.jsx("button",{type:"button",onClick:s,disabled:!i,className:`p-1 disabled:opacity-20 rounded ${f}`,children:e.jsx(Me,{className:"w-3 h-3"})}):null,o?e.jsx("button",{type:"button",onClick:o,disabled:!d,className:`p-1 disabled:opacity-20 rounded ${f}`,children:e.jsx(ze,{className:"w-3 h-3"})}):null,e.jsx("button",{type:"button",onClick:t,className:"p-1 hover:bg-rose-100 text-rose-600 rounded",title:"Remove",children:e.jsx(be,{className:"w-3 h-3"})})]})}function ge({onRemove:t,onMoveUp:s,onMoveDown:o,canMoveUp:i,canMoveDown:d,className:p,children:n,light:f}){return e.jsxs("div",{className:`relative group ${p??""}`,children:[e.jsx(rs,{onRemove:t,onMoveUp:s,onMoveDown:o,canMoveUp:i,canMoveDown:d,light:f}),n]})}function dt({name:t,onChange:s,onRemove:o,level:i,onLevelChange:d,accentColor:p,className:n}){const[f,j]=se.useState(!1);return e.jsxs("span",{className:`resume-chip relative inline-flex flex-col align-top max-w-full gap-0.5 ${n??""}`,onMouseEnter:()=>j(!0),onMouseLeave:()=>j(!1),children:[e.jsx(c,{value:t,onChange:s,placeholder:"Skill",className:"whitespace-normal break-words leading-snug"}),d!=null?e.jsx(He,{level:i??3,onChange:d,subjectLabel:t||"Skill",title:"Skill Level",leftLabel:"Novice",rightLabel:"Expert",accentColor:p,al
79ign:"start",className:"w-full",children:e.jsxs("span",{className:"inline-flex items-center gap-1.5",children:[e.jsx(_e,{level:i??3,accentColor:p}),e.jsxs("span",{className:"text-[9px] font-medium opacity-70 tabular-nums",children:[oe(i,3),"/5"]})]})}):i!=null?e.jsxs("span",{className:"inline-flex items-center gap-1.5",children:[e.jsx(_e,{level:i,accentColor:p}),e.jsxs("span",{className:"text-[9px] font-medium opacity-70 tabular-nums",children:[oe(i,3),"/5"]})]}):null,f?e.jsx("button",{type:"button",onClick:o,className:"no-print absolute -top-1.5 -right-1.5 w-4 h-4 rounded-full bg-rose-500 text-white flex items-center justify-center shadow",title:"Remove skill",children:e.jsx(Mt,{className:"w-2.5 h-2.5"})}):null]})}const os={personal:"Header",work:"Experience",education:"Education",skills:"Skills",projects:"Projects",achievements:"Achievements",languages:"Languages",interests:"Interests",certifications:"Certifications",formatting:"Formatting"},as={fullName:"name",title:"title",summary:"summary",email:"email",phone:"phone",location:"location",bullets:"bullet",company:"company",description:"description",degree:"degree",institution:"school",name:"name"};function Ys(t,s){if(t==="personal"&&s==="summary")return"Summary";if(t==="personal"&&s==="title")return"Title";if(t==="personal"&&s==="fullName")return"Name";const o=os[t||""]||"Resume",i=s?as[s]:void 0;return i?`${o} · ${i}`:o}function It(t,s,o,i,d){const p=t.filter(n=>n.sectionKey!==s||i&&n.itemId&&n.itemId!==i?!1:d!==void 0?n.bulletIndex===d&&(!n.field||n.field==="bullets"||n.field===o):n.bulletIndex!==void 0?!1:o?!n.field||n.field===o:!0);if(o){const n=p.find(f=>f.field===o);if(n)return n}return p.find(n=>n.source==="ats"&&n.proposedText)||p.find(n=>n.type==="error")||p[0]}function qe(t){return typeof CSS<"u"&&typeof CSS.escape=="function"?CSS.escape(t):t.replace(/["\\]/g,"\\$&")}function Qs(t){const{warningId:s,itemId:o,sectionKey:i}=t;if(s){const d=document.querySelector(`[data-warning-id="${qe(s)}"]`);if(d)return d}if(o){const d=document.querySelector(`[data-resume-item="${qe(o)}"]`);if(d)return d}return i?document.querySelector(`[data-resume-section="${qe(i)}"]`):null}function Pt({section:t,data:s,theme:o,onUpdate:i,onAiRefineText:d,titleClassName:p="text-sm font-bold uppercase tracking-wider border-b-2 pb-1",titleStyle:n,lightChips:f,skillDisplay:j="chips",warnings:B=[],onFixWarning:S,bulletMarker:C,itemMarker:O}){const u=ke(s,i),w=n??{color:o.primary,borderColor:o.primary},y=()=>i(ie(s,t.id,!1)),H=(h,P,G)=>It(B,t.id,h,P,G),q=Ct(s,t.id);if(q)return e.jsx(tt,{section:q,theme:o,onUpdateSection:h=>i(St(s,h)),onRemoveSection:h=>i(ss(s,h)),onUpdateTitle:h=>i(Ze(s,t.id,h)),onHideSection:y,onAiRefineText:d,bulletMarker:C,itemMarker:O});if(t.id==="personal"||t.id==="contact")return null;const M=e.jsx(c,{value:t.title,onChange:h=>i(Ze(s,t.id,h))});if(t.id==="work")return e.jsxs(V,{sectionKey:"work",className:"space-y-4",children:[e.jsx(ce,{onAdd:u.addWorkExperience,onHide:y,children:e.jsx("h3",{className:p,style:w,children:M})}),s.workExperiences.map((h,P)=>e.jsx(V,{sectionKey:"work",itemId:h.id,children:e.jsxs(ge,{onRemove:()=>u.removeWorkExperience(h.id),onMoveUp:()=>u.moveWorkExperience(P,"up"),onMoveDown:()=>u.moveWorkExperience(P,"down"),canMoveUp:P>0,canMoveDown:P<s.workExperiences.length-1,className:"space-y-1 pl-2",children:[e.jsxs("div",{className:"flex justify-between font-bold text-sm gap-2",children:[e.jsx(c,{value:h.title,onChange:G=>u.updateWorkExperience(h.id,{title:G}),warning:H("title",h.id),onFixWarning:S}),e.jsxs("span",{className:"text-xs font-mono text-slate-400 shrink-0",children:[e.jsx(c,{value:h.startDate,onChange:G=>u.updateWorkExperience(h.id,{startDate:G})})," ","-"," ",e.jsx(c,{value:h.current?"Present":h.endDate,onChange:G=>u.updateWorkExperience(h.id,{endDate:G})})]})]}),e.jsx("div",{className:`text-xs font-semibold text-slate-600${Se(h.company)?" no-print":""}`,children:e.jsx(c,{value:h.company,onChange:G=>u.updateWorkExperience(h.id,{company:G}),warning:H("company",h.id),onFixWarning:S})}),e.jsx("ul",{className:"list-disc list-inside text-xs text-slate-600 space-y-0.5",children:h.bullets.map((G,F)=>e.jsxs("li",{className:"group/bullet",children:[e.jsx(c,{value:G,onChange:te=>u.updateBullet("work",h.id,F,te),multiline:!0,warning:H("bullets",h.id,F),onFixWarning:S}),e.jsx("button",{type:"button",onClick:()=>u.removeBullet("work",h.id,F),className:"no-print ml-1 text-rose-500 opacity-0 group-hover/bullet:opacity-100 text-[10px]",children:"remove"})]},F))}),e.jsx("button",{type:"button",onClick:()=>u.addBullet("work",h.id),className:"no-print text-[10px] font-semibold text-emerald-700 hover:underline",children:"+ Add bullet"})]})},h.id))]});if(t.id==="education")return e.jsxs(V,{sectionKey:"education",className:"space-y-3",children:[e.jsx(ce,{onAdd:u.addEducation,onHide:y,children:e.jsx("h3",{className:p,style:w,children:M})}),s.educations.map(h=>e.jsx(V,{sectionKey:"education",itemId:h.id,children:e.jsxs(ge,{onRemove:()=>u.removeEducation(h.id),className:"space-y-0.5 pl-2",children:[e.jsxs("div",{className:"flex justify-between font-bold text-sm gap-2",children:[e.jsx(c,{value:h.degree,onChange:P=>u.updateEducation(h.id,{degree:P}),warning:H("degree",h.id),onFixWarning:S}),e.jsxs("span",{className:"text-xs font-mono text-slate-400 shrink-0",children:[e.jsx(c,{value:h.startDate,onChange:P=>u.updateEducation(h.id,{startDate:P})})," ","-"," ",e.jsx(c,{value:h.endDate,onChange:P=>u.updateEducation(h.id,{endDate:P})})]})]}),e.jsx("div",{className:"text-xs text-slate-600",children:e.jsx(c,{value:h.institution,onChange:P=>u.updateEducation(h.id,{institution:P}),warning:H("institution",h.id),onFixWarning:S})}),h.description!==void 0?e.jsx("div",{className:"text-xs text-slate-600",children:e.jsx(c,{value:h.description||"",onChange:P=>u.updateEducation(h.id,{description:P}),multiline:!0,warning:H("description",h.id),onFixWarning:S})}):null]})},h.id))]});if(t.id==="skills")return j==="progress"?e.jsxs(V,{sectionKey:"skills",className:"space-y-3",children:[e.jsx(ce,{onAdd:u.addSkill,addLabel:"Add",onHide:y,children:e.jsx("h3",{className:p,style:w,children:M})}),e.jsx("div",{className:"space-y-2.5",children:s.skills.map(h=>{const P=Xt(h.level);return e.jsxs("div",{className:"group/skill relative space-y-1",children:[e.jsxs("div",{className:"flex items-center justify-between gap-2 text-xs",children:[e.jsx(c,{value:h.name,onChange:G=>u.updateSkill(h.id,{name:G}),placeholder:"Skill",className:"font-medium text-slate-800 min-w-0 flex-1",warning:H("skills"),onFixWarning:S}),e.jsxs("div",{className:"flex items-center gap-1.5 shrink-0",children:[e.jsx(He,{level:h.level??3,onChange:G=>u.updateSkill(h.id,{level:G}),subjectLabel:h.name||"Skill",title:"Skill Level",leftLabel:"Novice",rightLabel:"Expert",accentColor:o.primary,al
79ign:"end",children:e.jsxs("span",{className:"font-mono text-[10px] tabular-nums text-slate-500 hover:text-slate-800",children:[P,"%"]})}),e.jsx("button",{type:"button",onClick:()=>u.removeSkill(h.id),className:"no-print opacity-0 group-hover/skill:opacity-100 text-rose-500 hover:text-rose-700 text-[10px] leading-none",title:"Remove skill",children:"×"})]})]}),e.jsx("div",{className:"w-full h-1.5 rounded-full bg-slate-100 overflow-hidden",children:e.jsx("div",{className:"h-full rounded-full transition-[width] duration-200",style:{width:`${P}%`,backgroundColor:o.primary}})})]},h.id)})})]}):e.jsxs(V,{sectionKey:"skills",className:"space-y-3",children:[e.jsx(ce,{onAdd:u.addSkill,addLabel:"Add",onHide:y,children:e.jsx("h3",{className:p,style:w,children:M})}),e.jsx("div",{className:"resume-chip-row flex flex-wrap items-start content-start gap-1.5",children:s.skills.map(h=>e.jsx(dt,{name:h.name,onChange:P=>u.updateSkill(h.id,{name:P}),onRemove:()=>u.removeSkill(h.id),className:f?"px-2.5 py-1 rounded-md bg-white/20 text-[11px] font-medium text-white leading-tight":"px-2.5 py-1 text-xs font-semibold rounded-md bg-slate-100 border border-slate-200 leading-tight"},h.id))})]});if(t.id==="projects")return e.jsxs(V,{sectionKey:"projects",className:"space-y-3",children:[e.jsx(ce,{onAdd:u.addProject,onHide:y,children:e.jsx("h3",{className:p,style:w,children:M})}),s.projects.map(h=>e.jsx(V,{sectionKey:"projects",itemId:h.id,children:e.jsxs(ge,{onRemove:()=>u.removeProject(h.id),className:"space-y-1 pl-2",children:[e.jsx("div",{className:"font-bold text-sm",children:e.jsx(c,{value:h.name,onChange:P=>u.updateProject(h.id,{name:P}),warning:H("name",h.id),onFixWarning:S})}),(h.link||"").trim()?e.jsx("div",{className:"text-[11px] text-sky-700 break-all",children:e.jsx(c,{value:h.link||"",onChange:P=>u.updateProject(h.id,{link:P})})}):null,e.jsx("div",{className:"text-xs text-slate-600",children:e.jsx(c,{value:h.description,onChange:P=>u.updateProject(h.id,{description:P}),multiline:!0,warning:H("description",h.id),onFixWarning:S})}),e.jsx("ul",{className:"list-disc list-inside text-xs text-slate-600 space-y-0.5",children:(h.bullets||[]).map((P,G)=>e.jsxs("li",{className:"group/bullet",children:[e.jsx(c,{value:P,onChange:F=>u.updateBullet("project",h.id,G,F),multiline:!0,warning:H("bullets",h.id,G),onFixWarning:S}),e.jsx("button",{type:"button",onClick:()=>u.removeBullet("project",h.id,G),className:"no-print ml-1 text-rose-500 opacity-0 group-hover/bullet:opacity-100 text-[10px]",children:"remove"})]},G))}),e.jsx("button",{type:"button",onClick:()=>u.addBullet("project",h.id),className:"no-print text-[10px] font-semibold text-emerald-700 hover:underline",children:"+ Add bullet"})]})},h.id))]});if(t.id==="achievements")return e.jsxs(V,{sectionKey:"achievements",className:"space-y-3",children:[e.jsx(ce,{onAdd:u.addAchievement,onHide:y,children:e.jsx("h3",{className:p,style:w,children:M})}),s.achievements.map(h=>e.jsxs(ge,{onRemove:()=>u.removeAchievement(h.id),className:"text-xs space-y-0.5 pl-2",children:[e.jsx("div",{className:"font-bold",children:e.jsx(c,{value:h.title,onChange:P=>u.updateAchievement(h.id,{title:P})})}),e.jsx(c,{value:h.description,onChange:P=>u.updateAchievement(h.id,{description:P})})]},h.id))]});if(t.id==="languages"){const h=!!f;return e.jsxs(V,{sectionKey:"languages",className:"space-y-2",children:[e.jsx(ce,{onAdd:u.addLanguage,addLabel:"Add",onHide:y,children:e.jsx("h3",{className:p,style:w,children:M})}),s.languages.map(P=>{const G=P.level!=null?oe(P.level):Re(P.proficiency);return e.jsxs(ge,{onRemove:()=>u.removeLanguage(P.id),light:h,className:"flex flex-col gap-0.5 text-xs pl-2",children:[e.jsxs("div",{className:"flex items-center justify-between gap-2",children:[e.jsx(c,{value:P.name,onChange:F=>u.updateLanguage(P.id,{name:F}),className:h?"font-semibold text-white":"font-semibold"}),e.jsx(_e,{level:G,className:"shrink-0",accentColor:h?"#ffffff":o.primary,mutedColor:h?"rgba(255,255,255,0.35)":"currentColor"})]}),e.jsx(He,{level:G,onChange:F=>u.updateLanguage(P.id,{level:F}),subjectLabel:P.name||"Language",title:"Proficiency Level",leftLabel:"Elementary",rightLabel:"Bilingual/Native",accentColor:h?"#ffffff"
79:o.primary,children:e.jsx("span",{className:h?"italic text-[11px] text-white/90":"italic text-[11px] text-slate-500",children:st(P)})})]},P.id)})]})}if(t.id==="interests")return e.jsxs(V,{sectionKey:"interests",className:"space-y-2",children:[e.jsx(ce,{onAdd:u.addInterest,addLabel:"Add",onHide:y,children:e.jsx("h3",{className:p,style:w,children:M})}),e.jsx("div",{className:"resume-chip-row flex flex-wrap items-start content-start gap-1.5",children:s.interests.map(h=>e.jsx(dt,{name:h.name,onChange:P=>i({...s,interests:s.interests.map(G=>G.id===h.id?{...G,name:P}:G)}),onRemove:()=>u.removeInterest(h.id),className:f?"px-2.5 py-1 rounded-md bg-white/20 text-[11px] font-medium text-white leading-tight":"px-2.5 py-1 text-xs rounded-md bg-slate-100 border border-slate-200 leading-tight"},h.id))})]});if(t.id==="certifications"){const h=!!f;return e.jsxs(V,{sectionKey:"certifications",className:"space-y-2",children:[e.jsx(ce,{onHide:y,children:e.jsx("h3",{className:p,style:w,children:M})}),s.certifications.map(P=>e.jsxs("div",{className:"text-xs space-y-0.5",children:[e.jsx("div",{className:h?"font-bold text-white":"font-bold",children:e.jsx(c,{value:P.name,onChange:G=>i({...s,certifications:s.certifications.map(F=>F.id===P.id?{...F,name:G}:F)}),placeholder:"Certification name",onDark:h,className:h?"text-white":void 0})}),e.jsxs("div",{className:h?"text-white/90":"text-slate-700",children:[e.jsx(c,{value:P.issuer,onChange:G=>i({...s,certifications:s.certifications.map(F=>F.id===P.id?{...F,issuer:G}:F)}),placeholder:"Issuer or organization",onDark:h,className:h?"text-white/90":void 0}),P.date?e.jsx("span",{className:h?"text-white/90":void 0,children:` · ${P.date}`}):null]})]},P.id))]})}return null}function re(t,s){return t.map(o=>{const i=e.jsx(Pt,{section:o,...s},o.id);return Ee(s.data,o.id)?i:e.jsx("div",{className:"no-print",children:i},o.id)})}const cs=({data:t,theme:s,warnings:o,onUpdate:i,onFixWarning:d,onAiRefineText:p})=>{const n=ke(t,i),f=de(t,"main"),j=de(t,"sidebar"),B=We(t),S=ne(t,"personal"),C=ne(t,"contact"),O=j.length>0,u=t.personalInfo,w=y=>{const H=y.target.files?.[0];if(!H)return;const q=new FileReader;q.onload=M=>{const h=M.target?.result;i({...t,personalInfo:{...t.personalInfo,photoUrl:h,hidePhoto:!1}})},q.readAsDataURL(H),y.target.value=""};return e.jsxs("div",{className:"bg-white text-slate-800 p-8 sm:p-12 h-full font-sans relative",children:[S?e.jsxs(V,{sectionKey:"personal",className:"rounded-2xl p-6 text-white mb-8 shadow-md flex flex-row items-center gap-6 group/sechead",style:{backgroundColor:s.primary},children:[u.hidePhoto?e.jsx(Je,{onShow:()=>n.updatePersonalInfo("hidePhoto",!1)}):e.jsx(Et,{photoUrl:u.photoUrl,onUpload:w,onHide:()=>n.updatePersonalInfo("hidePhoto",!0),onClear:()=>n.updatePersonalInfo("photoUrl",""),frameClassName:"w-24 h-24 rounded-full bg-white/20 border-2 border-white/50",placeholderClassName:"text-white/80",overlayRadiusClass:"rounded-full"}),e.jsxs("div",{className:"flex-1 text-left space-y-2 min-w-0",children:[e.jsxs("div",{className:"flex items-start justify-between gap-2",children:[e.jsxs("div",{className:"min-w-0 space-y-2",children:[u.hideName?null:e.jsx("h1",{className:"text-3xl sm:text-4xl font-extrabold tracking-tight",children:e.jsx(c,{value:u.fullName,onChange:y=>n.updatePersonalInfo("fullName",y),placeholder:"Student Full Name"})}),u.hideTitle?null:e.jsx("h2",{className:"text-base font-medium opacity-90",children:e.jsx(c,{value:u.title,onChange:y=>n.updatePersonalInfo("title",y),placeholder:"Computer Science Student / Graduate"})})]}),e.jsx(J,{onClick:()=>i(ie(t,"personal",!1)),title:"Hide personal details",alwaysVisible:!0,className:"text-white/80 hover:text-white"})]}),u.hideSummary?null:e.jsx("p",{className:"text-xs text-white/90 leading-relaxed max-w-full",children:e.jsx(c,{value:u.summary,onChange:y=>n.updatePersonalInfo("summary",y),multiline:!0})}),C?e.jsxs("div",{className:"flex flex-wrap items-center justify-start gap-4 pt-2 text-xs text-white/90 group/sechead",children:[e.jsx(J,{onClick:()=>i(ie(t,"contact",!1)),title:"Hide contact section",className:"text-white/80 hover:text-white"}),u.hideEmail?null:e.jsxs("span",{className:`flex items-center gap-1${u.email?.trim()?"":" no-print"}`,children:[e.jsx(Ge,{className:"w-3.5 h-3.5"}),e.jsx(c,{value:u.email,onChange:y=>n.updatePersonalInfo("email",y),placeholder:"email"})]}),u.hidePhone?null:e.jsxs("span",{className:`flex items-center gap-1${u.phone?.trim()?"":" no-print"}`,children:[e.jsx(Fe,{className:"w-3.5 h-3.5"}),e.jsx(c,{value:u.phone,onChange:y=>n.updatePersonalInfo("phone",y),placeholder:"phone"})]}),u.hideLocation?null:e.jsxs("span",{className:`flex items-center gap-1${u.location?.trim()?"":" no-print"}`,children:[e.jsx(Ve,{className:"w-3.5 h-3.5"}),e.jsx(c,{value:u.location,onChange:y=>n.updatePersonalInfo("location",y),placeholder:"location"})]})]}):null]})]}):null,B.length>0&&e.jsx("div",{className:"space-y-6",children:re(B,{data:t,theme:s,onUpdate:i,onA
79iRefineText:p,warnings:o,onFixWarning:d,titleClassName:"text-sm font-bold uppercase tracking-wider border-b-2 pb-1",titleStyle:{color:s.primary,borderColor:s.primary}})}),e.jsxs("div",{className:`min-w-0 ${O?"resume-split-body grid grid-cols-12 gap-8":""}`,children:[e.jsx("div",{className:`${O?"col-span-7":""} min-w-0 space-y-6`,children:re(f,{data:t,theme:s,onUpdate:i,onAiRefineText:p,warnings:o,onFixWarning:d,titleClassName:"text-sm font-bold uppercase tracking-wider border-b-2 pb-1",titleStyle:{color:s.primary,borderColor:s.primary}})}),O?e.jsx("div",{className:"col-span-5 min-w-0 overflow-hidden break-words space-y-6",children:re(j,{data:t,theme:s,onUpdate:i,onAiRefineText:p,warnings:o,onFixWarning:d,titleClassName:"text-sm font-bold uppercase tracking-wider border-b-2 pb-1",titleStyle:{color:s.primary,borderColor:s.primary}})}):null]})]})},ds=({data:t,theme:s,warnings:o,onUpdate:i,onFixWarning:d,onAiRefineText:p})=>{const n=ke(t,i),f=de(t,"main"),j=de(t,"sidebar"),B=We(t),S=ne(t,"personal"),C=ne(t,"contact"),O=j.length>0,u=t.personalInfo;return e.jsxs("div",{className:"bg-white text-slate-800 p-8 sm:p-12 h-full font-sans relative",children:[S?e.jsxs(V,{sectionKey:"personal",className:"border-l-4 p-6 bg-slate-50 rounded-r-2xl mb-8 space-y-3 group/sechead",style:{borderColor:s.primary},children:[e.jsxs("div",{className:"flex items-start justify-between gap-2",children:[e.jsxs("div",{className:"min-w-0 space-y-3 flex-1",children:[u.hideName?null:e.jsx("h1",{className:"text-3xl font-black tracking-tight",style:{color:s.text},children:e.jsx(c,{value:u.fullName,onChange:w=>n.updatePersonalInfo("fullName",w)})}),u.hideTitle?null:e.jsx("h2",{className:"text-base font-bold uppercase tracking-wider",style:{color:s.primary},children:e.jsx(c,{value:u.title,onChange:w=>n.updatePersonalInfo("title",w)})}),u.hideSummary?null:e.jsx("p",{className:"text-xs text-slate-600 leading-relaxed max-w-full",children:e.jsx(c,{value:u.summary,onChange:w=>n.updatePersonalInfo("summary",w),multiline:!0})})]}),e.jsx(J,{onClick:()=>i(ie(t,"personal",!1)),title:"Hide personal details"})]}),C?e.jsxs("div",{className:"flex flex-wrap items-center gap-4 pt-2 text-xs text-slate-500 font-mono group/sechead",children:[e.jsx(J,{onClick:()=>i(ie(t,"contact",!1)),title:"Hide contact section"}),u.hideEmail?null:e.jsx(c,{value:u.email,onChange:w=>n.updatePersonalInfo("email",w),placeholder:"email"}),u.hidePhone?null:e.jsx(c,{value:u.phone,onChange:w=>n.updatePersonalInfo("phone",w),placeholder:"phone"}),u.hideLocation?null:e.jsx(c,{value:u.location,onChange:w=>n.updatePersonalInfo("location",w),placeholder:"location"})]}):null]}):null,B.length>0&&e.jsx("div",{className:"space-y-6 mb-6",children:re(B,{data:t,theme:s,onUpdate:i,onAiRefineText:p,skillDisplay:"progress",warnings:o,onFixWarning:d})}),e.jsxs("div",{className:`min-w-0 ${O?"resume-split-body grid grid-cols-12 gap-8":""}`,children:[e.jsx("div",{className:`${O?"col-span-8":""} min-w-0 space-y-6`,children:re(f,{data:t,theme:s,onUpdate:i,onAiRefineText:p,skillDisplay:"progress",warnings:o,onFixWarning:d})}),O?e.jsx("div",{className:"col-span-4 min-w-0 overflow-hidden break-words space-y-6",children:re(j,{data:t,theme:s,onUpdate:i,onAiRefineText:p,skillDisplay:"progress",warnings:o,onFixWarning:d})}):null]})]})},ms=({data:t,theme:s,warnings:o,onUpdate:i,onFixWarning:d,onAiRefineText:p})=>{const n=ke(t,i),f=de(t,["main","full"]),j=de(t,"sidebar"),B=ne(t,"personal"),S=ne(t,"contact"),C=t.personalInfo,O=B&&!C.hidePhoto,u=B||j.length>0,w=y=>{const H=y.target.files?.[0];if(!H)return;const q=new FileReader;q.onload=M=>{const h=M.target?.result;i({...t,personalInfo:{...t.personalInfo,photoUrl:h,hidePhoto:!1}})},q.readAsDataURL(H),y.target.value=""};return e.jsxs("div",{className:"relative bg-white text-slate-800 font-sans min-h-full w-full flex flex-row items-stretch","data-print-sidebar":u?!0:void 0,style:u?{"--sidebar-width":"33.333%","--sidebar-color":s.primary}:void 0,children:[u?e.jsx("div",{className:"pointer-events-none absolute inset-y-0 left-0 w-1/3",style:{backgroundColor:s.primary},"aria-hidden":!0}):null,u?e.jsxs("div",{className:"relative z-[1] w-1/3 shrink-0 min-w-0 p-8 text-white space-y-6 flex flex-col self-stretch min-h-full",style:{backgroundColor:s.primary},children:[B?e.jsx(V,{sectionKey:"personal",children:e.jsxs(e.Fragment,{children:[O?e.jsxs("div",{className:`relative group/photo w-24 h-24 mx-auto${C.photoUrl?"":" no-print"}`,children:[e.jsxs("label",{className:"cursor-pointer block",children:[e.jsx("input",{type:"file",accept:"image/*",onChange:w,className:"hidden","aria-label":C.photoUrl?"Change profile photo":"Upload profile photo"}),e.jsxs("div",{className:"relative w-24 h-24 rounded-2xl bg-white/20 border-2 border-white/40 flex items-center justify-center overflow-hidden",children:[C.photoUrl?e.jsx("img",{src:C.photoUrl,alt:"Profile",className:"w-full h-full object-cover"}):e.jsx(Ke,{className:"w-12 h-12 text-white/80","aria-hidden":!0}),e.jsxs("div",{className:"no-print absolute inset-0 bg-slate-900/60 opacity-0 group-hover/photo:opacity-100 focus-within:opacity-100 transition flex flex-col items-center justify-center text-white text-[10px] font-medium rounded-2xl",children:[e.jsx(et,{className:"w-4 h-4 mb-0.5","aria-hidden":!0}),e.jsx("span",{children:C.photoUrl?"Change":"Upload"})]})]})]}),e.jsx("button",{type:"button",onClick:()=>n.updatePersonalInfo("hidePhoto",!0),className:"no-print absolute -top-1 -left-1 bg-white text-slate-700 w-5 h-5 rounded-full flex items-center justify-center opacity-0 group-hover/photo:opacity-100 transition shadow",title:"Hide profile photo",children:e.jsx(ve,{className:"w-3 h-3"})}),C.photoUrl?e.jsx("button",{type:"button",onClick:()=>n.updatePersonalInfo("photoUrl",""),className:"no-print absolute -top-1 -right-1 bg-rose-500 text-white w-5 h-5 rounded-full flex items-center justify-center text-xs font-bold opacity-0 group-hover/photo:opacity-100 focus:opacity-100 transition shadow",title:"Remove profile photo","aria-label":"Remove profile photo",children:"×"}):null]}):e.jsx("div",{className:"flex justify-center",children:e.jsx(Je,{onShow:()=>n.updatePersonalInfo("hidePhoto",!1)})}),e.jsxs("div",{className:"text-center space-y-1 group/sechead",children:[e.jsx(J,{onClick:()=>i(ie(t,"personal",!1)),title:"Hide personal details",alwaysVisible:!0,className:"mx-auto text-white/80 hover:text-white"}),C.hideName?null:e.jsx("h1",{className:"text-2xl font-black",children:e.jsx(c,{value:C.fullName,onChange:y=>n.updatePersonalInfo("fullName",y)})}),C.hideTitle?null:e.jsx("h2",{className:"text-xs font-semibold uppercase tracking-widest text-white/80",children:e.jsx(c,{value:C.title,onChange:y=>n.updatePersonalInfo("title",y)})})]}),S?e.jsxs("div",{className:"space-y-2 text-xs text-white/90 pt-4 border-t border-white/20 group/sechead",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("span",{className:"text-[10px] font-bold uppercase tracking-widest text-white/70",children:"Contact"}),e.jsx(J,{onClick:()=>i(ie(t,"contact",!1)),title:"Hide contact section",className:"text-white/80 hover:text-white"})]}),C.hideEmail?null:e.jsxs("div",{className:`flex items-center gap-2${C.email?.trim()?"":" no-print"}`,children:[e.jsx(Ge,{className:"w-3.5 h-3.5 shrink-0"}),e.jsx(c,{value:C.email,onChange:y=>n.updatePersonalInfo("email",y),placeholder:"email"})]}),C.hidePhone?null:e.jsxs("div",{className:`flex items-center gap-2${C.phone?.trim()?"":" no-print"}`,children:[e.jsx(Fe,{className:"w-3.5 h-3.5 shrink-0"}),e.jsx(c,{value:C.phone,onChange:y=>n.updatePersonalInfo("phone",y),placeholder:"phone"})]}),C.hideLocation?null:e.jsxs("div",{className:`flex items-center gap-2${C.location?.trim()?"":" no-print"}`,children:[e.jsx(Ve,{className:"w-3.5 h-3.5 shrink-0"}),e.jsx(c,{value:C.location,onChange:y=>n.updatePersonalInfo("location",y),placeholder:"location"})]})]}):null]})}):null,e.jsx("div",{className:"space-y-6",children:re(j,{data:t,theme:s,onUpdate:i,onA
79iRefineText:p,warnings:o,onFixWarning:d,titleClassName:"text-xs font-bold uppercase tracking-widest",titleStyle:{color:"#fff"},lightChips:!0})})]}):null,e.jsxs("div",{className:`relative z-[1] min-w-0 flex-1 p-8 sm:p-10 space-y-8 min-h-full bg-white break-words ${u?"w-2/3":"w-full"}`,children:[B&&!C.hideSummary?e.jsxs(V,{sectionKey:"personal",field:"summary",className:"space-y-2",children:[e.jsx("h3",{className:"text-xs font-bold uppercase tracking-widest text-slate-400",children:"About Me"}),e.jsx("p",{className:"text-xs text-slate-600 leading-relaxed",children:e.jsx(c,{value:C.summary,onChange:y=>n.updatePersonalInfo("summary",y),multiline:!0})})]}):null,re(f,{data:t,theme:s,onUpdate:i,onAiRefineText:p,warnings:o,onFixWarning:d,titleClassName:"text-sm font-bold uppercase tracking-wider border-b pb-1 text-slate-900",titleStyle:{}})]})]})},us=({data:t,theme:s,warnings:o,onUpdate:i,onFixWarning:d,onAiRefineText:p})=>{const n=ke(t,i),f=de(t,"main"),j=de(t,"sidebar"),B=We(t),S=ne(t,"personal"),C=ne(t,"contact"),O=j.length>0,u=t.personalInfo,w=C?[u.hideEmail?null:e.jsx(c,{value:u.email,onChange:y=>n.updatePersonalInfo("email",y),placeholder:"email"},"email"),u.hidePhone?null:e.jsx(c,{value:u.phone,onChange:y=>n.updatePersonalInfo("phone",y),placeholder:"phone"},"phone"),u.hideLocation?null:e.jsx(c,{value:u.location,onChange:y=>n.updatePersonalInfo("location",y),placeholder:"location"},"location"),u.hideLinkedin?null:e.jsx(c,{value:u.linkedin||"",onChange:y=>n.updatePersonalInfo("linkedin",y),placeholder:"linkedin"},"linkedin")].filter(Boolean):[];return e.jsxs("div",{className:"bg-white text-slate-800 p-10 sm:p-14 h-full font-sans relative max-w-4xl mx-auto space-y-8",children:[S?e.jsxs(V,{sectionKey:"personal",className:"space-y-4 group/sechead",children:[e.jsxs("div",{className:"text-center space-y-2 relative",children:[e.jsxs("div",{className:"no-print absolute right-0 top-0 flex items-center gap-1",children:[e.jsx(J,{onClick:()=>i(ie(t,"personal",!1)),title:"Hide personal details"}),C?e.jsx(J,{onClick:()=>i(ie(t,"contact",!1)),title:"Hide contact section"}):null]}),u.hideName?null:e.jsx("h1",{className:"text-3xl font-light tracking-widest text-slate-900 uppercase",children:e.jsx(c,{value:u.fullName,onChange:y=>n.updatePersonalInfo("fullName",y)})}),u.hideTitle?null:e.jsx("h2",{className:"text-sm font-medium tracking-wide text-slate-500 max-w-2xl mx-auto break-words",children:e.jsx(c,{value:u.title,onChange:y=>n.updatePersonalInfo("title",y),placeholder:"Professional headline"})}),w.length?e.jsx("div",{className:"flex flex-wrap items-center justify-center gap-x-2 gap-y-1 text-xs font-mono text-slate-500 pt-1",children:w.map((y,H)=>e.jsxs(De.Fragment,{children:[H>0?e.jsx("span",{className:"text-slate-300 select-none","aria-hidden":!0,children:"•"}):null,y]},H))}):null]}),e.jsx("div",{className:"w-full h-px bg-slate-300"}),u.hideSummary?null:e.jsx("div",{className:"text-xs text-slate-600 leading-relaxed text-center max-w-3xl mx-auto",children:e.jsx(c,{value:u.summary,onChange:y=>n.updatePersonalInfo("summary",y),multiline:!0})})]}):null,B.length>0&&e.jsx("div",{className:"space-y-8",children:re(B,{data:t,theme:s,onUpdate:i,onAiRefineText:p,warnings:o,onFixWarning:d,titleClassName:"text-xs font-bold uppercase tracking-widest text-slate-400 border-b pb-1",titleStyle:{}})}),e.jsxs("div",{className:`min-w-0 ${O?"resume-split-body grid grid-cols-12 gap-8":""}`,children:[e.jsx("div",{className:`${O?"col-span-7":""} min-w-0 space-y-8 break-words`,children:re(f,{data:t,theme:s,onUpdate:i,onAiRefineText:p,warnings:o,onFixWarning:d,titleClassName:"text-xs font-bold uppercase tracking-widest text-slate-400 border-b pb-1",titleStyle:{}})}),O?e.jsx("div",{className:"col-span-5 min-w-0 overflow-hidden break-words space-y-8",children:re(j,{data:t,theme:s,onUpdate:i,onAiRefineText:p,warnings:o,onFixWarning:d,titleClassName:"text-xs font-bold uppercase tracking-widest text-slate-400 border-b pb-1",titleStyle:{}})}):null]})]})},ps=({data:t,theme:s,warnings:o,onUpdate:i,onFixWarning:d,onAiRefineText:p})=>{const n=ke(t,i),f=de(t,"main"),j=de(t,"sidebar"),B=We(t),S=ne(t,"personal"),C=ne(t,"contact"),O=j.length>0,u=t.personalInfo;return e.jsxs("div",{className:"bg-white text-slate-800 p-10 sm:p-14 h-full font-serif relative max-w-4xl mx-auto 
79space-y-8",children:[S?e.jsxs(V,{sectionKey:"personal",className:"space-y-4 group/sechead",children:[e.jsxs("div",{className:"text-center border-t-2 border-b-2 border-slate-900 py-6 space-y-2 relative",children:[e.jsxs("div",{className:"no-print absolute right-0 top-2 flex items-center gap-1",children:[e.jsx(J,{onClick:()=>i(ie(t,"personal",!1)),title:"Hide personal details"}),C?e.jsx(J,{onClick:()=>i(ie(t,"contact",!1)),title:"Hide contact section"}):null]}),u.hideName?null:e.jsx("h1",{className:"text-3xl font-bold tracking-wide uppercase text-slate-900",children:e.jsx(c,{value:u.fullName,onChange:w=>n.updatePersonalInfo("fullName",w)})}),u.hideTitle?null:e.jsx("h2",{className:"text-sm font-semibold tracking-wider italic text-slate-600",children:e.jsx(c,{value:u.title,onChange:w=>n.updatePersonalInfo("title",w)})}),C?e.jsxs("div",{className:"flex justify-center flex-wrap gap-4 text-xs font-sans text-slate-600 pt-2",children:[u.hideEmail?null:e.jsx(c,{value:u.email,onChange:w=>n.updatePersonalInfo("email",w),placeholder:"email"}),u.hidePhone?null:e.jsx(c,{value:u.phone,onChange:w=>n.updatePersonalInfo("phone",w),placeholder:"phone"}),u.hideLocation?null:e.jsx(c,{value:u.location,onChange:w=>n.updatePersonalInfo("location",w),placeholder:"location"})]}):null]}),u.hideSummary?null:e.jsx("div",{className:"font-sans text-xs text-slate-700 leading-relaxed italic text-center max-w-2xl mx-auto",children:e.jsx(c,{value:u.summary,onChange:w=>n.updatePersonalInfo("summary",w),multiline:!0})})]}):null,B.length>0&&e.jsx("div",{className:"space-y-6 font-sans",children:re(B,{data:t,theme:s,onUpdate:i,onAiRefineText:p,warnings:o,onFixWarning:d,titleClassName:"text-xs font-bold font-serif uppercase tracking-widest text-slate-900 border-b border-slate-300 pb-1",titleStyle:{}})}),e.jsxs("div",{className:`font-sans min-w-0 ${O?"resume-split-body grid grid-cols-12 gap-8":""}`,children:[e.jsx("div",{className:`${O?"col-span-7":""} min-w-0 space-y-6 break-words`,children:re(f,{data:t,theme:s,onUpdate:i,onAiRefineText:p,warnings:o,onFixWarning:d,titleClassName:"text-xs font-bold font-serif uppercase tracking-widest text-slate-900 border-b border-slate-300 pb-1",titleStyle:{}})}),O?e.jsx("div",{className:"col-span-5 min-w-0 overflow-hidden break-words space-y-6",children:re(j,{data:t,theme:s,onUpdate:i,onAiRefineText:p,warnings:o,onFixWarning:d,titleClassName:"text-xs font-bold font-serif uppercase tracking-widest text-slate-900 border-b border-slate-300 pb-1",titleStyle:{}})}):null]})]})},hs=({data:t,theme:s,warnings:o,onUpdate:i,onFixWarning:d,onAiRefineText:p})=>{const[n,f]=se.useState(null),j=x=>i(ie(t,x,!1)),B=ne(t,"personal"),S=ne(t,"contact"),C=s.primary||"#1b3a63",O="#e9eaec",u=(x,L,v)=>o.find(T=>T.sectionKey===x&&(!L||T.field===L)&&!0),w=(x,L)=>{i({...t,personalInfo:{...t.personalInfo,[x]:L}})},y=x=>{const L=x.target.files?.[0];if(!L)return;const v=new FileReader;v.onload=T=>{const N=T.target?.result;i({...t,personalInfo:{...t.personalInfo,photoUrl:N,hidePhoto:!1}})},v.readAsDataURL(L)},H=(x,L)=>{const v=t.sectionsOrder.map(N=>N.id===x?{...N,title:L}:N),T=t.customSections?.map(N=>N.id===x?{...N,title:L}:N);i({...t,sectionsOrder:v,customSections:T})},q=x=>{const L=t.customSections?.map(v=>v.id===x.id?x:v)||[];i({...t,customSections:L})},M=x=>{i({...t,sectionsOrder:t.sectionsOrder.filter(L=>L.id!==x),customSections:t.customSections?.filter(L=>L.id!==x)})},h=()=>{const x={id:`w-${Date.now()}`,title:"Architect – Quality Assurance",company:"Celsior Technologies",location:"Remote",startDate:"Apr 2023",endDate:"Present",current:!0,description:"Led engineering excellence strategy and automation frameworks.",bullets:["Architected reusable Playwright automation frameworks supporting enterprise banking products.","Integrated automated regression suites into CI/CD pipelines."]};i({...t,workExperiences:[...t.workExperiences,x]})},P=(x,L)=>{i({...t,workExperiences:t.workExperiences.map(v=>v.id===x?{...v,...L}:v)})},G=x=>{i({...t,workExperiences:t.workExperiences.filter(L=>L.id!==x)})},F=()=>{const x={id:`e-${Date.now()}`,degree:"Bachelor of Technology (B.Tech) – Information Technology",institution:"Himachal Pradesh University",startDate:"2002",endDate:"2006"};i({...t,educations:[...t.educations,x]})},te=x=>{i({...t,educations:t.educations.filter(L=>L.id!==x)})},X=x=>{const L={id:`s-${Date.now()}`,name:"New skill",level:5,...x?.trim()?{category:x.trim()}:{}};i({...t,skills:[...t.skills,L]})},U=()=>{const x=new Set(t.skills.map(T=>
79T.category?.trim().toLowerCase()).filter(Boolean));let L="New Category",v=2;for(;x.has(L.toLowerCase());)L=`New Category ${v++}`;X(L)},ee=(x,L)=>{const v=L.trim();i({...t,skills:t.skills.map(T=>T.category?.trim()===x?{...T,category:v||void 0}:T)})},D=x=>{i({...t,skills:t.skills.map(L=>L.category?.trim()===x?{...L,category:void 0}:L)})},g=x=>{i({...t,skills:t.skills.filter(L=>L.id!==x)})},k=()=>{const x={id:`c-${Date.now()}`,name:"ISTQB Certified Tester",issuer:"ISTQB",date:"2023"};i({...t,certifications:[...t.certifications,x]})},r=x=>{i({...t,certifications:t.certifications.filter(L=>L.id!==x)})},l=()=>{const x={id:`l-${Date.now()}`,name:"English",proficiency:"Fluent"};i({...t,languages:[...t.languages,x]})},b=t.sectionsOrder.filter(x=>x.visible&&x.column==="sidebar"&&x.id!=="personal"&&x.id!=="contact"),E=t.sectionsOrder.filter(x=>x.visible&&(x.column==="main"||x.column==="full")&&x.id!=="personal"&&x.id!=="contact"),K=B&&!t.personalInfo.hidePhoto,I=K||S||b.length>0,z=x=>{const L=t.customSections?.find(v=>v.id===x.id);if(L)return e.jsx(tt,{section:L,theme:s,onUpdateSection:q,onRemoveSection:M,onUpdateTitle:v=>H(x.id,v),onHideSection:()=>j(x.id),onAiRefineText:p},x.id);if(x.id==="skills"){const v=String(x.title||"").trim(),T=Y=>ns(Y,v)||!!v&&$e(Y)===$e(v),N=t.skills.filter(Y=>!Y.category?.trim()),le=Array.from(new Set(t.skills.map(Y=>Y.category?.trim()).filter(Y=>!!Y))).filter(Y=>!T(Y)),me=t.skills.filter(Y=>{const m=Y.category?.trim();return!!(m&&T(m))}),Ie=[...N,...me],je=Y=>e.jsx("ul",{className:"space-y-1.5 text-[12.5px] leading-snug text-[#3a3f47]",children:Y.filter(m=>!T(m.name||"")).map(m=>e.jsxs("li",{className:"flex items-start gap-1.5 group/sk",children:[e.jsx("span",{className:"font-bold shrink-0",style:{color:C},children:"•"}),e.jsx("span",{className:"flex-1 min-w-0 break-words",children:e.jsx(c,{value:m.name,onChange:$=>i({...t,skills:t.skills.map(a=>a.id===m.id?{...a,name:$}:a)})})}),e.jsx("button",{type:"button",onClick:()=>g(m.id),className:"no-print opacity-0 group-hover/sk:opacity-100 text-rose-500 hover:text-rose-700 font-bold shrink-0 ml-1",title:"Remove skill",children:"×"})]},m.id))});return e.jsxs("div",{className:"space-y-3",children:[e.jsxs("div",{className:"flex items-start justify-between gap-1 pb-1 group/sechead",children:[e.jsx("h2",{className:"text-[14px] font-bold uppercase tracking-wider leading-tight min-w-0 break-words",style:{color:C},children:e.jsx(c,{value:x.title,onChange:Y=>H(x.id,Y),placeholder:"Core Expertise"})}),e.jsxs("div",{className:"no-print flex items-center gap-1 shrink-0",children:[e.jsxs("button",{type:"button",onClick:()=>X(le[le.length-1]),className:"text-[10px] font-bold px-2 py-0.5 rounded bg-emerald-100 hover:bg-emerald-200 text-emerald-800 flex items-center gap-1 transition",title:le.length?`Add skill under ${le[le.length-1]}`:"Add skill",children:[e.jsx(Z,{className:"w-3 h-3"})," Add"]}),e.jsxs("button",{type:"button",onClick:U,className:"text-[10px] font-bold px-2 py-0.5 rounded bg-slate-100 hover:bg-slate-200 text-slate-700 flex items-center gap-1 transition",title:"Add skill category header",children:[e.jsx(Z,{className:"w-3 h-3"})," Category"]}),e.jsx(J,{onClick:()=>j(x.id)})]})]}),le.length>0?e.jsxs("div",{className:"space-y-3",children:[Ie.length>0?e.jsxs("div",{className:"space-y-1.5",children:[je(Ie),e.jsxs("button",{type:"button",onClick:()=>X(),className:"no-print text-[10px] font-semibold text-emerald-700 hover:text-emerald-900 flex items-center gap-0.5",children:[e.jsx(Z,{className:"w-3 h-3"})," Add skill"]})]}):null,le.map(Y=>{const m=t.skills.filter(a=>a.category?.trim()===Y),$=m[0]?.id||Y;return e.jsxs("div",{className:"space-y-1.5 group/cat",children:[e.jsxs("div",{className:"flex items-center gap-1.5",children:[e.jsx("div",{className:"text-[12px] font-bold uppercase tracking-wide flex-1 min-w-0",style:{color:C},children:e.jsx(c,{value:Y,onChange:a=>ee(Y,a),placeholder:"Category"})}),e.jsx("button",{type:"button",onClick:()=>X(Y),className:"no-print opacity-0 group-hover/cat:opacity-100 text-[10px] font-bold px-1.5 py-0.5 rounded bg-emerald-100 text-emerald-800 hover:bg-emerald-200 shrink-0",title:`Add skill under ${Y}`,children:e.jsx(Z,{className:"w-3 h-3"})}),e.jsx("button",{type:"button",onClick:()=>D(Y),className:"no-print opacity-0 group-hover/cat:opacity-100 text-rose-500 hover:text-rose-700 font-bold shrink-0 text-sm leading-none",title:"Remove category header (keeps skills)",children:"×"})]}),je(m)]},$)})]}):e.jsx("div",{className:"space-y-1.5",children:je(t.skills)})]},"skills")}return x.id==="certifications"?e.jsxs("div",{className:"space-y-3",children:[e.jsxs("div",{className:"flex items-center justify-between pb-1 group/sechead",children:[e.jsx("h2",{className:"text-[14px] font-bold uppercase tracking-wider",style:{color:C},children:e.jsx(c,{value:x.title,onChange:v=>H(x.id,v),placeholder:"Certifications"})}),e.jsxs("div",{className:"no-print flex items-center gap-1",children:[e.jsxs("button",{onClick:k,className:"text-[10px] font-bold px-2 py-0.5 rounded bg-emerald-100 hover:bg-emerald-200 text-emerald-800 flex items-center gap-1 transition",children:[e.jsx(Z,{className:"w-3 h-3"})," Add"]}),e.jsx(J,{onClick:()=>j(x.id)})]})]}),e.jsx("ul",{className:"space-y-1.5 text-[12.5px] text-[#3a3f47]",children:t.certifications.map(v=>e.jsxs("li",{className:"flex items-start gap-1.5 leading-snug",children:[e.jsx("span",{className:"font-bold shrink-0",style:{color:C},children:"•"}),e.jsxs("div",{className:"flex-1",children:[e.jsx("div",{className:"font-medium",children:e.jsx(c,{value:v.name,onChange:T=>i({...t,certifications:t.certifications.map(N=>N.id===v.id?{...N,name:T}:N)})})}),v.issuer&&e.jsx("div",{className:"text-[11px] text-slate-500",children:e.jsx(c,{value:v.issuer,onChange:T=>i({...t,certifications:t.certifications.map(N=>N.id===v.id?{...N,issuer:T}:N)})})})]}),e.jsx("button",{onClick:()=>r(v.id),className:"no-print opacity-0 group-hover/cert:opacity-100 text-rose-500 hover:text-rose-700 font-bold shrink-0 ml-1",children:"×"})]},v.id))})]},"certifications"):x.id==="languages"?e.jsxs("div",{className:"space-y-3",children:[e.jsxs("div",{className:"flex items-center justify-between pb-1 group/sechead",children:[e.jsx("h2",{className:"text-[14px] font-bold uppercase tracking-wider",style:{color:C},children:e.jsx(c,{value:x.title,onChange:v=>H(x.id,v),placeholder:"Languages"})}),e.jsxs("div",{className:"no-print flex items-center gap-1",children:[e.jsxs("button",{onClick:l,className:"text-[10px] font-bold px-2 py-0.5 rounded bg-emerald-100 hover:bg-emerald-200 text-emerald-800 flex items-center gap-1 transition",children:[e.jsx(Z,{className:"w-3 h-3"})," Add"]}),e.jsx(J,{onClick:()=>j(x.id)})]})]}),e.jsx("ul",{className:"space-y-1 text-[12px] text-[#3a3f47]",children:t.languages.map(v=>e.jsxs("li",{className:"flex items-center justify-between",children:[e.jsx("span",{children:e.jsx(c,{value:v.name,onChange:T=>i({...t,languages:t.languages.map(N=>N.id===v.id?{...N,name:T}:N)})})}),e.jsx("span",{className:"text-slate-500 italic text-[11px]",children:e.jsx(c,{value:v.proficiency,onChange:T=>i({...t,languages:t.languages.map(N=>N.id===v.id?{...N,proficiency:T}:N)})})})]},v.id))})]},"languages"):x.id==="work"?e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"flex items-center justify-between pb-1 group/sechead",children:[e.jsx("h2",{className:"text-[16px] font-bold uppercase tracking-wider",style:{color:C},children:e.jsx(c,{value:x.title,onChange:v=>H(x.id,v),placeholder:"Professional Experience"})}),e.jsxs("div",{className:"no-print flex items-center gap-1",children:[e.jsxs("button",{onClick:h,className:"text-xs font-bold px-2.5 py-1 rounded-full bg-emerald-100 hover:bg-emerald-200 text-emerald-800 flex items-center gap-1 transition shadow-sm",children:[e.jsx(Z,{className:"w-3.5 h-3.5"})," Add Experience"]}),e.jsx(J,{onClick:()=>j(x.id)})]})]}),e.jsx("div",{className:"space-y-5",children:t.workExperiences.map((v,T)=>e.jsxs("div",{onMouseEnter:()=>f(v.id),onMouseLeave:()=>f(null),className:"relative group space-y-1",children:[n===v.id&&e.jsxs("div",{className:"no-print absolute -left-7 top-0 flex flex-col gap-1 bg-white border border-slate-200 rounded p-1 shadow-md z-20",children:[e.jsx("button",{onClick:()=>
79{if(T>0){const N=[...t.workExperiences],ae=N[T];N[T]=N[T-1],N[T-1]=ae,i({...t,workExperiences:N})}},disabled:T===0,className:"p-1 hover:bg-slate-100 disabled:opacity-20 rounded",children:e.jsx(Me,{className:"w-3 h-3"})}),e.jsx("button",{onClick:()=>{if(T<t.workExperiences.length-1){const N=[...t.workExperiences],ae=N[T];N[T]=N[T+1],N[T+1]=ae,i({...t,workExperiences:N})}},disabled:T===t.workExperiences.length-1,className:"p-1 hover:bg-slate-100 disabled:opacity-20 rounded",children:e.jsx(ze,{className:"w-3 h-3"})}),e.jsx("button",{onClick:()=>G(v.id),className:"p-1 hover:bg-rose-100 text-rose-600 rounded",children:e.jsx(be,{className:"w-3 h-3"})})]}),e.jsxs("div",{className:"flex flex-wrap items-baseline justify-between gap-2",children:[e.jsxs("div",{className:"text-[14px] font-bold text-[#1a1a1a]",children:[e.jsx(c,{value:v.title,onChange:N=>P(v.id,{title:N}),placeholder:"Architect – Quality Assurance"}),e.jsxs("span",{className:Se(v.company)?"no-print":void 0,children:[e.jsx("span",{className:"font-normal text-slate-500",children:" | "}),e.jsx("span",{className:"font-semibold text-slate-800",children:e.jsx(c,{value:v.company,onChange:N=>P(v.id,{company:N}),placeholder:"Company Name"})})]})]}),e.jsxs("div",{className:"text-[12.5px] font-medium text-[#6b7178]",children:[e.jsx(c,{value:v.startDate,onChange:N=>P(v.id,{startDate:N}),placeholder:"Apr 2023"})," –"," ",e.jsx(c,{value:v.current?"Present":v.endDate,onChange:N=>P(v.id,{endDate:N}),placeholder:"Present"})]})]}),v.description&&e.jsx("p",{className:"text-[12.5px] text-[#3a3f47] leading-relaxed pt-0.5",children:e.jsx(c,{value:v.description,onChange:N=>P(v.id,{description:N}),multiline:!0})}),v.bullets&&v.bullets.length>0&&e.jsx("ul",{className:"space-y-1 text-[12.5px] text-[#3a3f47] pt-1 pl-1",children:v.bullets.map((N,ae)=>e.jsxs("li",{className:"flex items-start gap-2 leading-relaxed",children:[e.jsx("span",{className:"font-bold shrink-0",style:{color:C},children:"•"}),e.jsx("div",{className:"flex-1",children:e.jsx(c,{value:N,onChange:le=>{const me=[...v.bullets];me[ae]=le,P(v.id,{bullets:me})}})})]},ae))})]},v.id))})]},"work"):x.id==="education"?e.jsxs("div",{className:"space-y-3",children:[e.jsxs("div",{className:"flex items-center justify-between pb-1 group/sechead",children:[e.jsx("h2",{className:"text-[16px] font-bold uppercase tracking-wider",style:{color:C},children:e.jsx(c,{value:x.title,onChange:v=>H(x.id,v),placeholder:"Education"})}),e.jsxs("div",{className:"no-print flex items-center gap-1",children:[e.jsxs("button",{onClick:F,className:"text-xs font-bold px-2.5 py-1 rounded-full bg-emerald-100 hover:bg-emerald-200 text-emerald-800 flex items-center gap-1 transition",children:[e.jsx(Z,{className:"w-3.5 h-3.5"})," Add Entry"]}),e.jsx(J,{onClick:()=>j(x.id)})]})]}),e.jsx("div",{className:"space-y-2",children:t.educations.map(v=>e.jsxs("div",{className:"flex justify-between items-baseline text-[13.5px] group/edu relative",children:[e.jsxs("div",{className:"flex-1 min-w-0 pr-4",children:[e.jsx("div",{className:"font-bold text-[#1a1a1a]",children:e.jsx(c,{value:v.degree,onChange:T=>i({...t,educations:t.educations.map(N=>N.id===v.id?{...N,degree:T}:N)})})}),e.jsx("div",{className:"text-[12.5px] text-[#6b7178]",children:e.jsx(c,{value:v.institution,onChange:T=>i({...t,educations:t.educations.map(N=>N.id===v.id?{...N,institution:T}:N)})})})]}),e.jsxs("div",{className:"text-[12.5px] text-[#6b7178] font-mono shrink-0 flex items-center gap-1",children:[e.jsx(c,{value:v.startDate,onChange:T=>i({...t,educations:t.educations.map(N=>N.id===v.id?{...N,startDate:T}:N)}),placeholder:"Start"}),"–",e.jsx(c,{value:v.endDate,onChange:T=>i({...t,educations:t.educations.map(N=>N.id===v.id?{...N,endDate:T}:N)}),placeholder:"End"}),e.jsx("button",{onClick:()=>te(v.id),className:"no-print opacity-0 group-hover/edu:opacity-100 text-rose-500 hover:text-rose-700 text-xs ml-2",title:"Delete education",children:e.jsx(be,{className:"w-3 h-3"})})]})]},v.id))})]},"education"):x.id==="projects"?e.jsxs("div",{className:"space-y-3",children:[e.jsxs("div",{className:"flex items-center justify-between pb-1 group/sechead",children:[e.jsx("h2",{className:"text-[16px] font-bold uppercase tracking-wider",style:{color:C},children:e.jsx(c,{value:x.title,onChange:v=>H(x.id,v),placeholder:"Technical Contributions & Projects"})}),e.jsx(J,{onClick:()=>j(x.id)})]}),e.jsx("div",{className:"space-y-3",children:t.projects.map(v=>e.jsxs("div",{className:"space-y-1",children:[e.jsx("h3",{className:"text-[13.5px] font-bold text-[#1a1a1a]",children:e.jsx(c,{value:v.name,onChange:T=>i({...t,projects:t.projects.map(N=>N.id===v.id?{...N,name:T}:N)})})}),(v.link||"").trim()?e.jsx("div",{className:"text-[11.5px] text-sky-800 break-all",children:e.jsx(c,{value:v.link||"",onChange:T=>i({...t,projects:t.projects.map(N=>N.id===v.id?{...N,link:T}:N)})})}):null,(v.description||"").trim()?e.jsx("div",{className:"text-[12.5px] text-[#3a3f47] leading-relaxed",children:e.jsx(c,{value:v.description,onChange:T=>i({...t,projects:t.projects.map(N=>N.id===v.id?{...N,description:T}:N)}),multiline:!0})}):null,v.bullets?.length?e.jsx("ul",{className:"space-y-1 text-[12.5px] text-[#3a3f47] pt-0.5 pl-1",children:v.bullets.map((T,N)=>e.jsxs("li",{className:"flex items-start gap-2 leading-relaxed",children:[e.jsx("span",{className:"font-bold shrink-0",style:{color:C},children:"•"}),e.jsx("div",{className:"flex-1",children:e.jsx(c,{value:T,onChange:ae=>{const le=[...v.bullets||[]];le[N]=ae,i({...t,projects:t.projects.map(me=>me.id===v.id?{...me,bullets:le}:me)})}})})]},N))}):null]},v.id))})]},"projects"):null};return e.jsxs("div",{className:"relative bg-white text-[#333333] font-sans min-h-full w-full flex flex-row items-stretch","data-
79print-sidebar":I?!0:void 0,style:I?{"--sidebar-width":"260px","--sidebar-color":O}:void 0,children:[I?e.jsx("div",{className:"pointer-events-none absolute inset-y-0 left-0 w-[260px] z-0",style:{backgroundColor:O},"aria-hidden":!0}):null,I?e.jsxs("div",{className:"relative z-[1] w-[260px] shrink-0 min-w-0 self-stretch min-h-full p-6 pt-0 space-y-6 flex flex-col overflow-hidden print:overflow-visible break-words",style:{backgroundColor:O},children:[K?e.jsxs("div",{className:`relative -mx-6 mb-6 group/photo${t.personalInfo.photoUrl?"":" no-print"}`,children:[e.jsx("div",{className:"absolute top-0 left-0 w-[84%] h-[88%] z-0",style:{backgroundColor:C}}),e.jsxs("div",{className:"pt-6 pl-6 pr-0 relative z-10 ",style:{filter:"drop-shadow(0px 0px 10px rgba(182, 177, 177, 0.95))"},children:[e.jsxs("label",{className:"cursor-pointer block relative",children:[e.jsx("input",{type:"file",accept:"image/*",onChange:y,className:"hidden"}),e.jsxs("div",{className:"w-full h-72 bg-slate-200 border border-slate-300 shadow-md flex items-center justify-center overflow-hidden hover:border-slate-500 transition relative",children:[t.personalInfo.photoUrl?e.jsx("img",{src:t.personalInfo.photoUrl,alt:"Enterprise Profile",className:"w-full h-full object-cover"}):e.jsx(Ke,{className:"w-16 h-16 text-slate-400"}),e.jsxs("div",{className:"no-print absolute inset-0 bg-slate-900/60 opacity-0 group-hover/photo:opacity-100 transition flex flex-col items-center justify-center text-white text-xs font-medium",children:[e.jsx(et,{className:"w-5 h-5 mb-1"}),e.jsx("span",{children:t.personalInfo.photoUrl?"Change Photo":"Upload Photo"})]})]})]}),e.jsx("button",{type:"button",onClick:()=>w("hidePhoto",!0),className:"no-print absolute top-7 left-8 z-20 bg-white text-slate-600 border border-slate-200 w-5 h-5 rounded-full flex items-center justify-center opacity-0 group-hover/photo:opacity-100 transition shadow",title:"Hide profile photo",children:e.jsx(ve,{className:"w-3 h-3"})}),t.personalInfo.photoUrl&&e.jsx("button",{onClick:()=>w("photoUrl",""),className:"no-print absolute top-7 right-5 z-20 bg-rose-500 text-white w-5 h-5 rounded-full flex items-center justify-center text-xs font-bold shadow hover:bg-rose-600 transition",title:"Remove profile photo",children:"×"})]})]}):B?e.jsx("div",{className:"pt-6",children:e.jsx(Je,{onShow:()=>w("hidePhoto",!1)})}):null,b.map(z),S?e.jsxs("div",{className:"space-y-2 pt-2 group/sechead",children:[e.jsxs("div",{className:"flex items-center justify-between pb-1",children:[e.jsx("h2",{className:"text-[14px] font-bold uppercase tracking-wider",style:{color:C},children:"Contact"}),e.jsx(J,{onClick:()=>j("contact"),title:"Hide contact section"})]}),e.jsxs("div",{className:"space-y-1.5 text-[12px] text-[#3a3f47] font-sans leading-relaxed",children:[t.personalInfo.hidePhone?null:e.jsxs("div",{className:`flex items-center gap-1.5${t.personalInfo.phone?.trim()?"":" no-print"}`,children:[e.jsx("span",{className:"shrink-0",children:"📱"}),e.jsx(c,{value:t.personalInfo.phone,onChange:x=>w("phone",x),placeholder:"Phone"})]}),t.personalInfo.hideEmail?null:e.jsxs("div",{className:`flex items-center gap-1.5 break-all${t.personalInfo.email?.trim()?"":" no-print"}`,children:[e.jsx("span",{className:"shrink-0",children:"📧"}),e.jsx(c,{value:t.personalInfo.email,onChange:x=>w("email",x),placeholder:"Email"})]}),t.personalInfo.hideLocation?null:e.jsxs("div",{className:`flex items-center gap-1.5${t.personalInfo.location?.trim()?"":" no-print"}`,children:[e.jsx("span",{className:"shrink-0",children:"📍"}),e.jsx(c,{value:t.personalInfo.location,onChange:x=>w("location",x),placeholder:"Location"})]}),t.personalInfo.hideLinkedin?null:e.jsxs("div",{className:`flex items-center gap-1.5${t.personalInfo.linkedin?.trim()?"":" no-print"}`,children:[e.jsx("span",{className:"shrink-0",children:"💼"}),e.jsx(c,{value:t.personalInfo.linkedin||"",onChange:x=>w("linkedin",x),placeholder:"LinkedIn"})]}),t.personalInfo.hideGithub?null:e.jsxs("div",{className:`flex items-center gap-1.5${t.personalInfo.github?.trim()?"":" no-print"}`,children:[e.jsx("span",{className:"shrink-0",children:"🐙"}),e.jsx(c,{value:t.personalInfo.github||"",onChange:x=>w("github",x),placeholder:"GitHub"})]}),t.personalInfo.hideWebsite?null:e.jsxs("div",{className:`flex items-center gap-1.5${t.personalInfo.website?.trim()?"":" no-print"}`,children:[e.jsx("span",{className:"shrink-0",children:"🌐"}),e.jsx(c,{value:t.personalInfo.website||"",onChange:x=>w("website",x),placeholder:"Website"})]})]})]}):null]}):null,e.jsxs("div",{className:"relative z-[1] flex-1 min-w-0 min-h-full p-8 sm:p-10 space-y-6 bg-white break-words",children:[B?e.jsxs(V,{sectionKey:"personal",className:"space-y-4 group/sechead",children:[e.jsxs("div",{className:"text-right space-y-1 relative",children:[e.jsx("div",{className:"no-print absolute left-0 top-0",children:e.jsx(J,{onClick:()=>j("personal"),title:"Hide personal details",alwaysVisible:!0})}),!t.personalInfo.hideName&&e.jsx("h1",{className:"text-3xl sm:text-4xl font-extrabold tracking-tight uppercase",style:{color:C},children:e.jsx(c,{value:t.personalInfo.fullName,onChange:x=>w("fullName",x),placeholder:"NAVEEN CHAUHAN",warning:u("personal","fullName"),onFixWarning:d})}),!t.personalInfo.hideTitle&&e.jsx("div",{className:"text-xs sm:text-[12.5px] font-semibold uppercase tracking-widest text-[#555b62] leading-relaxed",children:e.jsx(c,{value:t.personalInfo.title,onChange:x=>w("title",x),placeholder:"Enterprise QA Architect | Quality Engineering Consultant | Banking & FinTech Modernization Specialist",multiline:!0,warning:u("personal","title"),onFixWarning:d})})]}),e.jsx("hr",{className:"border-t-2",style:{borderColor:C}}),!t.personalInfo.hideSummary&&e.jsxs("div",{className:"space-y-2",children:[e.jsx("h2",{className:"text-[16px] font-bold uppercase tracking-wider",style:{color:C},children:"Executive Summary"}),e.jsx("div",{className:"text-[13.5px] text-[#3a3f47] leading-relaxed font-sans",children:e.jsx(c,{value:t.personalInfo.summary,onChange:x=>w("summary",x),multiline:!0,placeholder:"Enterprise QA Architect with 20 years of experience delivering quality engineering solutions across Banking, FinTech, SaaS, Healthcare, and Enterprise Mobility...",warning:u("personal","summary"),onFixWarning:d})})]})]}):null,E.map(z)]})]})},Oe="text-[13.5px] font-bold uppercase tracking-wider",Ye="pb-0.5 border-b border-slate-200",xs=/^languages?$/i;function mt(t){return!t||!t.includes(",")?t:t.split(",").map(s=>
79s.trim()).filter(Boolean).join(" • ")}function fe({color:t,lineHeight:s="19.5px"}){return e.jsx("span",{className:"shrink-0 select-none inline-flex items-center text-[10px] leading-none",style:{color:t,fontFamily:"Arial, sans-serif",height:s},"aria-hidden":!0,children:"■"})}const fs=({data:t,theme:s,warnings:o,onUpdate:i,onFixWarning:d,onAiRefineText:p})=>{const n=ke(t,i),f=s.primary,j=t.personalInfo,B=ne(t,"personal"),S=ne(t,"contact"),C=de(t),O=S?[!j.hidePhone&&j.phone?{key:"phone",icon:Fe,value:j.phone}:null,!j.hideEmail&&j.email?{key:"email",icon:Ge,value:j.email}:null,!j.hideLocation&&j.location?{key:"location",icon:Ve,value:j.location}:null,!j.hideLinkedin&&j.linkedin?{key:"linkedin",icon:yt,value:j.linkedin}:null,!j.hideGithub&&j.github?{key:"github",icon:wt,value:j.github}:null,!j.hideWebsite&&j.website?{key:"website",icon:Nt,value:j.website}:null].filter(Boolean):[],u=r=>e.jsx(c,{value:r.title,onChange:l=>i(Ze(t,r.id,l))}),w=(r,l,b)=>e.jsx(ce,{onAdd:l,addLabel:b,onHide:()=>i(ie(t,r.id,!1)),titleClassName:Ye,children:e.jsx("h2",{className:Oe,style:{color:f},children:u(r)})}),y=(r,l,b,E)=>It(o,r,l,b,E),H=(r,l,b,E,K)=>e.jsxs(e.Fragment,{children:[e.jsx("ul",{className:"space-y-1 text-[12px] text-slate-700 mt-1 pl-1",children:b.map((I,z)=>e.jsxs("li",{className:"flex items-start gap-2 group/bullet",children:[e.jsx(fe,{color:f}),e.jsx("div",{className:"flex-1 leading-relaxed min-w-0",children:e.jsx(c,{value:
79I,onChange:x=>n.updateBullet(r,l,z,x),warning:y(E,"bullets",l,z),onFixWarning:d,multiline:!0})}),e.jsxs("div",{className:"no-print opacity-0 group-hover/bullet:opacity-100 flex items-center gap-1 shrink-0 pt-0.5",children:[e.jsx("button",{type:"button",onClick:()=>p(I,K,x=>n.updateBullet(r,l,z,x)),className:"text-[10px] font-semibold text-indigo-600 hover:text-indigo-800",title:"AI refine bullet",children:"AI"}),e.jsx("button",{type:"button",onClick:()=>n.removeBullet(r,l,z),className:"text-rose-500 hover:text-rose-700 text-xs px-1",title:"Remove bullet",children:"×"})]})]},z))}),e.jsx("button",{type:"button",onClick:()=>n.addBullet(r,l),className:"no-print text-[10px] font-semibold text-emerald-700 hover:underline ml-4",children:"+ Add bullet"})]}),q=r=>{const l=r.toLowerCase();return/typescript|javascript|python|java\b|c\+\+|golang|c#|rust|php|ruby|swift|kotlin|scala|sql\b/.test(l)&&!/node|react|express|fastapi|postgres|mysql/.test(l)?"Languages":/react|next\.?js|vue|angular|tailwind|css|html|frontend|ui design|redux|svelte|bootstrap|webpack|vite/.test(l)?"Frontend":/node|express|fastapi|nest|django|flask|spring|backend|restful|rest api|graphql|microservices/.test(l)?"Backend":/postgres|mongo|redis|mysql|sqlite|dynamodb|oracle|database|prisma|typeorm/.test(l)?"Database":/aws|gcp|azure|docker|kubernetes|ci\/cd|devops|terraform|linux|nginx|cloud/.test(l)?"DevOps":/ai|rag|langchain|langgraph|openai|llm|machine learning|fastapi|conversational/.test(l)?"AI & Automation":/git|github|n8n|workflow|jira|postman|agile|scrum/.test(l)?"Tools & Workflow":"Technical Skills"},M=(r,l)=>{const b=l.replace(/:$/,"").trim(),E=(t.skills||[]).map(K=>(K.category?.trim()||q(K.name))===r?{...K,category:b}:K);i({...t,skills:E})},h=r=>{const l={id:`s-${Date.now()}`,name:"New Skill",category:r.replace(/:$/,"").trim(),level:4};i({...t,skills:[...t.skills||[],l]})},P=()=>{const l={id:`s-${Date.now()}`,name:"New Skill",category:"New Tech Category",level:4};i({...t,skills:[...t.skills||[],l]})},G=r=>{const l=new Map;return(t.skills||[]).forEach(b=>{const K=b.category?.trim()||q(b.name);l.has(K)||l.set(K,[]),l.get(K).push(b)}),e.jsxs(V,{sectionKey:"skills",className:"space-y-2",children:[e.jsx(ce,{onAdd:P,addLabel:"Add Category Row",onHide:()=>i(ie(t,r.id,!1)),titleClassName:Ye,children:e.jsx("h2",{className:Oe,style:{color:f},children:u(r)})}),e.jsx("div",{className:"space-y-2.5 text-[12px] leading-relaxed pt-1",children:Array.from(l.entries()).map(([b,E])=>{const K=b?b.endsWith(":")?b:`${b}:`:"Skills:";return e.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-baseline gap-x-4 gap-y-1 group/catRow",children:[e.jsxs("div",{className:"sm:w-32 shrink-0 font-bold text-[13px] flex items-center gap-1",style:{color:f},children:[e.jsx(c,{value:K,onChange:I=>M(b,I),placeholder:"Category:",commitOnBlur:!0}),e.jsx("button",{type:"button",onClick:()=>h(b),className:"no-print opacity-0 group-hover/catRow:opacity-100 text-[10px] text-emerald-600 hover:text-emerald-800 font-bold",title:`Add skill to ${b}`,children:"+"})]}),e.jsx("div",{className:"flex-1 flex flex-wrap items-baseline gap-x-2 gap-y-1 text-slate-800 min-w-0",children:E.map((I,z)=>e.jsxs(De.Fragment,{children:[e.jsxs("span",{className:"inline-flex items-center gap-1 group/sk",children:[e.jsx(c,{value:
79I.name,onChange:x=>n.updateSkill(I.id,{name:x}),placeholder:"Skill",warning:y("skills"),onFixWarning:d,commitOnBlur:!0}),e.jsx("button",{type:"button",onClick:()=>n.removeSkill(I.id),className:"no-print opacity-0 group-hover/sk:opacity-100 text-rose-500 hover:text-rose-700 text-xs font-bold leading-none",title:"Remove skill",children:"×"})]}),z<E.length-1?e.jsx("span",{className:"text-slate-400 select-none font-bold","aria-hidden":!0,children:"·"}):null]},I.id))})]},b||"__uncategorized")})})]})},F=r=>e.jsxs(V,{sectionKey:"work",className:"space-y-3",children:[w(r,n.addWorkExperience),e.jsx("div",{className:"space-y-3.5",children:(t.workExperiences||[]).map((l,b)=>{const E=Se(l.company),K=!!l.company?.trim();return e.jsx(V,{sectionKey:"work",itemId:l.id,children:e.jsxs(ge,{onRemove:()=>n.removeWorkExperience(l.id),onMoveUp:()=>n.moveWorkExperience(b,"up"),onMoveDown:()=>n.moveWorkExperience(b,"down"),canMoveUp:b>0,canMoveDown:b<t.workExperiences.length-1,className:"space-y-1",children:[e.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-baseline sm:justify-between gap-1 text-[13px] leading-snug",children:[e.jsxs("div",{className:"font-bold text-slate-900 flex flex-wrap items-baseline gap-1.5 min-w-0",children:[e.jsx(c,{value:l.title,onChange:I=>n.updateWorkExperience(l.id,{title:I}),placeholder:"Job Title",warning:y("work","title",l.id),onFixWarning:d}),e.jsx("span",{className:`text-slate-400 font-normal${K&&!E?"":" no-print"}`,children:e.jsx(fe,{color:f})}),e.jsx("span",{className:`font-semibold${E?" no-print":""}`,style:{color:f},children:e.jsx(c,{value:l.company,onChange:I=>n.updateWorkExperience(l.id,{company:I}),placeholder:"Company",warning:y("work","company",l.id),onFixWarning:d})})]}),e.jsxs("div",{className:"text-[12px] text-slate-500 font-medium shrink-0 flex items-center gap-1 sm:text-right",children:[e.jsx(c,{value:l.startDate,onChange:I=>n.updateWorkExperience(l.id,{startDate:I}),placeholder:"Start"}),e.jsx("span",{children:"–"}),e.jsx(c,{value:l.current?"Present":l.endDate,onChange:I=>n.updateWorkExperience(l.id,{endDate:I}),placeholder:"End"}),l.location?e.jsxs(e.Fragment,{children:[e.jsx("span",{className:"text-slate-300",children:e.jsx(fe,{color:f})}),e.jsx(c,{value:l.location,onChange:I=>n.updateWorkExperience(l.id,{location:I}),placeholder:"Location"})]}):null]})]}),l.description?e.jsx("p",{className:"text-[12px] text-slate-600 italic",children:e.jsx(c,{value:l.description,onChange:I=>n.updateWorkExperience(l.id,{description:I}),multiline:!0})}):null,H("work",l.id,l.bullets,"work","Experience Bullet")]})},l.id)})})]}),te=r=>e.jsxs(V,{sectionKey:"projects",className:"space-y-3",children:[w(r,n.addProject),e.jsx("div",{className:"space-y-3",children:(t.projects||[]).map(l=>e.jsx(V,{sectionKey:"projects",itemId:l.id,children:e.jsxs(ge,{onRemove:()=>n.removeProject(l.id),className:"space-y-1",children:[e.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-baseline sm:justify-between gap-1 text-[13px] leading-snug",children:[e.jsx("div",{className:"font-bold text-slate-900 min-w-0",children:e.jsx(c,{value:l.name,onChange:b=>n.updateProject(l.id,{name:b}),placeholder:"Project Name",warning:y("projects","name",l.id),onFixWarning:d})}),l.startDate||l.endDate?e.jsxs("div",{className:"text-[12px] text-slate-500 font-medium shrink-0 flex items-center gap-1",children:[e.jsx(c,{value:l.startDate||"",onChange:b=>n.updateProject(l.id,{startDate:b})}),l.endDate?e.jsxs(e.Fragment,{children:[e.jsx("span",{children:"–"}),e.jsx(c,{value:l.endDate,onChange:b=>n.updateProject(l.id,{endDate:b})})]}):null]}):null]}),e.jsx("div",{className:"text-[12px] italic mt-0.5 break-words",style:{color:f},children:e.jsx(c,{value:l.role||"",onChange:b=>n.updateProject(l.id,{role:mt(b)}),placeholder:"Tech Stack (e.g. React.js, Node.js)",warning:y("projects","role",l.id),onFixWarning:d})}),(l.link||"").trim()?e.jsx("div",{className:"text-[11px] text-sky-700 break-all",children:e.jsx(c,{value:l.link||"",onChange:b=>n.updateProject(l.id,{link:b})})}):null,l.description?e.jsx("div",{className:"text-[12px] italic text-slate-600",children:e.jsx(c,{value:l.description,onChange:b=>n.updateProject(l.id,{description:b}),multiline:!0,warning:y("projects","description",l.id),onFixWarning:d})}):null,H("project",l.id,l.bullets||[],"projects","Project Bullet")]})},l.id))})]}),X=r=>e.jsxs(V,{sectionKey:"education",className:"space-y-2.5",children:[w(r,n.addEducation),e.jsx("div",{className:"space-y-2",children:(t.educations||[]).map(l
79=>{const b=!!(l.startDate?.trim()||l.endDate?.trim());return e.jsx(V,{sectionKey:"education",itemId:l.id,children:e.jsxs(ge,{onRemove:()=>n.removeEducation(l.id),className:"space-y-0.5",children:[e.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-baseline sm:justify-between gap-1 text-[13px] leading-snug",children:[e.jsxs("div",{className:"flex flex-col gap-0.5 font-bold text-slate-900 min-w-0",children:[e.jsxs("div",{className:"flex flex-wrap items-baseline gap-1.5 min-w-0",children:[e.jsx(c,{value:l.degree,onChange:E=>n.updateEducation(l.id,{degree:E}),placeholder:"Degree",warning:y("education","degree",l.id),onFixWarning:d}),l.gpa?e.jsxs("span",{className:"text-xs font-normal text-slate-500",children:["(GPA: ",e.jsx(c,{value:l.gpa,onChange:E=>n.updateEducation(l.id,{gpa:E})}),")"]}):null]}),e.jsx("span",{className:"font-semibold text-slate-700",children:e.jsx(c,{value:l.institution,onChange:E=>n.updateEducation(l.id,{institution:E}),placeholder:"Institution",warning:y("education","institution",l.id),onFixWarning:d})})]}),e.jsxs("div",{className:"text-[12px] text-slate-500 font-medium shrink-0 flex items-center gap-1",children:[e.jsx(c,{value:l.startDate,onChange:E=>n.updateEducation(l.id,{startDate:E}),placeholder:"Start"}),b?e.jsx("span",{children:"–"}):null,e.jsx(c,{value:l.endDate,onChange:E=>n.updateEducation(l.id,{endDate:E}),placeholder:"End"}),l.location?e.jsxs(e.Fragment,{children:[e.jsx("span",{className:"text-slate-300",children:e.jsx(fe,{color:f})}),e.jsx(c,{value:l.location,onChange:E=>n.updateEducation(l.id,{location:E})})]}):null]})]}),l.description?e.jsx("p",{className:"text-[12px] text-slate-600",children:e.jsx(c,{value:l.description,onChange:E=>n.updateEducation(l.id,{description:E}),multiline:!0,warning:y("education","description",l.id),onFixWarning:d})}):null]})},l.id)})})]}),U=r=>e.jsxs(V,{sectionKey:"certifications",className:"space-y-2",children:[w(r),e.jsx("div",{className:"space-y-1.5 text-[12.5px]",children:(t.certifications||[]).map(l=>e.jsxs("div",{className:"flex items-baseline justify-between gap-2",children:[e.jsxs("div",{className:"flex items-baseline gap-2 min-w-0",children:[e.jsx(fe,{color:f}),e.jsx("span",{className:"font-bold text-slate-800",children:e.jsx(c,{value:l.name,onChange:b=>i({...t,certifications:(t.certifications||[]).map(E=>E.id===l.id?{...E,name:b}:E)}),placeholder:"Certification name"})}),l.issuer?e.jsxs("span",{className:"text-slate-600",children:["–"," ",e.jsx(c,{value:l.issuer,onChange:b=>i({...t,certifications:(t.certifications||[]).map(E=>E.id===l.id?{...E,issuer:b}:E)})})]}):null]}),l.date?e.jsx("span",{className:"text-[12px] text-slate-500 font-medium shrink-0",children:l.date}):null]},l.id))})]}),ee=(r,l,b)=>e.jsxs(V,{sectionKey:"languages",className:"space-y-2",children:[w(r,b,"Add"),e.jsx("div",{className:"flex flex-wrap items-baseline gap-x-2 gap-y-1 text-[12px] text-slate-800",children:l.map((E,K)=>e.jsxs(De.Fragment,{children:[K>0?e.jsx("span",{className:"text-slate-500 select-none flex items-center","aria-hidden":!0,children:e.jsx(fe,{color:f})}):null,e.jsxs("span",{className:"inline-flex items-baseline gap-1 group/lang",children:[e.jsx(c,{value:E.name,onChange:E.onName,placeholder:"Language"}),E.level!=null?e.jsxs("span",{className:`inline-flex items-baseline gap-1${E.level.trim()?"":" no-print"}`,children:[e.jsx("span",{children:"—"}),E.onLevel?e.jsx(c,{value:E.level,onChange:E.onLevel,placeholder:"Proficiency"}):e.jsx("span",{children:E.level})]}):null,e.jsx("button",{type:"button",onClick:E.onRemove,className:"no-print opacity-0 group-hover/lang:opacity-100 text-rose-500 hover:text-rose-700 text-xs font-bold leading-none",title:"Remove language",children:"×"})]})]},E.key))})]}),D=r=>ee(r,(t.languages||[]).map(l=>({key:l.id,name:l.name,level:st(l),onName:b=>n.updateLanguage(l.id,{name:b}),onRemove:()=>n.removeLanguage(l.id)})),n.addLanguage),g=(r,l)=>{const b=z=>i(St(t,{...l,...z})),E=l.contentType??"items";if(E==="bullets"){const z=l.bullets??[];return ee(r,z.map((x,L)=>({key:`b-${L}`,name:x,onName:v=>b({bullets:z.map((T,N)=>N===L?v:T)}
79),onRemove:()=>b({bullets:z.filter((v,T)=>T!==L)})})),()=>b({bullets:[...z,"Language"]}))}if(E==="keyvalue"){const z=l.keyValues??[];return ee(r,z.map((x,L)=>({key:`kv-${L}`,name:x.key,level:x.value,onName:v=>b({keyValues:z.map((T,N)=>N===L?{...T,key:v}:T)}),onLevel:v=>b({keyValues:z.map((T,N)=>N===L?{...T,value:v}:T)}),onRemove:()=>b({keyValues:z.filter((v,T)=>T!==L)})})),()=>b({keyValues:[...z,{key:"Language",value:""}]}))}const K=l.items,I=z=>z.subtitle?.trim()?"subtitle":"description";return ee(r,K.map(z=>({key:z.id,name:z.title,level:z[I(z)]||"",onName:x=>b({items:K.map(L=>L.id===z.id?{...L,title:x}:L)}),onLevel:x=>b({items:K.map(L=>L.id===z.id?{...L,[I(z)]:x}:L)}),onRemove:()=>b({items:K.filter(x=>x.id!==z.id)})})),()=>b({items:[...K,{id:`cs-item-${Date.now()}`,title:"Language",description:"",bullets:[]}]}))},k=r=>{const l=Ct(t,r.id);if(l&&xs.test(l.title.trim())&&(l.contentType??"items")!=="paragraph")return g(r,l);if(!l){if(r.id==="languages")return D(r);if(r.id==="skills")return G(r);if(r.id==="work")return F(r);if(r.id==="projects")return te(r);if(r.id==="education")return X(r);if(r.id==="certifications")return U(r)}return e.jsx(Pt,{section:r,data:t,theme:s,onUpdate:i,onAiRefineText:p,warnings:o,onFixWarning:d,titleClassName:`${Oe} ${Ye}`,titleStyle:{color:f},bulletMarker:e.jsx(fe,{color:f,lineHeight:"16px"}),itemMarker:e.jsx(fe,{color:f})})};return e.jsxs("div",{className:"bg-white text-slate-800 font-sans h-full p-8 sm:p-11 relative flex flex-col space-y-4",children:[B?e.jsxs(V,{sectionKey:"personal",className:"space-y-2 group/sechead",children:[e.jsxs("div",{className:"relative",children:[e.jsxs("div",{className:"no-print absolute right-0 top-0 flex items-center gap-1",children:[e.jsx(J,{onClick:()=>i(ie(t,"personal",!1)),title:"Hide personal details"}),S?e.jsx(J,{onClick:()=>i(ie(t,"contact",!1)),title:"Hide contact section"}):null]}),e.jsxs("div",{className:"flex items-center justify-between gap-4",children:[e.jsxs("div",{className:"flex-1 min-w-0 space-y-1",children:[j.hideName?null:e.jsx("h1",{className:"text-2xl sm:text-3xl font-serif font-bold tracking-wide uppercase text-slate-900 leading-tight",children:e.jsx(c,{value:j.fullName,onChange:r=>n.updatePersonalInfo("fullName",r),placeholder:"Full Name",warning:y("personal","fullName"),onFixWarning:d})}),j.hideTitle?null:e.jsx("div",{className:"text-sm sm:text-[14.5px] font-medium mt-0.5 break-words",style:{color:f},children:e.jsx(c,{value:j.title,onChange:r=>n.updatePersonalInfo("title",mt(r)),placeholder:"Professional headline",warning:y("personal","title"),onFixWarning:d})})]}),!j.hidePhoto&&j.photoUrl?e.jsx("div",{className:"shrink-0 w-20 h-20 sm:w-24 sm:h-24 rounded-md border-2 overflow-hidden",style:{borderColor:f},children:e.jsx("img",{src:j.photoUrl,alt:"",className:"w-full h-full object-cover"})}):null]})]}),O.length?e.jsx("div",{className:"flex flex-wrap items-center gap-x-2.5 gap-y-1 text-xs text-slate-600 pt-1",children:O.map(({key:r,icon:l,value:b},E)=>e.jsxs(De.Fragment,{children:[E>0?e.jsx("span",{className:"text-slate-300 select-none","aria-hidden":!0,children:"•"}):null,e.jsxs("span",{className:"inline-flex items-center gap-1 min-w-0",children:[e.jsx(l,{className:"w-3.5 h-3.5 text-slate-400 shrink-0"}),e.jsx(c,{value:b,onChange:K=>n.updatePersonalInfo(r,K)})]})]},r))}):null,e.jsx("hr",{className:"border-t-2 mt-2",style:{borderColor:f}}),j.hideSummary?null:e.jsxs("section",{className:"space-y-1.5 pt-1",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("h2",{className:Oe,style:{color:f},children:"Professional Summary"}),e.jsx("button",{type:"button",onClick:()=>p(j.summary,"Professional Summary",r=>n.updatePersonalInfo("summary",r)),className:"no-print text-[11px] font-medium text-indigo-600 hover:text-indigo-800",title:"Refine summary with AI",children:"AI Refine"})]}),e.jsx("div",{className:"text-[12.5px] text-slate-700 leading-relaxed text-justify",children:e.jsx(c,{value:j.summary,onChange:r=>n.updatePersonalInfo("summary",r),multiline:!0,placeholder:"Professional summary",warning:y("personal","summary"),onFixWarning:d})})]})]}):null,C.map(r=>{const l=e.jsx(De.Fragment,{children:k(r)},r.id);return Ee(t,r.id)?l:e.jsx("div",{className:"no-print",children:k(r)},r.id)})]})},gs=({templateId:t,data:s,theme:o,warnings:i,onUpdate:d,onFixWarning:p,onAiRefineText:n})=>{switch(t){case"free":case"professional":return e.jsx(ct,{data:s,theme:o,warnings:i,onUpdate:d,onFixWarning:p,onAiRefineText:n});case"student":return e.jsx(cs,{data:s,theme:o,warnings:i,onUpdate:d,onFixWarning:p,onAiRefineText:n});case"modern":return e.jsx(ds,{data:s,theme:o,warnings:i,onUpdate:d,onFixWarning:p,onAiRefineText:n});case"creative":return e.jsx(ms,{data:s,theme:o,warnings:i,onUpdate:d,onFixWarning:p,onAiRefineText:n});
79case"minimal":return e.jsx(us,{data:s,theme:o,warnings:i,onUpdate:d,onFixWarning:p,onAiRefineText:n});case"executive":return e.jsx(ps,{data:s,theme:o,warnings:i,onUpdate:d,onFixWarning:p,onAiRefineText:n});case"enterprise":return e.jsx(hs,{data:s,theme:o,warnings:i,onUpdate:d,onFixWarning:p,onAiRefineText:n});case"vizops1":return e.jsx(fs,{data:s,theme:o,warnings:i,onUpdate:d,onFixWarning:p,onAiRefineText:n});default:return e.jsx(ct,{data:s,theme:o,warnings:i,onUpdate:d,onFixWarning:p,onAiRefineText:n})}},bs=`
80  #resume-paper-document [class*="resume-issue-pulse"],
81  #resume-paper-document .bg-rose-500\\/10,
82  #resume-paper-document .bg-amber-500\\/10,
83  #resume-paper-document .bg-sky-500\\/10,
84  #resume-paper-document [class*="outline-rose-"],
85  #resume-paper-document [class*="outline-amber-"],
86  #resume-paper-document [class*="outline-sky-"] {
87    outline: none !important;
88    outline-width: 0 !important;
89    background-color: transparent !important;
90    background-image: none !important;
91    box-shadow: none !important;
92    animation: none !important;
93  }
94`,Xs=`
95  html.resume-print-active,
96  html.resume-print-active body,
97  html.resume-print-active #root,
98  html.resume-print-active .resume-print-root,
99  html.resume-print-active .resume-print-root main {
100    background: #fff !important;
101    margin: 0 !important;
102    padding: 0 !important;
103    overflow: visible !important;
104    height: auto !important;
105    min-height: 0 !important;
106    max-height: none !important;
107    position: static !important;
108  }
109
110  @page {
111    size: A4 portrait !important;
112  }
113
114  #resume-paper-document,
115  #resume-paper-document * {
116    letter-spacing: 0 !important;
117    word-spacing: 0 !important;
118  }
119
120  #resume-paper-document,
121  #resume-paper-document > .resume-paper-inner,
122  #resume-paper-document > .resume-paper-inner > * {
123    overflow: visible !important;
124    overflow-x: visible !important;
125    box-shadow: none !important;
126  }
127
128  #resume-paper-document p,
129  #resume-paper-document li,
130  #resume-paper-document span,
131  #resume-paper-document h1,
132  #resume-paper-document h2,
133  #resume-paper-document h3,
134  #resume-paper-document div {
135    overflow-wrap: break-word !important;
136    word-break: normal !important;
137    hyphens: none !important;
138  }
139
140  #resume-paper-document .group\\/editable:not(.no-print),
141  #resume-paper-document [class*="group/editable"]:not(.no-print) {
142    display: inline !important;
143    max-width: 100%;
144  }
145
146  #resume-paper-document .no-print,
147  #resume-paper-document .no-print * {
148    display: none !important;
149    visibility: hidden !important;
150  }
151
152  #resume-paper-document [data-print-sidebar] > *:not(:last-child):not([aria-hidden="true"]) {
153    overflow: visible !important;
154  }
155
156  @media print {
157    ${bs}
158  }
159`,vs=`
160  #resume-paper-document .resume-split-body {
161    display: block !important;
162    overflow: visible !important;
163    break-inside: auto !important;
164    page-break-inside: auto !important;
165  }
166  #resume-paper-document .resume-split-body::after {
167    content: '' !important;
168    display: table !important;
169    clear: both !important;
170  }
171  #resume-paper-document .resume-split-body > :first-child {
172    float: left !important;
173    width: calc((100% - 2rem) * 7 / 12) !important;
174    max-width: calc((100% - 2rem) * 7 / 12) !important;
175    overflow: visible !important;
176    break-inside: auto !important;
177    page-break-inside: auto !important;
178  }
179  #resume-paper-document .resume-split-body > :last-child:not(:only-child) {
180    float: right !important;
181    width: calc((100% - 2rem) * 5 / 12) !important;
182    max-width: calc((100% - 2rem) * 5 / 12) !important;
183    overflow: visible !important;
184    break-inside: auto !important;
185    page-break-inside: auto !important;
186  }
187`,js={inter:"font-sans",serif:"font-serif",poppins:"font-sans",roboto:"font-sans"},ut={inter:"Inter, ui-sans-serif, system-ui, sans-serif",serif:'Merriweather, Georgia, "Times New Roman", serif',poppins:"Poppins, ui-sans-serif, system-ui, sans-serif",roboto:"Roboto, ui-sans-serif, system-ui, sans-serif"};function Zs({templateId:t,data:s,theme:o,font:i,zoom:d,warnings:p,exportReady:n=!1,onUpdateData:f,onFixWarning:j,onAiRefineText:B}){return e.jsxs("main",{className:"flex-1 min-w-0 min-h-0 overflow-auto bg-muted/40 p-4 sm:p-8 flex items-start",children:[e.jsx("div",{className:we("mx-auto transition-all",js[i]),style:{transform:`scale(${d/100})`,transformOrigin:"top center",transition:"transform 0.15s ease-out",width:"210mm",flexShrink:0,fontFamily:ut[i]},children:e.jsx("div",{id:"resume-paper-document","data-ready":n?"true":void 0,className:"bg-white shadow-lg ring-1 ring-black/10 rounded-sm relative overflow-hidden print:overflow-visible mx-auto resume-paper-font flex flex-col",style:{width:"210mm",fontFamily:ut[i]},children:e.jsx("div",{className:"flex flex-col w-full flex-1 resume-paper-inner",children:e.jsx(gs,{templateId:t,data:{...s,sectionsOrder:it(s.sectionsOrder)}
187,theme:o,warnings:p,onUpdate:f,onFixWarning:j,onAiRefineText:B})})})}),e.jsx("style",{children:`
188        #resume-paper-document.resume-paper-font .font-sans,
189        #resume-paper-document.resume-paper-font .font-serif {
190          font-family: inherit !important;
191        }
192        /* Screen studio: keep A4 sheet height. Print/PDF must NOT force 297mm
193           or Chromium spills a blank trailing page once @page margins apply. */
194        @media screen {
195          #resume-paper-document {
196            min-height: 297mm;
197          }
198          #resume-paper-document > .resume-paper-inner {
199            flex: 1 1 auto;
200            display: flex;
201            flex-direction: column;
202            min-height: 297mm;
203          }
204          /* Stretch the template to the sheet so sidebar rails meet one bottom edge. */
205          #resume-paper-document > .resume-paper-inner > * {
206            flex: 1 1 auto;
207            min-height: 297mm;
208            width: 100%;
209            box-shadow: none !important;
210          }
211        }
212        @media print {
213          .no-print {
214            display: none !important;
215          }
216          #resume-paper-document,
217          #resume-paper-document > .resume-paper-inner,
218          #resume-paper-document > .resume-paper-inner > * {
219            min-height: 0 !important;
220            height: auto !important;
221            flex: none !important;
222          }
223          ${vs}
224        }
225        /* Keep long AI skill strings / chips inside the A4 sheet (screen only).
226           Print/PDF must not use overflow-wrap:anywhere — Chromium duplicates glyphs. */
227        @media screen {
228          #resume-paper-document {
229            flex-shrink: 0;
230            overflow-x: hidden;
231          }
232          #resume-paper-document > .resume-paper-inner,
233          #resume-paper-document > .resume-paper-inner > * {
234            max-width: 100%;
235            overflow-x: hidden;
236          }
237          #resume-paper-document p,
238          #resume-paper-document li,
239          #resume-paper-document span,
240          #resume-paper-document h1,
241          #resume-paper-document h2,
242          #resume-paper-document h3 {
243            overflow-wrap: anywhere;
244            word-break: break-word;
245          }
246        }
247        #resume-paper-document .grid {
248          width: 100%;
249          max-width: 100%;
250        }
251        #resume-paper-document .grid > * {
252          min-width: 0;
253          max-width: 100%;
254        }
255        #resume-paper-document .resume-chip-row {
256          min-width: 0;
257          max-width: 100%;
258        }
259        #resume-paper-document .resume-chip {
260          max-width: 100%;
261          white-space: normal;
262          overflow-wrap: anywhere;
263          word-break: break-word;
264        }
265        #resume-paper-document .resume-chip .whitespace-nowrap {
266          white-space: normal !important;
267        }
268        @keyframes resume-issue-flash {
269          0%, 100% { box-shadow: 0 0 0 0 transparent; }
270          50% { box-shadow: 0 0 0 4px var(--resume-pulse-color, rgb(244 63 94 / 0.45)); }
271        }
272        .resume-issue-pulse {
273          animation: resume-issue-flash 0.7s ease-in-out 4;
274          outline-width: 2px !important;
275        }
276        .resume-issue-pulse-rose {
277          --resume-pulse-color: rgb(244 63 94 / 0.5);
278          background-color: rgb(244 63 94 / 0.18) !important;
279          outline-color: rgb(244 63 94) !important;
280        }
281        .resume-issue-pulse-amber {
282          --resume-pulse-color: rgb(245 158 11 / 0.5);
283          background-color: rgb(245 158 11 / 0.18) !important;
284          outline-color: rgb(245 158 11) !important;
285        }
286        .resume-issue-pulse-sky {
287          --resume-pulse-color: rgb(14 165 233 / 0.5);
288          background-color: rgb(14 165 233 / 0.18) !important;
289          outline-color: rgb(14 165 233) !important;
290        }
291        .resume-issue-pulse-applied {
292          --resume-pulse-color: rgb(16 185 129 / 0.55);
293          background-color: rgb(16 185 129 / 0.2) !important;
294          outline-color: rgb(16 185 129) !important;
295        }
296      `})]})}const ys=/\b(long[- ]term|short[- ]term|opportunit(?:y|ies)|hiring|wanted|needed|urgent|available immediately|immediate(?:ly)?(?:\s+joiners?)?|looking for|contract(?:ors?)?(?:\s+needed)?)\b/i,Ns=new Set(["the","and","for","with","from","this","that","role","job","senior","junior","lead","available","immediate","immediately","long","term","short"]);function nt(t){const s=String(t||"").replace(/\s+/g," ").trim().toLowerCase();return s?!!(/agency\s+proposal/.test(s)||/\bproposal\s+writer\b/.test(s)||/\bcover[- ]letter\b/.test(s)&&/\bwriter\b/.test(s)||/^agency(\s+writer)?$/.test(s)):!1}function ws(t){const s=String(t||"").trim();if(!s)return!1;if(nt(s)||s.length>80||ys.test(s))return!0;const o=s.match(/\(([^)]{16,})\)/);return!!(o&&(o[1].match(/\+/g)||[]).length>=2)}function Dt(t){let s=String(t||"").trim();return s?(s=s.replace(/\s+[–—]\s+.+$/,""),s=s.replace(/\s+-\s+(?=(?:long|short)[- ]term|remote|onsite|hybrid|contract|full[- ]time|part[- ]time|opportunit).+$/i,""),s=s.replace(/\s*\([^)]{12,}\)\s*$/,""),s=s.replace(/\b(the\s+)?(role|position|opening|vacancy|opportunity)\b/gi," "),s=s.replace(/\s+/g," ").trim(),s.length>60&&(s=s.slice(0,60).replace(/\s+\S*$/,"").trim()),s):""}function Ue(t){const s=String(t||"").replace(/\s+/g," ").trim();return!(!s||s.length>80||nt(s)||/\b(?:up-?work|freelance(?:rs?|d|ing)?|independents?|independently|contractors?|contracting|self[-\s]?employed)\b/i.test(s)||ws(s))}function pt(t){const s=String(t||"").toLowerCase().split(/[^a-z0-9+]+/i).filter(o=>o.length>=3&&!Ns.has(o));return new Set(s)}function Pe(t,s){const o=pt(t),i=pt(s);let d=0;for(const p of o)i.has(p)&&(d+=1);return d}function ks(t){const s=Dt(t);return Ue(s)?s:""}function ht(t){const s=String(t||"").trim();if(nt(s))return"";if(Ue(s))return s;const o=Dt(s);return Ue(o)?o:""}function Cs(t,s={}){const o=[...s.experienceTitles||[],s.experienceTitle||""].map(B=>
296ht(B)).filter(Boolean),i=o.join(" "),d=`${s.jobTitle||""} ${s.jobBrief||""}`.trim(),p=ks(s.jobTitle),n=ht(t);if(n&&Pe(n,d)>0&&(!i||Pe(n,i)>0))return ye(n);if(!!p&&(!i||Pe(p,i)>0||Pe(d,i)>0)&&p)return ye(p);const j=o.find(B=>Pe(B,d)>0);return j?ye(j):p?ye(p):o[0]?ye(o[0]):ye(n)}function Qe(t,s){if(!t)return[];const o=[],i=(p,n)=>{const f=p.trim().replace(/^[•\-\u2022*\.]\s*/,"");!f||f==="[object Object]"||o.push({id:s(`sk-${o.length}`),name:f,category:n?.trim()||void 0,level:4})},d=(p,n)=>{if(p){if(typeof p=="string"){const f=p.trim();if(!f||f==="[object Object]")return;if(f.includes(":")){const j=f.indexOf(":"),B=f.slice(0,j).trim(),S=f.slice(j+1).trim(),C=S.split(/[\u2022,;|\n]|\s+[·•]\s+/).map(O=>O.trim()).filter(Boolean);C.length?C.forEach(O=>i(O,B)):S&&i(S,B)}else{const j=f.split(/[\u2022,;|\n]|\s+[·•]\s+/).map(B=>B.trim()).filter(Boolean);j.length>1?j.forEach(B=>i(B,n)):i(f,n)}return}if(typeof p=="object"){const f=p,j=typeof f.category=="string"?f.category:typeof f.title=="string"?f.title:typeof f.label=="string"?f.label:typeof f.key=="string"?f.key:n;if(Array.isArray(f.items)){f.items.forEach(S=>d(S,j));return}if(Array.isArray(f.bullets)){f.bullets.forEach(S=>d(S,j));return}const B=typeof f.name=="string"?f.name:typeof f.value=="string"?f.value:typeof f.text=="string"?f.text:typeof f.details=="string"?f.details:"";B&&d(B,j)}}};return Array.isArray(t)?t.forEach(p=>d(p)):(typeof t=="object"||typeof t=="string")&&d(t),o}const Ss=["professional","free","student","modern","creative","minimal","executive","enterprise","vizops1"],Es=["inter","serif","poppins","roboto"];function xt(t){return typeof t=="string"&&Ss.includes(t)}function Is(t){return typeof t=="string"&&Es.includes(t)}function Xe(t,s){const o=t?.[s];return typeof o=="string"?o.trim():""}function Ps(t){const s=t.filter(o=>o.label===Be);for(let o=s.length-1;o>=0;o--){const i=_(s[o]?.fields?.richtext);if(i)try{return JSON.parse(i)}catch{}}return null}function Us(t,s={templateId:"free",themeId:"teal",font:"inter"}){const i=[...t].reverse().find(C=>C.label===Be)?.fields??{},d=Ps(t),p=Xe(i,"studioTemplateId"),n=d?.visualTemplateId,f=xt(p)?p:xt(n)?n:s.templateId,j=Xe(i,"studioThemeId")||d?.themeId?.trim()||s.themeId,B=Xe(i,"studioFont")||d?.font,S=Is(B)?B:s.font;return{templateId:f,themeId:j,font:S}}function ue(t){return`${t}-${Math.random().toString(36).slice(2,9)}`}const Ds=/snapshot|industries|automation|devops|database|expertise|languages|interest|contact|tool|technolog/i,Ls=/contribution|highlight|experience|summary|education|project|achievement|volunteer|publication|award/i;function As(t){return Ds.test(t)?"sidebar":(Ls.test(t),"main")}function Ts(t,s){const o=Array.isArray(t.items)?t.items:[],i=Ae(t.keyValue),d=_(t.richtext);if(o.length)return o.map((p,n)=>{if(typeof p=="string"){const C=p.trim();return C?{id:s(`csi-${n}`),title:C,description:"",bullets:[]}:null}if(!p||typeof p!="object")return null;const f=p,j=_(f.title)||_(f.name)||_(f.label)||_(f.text),B=Le(f.bullets),S=_(f.description)||_(f.details)||_(f.richtext)||"";return!j&&!S&&!B.length?null:{id:s(`csi-${n}`),title:j||"Item",subtitle:_(f.subtitle)||_(f.organization)||void 0,date:_(f.date)||void 0,description:S,bullets:B}}).filter(Boolean);if(i.length)return i.map((p,n)=>({id:s(`cskv-${n}`),title:_(p.key)||_(p.label)||_(p.name)||"Item",description:_(p.value)||_(p.text)||"",bullets:[]}));if(d){const p=d.split(/\r?\n/).map(n=>n.replace(/^[•\-\u2022*]\s*/,"").trim()).filter(Boolean);return p.length>1?[{id:s("csr-0"),title:"",description:"",bullets:p}]:[{id:s("csr-0"),title:"",description:d,bullets:[]}]}return[]}function $s(t){const s=_(t.description);return s||[_(t.client)?`Client: ${_(t.client)}`:"",_(t.projects)?`Projects: ${_(t.projects)}`:""].filter(Boolean).join(`
297`)}function Bs(t,s){const o=new Set(s.filter(i=>i.hidden).map(i=>i.id));return o.size?t.map(i=>o.has(i.id)?{...i,visible:!1}:i):t}const ft=/^\s*(cgpa|gpa)\s*[:\-–]/i,Rs=/^\s*(cgpa|gpa)\s*[:\-–]\s*/i;function ei(t,s){t=Gt(t);const o=t.find(r=>r.type==="personal_info"),i=t.find(r=>r.type==="summary"),d=t.filter(r=>r.type==="skills"),p=t.find(r=>r.type==="experience"),n=t.find(r=>r.type==="education"),f=t.find(r=>r.type==="projects"),j=t.find(r=>r.type==="certifications"),B=t.filter(r=>r.type==="custom"&&r.label!==Be),S=o?.fields??{},C=Le(S.links),O=C.find(r=>/linkedin/i.test(r))||"",u=C.find(r=>/github/i.test(r))||"",w=C.find(r=>!/linkedin|github/i.test(r))||"",H=Ae(p?.fields?.items).map((r,l)=>{const b=_(r.company);return{id:ue(`work-${l}
297`),title:_(r.title),company:Ft(b),location:_(r.location),startDate:_(r.startDate),endDate:_(r.endDate)||"Present",current:!_(r.endDate)||/present/i.test(_(r.endDate)),description:$s(r),bullets:Le(r.bullets)}}),q=Ae(n?.fields?.items).map((r,l)=>{const b=Le(r.details),E=b.find(z=>ft.test(z)),K=b.filter(z=>!ft.test(z)).join(`
298`),I=(_(r.gpa)||E||"").replace(Rs,"").trim();return{id:ue(`edu-${l}`),degree:_(r.degree),institution:_(r.institution),location:_(r.location),startDate:_(r.startDate),endDate:_(r.endDate),gpa:I||void 0,description:_(r.description)||K||void 0}}),M=d.flatMap((r,l)=>{const b=(r.label||"").trim(),E=b&&!is(b)?b:void 0,K=Qe(r.fields?.items,L=>ue(`${L}-s${l}`)),I=Qe(r.fields?.keyValue,L=>ue(`${L}-skv${l}`)),z=Qe(r.fields?.richtext,L=>ue(`${L}-srt${l}`));return[...K,...I,...z].map(L=>({...L,category:L.category||E}))}),h=Ae(f?.fields?.items).map((r,l)=>({id:ue(`proj-${l}`),name:_(r.name)||_(r.title)||`Project ${l+1}`,role:_(r.role)||void 0,link:_(r.link)||void 0,startDate:_(r.startDate)||void 0,endDate:_(r.endDate)||void 0,description:_(r.description),bullets:Le(r.bullets)})),P=Ae(j?.fields?.items).map((r,l)=>({id:ue(`cert-${l}`),name:_(r.name),issuer:_(r.issuer),date:_(r.date)}));let G=[],F=[],te=[],X=[],U=Te.map(r=>({...r})),ee={},D;const g=t.find(r=>r.label===Be),k=_(g?.fields?.richtext);if(k)try{const r=JSON.parse(k);Array.isArray(r.sectionsOrder)&&r.sectionsOrder.length&&(U=r.sectionsOrder),ee=r.anonymizer||{},D=r.photoUrl,Array.isArray(r.customSections)&&(X=r.customSections),Array.isArray(r.achievements)&&(G=r.achievements),Array.isArray(r.languages)&&(F=r.languages.map(Zt)),Array.isArray(r.interests)&&(te=r.interests)}catch{}else{X=B.map((l,b)=>{const E=(l.label||`Custom Section ${b+1}`).trim(),K=Ts(l.fields??{},ue);return K.length?{id:ue(`custom-${b}`),title:E,visible:l.visible!==!1,column:As(E),items:K}:null}).filter(Boolean);const r=d.find(l=>/expertise|skill/i.test(l.label||""))?.label||d[0]?.label||"Skills";U=Te.map(l=>l.id==="personal"?{...l,visible:o?.visible!==!1}:l.id==="work"?{...l,title:p?.label?.trim()||l.title,visible:p?.visible!==!1&&H.length>0}:l.id==="education"?{...l,title:n?.label?.trim()||l.title,visible:n?.visible!==!1&&q.length>0}:l.id==="skills"?{...l,title:r.trim()||l.title,visible:d.some(b=>b.visible!==!1)&&M.length>0}:l.id==="projects"?{...l,title:f?.label?.trim()||l.title,visible:f?.visible!==!1&&h.length>0}:l.id==="certifications"?{...l,title:j?.label?.trim()||l.title,visible:j?.visible!==!1&&P.length>0}:l.id==="achievements"?{...l,visible:!1}:l.id==="languages"?{...l,visible:!1}:l.id==="interests"?{...l,visible:!1}:{...l});for(const l of X)U.push({id:l.id,title:l.title,visible:l.visible,column:l.column})}return U=Bs(U,[{id:"personal",hidden:o?.visible===!1},{id:"work",hidden:p?.visible===!1},{id:"education",hidden:n?.visible===!1},{id:"skills",hidden:d.length>0&&d.every(r=>r.visible===!1)},{id:"projects",hidden:f?.visible===!1},{id:"certifications",hidden:j?.visible===!1}]),X=X.map(r=>{const l=U.find(b=>b.id===r.id);return l&&l.visible===!1?{...r,visible:!1}:r}),{id:s?.id||ue("resume"),title:ye(s?.title||"Resume")||"Resume",personalInfo:{fullName:_(S.name),title:Cs(_(S.title)||_(S.headline)||"",{experienceTitle:H.find(r=>r.title.trim())?.title}),summary:_(i?.fields?.richtext),email:_(S.email),phone:_(S.phone),location:_(S.location),website:w||void 0,linkedin:O||void 0,github:u||void 0,photoUrl:D||zt(_(S.photoUrl))||void 0,...ee},workExperiences:H,educations:q,skills:M,projects:h,achievements:G,languages:F,interests:te,certifications:P,customSections:X,sectionsOrder:it(U)}}function ti(t,s){const o=[t.personalInfo.linkedin,t.personalInfo.github,t.personalInfo.website].filter(Boolean),i=[{type:"personal_info",label:"Personal Info",sortOrder:0,visible:t.sectionsOrder.find(n=>n.id==="personal")?.visible!==!1,fields:{name:t.personalInfo.fullName,title:t.personalInfo.title,email:t.personalInfo.email,phone:t.personalInfo.phone,location:t.personalInfo.location,links:o}},{type:"summary",label:"Summary",sortOrder:1,visible:t.sectionsOrder.find(n=>n.id==="personal")?.visible!==!1&&!t.personalInfo.hideSummary,fields:{richtext:t.personalInfo.summary||""}},{type:"experience",label:"Work Experience",sortOrder:2,visible:t.sectionsOrder.find(n=>n.id==="work")?.visible!==!1,fields:{items:t.workExperiences.map(n=>
298({company:n.company,title:n.title,startDate:n.startDate,endDate:n.current?"Present":n.endDate,location:n.location||"",description:n.description||"",bullets:n.bullets}))}},{type:"education",label:"Education",sortOrder:3,visible:t.sectionsOrder.find(n=>n.id==="education")?.visible!==!1,fields:{items:t.educations.map(n=>({institution:n.institution,degree:n.degree,location:n.location||"",startDate:n.startDate,endDate:n.endDate,gpa:n.gpa||"",description:n.description||"",details:[n.gpa,n.description].filter(Boolean)}))}},{type:"skills",label:"Skills",sortOrder:4,visible:t.sectionsOrder.find(n=>n.id==="skills")?.visible!==!1,fields:{items:t.skills.map(n=>({name:n.name,level:oe(n.level,3),...n.category?{category:n.category}:{}}))}},{type:"projects",label:"Projects",sortOrder:5,visible:t.sectionsOrder.find(n=>n.id==="projects")?.visible!==!1,fields:{items:t.projects.map(n=>({name:n.name,role:n.role||"",link:n.link||"",startDate:n.startDate||"",endDate:n.endDate||"",description:n.description||"",bullets:n.bullets}))}},{type:"certifications",label:"Certifications",sortOrder:6,visible:t.sectionsOrder.find(n=>n.id==="certifications")?.visible!==!1,fields:{items:t.certifications.map(n=>({name:n.name,issuer:n.issuer,date:n.date,details:[]}))}}],d=new Set(["achievements","languages","interests"]),p={sectionsOrder:t.sectionsOrder.map(n=>d.has(n.id)&&!Ee(t,n.id)?{...n,visible:!1}
298:n),anonymizer:{hideName:t.personalInfo.hideName,hideTitle:t.personalInfo.hideTitle,hideSummary:t.personalInfo.hideSummary,hideEmail:t.personalInfo.hideEmail,hidePhone:t.personalInfo.hidePhone,hideLocation:t.personalInfo.hideLocation,hideWebsite:t.personalInfo.hideWebsite,hideLinkedin:t.personalInfo.hideLinkedin,hideGithub:t.personalInfo.hideGithub,hidePhoto:t.personalInfo.hidePhoto},photoUrl:t.personalInfo.photoUrl,customSections:t.customSections||[],achievements:t.achievements,languages:t.languages,interests:t.interests,visualTemplateId:s?.templateId,themeId:s?.themeId,font:s?.font};return i.push({type:"custom",label:Be,sortOrder:99,visible:!1,fields:{richtext:JSON.stringify(p),items:[],keyValue:[],studioTemplateId:s?.templateId,studioThemeId:s?.themeId,studioFont:s?.font}}),i}export{qs as A,Js as B,Ks as C,Zs as R,Be as S,gs as T,Xs as a,vs as b,Is as c,it as d,Us as e,Ee as f,ie as g,$e as h,xt as i,Te as j,Ys as k,Re as l,bs as m,Zt as n,Ws as o,Fs as p,Qs as q,ss as r,ei as s,Gs as t,St as u,nt as v,Cs as w,ti as x,qt as y,Vs as z};

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.