{"version":3,"file":"StoreLink.DjVorKJH.mjs","names":["__esmMin","navigator","window","init_ssg_sandbox_shims","init_jsx_runtime","c","getStoreUrl","DESKTOP_URL","ua","IOS_URL","ANDROID_URL","withStoreLink","Component","props","init_StoreLink"],"sources":["https:/framerusercontent.com/modules/kq3W5VqJMlP3yCwnpXde/OBcEpxLBimBQjewYRjkM/StoreLink.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";const IOS_URL=\"https://apps.apple.com/it/app/tundr-fringe/id6480926915\";const ANDROID_URL=\"https://play.google.com/store/apps/details?id=tech.tundr.welfare\";// Da computer: pagina Linktree con entrambi i link e il QR \"View on mobile\"\nconst DESKTOP_URL=\"https://tundr.tech/qr\";function getStoreUrl(){if(typeof navigator===\"undefined\")return DESKTOP_URL;const ua=navigator.userAgent||\"\";const isIOS=/iPad|iPhone|iPod/.test(ua)||navigator.platform===\"MacIntel\"&&navigator.maxTouchPoints>1;if(isIOS)return IOS_URL;if(/Android/i.test(ua))return ANDROID_URL;return DESKTOP_URL;}export function withStoreLink(Component){return props=>/*#__PURE__*/_jsx(Component,{...props,style:{...props.style,cursor:\"pointer\"},onClick:e=>{e?.preventDefault?.();window.location.href=getStoreUrl();}});}\nexport const __FramerMetadata__ = {\"exports\":{\"withStoreLink\":{\"type\":\"reactHoc\",\"name\":\"withStoreLink\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./StoreLink.map"],"mappings":"A,yHAC0C,SAASM,GAAa,CAAC,GAAUL,IAAY,OAAY,OAAOM,EAAY,IAAMC,EAAGP,EAAU,WAAW,GAA0K,MAA3J,mBAAmB,KAAKO,CAAE,GAAGP,EAAU,WAAW,YAAYA,EAAU,eAAe,EAAkBQ,EAAW,WAAW,KAAKD,CAAE,EAASE,EAAmBH,CAAY,CAAC,SAAgBI,EAAc,EAAU,CAAC,MAAO,IAAoB,gBAAKC,EAAU,CAAC,GAAGC,EAAM,MAAM,CAAC,GAAGA,EAAM,MAAM,OAAO,SAAS,EAAE,QAAQ,GAAG,CAAC,GAAG,iBAAiB,EAAE,EAAO,SAAS,KAAKP,EAAY,CAAE,CAAC,CAAC,CAAE,C,gDAD/e,EAAQ,0DAAgE,EAAY,mEAC/H,EAAY,uB"}