{"version":3,"file":"Addons_V2.Dd5o7NK0.mjs","names":["openGetAppModal"],"sources":["https:/framerusercontent.com/modules/edBGqW7yBqonmlg9JTkP/1uhWOkPBj6RoIX9BCYEQ/Addons_V2.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{forwardRef}from\"react\";// Learn more: https://www.framer.com/developers/overrides/\nexport function goToSubscribeAddonPage(Component){const isSubscribed=window.location.search.includes(\"isSubscribed\");const onClickSubscribe=()=>{if(isSubscribed)return;parent.postMessage({messageType:\"subscribeToAddon\"},\"*\");};return /*#__PURE__*/forwardRef((props,ref)=>{return /*#__PURE__*/_jsx(Component,{ref:ref,...props,style:{backgroundColor:!isSubscribed?\"#001205\":\"#F8F8F8\",color:!isSubscribed?\"#FFFFFF\":\"#C5CEE0\",cursor:!isSubscribed?\"pointer\":\"not-allowed\"},onClick:()=>onClickSubscribe()});});}export function goToDownloadPage(Component){const onClickOpenDownloadPage=()=>{parent.postMessage({messageType:\"downloadLearnyfy\"},\"*\");};return /*#__PURE__*/forwardRef((props,ref)=>{return /*#__PURE__*/_jsx(Component,{ref:ref,...props,onClick:()=>onClickOpenDownloadPage()});});}export function openGetAppModal(Component){const openGetAppModal=()=>{parent.postMessage({messageType:\"openGetAppModal\"},\"*\");};return /*#__PURE__*/forwardRef((props,ref)=>{return /*#__PURE__*/_jsx(Component,{ref:ref,...props,onClick:()=>openGetAppModal()});});}export function goToPlusPlanCheckoutPage(Component){const onClick=()=>{parent.postMessage({messageType:\"plusPlanCheckout\"},\"*\");};return /*#__PURE__*/forwardRef((props,ref)=>{return /*#__PURE__*/_jsx(Component,{ref:ref,...props,onClick:()=>onClick()});});}\nexport const __FramerMetadata__ = {\"exports\":{\"goToPlusPlanCheckoutPage\":{\"type\":\"reactHoc\",\"name\":\"goToPlusPlanCheckoutPage\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"goToDownloadPage\":{\"type\":\"reactHoc\",\"name\":\"goToDownloadPage\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"goToSubscribeAddonPage\":{\"type\":\"reactHoc\",\"name\":\"goToSubscribeAddonPage\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"openGetAppModal\":{\"type\":\"reactHoc\",\"name\":\"openGetAppModal\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Addons_V2.map"],"mappings":"gIACA,SAAgB,EAAuB,EAAU,CAAC,IAAM,EAAa,EAAO,SAAS,OAAO,SAAS,eAAe,CAAO,MAAqB,CAAI,GAAoB,OAAO,YAAY,CAAC,YAAY,mBAAmB,CAAC,IAAI,EAAG,OAAoB,GAAY,EAAM,IAA2B,EAAK,EAAU,CAAK,MAAI,GAAG,EAAM,MAAM,CAAC,gBAAiB,EAAuB,UAAV,UAAoB,MAAO,EAAuB,UAAV,UAAoB,OAAQ,EAAuB,cAAV,UAAwB,CAAC,YAAY,GAAkB,CAAC,CAAC,CAAG,CAAE,SAAgB,EAAiB,EAAU,CAAC,IAAM,MAA4B,CAAC,OAAO,YAAY,CAAC,YAAY,mBAAmB,CAAC,IAAI,EAAG,OAAoB,GAAY,EAAM,IAA2B,EAAK,EAAU,CAAK,MAAI,GAAG,EAAM,YAAY,GAAyB,CAAC,CAAC,CAAG,CAAE,SAAgB,EAAgB,EAAU,CAAC,IAAMA,MAAoB,CAAC,OAAO,YAAY,CAAC,YAAY,kBAAkB,CAAC,IAAI,EAAG,OAAoB,GAAY,EAAM,IAA2B,EAAK,EAAU,CAAK,MAAI,GAAG,EAAM,YAAYA,GAAiB,CAAC,CAAC,CAAG,CAAE,SAAgB,EAAyB,EAAU,CAAC,IAAM,MAAY,CAAC,OAAO,YAAY,CAAC,YAAY,mBAAmB,CAAC,IAAI,EAAG,OAAoB,GAAY,EAAM,IAA2B,EAAK,EAAU,CAAK,MAAI,GAAG,EAAM,YAAY,GAAS,CAAC,CAAC,CAAG,sBAD1uC,IAA8B"}