{"version":3,"file":"Text_Position_Animation.E3D_uib2.mjs","names":["React.useContext","React.useMemo","React.Fragment","useRef","React.useId","Image","RichText"],"sources":["https:/framerusercontent.com/modules/1n5w9f4hFA0scmvIKhLc/qvbnYQP4C2XKmDdaCFZJ/LYfePIcu5.js","https:/framerusercontent.com/modules/Sj4aUuLrSwhXQ9FybpuT/FGPjmlIdpwgNSnxE1IXP/Text_Position_Animation.js"],"sourcesContent":["// Generated by Framer (f0648f9)\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addFonts,addPropertyControls,ControlType,cx,getLoadingLazyAtYPosition,Image,Link,RichText,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-AnacM\";const variantClassNames={uyab4hkgJ:\"framer-v-1u79j9a\"};function addPropertyOverrides(overrides,...variants){const nextOverrides={};variants?.forEach(variant=>variant&&Object.assign(nextOverrides,overrides[variant]));return nextOverrides;}const M6_2xhYkg=undefined;const VDigVVDFY=undefined;const transition1={bounce:.2,delay:0,duration:.4,type:\"spring\"};const toResponsiveImage=value=>{if(typeof value===\"object\"&&value!==null&&typeof value.src===\"string\"){return value;}return typeof value===\"string\"?{src:value}:undefined;};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,image,title,width,...props})=>{return{...props,M6_2xhYkg:image??props.M6_2xhYkg,VDigVVDFY:title??props.VDigVVDFY??\"Meal type\"};};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,M6_2xhYkg,VDigVVDFY,...restProps}=getProps(props);const{baseVariant,classNames,clearLoadingGesture,gestureHandlers,gestureVariant,isLoading,setGestureState,setVariant,variants}=useVariantState({defaultVariant:\"uyab4hkgJ\",ref:refBinding,variant,variantClassNames});const layoutDependency=createLayoutDependency(props,variants);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://www.hellofresh.com/plans\",motionChild:true,nodeId:\"uyab4hkgJ\",openInNewTab:false,preserveParams:true,scopeId:\"LYfePIcu5\",children:/*#__PURE__*/_jsx(motion.a,{...restProps,...gestureHandlers,className:`${cx(scopingClassNames,\"framer-1u79j9a\",className,classNames)} framer-piftri`,\"data-framer-name\":\"Variant 1\",layoutDependency:layoutDependency,layoutId:\"uyab4hkgJ\",ref:refBinding,style:{backgroundColor:\"var(--token-10424721-1efd-47bd-aac2-d2e4477ddeb9, rgb(255, 255, 255))\",borderBottomLeftRadius:8,borderBottomRightRadius:8,borderTopLeftRadius:8,borderTopRightRadius:8,boxShadow:\"0px 0.6021873017743928px 0.6021873017743928px -1.25px rgba(0, 0, 0, 0.42), 0px 2.288533303243457px 2.288533303243457px -2.5px rgba(0, 0, 0, 0.37), 0px 10px 10px -3.75px rgba(0, 0, 0, 0.14)\",...style},children:/*#__PURE__*/_jsxs(motion.div,{className:\"framer-xmjr99\",\"data-framer-name\":\"Image + Text container\",layoutDependency:layoutDependency,layoutId:\"HULcGdmNQ\",children:[/*#__PURE__*/_jsx(Image,{background:{alt:\"\",fit:\"fill\",loading:getLoadingLazyAtYPosition((componentViewport?.y||0)+16+(((componentViewport?.height||321)-32-394)/2+0+0)+0+0),sizes:\"249px\",...toResponsiveImage(M6_2xhYkg)},className:\"framer-1pb1p8j\",layoutDependency:layoutDependency,layoutId:\"RdrhUhlfo\",style:{borderBottomLeftRadius:8,borderBottomRightRadius:8,borderTopLeftRadius:8,borderTopRightRadius:8}}),/*#__PURE__*/_jsx(motion.div,{className:\"framer-16etokr\",\"data-framer-name\":\"Text Container\",layoutDependency:layoutDependency,layoutId:\"wFrtJe1Mk\",children:/*#__PURE__*/_jsx(RichText,{__fromCanvasComponent:true,children:/*#__PURE__*/_jsx(React.Fragment,{children:/*#__PURE__*/_jsx(motion.p,{style:{\"--font-selector\":\"R0Y7Um9ib3RvLTcwMA==\",\"--framer-font-family\":'\"Roboto\", \"Roboto Placeholder\", sans-serif',\"--framer-font-size\":\"calc(var(--framer-root-font-size, 1rem) * 1.4)\",\"--framer-font-weight\":\"700\",\"--framer-text-alignment\":\"center\",\"--framer-text-color\":\"var(--extracted-r6o4lv, var(--token-2a4a6d17-e887-4aa6-99bf-24427d0193d1, rgb(35, 35, 35)))\"},children:\"Meal type\"})}),className:\"framer-1of9s6s\",fonts:[\"GF;Roboto-700\"],layoutDependency:layoutDependency,layoutId:\"paI5P7v5R\",style:{\"--extracted-r6o4lv\":\"var(--token-2a4a6d17-e887-4aa6-99bf-24427d0193d1, rgb(35, 35, 35))\",\"--framer-link-text-color\":\"rgb(0, 153, 255)\",\"--framer-link-text-decoration\":\"underline\"},text:VDigVVDFY,verticalAlignment:\"top\",withExternalLayout:true})})]})})})})})});});const css=[\"@supports (aspect-ratio: 1) { body { --framer-aspect-ratio-supported: auto; } }\",\".framer-AnacM.framer-piftri, .framer-AnacM .framer-piftri { display: block; }\",\".framer-AnacM.framer-1u79j9a { align-content: center; align-items: center; display: flex; flex-direction: column; flex-wrap: nowrap; gap: 0px; height: 321px; justify-content: center; overflow: var(--overflow-clip-fallback, clip); padding: 16px; position: relative; text-decoration: none; width: 281px; will-change: var(--framer-will-change-override, transform); }\",\".framer-AnacM .framer-xmjr99 { align-content: center; align-items: center; display: flex; flex: none; flex-direction: column; flex-wrap: nowrap; gap: 27px; height: min-content; justify-content: center; overflow: visible; padding: 0px; position: relative; width: min-content; }\",\".framer-AnacM .framer-1pb1p8j { flex: none; height: 235px; overflow: var(--overflow-clip-fallback, clip); position: relative; width: 249px; will-change: var(--framer-will-change-override, transform); }\",\".framer-AnacM .framer-16etokr { align-content: center; align-items: center; align-self: stretch; display: flex; flex: none; flex-direction: row; flex-wrap: nowrap; gap: 10px; height: min-content; justify-content: center; overflow: var(--overflow-clip-fallback, clip); padding: 0px; position: relative; width: auto; }\",\".framer-AnacM .framer-1of9s6s { flex: 1 0 0px; height: auto; position: relative; white-space: pre-wrap; width: 1px; word-break: break-word; word-wrap: break-word; }\"];/**\n * This is a generated Framer component.\n * @framerIntrinsicHeight 321\n * @framerIntrinsicWidth 281\n * @framerCanvasComponentVariantDetails {\"propertyName\":\"variant\",\"data\":{\"default\":{\"layout\":[\"fixed\",\"fixed\"]}}}\n * @framerVariables {\"M6_2xhYkg\":\"image\",\"VDigVVDFY\":\"title\"}\n * @framerImmutableVariables true\n * @framerDisplayContentsDiv false\n * @framerAutoSizeImages true\n * @framerComponentViewportWidth true\n * @framerColorSyntax true\n */const FramerLYfePIcu5=withCSS(Component,css,\"framer-AnacM\");export default FramerLYfePIcu5;FramerLYfePIcu5.displayName=\"HLF_Menu Card_1055\";FramerLYfePIcu5.defaultProps={height:321,width:281};addPropertyControls(FramerLYfePIcu5,{M6_2xhYkg:{title:\"Image\",type:ControlType.ResponsiveImage},VDigVVDFY:{defaultValue:\"Meal type\",displayTextArea:false,title:\"Title\",type:ControlType.String}});addFonts(FramerLYfePIcu5,[{explicitInter:true,fonts:[{cssFamilyName:\"Roboto\",source:\"google\",style:\"normal\",uiFamilyName:\"Roboto\",url:\"https://fonts.gstatic.com/s/roboto/v50/KFOMCnqEu92Fr1ME7kSn66aGLdTylUAMQXC89YmC2DPNWuYjammWggvWl0Qn.woff2\",weight:\"700\"}]}],{supportsExplicitInterCodegen:true});\nexport const __FramerMetadata__ = {\"exports\":{\"Props\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"default\":{\"type\":\"reactComponent\",\"name\":\"FramerLYfePIcu5\",\"slots\":[],\"annotations\":{\"framerColorSyntax\":\"true\",\"framerIntrinsicWidth\":\"281\",\"framerComponentViewportWidth\":\"true\",\"framerIntrinsicHeight\":\"321\",\"framerDisplayContentsDiv\":\"false\",\"framerCanvasComponentVariantDetails\":\"{\\\"propertyName\\\":\\\"variant\\\",\\\"data\\\":{\\\"default\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"fixed\\\"]}}}\",\"framerContractVersion\":\"1\",\"framerAutoSizeImages\":\"true\",\"framerImmutableVariables\":\"true\",\"framerVariables\":\"{\\\"M6_2xhYkg\\\":\\\"image\\\",\\\"VDigVVDFY\\\":\\\"title\\\"}\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./LYfePIcu5.map","import{jsx as _jsx}from\"react/jsx-runtime\";import{motion}from\"framer-motion\";export function StaggeredWordHover(Component){return props=>{// 1. We grab the text content from the layer's properties.\n// Framer usually passes the content in 'text' (if a variable) or 'children'.\nconst textContent=props.text||props.children;// Safety Check: If it's not a simple string (e.g., mixed bold/italic),\n// we return the original component to prevent it from breaking.\nif(typeof textContent!==\"string\"){return /*#__PURE__*/_jsx(Component,{...props});}// 2. Split the dynamic text into words\nconst words=textContent.split(\" \");return /*#__PURE__*/_jsx(motion.div,{...props,// 3. We apply the original styles (font, color, size) to the container\nstyle:{...props.style,display:\"flex\",flexWrap:\"wrap\",gap:\"0.27em\",cursor:\"default\"},initial:\"initial\",whileHover:\"hover\",children:words.map((word,i)=>/*#__PURE__*/_jsx(motion.span,{variants:{initial:{y:0},hover:{y:-8}},transition:{type:\"spring\",damping:12,stiffness:200,delay:i*.03},style:{display:\"inline-block\"},children:word},i))});};}\nexport const __FramerMetadata__ = {\"exports\":{\"StaggeredWordHover\":{\"type\":\"reactHoc\",\"name\":\"StaggeredWordHover\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Text_Position_Animation.map"],"mappings":"6XACyD,IAAyK,IAAkE,IAA4B,CAAgC,EAAkB,eAAqB,EAAkB,CAAC,UAAU,mBAAmB,CAAkP,EAAY,CAAC,OAAO,GAAG,MAAM,EAAE,SAAS,GAAG,KAAK,SAAS,CAAO,EAAkB,GAAW,OAAO,GAAQ,UAAU,GAAc,OAAO,EAAM,KAAM,SAAiB,EAAc,OAAO,GAAQ,SAAS,CAAC,IAAI,EAAM,CAAC,IAAA,GAAkB,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,SAAO,KAAG,QAAM,QAAM,QAAM,GAAG,MAAgB,CAAC,GAAG,EAAM,UAAU,GAAO,EAAM,UAAU,UAAU,GAAO,EAAM,WAAW,YAAY,EAAS,GAAwB,EAAM,IAAe,EAAM,iBAAwB,EAAS,KAAK,IAAI,CAAC,EAAM,iBAAwB,EAAS,KAAK,IAAI,CAWliD,EAAgB,EAXkjD,EAAiB,SAAS,EAAM,EAAI,CAAC,IAAM,EAAYC,EAAO,KAAK,CAAO,EAAW,GAAK,EAAkB,EAAgBC,GAAa,CAAM,CAAC,eAAa,aAAW,GAAe,CAAO,EAAkB,GAAsB,CAAM,CAAC,QAAM,YAAU,WAAS,UAAQ,YAAU,YAAU,GAAG,GAAW,EAAS,EAAM,CAAM,CAAC,cAAY,aAAW,sBAAoB,kBAAgB,iBAAe,YAAU,kBAAg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