1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6778],{36778:(e,a,n)=>{n.r(a),n.d(a,{default:()=>v});var s=n(95155),t=n(12115),l=n(98734);let i=l.Ik({skills:l.YO(l.Yj()).min(1,"At least one skill is required")}),r=["Financial Modeling","Valuation","Mergers & Acquisitions","Due Diligence","Capital Markets","Investment Analysis","Portfolio Management","Risk Management","Credit Analysis","Treasury Management","Corporate Finance","Private Equity","Venture Capital","Hedge Funds","Asset Management","Wealth Management","Financial Planning","Trading","Compliance","Audit","Tax Planning","Financial Reporting","Internal Controls","Regulatory Compliance","ESG (Environmental, Social, Governance)","Strategic Planning","Operations Management","Business Development","Marketing Management","Sales Management","Human Resources","Supply Chain Management","Project Management","Change Management","Quality Management","Performance Management","Client Relationship Management","Vendor Management","Budget Management","Cost Management","Revenue Management","Process Improvement","Team Leadership","Executive Management","Corporate Governance","Board Relations","Stakeholder Management","Investor Relations","Business Intelligence","Data Analytics","Market Research","Competitive Analysis","Forecasting","Statistical Analysis","KPI Development","Dashboard Creation","Data Visualization","Predictive Analytics","Customer Analytics","Sales Analytics","Marketing Analytics","Performance Analytics","Risk Analytics","Healthcare Management","Technology Management","Real Estate Management","Energy Management","Manufacturing Management","Retail Management","Telecommunications","Transportation","Utilities","Construction Management","Agriculture Management","Mining Management","Entertainment Management","Media Management","Education Management","Government Relations","Non-Profit Management","Hospitality Management","Aerospace Management","Automotive Management","Negotiation","Contract Management","Legal Compliance","Policy Development","Strategic Communication","Public Relations","Crisis Management","International Business","Cross-cultural Management","Digital Transformation","Innovation Management","Product Management","Service Management","Quality Assurance","Lean Management","Six Sigma","Agile Management","Scrum Master","Business Process Reengineering","Organizational Development"];var o=n(41180),c=n(44193),d=n(65229),m=n(24033),g=n(5917),u=n(90235),x=n(87133),p=n(97450);function h(e){let{editingIndex:a,formData:n,errors:l,isSubmitting:i,onInputChange:o,onSave:c,onCancel:h}=e,[v,M]=(0,t.useState)(!1);return(0,s.jsxs)("div",{className:"h-full flex flex-col",children:[(0,s.jsxs)("div",{className:"flex items-center justify-between py-3 bg-white px-3",children:[(0,s.jsx)("h3",{className:"text-lg font-semibold text-card-foreground",children:null!==a?"Edit Skills":"Add Skills"}),(0,s.jsx)("button",{onClick:h,className:"p-2 rounded-lg cursor-pointer","data-testid":"close-edit-skills-form",children:(0,s.jsx)(d.A,{className:"h-4 w-4 text-icon-primary"})})]}),(0,s.jsx)("div",{className:"flex-1 overflow-y-auto py-3 px-3",children:(0,s.jsxs)("div",{className:"space-y-6 px-0",children:[l.general&&(0,s.jsx)("div",{className:"p-3 bg-error-bg border border-error-solid rounded-lg",children:(0,s.jsx)("p",{className:"text-sm text-error-solid",children:l.general})}),(0,s.jsxs)("div",{className:"space-y-2","data-error":!!l.skills,children:[(0,s.jsx)(u.Label,{htmlFor:"skills",className:"text-s font-semibold",style:{color:"var(--color-foreground)"},children:"Skills *"}),(0,s.jsxs)("div",{className:"space-y-2",children:[(0,s.jsxs)(p.AM,{open:v,onOpenChange:M,children:[(0,s.jsx)(p.Wv,{asChild:!0,children:(0,s.jsxs)("button",{type:"button",className:"bg-white flex h-9 w-full min-w-0 rounded-md border px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none md:text-sm focus-visible:border-brand-primary focus-visible:ring-brand-primary/50 focus-visible:ring-[3px] ".concat(l.skills?"aria-invalid:ring-error-solid/20 dark:aria-invalid:ring-error-solid/40 aria-invalid:border-error-solid":"border-text-stroke"," items-center justify-between"),"data-testid":"skills-select",children:[(0,s.jsx)("span",{className:"text-left",children:"Select"}),(0,s.jsx)(m.A,{className:"h-4 w-4 opacity-50"})]})}),(0,s.jsx)(p.hl,{className:"p-0 bg-white z-[10000]",align:"start",sideOffset:4,style:{width:"var(--radix-popover-trigger-width)"},children:(0,s.jsx)("div",{className:"max-h-60 overflow-y-auto",children:r.map(e=>(0,s.jsxs)("div",{className:"px-3 py-2 hover:bg-[var(--color-text-stroke)] cursor-pointer flex items-center justify-between",onClick:()=>{e&&!n.skills.includes(e)&&o("skills",[...n.skills,e]),M(!1)},children:[(0,s.jsx)("span",{children:e}),n.skills.includes(e)&&(0,s.jsx)(g.A,{className:"h-4 w-4 text-green-600 ml-2"})]},e))})})]}),n.skills.length>0&&(0,s.jsx)("div",{className:"flex flex-wrap gap-2",children:n.skills.map((e,a)=>(0,s.jsxs)("span",{className:"px-3 py-1 bg-text-stroke rounded-full text-xs text-secondary-foreground flex items-center gap-1","data-testid":"skills-tag-".concat(a),children:[e,(0,s.jsx)("button",{type:"button",onClick:()=>{o("skills",n.skills.filter(a=>a!==e))},className:"text-gray-500 hover:text-gray-700 cursor-pointer","data-testid":"skills-remove-".concat(a),children:(0,s.jsx)(d.A,{className:"h-3 w-3"})})]},a))})]}),l.skills&&(0,s.jsx)("p",{className:"text-xs text-error-solid","data-testid":"skills-error",children:l.skills})]})]})}),(0,s.jsx)("div",{className:"py-3 px-3",children:(0,s.jsxs)("div",{className:"flex gap-3 justify-start",children:[(0,s.jsx)(x.$n,{onClick:c,variant:"primary",size:"md",dataTestId:"save-skills",disabled:i,className:"cursor-pointer",children:i?"Saving...":"Save"}),(0,s.jsx)(x.$n,{onClick:h,variant:"outline",size:"md",dataTestId:"cancel-skills",disabled:i,className:"cursor-pointer",children:"Cancel"})]})})]})}function v(e){let{data:a}=e,n=(0,t.useMemo)(()=>null!==a&&"object"==typeof a&&"skills"in a?a.skills:[],[a]),{editingIndex:l,formData:r,errors:d,isSubmitting:m,handleEdit:g,handleCancel:u,handleInputChange:x,handleSave:p}=function(){let[e,a]=(0,t.useState)(!0),[n,s]=(0,t.useState)(null),[l,r]=(0,t.useState)({skills:[]}),[d,m]=(0,t.useState)({}),[g,u]=(0,t.useState)(!1),x=(0,t.useCallback)(e=>{a(!0),s(0),r({skills:e.map(e=>e.name)}
1),m({})},[]),p=async()=>{if(u(!0),!(()=>{try{return i.parse(l),m({}),!0}catch(e){if(e instanceof c.G){let a={};e.errors.forEach(e=>{a[e.path[0]]=e.message}),m(a)}return!1}})())return void u(!1);try{o.Lx.closeAllModals()}catch(e){m({general:"Failed to save skills. Please try again."})}finally{u(!1)}};return{isEditing:e,editingIndex:n,formData:l,errors:d,isSubmitting:g,handleAdd:()=>{a(!0),s(null),r({skills:[]}),m({})},handleEdit:x,handleCancel:()=>{o.Lx.closeAllModals()},handleInputChange:(e,a)=>{r(n=>({...n,[e]:a})),d[e]&&m(a=>({...a,[e]:""}))},handleSave:p}}();return(t.useEffect(()=>{n&&n.length>0&&g(n)},[n,g]),n)?(0,s.jsx)(h,{editingIndex:l,formData:r,errors:d,isSubmitting:m,onInputChange:x,onSave:p,onCancel:u}):(0,s.jsx)("div",{className:"p-6 text-center",children:(0,s.jsx)("p",{className:"text-text-secondary",children:"No skills available."})})}}}]);
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.