{"version":3,"file":"URLParam.CVEeEDTn.mjs","names":["useState","useState","_Fragment"],"sources":["https:/framerusercontent.com/modules/IXyIO0XViyVWlWADPgVq/Lqw81tld69F5IRihcQmW/PromoVisibility.js","https:/framerusercontent.com/modules/PSD1UqJQqFBXACNwT2VI/A6S7yfLbZfQspFTriJ1j/URLParam.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useState,useEffect}from\"react\";function useHasPromo(){const[hasPromo,setHasPromo]=useState(false);useEffect(()=>{const params=new URLSearchParams(window.location.search);setHasPromo(params.has(\"promo\")&&params.get(\"promo\")!==\"\");},[]);return hasPromo;}export function withPromoVariant(Component){return props=>{const hasPromo=useHasPromo();return /*#__PURE__*/_jsx(Component,{...props,variant:hasPromo?\"With Promotion\":\"Default\"});};}export function withPromoVariantMobile(Component){return props=>{const hasPromo=useHasPromo();return /*#__PURE__*/_jsx(Component,{...props,variant:hasPromo?\"With Promotion – Mobile\":\"Default\"});};}\nexport const __FramerMetadata__ = {\"exports\":{\"withPromoVariant\":{\"type\":\"reactHoc\",\"name\":\"withPromoVariant\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withPromoVariantMobile\":{\"type\":\"reactHoc\",\"name\":\"withPromoVariantMobile\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./PromoVisibility.map","import{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";import{useState,useEffect}from\"react\";import{addPropertyControls,ControlType}from\"framer\";export default function URLParam({param,fallback,style}){const[fontsReady,setFontsReady]=useState(false);const value=new URLSearchParams(window.location.search).get(param);useEffect(()=>{document.fonts.ready.then(()=>setFontsReady(true));},[]);const containerStyle={...style,display:\"inline-block\",backgroundColor:\"#F4BC2A\",backgroundImage:\"linear-gradient(to bottom, #FCD673, #E1A300)\",color:\"#11263B\",padding:\"8px 16px 8px 12px\",borderRadius:\"20px\",fontSize:\"15px\",// fontFamily: '\"Matter\", sans-serif',\nfontWeight:600,letterSpacing:-.2,whiteSpace:\"nowrap\",fontFamily:'\"Matter\", sans-serif',fontVariationSettings:'\"wght\" 650, \"ital\" 0'};const text=value?`2 months free with code ${(value??\"\").toUpperCase()}`:\"Start your 1 month free trial today\";return /*#__PURE__*/_jsxs(\"p\",{style:containerStyle,children:[value&&/*#__PURE__*/_jsxs(_Fragment,{children:[\"🎁\",/*#__PURE__*/_jsx(\"span\",{style:{marginLeft:\"6px\"}})]}),text]});}URLParam.defaultProps={param:\"name\",fallback:\"Default text\"};addPropertyControls(URLParam,{param:{type:ControlType.String,title:\"Parameter\",defaultValue:\"name\"},fallback:{type:ControlType.String,title:\"Fallback Text\",defaultValue:\"Default text\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"URLParam\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./URLParam.map"],"mappings":"6MAAiF,SAAS,GAAa,CAAC,GAAK,CAAC,EAAS,GAAaA,EAAS,EAAK,EAA2I,OAAzI,MAAc,CAAC,IAAM,EAAO,IAAI,gBAAgB,EAAO,SAAS,MAAM,EAAE,EAAY,EAAO,IAAI,OAAO,GAAG,EAAO,IAAI,OAAO,IAAI,EAAE,CAAE,EAAE,CAAC,CAAC,EAAS,CAAS,CAAC,SAAgB,EAAiB,EAAU,CAAC,MAAO,IAAO,CAAC,IAAM,EAAS,EAAY,EAAE,OAAoB,EAAK,EAAU,CAAC,GAAG,EAAM,QAAQ,EAAS,iBAAiB,SAAS,CAAC,CAAE,CAAE,qBAAzb,IAAsC,KCAyF,SAAwB,EAAS,CAAC,QAAM,WAAS,SAAO,CAAC,GAAK,CAAC,EAAW,GAAeC,EAAS,EAAK,EAAQ,EAAM,IAAI,gBAAgB,EAAO,SAAS,MAAM,CAAC,CAAC,IAAI,CAAK,EAAE,MAAc,CAAC,SAAS,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