{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/8eJFo8ZehkgMEIVw4R2a/DAQTBFlPgyPUf6P291r1/Ballpark.js", "ssg:https://framerusercontent.com/modules/iBfZNyHGiSQ0M7JWIlIS/ylLYWvWrm3X5CPdVuCpx/AccordionFAQ.js"],
  "sourcesContent": ["import{jsx as _jsx}from\"react/jsx-runtime\";export function withBallpark(Component){return props=>{return /*#__PURE__*/_jsx(Component,{...props,onClick:()=>window?.showBallParkWidget?.()});};}\nexport const __FramerMetadata__ = {\"exports\":{\"withBallpark\":{\"type\":\"reactHoc\",\"name\":\"withBallpark\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Ballpark.map", "// Accordion FAQ component with 5 questions, expandable, animated\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{useState,useCallback,startTransition,useEffect}from\"react\";import{addPropertyControls,ControlType,useIsStaticRenderer}from\"framer\";const defaultFaqs=[{question:\"What is Framer?\",answer:\"Framer is a design and prototyping tool for teams building digital products.\"},{question:\"How do I use this FAQ?\",answer:\"Click on a question to expand and see the answer.\"},{question:\"Can I add more questions?\",answer:\"Yes, you can add as many questions as you like in the property panel.\"},{question:\"Is this component responsive?\",answer:\"Yes, it adapts to the width of its container.\"},{question:\"Are animations included?\",answer:\"Yes, expanding and collapsing is smoothly animated.\"}];/**\n * Accordion FAQ\n *\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n */export default function AccordionFAQ(props){const{faqs=defaultFaqs,background,questionColor,answerColor,borderColor,chevronColor,borderRadius,questionFont,answerFont,questionSpacing,style}=props;const isStatic=useIsStaticRenderer();// Track open state for each accordion\nconst[openStates,setOpenStates]=useState(()=>faqs.map((_,i)=>i===0));useEffect(()=>{// If faqs array changes length, reset openStates\nsetOpenStates(prev=>{if(faqs.length!==prev.length){return faqs.map((_,i)=>i===0);}return prev;});},[faqs.length]);const handleToggle=useCallback(idx=>{startTransition(()=>{setOpenStates(prev=>{const next=[...prev];next[idx]=!next[idx];return next;});});},[]);return /*#__PURE__*/_jsx(\"div\",{style:{...style,background,borderRadius,boxShadow:\"none\",padding:0,width:\"100%\",minWidth:240,maxWidth:\"100%\",overflow:\"hidden\",border:`1px solid ${borderColor}`},children:faqs.map((item,idx)=>{const expanded=openStates[idx];// --- Begin: Smooth collapse/expand state management ---\nconst[rendered,setRendered]=useState(expanded);useEffect(()=>{let timeout;if(expanded){setRendered(true);}else{timeout=setTimeout(()=>setRendered(false),1100);}return()=>clearTimeout(timeout);},[expanded]);// --- End: Smooth collapse/expand state management ---\nreturn /*#__PURE__*/_jsxs(\"div\",{style:{background:background,transition:\"background 0.2s\",marginBottom:idx<faqs.length-1?questionSpacing:0},children:[/*#__PURE__*/_jsxs(\"button\",{\"aria-expanded\":expanded,\"aria-controls\":`faq-answer-${idx}`,onClick:()=>handleToggle(idx),style:{width:\"100%\",textAlign:\"left\",background:\"none\",border:\"none\",outline:\"none\",padding:\"0 0 10px 0\",cursor:\"pointer\",color:questionColor,display:\"flex\",alignItems:\"flex-start\",gap:12,...questionFont,fontSize:questionFont.fontSize,borderRadius:expanded?`${borderRadius}px ${borderRadius}px 0 0`:`${borderRadius}px`,transition:\"background 0.2s, color 0.2s\",boxShadow:\"none\",textShadow:\"none\"},children:[/*#__PURE__*/_jsx(\"span\",{style:{display:\"inline-flex\",height:questionFont.lineHeight?typeof questionFont.lineHeight===\"string\"&&questionFont.lineHeight.endsWith(\"em\")?`calc(${questionFont.fontSize} * ${parseFloat(questionFont.lineHeight)})`:questionFont.lineHeight:questionFont.fontSize,minHeight:questionFont.fontSize,alignItems:\"center\",justifyContent:\"center\",marginRight:0,userSelect:\"none\"},\"aria-hidden\":\"true\",children:/*#__PURE__*/_jsx(\"span\",{style:{display:\"inline-flex\",alignItems:\"center\",transition:\"transform 0.5s cubic-bezier(0.4, 0, 0.2, 1)\",transform:expanded?\"rotate(180deg)\":\"rotate(0deg)\",color:borderColor},children:/*#__PURE__*/_jsx(\"svg\",{width:\"13\",height:\"7\",viewBox:\"0 0 13 7\",fill:\"none\",stroke:chevronColor||borderColor,strokeWidth:\"2\",strokeLinecap:\"round\",strokeLinejoin:\"round\",style:{display:\"block\"},children:/*#__PURE__*/_jsx(\"polyline\",{points:\"1 1 6.5 6 12 1\"})})})}),/*#__PURE__*/_jsx(\"span\",{style:{flex:1,whiteSpace:\"pre-line\",wordBreak:\"break-word\"},children:item.question})]}),/*#__PURE__*/_jsx(\"div\",{id:`faq-answer-${idx}`,style:{maxHeight:expanded?500:0,opacity:expanded?1:0,overflow:\"hidden\",transition:isStatic?\"none\":\"max-height 1.1s cubic-bezier(0.4, 0, 0.2, 1), opacity 1.1s cubic-bezier(0.4, 0, 0.2, 1), padding 1.1s cubic-bezier(0.4, 0, 0.2, 1)\",background:background,padding:expanded?\"0 0 10px 37px\":\"0 0 0 37px\",color:answerColor,...answerFont,fontWeight:400,fontSize:answerFont.fontSize,lineHeight:answerFont.lineHeight,willChange:\"max-height, opacity, padding\"},\"aria-live\":\"polite\",children:rendered&&/*#__PURE__*/_jsx(\"span\",{style:{display:\"block\",whiteSpace:\"pre-line\",pointerEvents:expanded?\"auto\":\"none\",visibility:expanded?\"visible\":\"visible\"},children:item.answer})})]},idx);})});}addPropertyControls(AccordionFAQ,{faqs:{type:ControlType.Array,title:\"FAQs\",control:{type:ControlType.Object,controls:{question:{type:ControlType.String,title:\"Question\",defaultValue:\"What is Framer?\"},answer:{type:ControlType.String,title:\"Answer\",defaultValue:\"Framer is a design and prototyping tool for teams building digital products.\",displayTextArea:true}}},maxCount:20,defaultValue:defaultFaqs},background:{type:ControlType.Color,title:\"Background\",defaultValue:\"#FFFFFF\"},questionColor:{type:ControlType.Color,title:\"Question Color\",defaultValue:\"#000000\"},answerColor:{type:ControlType.Color,title:\"Answer Color\",defaultValue:\"#222222\"},borderColor:{type:ControlType.Color,title:\"Border Color\",defaultValue:\"#EEEEEE\"},chevronColor:{type:ControlType.Color,title:\"Chevron Color\",defaultValue:\"#CCCCCC\"},borderRadius:{type:ControlType.Number,title:\"Radius\",defaultValue:8,min:0,max:32},questionFont:{type:ControlType.Font,title:\"Question Font\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:\"18px\",variant:\"Semibold\",letterSpacing:\"-0.01em\",lineHeight:\"1.2em\"}},answerFont:{type:ControlType.Font,title:\"Answer Font\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:\"15px\",variant:\"Regular\",letterSpacing:\"-0.01em\",lineHeight:\"1.5em\"}},questionSpacing:{type:ControlType.Number,title:\"Question Spacing\",defaultValue:20,min:0,max:60,unit:\"px\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"AccordionFAQ\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"any-prefer-fixed\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./AccordionFAQ.map"],
  "mappings": "gIAAkD,SAASA,EAAaC,EAAU,CAAC,OAAOC,GAA4BC,EAAKF,EAAU,CAAC,GAAGC,EAAM,QAAQ,IAAIE,GAAQ,qBAAqB,CAAC,CAAC,CAAI,CCCK,IAAMC,EAAY,CAAC,CAAC,SAAS,kBAAkB,OAAO,8EAA8E,EAAE,CAAC,SAAS,yBAAyB,OAAO,mDAAmD,EAAE,CAAC,SAAS,4BAA4B,OAAO,uEAAuE,EAAE,CAAC,SAAS,gCAAgC,OAAO,+CAA+C,EAAE,CAAC,SAAS,2BAA2B,OAAO,qDAAqD,CAAC,EAKhtB,SAARC,EAA8BC,EAAM,CAAC,GAAK,CAAC,KAAAC,EAAKH,EAAY,WAAAI,EAAW,cAAAC,EAAc,YAAAC,EAAY,YAAAC,EAAY,aAAAC,EAAa,aAAAC,EAAa,aAAAC,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,WAAW,cAAc,UAAU,WAAW,OAAO,CAAC,EAAE,WAAW,CAAC,KAAKA,EAAY,KAAK,MAAM,cAAc,SAAS,WAAW,gBAAgB,aAAa,aAAa,CAAC,SAAS,OAAO,QAAQ,UAAU,cAAc,UAAU,WAAW,OAAO,CAAC,EAAE,gBAAgB,CAAC,KAAKA,EAAY,OAAO,MAAM,mBAAmB,aAAa,GAAG,IAAI,EAAE,IAAI,GAAG,KAAK,IAAI,CAAC,CAAC",
  "names": ["withBallpark", "Component", "props", "p", "window", "defaultFaqs", "AccordionFAQ", "props", "faqs", "background", "questionColor", "answerColor", "borderColor", "chevronColor", "borderRadius", "questionFont", "answerFont", "questionSpacing", "style", "isStatic", "useIsStaticRenderer", "openStates", "setOpenStates", "ye", "_", "i", "ue", "prev", "handleToggle", "te", "idx", "Z", "next", "p", "item", "expanded", "rendered", "setRendered", "timeout", "u", "addPropertyControls", "ControlType"]
}
