{"version":3,"file":"FAQAccordion.DBgCQ9GY.mjs","names":["React.Fragment","React.useState"],"sources":["https:/framerusercontent.com/modules/37LUzcJi5F6l5XlcCr2A/EUAcGpcypohuStaw5puh/FAQAccordion.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import*as React from\"react\";import{addPropertyControls,ControlType}from\"framer\";const FONT=\"'Cabinet Grotesk', Inter, sans-serif\";function renderInline(text,boldColor){const parts=text.split(/(\\*\\*[^*]+\\*\\*)/g).filter(p=>p.length>0);return parts.map((part,i)=>{if(part.startsWith(\"**\")&&part.endsWith(\"**\")){return /*#__PURE__*/_jsx(\"strong\",{style:{color:boldColor,fontWeight:600},children:part.slice(2,-2)},i);}return /*#__PURE__*/_jsx(React.Fragment,{children:part},i);});}function renderAnswer(text,boldColor,mapEmbedUrl){const blocks=String(text||\"\").split(/\\n\\s*\\n/).map(b=>b.trim()).filter(Boolean);return blocks.map((block,bi)=>{const bottom=bi===blocks.length-1?0:16;const lines=block.split(\"\\n\").map(l=>l.trim()).filter(Boolean);if(block===\"[MAP]\"){if(!mapEmbedUrl)return null;return /*#__PURE__*/_jsx(\"iframe\",{src:mapEmbedUrl,title:\"Delivery area map\",style:{width:\"100%\",height:320,border:0,borderRadius:8,marginBottom:bottom,display:\"block\"}},bi);}const isBulleted=lines.length>0&&lines.every(l=>l.startsWith(\"- \"));const isNumbered=lines.length>0&&lines.every(l=>/^\\d+\\.\\s/.test(l));if(isBulleted){return /*#__PURE__*/_jsx(\"ul\",{style:{margin:\"0 0 \"+bottom+\"px\",paddingLeft:18},children:lines.map((l,li)=>/*#__PURE__*/_jsx(\"li\",{style:{marginBottom:li<lines.length-1?8:0},children:renderInline(l.slice(2),boldColor)},li))},bi);}if(isNumbered){return /*#__PURE__*/_jsx(\"ol\",{style:{margin:\"0 0 \"+bottom+\"px\",paddingLeft:18},children:lines.map((l,li)=>/*#__PURE__*/_jsx(\"li\",{style:{marginBottom:li<lines.length-1?8:0},children:renderInline(l.replace(/^\\d+\\.\\s/,\"\"),boldColor)},li))},bi);}return /*#__PURE__*/_jsx(\"p\",{style:{margin:\"0 0 \"+bottom+\"px\"},children:lines.map((l,li)=>/*#__PURE__*/_jsxs(React.Fragment,{children:[li>0&&/*#__PURE__*/_jsx(\"br\",{}),renderInline(l,boldColor)]},li))},bi);});}/**\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight auto\n * @framerIntrinsicWidth 900\n * @framerIntrinsicHeight 520\n */export function FAQAccordion(props){const{kicker,headline,items,contentMaxWidth,background,kickerColor,headlineColor,questionColor,answerColor,answerBoldColor,lineColor,iconColor}=props;const list=Array.isArray(items)?items:[];const[openIndex,setOpenIndex]=React.useState(null);const toggle=i=>{setOpenIndex(current=>current===i?null:i);};return /*#__PURE__*/_jsx(\"div\",{style:{width:\"100%\",background,padding:\"64px 48px\",boxSizing:\"border-box\",fontFamily:FONT},children:/*#__PURE__*/_jsxs(\"div\",{style:{maxWidth:contentMaxWidth,margin:\"0 auto\"},children:[/*#__PURE__*/_jsxs(\"div\",{style:{marginBottom:48},children:[/*#__PURE__*/_jsx(\"div\",{style:{fontWeight:500,fontSize:12,letterSpacing:\"0.16em\",textTransform:\"uppercase\",color:kickerColor},children:kicker}),/*#__PURE__*/_jsx(\"div\",{style:{fontWeight:700,fontSize:52,letterSpacing:\"-0.032em\",lineHeight:1,color:headlineColor,marginTop:14},children:headline})]}),/*#__PURE__*/_jsx(\"div\",{children:list.map((item,i)=>{const open=openIndex===i;return /*#__PURE__*/_jsxs(\"div\",{children:[/*#__PURE__*/_jsxs(\"div\",{role:\"button\",tabIndex:0,\"aria-expanded\":open,onClick:()=>toggle(i),onKeyDown:e=>{if(e.key===\"Enter\"||e.key===\" \"){e.preventDefault();toggle(i);}},style:{display:\"flex\",alignItems:\"center\",justifyContent:\"space-between\",gap:24,padding:\"22px 0\",cursor:\"pointer\",userSelect:\"none\"},children:[/*#__PURE__*/_jsx(\"div\",{style:{fontWeight:600,fontSize:19,letterSpacing:\"-0.005em\",color:questionColor},children:item.question}),/*#__PURE__*/_jsx(\"div\",{\"aria-hidden\":\"true\",style:{flex:\"0 0 auto\",fontWeight:300,fontSize:24,lineHeight:1,color:iconColor,transform:open?\"rotate(45deg)\":\"rotate(0deg)\",transition:\"transform 0.25s ease\"},children:\"+\"})]}),/*#__PURE__*/_jsx(\"div\",{style:{display:\"grid\",gridTemplateRows:open?\"1fr\":\"0fr\",transition:\"grid-template-rows 0.3s ease\"},children:/*#__PURE__*/_jsx(\"div\",{style:{overflow:\"hidden\"},children:/*#__PURE__*/_jsx(\"div\",{style:{paddingBottom:22,paddingRight:60,fontWeight:400,fontSize:15,lineHeight:1.6,color:answerColor},children:renderAnswer(item.answer,answerBoldColor,item.mapEmbedUrl)})})}),/*#__PURE__*/_jsx(\"div\",{style:{height:1,background:lineColor}})]},i);})})]})});}FAQAccordion.defaultProps={kicker:\"Frequently Asked\",headline:\"Questions\",contentMaxWidth:1100,background:\"transparent\",kickerColor:\"#FF5C33\",headlineColor:\"rgba(18,17,16,0.78)\",questionColor:\"rgba(18,17,16,0.9)\",answerColor:\"rgba(18,17,16,0.6)\",answerBoldColor:\"rgba(18,17,16,0.85)\",lineColor:\"rgba(18,17,16,0.12)\",iconColor:\"rgba(18,17,16,0.85)\",items:[{question:\"What do I need to place an order?\",answer:\"Welcome to HERB DC! If you're a first-time donor, we have a simple two-step screening process to keep things safe for our drivers and for you.\\n\\n1. Take a picture of your 21+ photo ID\\n2. Take a selfie of yourself holding your 21+ photo ID\\n\\nText both to our dispatch line at (202) 649-0515, and a dispatcher will reach out to confirm your registration and order.\"},{question:\"Where do you deliver?\",answer:\"**We deliver to:**\\n\\n- Washington DC (Wards 1–6)\\n- Virginia — Arlington, Pentagon City, Alexandria, Falls Church, Lincolnia, Annandale, McLean, Springfield\\n- Maryland — Bladensburg, Hyattsville, College Park, Greater Landover, Silver Spring, Langley Park, Takoma Park, Bethesda\\n\\n[MAP]\\n\\n**Delivery fees:**\\n\\n- **For areas in red:** $10 delivery fee for orders under $100\\n- **For areas within the blue perimeter:** Fees and order minimums vary by location and distance — reach out for details\\n- **For areas around or past the 495 Beltway:** Text or call (202) 649-0515 to inquire about rates\",mapEmbedUrl:\"https://www.google.com/maps/d/embed?mid=1drozJWhZk8PRZVAa-pAtf3-NPFdbUE4&ehbc=2E312F&noprof=1\"},{question:\"Is there a minimum order requirement?\",answer:\"Delivery fees and order minimums vary based on location and distance — reach out for specifics.\"},{question:\"How do I place an order?\",answer:\"Add your items to your bag, then fill in your contact and delivery (or pickup) details at checkout. Once your order is placed, you'll get a text confirming it's on its way or ready for pickup.\\n\\nYou can also text your order directly to our dispatch line at (202) 649-0515.\"},{question:\"Do you offer same-day delivery?\",answer:\"Yes — our team gets every order to you as quickly as possible once it's placed.\\n\\n- Delays can happen during high-volume periods or heavy traffic. We'll keep you posted on any updates, and pickup is available as an alternative during busy times — reach out for the pickup location.\\n- Scheduled deliveries are handled first come, first served.\\n\\n**Note:** Our drivers don't carry cash — please have your exact donation amount ready.\"},{question:\"What forms of payment do you accept?\",answer:\"We accept cash on delivery.\"},{question:\"Do you offer discounts?\",answer:\"Yes! Check out our Daily Specials page for current deals.\"},{question:\"Can discounts be stacked together?\",answer:\"Deals and discounts can't be combined. Reach out to dispatch if you have questions.\"}]};addPropertyControls(FAQAccordion,{kicker:{type:ControlType.String,title:\"Kicker\"},headline:{type:ControlType.String,title:\"Headline\"},contentMaxWidth:{type:ControlType.Number,title:\"Content Width\",min:500,max:1600,step:10,description:\"Caps and centers the content so rows don't stretch thin on wide screens.\"},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,description:'Blank line = new paragraph. \"- \" starts a bullet. \"1. \" starts a numbered step. **text** goes bold. A line that\\'s just [MAP] embeds this item\\'s Map Embed URL there.'},mapEmbedUrl:{type:ControlType.String,title:\"Map Embed URL\",description:\"Optional. Only used where the answer has a line that's just [MAP].\"}}}},background:{type:ControlType.Color,title:\"Background\",description:\"Defaults to transparent so it sits on the page's own background.\"},kickerColor:{type:ControlType.Color,title:\"Kicker Color\"},headlineColor:{type:ControlType.Color,title:\"Headline Color\"},questionColor:{type:ControlType.Color,title:\"Question Color\"},answerColor:{type:ControlType.Color,title:\"Answer Color\"},answerBoldColor:{type:ControlType.Color,title:\"Answer Bold Color\",description:\"Used for **bold** text and sub-headers inside answers.\"},lineColor:{type:ControlType.Color,title:\"Line Color\"},iconColor:{type:ControlType.Color,title:\"Icon Color\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"FAQAccordion\":{\"type\":\"reactComponent\",\"name\":\"FAQAccordion\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"any\",\"framerIntrinsicHeight\":\"520\",\"framerIntrinsicWidth\":\"900\",\"framerSupportedLayoutHeight\":\"auto\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./FAQAccordion.map"],"mappings":"wLAA2L,SAAS,EAAa,EAAK,EAAU,CAAkE,OAArD,EAAK,MAAM,kBAAkB,CAAC,CAAC,OAAO,GAAG,EAAE,OAAO,CAAc,CAAC,CAAC,KAAK,EAAK,IAAQ,EAAK,WAAW,IAAI,GAAG,EAAK,SAAS,IAAI,EAAuB,EAAK,SAAS,CAAC,MAAM,CAAC,MAAM,EAAU,WAAW,GAAG,EAAE,SAAS,EAAK,MAAM,EAAE,EAAE,CAAC,EAAE,CAAC,EAAuB,EAAKA,EAAe,CAAC,SAAS,CAAI,EAAE,CAAC,CAAG,CAAE,CAAC,SAAS,EAAa,EAAK,EAAU,EAAY,CAAC,IAAM,EAAO,OAAO,GAAM,EAAE,CAAC,CAAC,MAAM,SAAS,CAAC,CAAC,IAAI,GAAG,EAAE,KAAK,CAAC,CAAC,CAAC,OAAO,OAAO,EAAE,OAAO,EAAO,KAAK,EAAM,IAAK,CAAC,IAAM,EAAO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