{"version":3,"file":"GradientTextReveal.DIhaco_v.mjs","names":[],"sources":["https:/framerusercontent.com/modules/4qsMw0SIpk4kiDwR4AMX/vtNLzAQgugoSfxdreIWe/GradientTextReveal.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{motion}from\"framer-motion\";import{addPropertyControls,ControlType}from\"framer\";export default function GradientTextReveal(props){const{infiniteLoop,textBefore,lineBreakBeforeHighlight,highlightText,textAfter,font,baseColor,colorStart,colorEnd,alignment}=props;return /*#__PURE__*/_jsxs(\"div\",{style:{...font,color:baseColor,maxWidth:\"100%\",whiteSpace:\"pre-wrap\",wordBreak:\"break-word\",textAlign:alignment},children:[textBefore,lineBreakBeforeHighlight&&/*#__PURE__*/_jsx(\"br\",{}),highlightText&&/*#__PURE__*/_jsxs(\"span\",{style:{position:\"relative\"},children:[/*#__PURE__*/_jsx(motion.span,{initial:{opacity:1},whileInView:{opacity:0},transition:{duration:infiniteLoop?1.5:4,ease:[.22,1,.36,1]},viewport:{once:false,margin:\"-10% 0px -10% 0px\"},children:highlightText}),/*#__PURE__*/_jsx(motion.span,{initial:{opacity:0,backgroundPosition:\"-100% 0%\"},whileInView:{opacity:1,backgroundPosition:infiniteLoop?[\"-100% 0%\",\"100% 0%\"]:\"100% 0%\"},transition:{opacity:{duration:infiniteLoop?1.5:4,ease:[.22,1,.36,1]},backgroundPosition:{duration:4,ease:infiniteLoop?\"linear\":[.22,1,.36,1],repeat:infiniteLoop?Infinity:0,repeatType:\"loop\"}},viewport:{once:false,margin:\"-10% 0px -10% 0px\"},style:{position:\"absolute\",left:0,top:0,backgroundSize:\"200% 100%\",backgroundImage:`linear-gradient(90deg, ${colorStart} 25%, ${colorEnd} 50%, ${colorStart} 75%, ${colorStart} 100%)`,WebkitBackgroundClip:\"text\",WebkitTextFillColor:\"transparent\",backgroundClip:\"text\",color:\"transparent\",pointerEvents:\"none\"},children:highlightText})]}),textAfter]});}addPropertyControls(GradientTextReveal,{infiniteLoop:{type:ControlType.Boolean,title:\"Infinite Loop\",defaultValue:false},alignment:{type:ControlType.Enum,title:\"Alignment\",options:[\"left\",\"center\",\"right\"],optionTitles:[\"Left\",\"Center\",\"Right\"],defaultValue:\"left\"},textBefore:{type:ControlType.String,title:\"Text Before\",defaultValue:\"\",displayTextArea:true},// 3. Neuer Toggle im Framer-Menü (standardmäßig aus)\nlineBreakBeforeHighlight:{type:ControlType.Boolean,title:\"Break before Highlight\",defaultValue:false},highlightText:{type:ControlType.String,title:\"Highlight\",defaultValue:\"Produktiv jeden Tag.\",displayTextArea:true},textAfter:{type:ControlType.String,title:\"Text After\",defaultValue:\"\\nE-Mails schreiben, Videoanrufe annehmen, im Internet surfen, Kurspl\\xe4ne aktualisieren, Fotos teilen – mit dem MacBook Neo hast du deine To-do-Liste immer im Griff.\",displayTextArea:true},font:{type:ControlType.Font,title:\"Font\",controls:\"extended\",defaultValue:{fontFamily:\"Inter, -apple-system, BlinkMacSystemFont, sans-serif\",fontSize:28,fontWeight:600,lineHeight:1.4,letterSpacing:-.5}},baseColor:{type:ControlType.Color,title:\"Base Color\",defaultValue:\"#1d1d1f\"},colorStart:{type:ControlType.Color,title:\"Gradient Start\",defaultValue:\"#34C759\"},colorEnd:{type:ControlType.Color,title:\"Gradient End\",defaultValue:\"#007AFF\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"GradientTextReveal\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./GradientTextReveal.map"],"mappings":"oNAA+I,SAAwB,EAAmB,EAAM,CAAC,GAAK,CAAC,eAAa,aAAW,2BAAyB,gBAAc,YAAU,OAAK,YAAU,aAAW,WAAS,aAAW,EAAM,OAAoB,EAAM,MAAM,CAAC,MAAM,CAAC,GAAG,EAAK,MAAM,EAAU,SAAS,OAAO,WAAW,WAAW,UAAU,aAAa,UAAU,CAAS,EAAE,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