{"version":3,"file":"Dynamic_Fill_Nav_2.19bRHcH6.mjs","names":["useState","useCallback"],"sources":["https:/framerusercontent.com/modules/GQkQIfcwQPx7kvcYo5nI/9DUPdNUwt8BU1Hl8K6gm/Dynamic_Fill_Nav_2.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{useState,useCallback}from\"react\";import{motion,AnimatePresence}from\"framer-motion\";import{addPropertyControls,ControlType}from\"framer\";/**\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n */export default function DynamicFillNav(props){const{items=[{text:\"RYLAN GLADSON\",numberLabel:\"001\",linkTo:\"\"}],direction=\"vertical\",gap=0,alignment=\"center\",baseFont,baseFontSize=120,baseColor=\"#FD7122\",strokeWidth=2,letterSpacing=\"-0.02em\",lineHeight=\"0.9em\",hoverDuration=.6,hoverEasing=\"easeOut\",labelFont,labelFontSize=24,labelColor=\"#FD7122\",labelStroke=false,labelOffsetX=50,labelOffsetY=20,style}=props;const[hoveredIndex,setHoveredIndex]=useState(null);const handleItemClick=useCallback(linkTo=>{if(typeof window!==\"undefined\"&&linkTo){if(linkTo.startsWith(\"http\")){window.open(linkTo,\"_blank\");}else{window.location.href=linkTo;}}},[]);const getEasing=easingType=>{switch(easingType){case\"easeIn\":return\"easeIn\";case\"easeOut\":return\"easeOut\";case\"easeInOut\":return\"easeInOut\";default:return\"easeOut\";}};const containerStyle={display:\"flex\",flexDirection:direction===\"vertical\"?\"column\":\"row\",gap:`${gap}px`,alignItems:alignment===\"left\"?\"flex-start\":alignment===\"right\"?\"flex-end\":\"center\",justifyContent:\"center\",width:\"100%\",height:\"100%\",position:\"relative\",...style};return /*#__PURE__*/_jsx(\"div\",{style:containerStyle,children:items.map((item,index)=>/*#__PURE__*/_jsx(NavigationItem,{text:item.text,numberLabel:item.numberLabel,linkTo:item.linkTo,isHovered:hoveredIndex===index,onHover:()=>setHoveredIndex(index),onLeave:()=>setHoveredIndex(null),onClick:()=>handleItemClick(item.linkTo),baseFont:baseFont,baseFontSize:baseFontSize,baseColor:baseColor,strokeWidth:strokeWidth,letterSpacing:letterSpacing,lineHeight:lineHeight,hoverDuration:hoverDuration,hoverEasing:hoverEasing,labelFont:labelFont,labelFontSize:labelFontSize,labelColor:labelColor,labelStroke:labelStroke,labelOffsetX:labelOffsetX,labelOffsetY:labelOffsetY},index))});}function NavigationItem({text,numberLabel,linkTo,isHovered,onHover,onLeave,onClick,baseFont,baseFontSize,baseColor,strokeWidth,letterSpacing,lineHeight,hoverDuration,hoverEasing,labelFont,labelFontSize,labelColor,labelStroke,labelOffsetX,labelOffsetY}){const getEasing=easingType=>{switch(easingType){case\"easeIn\":return\"easeIn\";case\"easeOut\":return\"easeOut\";case\"easeInOut\":return\"easeInOut\";default:return\"easeOut\";}};const textStyle={fontSize:`${baseFontSize}px`,fontWeight:\"bold\",letterSpacing,lineHeight,margin:0,padding:0,position:\"relative\",cursor:linkTo?\"pointer\":\"default\",userSelect:\"none\",...baseFont};const labelStyle={position:\"absolute\",top:`${labelOffsetY}px`,right:`${-labelOffsetX}px`,fontSize:`${labelFontSize}px`,fontWeight:\"normal\",color:labelColor,WebkitTextStroke:labelStroke?`1px ${labelColor}`:\"none\",WebkitTextFillColor:labelStroke?\"transparent\":labelColor,pointerEvents:\"none\",...labelFont};return /*#__PURE__*/_jsxs(\"div\",{style:{position:\"relative\",display:\"inline-block\"},onMouseEnter:onHover,onMouseLeave:onLeave,onClick:onClick,children:[/*#__PURE__*/_jsxs(\"div\",{style:{position:\"relative\",overflow:\"hidden\"},children:[/*#__PURE__*/_jsx(\"div\",{style:{...textStyle,WebkitTextStroke:`${strokeWidth}px ${baseColor}`,WebkitTextFillColor:\"transparent\",color:\"transparent\"},children:text}),/*#__PURE__*/_jsx(motion.div,{style:{...textStyle,position:\"absolute\",top:0,left:0,color:baseColor,WebkitTextFillColor:baseColor,clipPath:\"inset(100% 0 0 0)\"},animate:{clipPath:isHovered?\"inset(0% 0 0 0)\":\"inset(100% 0 0 0)\"},transition:{duration:hoverDuration,ease:getEasing(hoverEasing)},children:text})]}),/*#__PURE__*/_jsx(AnimatePresence,{children:isHovered&&/*#__PURE__*/_jsx(motion.div,{style:labelStyle,initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:10},transition:{duration:hoverDuration*.8,ease:getEasing(hoverEasing)},children:numberLabel})})]});}addPropertyControls(DynamicFillNav,{items:{type:ControlType.Array,title:\"Navigation Items\",control:{type:ControlType.Object,controls:{text:{type:ControlType.String,title:\"Text\",defaultValue:\"ITEM\"},numberLabel:{type:ControlType.String,title:\"Number Label\",defaultValue:\"01\"},linkTo:{type:ControlType.Link,title:\"Link To\"}}},defaultValue:[{text:\"RYLAN GLADSON\",numberLabel:\"001\",linkTo:\"\"}]},direction:{type:ControlType.Enum,title:\"Direction\",options:[\"vertical\",\"horizontal\"],optionTitles:[\"Vertical\",\"Horizontal\"],defaultValue:\"vertical\",displaySegmentedControl:true},gap:{type:ControlType.Number,title:\"Gap\",defaultValue:0,min:0,max:100,step:1,unit:\"px\"},alignment:{type:ControlType.Enum,title:\"Alignment\",options:[\"left\",\"center\",\"right\"],optionTitles:[\"Left\",\"Center\",\"Right\"],defaultValue:\"center\",displaySegmentedControl:true},baseFont:{type:ControlType.Font,title:\"Base Font\",defaultValue:{fontSize:\"120px\",variant:\"Bold\",letterSpacing:\"-0.02em\",lineHeight:\"0.9em\"},controls:\"extended\",defaultFontType:\"sans-serif\"},baseColor:{type:ControlType.Color,title:\"Text Color\",defaultValue:\"#FD7122\"},strokeWidth:{type:ControlType.Number,title:\"Stroke Width\",defaultValue:2,min:1,max:10,step:.5,unit:\"px\"},hoverDuration:{type:ControlType.Number,title:\"Hover Duration\",defaultValue:.6,min:.1,max:2,step:.1,unit:\"s\"},hoverEasing:{type:ControlType.Enum,title:\"Hover Easing\",options:[\"easeOut\",\"easeIn\",\"easeInOut\"],optionTitles:[\"Ease Out\",\"Ease In\",\"Ease In Out\"],defaultValue:\"easeOut\"},labelFont:{type:ControlType.Font,title:\"Label Font\",defaultValue:{fontSize:\"24px\",variant:\"Regular\",letterSpacing:\"0em\",lineHeight:\"1em\"},controls:\"extended\",defaultFontType:\"sans-serif\"},labelColor:{type:ControlType.Color,title:\"Label Color\",defaultValue:\"#FD7122\"},labelStroke:{type:ControlType.Boolean,title:\"Label Style\",defaultValue:false,enabledTitle:\"Outline\",disabledTitle:\"Filled\"},labelOffsetX:{type:ControlType.Number,title:\"Label Offset X\",defaultValue:50,min:-50,max:100,step:1,unit:\"px\"},labelOffsetY:{type:ControlType.Number,title:\"Label Offset Y\",defaultValue:20,min:-100,max:50,step:1,unit:\"px\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"DynamicFillNav\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"any-prefer-fixed\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Dynamic_Fill_Nav_2.map"],"mappings":"8PAGG,SAAwB,EAAe,EAAM,CAAC,GAAK,CAAC,QAAM,CAAC,CAAC,KAAK,gBAAgB,YAAY,MAAM,OAAO,EAAE,CAAC,EAAE,YAAU,WAAW,MAAI,EAAE,YAAU,SAAS,WAAS,eAAa,IAAI,YAAU,UAAU,cAAY,EAAE,gBAAc,UAAU,aAAW,QAAQ,gBAAc,GAAG,cAAY,UAAU,YAAU,gBAAc,GAAG,aAAW,UAAU,cAAY,GAAM,eAAa,GAAG,eAAa,GAAG,SAAO,EAAW,CAAC,EAAa,GAAiBA,EAAS,IAAI,EAAQ,EAAgBC,EAAY,GAAQ,CAAW,IAAS,QAAa,IAAW,EAAO,WAAW,MAAM,EAAG,EAAO,KAAK,EAAO,QAAQ,EAAQ,EAAO,SAAS,KAAK,EAAS,EAAE,CAAC,CAAC,EAAqb,OAAoB,EAAK,MAAM,CA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