{"version":3,"file":"PeriodToggle.bcG2XLy5.mjs","names":[],"sources":["https:/framerusercontent.com/modules/WQJnjrxBCPgLyF3y1IHj/8iyttt9syh8Mb33GIDZe/PeriodToggle.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{createStore}from\"https://framer.com/m/framer/store.js@^1.0.0\";const useStore=createStore({period:\"month\"});export function withPeriodToggle(Component){return props=>{const[store,setStore]=useStore();return /*#__PURE__*/_jsx(Component,{...props,onClick:()=>{const newPeriod=store.period===\"month\"?\"year\":\"month\";setStore({period:newPeriod});}});};}export function withComparisonTablePeriod(Component){return props=>{const[store,setStore]=useStore();const variant=store.period===\"month\"?\"Monthly\":\"Annual\";return /*#__PURE__*/_jsx(Component,{...props,variant:variant});};}export function withPeriod(Component){return props=>{const[store,setStore]=useStore();return /*#__PURE__*/_jsx(Component,{...props,period:store.period});};}\nexport const __FramerMetadata__ = {\"exports\":{\"withPeriodToggle\":{\"type\":\"reactHoc\",\"name\":\"withPeriodToggle\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withPeriod\":{\"type\":\"reactHoc\",\"name\":\"withPeriod\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withComparisonTablePeriod\":{\"type\":\"reactHoc\",\"name\":\"withComparisonTablePeriod\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./PeriodToggle.map"],"mappings":"4JAA6J,SAAgB,EAAiB,EAAU,CAAC,MAAO,IAAO,CAAC,GAAK,CAAC,EAAM,GAAU,GAAU,CAAC,OAAoB,EAAK,EAAU,CAAC,GAAG,EAAM,YAAY,CAAuD,EAAS,CAAC,OAAhD,EAAM,SAAS,QAAQ,OAAO,QAAmC,CAAC,EAAG,CAAC,qBAA9V,IAAqE,CAAM,EAAS,EAAY,CAAC,OAAO,QAAQ,CAAC"}