{"version":3,"file":"JoinBand.Dlz9MGrl.mjs","names":["useRef"],"sources":["https:/framerusercontent.com/modules/ylacd94F8z4s7tyurVJ9/bkPguMOSrotZyUQ3jghE/JoinBand.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{useRef}from\"react\";import{addPropertyControls,ControlType}from\"framer\";import{space}from\"https://framerusercontent.com/modules/HDAkrahb3ethcU2GAef2/nCb5ot8a39Uw7ZcMqia0/tokens.js\";import{Section,SectionHeader,useSection,toneControl}from\"https://framerusercontent.com/modules/QAOPTtLoApnb5MkIYZk8/OtTOdEBa3m1YNpcPzZSP/Section.js\";import{useReveal}from\"https://framerusercontent.com/modules/YFy4SNb784n2qKl2hppy/GBtnVzB0BJq3YcX7fdeG/motion.js\";import{PrimaryButton}from\"https://framerusercontent.com/modules/rVlHJhGuiWk2LiSpFzaU/qqbISqrLz78K7K2NRlcQ/PrimaryButton.js\";function Content({heading,body,buttonLabel,buttonLink}){const s=useSection();// One-time reveal in page order (MOTION_SYSTEM §4.4, motion.tsx useReveal): header, then the button.\nconst headerRef=useRef(null);const ctaRef=useRef(null);const headerStyle=useReveal(headerRef);const ctaStyle=useReveal(ctaRef);const variant=s.tone===\"surfaceYellow\"?\"darkOnYellow\":\"dark\";return /*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",flexDirection:\"column\",gap:space.gapLarge},children:[/*#__PURE__*/_jsx(\"div\",{ref:headerRef,style:headerStyle,children:/*#__PURE__*/_jsx(SectionHeader,{heading:heading,body:body})}),buttonLabel&&buttonLink?/*#__PURE__*/_jsx(\"div\",{ref:ctaRef,style:ctaStyle,children:/*#__PURE__*/_jsx(PrimaryButton,{href:buttonLink,variant:variant,compact:s.isMobile,children:buttonLabel})}):null]});}/**\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight auto\n */export default function JoinBand({heading=\"Wil je meedoen?\",body=\"Deel je kennis, schuif aan tafel of werk met ons samen.\",buttonLabel=\"Doe mee\",buttonLink=\"/get-involved\",tone=\"surfaceYellow\",status=\"None\",ambitionHeading=\"Wil je deel zijn van onze ambitie?\",ambitionBody=\"Dit project is nog een ambitie. We zoeken partners die het samen met ons willen waarmaken.\"}){// On a project page, bind Status to the project's status: an Ambition project asks for partners (2026-09-25)\n// CMS status may arrive as the Dutch display name (2026-10-08) or the old English key\nconst amb=status===\"Ambition\"||status===\"Ambitie\";return /*#__PURE__*/_jsx(Section,{tone:tone,children:/*#__PURE__*/_jsx(Content,{heading:amb?ambitionHeading:heading,body:amb?ambitionBody:body,buttonLabel:buttonLabel,buttonLink:buttonLink})});}addPropertyControls(JoinBand,{heading:{type:ControlType.String,title:\"Heading\",defaultValue:\"Wil je meedoen?\"},body:{type:ControlType.String,title:\"Body\",displayTextArea:true,defaultValue:\"Deel je kennis, schuif aan tafel of werk met ons samen.\"},buttonLabel:{type:ControlType.String,title:\"Button\",defaultValue:\"Doe mee\"},buttonLink:{type:ControlType.Link,title:\"Button link\",defaultValue:\"/get-involved\"},tone:toneControl(\"surfaceYellow\"),status:{type:ControlType.String,title:\"Project status\",defaultValue:\"\",description:\"Bind to Projects → Status (display name) on /projects pages. Ambitie shows the ambition text\"},ambitionHeading:{type:ControlType.String,title:\"Ambition heading\",defaultValue:\"Wil je deel zijn van onze ambitie?\",hidden:p=>p.status!==\"Ambition\"&&p.status!==\"Ambitie\"},ambitionBody:{type:ControlType.String,title:\"Ambition body\",displayTextArea:true,defaultValue:\"Dit project is nog een ambitie. We zoeken partners die het samen met ons willen waarmaken.\",hidden:p=>p.status!==\"Ambition\"&&p.status!==\"Ambitie\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"JoinBand\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"any\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"auto\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}"],"mappings":"mXAAsnB,SAAS,EAAQ,CAAC,U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