{"version":3,"file":"FAQSection.CS0KWeG2.mjs","names":["useState","__esmMin","init_npm_react_18_3_1","te","_e","p","c","init_jsx_runtime","AnimatePresence","init_framer_motion_DhsWWWsN","motion","ControlType","addPropertyControls","init_framer_BpuvUAiZ","FAQSection","props","openIndex","setOpenIndex","toggleItem","index","labelFont","labelColor","label","headingFont","headingColor","headingPart1","accentColor","headingPart2","items","isOpen","itemBackgroundColor","borderColor","questionFont","textColor","item","answerFont","answerColor","init_FAQSection"],"sources":["https:/framerusercontent.com/modules/JMZ1vugEZBYQxPp82NYu/gIhMRfFzTFfD7hY2td02/FAQSection.js"],"sourcesContent":["// Dark FAQ section with expandable accordion items\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{useState,startTransition}from\"react\";import{addPropertyControls,ControlType}from\"framer\";import{motion,AnimatePresence}from\"framer-motion\";/**\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight auto\n */export default function FAQSection(props){const{label,headingPart1,headingPart2,items,backgroundColor,itemBackgroundColor,labelColor,headingColor,accentColor,textColor,answerColor,borderColor,labelFont,headingFont,questionFont,answerFont}=props;const[openIndex,setOpenIndex]=useState(null);const toggleItem=index=>{startTransition(()=>{setOpenIndex(openIndex===index?null:index);});};return /*#__PURE__*/_jsx(\"div\",{style:{width:\"100%\",backgroundColor,padding:\"40px 40px\",display:\"flex\",flexDirection:\"column\",alignItems:\"center\"},children:/*#__PURE__*/_jsxs(\"div\",{style:{maxWidth:\"800px\",width:\"100%\",display:\"flex\",flexDirection:\"column\",gap:\"24px\"},children:[/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",flexDirection:\"column\",gap:\"16px\",alignItems:\"center\",textAlign:\"center\"},children:[/*#__PURE__*/_jsx(\"span\",{style:{...labelFont,color:labelColor,textTransform:\"uppercase\",letterSpacing:\"0.1em\"},children:label}),/*#__PURE__*/_jsxs(\"h2\",{style:{...headingFont,color:headingColor,margin:0},children:[headingPart1,\" \",/*#__PURE__*/_jsx(\"span\",{style:{color:accentColor,fontStyle:\"italic\"},children:headingPart2})]})]}),/*#__PURE__*/_jsx(\"div\",{style:{display:\"flex\",flexDirection:\"column\",gap:\"8px\"},children:items.map((item,index)=>{const isOpen=openIndex===index;return /*#__PURE__*/_jsxs(\"div\",{style:{backgroundColor:itemBackgroundColor,border:`1px solid ${borderColor}`,borderRadius:\"8px\",overflow:\"hidden\",cursor:\"pointer\"},onClick:()=>toggleItem(index),children:[/*#__PURE__*/_jsxs(\"div\",{style:{width:\"100%\",padding:\"16px\",display:\"flex\",justifyContent:\"space-between\",alignItems:\"center\",gap:\"16px\",backgroundColor:\"transparent\",textAlign:\"left\"},role:\"button\",\"aria-expanded\":isOpen,tabIndex:0,onKeyDown:e=>{if(e.key===\"Enter\"||e.key===\" \"){e.preventDefault();toggleItem(index);}},children:[/*#__PURE__*/_jsx(\"span\",{style:{...questionFont,color:textColor,flex:1},children:item.question}),/*#__PURE__*/_jsx(motion.div,{animate:{rotate:isOpen?45:0},transition:{duration:.2},style:{width:\"24px\",height:\"24px\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\",flexShrink:0},children:/*#__PURE__*/_jsx(\"svg\",{width:\"24\",height:\"24\",viewBox:\"0 0 24 24\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",children:/*#__PURE__*/_jsx(\"path\",{d:\"M12 5V19M5 12H19\",stroke:accentColor,strokeWidth:\"2\",strokeLinecap:\"round\"})})})]}),/*#__PURE__*/_jsx(AnimatePresence,{initial:false,children:isOpen&&/*#__PURE__*/_jsx(motion.div,{initial:{height:0,opacity:0},animate:{height:\"auto\",opacity:1},exit:{height:0,opacity:0},transition:{duration:.3},style:{overflow:\"hidden\"},children:/*#__PURE__*/_jsx(\"div\",{style:{padding:\"0 16px 16px 16px\",...answerFont,color:answerColor},children:item.answer})})})]},index);})})]})});}addPropertyControls(FAQSection,{label:{type:ControlType.String,title:\"Label\",defaultValue:\"VANLIGA FR\\xc5GOR\"},headingPart1:{type:ControlType.String,title:\"Heading Part 1\",defaultValue:\"Har du fr\\xe5gor? Vi har\"},headingPart2:{type:ControlType.String,title:\"Heading Part 2\",defaultValue:\"svaren\"},items:{type:ControlType.Array,title:\"FAQ Items\",control:{type:ControlType.Object,controls:{question:{type:ControlType.String,title:\"Question\",defaultValue:\"Hur l\\xe5ng tid tar det att komma ig\\xe5ng?\"},answer:{type:ControlType.String,title:\"Answer\",displayTextArea:true,defaultValue:\"Det tar vanligtvis 2-4 veckor fr\\xe5n avtalsteckning till att systemet \\xe4r fullt operativt. Vi hj\\xe4lper er genom hela processen.\"}}},defaultValue:[{question:\"Hur l\\xe5ng tid tar det att komma ig\\xe5ng?\",answer:\"Det tar vanligtvis 2-4 veckor fr\\xe5n avtalsteckning till att systemet \\xe4r fullt operativt. Vi hj\\xe4lper er genom hela processen.\"},{question:\"Beh\\xf6ver vi byta v\\xe5rt nuvarande system?\",answer:\"Nej, v\\xe5r l\\xf6sning integreras s\\xf6ml\\xf6st med era befintliga system. Vi arbetar tillsammans med era nuvarande verktyg.\"},{question:\"Vad h\\xe4nder om AI:n inte f\\xf6rst\\xe5r en kund?\",answer:\"Systemet eskalerar automatiskt till en m\\xe4nsklig medarbetare n\\xe4r det beh\\xf6vs. Vi s\\xe4kerst\\xe4ller att ingen kund l\\xe4mnas utan svar.\"},{question:\"\\xc4r systemet GDPR-kompatibelt?\",answer:\"Ja, v\\xe5rt system \\xe4r fullt GDPR-kompatibelt och all data lagras s\\xe4kert inom EU. Vi tar datas\\xe4kerhet p\\xe5 st\\xf6rsta allvar.\"},{question:\"Kan vi anpassa svaren efter v\\xe5r bilhandlare?\",answer:\"Absolut! Systemet tr\\xe4nas specifikt p\\xe5 er verksamhet, era bilar och era processer f\\xf6r att ge personliga och relevanta svar.\"},{question:\"Vad \\xe4r skillnaden mellan Basic och Standard?\",answer:\"Basic-paketet inkluderar grundl\\xe4ggande AI-funktioner, medan Standard erbjuder avancerad analys, prioriterad support och fler integrationer.\"}]},backgroundColor:{type:ControlType.Color,title:\"Background\",defaultValue:\"#0b1220\"},itemBackgroundColor:{type:ControlType.Color,title:\"Item Background\",defaultValue:\"#080d1a\"},labelColor:{type:ControlType.Color,title:\"Label Color\",defaultValue:\"#d4af37\"},headingColor:{type:ControlType.Color,title:\"Heading Color\",defaultValue:\"#c0c0c0\"},accentColor:{type:ControlType.Color,title:\"Accent Color\",defaultValue:\"#d4af37\"},textColor:{type:ControlType.Color,title:\"Question Color\",defaultValue:\"#f5f5dc\"},answerColor:{type:ControlType.Color,title:\"Answer Color\",defaultValue:\"#d3d3c5\"},borderColor:{type:ControlType.Color,title:\"Border Color\",defaultValue:\"#d4af37\"},labelFont:{type:ControlType.Font,title:\"Label Font\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:\"12px\",variant:\"Semibold\",letterSpacing:\"0.1em\",lineHeight:\"1em\"}},headingFont:{type:ControlType.Font,title:\"Heading Font\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:\"48px\",variant:\"Bold\",letterSpacing:\"-0.02em\",lineHeight:\"1.2em\"}},questionFont:{type:ControlType.Font,title:\"Question Font\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:\"18px\",variant:\"Medium\",letterSpacing:\"-0.01em\",lineHeight:\"1.4em\"}},answerFont:{type:ControlType.Font,title:\"Answer Font\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:\"16px\",variant:\"Regular\",letterSpacing:\"-0.01em\",lineHeight:\"1.6em\"}}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"FAQSection\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"auto\",\"framerSupportedLayoutWidth\":\"fixed\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./FAQSection.map"],"mappings":"A,gPAIG,SAAwBc,EAAW,EAAM,CAAC,GAAK,CAAC,QAA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