{"version":3,"file":"C6Ee7e5L4.CFMuFFr2.mjs","names":["React.useContext","React.useMemo","React.Fragment","useRef","React.useId"],"sources":["https:/framerusercontent.com/modules/ks671vpqjxtmAmweCZTk/ylop91h2e9Pu3YYyCzJ3/C6Ee7e5L4.js"],"sourcesContent":["// Generated by Framer (98b71dc)\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addFonts,addPropertyControls,ControlType,cx,Link,RichText,SVG,useActiveVariantCallback,useComponentViewport,useLocaleInfo,useVariantState,withCSS}from\"framer\";import{LayoutGroup,motion,MotionConfigContext}from\"framer-motion\";import*as React from\"react\";import{useRef}from\"react\";const enabledGestures={fudivrYGj:{hover:true,pressed:true}};const cycleOrder=[\"fudivrYGj\",\"rxoy9WpRG\",\"OBqtD4B0P\"];const serializationHash=\"framer-mlAlj\";const variantClassNames={fudivrYGj:\"framer-v-znxn7f\",OBqtD4B0P:\"framer-v-9hck01\",rxoy9WpRG:\"framer-v-14efqc4\"};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 humanReadableVariantMap={Desktop:\"fudivrYGj\",Phone:\"OBqtD4B0P\",Tablet:\"rxoy9WpRG\"};const getProps=({click,height,id,title,width,...props})=>{return{...props,h7oQQTQi_:click??props.h7oQQTQi_,tWMMJOFee:title??props.tWMMJOFee??\"Присоединиться к марафону\",variant:humanReadableVariantMap[props.variant]??props.variant??\"fudivrYGj\"};};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,tWMMJOFee,h7oQQTQi_,...restProps}=getProps(props);const{baseVariant,classNames,clearLoadingGesture,gestureHandlers,gestureVariant,isLoading,setGestureState,setVariant,variants}=useVariantState({cycleOrder,defaultVariant:\"fudivrYGj\",enabledGestures,ref:refBinding,variant,variantClassNames});const layoutDependency=createLayoutDependency(props,variants);const{activeVariantCallback,delay}=useActiveVariantCallback(baseVariant);const onTap2cigrp=activeVariantCallback(async(...args)=>{setGestureState({isPressed:false});if(h7oQQTQi_){const res=await h7oQQTQi_(...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:\"https://forms.gle/aNjnkgxoqxPj6LBu9\",motionChild:true,nodeId:\"fudivrYGj\",openInNewTab:true,scopeId:\"C6Ee7e5L4\",children:/*#__PURE__*/_jsx(motion.a,{...restProps,...gestureHandlers,className:`${cx(scopingClassNames,\"framer-znxn7f\",className,classNames)} framer-53pa5m`,\"data-framer-name\":\"Desktop\",\"data-highlight\":true,layoutDependency:layoutDependency,layoutId:\"fudivrYGj\",onTap:onTap2cigrp,ref:refBinding,style:{...style},...addPropertyOverrides({\"fudivrYGj-hover\":{\"data-framer-name\":undefined},\"fudivrYGj-pressed\":{\"data-framer-name\":undefined},OBqtD4B0P:{\"data-framer-name\":\"Phone\"},rxoy9WpRG:{\"data-framer-name\":\"Tablet\"}},baseVariant,gestureVariant),children:/*#__PURE__*/_jsxs(motion.div,{className:\"framer-s2qs24\",\"data-framer-name\":\"button\",layoutDependency:layoutDependency,layoutId:\"FZBSV2sPv\",style:{backgroundColor:\"rgb(222, 16, 60)\",borderBottomLeftRadius:99,borderBottomRightRadius:99,borderTopLeftRadius:99,borderTopRightRadius:99},variants:{\"fudivrYGj-hover\":{backgroundColor:\"rgba(222, 16, 60, 0.8)\"},\"fudivrYGj-pressed\":{backgroundColor:\"rgba(255, 255, 255, 0.7)\"}},children:[/*#__PURE__*/_jsx(RichText,{__fromCanvasComponent:true,children:/*#__PURE__*/_jsx(React.Fragment,{children:/*#__PURE__*/_jsx(motion.p,{style:{\"--font-selector\":\"R0Y7UmFsZXdheS02MDA=\",\"--framer-font-family\":'\"Raleway\", \"Raleway Placeholder\", sans-serif',\"--framer-font-size\":\"18px\",\"--framer-font-weight\":\"600\",\"--framer-line-height\":\"24px\",\"--framer-text-alignment\":\"center\",\"--framer-text-color\":\"var(--extracted-r6o4lv, rgb(255, 255, 255))\"},children:\"Записаться в школу\"})}),className:\"framer-1sk5w53\",\"data-framer-name\":\"Оставить заявку\",fonts:[\"GF;Raleway-600\"],layoutDependency:layoutDependency,layoutId:\"RWju6ucaG\",style:{\"--extracted-r6o4lv\":\"rgb(255, 255, 255)\",\"--framer-paragraph-spacing\":\"0px\"},text:tWMMJOFee,variants:{\"fudivrYGj-pressed\":{\"--extracted-r6o4lv\":\"rgb(222, 16, 60)\"}},verticalAlignment:\"top\",withExternalLayout:true,...addPropertyOverrides({\"fudivrYGj-pressed\":{children:/*#__PURE__*/_jsx(React.Fragment,{children:/*#__PURE__*/_jsx(motion.p,{style:{\"--font-selector\":\"R0Y7UmFsZXdheS02MDA=\",\"--framer-font-family\":'\"Raleway\", \"Raleway Placeholder\", sans-serif',\"--framer-font-size\":\"18px\",\"--framer-font-weight\":\"600\",\"--framer-line-height\":\"24px\",\"--framer-text-alignment\":\"center\",\"--framer-text-color\":\"var(--extracted-r6o4lv, rgb(222, 16, 60))\"},children:\"Записаться в школу\"})})}},baseVariant,gestureVariant)}),/*#__PURE__*/_jsx(SVG,{className:\"framer-rf03tg\",\"data-framer-name\":\"decor\",fill:\"rgba(0,0,0,1)\",intrinsicHeight:24,intrinsicWidth:24,layoutDependency:layoutDependency,layoutId:\"RTWAvqPhl\",svg:'<svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\\n<rect width=\"24\" height=\"24\" rx=\"12\" fill=\"white\"/>\\n<path d=\"M11 8L15 12L11 16\" stroke=\"#DE103C\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\\n</svg>\\n',withExternalLayout:true,...addPropertyOverrides({\"fudivrYGj-pressed\":{fill:\"rgb(255, 255, 255)\"}},baseVariant,gestureVariant)})]})})})})})});});const css=[\"@supports (aspect-ratio: 1) { body { --framer-aspect-ratio-supported: auto; } }\",\".framer-mlAlj.framer-53pa5m, .framer-mlAlj .framer-53pa5m { display: block; }\",\".framer-mlAlj.framer-znxn7f { align-content: center; align-items: center; cursor: pointer; display: flex; flex-direction: column; flex-wrap: nowrap; gap: 10px; height: min-content; justify-content: center; padding: 0px; position: relative; text-decoration: none; width: min-content; }\",\".framer-mlAlj .framer-s2qs24 { align-content: center; align-items: center; display: flex; flex: none; flex-direction: row; flex-wrap: nowrap; gap: 8px; height: 56px; justify-content: center; overflow: visible; padding: 16px 16px 16px 25px; position: relative; width: min-content; }\",\".framer-mlAlj .framer-1sk5w53 { flex: none; height: auto; position: relative; white-space: pre; width: auto; }\",\".framer-mlAlj .framer-rf03tg { flex: none; height: 24px; position: relative; width: 24px; }\",\".framer-mlAlj.framer-v-14efqc4 .framer-s2qs24 { max-width: 350px; }\",\".framer-mlAlj.framer-v-9hck01.framer-znxn7f { flex-direction: row; gap: 0px; }\",\".framer-mlAlj.framer-v-9hck01 .framer-s2qs24 { max-width: 300px; }\"];/**\n * This is a generated Framer component.\n * @framerIntrinsicHeight 56\n * @framerIntrinsicWidth 328.5\n * @framerCanvasComponentVariantDetails {\"propertyName\":\"variant\",\"data\":{\"default\":{\"layout\":[\"auto\",\"auto\"]},\"rxoy9WpRG\":{\"layout\":[\"auto\",\"auto\"]},\"OBqtD4B0P\":{\"layout\":[\"auto\",\"auto\"]},\"KE3hjvP4z\":{\"layout\":[\"auto\",\"auto\"]},\"M4c8Dutsu\":{\"layout\":[\"auto\",\"auto\"]}}}\n * @framerVariables {\"tWMMJOFee\":\"title\",\"h7oQQTQi_\":\"click\"}\n * @framerImmutableVariables true\n * @framerDisplayContentsDiv false\n * @framerAutoSizeImages true\n * @framerComponentViewportWidth true\n * @framerColorSyntax true\n */const FramerC6Ee7e5L4=withCSS(Component,css,\"framer-mlAlj\");export default FramerC6Ee7e5L4;FramerC6Ee7e5L4.displayName=\"Button Main\";FramerC6Ee7e5L4.defaultProps={height:56,width:328.5};addPropertyControls(FramerC6Ee7e5L4,{variant:{options:[\"fudivrYGj\",\"rxoy9WpRG\",\"OBqtD4B0P\"],optionTitles:[\"Desktop\",\"Tablet\",\"Phone\"],title:\"Variant\",type:ControlType.Enum},tWMMJOFee:{defaultValue:\"Присоединиться к марафону\",displayTextArea:false,title:\"Title\",type:ControlType.String},h7oQQTQi_:{title:\"Click\",type:ControlType.EventHandler}});addFonts(FramerC6Ee7e5L4,[{explicitInter:true,fonts:[{cssFamilyName:\"Raleway\",source:\"google\",style:\"normal\",uiFamilyName:\"Raleway\",url:\"https://fonts.gstatic.com/s/raleway/v37/1Ptxg8zYS_SKggPN4iEgvnHyvveLxVsEpYCKNLA3JC9c.woff2\",weight:\"600\"}]}],{supportsExplicitInterCodegen:true});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"FramerC6Ee7e5L4\",\"slots\":[],\"annotations\":{\"framerImmutableVariables\":\"true\",\"framerAutoSizeImages\":\"true\",\"framerDisplayContentsDiv\":\"false\",\"framerVariables\":\"{\\\"tWMMJOFee\\\":\\\"title\\\",\\\"h7oQQTQi_\\\":\\\"click\\\"}\",\"framerIntrinsicHeight\":\"56\",\"framerComponentViewportWidth\":\"true\",\"framerContractVersion\":\"1\",\"framerIntrinsicWidth\":\"328.5\",\"framerCanvasComponentVariantDetails\":\"{\\\"propertyName\\\":\\\"variant\\\",\\\"data\\\":{\\\"default\\\":{\\\"layout\\\":[\\\"auto\\\",\\\"auto\\\"]},\\\"rxoy9WpRG\\\":{\\\"layout\\\":[\\\"auto\\\",\\\"auto\\\"]},\\\"OBqtD4B0P\\\":{\\\"layout\\\":[\\\"auto\\\",\\\"auto\\\"]},\\\"KE3hjvP4z\\\":{\\\"layout\\\":[\\\"auto\\\",\\\"auto\\\"]},\\\"M4c8Dutsu\\\":{\\\"layout\\\":[\\\"auto\\\",\\\"auto\\\"]}}}\",\"framerColorSyntax\":\"true\"}},\"Props\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./C6Ee7e5L4.map"],"mappings":"4VACgmB,SAAS,EAAqB,EAAU,GAAG,EAAS,CAAC,IAAM,EAAc,EAAE,CAAsF,OAArF,GAAU,QAAQ,GAAS,GAAS,OAAO,OAAO,EAAc,EAAU,GAAS,CAAC,CAAQ,2CAA/sB,IAAsK,IAAkE,IAA4B,CAAgC,EAAgB,CAAC,UAAU,CAAC,MAAM,GAAK,QAAQ,GAAK,CAAC,CAAO,EAAW,CAAC,YAAY,YAAY,YAAY,CAAO,EAAkB,eAAqB,EAAkB,CAAC,UAAU,kBAAkB,UAAU,kBAAkB,UAAU,mBAAmB,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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