{"version":3,"file":"SurfaceFormHandler.BoruPAii.mjs","names":[],"sources":["https:/framerusercontent.com/modules/FZUr169qgsf8YvqXJMK6/O0yq4OWD9gTUIp3jPZiA/SurfaceFormHandler.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\";import{randomColor}from\"https://framer.com/m/framer/utils.js@^0.9.0\";const useStore=createStore({background:\"#0099FF\"});export function withClass(Component){return props=>{props.className+=\" surface-form-handler\";return /*#__PURE__*/_jsx(Component,{...props,\"data-question-id\":\"ZpntedGGuSBd\"});};}// Minimal DataFast override: fire \"demo-initiated\" on button click\nexport function withDemoGoal(Component){return /*#__PURE__*/forwardRef((props,ref)=>{const handleClick=e=>{// Call original onClick first\nif(props.onClick){props.onClick(e);}// Track with DataFast using instant queue fallback\ntry{if(typeof window!==\"undefined\"){// Use main tracker if loaded, otherwise use instant queue\nconst tracker=window.datafast||window.datafastGoalInstant;if(typeof tracker===\"function\"){tracker(\"demo-initiated\");console.log(\"✅ DataFast: demo-initiated tracked\");}else{console.warn(\"⚠️ DataFast not available (likely blocked)\");}}}catch(error){console.warn(\"❌ DataFast tracking error:\",error);}};return /*#__PURE__*/_jsx(Component,{ref:ref,...props,onClick:handleClick});});}export function withRotate(Component){return /*#__PURE__*/forwardRef((props,ref)=>{return /*#__PURE__*/_jsx(Component,{ref:ref,...props,animate:{rotate:90},transition:{duration:2}});});}export function withHover(Component){return /*#__PURE__*/forwardRef((props,ref)=>{return /*#__PURE__*/_jsx(Component,{ref:ref,...props,whileHover:{scale:1.05}});});}export function withRandomColor(Component){return /*#__PURE__*/forwardRef((props,ref)=>{const[store,setStore]=useStore();return /*#__PURE__*/_jsx(Component,{ref:ref,...props,animate:{background:store.background},onClick:()=>{setStore({background:randomColor()});}});});}\nexport const __FramerMetadata__ = {\"exports\":{\"withHover\":{\"type\":\"reactHoc\",\"name\":\"withHover\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withRandomColor\":{\"type\":\"reactHoc\",\"name\":\"withRandomColor\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withClass\":{\"type\":\"reactHoc\",\"name\":\"withClass\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withDemoGoal\":{\"type\":\"reactHoc\",\"name\":\"withDemoGoal\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withRotate\":{\"type\":\"reactHoc\",\"name\":\"withRotate\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./SurfaceFormHandler.map"],"mappings":"8KAAsQ,SAAgB,EAAU,EAAU,CAAC,MAAO,KAAQ,EAAM,WAAW,wBAA4C,EAAK,EAAU,CAAC,GAAG,EAAM,mBAAmB,eAAe,CAAC,uBAAxY,IAA8B,IAAqE,IAAqE,CAAe,EAAY,CAAC,WAAW,UAAU,CAAC"}