{"version":3,"file":"Conversions.HSGL1HMf.mjs","names":[],"sources":["https:/framerusercontent.com/modules/d64wH37QcD7Ar0PxsotY/8itLLmAfzneL1ZTtFQjn/Conversions.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\";// existing store\nconst useStore=createStore({background:\"#0099FF\"});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:event=>{setStore({background:randomColor()});// If you ALSO want the conversion here, you could call it:\n// if (typeof window !== \"undefined\" && typeof window.gtag_report_conversion === \"function\") {\n//     window.gtag_report_conversion()\n// }\nif(props.onClick)props.onClick(event);}});});}export function withGtagConversion(Component){return /*#__PURE__*/forwardRef((props,ref)=>{const handleClick=event=>{// Call existing onClick (if any)\nif(props.onClick){props.onClick(event);}// Call the global gtag_report_conversion function\nif(typeof window!==\"undefined\"&&typeof window.gtag_report_conversion===\"function\"){// No redirect:\nwindow.gtag_report_conversion();// OR with redirect:\n// window.gtag_report_conversion(\"https://www.qudo.com/try\")\n}};return /*#__PURE__*/_jsx(Component,{ref:ref,...props,onClick:handleClick});});}\nexport const __FramerMetadata__ = {\"exports\":{\"withHover\":{\"type\":\"reactHoc\",\"name\":\"withHover\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withRandomColor\":{\"type\":\"reactHoc\",\"name\":\"withRandomColor\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withGtagConversion\":{\"type\":\"reactHoc\",\"name\":\"withGtagConversion\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withRotate\":{\"type\":\"reactHoc\",\"name\":\"withRotate\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Conversions.map"],"mappings":"+LAK8C,SAAgB,EAAmB,EAAU,CAAC,OAAoB,GAAY,EAAM,IAAM,CAAC,IAAM,EAAY,GAAO,CAC/J,EAAM,SAAS,EAAM,QAAQ,CAAK,EAC3B,IAAS,QAAa,OAAO,EAAO,wBAAyB,YACvE,EAAO,uBAAuB,CAE7B,EAAE,OAAoB,EAAK,EAAU,CAAK,MAAI,GAAG,EAAM,QAAQ,CAAW,CAAC,CAAE,CAAC,CAAE,qBAVvC,IAA8B,IAAqE,IAAqE,EACnM,EAAY,CAAC,WAAW,SAAS,CAAC"}