{"version":3,"file":"CapturePromo.C36gaIN3.mjs","names":["_Fragment"],"sources":["https:/framerusercontent.com/modules/o4MTOuax2YukFRegcIVk/ZvVDDZD89AaQar4VxfdS/store_Promotion.js","https:/framerusercontent.com/modules/SK20CWqHVCsUS4VFnqsa/A8GlUorM6639ilcS0NGp/CapturePromo.js"],"sourcesContent":["// A central createStore file:\nimport{createStore}from\"https://framer.com/m/framer/store.js@^1.0.0\";export const store_Promotion=createStore({code:\"\",discount:0});\nexport const __FramerMetadata__ = {\"exports\":{\"store_Promotion\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./store_Promotion.map","import{jsx as _jsx,Fragment as _Fragment}from\"react/jsx-runtime\";import{useEffect}from\"react\";import{addPropertyControls}from\"framer\";import{store_Promotion}from\"https://framerusercontent.com/modules/o4MTOuax2YukFRegcIVk/ZvVDDZD89AaQar4VxfdS/store_Promotion.js\";export default function CapturePromo({pageCategory,tnsExperiment}){const[promo,setPromo]=store_Promotion();useEffect(()=>{try{if(typeof window!==\"undefined\"){const href=(window?.location?.href||\"\").toLowerCase();if(href.includes(\"bestgift\")){console.log(`CAPTURE PROMO SET CODE!`);setPromo({code:\"bestgift\",discount:20});}}}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\"}}}\n//# sourceMappingURL=./CapturePromo.map"],"mappings":"+XACqE,CAAa,EAAgB,EAAY,CAAC,KAAK,GAAG,SAAS,EAAE,CAAC,ICDmI,SAAwB,EAAa,CAAC,eAAa,iBAAe,CAAC,GAAK,CAAC,EAAM,GAAU,GAAiB,CAA2P,OAA1P,MAAc,CAAC,GAAG,CAAW,IAAS,SAAyB,GAAQ,UAAU,MAAM,IAAI,aAAa,CAAS,SAAS,WAAW,GAAE,QAAQ,IAAI,0BAA0B,CAAC,EAAS,CAAC,KAAK,WAAW,SAAS,GAAG,CAAC,QAAU,EAAE,CAAC,QAAQ,MAAM,EAAE,GAAI,EAAE,CAAC,CAAqB,EAAKA,EAAU,EAAE,CAAC,sBAAhlB,IAA6B,IAAwC,IAAgI,CAGtQ,EAAa,aAAa,EAAE,CAAC,EAAoB,EAAa,EAAE,CAAC"}