{"version":3,"file":"SmartStoreButton.DeIOYVvx.mjs","names":["__legacyOverrideHOC_DataObserverContext","_jsx"],"sources":["https:/framerusercontent.com/modules/kjeNRfxaVHGEZgRAkk49/TkPwoUxMLGKVJ1GYBKfn/SmartStoreButton.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";function getTargetUrl(playStoreUrl,appStoreUrl,fallbackUrl){// Evita errores en preview/server\nif(typeof window===\"undefined\")return fallbackUrl;const ua=navigator.userAgent||\"\";const platform=navigator?.userAgentData?.platform||navigator.platform||\"\";const isAndroid=/Android/i.test(ua)||/android/i.test(String(platform));const isIOS=/iPhone|iPad|iPod/i.test(ua)||/Mac/i.test(String(platform))&&\"ontouchend\"in document// iPadOS a veces reporta Mac\n;if(isAndroid)return playStoreUrl;if(isIOS)return appStoreUrl;return fallbackUrl;}export function StoreRedirect(){const PLAY=\"https://play.google.com/store/apps/details?id=com.biyon.wallet\";const APPLE=\"https://apps.apple.com/pe/app/biyon/id6479525672\";const FALLBACK=\"https://biyon.pe/\"// landing con ambos links\n;return{onTap(){const url=getTargetUrl(PLAY,APPLE,FALLBACK);window.location.assign(url);}};}import{useContext as __legacyOverrideHOC_useContext}from\"react\";import{DataObserverContext as __legacyOverrideHOC_DataObserverContext}from\"framer\";export function withStoreRedirect(C){return props=>{__legacyOverrideHOC_useContext(__legacyOverrideHOC_DataObserverContext);return _jsx(C,{...props,...StoreRedirect(props)});};}withStoreRedirect.displayName=\"StoreRedirect\";\nexport const __FramerMetadata__ = {\"exports\":{\"withStoreRedirect\":{\"type\":\"reactHoc\",\"name\":\"withStoreRedirect\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"StoreRedirect\":{\"type\":\"override\",\"name\":\"StoreRedirect\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./SmartStoreButton.map"],"mappings":"wLAA2C,SAAS,EAAa,EAAa,EAAY,EAAY,CACtG,GAAU,IAAS,OAAY,OAAO,EAAY,IAAM,EAAG,EAAU,WAAW,GAAS,EAAS,GAAW,eAAe,UAAU,EAAU,UAAU,GAAS,EAAU,WAAW,KAAK,EAAG,EAAE,WAAW,KAAK,OAAO,EAAS,CAAC,CAAO,EAAM,oBAAoB,KAAK,EAAG,EAAE,OAAO,KAAK,OAAO,EAAS,CAAC,EAAE,eAAe,SAC9P,OAA1D,EAAiB,EAAgB,EAAa,EAAmB,EAAa,SAAgB,GAAe,CAChH,MAAM,CAAC,OAAO,CAAC,IAAM,EAAI,EAAa,iEAAK,mDAAM,oBAAS,CAAC,EAAO,SAAS,OAAO,EAAI,EAAG,CAAqJ,SAAgB,EAAkB,EAAE,CAAC,MAAO,KAAQ,EAA+BA,EAAwC,CAAQC,EAAK,EAAE,CAAC,GAAG,EAAM,GAAG,EAAc,EAAM,CAAC,CAAC,uBAHjX,IAGiH,IAAmF,CAAiL,EAAkB,YAAY"}