{"version":3,"file":"UpdatePricing_1.D3ME84Gt.mjs","names":["withRotate"],"sources":["https:/framerusercontent.com/modules/fM2M5r2ZkHdAPMnFuZyP/l2MfGXgqw5H60watP6hZ/Class_override_pro.js","https:/framerusercontent.com/modules/5ZHnyCCeXSWSUKsB6z6B/0Lm6tGsAq5biPEvwiJCZ/Class_override_starter.js","https:/framerusercontent.com/modules/KwdMlyAvLKvezNKx8k3j/9ueSmHa7iZQhVt0Ajptu/UpdatePricing_1.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{forwardRef}from\"react\";import{createStore}from\"https://framer.com/m/framer/store.js@^1.0.0\";// Learn more: https://www.framer.com/developers/overrides/\nconst useStore=createStore({background:\"#0099FF\"});export function withRotate(Component){return /*#__PURE__*/forwardRef((props,ref)=>{return /*#__PURE__*/_jsx(Component,{ref:ref,...props,\"data-id\":\"pro_card_box\"});});}\nexport const __FramerMetadata__ = {\"exports\":{\"withRotate\":{\"type\":\"reactHoc\",\"name\":\"withRotate\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Class_override_pro.map","import{jsx as _jsx}from\"react/jsx-runtime\";import{forwardRef}from\"react\";import{createStore}from\"https://framer.com/m/framer/store.js@^1.0.0\";// Learn more: https://www.framer.com/developers/overrides/\nconst useStore=createStore({background:\"#0099FF\"});export function withRotate(Component){return /*#__PURE__*/forwardRef((props,ref)=>{return /*#__PURE__*/_jsx(Component,{ref:ref,...props,\"data-id\":\"starter_card_box\"});});}\nexport const __FramerMetadata__ = {\"exports\":{\"withRotate\":{\"type\":\"reactHoc\",\"name\":\"withRotate\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Class_override_starter.map","import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect}from\"react\";// Helper function to send the message to the calculator\nconst sendToCalculator=(plan,freq)=>{const frames=document.getElementsByTagName(\"iframe\");for(let i=0;i<frames.length;i++){frames[i].contentWindow?.postMessage({type:\"UPDATE_CALC\",plan:plan,freq:freq},\"*\");}};// Helper function to save the choice across page loads\nconst saveSelection=(plan,freq)=>{if(typeof window!==\"undefined\"){// Save to browser memory for cross-page jumping\nsessionStorage.setItem(\"ds_plan\",plan);sessionStorage.setItem(\"ds_freq\",freq);}// Also send instantly in case they are already on the pricing page\nsendToCalculator(plan,freq);};// --- BUTTON OVERRIDES ---\nexport function ChooseStarterMonthly(Component){return props=>{return /*#__PURE__*/_jsx(Component,{...props,onTap:e=>{saveSelection(\"Starter\",\"Monthly\");if(props.onTap)props.onTap(e);}});};}export function ChooseStarterAnnually(Component){return props=>{return /*#__PURE__*/_jsx(Component,{...props,onTap:e=>{saveSelection(\"Starter\",\"Annual\");if(props.onTap)props.onTap(e);}});};}export function ChooseProMonthly(Component){return props=>{return /*#__PURE__*/_jsx(Component,{...props,onTap:e=>{saveSelection(\"Pro\",\"Monthly\");if(props.onTap)props.onTap(e);}});};}export function ChooseProAnnually(Component){return props=>{return /*#__PURE__*/_jsx(Component,{...props,onTap:e=>{saveSelection(\"Pro\",\"Annual\");if(props.onTap)props.onTap(e);}});};}// --- NEW: CALCULATOR RECEIVER OVERRIDE ---\n// We will attach this directly to the Calculator on the Pricing page\nexport function CalculatorReceiver(Component){return props=>{useEffect(()=>{if(typeof window!==\"undefined\"){const savedPlan=sessionStorage.getItem(\"ds_plan\");const savedFreq=sessionStorage.getItem(\"ds_freq\");if(savedPlan&&savedFreq){// Send the message a few times to ensure the iframe catches it as it finishes loading\nlet attempts=0;const interval=setInterval(()=>{sendToCalculator(savedPlan,savedFreq);attempts++;if(attempts>5){console.log(\"here 1\");clearInterval(interval);// Clear memory so it doesn't get stuck later\nsessionStorage.removeItem(\"ds_plan\");sessionStorage.removeItem(\"ds_freq\");}},400)// Fires every 400ms for 2 seconds\n;}}},[]);return /*#__PURE__*/_jsx(Component,{...props});};}\nexport const __FramerMetadata__ = {\"exports\":{\"ChooseProAnnually\":{\"type\":\"reactHoc\",\"name\":\"ChooseProAnnually\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"ChooseProMonthly\":{\"type\":\"reactHoc\",\"name\":\"ChooseProMonthly\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"CalculatorReceiver\":{\"type\":\"reactHoc\",\"name\":\"CalculatorReceiver\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"ChooseStarterMonthly\":{\"type\":\"reactHoc\",\"name\":\"ChooseStarterMonthly\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"ChooseStarterAnnually\":{\"type\":\"reactHoc\",\"name\":\"ChooseStarterAnnually\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./UpdatePricing_1.map"],"mappings":"0LACmD,SAAgBA,EAAW,EAAU,CAAC,OAAoB,GAAY,EAAM,IAA2B,EAAK,EAAU,CAAK,MAAI,GAAG,EAAM,UAAU,eAAe,CAAC,CAAG,kBAD7K,IAA8B,IAAqE,CAC/H,EAAY,CAAC,WAAW,UAAU,CAAC,ICAC,SAAgB,EAAW,EAAU,CAAC,OAAoB,GAAY,EAAM,IAA2B,EAAK,EAAU,CAAK,MAAI,GAAG,EAAM,UAAU,mBAAmB,CAAC,CAAG,kBADjL,IAA8B,IAAqE,CAC/H,EAAY,CAAC,WAAW,UAAU,CAAC,ICMlD,SAAgB,EAAmB,EAAU,CAAC,MAAO,KAAQ,MAAc,CAAC,GAAU,IAAS,OAAY,CAAC,IAAM,EAAU,eAAe,QAAQ,UAAU,CAAO,EAAU,eAAe,QAAQ,UAAU,CAAC,GAAG,GAAW,EAAU,CACxO,IAAI,EAAS,EAAQ,EAAS,gBAAgB,CAAC,EAAiB,EAAU,EAAU,CAAC,IAAc,EAAS,IAAG,QAAQ,IAAI,SAAS,CAAC,cAAc,EAAS,CAC5J,eAAe,WAAW,UAAU,CAAC,eAAe,WAAW,UAAU,GAAI,IAAI,IAC5E,EAAE,CAAC,CAAqB,EAAK,EAAU,CAAC,GAAG,EAAM,CAAC,yBAVZ,IAA6B,CAClE,GAAkB,EAAK,IAAO,CAAC,IAAM,EAAO,SAAS,qBAAqB,SAAS,CAAC,IAAI,IAAI,EAAE,EAAE,EAAE,EAAO,OAAO,IAAK,EAAO,GAAG,eAAe,YAAY,CAAC,KAAK,cAAmB,OAAU,OAAK,CAAC,IAAI"}