{"version":3,"file":"YearDisplay.C_sRCSpv.mjs","names":["useMemo"],"sources":["https:/framerusercontent.com/modules/SlEVRlRbilEkqP0EJEx9/29wcxeoPCHKEE1In9bBO/YearDisplay.js"],"sourcesContent":["// Simple year display with optional prepend and append text\nimport{jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import{useMemo}from\"react\";/**\n * Simple Year Display\n *\n * @framerIntrinsicWidth 120\n * @framerIntrinsicHeight 40\n *\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n */export default function YearDisplay(props){const{prepend,append,font,color,style,fontSize,alignment}=props;const year=useMemo(()=>new Date().getFullYear(),[]);return /*#__PURE__*/_jsxs(\"span\",{style:{...font,fontSize:fontSize?fontSize+\"px\":font?.fontSize,color,...style,width:\"100%\",display:\"block\",textAlign:alignment},children:[prepend,year,append]});}addPropertyControls(YearDisplay,{prepend:{type:ControlType.String,title:\"Prepend\",defaultValue:\"\",placeholder:\"Before year...\"},append:{type:ControlType.String,title:\"Append\",defaultValue:\"\",placeholder:\"After year...\"},font:{type:ControlType.Font,title:\"Font\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:\"22px\",variant:\"Semibold\",letterSpacing:\"-0.01em\",lineHeight:\"1.2em\"}},color:{type:ControlType.Color,title:\"Color\",defaultValue:\"#000000\"},fontSize:{type:ControlType.Number,title:\"Font Size\",defaultValue:22,min:8,max:120,unit:\"px\",step:1},alignment:{type:ControlType.Enum,title:\"Alignment\",options:[\"left\",\"center\",\"right\"],optionTitles:[\"Left\",\"Center\",\"Right\"],defaultValue:\"left\",displaySegmentedControl:true}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"YearDisplay\",\"slots\":[],\"annotations\":{\"framerIntrinsicWidth\":\"120\",\"framerIntrinsicHeight\":\"40\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"any-prefer-fixed\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./YearDisplay.map"],"mappings":"2KASG,SAAwB,EAAY,EAAM,CAAC,GAAK,CAAC,UAAQ,SAAO,OAAK,QAAM,QAAM,WAAS,aAAW,EAAY,EAAKA,MAAY,IAAI,KAAK,CAAA,CAAE,YAAY,EAAE,CAAC,CAAC,EAAE,OAAoB,EAAM,OAAO,CAAC,MAAM,CAAC,GAAG,EAAK,SAAS,EAAS,EAAS,KAAK,GAAM,SAAS,QAAM,GAAG,EAAM,MAAM,OAAO,QAAQ,QAAQ,UAAU,CAAS,EAAE,SAAS,CAAC,EAAQ,EAAK,CAAM,CAAC,CAAC,CAAE,iBARxT,IAAoD,IAA2B,EAQ0O,EAAoB,EAAY,CAAC,QAAQ,CAAC,KAAK,EAAY,OAAO,MAAM,UAAU,aAAa,GAAG,YAAY,gBAAgB,EAAE,OAAO,CAAC,KAAK,EAAY,OAAO,MAAM,SAAS,aAAa,GAAG,YAAY,eAAe,EAAE,KAAK,CAAC,KAAK,EAAY,KAAK,MAAM,OAAO,SAAS,WAAW,gBAAgB,aAAa,aAAa,CAAC,SAAS,OAAO,QAAQ,WAAW,cAAc,UAAU,WAAW,OAAO,CAAC,EAAE,MAAM,CAAC,KAAK,EAAY,MAAM,MAAM,QAAQ,aAAa,SAAS,EAAE,SAAS,CAAC,KAAK,EAAY,OAAO,MAAM,YAAY,aAAa,GAAG,IAAI,EAAE,IAAI,IAAI,KAAK,KAAK,KAAK,CAAC,EAAE,UAAU,CAAC,KAAK,EAAY,KAAK,MAAM,YAAY,QAAQ,CAAC,OAAO,SAAS,OAAO,EAAE,aAAa,CAAC,OAAO,SAAS,OAAO,EAAE,aAAa,OAAO,wBAAwB,EAAI,CAAC,CAAC"}