{"version":3,"file":"RightPanelNavBar.DCoIXpvK.mjs","names":["React.useState"],"sources":["https:/framerusercontent.com/modules/F5BO8jgGNmRxP7WTyGdX/bo6arbWvBKOvExhM81wN/RightPanelNavBar.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import*as React from\"react\";import{motion}from\"framer-motion\";import{addPropertyControls,ControlType}from\"framer\";//\n// Hover variants\n//\nconst hoverVariants={parent:{backgroundColor:\"rgba(0, 90, 200, 0.08)\",scale:1.02},child:{backgroundColor:\"rgba(0, 90, 200, 0.05)\",scale:1.03}};//\n// Component\n//\nexport default function ServicesAccordion({sections,// Font props\nfontFamily,fontSize,lineHeight,textColor,activeColor,parentFontWeight,activeFontWeight}){const[openIndex,setOpenIndex]=React.useState(null);// Auto-open parents\nReact.useEffect(()=>{sections?.forEach((sec,i)=>{if(sec.children?.length&&(sec.isActive||sec.isExpanded)){setOpenIndex(i);}});},[sections]);const handleParentClick=(section,index)=>{const hasChildren=section.children?.length>0;if(section.isActive)return;if(hasChildren){setOpenIndex(openIndex===index?null:index);if(section.linkTo)window.location.href=section.linkTo;return;}if(section.linkTo)window.location.href=section.linkTo;};const handleChildClick=child=>{if(child.isActive)return;if(child.linkTo)window.location.href=child.linkTo;};return /*#__PURE__*/_jsx(\"div\",{style:{...styles.wrapper,fontFamily,fontSize,lineHeight:`${lineHeight}px`,color:textColor},children:(sections??[]).map((section,index)=>{const hasChildren=section.children?.length>0;const isOpen=openIndex===index;return /*#__PURE__*/_jsxs(\"div\",{style:styles.section,children:[/*#__PURE__*/_jsxs(motion.div,{style:{...styles.parentRow,fontWeight:parentFontWeight,...section.isActive?{fontWeight:activeFontWeight,color:activeColor,cursor:\"default\"}:{}},onClick:()=>handleParentClick(section,index),whileHover:section.isActive?false:hoverVariants.parent,transition:{duration:.25},children:[/*#__PURE__*/_jsx(\"span\",{style:styles.bullet,children:\"•\"}),/*#__PURE__*/_jsx(\"span\",{style:styles.flex,children:section.title}),hasChildren&&/*#__PURE__*/_jsx(\"span\",{style:styles.chevron,children:isOpen?\"▾\":\"▸\"})]}),hasChildren&&isOpen&&/*#__PURE__*/_jsx(\"div\",{style:styles.childrenContainer,children:section.children.map((child,cIndex)=>/*#__PURE__*/_jsxs(motion.div,{style:{...styles.childRow,...child.isActive?{fontWeight:activeFontWeight,color:activeColor,cursor:\"default\"}:{}},onClick:()=>handleChildClick(child),whileHover:child.isActive?false:hoverVariants.child,transition:{duration:.25},children:[/*#__PURE__*/_jsx(\"span\",{style:styles.childBullet,children:\"•\"}),child.title]},cIndex))}),/*#__PURE__*/_jsx(\"div\",{style:styles.separator})]},index);})});}//\n// Static styles (no font settings here)\n//\nconst styles={wrapper:{width:\"100%\"},section:{width:\"100%\"},parentRow:{display:\"flex\",alignItems:\"center\",padding:\"8px 0\",cursor:\"pointer\"},childRow:{display:\"flex\",alignItems:\"center\",padding:\"4px 0\",cursor:\"pointer\"},bullet:{marginRight:8},childBullet:{marginRight:6},flex:{flexGrow:1},chevron:{fontSize:12},childrenContainer:{paddingLeft:24,paddingTop:4},separator:{margin:\"8px 0\",height:1,backgroundColor:\"#e5e5e5\"}};//\n// Property Controls\n//\naddPropertyControls(ServicesAccordion,{sections:{type:ControlType.Array,title:\"Sections\",propertyControl:{type:ControlType.Object,controls:{title:{type:ControlType.String,title:\"Title\"},linkTo:{type:ControlType.Link,title:\"Link\"},isActive:{type:ControlType.Boolean,title:\"Active\",defaultValue:false},isExpanded:{type:ControlType.Boolean,title:\"Expanded\",defaultValue:false},children:{type:ControlType.Array,title:\"Children\",propertyControl:{type:ControlType.Object,controls:{title:{type:ControlType.String,title:\"Title\"},linkTo:{type:ControlType.Link,title:\"Link\"},isActive:{type:ControlType.Boolean,title:\"Active\",defaultValue:false}}}}}}},fontFamily:{type:ControlType.String,title:\"Font\",defaultValue:\"Satoshi\"},fontSize:{type:ControlType.Number,title:\"Font Size\",defaultValue:18,min:10,max:40,unit:\"px\"},lineHeight:{type:ControlType.Number,title:\"Line Height\",defaultValue:22,min:12,max:60,unit:\"px\"},textColor:{type:ControlType.Color,title:\"Text Color\",defaultValue:\"#333333\"},activeColor:{type:ControlType.Color,title:\"Active Color\",defaultValue:\"#0059b3\"},parentFontWeight:{type:ControlType.Number,title:\"Parent Weight\",defaultValue:500,min:100,max:900,step:100},activeFontWeight:{type:ControlType.Number,title:\"Active Weight\",defaultValue:700,min:100,max:900,step:100}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"ServicesAccordion\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./RightPanelNavBar.map"],"mappings":"uPAMA,SAAwB,EAAkB,CAAC,WAC3C,aAAW,WAAS,aAAW,YAAU,cAAY,mBAAiB,oBAAkB,CAAC,GAAK,CAAC,EAAU,GAAcA,EAAe,KAAK,CAC3I,MAAoB,CAAC,GAAU,SAAS,EAAI,IAAI,CAAI,EAAI,UAAU,SAAS,EAAI,UAAU,EAAI,aAAa,EAAa,EAAE,EAAI,EAAG,CAAC,EAAS,CAAC,CAAC,IAAM,GAAmB,EAAQ,IAAQ,CAAC,IAAM,EAAY,EAAQ,UAAU,OAAO,EAAK,MAAQ,SAAgB,IAAG,EAAY,CAAC,EAAa,IAAY,EAAM,KAAK,EAAM,CAAI,EAAQ,SAAO,EAAO,SAAS,KAAK,EAAQ,QAAO,OAAW,EAAQ,SAAO,EAAO,SAAS,KAAK,EAAQ,UAAe,EAAiB,GAAO,CAAI,EAAM,UAAmB,EAAM,SAAO,EAAO,SAAS,KAAK,EAAM,SAAS,OAAoB,EAAK,MAAM,CAAC,MAAM,CAAC,GAAG,EAAO,QAAQ,aAAW,WAAS,WAAW,GAAG,EAAW,IAAI,MAAM,EAAU,CAAC,UAAU,GAAU,EAAE,EAAE,KAAK,EAAQ,IAAQ,CAAC,IAAM,EAAY,EAAQ,UAAU,OAAO,EAAQ,EAAO,IAAY,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