{"version":3,"file":"DateTimeDisplay_1.FdXze4F2.mjs","names":["useState"],"sources":["https:/framerusercontent.com/modules/o26O30M3negOJyUG1VD4/0mDLNrzW3ECIN7olttYk/DateTimeDisplay_1.js"],"sourcesContent":["// Text element that shows the current date and time minus 2 hours, formatted in German\nimport{jsxs as _jsxs}from\"react/jsx-runtime\";import{useState}from\"react\";import{addPropertyControls,ControlType}from\"framer\";/**\n * DateTimeDisplay\n *\n * @framerSupportedLayoutWidth auto\n * @framerSupportedLayoutHeight auto\n */export default function DateTimeDisplay(props){const{font,color,style}=props;// Capture the time once on mount\nconst[now]=useState(()=>new Date);// Subtract 1 hour 32 minutes\nconst minus1h32m=new Date(now.getTime()-(1*60+32)*60*1e3);// Format date and time in German\nconst dateString=minus1h32m.toLocaleDateString(\"de-DE\",{weekday:\"long\",year:\"numeric\",month:\"long\",day:\"numeric\"});const timeString=minus1h32m.toLocaleTimeString(\"de-DE\",{hour:\"2-digit\",minute:\"2-digit\"});return /*#__PURE__*/_jsxs(\"span\",{style:{color,...font,...style,width:\"max-content\",minWidth:\"max-content\",display:\"inline-block\"},children:[dateString,\" \",timeString]});}addPropertyControls(DateTimeDisplay,{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:\"Text Color\",defaultValue:\"#000000\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"DateTimeDisplay\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"auto\",\"framerSupportedLayoutHeight\":\"auto\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./DateTimeDisplay_1.map"],"mappings":"0KAMG,SAAwB,EAAgB,EAAM,CAAC,GAAK,CAAC,OAAK,QAAM,SAAO,EACrE,CAAC,GAAKA,MAAa,IAAI,KAAK,CAC3B,EAAW,IAAI,KAAK,EAAI,SAAS,CAAC,KAAa,IAAI,CACnD,EAAW,EAAW,mBAAmB,QAAQ,CAAC,QAAQ,OAAO,KAAK,UAAU,MAAM,OAAO,IAAI,UAAU,CAAC,CAAO,EAAW,EAAW,mBAAmB,QAAQ,CAAC,KAAK,UAAU,OAAO,UAAU,CAAC,CAAC,OAAoB,EAAM,OAAO,CAAC,MAAM,CAAC,QAAM,GAAG,EAAK,GAAG,EAAM,MAAM,cAAc,SAAS,cAAc,QAAQ,eAAe,CAAC,SAAS,CAAC,EAAW,IAAI,EAAW,CAAC,CAAC,kBARzU,IAA4B,IAAoD,CAQ2P,EAAoB,EAAgB,CAAC,KAAK,CAAC,KAAK,EAAY,KAAK,MAAM,OAAO,SAAS,WAAW,gBAAgB,aAAa,aAAa,CAAC,SAAS,OAAO,QAAQ,WAAW,cAAc,UAAU,WAAW,QAAQ,CAAC,CAAC,MAAM,CAAC,KAAK,EAAY,MAAM,MAAM,aAAa,aAAa,UAAU,CAAC,CAAC"}