{"version":3,"file":"FAQAccordion.D3oSy0Be.mjs","names":["useState","useCallback","useRef"],"sources":["https:/framerusercontent.com/modules/7oa55OhdQCHE3LKR2aIf/gX78kOCVbzGK4qMWZfMW/FAQAccordion.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{useState,useRef,useEffect,useCallback}from\"react\";import{addPropertyControls,ControlType}from\"framer\";function useContainerWidth(ref){const[width,setWidth]=useState(1400);const measure=useCallback(()=>{if(ref.current){setWidth(ref.current.offsetWidth);}},[ref]);useEffect(()=>{measure();const ro=new ResizeObserver(()=>measure());if(ref.current)ro.observe(ref.current);window.addEventListener(\"resize\",measure);return()=>{ro.disconnect();window.removeEventListener(\"resize\",measure);};},[measure]);return width;}function parseFAQMarkdown(md){if(!md||!md.trim())return[];const parts=md.split(/^## /m).filter(Boolean);return parts.map(part=>{const lines=part.trim().split(\"\\n\");const question=lines[0]?.trim()||\"\";const answer=lines.slice(1).join(\"\\n\").trim();return{question,answer};});}/**\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n */export default function FAQAccordion(props){const{eyebrow=\"Common Questions\",title=\"Questions We\\nAlways Get.\",body=\"Whether you're upgrading one boardroom or outfitting an entire office — here are the questions we hear most.\",buttonText=\"Talk to Our Team →\",buttonLink=\"#\",showButton=true,items=[],cmsContent=\"\",backgroundColor=\"#FFFFFF\",eyebrowColor=\"rgb(32,32,89)\",titleColor=\"rgb(27,26,26)\",bodyColor=\"rgb(90,90,90)\",buttonBgColor=\"rgb(32,32,89)\",buttonTextColor=\"#FFFFFF\",questionColor=\"rgb(27,26,26)\",answerColor=\"rgb(90,90,90)\",dividerColor=\"rgb(234,234,234)\",accentColor=\"rgb(1,160,76)\",tabletBreakpoint=900,mobileBreakpoint=600,style}=props;const containerRef=useRef(null);const containerWidth=useContainerWidth(containerRef);const isTablet=containerWidth<=tabletBreakpoint&&containerWidth>mobileBreakpoint;const isMobile=containerWidth<=mobileBreakpoint;const isStacked=isTablet||isMobile;// Use CMS markdown content if provided, otherwise fall back to items array\nconst faqItems=cmsContent&&cmsContent.trim()?parseFAQMarkdown(cmsContent):items;const[openIndex,setOpenIndex]=useState(null);const contentRefs=useRef([]);const toggle=i=>{setOpenIndex(openIndex===i?null:i);};// Responsive values\nconst wrapperPadding=isMobile?\"48px 18px\":isTablet?\"64px 24px\":\"80px 40px\";const wrapperGap=isStacked?32:100;const leftWidth=isStacked?\"100%\":380;const titleFontSize=isMobile?28:isTablet?32:38;const bodyFontSize=isMobile?15:17;const questionFontSize=isMobile?15:16;const eyebrowFontSize=isMobile?10:isTablet?15:16;return /*#__PURE__*/_jsx(\"div\",{ref:containerRef,style:{...style,backgroundColor,width:\"100%\",boxSizing:\"border-box\"},children:/*#__PURE__*/_jsxs(\"div\",{style:{maxWidth:1400,margin:\"0 auto\",padding:wrapperPadding,display:\"flex\",flexDirection:isStacked?\"column\":\"row\",gap:wrapperGap,alignItems:isStacked?\"stretch\":\"flex-start\",boxSizing:\"border-box\"},children:[/*#__PURE__*/_jsxs(\"div\",{style:{width:leftWidth,flexShrink:0,display:\"flex\",flexDirection:\"column\",gap:16},children:[/*#__PURE__*/_jsx(\"span\",{style:{fontSize:eyebrowFontSize,fontWeight:700,letterSpacing:\"0.12em\",lineHeight:\"1.4em\",textTransform:\"uppercase\",color:eyebrowColor,fontFamily:\"'Inter', sans-serif\"},children:eyebrow}),/*#__PURE__*/_jsx(\"h2\",{style:{fontSize:titleFontSize,fontWeight:700,lineHeight:1.2,letterSpacing:\"-0.03em\",color:titleColor,margin:0,fontFamily:\"'Inter', sans-serif\",whiteSpace:\"pre-line\"},children:title}),/*#__PURE__*/_jsx(\"p\",{style:{fontSize:bodyFontSize,lineHeight:1.6,color:bodyColor,margin:0,fontFamily:\"'Inter', sans-serif\"},children:body}),showButton&&/*#__PURE__*/_jsx(\"a\",{href:buttonLink,style:{display:\"inline-flex\",alignItems:\"center\",gap:8,fontSize:14,fontWeight:600,padding:\"14px 28px\",borderRadius:8,backgroundColor:buttonBgColor,color:buttonTextColor,textDecoration:\"none\",border:\"none\",cursor:\"pointer\",fontFamily:\"'Inter', sans-serif\",marginTop:8,width:\"fit-content\"},children:buttonText})]}),/*#__PURE__*/_jsx(\"div\",{style:{flex:1,display:\"flex\",flexDirection:\"column\"},children:faqItems.map((item,i)=>{const isOpen=openIndex===i;const contentHeight=contentRefs.current[i]?.scrollHeight||0;return /*#__PURE__*/_jsxs(\"div\",{style:{borderBottom:`1px solid ${dividerColor}`},children:[/*#__PURE__*/_jsxs(\"button\",{onClick:()=>toggle(i),style:{width:\"100%\",padding:\"20px 0\",border:\"none\",background:\"transparent\",textAlign:\"left\",cursor:\"pointer\",display:\"flex\",justifyContent:\"space-between\",alignItems:\"center\",gap:20,fontFamily:\"'Inter', sans-serif\",fontSize:questionFontSize,fontWeight:600,lineHeight:1.4,color:isOpen?\"rgb(32,32,89)\":questionColor,transition:\"color 0.15s\"},children:[/*#__PURE__*/_jsx(\"span\",{children:item.question}),/*#__PURE__*/_jsx(\"span\",{style:{fontSize:22,color:accentColor,flexShrink:0,lineHeight:1,transition:\"transform 0.2s\",transform:isOpen?\"rotate(45deg)\":\"rotate(0deg)\"},children:\"+\"})]}),/*#__PURE__*/_jsx(\"div\",{style:{maxHeight:isOpen?`${contentHeight}px`:\"0px\",overflow:\"hidden\",transition:\"max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1)\"},children:/*#__PURE__*/_jsx(\"div\",{ref:el=>{contentRefs.current[i]=el;},style:{paddingBottom:20,fontSize:14,lineHeight:1.75,color:answerColor,fontFamily:\"'Inter', sans-serif\"},children:item.answer})})]},i);})})]})});}addPropertyControls(FAQAccordion,{eyebrow:{type:ControlType.String,title:\"Eyebrow\",defaultValue:\"Common Questions\"},title:{type:ControlType.String,title:\"Title\",defaultValue:\"Questions We\\nAlways Get.\",displayTextArea:true},body:{type:ControlType.String,title:\"Body\",defaultValue:\"Whether you're upgrading one boardroom or outfitting an entire office — here are the questions we hear most.\",displayTextArea:true},buttonText:{type:ControlType.String,title:\"Button Text\",defaultValue:\"Talk to Our Team →\"},buttonLink:{type:ControlType.Link,title:\"Button Link\"},showButton:{type:ControlType.Boolean,title:\"Show Button\",defaultValue:true},cmsContent:{type:ControlType.String,title:\"FAQ Items (Markdown)\",description:\"Paste markdown with ## Question headings. Overrides the Items array below when provided.\",defaultValue:\"\",displayTextArea:true},items:{type:ControlType.Array,title:\"FAQ Items\",control:{type:ControlType.Object,controls:{question:{type:ControlType.String,title:\"Question\",defaultValue:\"Question goes here?\"},answer:{type:ControlType.String,title:\"Answer\",defaultValue:\"Answer goes here.\",displayTextArea:true}}},defaultValue:[{question:\"How much does a boardroom AV system cost?\",answer:'A standard boardroom setup (75\" display, camera, mics, speakers, wireless presentation) typically ranges from $8,000–$25,000 depending on equipment choices and room complexity. We provide detailed quotes after a site visit.'},{question:\"Do you install Zoom Rooms and Microsoft Teams Rooms?\",answer:\"Yes. We install and configure certified Zoom Rooms, Microsoft Teams Rooms, and Webex devices. All hardware is tested with your platform before handover.\"},{question:\"Can you install AV in an existing office without major construction?\",answer:\"Yes. Most commercial AV installs use surface-mount or ceiling-mount solutions with minimal construction. We route cables through existing pathways and coordinate with your building management.\"},{question:\"Do you provide ongoing AV support?\",answer:\"Yes. We offer support plans for firmware updates, troubleshooting, and system expansion. We also handle one-off service calls for AV issues.\"},{question:\"What brands do you work with?\",answer:\"We work with all major commercial AV brands — Samsung, LG, Crestron, Poly, Logitech, Shure, Biamp, QSC, and others. We recommend equipment based on your needs and budget, not vendor partnerships.\"},{question:\"Do you handle the cabling for AV systems?\",answer:\"Yes. AV cabling is part of our structured cabling services. HDMI, Cat6, fiber, and control cables are all installed to BICSI standards.\"}],maxCount:12},tabletBreakpoint:{type:ControlType.Number,title:\"Tablet @\",defaultValue:900,min:500,max:1400,step:10},mobileBreakpoint:{type:ControlType.Number,title:\"Mobile @\",defaultValue:600,min:300,max:1e3,step:10},backgroundColor:{type:ControlType.Color,title:\"Background\",defaultValue:\"#FFFFFF\"},eyebrowColor:{type:ControlType.Color,title:\"Eyebrow Color\",defaultValue:\"rgb(32,32,89)\"},titleColor:{type:ControlType.Color,title:\"Title Color\",defaultValue:\"rgb(27,26,26)\"},bodyColor:{type:ControlType.Color,title:\"Body Color\",defaultValue:\"rgb(90,90,90)\"},buttonBgColor:{type:ControlType.Color,title:\"Button BG\",defaultValue:\"rgb(32,32,89)\"},buttonTextColor:{type:ControlType.Color,title:\"Button Text\",defaultValue:\"#FFFFFF\"},questionColor:{type:ControlType.Color,title:\"Question Color\",defaultValue:\"rgb(27,26,26)\"},answerColor:{type:ControlType.Color,title:\"Answer Color\",defaultValue:\"rgb(90,90,90)\"},dividerColor:{type:ControlType.Color,title:\"Divider Color\",defaultValue:\"rgb(234,234,234)\"},accentColor:{type:ControlType.Color,title:\"Accent Color\",defaultValue:\"rgb(1,160,76)\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"FAQAccordion\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"any-prefer-fixed\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./FAQAccordion.map"],"mappings":"oNAAsK,SAAS,EAAkB,EAAI,CAAC,GAAK,CAAC,EAAM,GAAUA,EAAS,KAAK,CAAO,EAAQC,MAAgB,CAAI,EAAI,SAAS,EAAS,EAAI,QAAQ,YAAY,EAAI,CAAC,EAAI,CAAC,CAA6O,OAA5O,MAAc,CAAC,GAAS,CAAC,IAAM,EAAG,IAAI,mBAAmB,GAAS,CAAC,CAAkF,OAA9E,EAAI,SAAQ,EAAG,QAAQ,EAAI,QAAQ,CAAC,EAAO,iBAAiB,SAAS,EAAQ,KAAW,CAAC,EAAG,YAAY,CAAC,EAAO,oBAAoB,SAAS,EAAQ,GAAK,CAAC,EAAQ,CAAC,CA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