{"version":3,"file":"ServiceFAQ.CYA55i6s.mjs","names":["React.useState","React.startTransition","React.Fragment","__esmMin","window","init_npm_react_18_3_1","te","x","init_ssg_sandbox_shims","ce","init_jsx_runtime","p","_e","init_framer_Bf4_tcb2","addPropertyControls","ControlType","ServiceFAQ","openItems","setOpenItems","isMobile","setIsMobile","updateSize","items","props","headingFontSize","index","value","event","next","prev","item","i","part","init_ServiceFAQ"],"sources":["https:/framerusercontent.com/modules/bw9TMnBmAzLW7LvJqdHq/kHkYiLM31eDLe2VadaDT/ServiceFAQ.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import*as React from\"react\";import{addPropertyControls,ControlType}from\"framer\";/**\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight auto\n */export default function ServiceFAQ(props){const[openItems,setOpenItems]=React.useState([false,false,false,false]);const[isMobile,setIsMobile]=React.useState(false);React.useEffect(()=>{const updateSize=()=>React.startTransition(()=>setIsMobile(window.innerWidth<=809));updateSize();window.addEventListener(\"resize\",updateSize);return()=>window.removeEventListener(\"resize\",updateSize);},[]);const items=props.items?.length?props.items:[{question:props.question1,answer:props.answer1},{question:props.question2,answer:props.answer2},{question:props.question3,answer:props.answer3},{question:props.question4,answer:props.answer4}];const headingFontSize=isMobile?21:24;return /*#__PURE__*/_jsx(\"section\",{\"aria-label\":\"Frequently asked questions\",style:{position:\"relative\",width:\"100%\",height:\"auto\",background:\"transparent\",color:\"#111111\",...props.style},children:items.map((item,index)=>/*#__PURE__*/_jsxs(\"details\",{open:!!openItems[index],onToggle:event=>{const value=event.currentTarget.open;React.startTransition(()=>setOpenItems(prev=>{const next=[...prev];next[index]=value;return next;}));},style:{borderTop:index===0?\"1px solid #D4CEC2\":\"none\",borderBottom:\"1px solid #D4CEC2\",padding:\"25px 0\"},children:[/*#__PURE__*/_jsxs(\"summary\",{\"aria-expanded\":!!openItems[index],onFocus:e=>{e.currentTarget.style.outline=\"2px solid #1d3026\";e.currentTarget.style.outlineOffset=\"5px\";},onBlur:e=>{e.currentTarget.style.outline=\"none\";},style:{listStyle:\"none\",cursor:\"pointer\",display:\"flex\",alignItems:\"center\",justifyContent:\"space-between\",gap:16,color:\"#111111\",fontFamily:props.headingFont||\"Marcellus, serif\",fontSize:headingFontSize,lineHeight:1.25,fontWeight:400,outline:\"none\"},children:[/*#__PURE__*/_jsx(\"span\",{style:{flex:1},children:item.question}),/*#__PURE__*/_jsx(\"span\",{\"aria-hidden\":\"true\",style:{fontFamily:props.headingFont||\"Marcellus, serif\",fontSize:headingFontSize,lineHeight:1,minWidth:20,textAlign:\"right\"},children:openItems[index]?\"−\":\"+\"})]}),/*#__PURE__*/_jsx(\"div\",{style:{marginTop:14,paddingRight:28,color:\"#66615A\",fontFamily:'\"Plus Jakarta Sans\", sans-serif',fontSize:16,lineHeight:1.6},children:item.answer?.includes(\"207-283-1811\")?item.answer.split(\"207-283-1811\").map((part,i)=>/*#__PURE__*/_jsxs(React.Fragment,{children:[i>0&&/*#__PURE__*/_jsx(\"a\",{href:\"tel:+12072831811\",style:{color:\"#1d3026\",textDecoration:\"underline\"},children:\"207-283-1811\"}),part]},i)):item.answer})]},index))});}addPropertyControls(ServiceFAQ,{items:{type:ControlType.Array,title:\"FAQs\",control:{type:ControlType.Object,controls:{question:{type:ControlType.String,title:\"Question\"},answer:{type:ControlType.String,title:\"Answer\",displayTextArea:true}}}},headingFont:{type:ControlType.String,title:\"Question font\"},question1:{type:ControlType.String,title:\"Q1\",defaultValue:\"Do I need to have my kitchen planned before contacting Heartwood?\"},answer1:{type:ControlType.String,title:\"A1\",displayTextArea:true,defaultValue:\"No. You can come with detailed plans or just the beginning of an idea. Our designers can help you understand next steps.\"},question2:{type:ControlType.String,title:\"Q2\",defaultValue:\"Can Heartwood help me choose between cabinet brands?\"},answer2:{type:ControlType.String,title:\"A2\",displayTextArea:true,defaultValue:\"Yes. Our designers can explain differences in style, construction, customization, and budget to help you make an informed decision.\"},question3:{type:ControlType.String,title:\"Q3\",defaultValue:\"Does Heartwood work with contractors?\"},answer3:{type:ControlType.String,title:\"A3\",displayTextArea:true,defaultValue:\"Yes. We work with builders, remodelers, contractors, and homeowners planning their own projects.\"},question4:{type:ControlType.String,title:\"Q4\",defaultValue:\"Can I visit the showroom before starting a project?\"},answer4:{type:ControlType.String,title:\"A4\",displayTextArea:true,defaultValue:\"Yes. Visiting the showroom helps you explore products and compare materials. Contact us to arrange time with a designer.\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"ServiceFAQ\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"auto\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ServiceFAQ.map"],"mappings":"A,oNAGG,SAAwBgB,EAAW,EAAM,CAAC,GAAK,CAACC,EAAUC,GAAclB,EAAe,CAAC,GAAM,GAAM,GAAM,EAAK,CAAC,EAAO,CAACmB,EAASC,GAAapB,EAAe,EAAK,EAAES,MAAoB,CAAC,IAAMY,MAAepB,MAA0BmB,EAAYhB,EAAO,YAAY,GAAG,CAAC,EAA4D,OAA1DiB,EAAW,EAAEjB,EAAO,iBAAiB,SAASiB,CAAU,MAAYjB,EAAO,oBAAoB,SAASiB,CAAU,CAAE,EAAE,CAAC,CAAC,EAAE,IAAMC,EAAMC,EAAM,OAAO,OAAOA,EAAM,MAAM,CAAC,CAAC,SAASA,EAAM,UAAU,OAAOA,EAAM,OAAO,EAAE,CAAC,SAASA,EAAM,UAAU,OAAOA,EAAM,OAAO,EAAE,CAAC,SAASA,EAAM,UAAU,OAAOA,EAAM,OAAO,EAAE,CAAC,SAASA,EAAM,UAAU,OAAOA,EAAM,OAAO,CAAC,EAAQC,EAAgBL,EAAS,GAAG,GAAG,MAAoB,gBAAK,UAAU,CAAC,aAAa,6BAA6B,MAAM,CAAC,SAAS,WAAW,M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