{"version":3,"file":"Call_button.C_qGOVD8.mjs","names":["_Fragment"],"sources":["https:/framerusercontent.com/modules/IaDa6kjbR9MvbdmUIQCR/lw5s9vupG84JKJRPUJ27/Call_button.js"],"sourcesContent":["import{jsx as _jsx,Fragment as _Fragment}from\"react/jsx-runtime\";async function handleSubmit(event){window.location.href=\"https://api.saloanelemagic.ro/api/redirect/qr\";// var userAgent = navigator.userAgent || navigator.vendor || window.opera\n// // Check for iOS devices\n// if (/iPad|iPhone|iPod/.test(userAgent) && !window.MSStream) {\n//     window.location.href = \"https://apps.apple.com/app/id123456789\" // Apple App Store link\n// }\n// // Check for Android devices\n// else if (/android/i.test(userAgent)) {\n//     window.location.href =\n//         \"https://play.google.com/store/apps/details?id=com.example.app\" // Google Play Store link\n// }\n// // Check for Huawei devices\n// else if (/huawei/i.test(userAgent) || /harmony/i.test(userAgent)) {\n//     window.location.href = \"https://appgallery.huawei.com/#/app/C1000001234\" // Huawei AppGallery link\n// }\n// // Fallback for other devices (or desktop)\n// else {\n//     window.location.href = \"https://example.com\" // Fallback URL (like a landing page or general app download link)\n// }\n}async function handleCall(event){window.location.href=\"tel:+0774676332\";}export function buttonOverride(Component){return props=>{const handleClickWithRef=event=>handleSubmit(event);return /*#__PURE__*/_jsx(_Fragment,{children:/*#__PURE__*/_jsx(Component,{...props,onClick:handleClickWithRef,onTouchStart:handleClickWithRef})});};}export function callButton(Component){return props=>{const handleClickWithRef=event=>handleCall(event);return /*#__PURE__*/_jsx(_Fragment,{children:/*#__PURE__*/_jsx(Component,{...props,onClick:handleClickWithRef,onTouchStart:handleClickWithRef})});};}\nexport const __FramerMetadata__ = {\"exports\":{\"buttonOverride\":{\"type\":\"reactHoc\",\"name\":\"buttonOverride\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"callButton\":{\"type\":\"reactHoc\",\"name\":\"callButton\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Call_button.map"],"mappings":"yHAkBC,eAAe,EAAW,EAAM,CAAC,EAAO,SAAS,KAAK,kBAAqR,SAAgB,EAAW,EAAU,CAAC,MAAO,IAAO,CAAC,IAAM,EAAmB,GAAO,EAAW,EAAM,CAAC,OAAoB,EAAKA,EAAU,CAAC,SAAsB,EAAK,EAAU,CAAC,GAAG,EAAM,QAAQ,EAAmB,aAAa,EAAmB,CAAC,CAAC,CAAC,uBAlBngB"}