{"version":3,"file":"FAQSection_2.B0fXswWr.mjs","names":["useState","useRef","useCallback","_Fragment"],"sources":["https:/framerusercontent.com/modules/TWtSKaOmO4RbFqHZI2XF/K7fOks9OoNmdmXmrrqmR/FAQSection_2.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";import{useState,useCallback,useRef,useEffect,startTransition}from\"react\";import{motion,useInView}from\"framer-motion\";import{addPropertyControls,ControlType,RenderTarget}from\"framer\";const defaultFAQItems=[{question:\"When should I see a chiropractor for a sports injury?\",answer:\"As soon as the injury isn't improving on its own. The longer you train through compensation patterns, the longer recovery takes. Most patients we see have been trying to push through for weeks or months before they come in.\"},{question:\"Chiropractor vs physical therapist — what's the difference?\",answer:\"Both treat sports injuries and often work well together. The difference: we combine joint adjustments with soft tissue work and rehab exercises in the same visit. Most patients see faster initial pain relief with chiropractic.\"},{question:\"How long until I can train again?\",answer:\"Depends on the injury. Most patients return to modified training within one to two weeks and full training inside a month. We give you a real timeline at your first visit, not a guess.\"},{question:\"Do I need a referral?\",answer:\"No. Walk in, book online, or call. Same-week appointments are available.\"}];/**\n * Common Questions FAQ Section\n * \n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight auto\n */export default function FAQSection(props){const{heading=\"Common Questions\",headingFont,questionFont,answerFont,backgroundColor=\"#FFFFFF\",headingColor=\"#1B2D4F\",questionColor=\"#1B2D4F\",answerColor=\"#4A5568\",dividerColor=\"#E2E8F0\",toggleColor=\"#1B2D4F\",glow1Color=\"#FFE0EE\",glow2Color=\"#EDE0FF\",glow1Opacity=.35,glow2Opacity=.25,items=defaultFAQItems,animationDuration=.5,staggerDelay=.08}=props;const[openIndex,setOpenIndex]=useState(null);const sectionRef=useRef(null);const isInView=useInView(sectionRef,{once:true,margin:\"-100px\"});const isCanvas=RenderTarget.current()===RenderTarget.canvas;const uniqueId=useRef(`faq-heading-${Math.random().toString(36).substr(2,9)}`);const handleToggle=useCallback(index=>{startTransition(()=>{setOpenIndex(prev=>prev===index?null:index);});},[]);// Animation variants - visible in canvas, animated in preview\nconst headingVariants={hidden:{opacity:0,y:16},visible:{opacity:1,y:0}};const itemVariants={hidden:{opacity:0,y:16},visible:{opacity:1,y:0}};return /*#__PURE__*/_jsxs(\"section\",{ref:sectionRef,style:{position:\"relative\",width:\"100%\",backgroundColor,overflow:\"visible\",paddingTop:0,paddingBottom:\"clamp(30px, 5vw, 60px)\",paddingLeft:\"clamp(20px, 5vw, 64px)\",paddingRight:\"clamp(20px, 5vw, 64px)\"},children:[/*#__PURE__*/_jsx(\"style\",{children:`\n                @media (min-width: 1200px) {\n                    .${uniqueId.current} {\n                        font-size: 46px !important;\n                    }\n                }\n                @media (max-width: 1199px) {\n                    .${uniqueId.current} {\n                        font-size: 30px !important;\n                    }\n                }\n            `}),/*#__PURE__*/_jsxs(\"div\",{style:{position:\"absolute\",left:0,top:0,width:\"100%\",height:\"100%\",pointerEvents:\"none\",overflow:\"hidden\",zIndex:0},children:[/*#__PURE__*/_jsx(\"div\",{style:{position:\"absolute\",left:\"15%\",top:\"65%\",width:\"55%\",paddingBottom:\"55%\",transform:\"translate(-50%, -50%)\",background:`radial-gradient(circle, ${glow1Color} 0%, transparent 70%)`,opacity:glow1Opacity,borderRadius:\"50%\"}}),/*#__PURE__*/_jsx(\"div\",{style:{position:\"absolute\",left:\"20%\",top:\"60%\",width:\"45%\",paddingBottom:\"45%\",transform:\"translate(-50%, -50%)\",background:`radial-gradient(circle, ${glow2Color} 0%, transparent 70%)`,opacity:glow2Opacity,borderRadius:\"50%\"}})]}),/*#__PURE__*/_jsxs(\"div\",{style:{position:\"relative\",zIndex:1,maxWidth:\"760px\",margin:\"0 auto\",width:\"100%\"},children:[/*#__PURE__*/_jsx(motion.h2,{className:uniqueId.current,initial:isCanvas?{opacity:1,y:0}:{opacity:0,y:16},animate:isCanvas?{opacity:1,y:0}:isInView?{opacity:1,y:0}:{opacity:0,y:16},transition:{duration:animationDuration,ease:\"easeOut\"},style:{fontWeight:700,color:headingColor,textAlign:\"center\",margin:\"0 0 48px 0\",...headingFont},children:heading}),/*#__PURE__*/_jsx(\"div\",{style:{width:\"100%\"},children:items.map((item,index)=>/*#__PURE__*/_jsx(motion.div,{initial:isCanvas?{opacity:1,y:0}:{opacity:0,y:16},animate:isCanvas?{opacity:1,y:0}:isInView?{opacity:1,y:0}:{opacity:0,y:16},transition:{duration:animationDuration,delay:staggerDelay*(index+1),ease:\"easeOut\"},children:/*#__PURE__*/_jsx(FAQItem,{item:item,index:index,isOpen:openIndex===index,onToggle:()=>handleToggle(index),isLast:index===items.length-1,questionFont:questionFont,answerFont:answerFont,questionColor:questionColor,answerColor:answerColor,dividerColor:dividerColor,toggleColor:toggleColor,isCanvas:isCanvas})},index))})]})]});}function FAQItem({item,isOpen,onToggle,isLast,questionFont,answerFont,questionColor,answerColor,dividerColor,toggleColor,isCanvas=false}){const contentRef=useRef(null);const[height,setHeight]=useState(isCanvas&&isOpen?\"auto\":0);const shouldAppendDoctorSentence=item.question===\"How long will treatment take?\";useEffect(()=>{if(contentRef.current){setHeight(isOpen?contentRef.current.scrollHeight:0);}},[isOpen]);return /*#__PURE__*/_jsxs(\"div\",{style:{borderBottom:isLast?\"none\":`0.5px solid ${dividerColor}`,width:\"100%\"},children:[/*#__PURE__*/_jsxs(\"button\",{onClick:onToggle,style:{display:\"flex\",alignItems:\"center\",justifyContent:\"space-between\",width:\"100%\",minHeight:\"52px\",padding:\"20px 0\",background:\"none\",border:\"none\",cursor:\"pointer\",textAlign:\"left\"},\"aria-expanded\":isOpen,children:[/*#__PURE__*/_jsx(\"span\",{style:{fontSize:\"17px\",fontWeight:600,color:questionColor,flex:1,paddingRight:\"16px\",...questionFont},children:item.question}),/*#__PURE__*/_jsx(motion.span,{initial:isCanvas?{rotate:isOpen?45:0}:false,animate:{rotate:isOpen?45:0},transition:{duration:.3,ease:\"easeOut\"},style:{fontSize:\"20px\",fontWeight:400,color:toggleColor,flexShrink:0,width:\"24px\",height:\"24px\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\"},children:isOpen?\"−\":\"+\"})]}),/*#__PURE__*/_jsx(\"div\",{style:{height:isCanvas&&isOpen?\"auto\":`${height}px`,overflow:\"hidden\",transition:\"height 0.3s ease\"},children:/*#__PURE__*/_jsx(\"div\",{ref:contentRef,style:{paddingBottom:isOpen?\"20px\":\"0\"},children:/*#__PURE__*/_jsxs(\"p\",{style:{fontSize:\"16px\",lineHeight:1.7,color:answerColor,margin:0,...answerFont},children:[item.answer,shouldAppendDoctorSentence&&/*#__PURE__*/_jsxs(_Fragment,{children:[\" Meet \",/*#__PURE__*/_jsx(\"a\",{href:\"/meet-our-care-team\",style:{color:answerColor,textDecoration:\"underline\"},children:\"the doctor who will treat you\"}),\".\"]})]})})})]});}addPropertyControls(FAQSection,{heading:{type:ControlType.String,title:\"Heading\",defaultValue:\"Common Questions\"},headingFont:{type:ControlType.Font,title:\"Heading Font\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:\"34px\",variant:\"Bold\",letterSpacing:\"-0.02em\",lineHeight:\"1.2em\"}},questionFont:{type:ControlType.Font,title:\"Question Font\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:\"17px\",variant:\"Semibold\",letterSpacing:\"-0.01em\",lineHeight:\"1.3em\"}},answerFont:{type:ControlType.Font,title:\"Answer Font\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:\"16px\",variant:\"Regular\",letterSpacing:\"0em\",lineHeight:\"1.7em\"}},backgroundColor:{type:ControlType.Color,title:\"Background\",defaultValue:\"#FFFFFF\"},headingColor:{type:ControlType.Color,title:\"Heading Color\",defaultValue:\"#1B2D4F\"},questionColor:{type:ControlType.Color,title:\"Question Color\",defaultValue:\"#1B2D4F\"},answerColor:{type:ControlType.Color,title:\"Answer Color\",defaultValue:\"#4A5568\"},dividerColor:{type:ControlType.Color,title:\"Divider Color\",defaultValue:\"#E2E8F0\"},toggleColor:{type:ControlType.Color,title:\"Toggle Color\",defaultValue:\"#1B2D4F\"},glow1Color:{type:ControlType.Color,title:\"Glow 1 Color\",defaultValue:\"#FFE0EE\"},glow2Color:{type:ControlType.Color,title:\"Glow 2 Color\",defaultValue:\"#EDE0FF\"},glow1Opacity:{type:ControlType.Number,title:\"Glow 1 Opacity\",defaultValue:.35,min:0,max:1,step:.05},glow2Opacity:{type:ControlType.Number,title:\"Glow 2 Opacity\",defaultValue:.25,min:0,max:1,step:.05},items:{type:ControlType.Array,title:\"FAQ Items\",control:{type:ControlType.Object,controls:{question:{type:ControlType.String,title:\"Question\",defaultValue:\"Question text here?\"},answer:{type:ControlType.String,title:\"Answer\",defaultValue:\"Answer text here.\",displayTextArea:true}}},defaultValue:defaultFAQItems},animationDuration:{type:ControlType.Number,title:\"Animation Duration\",defaultValue:.5,min:.1,max:2,step:.1,unit:\"s\"},staggerDelay:{type:ControlType.Number,title:\"Stagger Delay\",defaultValue:.08,min:0,max:.5,step:.01,unit:\"s\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"FAQSection\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"auto\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./FAQSection_2.map"],"mappings":"8QAKG,SAAwB,EAAW,EAAM,CAAC,GAAK,CAAC,UAAQ,mBAAmB,cAAY,eAAa,aAAW,kBAAgB,UAAU,eAAa,UAAU,gBAAc,UAAU,cAAY,UAAU,eAAa,UAAU,cAAY,UAAU,aAAW,UAAU,aAAW,UAAU,eAAa,IAAI,eAAa,IAAI,QAAM,EAAgB,oBAAkB,GAAG,eAAa,KAAK,EAAW,CAAC,EAAU,GAAcA,EAAS,IAAI,EAAQ,EAAWC,EAAO,IAAI,EAAQ,EAAS,EAAU,EAAW,CAAC,KAAK,GAAK,OAA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