{"version":3,"file":"Smartlink.Baly7SWa.mjs","names":["__legacyOverrideHOC_DataObserverContext","_jsx"],"sources":["https:/framerusercontent.com/modules/wLXKcQyaXHSBCft02ua5/QhUFNs2G7I5quqzjiZsh/Smartlink.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";export function SmartLink(){return{onTap(){const ua=navigator.userAgent||navigator.vendor||window.opera;// URLs de destino\nconst iosURL=\"https://apps.apple.com/us/app/cenit-ai/id6749009758\";const androidURL=\"https://play.google.com/store/apps/details?id=ai.cenit.app\";const fallbackURL=\"https://apps.apple.com/us/app/cenit-ai/id6749009758\"// Para PC/Mac\n;// Detección de iOS (iPhone, iPad, iPod)\nconst isIOS=/iPad|iPhone|iPod/.test(ua)||navigator.platform===\"MacIntel\"&&navigator.maxTouchPoints>1;// Detección de Android\nconst isAndroid=/Android/i.test(ua);if(isIOS){window.location.href=iosURL;}else if(isAndroid){window.location.href=androidURL;}else{window.location.href=fallbackURL;}}};}import{useContext as __legacyOverrideHOC_useContext}from\"react\";import{DataObserverContext as __legacyOverrideHOC_DataObserverContext}from\"framer\";export function withSmartLink(C){return props=>{__legacyOverrideHOC_useContext(__legacyOverrideHOC_DataObserverContext);return _jsx(C,{...props,...SmartLink(props)});};}withSmartLink.displayName=\"SmartLink\";\nexport const __FramerMetadata__ = {\"exports\":{\"SmartLink\":{\"type\":\"override\",\"name\":\"SmartLink\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withSmartLink\":{\"type\":\"reactHoc\",\"name\":\"withSmartLink\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Smartlink.map"],"mappings":"mLAA2C,SAAgB,GAAW,CAAC,MAAM,CAAC,OAAO,CAAC,IAAM,EAAG,EAAU,WAAW,EAAU,QAAQ,EAAO,MAGvI,EAAM,mBAAmB,KAAK,EAAG,EAAE,EAAU,WAAW,YAAY,EAAU,eAAe,EAC7F,EAAU,WAAW,KAAK,EAAG,CAAI,EAAO,EAAO,SAAS,KAAK,sDAAgB,EAAW,EAAO,SAAS,KAAK,6DAAiB,EAAO,SAAS,KAAK,uDAAe,CAAqJ,SAAgB,EAAc,EAAE,CAAC,MAAO,KAAQ,EAA+BA,EAAwC,CAAQC,EAAK,EAAE,CAAC,GAAG,EAAM,GAAG,EAAU,EAAM,CAAC,CAAC,uBAJvb,IAI+L,IAAmF,CAAyK,EAAc,YAAY"}