{"version":3,"file":"CurrentYearText.ClUuispK.mjs","names":["React.useMemo"],"sources":["https:/framerusercontent.com/modules/qCpiLOkxCBgmeqpsKybz/QfLQGbPTWICbpGOSgHFW/CurrentYearText.js"],"sourcesContent":["// Instructions: Create a Framer component that makes the year in a string of text always the current year.\nimport{jsxs as _jsxs}from\"react/jsx-runtime\";import*as React from\"react\";import{addPropertyControls,ControlType}from\"framer\";/**\n * @framerSupportedLayoutWidth auto\n * @framerSupportedLayoutHeight auto\n */export default function CurrentYearText(props){const{prefix,suffix,separator,color,font,style}=props;const year=React.useMemo(()=>{const d=new Date;const y=d.getFullYear();return Number.isFinite(y)?String(y):\"\";},[]);const isFixedWidth=style?.width===\"100%\";const isFixedHeight=style?.height===\"100%\";return /*#__PURE__*/_jsxs(\"span\",{style:{position:\"relative\",display:\"inline-block\",color,...font,...isFixedWidth?{width:\"100%\"}:{width:\"max-content\"},...isFixedHeight?{height:\"100%\"}:null,...style},\"aria-label\":`${prefix}${separator}${year}${suffix}`,children:[prefix,separator,year,suffix]});}addPropertyControls(CurrentYearText,{prefix:{type:ControlType.String,title:\"Prefix\",defaultValue:\"\\xa9\"},separator:{type:ControlType.String,title:\"Separator\",defaultValue:\" \"},suffix:{type:ControlType.String,title:\"Suffix\",defaultValue:\" Your Company\"},color:{type:ControlType.Color,title:\"Color\",defaultValue:\"#000000\"},font:{type:ControlType.Font,title:\"Font\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:\"15px\",variant:\"Medium\",letterSpacing:\"-0.01em\",lineHeight:\"1.3em\"}}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"CurrentYearText\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"auto\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"auto\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./CurrentYearText.map"],"mappings":"0KAIG,SAAwB,EAAgB,EAAM,CAAC,GAAK,CAAC,SAAO,SAAO,YAAU,QAAM,OAAK,SAAO,EAAY,EAAKA,MAAkB,CAAkB,IAAM,EAAE,IAAb,KAAa,CAAA,CAAE,YAAY,EAAE,OAAO,OAAO,SAAS,CAAC,EAAE,OAAO,CAAC,EAAE,EAAG,EAAE,CAAC,CAAC,EAAQ,EAAa,GAAO,QAAQ,OAAa,EAAc,GAAO,SAAS,OAAO,OAAoB,EAAM,OAAO,CAAC,MAAM,CAAC,SAAS,WAAW,QAAQ,eAAe,QAAM,GAAG,EAAK,GAAG,EAAa,CAAC,MAAM,MAAM,EAAE,CAAC,MAAM,aAAa,EAAE,GAAG,EAAc,CAAC,OAAO,MAAM,EAAE,KAAK,GAAG,CAAK,EAAE,aAAa,GAAG,IAAS,IAAY,IAAO,IAAS,SAAS,CAAC,EAAO,EAAU,EAAK,CAAM,CAAC,CAAC,CAAE,iBAH1iB,IAA4B,IAAoD,EAG2d,EAAoB,EAAgB,CAAC,OAAO,CAAC,KAAK,EAAY,OAAO,MAAM,SAAS,aAAa,GAAM,EAAE,UAAU,CAAC,KAAK,EAAY,OAAO,MAAM,YAAY,aAAa,GAAG,EAAE,OAAO,CAAC,KAAK,EAAY,OAAO,MAAM,SAAS,aAAa,eAAe,EAAE,MAAM,CAAC,KAAK,EAAY,MAAM,MAAM,QAAQ,aAAa,SAAS,EAAE,KAAK,CAAC,KAAK,EAAY,KAAK,MAAM,OAAO,SAAS,WAAW,gBAAgB,aAAa,aAAa,CAAC,SAAS,OAAO,QAAQ,SAAS,cAAc,UAAU,WAAW,OAAO,CAAC,CAAC,CAAC"}