{"version":3,"file":"DeviceLinkButton_Community_1.u79oaB9U.mjs","names":["React.useState","__legacyOverrideHOC_DataObserverContext","_jsx"],"sources":["https:/framerusercontent.com/modules/q1wLlPDjXilvBVm7Y8Vj/1pWuxEoKRQmPegzUYVHQ/DeviceLinkButton_Community_1.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import*as React from\"react\";export function DeviceLinkButton(){// state to hold which URL we'll use\nconst[href,setHref]=React.useState(\"https://community.property-filter.co.uk/\");React.useEffect(()=>{const ua=navigator.userAgent||navigator.vendor||window.opera;// Check if it's a mobile/tablet device first\nconst isMobile=/Mobile|Android|iPhone|iPad|iPod|tablet|BlackBerry|Opera Mini|IEMobile/i.test(ua);// Android detection (mobile/tablet only)\nif(/android/i.test(ua)&&isMobile){setHref(\"https://play.google.com/store/apps/details?id=property.filter.community\");}else if(/iPad|iPhone|iPod/.test(ua)&&!window.MSStream&&isMobile){setHref(\"https://apps.apple.com/us/app/property-filter-community/id6739543488?platform=iphone\");}else if(/Mac|Macintosh/i.test(ua)&&!isMobile){setHref(\"https://community.property-filter.co.uk/\");}else{setHref(\"https://community.property-filter.co.uk/\");}},[]);return{href:href,target:\"_self\",// Keep onTap as fallback for any edge cases\nonTap(){window.open(href,\"_self\");}};}import{useContext as __legacyOverrideHOC_useContext}from\"react\";import{DataObserverContext as __legacyOverrideHOC_DataObserverContext}from\"framer\";export function withDeviceLinkButton(C){return props=>{__legacyOverrideHOC_useContext(__legacyOverrideHOC_DataObserverContext);return _jsx(C,{...props,...DeviceLinkButton(props)});};}withDeviceLinkButton.displayName=\"DeviceLinkButton\";\nexport const __FramerMetadata__ = {\"exports\":{\"DeviceLinkButton\":{\"type\":\"override\",\"name\":\"DeviceLinkButton\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withDeviceLinkButton\":{\"type\":\"reactHoc\",\"name\":\"withDeviceLinkButton\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./DeviceLinkButton_Community_1.map"],"mappings":"uMAAuE,SAAgB,GAAkB,CACzG,GAAK,CAAC,EAAK,GAASA,EAAe,2CAA2C,CAE6W,OAF5W,MAAoB,CAAC,IAAM,EAAG,EAAU,WAAW,EAAU,QAAQ,EAAO,MACrJ,EAAS,yEAAyE,KAAK,EAAG,CAC7F,WAAW,KAAK,EAAG,EAAE,EAAU,EAAQ,0EAA0E,CAAU,mBAAmB,KAAK,EAAG,EAAE,CAAC,EAAO,UAAU,EAAU,EAAQ,uFAAuF,EAAU,iBAAiB,KAAK,EAAG,CAAa,EAAQ,2CAA2C,GAA8D,EAAE,CAAC,CAAO,CAAM,OAAK,OAAO,QACnd,OAAO,CAAC,EAAO,KAAK,EAAK,QAAQ,EAAG,CAAqJ,SAAgB,EAAqB,EAAE,CAAC,MAAO,KAAQ,EAA+BC,EAAwC,CAAQC,EAAK,EAAE,CAAC,GAAG,EAAM,GAAG,EAAiB,EAAM,CAAC,CAAC,uBAJjU,IAA4B,IAIkH,CAAuL,EAAqB,YAAY"}