{"version":3,"file":"VariantURL.Ca5AU7wW.mjs","names":["useState"],"sources":["https:/framerusercontent.com/modules/SRJVjYEpBm6UX44gmY5X/sRuDinPWYVlqv2bcKsry/VariantURL.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{forwardRef,useEffect,useState}from\"react\";export function changeVariant(Component){return /*#__PURE__*/forwardRef((props,ref)=>{const[variant,setVariant]=useState(\"desktop-annual\");useEffect(()=>{const params=new URLSearchParams(window.location.search);const urlType=params.get(\"type\");//recognised values for type\nconst allowedVariants=[\"business\",\"desktop\",\"mobile\",\"website\"];if(allowedVariants.includes(urlType)){setVariant(urlType);}else{const isMobile=window.innerWidth<810;setVariant(isMobile?\"mobile-annual\":\"desktop-annual\");}},[]);return /*#__PURE__*/_jsx(Component,{ref:ref,...props,variant:variant});});}\nexport const __FramerMetadata__ = {\"exports\":{\"changeVariant\":{\"type\":\"reactHoc\",\"name\":\"changeVariant\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./VariantURL.map"],"mappings":"8IAA4F,SAAgB,EAAc,EAAU,CAAC,OAAoB,GAAY,EAAM,IAAM,CAAC,GAAK,CAAC,EAAQ,GAAYA,EAAS,iBAAiB,CACJ,OADK,MAAc,CAA0D,IAAM,EAAlD,IAAI,gBAAgB,EAAO,SAAS,OAAO,CAAsB,IAAI,OAAO,CACzT,CAAC,WAAW,UAAU,SAAS,UAAU,CAAoB,SAAS,EAAQ,CAAE,EAAW,EAAQ,CAA4C,EAAtB,EAAO,WAAW,IAAwB,gBAAgB,iBAAiB,EAAI,EAAE,CAAC,CAAqB,EAAK,EAAU,CAAK,MAAI,GAAG,EAAc,UAAQ,CAAC,EAAG,sBADhQ,IAAiD"}