{"version":3,"file":"EventDate.CqZgebqD.mjs","names":[],"sources":["https:/framerusercontent.com/modules/0fHUAvHG0gIHDYIIJSJt/FJ8GIXurAvoxivyFn6af/EventDate.js"],"sourcesContent":["// Planta template · Event date in the Planta formats (tile / short / long). Edit: Date (bind to CMS), Format, Colour.\n// Planta — event date (Events, Task 15). Bound to the Events CMS \"Date\" field. Framer's date transforms can't\n// produce the Figma formats, so this renders them:\n//   format \"tile\"  → the date tile: month \"NOV\" (Eyebrow, text/accent) over day \"14\" (Heading/H2 values, responsive)\n//   format \"short\" → \"Thu 26 Nov\" (inherits the colour prop; Body/SM values) — for the featured event meta line.\n//   format \"long\"  → \"1 October 2026\" (Caption values) — Legal \"Last updated\".\n// Server-rendered (no browser APIs); dates are read in UTC so the server and the browser show the same day.\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";const SANS=`var(--planta-font-body, \"Instrument Sans\", \"Instrument Sans Placeholder\", sans-serif)`;const GEIST=`var(--planta-font-display, \"Geist\", \"Geist Placeholder\", sans-serif)`;const LONG=[\"January\",\"February\",\"March\",\"April\",\"May\",\"June\",\"July\",\"August\",\"September\",\"October\",\"November\",\"December\"];const MONTHS=[\"Jan\",\"Feb\",\"Mar\",\"Apr\",\"May\",\"Jun\",\"Jul\",\"Aug\",\"Sep\",\"Oct\",\"Nov\",\"Dec\"];const DAYS=[\"Sun\",\"Mon\",\"Tue\",\"Wed\",\"Thu\",\"Fri\",\"Sat\"];const CSS=`.ped-day{font:500 40px/46px ${GEIST};letter-spacing:-1.2px}\n@media (min-width:810px) and (max-width:1199.98px){.ped-day{font-size:36px;line-height:42px;letter-spacing:-1px}}\n@media (max-width:809.98px){.ped-day{font-size:32px;line-height:38px;letter-spacing:-.8px}}`;/**\n * Event Date\n *\n * @framerIntrinsicWidth 60\n * @framerIntrinsicHeight 62\n *\n * @framerSupportedLayoutWidth auto\n * @framerSupportedLayoutHeight auto\n */export default function EventDate(props){const{date=\"2026-11-14T00:00:00.000Z\",format=\"tile\",color=\"var(--token-460deb34-b776-4285-bc8e-0324fd5643e7, #141414)\",style}=props;const d=new Date(date||\"\");const ok=!isNaN(d.getTime());const month=ok?MONTHS[d.getUTCMonth()]:\"\";const day=ok?String(d.getUTCDate()).padStart(2,\"0\"):\"\";if(format===\"long\"){// \"1 October 2026\" — Caption values (Legal \"Last updated\")\nreturn /*#__PURE__*/_jsx(\"p\",{style:{...style,margin:0,font:`400 12px/16px ${SANS}`,color,whiteSpace:\"nowrap\"},children:ok?`${d.getUTCDate()} ${LONG[d.getUTCMonth()]} ${d.getUTCFullYear()}`:\"\"});}if(format===\"short\"){return /*#__PURE__*/_jsx(\"p\",{style:{...style,margin:0,font:`400 14px/20px ${SANS}`,color,whiteSpace:\"nowrap\"},children:ok?`${DAYS[d.getUTCDay()]} ${d.getUTCDate()} ${month}`:\"\"});}return /*#__PURE__*/_jsxs(\"div\",{style:{...style,display:\"flex\",flexDirection:\"column\",alignItems:\"center\"},children:[/*#__PURE__*/_jsx(\"style\",{dangerouslySetInnerHTML:{__html:CSS}}),/*#__PURE__*/_jsx(\"span\",{style:{font:`600 12px/16px ${SANS}`,letterSpacing:\"1.2px\",textTransform:\"uppercase\",color:\"var(--token-bd55f482-6859-4631-b1ff-256b34e3cf65, #2239E0)\"},children:month}),/*#__PURE__*/_jsx(\"span\",{className:\"ped-day\",style:{color},children:day})]});}addPropertyControls(EventDate,{date:{type:ControlType.Date,title:\"Date\"},format:{type:ControlType.Enum,title:\"Format\",options:[\"tile\",\"short\",\"long\"],optionTitles:[\"Tile (NOV / 14)\",\"Short (Thu 26 Nov)\",\"Long (1 October 2026)\"],defaultValue:\"tile\"},color:{type:ControlType.Color,title:\"Colour\",defaultValue:\"#141414\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"EventDate\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerIntrinsicHeight\":\"62\",\"framer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