{"version":3,"file":"Sequential_Letter_Reveal.Dn_sUXPy.mjs","names":["React.forwardRef","useState","useMemo","useCallback","__esmMin","pe","te","init_npm_react_18_3_1","window","ce","ne","c","J","init_jsx_runtime","_e","init_ssg_sandbox_shims","init_framer_motion_DhsWWWsN","motion","addPropertyControls","withCSS","useSVGTemplate","init_framer_DDfsYcI0","cx","useIsStaticRenderer","ControlType","mask","Base","MotionSVG","SVG","svg","getProps","Icon","init_iZCLqSr1o","props","rest","animated","width1","color","restProps","href","className","P_DcoRcrY","JEeZYcamG","style","SequentialLetterReveal","isStaticRenderer","prefersReducedMotion","setPrefersReducedMotion","currentWordIndex","setCurrentWordIndex","revealedCount","setRevealedCount","parsedWords","list","words","entry","finalWord","currentWord","currentLetters","mediaQuery","listener","event","staggerMs","staggerDelay","durationMs","letterDuration","gapMs","transitionGap","startDelayMs","startDelay","timeouts","timeoutId","index","wordTimeMs","nextWordTimeout","value","id","renderLetter","displayChar","char","isVisible","Tag","semanticTag","shouldRenderStatic","textColor","textStyle","init_Sequential_Letter_Reveal"],"sources":["https:/framerusercontent.com/modules/N8wB7z8sUNzpypcz8hdh/itHAY8c3a1OuXsevd8tL/iZCLqSr1o.js","https:/framerusercontent.com/modules/ilEHmTHcKu0NjePwiAF8/2UjEpNYBAC0EuzgE34GF/Sequential_Letter_Reveal.js"],"sourcesContent":["// Generated by Framer (85eaff3)\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType,cx,motion,useSVGTemplate,withCSS}from\"framer\";import*as React from\"react\";import{forwardRef}from\"react\";const mask=\"var(--framer-icon-mask)\";const Base=/*#__PURE__*/forwardRef(function(props,ref){return /*#__PURE__*/_jsx(\"svg\",{...props,ref:ref,children:props.children});});const MotionSVG=motion.create(Base);const SVG=/*#__PURE__*/forwardRef((props,ref)=>{const{animated,layoutId,children,...rest}=props;return animated?/*#__PURE__*/_jsx(MotionSVG,{...rest,layoutId:layoutId,ref:ref,children:children}):/*#__PURE__*/_jsx(\"svg\",{...rest,ref:ref,children:children});});const svg='<svg display=\"block\" role=\"presentation\" viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M 0 0 L 5 5 L 10 0\" fill=\"transparent\" height=\"5px\" id=\"OQNWIUi6v\" stroke-dasharray=\"\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"var(--js9iwy, 2)\" stroke=\"var(--1m973uw, rgb(0,0,0))\" transform=\"translate(7 6)\" width=\"10px\"/><path d=\"M 0 0 L 5 5 L 10 0\" fill=\"transparent\" height=\"5px\" id=\"C2TdgeJ8H\" stroke-dasharray=\"\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"var(--js9iwy, 2)\" stroke=\"var(--1m973uw, rgb(0,0,0))\" transform=\"translate(7 13)\" width=\"10px\"/></svg>';const getProps=({color,height,id,width,width1,...props})=>{return{...props,JEeZYcamG:width1??props.JEeZYcamG??2,P_DcoRcrY:color??props.P_DcoRcrY??\"rgb(0, 0, 0)\"};};const Component=/*#__PURE__*/React.forwardRef(function(props,ref){const{style,className,layoutId,variant,P_DcoRcrY,JEeZYcamG,...restProps}=getProps(props);const href=useSVGTemplate(\"2864123604\",svg);return /*#__PURE__*/_jsx(SVG,{...restProps,className:cx(\"framer-IwPvA\",className),layoutId:layoutId,ref:ref,role:\"presentation\",style:{\"--1m973uw\":P_DcoRcrY,\"--js9iwy\":JEeZYcamG,...style},viewBox:\"0 0 24 24\",children:/*#__PURE__*/_jsx(\"use\",{href:href})});});const css=[`.framer-IwPvA { -webkit-mask: ${mask}; aspect-ratio: 1; display: block; mask: ${mask}; width: 24px; }`];/**\n * This is a generated Framer component.\n * @framerIntrinsicWidth 24\n * @framerIntrinsicHeight 24\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n * @framerVariables {\"P_DcoRcrY\":\"color\",\"JEeZYcamG\":\"width1\"}\n * @framerImmutableVariables true\n * @framerVector {\"name\":\"Chevrons Down\",\"color\":{\"type\":\"variable\",\"value\":\"1m973uw\"},\"set\":{\"localId\":\"vectorSet/ZsiCCGPvG\",\"id\":\"ZsiCCGPvG\",\"moduleId\":\"Y7SpbVH16cWqMhj75z1M\"}}\n */const Icon=withCSS(Component,css,\"framer-IwPvA\");Icon.displayName=\"Chevrons Down\";export default Icon;addPropertyControls(Icon,{P_DcoRcrY:{defaultValue:\"rgb(0, 0, 0)\",hidden:false,title:\"Color\",type:ControlType.Color},JEeZYcamG:{defaultValue:2,displayStepper:true,hidden:false,max:16,min:1,title:\"Width\",type:ControlType.Number}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"Icon\",\"slots\":[],\"annotations\":{\"framerVariables\":\"{\\\"P_DcoRcrY\\\":\\\"color\\\",\\\"JEeZYcamG\\\":\\\"width1\\\"}\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerIntrinsicWidth\":\"24\",\"framerVector\":\"{\\\"name\\\":\\\"Chevrons Down\\\",\\\"color\\\":{\\\"type\\\":\\\"variable\\\",\\\"value\\\":\\\"1m973uw\\\"},\\\"set\\\":{\\\"localId\\\":\\\"vectorSet/ZsiCCGPvG\\\",\\\"id\\\":\\\"ZsiCCGPvG\\\",\\\"moduleId\\\":\\\"Y7SpbVH16cWqMhj75z1M\\\"}}\",\"framerImmutableVariables\":\"true\",\"framerSupportedLayoutHeight\":\"any-prefer-fixed\",\"framerIntrinsicHeight\":\"24\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}","// User request: Update the Sequential_Letter_Reveal component so it fills the Framer instance width, aligns rendered text to the right/end edge for stable placement next to static \"re:\", preserves sequential letter reveal behavior, adds a configurable Transition Gap (default 0.04s, min 0), keeps final-word stop and reduced-motion static behavior, and remains compatible with fixed canvas width.\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{useCallback,useEffect,useMemo,useState,startTransition}from\"react\";import{addPropertyControls,ControlType,useIsStaticRenderer}from\"framer\";import{motion}from\"framer-motion\";/**\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight auto\n */export default function SequentialLetterReveal(props){const{words,letterDuration,staggerDelay,transitionGap,startDelay,textColor,textStyle,semanticTag,style}=props;const isStaticRenderer=useIsStaticRenderer();const[prefersReducedMotion,setPrefersReducedMotion]=useState(false);const[currentWordIndex,setCurrentWordIndex]=useState(0);const[revealedCount,setRevealedCount]=useState(0);const parsedWords=useMemo(()=>{const list=words.split(\",\").map(entry=>entry.trim()).filter(entry=>entry.length>0);return list.length>0?list:[\"יוצרים\",\"מותגים\",\"חוויות\"];},[words]);const finalWord=parsedWords[parsedWords.length-1];const currentWord=parsedWords[Math.min(currentWordIndex,parsedWords.length-1)];const currentLetters=useMemo(()=>Array.from(currentWord),[currentWord]);useEffect(()=>{if(typeof window!==\"undefined\"){const mediaQuery=window.matchMedia(\"(prefers-reduced-motion: reduce)\");startTransition(()=>setPrefersReducedMotion(mediaQuery.matches));const listener=event=>{startTransition(()=>setPrefersReducedMotion(event.matches));};mediaQuery.addEventListener(\"change\",listener);return()=>mediaQuery.removeEventListener(\"change\",listener);}else{startTransition(()=>setPrefersReducedMotion(false));}},[]);useEffect(()=>{if(isStaticRenderer||prefersReducedMotion)return;if(typeof window===\"undefined\")return;const staggerMs=Math.max(0,staggerDelay)*1e3;const durationMs=Math.max(0,letterDuration)*1e3;const gapMs=Math.max(0,transitionGap)*1e3;const startDelayMs=currentWordIndex===0?Math.max(0,startDelay)*1e3:0;const timeouts=[];startTransition(()=>setRevealedCount(0));currentLetters.forEach((_,index)=>{const timeoutId=window.setTimeout(()=>{startTransition(()=>setRevealedCount(index+1));},startDelayMs+index*staggerMs);timeouts.push(timeoutId);});const wordTimeMs=Math.max(0,currentLetters.length-1)*staggerMs+durationMs||durationMs;if(currentWordIndex<parsedWords.length-1){const nextWordTimeout=window.setTimeout(()=>{startTransition(()=>{setCurrentWordIndex(value=>value+1);setRevealedCount(0);});},startDelayMs+wordTimeMs+gapMs);timeouts.push(nextWordTimeout);}return()=>{timeouts.forEach(id=>window.clearTimeout(id));};},[currentLetters,currentWordIndex,isStaticRenderer,letterDuration,parsedWords.length,prefersReducedMotion,staggerDelay,startDelay,transitionGap]);const renderLetter=useCallback((char,index)=>{const displayChar=char===\" \"?\"\\xa0\":char;const isVisible=index<revealedCount;const canUseMotion=!isStaticRenderer&&!prefersReducedMotion&&typeof window!==\"undefined\"&&Boolean(motion?.span);if(!canUseMotion){return /*#__PURE__*/_jsx(\"span\",{style:{display:\"inline-block\",whiteSpace:\"pre\",opacity:isVisible?1:0,transform:isVisible?\"translateY(0em)\":\"translateY(0.35em)\"},children:displayChar},`${char}-${index}`);}return /*#__PURE__*/_jsx(motion.span,{initial:{opacity:0,y:\"0.35em\"},animate:{opacity:isVisible?1:0,y:isVisible?\"0em\":\"0.35em\"},transition:{duration:Math.max(0,letterDuration),ease:[.22,1,.36,1]},style:{display:\"inline-block\",whiteSpace:\"pre\",willChange:\"transform, opacity\"},children:displayChar},`${char}-${index}`);},[isStaticRenderer,letterDuration,prefersReducedMotion,revealedCount]);const Tag=semanticTag;const shouldRenderStatic=isStaticRenderer||prefersReducedMotion;return /*#__PURE__*/_jsx(Tag,{style:{position:\"relative\",display:\"block\",width:\"100%\",margin:0,padding:0,color:textColor,whiteSpace:\"pre\",textAlign:textStyle.textAlign??\"right\",fontFamily:textStyle.fontFamily,fontSize:textStyle.fontSize,lineHeight:textStyle.lineHeight,letterSpacing:textStyle.letterSpacing,fontWeight:textStyle.fontWeight,fontStyle:textStyle.fontStyle,...style},\"aria-live\":\"off\",children:shouldRenderStatic?finalWord:currentLetters.map(renderLetter)});}addPropertyControls(SequentialLetterReveal,{words:{type:ControlType.String,title:\"Words\",defaultValue:\"יוצרים, מספרים, חוויות\",displayTextArea:true},letterDuration:{type:ControlType.Number,title:\"Letter Dur\",defaultValue:.28,min:0,max:2,step:.01},staggerDelay:{type:ControlType.Number,title:\"Stagger\",defaultValue:.06,min:0,max:1,step:.01},transitionGap:{type:ControlType.Number,title:\"Transition Gap\",defaultValue:.04,min:0,max:1,step:.01},startDelay:{type:ControlType.Number,title:\"Start Delay\",defaultValue:0,min:0,max:5,step:.1,unit:\"s\"},textStyle:{type:ControlType.Font,title:\"Text\",controls:\"extended\",displayTextAlignment:true,defaultFontType:\"sans-serif\",defaultValue:{fontSize:145,lineHeight:\"0.95em\",letterSpacing:\"-0.02em\",textAlign:\"right\",variant:\"Bold\"}},textColor:{type:ControlType.Color,title:\"Color\",defaultValue:\"#FFFFFF\"},semanticTag:{type:ControlType.Enum,title:\"Tag\",defaultValue:\"h1\",options:[\"h1\",\"h2\",\"h3\",\"p\",\"div\",\"span\"],optionTitles:[\"H1\",\"H2\",\"H3\",\"P\",\"Div\",\"Span\"]}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"SequentialLetterReveal\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerSupportedLayoutHeight\":\"auto\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Sequential_Letter_Reveal.map"],"mappings":"A,uWACgM,EAAK,0BAAgC,EAAkB,gBAAW,SAAS,EAAM,EAAI,CAAC,MAAoB,gBAAK,MAAM,CAAC,GAAGiC,EAAU,MAAI,SAASA,EAAM,QAAQ,CAAC,CAAE,CAAC,EAAQ,EAAUhB,EAAO,OAAOS,CAAI,EAAQ,EAAiB,iBAAY,EAAM,IAAM,CAAC,GAAK,CAAC,WAAS,WAAS,WAAS,GAAGQ,GAAMD,EAAM,OAAOE,EAAsB,gBAAKR,EAAU,CAAC,GAAGO,EAAc,WAAa,MAAa,UAAQ,CAAC,EAAe,gBAAK,MAAM,CAAC,GAAGA,EAAS,MAAa,UAAQ,CAAC,CAAE,CAAC,EAAQ,EAAI,kmBAAwmB,GAAU,CAAC,QAAM,SAAO,KAAG,QAAM,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