{"version":3,"file":"MonthDisplay.GRhGStQL.mjs","names":["useMemo"],"sources":["https:/framerusercontent.com/modules/017HEU6PWd3umGbvb99H/mjRvTix309pHOh1gIfZt/MonthDisplay.js"],"sourcesContent":["// Text component that displays the next month in \"Month YYYY\" format if today is after the 15th, otherwise shows the current month in that format\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import{useMemo}from\"react\";/**\n * MonthDisplay\n *\n * Shows the next month in \"Month YYYY\" format if today is after the 15th, otherwise shows the current month.\n *\n * @framerSupportedLayoutWidth auto\n * @framerSupportedLayoutHeight auto\n */export default function MonthDisplay(props){const{font,color,style,shortMonth=false}=props;const text=useMemo(()=>{const now=new Date;let month=now.getMonth();let year=now.getFullYear();if(now.getDate()>15){month+=1;if(month>11){month=0;year+=1;}}const monthNamesLong=[\"January\",\"February\",\"March\",\"April\",\"May\",\"June\",\"July\",\"August\",\"September\",\"October\",\"November\",\"December\"];const monthNamesShort=[\"Jan\",\"Feb\",\"Mar\",\"Apr\",\"May\",\"Jun\",\"Jul\",\"Aug\",\"Sep\",\"Oct\",\"Nov\",\"Dec\"];const monthName=shortMonth?monthNamesShort[month]:monthNamesLong[month];return`${monthName} ${year}`;},[shortMonth]);return /*#__PURE__*/_jsx(\"span\",{style:{...style,...font,color,width:\"max-content\",minWidth:\"max-content\",display:\"inline-block\"},children:text});}addPropertyControls(MonthDisplay,{font:{type:ControlType.Font,title:\"Font\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:\"32px\",variant:\"Semibold\",letterSpacing:\"-0.03em\",lineHeight:\"1em\"}},color:{type:ControlType.Color,title:\"Text Color\",defaultValue:\"#000000\"},shortMonth:{type:ControlType.Boolean,title:\"Short Month Name\",defaultValue:false,enabledTitle:\"Short\",disabledTitle:\"Full\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"MonthDisplay\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"auto\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"auto\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./MonthDisplay.map"],"mappings":"kQAQG,SAAwB,EAAa,EAAM,CAAC,GAAK,CAAC,OAAK,QAAM,QAAM,aAAW,IAAO,EAAY,EAAKA,MAAY,CAAC,IAAM,EAAI,IAAI,KAAS,EAAM,EAAI,UAAU,CAAK,EAAK,EAAI,aAAa,CAA2W,OAAvW,EAAI,SAAS,CAAC,KAAI,GAAO,EAAK,EAAM,KAAI,EAAM,EAAE,GAAM,IAAuT,GAA9D,EAA1F,CAAC,MAAM,MAAM,MAAM,MAAM,MAAM,MAAM,MAAM,MAAM,MAAM,MAAM,MAAM,MAAM,CAA4C,GAA3P,CAAC,UAAU,WAAW,QAAQ,QAAQ,MAAM,OAAO,OAAO,SAAS,YAAY,UAAU,WAAW,WAAW,CAAkK,GAA0B,GAAG,KAAS,CAAC,EAAW,CAAC,CAAC,OAAoB,EAAK,OAAO,CAAC,MAAM,CAAC,GAAG,EAAM,GAAG,EAAK,QAAM,MAAM,cAAc,SAAS,cAAc,QAAQ,eAAe,CAAC,SAAS,EAAK,CAAC,kBAP1rB,IAAoD,IAA2B,CAO6mB,EAAoB,EAAa,CAAC,KAAK,CAAC,KAAK,EAAY,KAAK,MAAM,OAAO,SAAS,WAAW,gBAAgB,aAAa,aAAa,CAAC,SAAS,OAAO,QAAQ,WAAW,cAAc,UAAU,WAAW,MAAM,CAAC,CAAC,MAAM,CAAC,KAAK,EAAY,MAAM,MAAM,aAAa,aAAa,UAAU,CAAC,WAAW,CAAC,KAAK,EAAY,QAAQ,MAAM,mBAAmB,aAAa,GAAM,aAAa,QAAQ,cAAc,OAAO,CAAC,CAAC"}