{"version":3,"file":"FactsStrip.0uXuXRWc.mjs","names":["useRef","__esmMin","de","init_jsx_runtime","c","p","init_npm_react_18_3_1","init_framer_Bf4_tcb2","addPropertyControls","ControlType","surfaceInk","typography","init_tokens","space","init_motion","toneControl","init_Section","useReveal","useSection","Section","FactRow","ref","reveal","row","Facts","tone","rows","Strip","s","FactsStrip","clean","v","shown","subs","sub1Value","sub1Label","sub2Value","sub2Label","sub3Value","sub3Label","l","label1","hide1If","value1","label2","value2","unit2","label3","value3","label4","value4","noteLabel","note","r","placement","fact","init_FactsStrip","n","label"],"sources":["https:/framerusercontent.com/modules/WV7kjEI7dZmx1OWHErZ8/xbJkJ9MemkMbZ2IgqQEf/FactsStrip.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{useRef}from\"react\";import{addPropertyControls,ControlType}from\"framer\";import{typography,space,surfaceInk}from\"https://framerusercontent.com/modules/HDAkrahb3ethcU2GAef2/DkF8oqFSecx6ZaRXcaSg/tokens.js\";import{Section,useSection,toneControl}from\"https://framerusercontent.com/modules/QAOPTtLoApnb5MkIYZk8/dc3QSbcDf1WpIWW4hTIx/Section.js\";import{useReveal}from\"https://framerusercontent.com/modules/YFy4SNb784n2qKl2hppy/colxGJTFY3MkaqyjCjL8/motion.js\";// One-time reveal in page order (MOTION_SYSTEM §4.4, motion.tsx useReveal): the shared queue staggers the rows top to bottom.\nfunction FactRow({row}){const ref=useRef(null);const reveal=useReveal(ref);return /*#__PURE__*/_jsxs(\"div\",{ref:ref,style:reveal,children:[/*#__PURE__*/_jsxs(\"dt\",{style:{display:\"inline\",fontWeight:600},children:[row.label,\":\"]}),\" \",/*#__PURE__*/_jsx(\"dd\",{style:{display:\"inline\",margin:0,whiteSpace:\"pre-line\"},children:row.value})]});}function Facts({rows,tone}){return /*#__PURE__*/_jsx(\"dl\",{style:{...typography.body,color:surfaceInk(tone).text,margin:0,maxWidth:720,display:\"flex\",flexDirection:\"column\",gap:space.gapStandard},children:rows.map(row=>/*#__PURE__*/_jsx(FactRow,{row:row},row.label))});}function Strip({rows}){const s=useSection();return /*#__PURE__*/_jsx(\"div\",{style:{paddingTop:s.headerGap},children:/*#__PURE__*/_jsx(Facts,{rows:rows,tone:s.tone})});}/**\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight auto\n */export default function FactsStrip({value1=\"\",label1=\"\",hide1If=\"\",sub1Value=\"\",sub1Label=\"\",sub2Value=\"\",sub2Label=\"\",sub3Value=\"\",sub3Label=\"\",value2=\"\",label2=\"\",unit2=\"\",value3=\"\",label3=\"\",value4=\"\",label4=\"\",noteLabel=\"Meedoen\",note=\"\",placement=\"strip\",tone=\"surface\"}){const clean=v=>(v||\"\").trim();const shown=v=>clean(v)!==\"\"&&clean(v)!==\"0\";const subs=[[sub1Value,sub1Label],[sub2Value,sub2Label],[sub3Value,sub3Label]].filter(([v])=>shown(v)).map(([v,l])=>`${clean(v)} ${clean(l)}`.trim());const keep1=clean(hide1If)===\"\"||clean(value1)!==clean(hide1If)// AmbitionCard shows the status itself\n;const rows=[{label:label1,value:keep1&&shown(value1)?`${clean(value1)}${subs.length?` (${subs.join(\", \")})`:\"\"}`:\"\"},{label:label2,value:shown(value2)?`${clean(value2)} ${clean(unit2)}`.trim():\"\"},{label:label3,value:shown(value3)?clean(value3):\"\"},{label:label4,value:shown(value4)?clean(value4):\"\"},{label:noteLabel,value:clean(note)}].map(r=>({label:clean(r.label),value:r.value})).filter(r=>r.value);if(rows.length===0)return null;if(placement===\"column\")return /*#__PURE__*/_jsx(Facts,{rows:rows,tone:tone});return /*#__PURE__*/_jsx(Section,{tone:tone,join:\"both\",children:/*#__PURE__*/_jsx(Strip,{rows:rows})});}const fact=(n,label)=>({[`value${n}`]:{type:ControlType.String,title:`Fact ${n} value`,defaultValue:\"\"},[`label${n}`]:{type:ControlType.String,title:`Fact ${n} label`,defaultValue:label}});addPropertyControls(FactsStrip,{...fact(1,\"\"),hide1If:{type:ControlType.String,title:\"Hide fact 1 if\",defaultValue:\"\",description:\"Fact 1 hides at this value: Ambitie on project pages, where the yellow card shows it\"},sub1Value:{type:ControlType.String,title:\"Fact 1 sub A value\",defaultValue:\"\"},sub1Label:{type:ControlType.String,title:\"Fact 1 sub A label\",defaultValue:\"\"},sub2Value:{type:ControlType.String,title:\"Fact 1 sub B value\",defaultValue:\"\"},sub2Label:{type:ControlType.String,title:\"Fact 1 sub B label\",defaultValue:\"\"},sub3Value:{type:ControlType.String,title:\"Fact 1 sub C value\",defaultValue:\"\"},sub3Label:{type:ControlType.String,title:\"Fact 1 sub C label\",defaultValue:\"\"},...fact(2,\"\"),unit2:{type:ControlType.String,title:\"Fact 2 unit\",defaultValue:\"\",description:'Follows the value: \"10+\" and \"gerechten\"'},...fact(3,\"\"),...fact(4,\"\"),noteLabel:{type:ControlType.String,title:\"Note label\",defaultValue:\"Meedoen\"},note:{type:ControlType.String,title:\"Note\",displayTextArea:true,defaultValue:\"\"},placement:{type:ControlType.Enum,title:\"Placement\",options:[\"strip\",\"column\"],optionTitles:[\"Under hero\",\"In column\"],defaultValue:\"strip\"},tone:toneControl(\"surface\")});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"FactsStrip\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"any\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"auto\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}"],"mappings":"A,8RACA,SAASoB,EAAQ,CAAC,OAAK,CAAC,IAAMC,EAAIrB,EAAO,IAAI,EAAQsB,EAAOL,EAAUI,CAAG,EAAE,MAAoB,gBAAM,MAAM,CAAK,MAAI,MAAMC,EAAO,SAAS,CAAc,gBAAM,KAAK,CAAC,MAAM,CAAC,QAAQ,SAAS,WAAW,GAAG,EAAE,SAAS,CAACC,EAAI,MAAM,GAAG,CAAC,CAAC,EAAE,IAAiB,gBAAK,KAAK,CAAC,MAAM,CAAC,QAAQ,SAAS,OA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