{"version":3,"file":"UpgradePlan.DCa1zFIF.mjs","names":["useState"],"sources":["https:/framerusercontent.com/modules/UlZfp0WK1uqvpcS2hsN7/m47lib1kGvV28TbRFg45/UpgradePlan.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect,useState}from\"react\";export function withQueryParameterEmail(Component){return props=>{const[email,setEmail]=useState(\"\");useEffect(()=>{const params=new URLSearchParams(window.location.search);const emailParam=params.get(\"email\")||\"\";setEmail(emailParam);},[]);return /*#__PURE__*/_jsx(Component,{...props,style:{visibility:\"hidden\"},value:email,defaultValue:email});};}export function withCloseButton(Component){return props=>{useEffect(()=>{console.debug(JSON.stringify({type:\"completed\"}));},[]);return /*#__PURE__*/_jsx(Component,{...props,onClick:()=>{console.debug(JSON.stringify({type:\"buttonClicked\"}));}});};}export function withOpenLink(Component){return props=>{return /*#__PURE__*/_jsx(Component,{...props,onClick:()=>{console.debug(JSON.stringify({type:\"openLink\",link:\"https://www.anigma-ai.com/ko/docs/refund-policy\"}));}});};}export function withCardRegistrationMonthlyButton(Component){return props=>{return /*#__PURE__*/_jsx(Component,{...props,onClick:()=>{console.debug(JSON.stringify({type:\"registerCard\",membership:2}));}});};}export function withCardRegistrationAnnualButton(Component){return props=>{return /*#__PURE__*/_jsx(Component,{...props,onClick:()=>{console.debug(JSON.stringify({type:\"registerCard\",membership:3}));}});};}\nexport const __FramerMetadata__ = {\"exports\":{\"withCardRegistrationMonthlyButton\":{\"type\":\"reactHoc\",\"name\":\"withCardRegistrationMonthlyButton\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withOpenLink\":{\"type\":\"reactHoc\",\"name\":\"withOpenLink\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withQueryParameterEmail\":{\"type\":\"reactHoc\",\"name\":\"withQueryParameterEmail\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withCloseButton\":{\"type\":\"reactHoc\",\"name\":\"withCloseButton\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withCardRegistrationAnnualButton\":{\"type\":\"reactHoc\",\"name\":\"withCardRegistrationAnnualButton\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./UpgradePlan.map"],"mappings":"uIAAiF,SAAgB,EAAwB,EAAU,CAAC,MAAO,IAAO,CAAC,GAAK,CAAC,EAAM,GAAUA,EAAS,GAAG,CAA6I,OAA5I,MAAc,CAAmG,EAArF,IAAI,gBAAgB,EAAO,SAAS,OAAO,CAAyB,IAAI,QAAQ,EAAE,GAAuB,EAAG,EAAE,CAAC,CAAqB,EAAK,EAAU,CAAC,GAAG,EAAM,MAAM,CAAC,WAAW,SAAS,CAAC,MAAM,EAAM,aAAa,EAAM,CAAC,EAAI,SAAgB,EAAgB,EAAU,CAAC,MAAO,KAAQ,MAAc,CAAC,QAAQ,MAAM,KAAK,UAAU,CAAC,KAAK,YAAY,CAAC,CAAC,EAAG,EAAE,CAAC,CAAqB,EAAK,EAAU,CAAC,GAAG,EAAM,YAAY,CAAC,QAAQ,MAAM,KAAK,UAAU,CAAC,KAAK,gBAAgB,CAAC,CAAC,EAAG,CAAC,EAAI,SAAgB,EAAa,EAAU,CAAC,MAAO,IAA4B,EAAK,EAAU,CAAC,GAAG,EAAM,YAAY,CAAC,QAAQ,MAAM,KAAK,UAAU,CAAC,KAAK,WAAW,KAAK,kDAAkD,CAAC,CAAC,EAAG,CAAC,CAAI,SAAgB,EAAkC,EAAU,CAAC,MAAO,IAA4B,EAAK,EAAU,CAAC,GAAG,EAAM,YAAY,CAAC,QAAQ,MAAM,KAAK,UAAU,CAAC,KAAK,eAAe,WAAW,EAAE,CAAC,CAAC,EAAG,CAAC,CAAI,SAAgB,EAAiC,EAAU,CAAC,MAAO,IAA4B,EAAK,EAAU,CAAC,GAAG,EAAM,YAAY,CAAC,QAAQ,MAAM,KAAK,UAAU,CAAC,KAAK,eAAe,WAAW,EAAE,CAAC,CAAC,EAAG,CAAC,sBAArvC,IAAsC"}