{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/qRyUOv0ZScP1oa8leUMQ/R8w6Squ3KTpb9lVjurhO/Purchar_All_Home.js"],
  "sourcesContent": ["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{createStore}from\"https://framer.com/m/framer/store.js@^1.0.0\";const itemDetailsMap={\"https://tp.mba/tpmba-db-m\":{item_name:\"ThePowerMBA\",coupon:\"\",item_category:\"Programa\",item_brand:\"ThePowerMBA ES\",price:999,currency:\"EUR\"},\"https://tp.mba/tpdm-db-m\":{item_name:\"Digital Marketing\",coupon:\"\",item_category:\"Programa\",item_brand:\"ThePowerMBA ES\",price:999,currency:\"EUR\"},\"https://poweredu.link/tpmbadm-db-m-tr\":{item_name:\"ThePowerMBA + Digital Marketing\",coupon:\"\",item_category:\"Programa\",item_brand:\"ThePowerMBA ES\",price:1499,currency:\"EUR\"},\"https://tp.mba/tpsales-db-m\":{item_name:\"Power Sales\",coupon:\"\",item_category:\"Programa\",item_brand:\"ThePowerMBA ES\",price:999,currency:\"EUR\"},\"https://poweredu.link/tpmba-tpsales-db-m-tr\":{item_name:\"ThePowerMBA + Power Sales\",coupon:\"\",item_category:\"Programa\",item_brand:\"ThePowerMBA ES\",price:1499,currency:\"EUR\"},\"https://poweredu.link/tpdm-tpsales-db\":{item_name:\"Digital Marketing + Power Sales\",coupon:\"\",item_category:\"Programa\",item_brand:\"ThePowerMBA ES\",price:1499,currency:\"EUR\"},\"https://poweredu.link/tpmbadm-sales-db-m-tr\":{item_name:\"ThePowerMBA + Digital Marketing + Power Sales\",coupon:\"\",item_category:\"Programa\",item_brand:\"ThePowerMBA ES\",price:1799,currency:\"EUR\"},\"https://poweredu.link/data-for-business\":{item_name:\"Data for Business\",coupon:\"\",item_category:\"Programa\",item_brand:\"ThePowerMBA ES\",price:999,currency:\"EUR\"}};const useStore=createStore({itemSelected:null});export function withAddToCartEvent(Component){return props=>{const[store,setStore]=useStore();const handleClick=href=>{window.dataLayer.push({ecommerce:null});const itemDetails=itemDetailsMap[href];if(itemDetails){window.dataLayer.push({event:\"add_to_cart\",ecommerce:{currency:itemDetails.currency,value:itemDetails.price,items:[{item_name:itemDetails.item_name,coupon:itemDetails.coupon,item_category:itemDetails.item_category,item_brand:itemDetails.item_brand,price:itemDetails.price,currency:itemDetails.currency}]}});console.log(\"add_to_cart event pushed for:\",itemDetails);setStore({itemSelected:itemDetails});}else{console.error(\"Item details not found for href:\",href);}};return /*#__PURE__*/_jsx(Component,{...props,onClick:()=>{const targetHref=props.href;console.log(\"Link clicked:\",targetHref);handleClick(targetHref);}});};}const CtaButton=props=>{return /*#__PURE__*/_jsx(\"a\",{...props,href:props.href,target:\"_blank\",rel:\"noopener noreferrer\",children:props.children});};const EnhancedCtaButton1=withAddToCartEvent(CtaButton);const EnhancedCtaButton2=withAddToCartEvent(CtaButton);const EnhancedCtaButton3=withAddToCartEvent(CtaButton);const EnhancedCtaButton4=withAddToCartEvent(CtaButton);const EnhancedCtaButton5=withAddToCartEvent(CtaButton);const EnhancedCtaButton6=withAddToCartEvent(CtaButton);const EnhancedCtaButton7=withAddToCartEvent(CtaButton);const EnhancedCtaButton8=withAddToCartEvent(CtaButton);const Home=()=>{return /*#__PURE__*/_jsxs(\"div\",{children:[/*#__PURE__*/_jsx(EnhancedCtaButton1,{href:\"https://tp.mba/tpmba-db-m\",children:\"cta2-comprar\"}),/*#__PURE__*/_jsx(EnhancedCtaButton2,{href:\"https://tp.mba/tpdm-db-m\",children:\"cta2-comprar\"}),/*#__PURE__*/_jsx(EnhancedCtaButton3,{href:\"https://poweredu.link/tpmbadm-db-m-tr\",children:\"cta2-comprar\"}),/*#__PURE__*/_jsx(EnhancedCtaButton4,{href:\"https://tp.mba/tpsales-db-m\",children:\"cta2-comprar\"}),/*#__PURE__*/_jsx(EnhancedCtaButton5,{href:\"https://poweredu.link/tpmba-tpsales-db-m-tr\",children:\"cta2-comprar\"}),/*#__PURE__*/_jsx(EnhancedCtaButton6,{href:\"https://poweredu.link/tpdm-tpsales-db\",children:\"cta2-comprar\"}),/*#__PURE__*/_jsx(EnhancedCtaButton7,{href:\"https://poweredu.link/tpmbadm-sales-db-m-tr\",children:\"cta2-comprar\"}),/*#__PURE__*/_jsx(EnhancedCtaButton8,{href:\"https://poweredu.link/data-for-business\",children:\"cta2-comprar\"})]});};export default Home;\nexport const __FramerMetadata__ = {\"exports\":{\"withAddToCartEvent\":{\"type\":\"reactHoc\",\"name\":\"withAddToCartEvent\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"default\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Purchar_All_Home.map"],
  "mappings": "2HAA8H,IAAMA,EAAe,CAAC,4BAA4B,CAAC,UAAU,cAAc,OAAO,GAAG,cAAc,WAAW,WAAW,iBAAiB,MAAM,IAAI,SAAS,KAAK,EAAE,2BAA2B,CAAC,UAAU,oBAAoB,OAAO,GAAG,cAAc,WAAW,WAAW,iBAAiB,MAAM,IAAI,SAAS,KAAK,EAAE,wCAAwC,CAAC,UAAU,kCAAkC,OAAO,GAAG,cAAc,WAAW,WAAW,iBAAiB,MAAM,KAAK,SAAS,KAAK,EAAE,8BAA8B,CAAC,UAAU,cAAc,OAAO,GAAG,cAAc,WAAW,WAAW,iBAAiB,MAAM,IAAI,SAAS,KAAK,EAAE,8CAA8C,CAAC,UAAU,4BAA4B,OAAO,GAAG,cAAc,WAAW,WAAW,iBAAiB,MAAM,KAAK,SAAS,KAAK,EAAE,wCAAwC,CAAC,UAAU,kCAAkC,OAAO,GAAG,cAAc,WAAW,WAAW,iBAAiB,MAAM,KAAK,SAAS,KAAK,EAAE,8CAA8C,CAAC,UAAU,gDAAgD,OAAO,GAAG,cAAc,WAAW,WAAW,iBAAiB,MAAM,KAAK,SAAS,KAAK,EAAE,0CAA0C,CAAC,UAAU,oBAAoB,OAAO,GAAG,cAAc,WAAW,WAAW,iBAAi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ddToCartEvent", "Component", "props", "store", "setStore", "handleClick", "href", "window", "itemDetails", "p", "targetHref", "CtaButton", "EnhancedCtaButton1", "EnhancedCtaButton2", "EnhancedCtaButton3", "EnhancedCtaButton4", "EnhancedCtaButton5", "EnhancedCtaButton6", "EnhancedCtaButton7", "EnhancedCtaButton8"]
}
