{"version":3,"file":"shared-lib.BXedZIvL.mjs","names":["useRef","useState","__esmMin","init_ssg_sandbox_shims","init_npm_react_18_3_1","_e","de","p","ce","window","motion","init_framer_motion_DhsWWWsN","fontStore","addPropertyControls","init_framer_B1b760uK","useIsStaticRenderer","ControlType","MarkerTextScrollReveal","Tag","containerStyle","props","markerColor","markerColors","marker","animation","isStaticRenderer","containerRef","isInView","setIsInView","reducedMotion","setReducedMotion","safeLines","lines","dirConfig","DIRECTION_CONFIG","direction","safeMarkerColors","getBarColor","index","ease","el","observer","entry","threshold","mq","handler","alignItems","textAlign","fontStyle","font","textColor","srText","srOnly","line","barOverflow","i","delay","staggerFrom","stagger","init_MarkerTextReveal","init_jsx_runtime","colors","fonts","css","className","init_ohaLhx8w2"],"sources":["https:/framerusercontent.com/modules/EL02csWI3ccgIz8kihPQ/sluf5ykPt44yDzvgRdLR/MarkerTextReveal.js","https:/framerusercontent.com/modules/8DBkADs02R90EYqnbpTy/BQHNvoZGWTyzYENnjt0B/ohaLhx8w2.js"],"sourcesContent":["/**\n * Marker Text Scroll Reveal\n * Scroll-triggered text reveal with colored bars that wipe away line by line\n *\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any\n * @framerIntrinsicWidth 600\n * @framerIntrinsicHeight 300\n */import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{useEffect,useRef,useState}from\"react\";import{addPropertyControls,ControlType,useIsStaticRenderer}from\"framer\";import{motion}from\"framer-motion\";const DIRECTION_CONFIG={right:{prop:\"scaleX\",origin:\"right center\"},left:{prop:\"scaleX\",origin:\"left center\"},down:{prop:\"scaleY\",origin:\"center bottom\"},up:{prop:\"scaleY\",origin:\"center top\"}};export default function MarkerTextScrollReveal(props){const{lines=[\"Here's a text reveal\",\"that looks like a\",\"highlight marker\"],font={},textColor=\"#000000\",marker={},animation={},textAlign=\"left\",as:Tag=\"div\",style:containerStyle}=props;const{color:markerColor=\"#C700EF\",colors:markerColors=[]}=marker;const{direction=\"right\",duration=.6,stagger=.1,staggerFrom=\"first\",barOverflow=.055,threshold=.1}=animation;const isStaticRenderer=useIsStaticRenderer();const containerRef=useRef(null);const[isInView,setIsInView]=useState(false);const[reducedMotion,setReducedMotion]=useState(false);const safeLines=Array.isArray(lines)&&lines.length>0?lines:[\"text\"];const dirConfig=DIRECTION_CONFIG[direction]||DIRECTION_CONFIG.right;const safeMarkerColors=Array.isArray(markerColors)&&markerColors.length>0?markerColors:null;const getBarColor=index=>safeMarkerColors?safeMarkerColors[index%safeMarkerColors.length]:markerColor;// power3.inOut equivalent\nconst ease=[.65,0,.35,1];// Scroll trigger\nuseEffect(()=>{if(isStaticRenderer||isInView)return;const el=containerRef.current;if(!el)return;const observer=new IntersectionObserver(([entry])=>{if(entry.isIntersecting){setIsInView(true);observer.disconnect();}},{threshold});observer.observe(el);return()=>observer.disconnect();},[isStaticRenderer,isInView,threshold]);// Reduced motion check\nuseEffect(()=>{if(typeof window===\"undefined\")return;const mq=window.matchMedia(\"(prefers-reduced-motion: reduce)\");setReducedMotion(mq.matches);const handler=e=>setReducedMotion(e.matches);mq.addEventListener(\"change\",handler);return()=>mq.removeEventListener(\"change\",handler);},[]);const alignItems=textAlign===\"center\"?\"center\":textAlign===\"right\"?\"flex-end\":\"flex-start\";const fontStyle={...font,color:textColor,margin:0,padding:0,display:\"flex\",flexDirection:\"column\",alignItems};const srText=safeLines.join(\" \");const srOnly={position:\"absolute\",width:1,height:1,padding:0,margin:-1,overflow:\"hidden\",clip:\"rect(0,0,0,0)\",whiteSpace:\"nowrap\",borderWidth:0};// Static render: show bars partially covering text\nif(isStaticRenderer){return /*#__PURE__*/_jsx(Tag,{style:{...containerStyle,...fontStyle},children:safeLines.map((line,i)=>/*#__PURE__*/_jsxs(\"span\",{style:{display:\"block\",position:\"relative\",width:\"fit-content\"},children:[line,/*#__PURE__*/_jsx(\"span\",{style:{position:\"absolute\",top:`-${barOverflow}em`,right:0,bottom:`-${barOverflow}em`,width:\"55%\",backgroundColor:getBarColor(i),pointerEvents:\"none\"}})]},i))});}// Reduced motion: just show text\nif(reducedMotion){return /*#__PURE__*/_jsx(Tag,{style:{...containerStyle,...fontStyle},children:safeLines.map((line,i)=>/*#__PURE__*/_jsx(\"span\",{style:{display:\"block\"},children:line},i))});}return /*#__PURE__*/_jsxs(Tag,{ref:containerRef,style:{...containerStyle,...fontStyle},children:[/*#__PURE__*/_jsx(\"span\",{style:srOnly,children:srText}),/*#__PURE__*/_jsx(\"span\",{\"aria-hidden\":\"true\",style:{display:\"flex\",flexDirection:\"column\",alignItems},children:safeLines.map((line,i)=>{const staggerIndex=staggerFrom===\"last\"?safeLines.length-1-i:i;const delay=staggerIndex*stagger;return /*#__PURE__*/_jsxs(\"span\",{style:{display:\"block\",position:\"relative\",overflow:\"hidden\",width:\"fit-content\",margin:`-${barOverflow}em 0`,padding:`${barOverflow}em 0`},children:[line,/*#__PURE__*/_jsx(motion.span,{initial:{[dirConfig.prop]:1},animate:isInView?{[dirConfig.prop]:0}:{[dirConfig.prop]:1},transition:{duration,ease,delay:isInView?delay:0},style:{position:\"absolute\",inset:0,backgroundColor:getBarColor(i),transformOrigin:dirConfig.origin,pointerEvents:\"none\",zIndex:1}})]},i);})})]});}MarkerTextScrollReveal.displayName=\"Marker Text Scroll Reveal\";addPropertyControls(MarkerTextScrollReveal,{lines:{type:ControlType.Array,title:\"Lines\",defaultValue:[\"Here's a text reveal\",\"that looks like a\",\"highlight marker\"],control:{type:ControlType.String}},font:{type:ControlType.Font,title:\"Font\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:48,fontWeight:900,lineHeight:1.1,letterSpacing:-1.5}},textColor:{type:ControlType.Color,title:\"Text Color\",defaultValue:\"#000000\"},marker:{type:ControlType.Object,title:\"Marker\",controls:{color:{type:ControlType.Color,title:\"Color\",defaultValue:\"#C700EF\",hidden:props=>{const colors=props?.marker?.colors??props?.colors;return Array.isArray(colors)&&colors.length>0;}},colors:{type:ControlType.Array,title:\"Per-Line Colors\",description:\"One color per line. Overrides single color.\",defaultValue:[],control:{type:ControlType.Color}}}},animation:{type:ControlType.Object,title:\"Animation\",controls:{direction:{type:ControlType.Enum,title:\"Direction\",options:[\"right\",\"left\",\"up\",\"down\"],optionTitles:[\"→\",\"←\",\"↑\",\"↓\"],defaultValue:\"right\",displaySegmentedControl:true},duration:{type:ControlType.Number,title:\"Bar Duration\",defaultValue:.6,min:.1,max:2,step:.05,unit:\"s\"},stagger:{type:ControlType.Number,title:\"Stagger\",defaultValue:.1,min:0,max:1,step:.01,unit:\"s\"},staggerFrom:{type:ControlType.Enum,title:\"Stagger From\",options:[\"first\",\"last\"],optionTitles:[\"First Line\",\"Last Line\"],defaultValue:\"first\"},barOverflow:{type:ControlType.Number,title:\"Bar Overflow\",description:\"How far bars extend beyond each line of text.\",defaultValue:.055,min:0,max:.2,step:.005,unit:\"em\"},threshold:{type:ControlType.Number,title:\"Scroll Threshold\",description:\"How much of the element must be visible before triggering (0–1).\",defaultValue:.1,min:0,max:1,step:.05}}},textAlign:{type:ControlType.Enum,title:\"Align\",options:[\"left\",\"center\",\"right\"],optionTitles:[\"Left\",\"Center\",\"Right\"],defaultValue:\"left\",displaySegmentedControl:true},as:{type:ControlType.Enum,title:\"HTML Tag\",options:[\"div\",\"h1\",\"h2\",\"h3\",\"h4\",\"p\"],optionTitles:[\"div\",\"H1\",\"H2\",\"H3\",\"H4\",\"p\"],defaultValue:\"div\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"MarkerTextScrollReveal\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./MarkerTextReveal.map","// Generated by Framer (bbed9c4)\nimport{fontStore}from\"framer\";fontStore.loadFonts([\"GF;Fragment Mono-regular\",\"GF;Fragment Mono-italic\"]);export const fonts=[{explicitInter:true,fonts:[{cssFamilyName:\"Fragment Mono\",openType:true,source:\"google\",style:\"normal\",uiFamilyName:\"Fragment Mono\",url:\"https://fonts.gstatic.com/s/fragmentmono/v6/4iCr6K5wfMRRjxp0DA6-2CLnN4FNh4UI_1U.woff2\",weight:\"400\"},{cssFamilyName:\"Fragment Mono\",openType:true,source:\"google\",style:\"italic\",uiFamilyName:\"Fragment Mono\",url:\"https://fonts.gstatic.com/s/fragmentmono/v6/4iC16K5wfMRRjxp0DA6-2CLnB4ZHhqcN71URtQ.woff2\",weight:\"400\"}]}];export const css=[\".framer-nVRqX .framer-styles-preset-1v026xz:not(.rich-text-wrapper), .framer-nVRqX .framer-styles-preset-1v026xz.rich-text-wrapper p { --framer-font-family: \\\"Fragment Mono\\\", monospace; --framer-font-family-italic: \\\"Fragment Mono\\\", monospace; --framer-font-open-type-features: 'blwf' on, 'cv09' on, 'cv03' on, 'cv04' on, 'cv11' on; --framer-font-size: 14px; --framer-font-style: normal; --framer-font-style-italic: italic; --framer-font-variation-axes: normal; --framer-font-weight: 400; --framer-font-weight-italic: 400; --framer-letter-spacing: 0px; --framer-line-height: 1.5em; --framer-paragraph-spacing: 20px; --framer-text-alignment: start; --framer-text-color: #666666; --framer-text-decoration: none; --framer-text-stroke-color: initial; --framer-text-stroke-width: initial; --framer-text-transform: uppercase; }\"];export const className=\"framer-nVRqX\";\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\"}}}"],"mappings":"A,mQAQqZ,SAAwBiB,EAAuB,EAAM,CAAC,GAAK,CAAC,QAAM,CAAC,uBAAuB,oBAAoB,kBAAkB,EAAE,OAAK,CAAC,EAAE,YAAU,UAAU,SAAO,CAAC,EAAE,YAAU,CAAC,EAAE,YAAU,OAAO,GAAGC,EAAI,MAAM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