1import{bi as m,r as c,j as e,ag as n,ca as p,ff as d}from"./main-DmDsGTCr.js";import{u as l}from"./useSuspenseQuery-DJyxosyP.js";import{a as u,b as x,c as f}from"./PageHeader-BybPPbxT.js";import{t as g,L as h}from"./target-companies-BvNUZJ4M.js";import{P as j,a as y}from"./profile-card-BtR4SrlK.js";import{P as C}from"./pencil-CxNpjUxU.js";import{P as N}from"./plus-D3OfBStI.js";import{B as b}from"./building-2-Iybo88u-.js";import{u as P}from"./use-track-component-viewed-YUSuVzA1.js";import"./payload-validation-C-pMPr5Y.js";function _(){const{data:s}=l(m()),r=g(s),[o,i]=c.useState(!1),a=r.length>0;return e.jsxs(e.Fragment,{children:[e.jsx(u,{children:"Companies"}),e.jsxs(x,{className:"pt-2 pb-6",children:[e.jsx(f,{children:"Your target companies"}),e.jsxs("div",{className:"mt-4 flex items-center justify-between gap-3",children:[e.jsx("p",{className:"text-sm text-text-muted",children:"The employers you're aiming for. Roles at them rise to the top of your recommendations, and we flag them in search."}),e.jsxs("button",{type:"button",onClick:()=>i(!0),"data-testid":"companies-modify","data-amp-track-surface":"companies","data-amp-track-action":a?"modify_target_companies":"add_target_companies","data-amp-track-step":"target_companies",className:n("shrink-0 inline-flex items-center gap-1",j),children:[a?e.jsx(C,{className:"size-3","aria-hidden":!0}):e.jsx(N,{className:"size-3.5","aria-hidden":!0}),a?"Modify":"Add companies"]})]}),a?e.jsx("div",{className:"mt-4 flex flex-wrap gap-1.5","data-testid":"companies-list",children:r.map(t=>e.jsxs("span",{className:n(y,"gap-1.5"),"data-amp-mask":!0,children:[e.jsx(p,{name:t,logoUrl:null,size:16,radius:4}),e.jsx("span",{className:"truncate",children:t})]},t))}):e.jsxs("div",{className:"mt-8 flex flex-col items-center gap-3 rounded-xl border border-hairline border-dashed bg-surface-raised px-6 py-10 text-center",children:[e.jsx(b,{className:"size-6 text-text-muted","aria-hidden":!0}),e.jsxs("p",{className:"max-w-sm text-sm text-text-muted",children:["You haven't named any target companies yet. Pick up to"," ",d," employers you're aiming for and we'll put them front and centre."]})]}),o?e.jsx(h,{ampSurface:"companies",onClose:()=>i(!1)}):null]})]})}function R(){const s=P("CompaniesTab",{surface:"companies"});return e.jsx("div",{ref:s,"data-testid":"tab-panel-companies",className:"h-full",children:e.jsx(_,{})})}export{R as component};
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.