PageSourceSearch

https://talentplay.ai/assets/your-work-BRmihB6M.js

js talentplay.ai collected 2026-10-05 14:59:47 UTC 5,231 bytes, 1 lines download raw bytes

1import{u as N,a as b,r,j as e,c as R,H as T,L as E,t as s}from"./index-Bt-9XfGi.js";import{c as C}from"./app-shell-D6QDXpSt.js";import{l as S,W as f,w as W,r as A}from"./work-record-D1caolv5.js";import{forgetEvidence as D}from"./evidence-ledger-56lPvRFf.js";import{P as i}from"./career-plate-Q6GX5t86.js";import"./consent-terms-0B9tOKqJ.js";import"./globesearch-wordmark-CjTSibHC.js";import"./globesearch-logo-D1NeHpOV.js";import"./journey-type-CRabtEtb.js";import"./journey-job-profile-action-CJ0bMSez.js";import"./journey-locale-BHooRqWN.js";import"./editorial-dialog-cO5tgwRP.js";import"./job-profile-CF6tzQSM.js";import"./auth-report-CY7kxpwf.js";import"./mail-BbvDasW-.js";import"./arrow-right-BcvdRDlI.js";import"./sparkles-DY6mAI04.js";import"./library-CnBm30Cd.js";import"./user-plus-Ceh_hwIM.js";import"./building-2-BV3qL_BL.js";import"./file-text-CjJxiv2J.js";const P=new Intl.DateTimeFormat("en-GB",{day:"numeric",month:"long",year:"numeric"});function te(){const{user:a,loading:c}=N(),l=b(),[d,h]=r.useState([]),[v,g]=r.useState(!0),[n,y]=r.useState("delivered"),[p,m]=r.useState(""),[x,u]=r.useState(!1);r.useEffect(()=>{!c&&!a&&l({to:"/auth"})},[a,c,l]);const o=r.useCallback(async()=>{if(!a)return;const t=await S(a.id);h(t),g(!1)},[a]);r.useEffect(()=>{o()},[o]);const j=async()=>{if(!a)return;const t=p.trim();if(t.length<8){s.error("Write a sentence we can use later.");return}u(!0);try{await A(a.id,n,t),m(""),await o(),s.success("Recorded.")}catch{s.error("Could not record that. Please try again.")}finally{u(!1)}},w=async t=>{try{await D(t),await o(),s.success("Removed.")}catch{s.error("Could not remove that entry.")}};if(!a)return null;const k=f.find(t=>t.id===n)?.prompt??"";return e.jsx(C,{title:"Your work",children:e.jsxs("div",{className:"pt-4 pb-24",children:[e.jsxs("header",{children:[e.jsx("div",{className:i,children:"04. The present"}),e.jsx("p",{className:"mt-5 max-w-[62ch] font-serif text-[15px] leading-[1.7] text-[color:var(--app-ink-muted)]",children:"The role you are in now is the strongest evidence you have, and the easiest to forget. Write it down while it is still accurate. A line a fortnight is enough."})]}),e.jsxs("section",{className:"app-card mt-10 rounded-[3px] border border-[color:var(--app-border)] p-8",children:[e.jsx("div",{className:i,children:"Record something"}),e.jsx("div",{className:"mt-5 flex flex-wrap gap-2",children:f.map(t=>e.jsx("button",{type:"button",onClick:()=>y(t.id),className:R("ds-focus-ring rounded-[3px] px-4 py-2 font-sans text-[11px] font-semibold uppercase tracking-[0.2em] transition-colors duration-[var(--control-motion)]",n===t.id?"tp-raise text-[color:var(--app-ink)]":"text-[color:var(--app-ink-muted)] hover:text-[color:var(--app-ink)]"),children:t.label},t.id))}),e.jsx("p",{className:"mt-5 font-serif text-[14px] italic leading-[1.6] text-[color:var(--app-ink-muted)]",children:k}),e.jsx("textarea",{value:p,onChange:t=>m(t.target.value),rows:3,className:"tp-cut ds-focus-ring mt-4 w-full resize-y px-4 py-3 font-serif text-[15px] leading-[1.7] text-[color:var(--app-ink)] outline-none",placeholder:"One or two sentences, in y
1our own words."}),e.jsx("div",{className:"mt-5",children:e.jsx(T,{variant:"primary",onClick:j,disabled:x,children:x?"Recording":"Record"})})]}),e.jsxs("section",{className:"mt-14",children:[e.jsx("div",{className:i,children:"The record"}),v?e.jsx("p",{className:"mt-4 font-serif text-[14px] italic text-[color:var(--app-ink-dim)]",children:"Reading the record."}):d.length===0?e.jsx("p",{className:"mt-4 max-w-[58ch] font-serif text-[14px] leading-[1.7] text-[color:var(--app-ink-dim)]",children:"Nothing recorded yet. The first entry is usually the last thing you finished."}):e.jsx("ul",{className:"mt-4",children:d.map(t=>e.jsxs("li",{className:"flex flex-wrap items-baseline justify-between gap-x-8 gap-y-2 border-t border-[color:var(--join-division)] py-5",children:[e.jsxs("span",{className:"min-w-[20ch] flex-1",children:[e.jsx("span",{className:"block max-w-[64ch] font-serif text-[15px] leading-[1.7] text-[color:var(--app-ink)]",children:t.statement}),e.jsx("span",{className:"mt-2 block font-sans text-[10px] font-medium uppercase leading-none tracking-[0.2em] text-[color:var(--app-ink-dim)]",children:W(t)})]}),e.jsxs("span",{className:"flex items-center gap-6",children:[e.jsx("span",{className:"font-sans text-[10px] font-medium uppercase leading-none tracking-[0.2em] tabular-nums text-[color:var(--app-ink-dim)]",children:t.observed_at?P.format(new Date(t.observed_at)):""}),e.jsx("button",{type:"button",onClick:()=>{w(t.id)},className:"ds-focus-ring font-sans text-[10px] font-medium uppercase leading-none tracking-[0.2em] text-[color:var(--app-ink-dim)] duration-[var(--control-motion)] hover:text-[color:var(--app-ink)]",children:"Remove"})]})]},t.id))})]}),e.jsxs("p",{className:"mt-10 max-w-[62ch] border-t border-[color:var(--join-division)] pt-6 font-serif text-[13px] leading-[1.7] text-[color:var(--app-ink-dim)]",children:["These entries belong to you. They inform what Talentplay writes for you and can be removed at any time from"," ",e.jsx(E,{to:"/account/privacy",className:"ds-focus-ring underline underline-offset-4",children:"Privacy"}),"."]})]})})}export{te 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.