{"version":3,"file":"TimeText.CAvtsVf7.mjs","names":[],"sources":["https:/framerusercontent.com/modules/ANuUl6XgtRbKsSvGDRZ4/nI4mtsuRjx7yMZA8kAGS/TimeText.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";/**\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight auto\n */export default function TimeText(props){const{time,color,accent,fontSize,weight,align,shortForm}=props;const raw=String(time??\"\");const display=shortForm?raw.split(/[\\u2013\\u2012-]/)[0].trim():raw;const parts=display.split(/(\\d+)/g);return /*#__PURE__*/_jsx(\"div\",{style:{fontFamily:'\"Nunito Sans\", \"Nunito Sans Placeholder\", sans-serif',fontWeight:weight,fontSize,letterSpacing:\"0.02em\",lineHeight:\"1.3em\",textAlign:align,width:\"100%\",color},children:parts.map((p,i)=>/^\\d+$/.test(p)?/*#__PURE__*/_jsx(\"span\",{children:p},i):/*#__PURE__*/_jsx(\"span\",{style:{color:accent},children:p},i))});}TimeText.defaultProps={time:\"8.30 – 9.00\",color:\"#F7F3EC\",accent:\"#FF4B43\",fontSize:13,weight:500,align:\"right\",shortForm:false};addPropertyControls(TimeText,{time:{type:ControlType.String,title:\"Time\",defaultValue:\"8.30 – 9.00\"},color:{type:ControlType.Color,title:\"Numbers\",defaultValue:\"#F7F3EC\"},accent:{type:ControlType.Color,title:\"Accent\",defaultValue:\"#FF4B43\"},fontSize:{type:ControlType.Number,title:\"Font Size\",defaultValue:13},weight:{type:ControlType.Number,title:\"Weight\",defaultValue:500},align:{type:ControlType.Enum,title:\"Align\",options:[\"left\",\"center\",\"right\"],defaultValue:\"right\"},shortForm:{type:ControlType.Boolean,title:\"Short Form (start time only)\",defaultValue:false}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"TimeText\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"auto\",\"framerSupportedLayoutWidth\":\"any\",\"framerContractVersion\":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