{"version":3,"file":"CustomEventListener.xV6c8h5m.mjs","names":["React.useContext","React.useMemo","React.Fragment","useRef","React.useId","RichText"],"sources":["https:/framerusercontent.com/modules/nyE9fmQfnEPpjSUepwcs/iK6ZLUlgB8rbnUk2P7Jk/O774G3DQR.js","https:/framerusercontent.com/modules/pARJREVt72umKht0K3sQ/cuqeU1cjFagufasydaOd/CustomEventListener.js"],"sourcesContent":["// Generated by Framer (808fccf)\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{addFonts,addPropertyControls,ControlType,cx,Link,RichText,useActiveVariantCallback,useComponentViewport,useLocaleInfo,useVariantState,withCSS}from\"framer\";import{LayoutGroup,motion,MotionConfigContext}from\"framer-motion\";import*as React from\"react\";import{useRef}from\"react\";const serializationHash=\"framer-E8m7U\";const variantClassNames={XkuD71_e4:\"framer-v-n3sahx\"};function addPropertyOverrides(overrides,...variants){const nextOverrides={};variants?.forEach(variant=>variant&&Object.assign(nextOverrides,overrides[variant]));return nextOverrides;}const transition1={bounce:.2,delay:0,duration:.4,type:\"spring\"};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=({click,fontSize,height,id,link,title,width,...props})=>{return{...props,a5tkXQMNP:fontSize??props.a5tkXQMNP??64,i6IPLePzW:click??props.i6IPLePzW,wNSpVU7L3:link??props.wNSpVU7L3,Z6Ho5uihl:title??props.Z6Ho5uihl??\"Start Now\"};};const createLayoutDependency=(props,variants)=>{if(props.layoutDependency)return variants.join(\"-\")+props.layoutDependency;return variants.join(\"-\");};const Component=/*#__PURE__*/React.forwardRef(function(props,ref){const fallbackRef=useRef(null);const refBinding=ref??fallbackRef;const defaultLayoutId=React.useId();const{activeLocale,setLocale}=useLocaleInfo();const componentViewport=useComponentViewport();const{style,className,layoutId,variant,wNSpVU7L3,Z6Ho5uihl,a5tkXQMNP,i6IPLePzW,...restProps}=getProps(props);const{baseVariant,classNames,clearLoadingGesture,gestureHandlers,gestureVariant,isLoading,setGestureState,setVariant,variants}=useVariantState({defaultVariant:\"XkuD71_e4\",ref:refBinding,variant,variantClassNames});const layoutDependency=createLayoutDependency(props,variants);const{activeVariantCallback,delay}=useActiveVariantCallback(baseVariant);const onTapupz4b2=activeVariantCallback(async(...args)=>{setGestureState({isPressed:false});if(i6IPLePzW){const res=await i6IPLePzW(...args);if(res===false)return false;}});const sharedStyleClassNames=[];const scopingClassNames=cx(serializationHash,...sharedStyleClassNames);return /*#__PURE__*/_jsx(LayoutGroup,{id:layoutId??defaultLayoutId,children:/*#__PURE__*/_jsx(Variants,{animate:variants,initial:false,children:/*#__PURE__*/_jsx(Transition,{value:transition1,children:/*#__PURE__*/_jsx(Link,{href:wNSpVU7L3,motionChild:true,nodeId:\"XkuD71_e4\",openInNewTab:false,scopeId:\"O774G3DQR\",children:/*#__PURE__*/_jsx(motion.a,{...restProps,...gestureHandlers,className:`${cx(scopingClassNames,\"framer-n3sahx\",className,classNames)} framer-tarq92`,\"data-framer-name\":\"Variant 1\",\"data-highlight\":true,\"data-reset\":\"button\",layoutDependency:layoutDependency,layoutId:\"XkuD71_e4\",onTap:onTapupz4b2,ref:refBinding,style:{backgroundColor:\"rgb(0, 0, 0)\",...style},children:/*#__PURE__*/_jsx(RichText,{__fromCanvasComponent:true,children:/*#__PURE__*/_jsx(React.Fragment,{children:/*#__PURE__*/_jsx(motion.h1,{style:{\"--font-selector\":\"RlM7TWVsb2RyYW1hLW1lZGl1bQ==\",\"--framer-font-family\":'\"Melodrama\", \"Melodrama Placeholder\", sans-serif',\"--framer-font-open-type-features\":\"'blwf' on, 'cv09' on, 'cv03' on, 'cv04' on, 'cv11' on\",\"--framer-font-size\":\"calc(var(--variable-reference-a5tkXQMNP-O774G3DQR) * 1px)\",\"--framer-font-weight\":\"500\",\"--framer-line-height\":\"100%\",\"--framer-text-color\":\"var(--extracted-gdpscs, var(--token-6e11f97e-c29c-4c20-a82e-ea037bbe848b, rgb(255, 255, 255)))\",\"--framer-text-transform\":\"uppercase\"},children:\"Start Now\"})}),className:\"framer-338iti\",fonts:[\"FS;Melodrama-medium\"],layoutDependency:layoutDependency,layoutId:\"w1t8L8YU6\",style:{\"--extracted-gdpscs\":\"var(--token-6e11f97e-c29c-4c20-a82e-ea037bbe848b, rgb(255, 255, 255))\",\"--framer-link-text-color\":\"rgb(0, 153, 255)\",\"--framer-link-text-decoration\":\"underline\",\"--variable-reference-a5tkXQMNP-O774G3DQR\":a5tkXQMNP},text:Z6Ho5uihl,verticalAlignment:\"top\",withExternalLayout:true})})})})})});});const css=[\"@supports (aspect-ratio: 1) { body { --framer-aspect-ratio-supported: auto; } }\",\".framer-E8m7U.framer-tarq92, .framer-E8m7U .framer-tarq92 { display: block; }\",\".framer-E8m7U.framer-n3sahx { align-content: center; align-items: center; cursor: pointer; display: flex; flex-direction: row; flex-wrap: nowrap; gap: 0px; height: min-content; justify-content: center; overflow: visible; padding: 20px 50px 20px 50px; position: relative; text-decoration: none; width: 374px; }\",\".framer-E8m7U .framer-338iti { -webkit-user-select: none; flex: none; height: auto; position: relative; user-select: none; white-space: pre; width: auto; }\"];/**\n * This is a generated Framer component.\n * @framerIntrinsicHeight 104\n * @framerIntrinsicWidth 374\n * @framerCanvasComponentVariantDetails {\"propertyName\":\"variant\",\"data\":{\"default\":{\"layout\":[\"fixed\",\"auto\"]}}}\n * @framerVariables {\"wNSpVU7L3\":\"link\",\"Z6Ho5uihl\":\"title\",\"a5tkXQMNP\":\"fontSize\",\"i6IPLePzW\":\"click\"}\n * @framerImmutableVariables true\n * @framerDisplayContentsDiv false\n * @framerAutoSizeImages true\n * @framerComponentViewportWidth true\n * @framerColorSyntax true\n */const FramerO774G3DQR=withCSS(Component,css,\"framer-E8m7U\");export default FramerO774G3DQR;FramerO774G3DQR.displayName=\"BigButton\";FramerO774G3DQR.defaultProps={height:104,width:374};addPropertyControls(FramerO774G3DQR,{wNSpVU7L3:{title:\"Link\",type:ControlType.Link},Z6Ho5uihl:{defaultValue:\"Start Now\",displayTextArea:false,title:\"Title\",type:ControlType.String},a5tkXQMNP:{defaultValue:64,title:\"Font Size\",type:ControlType.Number},i6IPLePzW:{title:\"Click\",type:ControlType.EventHandler}});addFonts(FramerO774G3DQR,[{explicitInter:true,fonts:[{cssFamilyName:\"Melodrama\",source:\"fontshare\",style:\"normal\",uiFamilyName:\"Melodrama\",url:\"https://framerusercontent.com/third-party-assets/fontshare/wf/V63VHYDAZAEU2GZUBBRXMY6QQ55K3G7S/KRLBF3QMOZHK3UT3KYCLL3BIJFQPGJBN/FOOWDQGE4VX5EPMJQI3JW5W7V7YA4JTP.woff2\",weight:\"500\"}]}],{supportsExplicitInterCodegen:true});\nexport const __FramerMetadata__ = {\"exports\":{\"Props\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"default\":{\"type\":\"reactComponent\",\"name\":\"FramerO774G3DQR\",\"slots\":[],\"annotations\":{\"framerAutoSizeImages\":\"true\",\"framerContractVersion\":\"1\",\"framerCanvasComponentVariantDetails\":\"{\\\"propertyName\\\":\\\"variant\\\",\\\"data\\\":{\\\"default\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"auto\\\"]}}}\",\"framerIntrinsicHeight\":\"104\",\"framerComponentViewportWidth\":\"true\",\"framerDisplayContentsDiv\":\"false\",\"framerIntrinsicWidth\":\"374\",\"framerColorSyntax\":\"true\",\"framerImmutableVariables\":\"true\",\"framerVariables\":\"{\\\"wNSpVU7L3\\\":\\\"link\\\",\\\"Z6Ho5uihl\\\":\\\"title\\\",\\\"a5tkXQMNP\\\":\\\"fontSize\\\",\\\"i6IPLePzW\\\":\\\"click\\\"}\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./O774G3DQR.map","// Get Started: https://www.framer.com/developers\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import{useEffect}from\"react\";export default function CustomEventListener(props){const{framerEvent,tsEventName}=props;useEffect(()=>{const handler=()=>{framerEvent?.();};window.addEventListener(tsEventName,handler);return()=>window.removeEventListener(tsEventName,handler);},[framerEvent,tsEventName]);return /*#__PURE__*/_jsx(\"div\",{});}addPropertyControls(CustomEventListener,{framerEvent:{type:ControlType.EventHandler,title:\"On CustomEvent\"},tsEventName:{title:\"TypeScript Event\",type:ControlType.String,defaultValue:\"auth:completed\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"CustomEventListener\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./CustomEventListener.map"],"mappings":"qbAC2C,IAAkK,IAAkE,IAA4B,CAAgC,EAAkB,eAAqB,EAAkB,CAAC,UAAU,kBAAkB,CAA8L,EAAY,CAAC,OAAO,GAAG,MAAM,EAAE,SAAS,GAAG,KAAK,SAAS,CAAO,GAAY,CAAC,QAAM,cAAY,CAAC,IAAM,EAAOA,EAAiB,EAAoB,CAAO,EAAW,GAAO,EAAO,WAAiB,EAAaC,OAAmB,CAAC,GAAG,EAAO,aAAW,EAAE,CAAC,KAAK,UAAU,EAAW,CAAC,CAAC,CAAC,OAAoB,EAAK,EAAoB,SAAS,CAAC,MAAM,EAAsB,WAAS,CAAC,EAAS,EAAS,EAAO,OAAOC,EAAe,CAAO,GAAU,CAAC,QAAM,WAAS,SAAO,KAAG,OAAK,QAAM,QAAM,GAAG,MAAgB,CAAC,GAAG,EAAM,UAAU,GAAU,EAAM,WAAW,GAAG,UAAU,GAAO,EAAM,UAAU,UAAU,GAAM,EAAM,UAAU,UAAU,GAAO,EAAM,WAAW,YAAY,EAAS,GAAwB,EAAM,IAAe,EAAM,iBAAwB,EAAS,KAAK,IAAI,CAAC,EAAM,iBAAwB,EAAS,KAAK,IAAI,CAWl4C,EAAgB,EAXk5C,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