{"version":3,"file":"ButtonOs.Do_5SiKm.mjs","names":["React.useState"],"sources":["https:/framerusercontent.com/modules/IAHAcs8IlvAGjkp80uHN/Il018UhezYbU85St0cXK/ButtonOs.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import*as React from\"react\";import{addPropertyControls}from\"framer\";export function StoreButton(){const[os,setOS]=React.useState(\"other\");React.useEffect(()=>{const ua=navigator.userAgent||navigator.vendor||window.opera;if(/android/i.test(ua))setOS(\"android\");else if(/iPad|iPhone|iPod/.test(ua)&&!window.MSStream)setOS(\"ios\");},[]);const linkStyle={display:\"inline-block\",textDecoration:\"none\",backgroundColor:\"transparent\",padding:0,borderRadius:0,lineHeight:0};const imgStyle={height:64,display:\"block\"};const openInSameTab=url=>{window.location.href=url;};if(os===\"android\"){return /*#__PURE__*/_jsx(\"a\",{href:\"https://play.google.com/store/apps/details?id=com.aden.application\",style:linkStyle,children:/*#__PURE__*/_jsx(\"img\",{src:\"https://upload.wikimedia.org/wikipedia/commons/7/78/Google_Play_Store_badge_EN.svg\",alt:\"Google Play\",style:imgStyle})});}if(os===\"ios\"){return /*#__PURE__*/_jsx(\"div\",{onClick:()=>openInSameTab(\"https://apps.apple.com/fr/app/aden-society/id6752650967\"),style:{...linkStyle,cursor:\"pointer\"},children:/*#__PURE__*/_jsx(\"img\",{src:\"https://developer.apple.com/assets/elements/badges/download-on-the-app-store.svg\",alt:\"App Store\",style:imgStyle})});}return null;}addPropertyControls(StoreButton,{});\nexport const __FramerMetadata__ = {\"exports\":{\"StoreButton\":{\"type\":\"reactComponent\",\"name\":\"StoreButton\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ButtonOs.map"],"mappings":"+LAA+G,SAAgB,GAAa,CAAC,GAAK,CAAC,EAAG,GAAOA,EAAe,QAAQ,CAAC,MAAoB,CAAC,IAAM,EAAG,EAAU,WAAW,EAAU,QAAQ,EAAO,MAAS,WAAW,KAAK,EAAG,CAAC,EAAM,UAAU,CAAS,mBAAmB,KAAK,EAAG,EAAE,CAAC,EAAO,UAAS,EAAM,MAAM,EAAG,EAAE,CAAC,CAAC,IAAM,EAAU,CAAC,QAAQ,eAAe,eAAe,OAAO,gBAAgB,cAAc,QAAQ,EAAE,aAAa,EAAE,WAAW,EAAE,CAAO,EAAS,CAAC,OAAO,GAAG,QAAQ,QAAQ,CAAO,EAAc,GAAK,CAAC,EAAO,SAAS,KAAK,GAAynB,OAAhnB,IAAK,UAA+B,EAAK,IAAI,CAAC,KAAK,qEAAqE,MAAM,EAAU,SAAsB,EAAK,MAAM,CAAC,IAAI,qFAAqF,IAAI,cAAc,MAAM,EAAS,CAAC,CAAC,CAAC,CAAK,IAAK,MAA2B,EAAK,MAAM,CAAC,YAAY,EAAc,0DAA0D,CAAC,MAAM,CAAC,GAAG,EAAU,OAAO,UAAU,CAAC,SAAsB,EAAK,MAAM,CAAC,IAAI,mFAAmF,IAAI,YAAY,MAAM,EAAS,CAAC,CAAC,CAAC,CAAS,0BAA1qC,IAA4B,IAAwC,CAA4mC,EAAoB,EAAY,EAAE,CAAC"}