1import{d as j,r as l,j as e,L as p}from"./main-exKlCx7X.js";import{V as w,t as k}from"./values-analytics-B0-k6H2h.js";import{V as I,a as V}from"./ValuesStepHeader-Cl_m5CAr.js";import{R as B}from"./ReferenceBlock-_aOGXgOq.js";import{l as W,s as h}from"./values-state-Csx0-Oa8.js";const m=["do what I say and say what I do.","come prepared, be on time, and stay engaged.","live in my truth.","see the whole person.","give space to myself and others to make mistakes, and to correct them.","acknowledge my truth may not be your truth.","share my expectations with others.","be bold in my actions.","leave the world a better place."];function R(){const y=j(),[u,g]=l.useState([]),[o,d]=l.useState([]),[f,x]=l.useState(!1),[v,b]=l.useState(!1),c=l.useRef(null);l.useEffect(()=>{const n=W(),t=n.values??[];g(t);const r=n.substrives??[];d(t.map((a,s)=>{const i=r[s]??a.strives??[];return[i[0]??"",i[1]??"",i[2]??""]})),b(!0)},[]),l.useEffect(()=>{if(v)return c.current&&clearTimeout(c.current),c.current=setTimeout(()=>{h({substrives:o,lastScreen:"/values/substrives"})},300),()=>{c.current&&clearTimeout(c.current)}},[o,v]);function q(n,t,r){d(a=>{const s=a.map(i=>[...i]);return s[n][t]=r,s})}function S(){if(!o.every(r=>r.length===3&&r.every(a=>a.trim().length>0))){x(!0);return}const t=u.map((r,a)=>({...r,strives:[o[a][0].trim(),o[a][1].trim(),o[a][2].trim()]}));h({values:t,substrives:o,lastScreen:"/values/result"}),k("values_step_completed",{step_number:5,step_name:"substrives"}),y({to:"/values/result"})}return e.jsxs(w,{children:[e.jsx(I,{step:5}),e.jsx(V,{number:5,eyebrow:"The actual work",title:"Write the sub-strives.",children:e.jsx("p",{style:{fontFamily:"var(--vq-sans)",fontSize:16,lineHeight:1.55,maxWidth:640,color:"var(--vq-fg)",margin:"0 0 24px"},children:"Under each statement, write three things you actually try to do. Not aspirational. Actual. If you cannot name three real, current attempts, you have picked the wrong value. Go back to Step 3."})}),e.jsx(B,{quote:"Integrity. I model leadership by practicing integrity in my thoughts, my words, and my actions. I strive to do what I say and say what I do. I strive to come prepared, be on time, and stay engaged. I strive to live in my truth.",citation:"Kathryn Finney, Build the Damn Thing"}),u.length===0?e.jsxs("div",{style:{padding:24,border:"1px solid var(--vq-border)",background:"var(--vq-card)",color:"var(--vq-muted-fg)",marginBottom:24},children:["You have not written any statements yet."," ",e.jsx(p,{to:"/values/statement",style:{color:"var(--vq-teal)"},children:"Go back to statements."})]}):null,u.map((n,t)=>{const r=t*3%m.length,a=[0,1,2].map(s=>m[(r+s)%m.length]);return e.jsxs("div",{style:{background:"var(--vq-card)",border:"1px solid var(--vq-border)",padding:24,marginBottom:24},children:[e.jsx("div",{style:{fontFamily:"var(--vq-sans)",fontWeight:600,fontSize:12,letterSpacing:"0.3em",textTransform:"uppercase",color:"var(--vq-teal)",marginBottom:8},children:n.name||`Value ${t+1}`}),e.jsxs("p",{style:{fontFamily:"var(--vq-serif)",fontStyle:"italic",fontSize:16,color:"var(--vq-fg)",margin:"0 0 16px"},children:["I model ",n.name||"[value]"," by ",n.statement||"â¦"]}),e.jsx("div",{style:{height:1,background:"var(--vq-border)",margin:"0 0 16px"}}),[0,1,2].map(s=>e.jsxs("div",{style:{display:"flex",alignItems:"center",flexWrap:"wrap",gap:10,marginBottom:12},children:[e.jsx("span",{style:{fontFamily:"var(--vq-serif)",fontStyle:"italic",fontSize:15,color:"var(--vq-fg)",whiteSpace:"nowrap"},children:"I strive to"}),e.jsx("input",{type:"text",value:o[t]?.[s]??"",onChange:i=>q(t,s,i.target.value),placeholder:a[s],className:"vq-input vq-strive-input",style:{flex:1,minWidth:220}})]},s))]},t)}),e.jsx("style",{children:` 2 .values-quiz .vq-strive-input::placeholder { 3 font-style: italic; 4 color: var(--vq-muted-fg); 5 } 6 `}),f?e.jsx("p",{role:"alert",style:{fontFamily:"var(--vq-sans)",fontSize:13,color:"#C0392B",margin:"16px 0 0"},children:"If you can't name three real, current attempts, you may have picked the wrong value. Go back to Step 3 and try a different word."}):null,e.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",gap:16,marginTop:32,flexWrap:"wrap"},children:[e.jsx(p,{to:"/values/statement",className:"vq-btn vq-btn--ghost",children:"Back"}),e.jsx("button",{type:"button",className:"vq-btn",onClick:S,children:"Finish and see my values"})]}),e.jsx("div",{style:{height:80}})]})}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.