{"version":3,"file":"Buttons.CWeFIBZb.mjs","names":["fonts","css","className","React.useContext","React.useMemo","React.Fragment","sharedStyle.className","React.useRef","React.useId","className","Image","css","sharedStyle.css","sharedStyle.fonts","useStore","useState","Component"],"sources":["https:/framerusercontent.com/modules/n1pUIiIkE4qQAv8mOYcR/7nnwU8a3ucCrIgKABZJE/v7zKqM1AH.js","https:/framerusercontent.com/modules/Kh44aN43tHCmMN9QAz3a/tYeVNS5xDosHkjRP3Mk8/IoVRz12tF.js","https:/framerusercontent.com/modules/hjUdo7n6wrtyQ27RdCIR/e6Ze3CyZ6GOZxY00Wo1q/eBfed_Wk7.js","https:/framer.com/m/framer/store.js@^1.0.0","https:/framerusercontent.com/modules/zUXmPjA2FvuC0Rtmad60/1tqwTBqnluyAlkq1tzIZ/Analytics.js","https:/framerusercontent.com/modules/gKio7v6aeg3qMR2hngca/fXy1jRwC8Vf2sY0FTfqB/Buttons.js"],"sourcesContent":["// Generated by Framer (6807895)\nimport{fontStore}from\"framer\";fontStore.loadFonts([\"FS;Manrope-semibold\",\"FS;Manrope-bold\"]);export const fonts=[{explicitInter:true,fonts:[{family:\"Manrope\",source:\"fontshare\",style:\"normal\",url:\"https://framerusercontent.com/third-party-assets/fontshare/wf/6U2SGH566NSNERG6RGEV3DSNEK7DL2RF/JRDYRKMSAW2H35IWEQIPL67HAJQ35MG5/JNU3GNMUBPWW6V6JTED3S27XL5HN7NM5.woff2\",weight:\"600\"},{family:\"Manrope\",source:\"fontshare\",style:\"normal\",url:\"https://framerusercontent.com/third-party-assets/fontshare/wf/NGBUP45ES3F7RD5XGKPEDJ6QEPO4TMOK/EXDVWJ2EDDVVV65UENMX33EDDYBX6OF7/6P4FPMFQH7CCC7RZ4UU4NKSGJ2RLF7V5.woff2\",weight:\"700\"}]}];export const css=['.framer-NtvLd .framer-styles-preset-1dvramg:not(.rich-text-wrapper), .framer-NtvLd .framer-styles-preset-1dvramg.rich-text-wrapper p { --framer-font-family: \"Manrope\", \"Manrope Placeholder\", sans-serif; --framer-font-family-bold: \"Manrope\", \"Manrope Placeholder\", sans-serif; --framer-font-open-type-features: normal; --framer-font-size: 24px; --framer-font-style: normal; --framer-font-style-bold: normal; --framer-font-variation-axes: normal; --framer-font-weight: 600; --framer-font-weight-bold: 700; --framer-letter-spacing: 0em; --framer-line-height: 1.2em; --framer-paragraph-spacing: 20px; --framer-text-alignment: start; --framer-text-color: #ffffff; --framer-text-decoration: none; --framer-text-stroke-color: initial; --framer-text-stroke-width: initial; --framer-text-transform: none; }'];export const className=\"framer-NtvLd\";\nexport const __FramerMetadata__ = {\"exports\":{\"className\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"fonts\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"css\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}","// Generated by Framer (f082bd6)\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addFonts,addPropertyControls,ControlType,cx,getFontsFromSharedStyle,getLoadingLazyAtYPosition,Image,Link,RichText,useComponentViewport,useLocaleInfo,useVariantState,withCSS}from\"framer\";import{LayoutGroup,motion,MotionConfigContext}from\"framer-motion\";import*as React from\"react\";import*as sharedStyle from\"https://framerusercontent.com/modules/n1pUIiIkE4qQAv8mOYcR/7nnwU8a3ucCrIgKABZJE/v7zKqM1AH.js\";const enabledGestures={ZstRd66Bt:{hover:true,pressed:true}};const serializationHash=\"framer-chdjE\";const variantClassNames={ZstRd66Bt:\"framer-v-ngodbz\"};function addPropertyOverrides(overrides,...variants){const nextOverrides={};variants?.forEach(variant=>variant&&Object.assign(nextOverrides,overrides[variant]));return nextOverrides;}const transition1={delay:0,duration:.2,ease:[.12,.23,.5,1],type:\"tween\"};const Transition=({value,children})=>{const config=React.useContext(MotionConfigContext);const transition=value??config.transition;const contextValue=React.useMemo(()=>({...config,transition}),[JSON.stringify(transition)]);return /*#__PURE__*/_jsx(MotionConfigContext.Provider,{value:contextValue,children:children});};const Variants=motion.create(React.Fragment);const getProps=({height,id,link,title,width,...props})=>{return{...props,D65BjtdWP:title??props.D65BjtdWP??\"Get My English Level\",k77tqf56y:link??props.k77tqf56y};};const createLayoutDependency=(props,variants)=>{if(props.layoutDependency)return variants.join(\"-\")+props.layoutDependency;return variants.join(\"-\");};const Component=/*#__PURE__*/React.forwardRef(function(props,ref){const{activeLocale,setLocale}=useLocaleInfo();const{style,className,layoutId,variant,D65BjtdWP,k77tqf56y,...restProps}=getProps(props);const{baseVariant,classNames,clearLoadingGesture,gestureHandlers,gestureVariant,isLoading,setGestureState,setVariant,variants}=useVariantState({defaultVariant:\"ZstRd66Bt\",enabledGestures,variant,variantClassNames});const layoutDependency=createLayoutDependency(props,variants);const sharedStyleClassNames=[sharedStyle.className];const scopingClassNames=cx(serializationHash,...sharedStyleClassNames);const ref1=React.useRef(null);const defaultLayoutId=React.useId();const componentViewport=useComponentViewport();return /*#__PURE__*/_jsx(LayoutGroup,{id:layoutId??defaultLayoutId,children:/*#__PURE__*/_jsx(Variants,{animate:variants,initial:false,children:/*#__PURE__*/_jsx(Transition,{value:transition1,children:/*#__PURE__*/_jsx(motion.div,{...restProps,...gestureHandlers,\"aria-label\":\"Try Fluently app for free\",className:cx(scopingClassNames,\"framer-ngodbz\",className,classNames),\"data-framer-name\":\"Default\",layoutDependency:layoutDependency,layoutId:\"ZstRd66Bt\",ref:ref??ref1,style:{opacity:1,...style},variants:{\"ZstRd66Bt-pressed\":{opacity:.8}},...addPropertyOverrides({\"ZstRd66Bt-hover\":{\"data-framer-name\":undefined},\"ZstRd66Bt-pressed\":{\"data-framer-name\":undefined}},baseVariant,gestureVariant),children:/*#__PURE__*/_jsx(Link,{href:k77tqf56y,nodeId:\"oDJPGRuRA\",openInNewTab:true,children:/*#__PURE__*/_jsxs(motion.a,{className:\"framer-1ijgqy8 framer-1k3wn69\",\"data-border\":true,\"data-framer-name\":\"Button\",layoutDependency:layoutDependency,layoutId:\"oDJPGRuRA\",style:{\"--border-bottom-width\":\"2px\",\"--border-color\":\"rgba(255, 255, 255, 0.2)\",\"--border-left-width\":\"2px\",\"--border-right-width\":\"2px\",\"--border-style\":\"solid\",\"--border-top-width\":\"2px\",backgroundColor:\"rgb(0, 0, 0)\",borderBottomLeftRadius:16,borderBottomRightRadius:16,borderTopLeftRadius:16,borderTopRightRadius:16},children:[/*#__PURE__*/_jsx(RichText,{__fromCanvasComponent:true,children:/*#__PURE__*/_jsx(React.Fragment,{children:/*#__PURE__*/_jsx(motion.p,{className:\"framer-styles-preset-1dvramg\",\"data-styles-preset\":\"v7zKqM1AH\",children:\"Get Fluently\"})}),className:\"framer-1227zfu\",\"data-framer-name\":\"Get Fluently\",fonts:[\"Inter\"],layoutDependency:layoutDependency,layoutId:\"YqkX2GjAb\",style:{opacity:1},text:D65BjtdWP,variants:{\"ZstRd66Bt-pressed\":{opacity:.7}},verticalAlignment:\"top\",withExternalLayout:true}),/*#__PURE__*/_jsx(Image,{background:{alt:\"\",fit:\"fill\",loading:getLoadingLazyAtYPosition((componentViewport?.y||0)+(0+((componentViewport?.height||72)-0-184)/2)+76),pixelHeight:37,pixelWidth:36,src:\"https://framerusercontent.com/images/9XpC4ddix5rLaqus1nl6PGD4fE.svg\"},className:\"framer-3hqpdo\",layoutDependency:layoutDependency,layoutId:\"kSb6h2aKp\",style:{opacity:1},variants:{\"ZstRd66Bt-pressed\":{opacity:.7}}}),/*#__PURE__*/_jsx(Image,{background:{alt:\"\",fit:\"stretch\",loading:getLoadingLazyAtYPosition((componentViewport?.y||0)+(0+((componentViewport?.height||72)-0-184)/2)+-38),pixelHeight:349,pixelWidth:1036,positionX:\"center\",positionY:\"center\",sizes:`calc(max(${componentViewport?.width||\"100vw\"}, 1px) + 114px)`,src:\"https://framerusercontent.com/images/DkHJCyKrzWJs20aFuxgut7hwWxc.webp\",srcSet:\"https://framerusercontent.com/images/DkHJCyKrzWJs20aFuxgut7hwWxc.webp?scale-down-to=512 512w,https://framerusercontent.com/images/DkHJCyKrzWJs20aFuxgut7hwWxc.webp?scale-down-to=1024 1024w,https://framerusercontent.com/images/DkHJCyKrzWJs20aFuxgut7hwWxc.webp 1036w\"},className:\"framer-1puqvh4\",layoutDependency:layoutDependency,layoutId:\"jXVrmZjj7\",style:{opacity:.7},variants:{\"ZstRd66Bt-hover\":{opacity:1}}})]})})})})})});});const css=[\"@supports (aspect-ratio: 1) { body { --framer-aspect-ratio-supported: auto; } }\",\".framer-chdjE.framer-1k3wn69, .framer-chdjE .framer-1k3wn69 { display: block; }\",\".framer-chdjE.framer-ngodbz { align-content: center; align-items: center; cursor: pointer; display: flex; flex-direction: row; flex-wrap: nowrap; gap: 10px; height: min-content; justify-content: center; overflow: visible; padding: 0px; position: relative; width: 410px; }\",\".framer-chdjE .framer-1ijgqy8 { align-content: center; align-items: center; cursor: pointer; display: flex; flex: 1 0 0px; flex-direction: row; flex-wrap: nowrap; gap: 10px; height: min-content; justify-content: center; overflow: visible; padding: 20px 16px 20px 22px; position: relative; text-decoration: none; width: 1px; }\",\".framer-chdjE .framer-1227zfu { -webkit-user-select: none; flex: 1 0 0px; height: auto; position: relative; user-select: none; white-space: pre-wrap; width: 1px; word-break: break-word; word-wrap: break-word; }\",\".framer-chdjE .framer-3hqpdo { aspect-ratio: 1 / 1; flex: none; height: var(--framer-aspect-ratio-supported, 32px); position: relative; width: 32px; }\",\".framer-chdjE .framer-1puqvh4 { bottom: -39px; flex: none; left: -57px; position: absolute; right: -56px; top: -38px; z-index: -1; }\",\"@supports (background: -webkit-named-image(i)) and (not (font-palette:dark)) { .framer-chdjE.framer-ngodbz, .framer-chdjE .framer-1ijgqy8 { gap: 0px; } .framer-chdjE.framer-ngodbz > *, .framer-chdjE .framer-1ijgqy8 > * { margin: 0px; margin-left: calc(10px / 2); margin-right: calc(10px / 2); } .framer-chdjE.framer-ngodbz > :first-child, .framer-chdjE .framer-1ijgqy8 > :first-child { margin-left: 0px; } .framer-chdjE.framer-ngodbz > :last-child, .framer-chdjE .framer-1ijgqy8 > :last-child { margin-right: 0px; } }\",...sharedStyle.css,'.framer-chdjE[data-border=\"true\"]::after, .framer-chdjE [data-border=\"true\"]::after { content: \"\"; border-width: var(--border-top-width, 0) var(--border-right-width, 0) var(--border-bottom-width, 0) var(--border-left-width, 0); border-color: var(--border-color, none); border-style: var(--border-style, none); width: 100%; height: 100%; position: absolute; box-sizing: border-box; left: 0; top: 0; border-radius: inherit; pointer-events: none; }'];/**\n * This is a generated Framer component.\n * @framerIntrinsicHeight 72\n * @framerIntrinsicWidth 410\n * @framerCanvasComponentVariantDetails {\"propertyName\":\"variant\",\"data\":{\"default\":{\"layout\":[\"fixed\",\"auto\"]},\"d75dYMbnt\":{\"layout\":[\"fixed\",\"auto\"]},\"wXdpZEepY\":{\"layout\":[\"fixed\",\"auto\"]}}}\n * @framerVariables {\"D65BjtdWP\":\"title\",\"k77tqf56y\":\"link\"}\n * @framerImmutableVariables true\n * @framerDisplayContentsDiv false\n * @framerComponentViewportWidth true\n */const FramerIoVRz12tF=withCSS(Component,css,\"framer-chdjE\");export default FramerIoVRz12tF;FramerIoVRz12tF.displayName=\"Action Button Black\";FramerIoVRz12tF.defaultProps={height:72,width:410};addPropertyControls(FramerIoVRz12tF,{D65BjtdWP:{defaultValue:\"Get My English Level\",displayTextArea:false,title:\"Title\",type:ControlType.String},k77tqf56y:{title:\"Link\",type:ControlType.Link}});addFonts(FramerIoVRz12tF,[{explicitInter:true,fonts:[{family:\"Inter\",source:\"framer\",style:\"normal\",unicodeRange:\"U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F\",url:\"https://framerusercontent.com/assets/5vvr9Vy74if2I6bQbJvbw7SY1pQ.woff2\",weight:\"400\"},{family:\"Inter\",source:\"framer\",style:\"normal\",unicodeRange:\"U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116\",url:\"https://framerusercontent.com/assets/EOr0mi4hNtlgWNn9if640EZzXCo.woff2\",weight:\"400\"},{family:\"Inter\",source:\"framer\",style:\"normal\",unicodeRange:\"U+1F00-1FFF\",url:\"https://framerusercontent.com/assets/Y9k9QrlZAqio88Klkmbd8VoMQc.woff2\",weight:\"400\"},{family:\"Inter\",source:\"framer\",style:\"normal\",unicodeRange:\"U+0370-03FF\",url:\"https://framerusercontent.com/assets/OYrD2tBIBPvoJXiIHnLoOXnY9M.woff2\",weight:\"400\"},{family:\"Inter\",source:\"framer\",style:\"normal\",unicodeRange:\"U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF\",url:\"https://framerusercontent.com/assets/JeYwfuaPfZHQhEG8U5gtPDZ7WQ.woff2\",weight:\"400\"},{family:\"Inter\",source:\"framer\",style:\"normal\",unicodeRange:\"U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD\",url:\"https://framerusercontent.com/assets/vQyevYAyHtARFwPqUzQGpnDs.woff2\",weight:\"400\"},{family:\"Inter\",source:\"framer\",style:\"normal\",unicodeRange:\"U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+1EA0-1EF9, U+20AB\",url:\"https://framerusercontent.com/assets/b6Y37FthZeALduNqHicBT6FutY.woff2\",weight:\"400\"}]},...getFontsFromSharedStyle(sharedStyle.fonts)],{supportsExplicitInterCodegen:true});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"FramerIoVRz12tF\",\"slots\":[],\"annotations\":{\"framerIntrinsicWidth\":\"410\",\"framerIntrinsicHeight\":\"72\",\"framerDisplayContentsDiv\":\"false\",\"framerImmutableVariables\":\"true\",\"framerComponentViewportWidth\":\"true\",\"framerContractVersion\":\"1\",\"framerCanvasComponentVariantDetails\":\"{\\\"propertyName\\\":\\\"variant\\\",\\\"data\\\":{\\\"default\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"auto\\\"]},\\\"d75dYMbnt\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"auto\\\"]},\\\"wXdpZEepY\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"auto\\\"]}}}\",\"framerVariables\":\"{\\\"D65BjtdWP\\\":\\\"title\\\",\\\"k77tqf56y\\\":\\\"link\\\"}\"}},\"Props\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./IoVRz12tF.map","// Generated by Framer (3d3d426)\nimport{fontStore}from\"framer\";fontStore.loadFonts([\"FS;Manrope-regular\",\"FS;Manrope-bold\"]);export const fonts=[{explicitInter:true,fonts:[{family:\"Manrope\",source:\"fontshare\",style:\"normal\",url:\"https://framerusercontent.com/third-party-assets/fontshare/wf/2TYFCBHUANEXS6QGR5EQDUNAFH6LSWM3/AYNOU3VEA4LRTDNKJQUFNVNUTYSGOUOP/UXO4O7K2G3HI3D2VKD7UXVJVJD26P4BQ.woff2\",weight:\"400\"},{family:\"Manrope\",source:\"fontshare\",style:\"normal\",url:\"https://framerusercontent.com/third-party-assets/fontshare/wf/NGBUP45ES3F7RD5XGKPEDJ6QEPO4TMOK/EXDVWJ2EDDVVV65UENMX33EDDYBX6OF7/6P4FPMFQH7CCC7RZ4UU4NKSGJ2RLF7V5.woff2\",weight:\"700\"}]}];export const css=[\".framer-RAv7Q .framer-styles-preset-1jhth6x:not(.rich-text-wrapper), .framer-RAv7Q .framer-styles-preset-1jhth6x.rich-text-wrapper p { --framer-font-family: \\\"Manrope\\\", \\\"Manrope Placeholder\\\", sans-serif; --framer-font-family-bold: \\\"Manrope\\\", \\\"Manrope Placeholder\\\", sans-serif; --framer-font-open-type-features: 'blwf' on, 'cv09' on, 'cv03' on, 'cv04' on, 'cv11' on; --framer-font-size: 16px; --framer-font-style: normal; --framer-font-style-bold: normal; --framer-font-variation-axes: normal; --framer-font-weight: 400; --framer-font-weight-bold: 700; --framer-letter-spacing: -0.02em; --framer-line-height: 1.6em; --framer-paragraph-spacing: 20px; --framer-text-alignment: start; --framer-text-color: #ededed; --framer-text-decoration: none; --framer-text-stroke-color: initial; --framer-text-stroke-width: initial; --framer-text-transform: none; }\"];export const className=\"framer-RAv7Q\";\nexport const __FramerMetadata__ = {\"exports\":{\"fonts\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"className\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"css\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}","import{useState,useEffect}from\"react\";import{Data,useObserveData}from\"framer\";export function createStore(state1){// Use Data so that a Preview reload resets the state\nconst dataStore=Data({state:Object.freeze({...state1})});// Create a set function that updates the state\nconst setDataStore=newState=>{// If the state is an object, make sure we copy it\nif(typeof newState===\"function\"){newState=newState(dataStore.state);}dataStore.state=Object.freeze({...dataStore.state,...newState});};// Store the initial state, copy the object if it's an object\nlet storeState=typeof state1===\"object\"?Object.freeze({...state1}):state1;// Keep a list of all the listeners, in the form of React hook setters\nconst storeSetters=new Set();// Create a set function that updates all the listeners / setters\nconst setStoreState=newState=>{// If the state is an object, make sure we copy it\nif(typeof newState===\"function\"){newState=newState(storeState);}storeState=typeof newState===\"object\"?Object.freeze({...storeState,...newState}):newState;// Update all the listeners / setters with the new value\nstoreSetters.forEach(setter=>setter(storeState));};// Create the actual hook based on everything above\nfunction useStore(){// Create the hook we are going to use as a listener\nconst[state,setState]=useState(storeState);// If we unmount the component using this hook, we need to remove the listener\n// @ts-ignore\nuseEffect(()=>{// But right now, we need to add the listener\nstoreSetters.add(setState);return()=>storeSetters.delete(setState);},[]);// If Data context exists, use Data, otherwise use vanilla React state\nif(useObserveData()===true){useObserveData();return[dataStore.state,setDataStore];}else{// Return the state and a function to update the central store\nreturn[state,setStoreState];}}return useStore;}\nexport const __FramerMetadata__ = {\"exports\":{\"createStore\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./createStore.map","// Note: use in case a/b test\nexport function getExperimentVariant(){return localStorage.getItem(\"landing_variant\");}export async function openLinkWithAttribution(link){const currentUrlParams=new URLSearchParams(window.location.search);const amplitudeParams=getAmplitudeParams();const allParams=new URLSearchParams;currentUrlParams.forEach((value,key)=>{allParams.append(key,value);});amplitudeParams.forEach((value,key)=>{allParams.append(key,value);});const params=allParams.toString();const destinationUrl=`${link}${params?\"?\"+params:\"\"}`;console.debug(`Updated destinationUrl: ${destinationUrl}`);window.location.href=destinationUrl;}export async function logClick(){logPlausibleEvent(\"Click: Onboarding\");logAmplitudeEvent(\"onboarding_clicked\");await sleep(200)// Wait a bit before redirect\n;}function logPlausibleEvent(eventName){if(typeof plausible===\"function\"){plausible(eventName);console.debug(`Log plausible event: ${eventName}`);}else{console.warn(`No plausible instance`);}}function logAmplitudeEvent(eventName,eventProperties){const amplitude=window.amplitude;if(amplitude&&typeof amplitude===\"object\"){amplitude.track(eventName,eventProperties);amplitude.flush();console.debug(`Log amplitude event: ${eventName}`,eventProperties);}else{console.warn(`No amplitude instance`);}}function getAmplitudeParams(){const newParams=new URLSearchParams;const amplitude=window.amplitude;if(amplitude&&typeof amplitude===\"object\"){const deviceId=amplitude.getDeviceId();const sessionId=amplitude.getSessionId();if(deviceId){console.log(`Amplitude deviceId: ${deviceId}`);newParams.set(\"ampDeviceId\",deviceId);}else{console.warn(`No amplitude deviceId`);}if(sessionId){console.log(`Amplitude sessionId: ${sessionId}`);newParams.set(\"ampSessionId\",sessionId.toString());}else{console.warn(`No amplitude sessionId`);}}else{console.warn(`No amplitude instance`);}return newParams;}function sleep(ms){return new Promise(resolve=>setTimeout(resolve,ms));}\nexport const __FramerMetadata__ = {\"exports\":{\"getExperimentVariant\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"logClick\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"openLinkWithAttribution\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Analytics.map","import{jsx as _jsx}from\"react/jsx-runtime\";import{createStore}from\"https://framer.com/m/framer/store.js@^1.0.0\";import{logClick,openLinkWithAttribution}from\"https://framerusercontent.com/modules/zUXmPjA2FvuC0Rtmad60/1tqwTBqnluyAlkq1tzIZ/Analytics.js\";// Learn more: https://www.framer.com/developers/overrides/\nconst useStore=createStore({is_pronunciation:false,is_grammar:false,is_fluency:false,is_vocabulary:false,is_any:false});export function withPronunciation(Component){return props=>{const[store,setStore]=useStore();return /*#__PURE__*/_jsx(Component,{...props,variant:store.is_pronunciation?\"Selected\":\"Default\",onClick:()=>setStore({is_pronunciation:!store.is_pronunciation})});};}export function withGrammar(Component){return props=>{const[store,setStore]=useStore();return /*#__PURE__*/_jsx(Component,{...props,variant:store.is_grammar?\"Selected\":\"Default\",onClick:()=>setStore({is_grammar:!store.is_grammar})});};}export function withFluency(Component){return props=>{const[store,setStore]=useStore();return /*#__PURE__*/_jsx(Component,{...props,variant:store.is_fluency?\"Selected\":\"Default\",onClick:()=>setStore({is_fluency:!store.is_fluency})});};}export function withVocabulary(Component){return props=>{const[store,setStore]=useStore();return /*#__PURE__*/_jsx(Component,{...props,variant:store.is_vocabulary?\"Selected\":\"Default\",onClick:()=>setStore({is_vocabulary:!store.is_vocabulary})});};}// export function withRotate(Component): ComponentType {\n//     return (props) => {\n//         return (\n//             <Component\n//                 {...props}\n//                 animate={{ rotate: 90 }}\n//                 transition={{ duration: 2 }}\n//             />\n//         )\n//     }\n// }\n// export function withHover(Component): ComponentType {\n//     return (props) => {\n//         return <Component {...props} whileHover={{ scale: 1.05 }} />\n//     }\n// }\nexport function withSubmitButton(Component){return props=>{const[store,setStore]=useStore();const isAny=store.is_pronunciation||store.is_grammar||store.is_fluency||store.is_vocabulary;const handleClick=async(e,link)=>{e.preventDefault();logClick();openLinkWithAttribution(link);};return /*#__PURE__*/_jsx(Component,{...props,variant:isAny?\"White\":\"Invisible\",onClick:e=>handleClick(e,props.link)});};}export function withLogClick(Component){return props=>{const handleClick=async(e,link)=>{e.preventDefault();logClick();openLinkWithAttribution(link);};return /*#__PURE__*/_jsx(Component,{...props,onClick:e=>handleClick(e,props.link)});};}\nexport const __FramerMetadata__ = {\"exports\":{\"withLogClick\":{\"type\":\"reactHoc\",\"name\":\"withLogClick\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withVocabulary\":{\"type\":\"reactHoc\",\"name\":\"withVocabulary\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withPronunciation\":{\"type\":\"reactHoc\",\"name\":\"withPronunciation\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withSubmitButton\":{\"type\":\"reactHoc\",\"name\":\"withSubmitButton\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withGrammar\":{\"type\":\"reactHoc\",\"name\":\"withGrammar\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withFluency\":{\"type\":\"reactHoc\",\"name\":\"withFluency\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}"],"mappings":"6vBAC8B,GAAU,UAAU,CAAC,sBAAsB,kBAAkB,CAAC,CAAcA,EAAM,CAAC,CAAC,cAAc,GAAK,MAAM,CAAC,CAAC,OAAO,UAAU,OAAO,YAAY,MAAM,SAAS,IAAI,yKAAyK,OAAO,MAAM,CAAC,CAAC,OAAO,UAAU,OAAO,YAAY,MAAM,SAAS,IAAI,yKAAyK,OAAO,MAAM,CAAC,CAAC,CAAC,CAAcW,EAAI,CAAC,gyBAAgyB,CAAcF,EAAU,gECA70B,SAAS,GAAqB,EAAU,GAAG,EAAS,CAAC,IAAM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