{"version":3,"file":"FieldFAQ.DWxnk_wr.mjs","names":["useState","useRef","startTransition"],"sources":["https:/framerusercontent.com/modules/vWi6ZTBvNRhgXy3yCVqF/dVrmgkgI9ElDrmMv5Rel/FieldFAQ.js"],"sourcesContent":["// Row of quick-answer dropdowns (e.g. Payment / Revisions / Design sprints) separated by ruled lines.\n// Click a question to open its answer. Each answer can carry an optional button (CTA).\n// Icon: Field + Form hand-drawn plus, which turns into an × when the answer is open.\n// Type: by default questions use the site's Enrique Round (Btn style) and answers use Maurice (Body style).\n// \"Content\" lets an instance use its own Questions list, or a built-in preset (e.g. the Fieldwork page).\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import{motion,AnimatePresence}from\"framer-motion\";import{useState,useRef,useEffect,startTransition}from\"react\";const PLUS_PATH=\"M16.78,41.91c-.51-.69-.5-1.45-.44-2.7.33-7.77,1.28-11.04-.42-12.57-.37-.34-.9-.51-1.95-.85-2.33-.76-4.08-.55-9.61-.4-2.29.06-2.83.05-3.35-.4-1.58-1.37-1.24-5.31.6-6.46.56-.35,1.03-.3,2.68-.25,0,0,3.13.08,5.74-.01,3.06-.11,5.26-.19,6.38-1.64.68-.88.68-1.92.66-3.01-.17-8.27-1.49-10.69-.05-12.33,1.29-1.47,4.23-1.67,6.06-.67.31.17.81.44,1.22,1.01,1.46,2-.42,4.61-1.08,10.34-.33,2.87-.01,3.53.19,3.86,1.16,1.91,4.09,2.13,6.69,2.32,5.43.4,8.74.12,8.78.12,0,0,0,0,0,0,.82-.14,1.63.35,1.95.7.22.24.54.76.16,2.76-.43,2.3-.65,3.45-1.48,4.2-1.07.96-2.32.58-7.32.17-5.61-.46-6.54-.19-7.12.42-.73.76-.67,1.75-.34,5.35.74,7.95,1.02,8.95.22,9.96-1.73,2.18-6.68,2.11-8.16.09Z\";const ENRIQUE=`\"Enrique Round\", \"Enrique Round Placeholder\", \"Enrique\", sans-serif`;const MAURICE=`\"Maurice Regular\", \"Maurice Regular Placeholder\", \"Maurice\", sans-serif`;const PRESETS={fieldwork:[{question:\"Why only one direction?\",answer:\"I'd rather do the research up front and show you one direction I can stand behind.\"},{question:\"Do I need a name already?\",answer:\"Yes. If you're still working out the name, Groundwork is the better fit.\"},{question:\"How much of my time does it take?\",answer:\"A questionnaire, a kickoff call and two check-ins.\"},{question:\"Can we keep working together?\",answer:\"Yes, please. Packaging, campaigns and ongoing support are all on the table.\",ctaText:\"Start a conversation\",ctaLink:\"/contact\"}]};function sizing(f){if(!f)return{};const{fontSize,lineHeight,letterSpacing,textAlign}=f;return{fontSize,lineHeight,letterSpacing,textAlign};}function Plus({size,color,rotate}){return /*#__PURE__*/_jsx(motion.svg,{viewBox:\"0 0 41.17 43.44\",width:size,height:size*(43.44/41.17),animate:{rotate},transition:{duration:.3,ease:[.22,1,.36,1]},style:{flexShrink:0,display:\"block\"},\"aria-hidden\":true,children:/*#__PURE__*/_jsx(\"path\",{d:PLUS_PATH,fill:color})});}/**\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight auto\n */export default function FieldFAQ(props){const{content=\"custom\",items=[],stackBelow=0,openFirst=false,iconSize=14,iconPosition=\"inline\",siteFonts=true,lineColor=\"#121010\",textColor=\"#121010\",questionFont,answerFont,padX=24,padY=16,style}=props;const[open,setOpen]=useState(openFirst?0:null);const[w,setW]=useState(0);const ref=useRef(null);useEffect(()=>{const el=ref.current;if(!el||typeof ResizeObserver===\"undefined\")return;const up=()=>startTransition(()=>setW(el.getBoundingClientRect().width));up();const ro=new ResizeObserver(up);ro.observe(el);return()=>ro.disconnect();},[]);const stacked=stackBelow>0&&w>0&&w<stackBelow;// Narrow screens (3 columns on a phone): tighten the side padding so the questions fit.\nconst narrow=!stacked&&w>0&&w<560;const px=narrow?Math.min(padX,12):padX;const source=content!==\"custom\"&&PRESETS[content]?PRESETS[content]:items;const list=source.length?source:[{question:\"Add questions in the right panel\",answer:\"\"}];const line=`1px solid ${lineColor}`;const qType=siteFonts?{fontFamily:ENRIQUE,fontWeight:400,fontSize:18,lineHeight:1.2,...sizing(questionFont)}:{fontSize:18,lineHeight:1.2,...questionFont};const aType=siteFonts?{fontFamily:MAURICE,fontWeight:400,fontSize:17,lineHeight:1.35,...sizing(answerFont)}:{fontSize:17,lineHeight:1.35,...answerFont};const ctaType=siteFonts?{fontFamily:ENRIQUE,fontWeight:400,fontSize:16,lineHeight:1.2}:{fontSize:16,lineHeight:1.2,...questionFont};return /*#__PURE__*/_jsx(\"div\",{ref:ref,style:{...style,width:\"100%\",display:\"flex\",flexDirection:stacked?\"column\":\"row\",alignItems:\"stretch\",color:textColor,borderTop:stacked?line:\"none\"},children:list.map((it,i)=>{const isOpen=open===i;const last=i===list.length-1;const hasBody=!!it.answer||!!it.ctaText&&!!it.ctaLink;return /*#__PURE__*/_jsxs(\"div\",{style:{flex:\"1 1 0\",minWidth:0,borderRight:!stacked&&!last?line:\"none\",borderBottom:stacked?line:\"none\",boxSizing:\"border-box\"},children:[/*#__PURE__*/_jsxs(\"button\",{onClick:()=>startTransition(()=>setOpen(isOpen?null:i)),\"aria-expanded\":isOpen,style:{all:\"unset\",boxSizing:\"border-box\",width:\"100%\",cursor:\"pointer\",display:\"flex\",alignItems:\"center\",justifyContent:iconPosition===\"end\"?\"space-between\":\"flex-start\",gap:narrow?6:10,padding:`${padY}px ${px}px`,color:textColor,...qType},children:[/*#__PURE__*/_jsx(\"span\",{children:it.question}),/*#__PURE__*/_jsx(Plus,{size:iconSize,color:textColor,rotate:isOpen?45:0})]}),/*#__PURE__*/_jsx(AnimatePresence,{initial:false,children:isOpen&&hasBody&&/*#__PURE__*/_jsx(motion.div,{initial:{height:0,opacity:0},animate:{height:\"auto\",opacity:1},exit:{height:0,opacity:0},transition:{duration:.3,ease:[.22,1,.36,1]},style:{overflow:\"hidden\"},children:/*#__PURE__*/_jsxs(\"div\",{style:{padding:`0 ${px}px ${padY}px`,display:\"flex\",flexDirection:\"column\",gap:14,maxWidth:stacked?720:undefined},children:[it.answer&&/*#__PURE__*/_jsx(\"p\",{style:{margin:0,color:textColor,whiteSpace:\"pre-line\",...aType},children:it.answer}),it.ctaText&&it.ctaLink&&/*#__PURE__*/_jsxs(\"a\",{href:it.ctaLink,style:{display:\"flex\",alignItems:\"center\",justifyContent:\"space-between\",gap:10,padding:narrow?\"12px 12px\":\"14px 18px\",border:line,color:textColor,textDecoration:\"none\",boxSizing:\"border-box\",maxWidth:stacked?320:undefined,...ctaType},children:[/*#__PURE__*/_jsx(\"span\",{children:it.ctaText}),/*#__PURE__*/_jsx(Plus,{size:Math.max(10,iconSize-1),color:textColor,rotate:0})]})]})})})]},i);})});}addPropertyControls(FieldFAQ,{content:{type:ControlType.Enum,title:\"Content\",options:[\"custom\",\"fieldwork\"],optionTitles:[\"My Questions\",\"Fieldwork Preset\"],defaultValue:\"custom\"},items:{type:ControlType.Array,title:\"Questions\",maxCount:8,hidden:p=>p.content===\"fieldwork\",control:{type:ControlType.Object,controls:{question:{type:ControlType.String,title:\"Question\",defaultValue:\"Question\"},answer:{type:ControlType.String,title:\"Answer\",displayTextArea:true,defaultValue:\"\"},ctaText:{type:ControlType.String,title:\"Button Text\",defaultValue:\"\",placeholder:\"Optional\"},ctaLink:{type:ControlType.Link,title:\"Button Link\"}}},defaultValue:[{question:\"Payment\",answer:\"50% deposit to book your spot, the remaining 50% on delivery.\"},{question:\"Revisions\",answer:\"Every project includes two rounds of revisions. Extra rounds can be added.\"},{question:\"Design sprints\",answer:\"Need something fast? Broadside is a two-week design sprint: four curated assets for a launch, menu, packaging update or social refresh.\",ctaText:\"Book a sprint\",ctaLink:\"/contact\"}]},stackBelow:{type:ControlType.Number,title:\"Stack Below\",defaultValue:0,min:0,max:2400,unit:\"px\",description:\"0 = always side by side\"},openFirst:{type:ControlType.Boolean,title:\"Open First\",defaultValue:false},iconSize:{type:ControlType.Number,title:\"Icon Size\",defaultValue:14,min:8,max:40,unit:\"px\"},iconPosition:{type:ControlType.Enum,title:\"Icon\",options:[\"inline\",\"end\"],optionTitles:[\"After Text\",\"Far Right\"],defaultValue:\"inline\",displaySegmentedControl:true},siteFonts:{type:ControlType.Boolean,title:\"Site Fonts\",defaultValue:true,description:\"On: questions in Enrique Round, answers in Maurice. Off: pick any font below.\"},questionFont:{type:ControlType.Font,title:\"Question Font\",controls:\"extended\",defaultValue:{fontSize:\"18px\",lineHeight:\"1.2em\"},description:\"With Site Fonts on, only size and spacing apply\"},answerFont:{type:ControlType.Font,title:\"Answer Font\",controls:\"extended\",defaultValue:{fontSize:\"17px\",lineHeight:\"1.35em\"}},padX:{type:ControlType.Number,title:\"Pad X\",defaultValue:24,min:0,max:60,unit:\"px\"},padY:{type:ControlType.Number,title:\"Pad Y\",defaultValue:16,min:0,max:60,unit:\"px\"},lineColor:{type:ControlType.Color,title:\"Lines\",defaultValue:\"#121010\"},textColor:{type:ControlType.Color,title:\"Text\",defaultValue:\"#121010\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"FieldFAQ\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"fixed\",\"framerSupportedLayoutHeight\":\"auto\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./FieldFAQ.map"],"mappings":"8PAKmmD,SAAS,EAAO,EAAE,CAAC,GAAG,CAAC,EAAE,MAAM,CAAC,EAAE,GAAK,CAAC,WAAS,aAAW,gBAAc,aAAW,EAAE,MAAM,CAAC,WAAS,aAAW,gBAAc,WAAS,CAAE,CAAC,SAAS,EAAK,CAAC,OAAK,QAAM,UAAQ,CAAC,OAAoB,EAAK,EAAO,IAAI,CAAC,QAAQ,kBAAkB,MAAM,EAAK,OAAa,MAAM,MAAZ,EAAmB,QAAQ,CAAC,QAAM,EAAE,WAAW,CAAC,SAAS,GAAG,KAAK,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC,EAAE,MAAM,CAAC,WAAW,EAAE,QAAQ,O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