{"version":3,"file":"DynamicDates.CCmSj3g7.mjs","names":[],"sources":["https:/framerusercontent.com/modules/EYO82cRgMew9GbZzrL0O/D9Fp55NWSthkJ2kFtTOj/DynamicDates.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{createStore}from\"https://framer.com/m/framer/store.js@^1.0.0\";import{randomColor}from\"https://framer.com/m/framer/utils.js@^0.9.0\";// Learn more: https://www.framer.com/docs/guides/overrides/\nconst useStore=createStore({background:\"#0099FF\"});export function withRotate(Component){return props=>{return /*#__PURE__*/ _jsx(Component,{...props,animate:{rotate:90},transition:{duration:2}});};}export function withHover(Component){return props=>{return /*#__PURE__*/ _jsx(Component,{...props,whileHover:{scale:1.05}});};}export function withRandomColor(Component){return props=>{const[store,setStore]=useStore();return /*#__PURE__*/ _jsx(Component,{...props,animate:{background:store.background},onClick:()=>{setStore({background:randomColor()});}});};}function generateDate(daysToAdd){var today=new Date;var result=new Date(today.setDate(today.getDate()+daysToAdd));var newDate=result.toDateString().slice(0,-5);return newDate;}export function discovery(Component){return props=>{const[store,setStore]=useStore();return /*#__PURE__*/ _jsx(Component,{...props,text:generateDate(7)});};}export function startDevelopment(Component){return props=>{const[store,setStore]=useStore();return /*#__PURE__*/ _jsx(Component,{...props,text:generateDate(14)});};}export function launch(Component){return props=>{const[store,setStore]=useStore();return /*#__PURE__*/ _jsx(Component,{...props,text:generateDate(60)});};}export function firstCustomer(Component){return props=>{const[store,setStore]=useStore();return /*#__PURE__*/ _jsx(Component,{...props,text:generateDate(67)});};}export function receiveDesign(Component){return props=>{const[store,setStore]=useStore();return /*#__PURE__*/ _jsx(Component,{...props,text:generateDate(3)});};}export function placeOrder(Component){return props=>{const[store,setStore]=useStore();return /*#__PURE__*/ _jsx(Component,{...props,text:generateDate(0)});};}\nexport const __FramerMetadata__ = {\"exports\":{\"discovery\":{\"type\":\"reactHoc\",\"name\":\"discovery\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withHover\":{\"type\":\"reactHoc\",\"name\":\"withHover\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withRandomColor\":{\"type\":\"reactHoc\",\"name\":\"withRandomColor\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withRotate\":{\"type\":\"reactHoc\",\"name\":\"withRotate\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"receiveDesign\":{\"type\":\"reactHoc\",\"name\":\"receiveDesign\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"startDevelopment\":{\"type\":\"reactHoc\",\"name\":\"startDevelopment\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"placeOrder\":{\"type\":\"reactHoc\",\"name\":\"placeOrder\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"launch\":{\"type\":\"reactHoc\",\"name\":\"launch\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"firstCustomer\":{\"type\":\"reactHoc\",\"name\":\"firstCustomer\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./DynamicDates.map"],"mappings":"qOAC8iB,SAAS,EAAa,EAAU,CAAC,IAAI,EAAM,IAAI,KAAiH,OAAjG,IAAI,KAAK,EAAM,QAAQ,EAAM,SAAS,CAAC,EAAU,CAAC,CAAoB,cAAc,CAAC,MAAM,EAAE,GAAG,CAAiB,SAAgB,EAAU,EAAU,CAAC,MAAO,IAAO,CAAC,GAAK,CAAC,EAAM,GAAU,GAAU,CAAC,OAAqB,EAAK,EAAU,CAAC,GAAG,EAAM,KAAK,EAAa,EAAE,CAAC,CAAC,EAAI,SAAgB,EAAiB,EAAU,CAAC,MAAO,IAAO,CAAC,GAAK,CAAC,EAAM,GAAU,GAAU,CAAC,OAAqB,EAAK,EAAU,CAAC,GAAG,EAAM,KAAK,EAAa,GAAG,CAAC,CAAC,EAAI,SAAgB,EAAO,EAAU,CAAC,MAAO,IAAO,CAAC,GAAK,CAAC,EAAM,GAAU,GAAU,CAAC,OAAqB,EAAK,EAAU,CAAC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