{"version":3,"file":"CapturePromo.CsEL_vXf.mjs","names":["_Fragment"],"sources":["https:/framerusercontent.com/modules/dS8EvCCZ7YznNbOLW9Uv/3IzGog3eooSoD6DtWpO9/promoStore.js","https:/framerusercontent.com/modules/SK20CWqHVCsUS4VFnqsa/IIafsE20d3GtzKqHU9mc/CapturePromo.js"],"sourcesContent":["const STORAGE_KEY=\"discountCode\";const storeDiscountCode=code=>{try{if(typeof sessionStorage!==\"undefined\"){sessionStorage.setItem(STORAGE_KEY,code);}}catch(error){console.error(`Error:`,error);}};const getDiscountCode=()=>{try{if(typeof sessionStorage!==\"undefined\"){const propValue=sessionStorage.getItem(STORAGE_KEY);if(propValue){return propValue;}}}catch(error){console.error(`Error:`,error);}return\"\";};export default{storeDiscountCode,getDiscountCode};\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./promoStore.map","import{jsx as _jsx,Fragment as _Fragment}from\"react/jsx-runtime\";import{useEffect}from\"react\";import{addPropertyControls}from\"framer\";import promo from\"https://framerusercontent.com/modules/dS8EvCCZ7YznNbOLW9Uv/3IzGog3eooSoD6DtWpO9/promoStore.js\";export default function CapturePromo({pageCategory,tnsExperiment}){useEffect(()=>{try{if(typeof window!==\"undefined\"){const href=(window?.location?.href||\"\").toLowerCase();if(href.includes(\"bestgift\")){promo.storeDiscountCode(\"bestgift\");}}}catch(e){console.error(e);}},[]);return /*#__PURE__*/_jsx(_Fragment,{});}// /////////////////////////////////////////////////////////////////\n// STYLES\n// /////////////\nCapturePromo.defaultProps={};addPropertyControls(CapturePromo,{});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"CapturePromo\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}"],"mappings":"8MAAM,EAAY,eAAqB,EAAkB,GAAM,CAAC,GAAG,CAAI,OAAO,eAAiB,KAAa,eAAe,QAAQ,EAAY,EAAK,OAAS,EAAM,CAAC,QAAQ,MAAM,SAAS,EAAM,GAAU,MAAoB,CAAC,GAAG,CAAC,GAAG,OAAO,eAAiB,IAAY,CAAC,IAAM,EAAU,eAAe,QAAQ,EAAY,CAAC,GAAG,EAAW,OAAO,SAAmB,EAAM,CAAC,QAAQ,MAAM,SAAS,EAAM,CAAE,MAAM,MAAmB,CAAC,oBAAkB,kBAAgB,ICAnN,SAAwB,EAAa,CAAC,eAAa,iBAAe,CAAgN,OAA/M,MAAc,CAAC,GAAG,CAAW,IAAS,SAAyB,GAAQ,UAAU,MAAM,IAAI,aAAa,CAAS,SAAS,WAAW,EAAE,EAAM,kBAAkB,WAAW,OAAU,EAAE,CAAC,QAAQ,MAAM,EAAE,GAAI,EAAE,CAAC,CAAqB,EAAKA,EAAU,EAAE,CAAC,sBAA9e,IAA6B,IAAwC,IAAiH,CAGvP,EAAa,aAAa,EAAE,CAAC,EAAoB,EAAa,EAAE,CAAC"}