{"version":3,"file":"SmartStoreLink.Dxaz19eP.mjs","names":[],"sources":["https:/framerusercontent.com/modules/9C4wUwrQOnsfCuZ2yT78/ZgZn5puVFvNOaK3mLPrP/SmartStoreLink.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";const APPSTORE_URL=\"https://apps.apple.com/se/app/kvickla/id1634174934\";const GPLAY_URL=\"https://play.google.com/store/apps/details?id=se.singletonapplications.kvickla&hl=sv\";export function withSmartStoreLink(Component){return function(props){const handleClick=event=>{if(typeof window===\"undefined\")return;if(event&&typeof event.preventDefault===\"function\"){event.preventDefault();}const ua=window.navigator.userAgent||\"\";const isIOS=/iPad|iPhone|iPod/.test(ua);const isAndroid=/Android/.test(ua);const url=isAndroid&&!isIOS?GPLAY_URL:APPSTORE_URL;window.open(url,\"_blank\",\"noopener\");};return /*#__PURE__*/_jsx(Component,{...props,onClick:handleClick,onTap:handleClick});};}\nexport const __FramerMetadata__ = {\"exports\":{\"withSmartStoreLink\":{\"type\":\"reactHoc\",\"name\":\"withSmartStoreLink\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./SmartStoreLink.map"],"mappings":"kHAA0N,SAAgB,EAAmB,EAAU,CAAC,OAAO,SAAS,EAAM,CAAC,IAAM,EAAY,GAAO,CAAC,GAAU,IAAS,OAAY,OAAU,GAAO,OAAO,EAAM,gBAAiB,YAAY,EAAM,eAAe,EAAG,IAAM,EAAG,EAAO,UAAU,WAAW,GAAS,EAAM,mBAAmB,KAAK,CAAE,EAA2C,EAAzB,UAAU,KAAK,CAAsB,GAAG,CAAC,EAAM,EAAU,EAAa,EAAO,KAAK,EAAI,SAAS,UAAU,CAAE,EAAE,OAAoB,EAAK,EAAU,CAAC,GAAG,EAAM,QAAQ,EAAY,MAAM,CAAW,CAAC,CAAE,CAAE,yBAArqB,EAAO,EAAa,qDAA2D,EAAU"}