{"version":3,"file":"LiveText.Bi1zUqrn.mjs","names":[],"sources":["https:/framerusercontent.com/modules/peIVRLPJ78xLCjG5iu2Y/KnnpQhpItWKr5vRmnfws/LiveText.js"],"sourcesContent":["// Live - Text: Displays the next month dynamically\nimport{jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";/**\n * Live - Text\n *\n * @framerSupportedLayoutWidth auto\n * @framerSupportedLayoutHeight auto\n */function LiveText(props){const{prefix,suffix,font,color,unit,offset,style}=props;const now=new Date;let value=\"\";if(unit===\"month\"){const monthDate=new Date(now.getFullYear(),now.getMonth()+(offset===\"next\"?1:0),1);value=monthDate.toLocaleString(\"default\",{month:\"long\"});}else if(unit===\"year\"){value=String(now.getFullYear()+(offset===\"next\"?1:0));}return /*#__PURE__*/_jsxs(\"span\",{style:{color,...font,...style,width:\"max-content\",minWidth:\"max-content\",display:\"inline-block\"},children:[prefix,value,suffix]});}LiveText.displayName=\"Live - Text\";export default LiveText;addPropertyControls(LiveText,{unit:{type:ControlType.Enum,title:\"Unit\",options:[\"month\",\"year\"],optionTitles:[\"Month\",\"Year\"],defaultValue:\"month\",displaySegmentedControl:true},offset:{type:ControlType.Enum,title:\"Offset\",options:[\"current\",\"next\"],optionTitles:[\"Current\",\"Next\"],defaultValue:\"next\",displaySegmentedControl:true},prefix:{type:ControlType.String,title:\"Prefix\",defaultValue:\"\",placeholder:\"e.g. Next: \"},suffix:{type:ControlType.String,title:\"Suffix\",defaultValue:\"\",placeholder:\"e.g. Month\"},color:{type:ControlType.Color,title:\"Text Color\",defaultValue:\"#000000\"},font:{type:ControlType.Font,title:\"Font\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:\"22px\",variant:\"Semibold\",letterSpacing:\"-0.01em\",lineHeight:\"1.2em\"},displayTextAlignment:true,displayFontSize:true,// Enable file style font selection\nuseFileFontStyles:true}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"LiveText\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"auto\",\"framerSupportedLayoutHeight\":\"auto\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./LiveText.map"],"mappings":"4JAMG,SAAS,EAAS,EAAM,CAAC,GAAK,CAAC,SAAO,SAAO,OAAK,QAAM,OAAK,SAAO,SAAO,EAAY,EAAI,IAAI,KAAS,EAAM,GAAiP,OAA3O,IAAO,QAA4F,EAAnE,IAAI,KAAK,EAAI,aAAa,CAAC,EAAI,UAAU,EAAE,IAAS,OAAO,EAAE,GAAG,EAAE,CAAiB,eAAe,UAAU,CAAC,MAAM,OAAO,CAAC,CAAU,IAAO,SAAQ,EAAM,OAAO,EAAI,aAAa,EAAE,IAAS,OAAO,EAAE,GAAG,EAAsB,EAAM,OAAO,CAAC,MAAM,CAAC,QAAM,GAAG,EAAK,GAAG,EAAM,MAAM,cAAc,SAAS,cAAc,QAAQ,eAAe,CAAC,SAAS,CAAC,EAAO,EAAM,EAAO,CAAC,CAAC,oBALxd,IAAoD,CAKsa,EAAS,YAAY,gBAA6B,EAAS,EAAoB,EAAS,CAAC,KAAK,CAAC,KAAK,EAAY,KAAK,MAAM,OAAO,QAAQ,CAAC,QAAQ,OAAO,CAAC,aAAa,CAAC,QAAQ,OAAO,CAAC,aAAa,QAAQ,wBAAwB,GAAK,CAAC,OAAO,CAAC,KAAK,EAAY,KAAK,MAAM,SAAS,QAAQ,CAAC,UAAU,OAAO,CAAC,aAAa,CAAC,UAAU,OAAO,CAAC,aAAa,OAAO,wBAAwB,GAAK,CAAC,OAAO,CAAC,KAAK,EAAY,OAAO,MAAM,SAAS,aAAa,GAAG,YAAY,cAAc,CAAC,OAAO,CAAC,KAAK,EAAY,OAAO,MAAM,SAAS,aAAa,GAAG,YAAY,aAAa,CAAC,MAAM,CAAC,KAAK,EAAY,MAAM,MAAM,aAAa,aAAa,UAAU,CAAC,KAAK,CAAC,KAAK,EAAY,KAAK,MAAM,OAAO,SAAS,WAAW,gBAAgB,aAAa,aAAa,CAAC,SAAS,OAAO,QAAQ,WAAW,cAAc,UAAU,WAAW,QAAQ,CAAC,qBAAqB,GAAK,gBAAgB,GAC12C,kBAAkB,GAAK,CAAC,CAAC"}