{"version":3,"file":"PivotFAQ.DCv91FoP.mjs","names":["useState","__esmMin","_e","p","c","init_jsx_runtime","init_npm_react_18_3_1","init_framer_BikQVKhx","ControlType","addPropertyControls","PivotFAQ","props","open","setOpen","firstOpen","pick","base","f","qFont","questionFont","aFont","answerFont","lineColor","items","isOpen","i","questionColor","questionSize","item","iconColor","answerColor","answerSize","init_PivotFAQ"],"sources":["https:/framerusercontent.com/modules/z9uooACoODQBRecPNhNr/LixShgSSwGFPnOtgN7my/PivotFAQ.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import{useState}from\"react\";/**\n * FAQ accordion for the Pivot template: questions split by thin lines. Edit the questions in the right panel.\n *\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight auto\n */export default function PivotFAQ(props){const{items,questionFont,answerFont,questionSize,answerSize,questionColor,answerColor,iconColor,lineColor,firstOpen}=props;const[open,setOpen]=useState(firstOpen?0:-1);// Font controls placed by a plugin can arrive empty (or as a bare generic family): fall back to the template font\nconst pick=(f,base)=>({...base,...f&&f.fontFamily&&!/^(sans-serif|serif|system-ui)$/i.test(f.fontFamily)?f:{}});const qFont=pick(questionFont,{fontFamily:'\"Inter\", \"Inter Placeholder\", sans-serif',fontWeight:600,lineHeight:\"1.35em\"});const aFont=pick(answerFont,{fontFamily:'\"Inter\", \"Inter Placeholder\", sans-serif',fontWeight:400,lineHeight:\"1.55em\"});return /*#__PURE__*/_jsx(\"div\",{style:{width:\"100%\",display:\"flex\",flexDirection:\"column\",borderTop:`1px solid ${lineColor}`},children:items.map((item,i)=>{const isOpen=open===i;return /*#__PURE__*/_jsxs(\"div\",{style:{borderBottom:`1px solid ${lineColor}`},children:[/*#__PURE__*/_jsxs(\"button\",{onClick:()=>setOpen(isOpen?-1:i),\"aria-expanded\":isOpen,style:{all:\"unset\",boxSizing:\"border-box\",width:\"100%\",cursor:\"pointer\",display:\"flex\",justifyContent:\"space-between\",alignItems:\"center\",gap:24,padding:\"26px 0\",color:questionColor,...qFont,fontSize:questionSize},children:[/*#__PURE__*/_jsx(\"span\",{children:item.question}),/*#__PURE__*/_jsx(\"span\",{\"aria-hidden\":true,style:{color:iconColor,fontSize:26,fontWeight:400,lineHeight:1,transition:\"transform .25s\",transform:isOpen?\"rotate(45deg)\":\"none\"},children:\"+\"})]}),/*#__PURE__*/_jsx(\"div\",{style:{display:\"grid\",gridTemplateRows:isOpen?\"1fr\":\"0fr\",transition:\"grid-template-rows .3s ease\"},children:/*#__PURE__*/_jsx(\"div\",{style:{overflow:\"hidden\"},children:/*#__PURE__*/_jsx(\"p\",{style:{margin:0,padding:\"0 40px 26px 0\",color:answerColor,...aFont,fontSize:answerSize},children:item.answer})})})]},i);})});}addPropertyControls(PivotFAQ,{items:{type:ControlType.Array,title:\"Questions\",control:{type:ControlType.Object,controls:{question:{type:ControlType.String,title:\"Question\"},answer:{type:ControlType.String,title:\"Answer\",displayTextArea:true}}},defaultValue:[{question:\"Do I need a doctor's referral?\",answer:\"No. You can book directly. Some insurers ask for a referral before they pay, so check your policy, and we'll help if you're not sure.\"},{question:\"What should I wear?\",answer:\"Clothes you can move in, like shorts and a T-shirt. Bring your training shoes if your injury affects running or lifting.\"},{question:\"How many sessions will I need?\",answer:\"It depends on the injury. Most people need four to eight sessions. You'll get an honest estimate at your first visit.\"},{question:\"Do you bill my insurer directly?\",answer:\"Yes, for most major insurers. Bring your policy number and we'll check your cover before your session starts.\"},{question:\"Can I cancel or move my appointment?\",answer:\"Yes, free of charge up to 24 hours before. Later cancellations are charged at half the session price.\"}]},firstOpen:{type:ControlType.Boolean,title:\"First open\",defaultValue:true},questionFont:{type:ControlType.Font,title:\"Question font\",controls:\"extended\",defaultValue:{fontFamily:\"Inter\",fontSize:18,fontWeight:600,lineHeight:\"1.35em\"}},answerFont:{type:ControlType.Font,title:\"Answer font\",controls:\"extended\",defaultValue:{fontFamily:\"Inter\",fontSize:16,fontWeight:400,lineHeight:\"1.55em\"}},questionSize:{type:ControlType.Number,title:\"Question size\",defaultValue:18,min:12,max:40,unit:\"px\"},answerSize:{type:ControlType.Number,title:\"Answer size\",defaultValue:16,min:12,max:32,unit:\"px\"},questionColor:{type:ControlType.Color,title:\"Question\",defaultValue:\"#12161B\"},answerColor:{type:ControlType.Color,title:\"Answer\",defaultValue:\"#666C73\"},iconColor:{type:ControlType.Color,title:\"Icon\",defaultValue:\"#FF5B2E\"},lineColor:{type:ControlType.Color,title:\"Lines\",defaultValue:\"#DCD8D0\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"PivotFAQ\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"auto\",\"framerSupportedLayoutWidth\":\"any\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./PivotFAQ.map"],"mappings":"A,iLAKG,SAAwBU,EAAS,EAAM,CAAC,GAAK,CAAC,QAAM,eAAa,aAAW,eAAa,aAAW,gBAAc,cAAY,YAAU,YAAU,aAAWC,EAAW,CAACC,EAAKC,GAASb,EAASc,EAAU,EAAE,EAAE,EAC3MC,GAAM,EAAE,KAAQ,CAAC,GAAGC,EAAK,GAAGC,GAAGA,EAAE,YAAY,CAAC,kCAAkC,KAAKA,EAAE,UAAU,EAAEA,EAAE,CAAC,CAAC,GAASC,EAAMH,EAAKI,EAAa,CAAC,WAAW,2CAA2C,WAAW,IAAI,WAAW,QAAQ,CAAC,EAAQC,EAAML,EAAKM,EAAW,CAAC,WAAW,2CAA2C,WAAW,IAAI,WAAW,QAAQ,CAAC,EAAE,MAAoB,gBAAK,MAAM,CAAC,MAAM,CAAC,MAAM,OAAO,QAAQ,OAAO,cAAc,SAAS,UAAU,aAAaC,GAAW,EAAE,SAASC,EAAM,KAAK,EAAK,IAAI,CAAC,IAAMC,EAAOZ,IAAOa,EAAE,MAAoB,gBAAM,MAAM,CAAC,MAAM,CAAC,aAA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