{"version":3,"file":"Copright.CkJSaT3X.mjs","names":["useState"],"sources":["https:/framerusercontent.com/modules/eNHMLdOi1iKSaYZSLZtS/rxbGm5i7FH6d9e8Plta7/Copright.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useState,useEffect}from\"react\";import{addPropertyControls,ControlType}from\"framer\";/**\n * @framerDisableUnlink\n *\n * @framerIntrinsicWidth 200\n * @framerIntrinsicHeight 200\n */export default function AutoCopyright(props){const{prefix,suffix,textAlign,font,fontSize,letterSpacing,lineHeight,color}=props;const[year,setYear]=useState(\"\");useEffect(()=>{const currentYear=new Date().getFullYear();setYear(currentYear.toString());},[]);const combinedText=`${prefix} ${year}${suffix?\" \"+suffix:\"\"}`;const justifyContent=textAlign===\"left\"?\"flex-start\":textAlign===\"right\"?\"flex-end\":\"center\";return /*#__PURE__*/_jsx(\"div\",{style:{display:\"flex\",alignItems:\"center\",justifyContent,height:\"100%\",width:\"100%\",color:color,fontFamily:font?.fontFamily,fontWeight:font?.fontWeight,fontSize,letterSpacing:`${letterSpacing}em`,lineHeight,textAlign},children:combinedText});}AutoCopyright.defaultProps={prefix:\"\\xa9\",suffix:\"LumenLab\",textAlign:\"center\",font:{fontFamily:\"Inter\",fontWeight:500},fontSize:14,letterSpacing:0,lineHeight:1.4,color:\"#000000\"};addPropertyControls(AutoCopyright,{prefix:{type:ControlType.String,title:\"Prefix\"},suffix:{type:ControlType.String,title:\"Suffix\"},textAlign:{type:ControlType.Enum,title:\"Align\",options:[\"left\",\"center\",\"right\"],optionTitles:[\"Left\",\"Center\",\"Right\"]},font:{type:ControlType.Font,title:\"Font\"},fontSize:{type:ControlType.Number,title:\"Font Size\",min:8,max:64,defaultValue:14},letterSpacing:{type:ControlType.Number,title:\"Letter Spacing\",min:-.5,max:2,step:.01},lineHeight:{type:ControlType.Number,title:\"Line Height\",min:.5,max:3,step:.1},color:{type:ControlType.Color,title:\"Color\",description:\"Find more at [DFS](https://x.com/densfs_)\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"AutoCopyright\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerIntrinsicHeight\":\"200\",\"framerIntrinsicWidth\":\"200\",\"framerDisableUnlink\":\"*\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Copright.map"],"mappings":"iLAKG,SAAwB,EAAc,EAAM,CAAC,GAAK,CAAC,SAAO,SAAO,YAAU,OAAK,WAAS,gBAAc,aAAW,SAAO,EAAW,CAAC,EAAK,GAASA,EAAS,EAAE,EAAE,MAAc,CAAC,IAAM,EAAY,IAAI,KAAK,CAAA,CAAE,YAAY,EAAE,EAAQ,EAAY,SAAS,CAAC,CAAE,EAAE,CAAC,CAAC,EAAE,IAAM,EAAa,GAAG,EAAO,GAAG,IAAO,EAAO,IAAI,EAAO,KAAkG,OAAoB,EAAK,MAAM,CAAC,MAAM,CAAC,QAAQ,OAAO,WAAW,SAAS,eAAlJ,IAAY,OAAO,aAAa,IAAY,QAAQ,WAAW,SAAkG,OAAO,OAAO,MAAM,OAAa,QAAM,WAAW,GAAM,WAAW,WAAW,GAAM,WAAW,WAAS,cAAc,GAAG,EAAc,IAAI,aAAW,WAAS,EAAE,SAAS,CAAY,CAAC,CAAE,iBALtoB,IAAsC,IAAoD,EAK6iB,EAAc,aAAa,CAAC,OAAO,IAAO,OAAO,WAAW,UAAU,SAAS,KAAK,CAAC,WAAW,QAAQ,WAAW,GAAG,EAAE,SAAS,GAAG,cAAc,EAAE,WAAW,IAAI,MAAM,SAAS,EAAE,EAAoB,EAAc,CAAC,OAAO,CAAC,KAAK,EAAY,OAAO,MAAM,QAAQ,EAAE,OAAO,CAAC,KAAK,EAAY,OAAO,MAAM,QAAQ,EAAE,UAAU,CAAC,KAAK,EAAY,KAAK,MAAM,QAAQ,QAAQ,CAAC,OAAO,SAAS,OAAO,EAAE,aAAa,CAAC,OAAO,SAAS,OAAO,CAAC,EAAE,KA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