{"version":3,"file":"InfoSelector.FbfluDQW.mjs","names":["useState"],"sources":["https:/framerusercontent.com/modules/FcwjIbbCyEKICux6NtFA/Wf7WIjNR3B7tTFC3mWBv/InfoSelector.js"],"sourcesContent":["// Info Selector component with hover image preview and active state indication\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{useState}from\"react\";import{addPropertyControls,ControlType}from\"framer\";/**\n * Info Selector\n *\n * @framerIntrinsicWidth 400\n * @framerIntrinsicHeight 300\n *\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n */export default function InfoSelector(props){const{items,activeOpacity=1,inactiveOpacity=.3,dotColor=\"#000000\",dotSize=6,gap=16,importantGap=12,importantFont,practicalFont}=props;const[hoveredIndex,setHoveredIndex]=useState(null);const defaultImage={src:\"https://framerusercontent.com/images/GfGkADagM4KEibNcIiRUWlfrR0.jpg\",alt:\"Default Image\"};return /*#__PURE__*/_jsxs(\"div\",{style:{...props.style,position:\"relative\",display:\"flex\",alignItems:\"flex-start\",gap:40,width:\"100%\",height:\"100%\",overflow:\"hidden\"},children:[/*#__PURE__*/_jsx(\"div\",{style:{display:\"flex\",flexDirection:\"column\",overflow:\"hidden\",justifyContent:\"center\",height:\"100%\"},children:items.map((item,index)=>{const isHovered=hoveredIndex===index;// When hovering: hovered item gets full opacity, all others (including active) get low opacity\n// When not hovering: active items get activeOpacity, inactive get inactiveOpacity\nlet opacity;if(hoveredIndex!==null){opacity=isHovered?activeOpacity:inactiveOpacity;}else{opacity=item.isActive?activeOpacity:inactiveOpacity;}// Check if we need to add extra gap (between important and practical)\nconst prevItem=index>0?items[index-1]:null;const needsExtraGap=prevItem&&prevItem.hierarchy===\"important\"&&item.hierarchy===\"practical\";// Determine which gap to use based on current item's hierarchy\nconst currentGap=item.hierarchy===\"important\"?importantGap:gap;return /*#__PURE__*/_jsxs(\"a\",{href:item.link||\"#\",style:{display:\"flex\",alignItems:\"center\",cursor:\"pointer\",opacity:opacity,transition:\"opacity 0.2s ease\",paddingTop:index===0?0:currentGap/2,paddingBottom:currentGap/2,paddingRight:12,marginTop:needsExtraGap?15:0,textDecoration:\"none\",color:\"inherit\"},onMouseEnter:()=>setHoveredIndex(index),onMouseLeave:()=>setHoveredIndex(null),children:[/*#__PURE__*/_jsx(\"div\",{style:{width:dotSize,height:dotSize,borderRadius:\"50%\",backgroundColor:dotColor,opacity:isHovered?1:0,flexShrink:0,marginRight:4}}),/*#__PURE__*/_jsx(\"span\",{style:{...item.hierarchy===\"important\"?importantFont:practicalFont,margin:0,whiteSpace:\"nowrap\"},children:item.label})]},index);})}),hoveredIndex!==null&&items[hoveredIndex]?.image?.src&&/*#__PURE__*/_jsx(\"div\",{style:{height:\"100%\",aspectRatio:\"3 / 4\",flexShrink:0,overflow:\"hidden\"},children:/*#__PURE__*/_jsx(\"img\",{src:items[hoveredIndex].image.src,alt:items[hoveredIndex].image.alt||\"Preview\",style:{width:\"100%\",height:\"100%\",objectFit:\"contain\"}})})]});}addPropertyControls(InfoSelector,{items:{type:ControlType.Array,title:\"Items\",control:{type:ControlType.Object,controls:{label:{type:ControlType.String,title:\"Label\",defaultValue:\"Item\"},hierarchy:{type:ControlType.Enum,title:\"Hierarchy\",options:[\"important\",\"practical\"],optionTitles:[\"Important\",\"Practical\"],defaultValue:\"important\",displaySegmentedControl:true},image:{type:ControlType.ResponsiveImage,title:\"Image\"},isActive:{type:ControlType.Boolean,title:\"Active\",defaultValue:false,enabledTitle:\"Yes\",disabledTitle:\"No\"},link:{type:ControlType.Link,title:\"Link\"}}},defaultValue:[{label:\"CONTACT\",hierarchy:\"important\",image:{src:\"https://framerusercontent.com/images/GfGkADagM4KEibNcIiRUWlfrR0.jpg\",alt:\"Contact Image\"},isActive:false,link:\"\"},{label:\"FAQ\",hierarchy:\"important\",image:{src:\"https://framerusercontent.com/images/aNsAT3jCvt4zglbWCUoFe33Q.jpg\",alt:\"FAQ Image\"},isActive:true,link:\"\"},{label:\"PRIVACY\",hierarchy:\"practical\",image:{src:\"https://framerusercontent.com/images/BYnxEV1zjYb9bhWh1IwBZ1ZoS60.jpg\",alt:\"Privacy Image\"},isActive:false,link:\"\"},{label:\"COOKIE\",hierarchy:\"practical\",image:{src:\"https://framerusercontent.com/images/2uTNEj5aTl2K3NJaEFWMbnrA.jpg\",alt:\"Cookie Image\"},isActive:false,link:\"\"},{label:\"CONDITIONS\",hierarchy:\"practical\",image:{src:\"https://framerusercontent.com/images/f9RiWoNpmlCMqVRIHz8l8wYfeI.jpg\",alt:\"Conditions Image\"},isActive:false,link:\"\"}]},activeOpacity:{type:ControlType.Number,title:\"Active Opacity\",defaultValue:1,min:0,max:1,step:.1},inactiveOpacity:{type:ControlType.Number,title:\"Inactive Opacity\",defaultValue:.3,min:0,max:1,step:.1},dotColor:{type:ControlType.Color,title:\"Dot Color\",defaultValue:\"#000000\"},dotSize:{type:ControlType.Number,title:\"Dot Size\",defaultValue:6,min:2,max:20,step:1,unit:\"px\"},gap:{type:ControlType.Number,title:\"Item Gap\",defaultValue:16,min:0,max:50,step:1,unit:\"px\"},importantGap:{type:ControlType.Number,title:\"Important Gap\",defaultValue:12,min:0,max:50,step:1,unit:\"px\"},importantFont:{type:ControlType.Font,title:\"Important Font\",defaultValue:{fontSize:\"22px\",variant:\"Semibold\",letterSpacing:\"-0.01em\",lineHeight:\"1.2em\"},controls:\"extended\",defaultFontType:\"sans-serif\"},practicalFont:{type:ControlType.Font,title:\"Practical Font\",defaultValue:{fontSize:\"15px\",variant:\"Medium\",letterSpacing:\"-0.01em\",lineHeight:\"1.3em\"},controls:\"extended\",defaultFontType:\"sans-serif\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"InfoSelector\",\"slots\":[],\"annotations\":{\"framerIntrinsicWidth\":\"400\",\"framerIntrinsicHeight\":\"300\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"any-prefer-fixed\",\"framerSupportedLayoutWidth\":\"any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