{"version":3,"file":"FAQAccordion.DhzT8mss.mjs","names":["useState","useRef","__esmMin","_e","de","init_jsx_runtime","c","p","init_npm_react_18_3_1","ce","init_framer_DcGZRLrs","addPropertyControls","ControlType","AccordionItem","open","setOpen","height","setHeight","contentRef","id","index","el","measure","ro","item","props","FAQAccordion","items","DEFAULT_ITEMS","i","init_FAQAccordion"],"sources":["https:/framerusercontent.com/modules/2PdtoQjYHDxtklZVcnS5/DZc8IVymu2zpwmFRzgHH/FAQAccordion.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import{useState,useRef,useEffect}from\"react\";const DEFAULT_ITEMS=[{question:\"Is there an annual contract or monthly minimum?\",answer:\"No annual contract is required, and there are no monthly minimums. You pay each module’s per-item price only for the items MABLE handles. If your agency needs an annual agreement for procurement, annual agreements are available at the same per-item prices.\"},{question:\"How do we control costs, and can we switch packages or combine modules?\",answer:\"You can set an optional monthly or annual usage cap (with alerts at 75%, 90% and 100%, where new items pause until the cap is adjusted or the next billing cycle begins). You can also switch service packages from the next monthly bill and combine modules freely—for example, Invoices on Core with Work Orders on Starter.\"},{question:\"Who does the work, and what if something is wrong?\",answer:\"The MABLE team is all US-based (headquartered in Arlington, VA, with a satellite office in Charlotte, NC). MABLE uses its own software to offer fully managed services at a fraction of normal costs, while approval stays with your staff. Most actions are completed from start to finish in under 5 minutes. If we get something wrong, we fix it free, and the fix doesn’t count toward your usage.\"},{question:\"Does MABLE work with our current system, and who owns our data?\",answer:\"MABLE can connect to or migrate data into your existing system (Yardi, Tenmast, MRI, Emphasys and others), depending on your current technical setup. You own your data at all times: while your subscription stays active, MABLE retains your records for up to 5 years, you can export at any time, and if you cancel, we package and export your data within 30 days.\"}];function AccordionItem({item,index,props}){const[open,setOpen]=useState(false);const[height,setHeight]=useState(0);const contentRef=useRef(null);const id=`faq-panel-${index}`;useEffect(()=>{const el=contentRef.current;if(!el)return;const measure=()=>setHeight(el.scrollHeight);measure();if(typeof ResizeObserver!==\"undefined\"){const ro=new ResizeObserver(measure);ro.observe(el);return()=>ro.disconnect();}},[item.answer]);return /*#__PURE__*/_jsxs(\"div\",{style:{width:\"100%\",boxSizing:\"border-box\",border:`1px solid ${props.borderColor}`,borderRadius:props.radius,background:props.backgroundColor,overflow:\"hidden\"},children:[/*#__PURE__*/_jsxs(\"button\",{type:\"button\",\"aria-expanded\":open,\"aria-controls\":id,onClick:()=>setOpen(!open),style:{all:\"unset\",boxSizing:\"border-box\",width:\"100%\",display:\"flex\",alignItems:\"center\",justifyContent:\"space-between\",gap:16,cursor:\"pointer\",padding:`${props.paddingY}px ${props.paddingX}px`,fontFamily:props.fontFamily,fontSize:props.questionSize,fontWeight:props.questionWeight,lineHeight:1.3,letterSpacing:\"-0.01em\",color:props.questionColor},children:[/*#__PURE__*/_jsx(\"span\",{style:{flex:1},children:item.question}),/*#__PURE__*/_jsx(\"svg\",{width:\"20\",height:\"20\",viewBox:\"0 0 24 24\",fill:\"none\",stroke:props.chevronColor,strokeWidth:2,strokeLinecap:\"round\",strokeLinejoin:\"round\",\"aria-hidden\":\"true\",style:{flexShrink:0,transition:\"transform 0.3s ease\",transform:open?\"rotate(180deg)\":\"rotate(0deg)\"},children:/*#__PURE__*/_jsx(\"path\",{d:\"m6 9 6 6 6-6\"})})]}),/*#__PURE__*/_jsx(\"div\",{id:id,role:\"region\",style:{height:open?height:0,opacity:open?1:0,overflow:\"hidden\",transition:\"height 0.35s ease, opacity 0.3s ease\"},children:/*#__PURE__*/_jsx(\"div\",{ref:contentRef,style:{boxSizing:\"border-box\",padding:`0px ${props.paddingX}px ${props.paddingY}px ${props.paddingX}px`,fontFamily:props.fontFamily,fontSize:props.answerSize,lineHeight:props.answerLineHeight,fontWeight:400,letterSpacing:\"-0.02em\",color:props.answerColor,maxWidth:820},children:item.answer})})]});}/**\n * FAQ Accordion\n *\n * @framerIntrinsicWidth 800\n * @framerIntrinsicHeight 400\n *\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight auto\n */export default function FAQAccordion(props){const items=props.items&&props.items.length?props.items:DEFAULT_ITEMS;return /*#__PURE__*/_jsx(\"div\",{style:{...props.style,width:\"100%\",display:\"flex\",flexDirection:\"column\",gap:props.itemGap},children:items.map((item,i)=>/*#__PURE__*/_jsx(AccordionItem,{item:item,index:i,props:props},i))});}FAQAccordion.defaultProps={items:DEFAULT_ITEMS,fontFamily:\"Inter, sans-serif\",questionSize:18,questionWeight:600,questionColor:\"rgb(0, 55, 22)\",answerSize:16,answerLineHeight:1.5,answerColor:\"rgb(114, 123, 117)\",chevronColor:\"rgb(0, 137, 56)\",borderColor:\"rgb(220, 226, 221)\",backgroundColor:\"rgba(0, 0, 0, 0)\",radius:14,paddingY:22,paddingX:24,itemGap:12};addPropertyControls(FAQAccordion,{items:{type:ControlType.Array,title:\"Items\",control:{type:ControlType.Object,controls:{question:{type:ControlType.String,title:\"Question\"},answer:{type:ControlType.String,title:\"Answer\",displayTextArea:true}}},defaultValue:DEFAULT_ITEMS},fontFamily:{type:ControlType.String,title:\"Font\",defaultValue:\"Inter, sans-serif\"},questionSize:{type:ControlType.Number,title:\"Q Size\",defaultValue:18,min:10,max:40,unit:\"px\"},questionWeight:{type:ControlType.Enum,title:\"Q Weight\",defaultValue:600,options:[400,500,600,700,800],optionTitles:[\"400\",\"500\",\"600\",\"700\",\"800\"]},questionColor:{type:ControlType.Color,title:\"Q Color\",defaultValue:\"rgb(0, 55, 22)\"},answerSize:{type:ControlType.Number,title:\"A Size\",defaultValue:16,min:10,max:32,unit:\"px\"},answerLineHeight:{type:ControlType.Number,title:\"A Line H\",defaultValue:1.5,min:1,max:2.5,step:.05},answerColor:{type:ControlType.Color,title:\"A Color\",defaultValue:\"rgb(114, 123, 117)\"},chevronColor:{type:ControlType.Color,title:\"Chevron\",defaultValue:\"rgb(0, 137, 56)\"},borderColor:{type:ControlType.Color,title:\"Border\",defaultValue:\"rgb(220, 226, 221)\"},backgroundColor:{type:ControlType.Color,title:\"Fill\",defaultValue:\"rgba(0, 0, 0, 0)\"},radius:{type:ControlType.Number,title:\"Radius\",defaultValue:14,min:0,max:40,unit:\"px\"},paddingY:{type:ControlType.Number,title:\"Pad Y\",defaultValue:22,min:0,max:60,unit:\"px\"},paddingX:{type:ControlType.Number,title:\"Pad X\",defaultValue:24,min:0,max:60,unit:\"px\"},itemGap:{type:ControlType.Number,title:\"Gap\",defaultValue:12,min:0,max:60,unit:\"px\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"FAQAccordion\",\"slots\":[],\"annotations\":{\"framerIntrinsicWidth\":\"800\",\"framerSupportedLayoutHeight\":\"auto\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerIntrinsicHeight\":\"400\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./FAQAccordion.map"],"mappings":"A,+LAAqyD,SAASa,EAAc,CAAC,OAAK,QAAM,SAAO,CAAC,GAAK,CAACC,EAAKC,GAASf,EAAS,EAAK,EAAO,CAACgB,EAAOC,GAAWjB,EAAS,CAAC,EAAQkB,EAAWjB,EAAO,IAAI,EAAQkB,EAAG,aAAaC,IAAgQ,OAAxPX,MAAc,CAAC,IAAMY,EAAGH,EAAW,QAAQ,GAAG,CAACG,EAAG,OAAO,IAAMC,MAAYL,EAAUI,EAAG,YAAY,EAAY,GAAVC,EAAQ,EAAK,OAAO,eAAiB,IAAY,CAAC,IAAMC,EAAG,IAAI,eAAeD,CAAO,EAAiB,OAAfC,EAAG,QAAQF,CAAE,MAAYE,EAAG,WAAW,CAAE,CAAC,EAAE,CAACC,EAAK,MAAM,CAAC,EAAsB,gBAAM,MAAM,CAAC,MAAM,CAAC,MAAM,OAAO,UAAU,aAAa,OAAO,aAAaC,EAAM,cAAc,aAAaA,EAAM,OAAO,WAAWA,EAAM,gBAAgB,SAAS,QAAQ,EAAE,SAAS,CAA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