{"version":3,"file":"FAQSection.iCcWKfFK.mjs","names":["useState"],"sources":["https:/framerusercontent.com/modules/tQb0zmObJea9ta4LtWYU/QuhC3LKOAdIEdIdKTaJR/FAQSection.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{useState,startTransition}from\"react\";import{addPropertyControls,ControlType}from\"framer\";/**\n * FAQ Section Component\n * An accordion-style FAQ section with expandable questions and answers\n *\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight auto\n */export default function FAQSection(props){const{items,backgroundColor,questionColor,answerColor,borderColor,accentColor,questionFont,answerFont,allowMultipleOpen,itemGap,containerPadding,itemPadding}=props;const[openItems,setOpenItems]=useState(new Set([0]));const toggleItem=index=>{startTransition(()=>{setOpenItems(prev=>{const newSet=new Set(prev);if(newSet.has(index)){newSet.delete(index);}else{if(!allowMultipleOpen){newSet.clear();}newSet.add(index);}return newSet;});});};return /*#__PURE__*/_jsx(\"div\",{style:{width:\"100%\",backgroundColor,padding:`${containerPadding}px`,display:\"flex\",flexDirection:\"column\",gap:`${itemGap}px`},children:items.map((item,index)=>{const isOpen=openItems.has(index);return /*#__PURE__*/_jsxs(\"div\",{style:{borderBottom:`1px solid ${borderColor}`,paddingBottom:`${itemPadding}px`},children:[/*#__PURE__*/_jsxs(\"button\",{onClick:()=>toggleItem(index),style:{width:\"100%\",display:\"flex\",justifyContent:\"space-between\",alignItems:\"center\",background:\"none\",border:\"none\",padding:\"0\",cursor:\"pointer\",textAlign:\"left\",gap:\"16px\"},\"aria-expanded\":isOpen,children:[/*#__PURE__*/_jsx(\"span\",{style:{color:questionColor,flex:1,...questionFont},children:item.question}),/*#__PURE__*/_jsx(\"svg\",{width:\"24\",height:\"24\",viewBox:\"0 0 24 24\",fill:\"none\",style:{flexShrink:0,transform:isOpen?\"rotate(180deg)\":\"rotate(0deg)\",transition:\"transform 0.3s ease\"},children:/*#__PURE__*/_jsx(\"path\",{d:\"M6 9L12 15L18 9\",stroke:accentColor,strokeWidth:\"2\",strokeLinecap:\"round\",strokeLinejoin:\"round\"})})]}),/*#__PURE__*/_jsx(\"div\",{style:{display:\"grid\",gridTemplateRows:isOpen?\"1fr\":\"0fr\",transition:\"grid-template-rows 0.3s ease\"},children:/*#__PURE__*/_jsx(\"div\",{style:{overflow:\"hidden\"},children:/*#__PURE__*/_jsx(\"p\",{style:{color:answerColor,margin:`${itemPadding}px 0 0 0`,...answerFont},children:item.answer})})})]},index);})});}addPropertyControls(FAQSection,{items:{type:ControlType.Array,control:{type:ControlType.Object,controls:{question:{type:ControlType.String,defaultValue:\"What is your question?\",displayTextArea:true},answer:{type:ControlType.String,defaultValue:\"This is the answer to your question.\",displayTextArea:true}}},defaultValue:[{question:\"What is the EU Cyber Resilience Act?\",answer:\"The CRA is an EU regulation establishing mandatory cybersecurity requirements for products with digital elements sold in the European Union. It covers hardware and software, requiring secure-by-design development, vulnerability handling, and ongoing security updates throughout the product lifecycle.\"},{question:\"When does the CRA take effect?\",answer:\"The CRA entered into force in December 2024. Vulnerability reporting obligations begin in September 2026, and full application of all requirements starts in December 2027.\"},{question:\"Is SaaS covered by the CRA?\",answer:\"Pure SaaS is generally outside the CRA's direct scope, but software components and remote data processing solutions intended to support a product with digital elements are covered. The line is nuanced and depends on whether the software is integral to the product's function.\"},{question:\"What SBOM format does the CRA require?\",answer:\"The CRA requires SBOMs in a commonly used machine-readable format. CycloneDX and SPDX are the two industry-standard formats that meet this requirement and are supported by Interlynk out of the box.\"},{question:\"Is open-source software exempt from the CRA?\",answer:\"Non-commercial open-source software is exempt. However, open-source components integrated into commercial products are not — manufacturers remain responsible for the security of all components they ship, including open-source dependencies.\"},{question:\"What are the penalties for CRA non-compliance?\",answer:\"Penalties can reach up to €15 million or 2.5% of global annual turnover, whichever is higher, for the most serious violations. Lesser breaches carry lower but still substantial fines.\"},{question:\"How does the CRA differ from NIS2?\",answer:\"NIS2 targets operators of essential and important services, focusing on organizational cybersecurity. The CRA targets products themselves, regulating manufacturers of hardware and software placed on the EU market.\"},{question:\"Do US companies need to comply with the CRA?\",answer:\"Yes. Any company — regardless of headquarters location — that places products with digital elements on the EU market must comply with the CRA. Non-EU manufacturers typically appoint an EU-based authorized representative.\"}]},backgroundColor:{type:ControlType.Color,title:\"Background\",defaultValue:\"#FFFFFF\"},questionColor:{type:ControlType.Color,title:\"Question Color\",defaultValue:\"#000000\"},answerColor:{type:ControlType.Color,title:\"Answer Color\",defaultValue:\"#000000\"},borderColor:{type:ControlType.Color,title:\"Border Color\",defaultValue:\"#EEEEEE\"},accentColor:{type:ControlType.Color,title:\"Accent Color\",defaultValue:\"#000000\"},questionFont:{type:ControlType.Font,title:\"Question Font\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:\"22px\",variant:\"Semibold\",letterSpacing:\"-0.01em\",lineHeight:\"1.2em\"}},answerFont:{type:ControlType.Font,title:\"Answer Font\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:\"15px\",variant:\"Medium\",letterSpacing:\"-0.01em\",lineHeight:\"1.3em\"}},allowMultipleOpen:{type:ControlType.Boolean,title:\"Multiple Open\",defaultValue:false,enabledTitle:\"Yes\",disabledTitle:\"No\"},itemGap:{type:ControlType.Number,title:\"Item Gap\",defaultValue:16,min:0,max:100,step:1,unit:\"px\"},containerPadding:{type:ControlType.Number,title:\"Container Padding\",defaultValue:40,min:0,max:100,step:1,unit:\"px\"},itemPadding:{type:ControlType.Number,title:\"Item Padding\",defaultValue:16,min:0,max:50,step:1,unit:\"px\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"FAQSection\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"auto\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./FAQSection.map"],"mappings":"oLAMG,SAAwB,EAAW,EAAM,CAA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