{"version":3,"file":"ShowStoreButtons.BWPION_Q.mjs","names":["useState"],"sources":["https:/framerusercontent.com/modules/kfi3HkufPq3wa960gFAi/TvbscUNJYqw3Abs0sELY/ShowStoreButtons.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useState,useEffect}from\"react\";const getVariantFromUrl=params=>{const platform=params.get(\"p\");if(platform===\"ios\"){return\"ios_variant\";}else if(platform===\"android\"){return\"android_variant\";}else{return\"default_variant\";}};export function withURLVariant(Component){return props=>{const[variant,setVariant]=useState(\"default_variant\");useEffect(()=>{if(typeof window!==\"undefined\"){const urlParams=new URLSearchParams(window.location.search);setVariant(getVariantFromUrl(urlParams));}},[]);return /*#__PURE__*/ _jsx(Component,{...props,variant:variant});};}\nexport const __FramerMetadata__ = {\"exports\":{\"withURLVariant\":{\"type\":\"reactHoc\",\"name\":\"withURLVariant\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ShowStoreButtons.map"],"mappings":"2MAAkR,SAAgB,EAAe,EAAU,CAAC,MAAO,IAAO,CAAC,GAAK,CAAC,EAAQ,GAAYA,EAAS,kBAAkB,CAA4J,OAA3J,MAAc,CAAC,GAAU,IAAS,OAAY,CAAC,IAAM,EAAU,IAAI,gBAAgB,EAAO,SAAS,OAAO,CAAC,EAAW,EAAkB,EAAU,CAAC,GAAI,EAAE,CAAC,CAAsB,EAAK,EAAU,CAAC,GAAG,EAAc,UAAQ,CAAC,yBAAhjB,IAAsC,CAAM,EAAkB,GAAQ,CAAC,IAAM,EAAS,EAAO,IAAI,IAAI,CAAuG,OAAnG,IAAW,MAAa,cAAuB,IAAW,UAAiB,kBAA8B"}