{"version":3,"file":"DynamicSubheader.ewDRoTSX.mjs","names":[],"sources":["https:/framerusercontent.com/modules/qQ93En48S53TxZrPxWLa/JpslcVF4NdU5Xrgc2bnb/DynamicSubheader.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";export function DynamicSubheader({textColor,fontSize,textAlign,fontWeight,letterSpacing,lineHeight,copy,daysAhead}){// Calculate date X days from today\nconst date=new Date;date.setDate(date.getDate()+daysAhead);// Format date like \"Oct 23rd\"\nconst day=date.getDate();const month=date.toLocaleString(\"en-US\",{month:\"short\"});const getOrdinal=n=>{const s=[\"th\",\"st\",\"nd\",\"rd\"];const v=n%100;return s[(v-20)%10]||s[v]||s[0];};const formattedDate=`${month} ${day}${getOrdinal(day)}`;// Replace {date} placeholder in the copy\nconst textWithDate=copy.replace(\"{date}\",formattedDate);return /*#__PURE__*/_jsx(\"p\",{style:{fontSize,color:textColor,fontWeight,letterSpacing:`${letterSpacing}em`,lineHeight:`${lineHeight}%`,textAlign,maxWidth:\"700px\",margin:\"0 auto\",fontFamily:\"inter\"},dangerouslySetInnerHTML:{__html:textWithDate}});}addPropertyControls(DynamicSubheader,{copy:{type:ControlType.String,title:\"Copy\",defaultValue:\"Triple your sales by capturing more lost shoppers and converting them with AI-powered retention flows. Book and attend a demo by <strong>{date}</strong> to receive a free <strong>$100 gift card.</strong>*\"},daysAhead:{type:ControlType.Number,title:\"Days Ahead\",defaultValue:15,min:1,max:60,step:1},textColor:{type:ControlType.Color,title:\"Text Color\",defaultValue:\"#333\"},fontSize:{type:ControlType.Number,title:\"Font Size\",defaultValue:18,min:10,max:72,unit:\"px\"},fontWeight:{type:ControlType.Enum,title:\"Font Weight\",options:[300,400,500,600,700],optionTitles:[\"Light\",\"Regular\",\"Medium\",\"Semi-Bold\",\"Bold\"],defaultValue:400},letterSpacing:{type:ControlType.Number,title:\"Letter Spacing (em)\",defaultValue:0,min:-.1,max:.3,step:.01},lineHeight:{type:ControlType.Number,title:\"Line Height (%)\",defaultValue:160,min:80,max:250,step:5},textAlign:{type:ControlType.SegmentedEnum,title:\"Align\",options:[\"left\",\"center\",\"right\"],optionTitles:[\"Left\",\"Center\",\"Right\"],defaultValue:\"center\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"DynamicSubheader\":{\"type\":\"reactComponent\",\"name\":\"DynamicSubheader\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./DynamicSubheader.map"],"mappings":"6JAA+F,SAAgB,EAAiB,CAAC,YAAU,WAAS,YAAU,aAAW,gBAAc,aAAW,OAAK,aAAW,CAClN,IAAM,EAAK,IAAI,KAAK,EAAK,QAAQ,EAAK,SAAS,CAAC,EAAU,CAC1D,IAAM,EAAI,EAAK,SAAS,CAAmK,EAAc,GAApK,EAAK,eAAe,QAAQ,CAAC,MAAM,QAAQ,CAAC,CAAiI,GAAG,KAAlH,GAAG,CAAC,IAAM,EAAE,CAAC,KAAK,KAAK,KAAK,KAAK,CAAO,EAAE,EAAE,IAAI,OAAO,GAAG,EAAE,IAAI,KAAK,EAAE,IAAI,EAAE,KAAsD,EAAI,GACpO,EAAa,EAAK,QAAQ,SAAS,EAAc,CAAC,OAAoB,EAAK,IAAI,CAAC,MAAM,CAAC,WAAS,MAAM,EAAU,aAAW,cAAc,GAAG,EAAc,IAAI,WAAW,GAAG,EAAW,GAAG,YAAU,SAAS,QAAQ,OAAO,SAAS,WAAW,QAAQ,CAAC,wBAAwB,CAAC,OAAO,EAAa,CAAC,CAAC,kBAHnQ,IAAoD,CAGiN,EAAoB,EAAiB,CAAC,KAAK,CAAC,KAAK,EAAY,OAAO,MAAM,OAAO,aAAa,+MAA+M,CAAC,UAAU,CAAC,KAAK,EAAY,OAAO,MAAM,aAAa,aAAa,GAAG,IAAI,EAAE,IAAI,GAAG,KAAK,EAAE,CAAC,UAAU,CAAC,KAAK,EAAY,MAAM,MAAM,aA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