{"version":3,"file":"TextPathTicker.DMYkGXdo.mjs","names":["useId","useRef","useState","useMemo","_Fragment"],"sources":["https:/framerusercontent.com/modules/4Tn4NPBBIr2LgPXsS1dq/diIB1nasP3mtmd5KZJ3Q/TextPathTicker.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";import{addPropertyControls,ControlType,useIsStaticRenderer}from\"framer\";import{useInView}from\"framer-motion\";import{startTransition,useEffect,useId,useMemo,useRef,useState}from\"react\";/**\nInstructions:\nCreate a Framer component that follows the Framer component rules and achieves the user's goal.\nPreciso criar um ticker com frases que ficam passando porem devem passar em cima do caminho do meu SVG, preciso que as palavras sigam o caminho do svg e quero poder configurar a velocidade.\n *//**\n * @framerIntrinsicWidth 600\n * @framerIntrinsicHeight 200\n *\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n */export default function TextPathTicker(props){const{phrase,separator,repeatGap,repeats,secondsPerLoop,reverse,reverseText,pathSource,pathData,pathSvg,textColor,font,showPath,pathColor,pathWidth,style,overflow,verticalAlign,flipY,flipX,textRotation,ariaLabel,pauseWhenOffscreen,textSide,textOrientation,textPathVariant,showBackground,backgroundColor,backgroundWidth,backgroundWidthUnit,backgroundHeight,backgroundRadius}=props;const isStatic=useIsStaticRenderer();const id=useId().replace(/:/g,\"_\");const pathId=`ticker_path_${id}`;const textPathId=`ticker_text_path_${id}`;const textPathFlippedId=`ticker_text_path_flipped_${id}`;const containerRef=useRef(null);const pathRef=useRef(null);const measureRef=useRef(null);const staticTextPathRef=useRef(null);const animatedTextPathRef=useRef(null);const inView=useInView(containerRef,{amount:.2});const[mounted,setMounted]=useState(false);const[pathLength,setPathLength]=useState(0);const[unitTextLength,setUnitTextLength]=useState(0);const{computedPathData,computedViewBox}=useMemo(()=>{const fallbackD=(pathData??\"\").trim();if(pathSource!==\"svg\"){return{computedPathData:fallbackD,computedViewBox:undefined};}const svg=(pathSvg??\"\").trim();// Extract first d=\"...\" or d='...'\nconst dMatch=svg.match(/\\sd\\s*=\\s*(?:\"([^\"]+)\"|'([^']+)')/i);const extractedD=(dMatch?.[1]??dMatch?.[2]??\"\").trim();// Extract viewBox if present so the path aligns as expected\nconst vbMatch=svg.match(/\\sviewBox\\s*=\\s*(?:\"([^\"]+)\"|'([^']+)')/i);const extractedViewBox=(vbMatch?.[1]??vbMatch?.[2]??\"\").trim();return{computedPathData:extractedD||fallbackD,computedViewBox:extractedViewBox||undefined};},[pathData,pathSource,pathSvg]);useEffect(()=>{startTransition(()=>setMounted(true));},[]);useEffect(()=>{if(typeof window===\"undefined\")return;if(!pathRef.current)return;try{const len=pathRef.current.getTotalLength();if(Number.isFinite(len)&&len>0){startTransition(()=>setPathLength(len));}}catch(e){// Ignore\n}},[computedPathData]);useEffect(()=>{if(typeof window===\"undefined\")return;if(!measureRef.current)return;try{const len=measureRef.current.getComputedTextLength();if(Number.isFinite(len)&&len>0){startTransition(()=>setUnitTextLength(len));}}catch(e){// Ignore\n}},[computedPathData,font,phrase,separator,repeatGap]);const unitText=useMemo(()=>{const p=(phrase??\"\").trim();const sep=(separator??\"\").trim();const gap=Number(repeatGap);const safeGap=Number.isFinite(gap)?Math.max(1,Math.min(40,Math.round(gap))):6;const spacer=\" \".repeat(safeGap);// Add spaces so each phrase clearly ends before the next begins.\nif(p.length)return`${p}${sep}${spacer}`;if(sep.length)return`${sep}${spacer}`;return spacer;},[phrase,separator,repeatGap]);const computedTextValue=useMemo(()=>{// Ensure we always have enough text to cover at least 3x the path length (prevents gaps at the end).\nconst safeUserRepeats=Math.max(1,Math.min(60,Math.round(repeats)));const estimateRepeats=(()=>{if(!pathLength||!unitTextLength)return 1;return Math.ceil(pathLength*3.1/unitTextLength);})();// Hard-cap repeats to keep payload stable & light (prevents stutter on mobile).\nconst safeRepeats=Math.max(safeUserRepeats,Math.min(60,Math.max(1,estimateRepeats)));const raw=new Array(safeRepeats).fill(unitText).join(\"\");if(!reverseText)return raw;return Array.from(raw).reverse().join(\"\");},[pathLength,repeats,reverseText,unitText,unitTextLength]);const textValue=computedTextValue;const canAnimate=useMemo(()=>{if(isStatic)return false;if(!mounted)return false;if(!pauseWhenOffscreen)return true;return inView;},[inView,isStatic,mounted,pauseWhenOffscreen]);const duration=useMemo(()=>{const s=Number(secondsPerLoop);if(!Number.isFinite(s))return 10;return Math.max(.2,Math.min(600,s));},[secondsPerLoop]);const preserveAspectRatio=useMemo(()=>{// Keep path visually centered while letting it scale to the layer size\nif(verticalAlign===\"meet\")return\"xMidYMid meet\";if(verticalAlign===\"slice\")return\"xMidYMid slice\";return\"none\";},[verticalAlign]);const viewBoxHeight=useMemo(()=>{const vb=(computedViewBox??\"0 0 1000 300\").trim();const parts=vb.split(/[\\s,]+/).map(v=>Number(v));const h=parts.length===4?parts[3]:300;return Number.isFinite(h)&&h>0?h:300;},[computedViewBox]);const viewBoxWidth=useMemo(()=>{const vb=(computedViewBox??\"0 0 1000 300\").trim();const parts=vb.split(/[\\s,]+/).map(v=>Number(v));const w=parts.length===4?parts[2]:1e3;return Number.isFinite(w)&&w>0?w:1e3;},[computedViewBox]);const pathTransform=useMemo(()=>{// Flip only the path/background group; keep text upright\nif(!flipX&&!flipY)return undefined;const transforms=[];if(flipX&&flipY)transforms.push(`translate(${viewBoxWidth}, ${viewBoxHeight}) scale(-1,-1)`);else if(flipX)transforms.push(`translate(${viewBoxWidth}, 0) scale(-1,1)`);else transforms.push(`translate(0, ${viewBoxHeight}) scale(1,-1)`);return transforms.join(\" \");},[flipX,flipY,viewBoxHeight,viewBoxWidth]);const textTransform=useMemo(()=>{// Transform the text group relative to the viewBox.\n// This is independent from the path transform so users can mirror text without flipping the path.\nconst flipTextX=textOrientation===\"flipX\"||textOrientation===\"flipXY\";const flipTextY=textOrientation===\"flipY\"||textOrientation===\"flipXY\";const t=[];if(flipTextX&&flipTextY)t.push(`translate(${viewBoxWidth}, ${viewBoxHeight}) scale(-1,-1)`);else if(flipTextX)t.push(`translate(${viewBoxWidth}, 0) scale(-1,1)`);else if(flipTextY)t.push(`translate(0, ${viewBoxHeight}) scale(1,-1)`);const rot=Number(textRotation);const safeRot=Number.isFinite(rot)?Math.max(-180,Math.min(180,rot)):0;if(safeRot!==0)t.push(`rotate(${safeRot} ${viewBoxWidth/2} ${viewBoxHeight/2})`);return t.length?t.join(\" \"):undefined;},[textOrientation,textRotation,viewBoxHeight,viewBoxWidth]);const baseSvgStyle=useMemo(()=>({width:\"100%\",height:\"100%\",display:\"block\",overflow:overflow===\"visible\"?\"visible\":\"hidden\"}),[overflow]);const textStyle=useMemo(()=>{const f=font??{};// SVG text needs explicit paint order to ensure readability when overlapping path\nreturn{...f,fill:textColor,paintOrder:\"stroke\"};},[font,textColor]);const textAnchor=useMemo(()=>{// The moving effect is driven by startOffset; keep anchor predictable.\n// Using \"start\" is the most consistent for tickers.\nreturn\"start\";},[]);const startOffsetStatic=reverse?\"100%\":\"0%\";// Animate using absolute path units (px) when possible to avoid clamping/jumps at 100% and to keep the loop seamless.\n// Seamless infinite loop without overlapping: animate by exactly one \"unitText\" length.\n// Because the content is periodic (unitText repeated), start and end frames match perfectly.\nconst{offsetFrom,offsetTo}=useMemo(()=>{const unit=unitTextLength||0;if(!unit){return{offsetFrom:reverse?\"0\":\"0\",offsetTo:reverse?\"100\":\"-100\"};}const from=0;const to=reverse?unit:-unit;return{offsetFrom:`${from}`,offsetTo:`${to}`};},[reverse,unitTextLength]);const resolvedTextSide=useMemo(()=>{if(textSide===\"auto\")return undefined;return textSide;},[textSide]);// Note: the SVG2 'side' attribute for <textPath> is not reliably supported across browsers.\n// We keep the control for compatibility, but we do not set it to avoid inconsistent orientation issues.\nconst animateDur=useMemo(()=>`${duration}s`,[duration]);const backgroundDashArray=useMemo(()=>{if(!showBackground)return undefined;const len=pathLength||0;if(!len)return undefined;const dash=backgroundWidthUnit===\"%\"?Math.max(0,Math.min(100,backgroundWidth))/100*len:Math.max(0,Math.min(len,backgroundWidth));const safeDash=Math.max(0,Math.min(len,dash));return`${safeDash} ${Math.max(0,len-safeDash)}`;},[backgroundWidth,backgroundWidthUnit,pathLength,showBackground]);const backgroundDashOffset=useMemo(()=>{if(!showBackground)return undefined;const len=pathLength||0;if(!len)return undefined;const dash=backgroundWidthUnit===\"%\"?Math.max(0,Math.min(100,backgroundWidth))/100*len:Math.max(0,Math.min(len,backgroundWidth));const safeDash=Math.max(0,Math.min(len,dash));return(len-safeDash)/2;},[backgroundWidth,backgroundWidthUnit,pathLength,showBackground]);return /*#__PURE__*/_jsx(\"div\",{ref:containerRef,style:{position:\"relative\",width:\"100%\",height:\"100%\",overflow:\"hidden\",margin:0,padding:0,...style},\"aria-label\":ariaLabel,role:\"img\",children:/*#__PURE__*/_jsxs(\"svg\",{style:{...baseSvgStyle,position:\"relative\",zIndex:1,// Helps browsers keep this on the compositor where possible.\nwillChange:canAnimate?\"transform\":undefined,transform:\"translateZ(0)\"},viewBox:computedViewBox??\"0 0 1000 300\",preserveAspectRatio:preserveAspectRatio,xmlns:\"http://www.w3.org/2000/svg\",children:[/*#__PURE__*/_jsx(\"path\",{id:textPathId,d:computedPathData,fill:\"none\",stroke:\"transparent\",strokeWidth:0}),/*#__PURE__*/_jsx(\"path\",{id:textPathFlippedId,d:computedPathData,fill:\"none\",stroke:\"transparent\",strokeWidth:0,transform:`translate(0 ${viewBoxHeight}) scale(1,-1)`}),/*#__PURE__*/_jsxs(\"g\",{transform:pathTransform,children:[showBackground&&computedPathData&&/*#__PURE__*/_jsx(\"path\",{d:computedPathData,fill:\"none\",stroke:backgroundColor,strokeWidth:Math.max(1,backgroundHeight),strokeLinecap:\"round\",strokeLinejoin:\"round\",vectorEffect:\"non-scaling-stroke\",opacity:1,strokeDasharray:backgroundDashArray,strokeDashoffset:backgroundDashOffset}),/*#__PURE__*/_jsx(\"path\",{ref:pathRef,id:pathId,d:computedPathData,fill:\"none\",stroke:showPath?pathColor:\"transparent\",strokeWidth:showPath?pathWidth:0,vectorEffect:\"non-scaling-stroke\"})]}),/*#__PURE__*/_jsx(\"g\",{transform:textTransform,children:(()=>{const v=textPathVariant??\"normal\";const useFlipped=v===\"flipped\";return /*#__PURE__*/_jsxs(_Fragment,{children:[!!computedPathData&&/*#__PURE__*/_jsx(\"text\",{style:textStyle,dominantBaseline:\"middle\",textAnchor:textAnchor,visibility:\"hidden\",\"aria-hidden\":\"true\",children:/*#__PURE__*/_jsx(\"textPath\",{ref:measureRef,href:`#${useFlipped?textPathFlippedId:textPathId}`,startOffset:\"0%\",spacing:\"auto\",method:\"align\",children:unitText})}),/*#__PURE__*/_jsx(\"text\",{style:{...textStyle,willChange:canAnimate?\"transform\":undefined},dominantBaseline:\"middle\",alignmentBaseline:\"middle\",textAnchor:textAnchor,\"aria-hidden\":ariaLabel?undefined:true,children:canAnimate?/*#__PURE__*/_jsx(_Fragment,{children:/*#__PURE__*/_jsxs(\"textPath\",{ref:animatedTextPathRef,href:`#${useFlipped?textPathFlippedId:textPathId}`,// SMIL animation is generally smoother and lighter than JS-driven attribute updates.\nstartOffset:offsetFrom,spacing:\"exact\",method:\"align\",children:[/*#__PURE__*/_jsx(\"animate\",{attributeName:\"startOffset\",dur:animateDur,repeatCount:\"indefinite\",calcMode:\"linear\",values:`${offsetFrom};${offsetTo}`}),textValue]})}):/*#__PURE__*/_jsx(\"textPath\",{ref:staticTextPathRef,href:`#${useFlipped?textPathFlippedId:textPathId}`,startOffset:startOffsetStatic,spacing:\"exact\",method:\"align\",children:textValue})})]});})()})]})});}addPropertyControls(TextPathTicker,{separator:{type:ControlType.String,title:\"Separador\",defaultValue:\"\"},pathSource:{type:ControlType.Enum,title:\"Entrada\",defaultValue:\"d\",options:[\"d\",\"svg\"],optionTitles:[\"Path (d)\",\"Cole SVG\"],displaySegmentedControl:true},phrase:{type:ControlType.String,title:\"Frase\",defaultValue:\"Sua frase aqui\"},repeatGap:{type:ControlType.Number,title:\"Espa\\xe7o\",defaultValue:6,min:1,max:40,step:1},repeats:{type:ControlType.Number,title:\"Repeti\\xe7\\xf5es\",defaultValue:18,min:1,max:60,step:1},secondsPerLoop:{type:ControlType.Number,title:\"Seg/volta\",defaultValue:10,min:.2,max:120,step:.1,unit:\"s\"},reverse:{type:ControlType.Boolean,title:\"Dire\\xe7\\xe3o\",defaultValue:false,enabledTitle:\"Reverso\",disabledTitle:\"Normal\"},reverseText:{type:ControlType.Boolean,title:\"Leitura\",defaultValue:false,enabledTitle:\"Corrigir\",disabledTitle:\"Normal\"},pathData:{type:ControlType.String,title:\"Path (d)\",defaultValue:\"M 40 150 C 180 40, 320 260, 460 150 S 740 260, 960 150\",displayTextArea:true,hidden:p=>p.pathSource===\"svg\"},pathSvg:{type:ControlType.String,title:\"SVG\",defaultValue:'<svg viewBox=\"0 0 1000 300\" xmlns=\"http://www.w3.org/2000/svg\">\\n  <path d=\"M 40 150 C 180 40, 320 260, 460 150 S 740 260, 960 150\" />\\n</svg>',displayTextArea:true,hidden:p=>p.pathSource!==\"svg\"},textColor:{type:ControlType.Color,title:\"Cor Texto\",defaultValue:\"#000000\"},font:{type:ControlType.Font,title:\"Fonte\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:\"22px\",variant:\"Semibold\",letterSpacing:\"-0.01em\",lineHeight:\"1em\"}},pauseWhenOffscreen:{type:ControlType.Boolean,title:\"Pausar fora\",defaultValue:true,enabledTitle:\"Sim\",disabledTitle:\"N\\xe3o\"},textPathVariant:{type:ControlType.Enum,title:\"Path texto\",defaultValue:\"normal\",options:[\"normal\",\"flipped\"],optionTitles:[\"Normal\",\"Invertido (corrigir leitura)\"]},textSide:{type:ControlType.Enum,title:\"Lado texto\",defaultValue:\"auto\",options:[\"auto\",\"left\",\"right\"],optionTitles:[\"Auto\",\"Esquerda\",\"Direita\"],displaySegmentedControl:true},textOrientation:{type:ControlType.Enum,title:\"Orienta\\xe7\\xe3o\",defaultValue:\"normal\",options:[\"normal\",\"flipY\",\"flipX\",\"flipXY\"],optionTitles:[\"Normal\",\"Virar embaixo\",\"Espelhar\",\"Virar + espelhar\"],displaySegmentedControl:false},showPath:{type:ControlType.Boolean,title:\"Mostrar Path\",defaultValue:false,enabledTitle:\"Sim\",disabledTitle:\"N\\xe3o\"},pathColor:{type:ControlType.Color,title:\"Cor Path\",defaultValue:\"#CCCCCC\",hidden:p=>!p.showPath},pathWidth:{type:ControlType.Number,title:\"Espessura\",defaultValue:2,min:.5,max:20,step:.5,unit:\"px\",hidden:p=>!p.showPath},overflow:{type:ControlType.Enum,title:\"Overflow\",defaultValue:\"hidden\",options:[\"hidden\",\"visible\"],optionTitles:[\"Hidden\",\"Visible\"],displaySegmentedControl:true},verticalAlign:{type:ControlType.Enum,title:\"Aspect\",defaultValue:\"none\",options:[\"none\",\"meet\",\"slice\"],optionTitles:[\"Stretch\",\"Meet\",\"Slice\"],displaySegmentedControl:true},flipY:{type:ControlType.Boolean,title:\"Inverter Y\",defaultValue:false,enabledTitle:\"Sim\",disabledTitle:\"N\\xe3o\"},flipX:{type:ControlType.Boolean,title:\"Inverter X\",defaultValue:false,enabledTitle:\"Sim\",disabledTitle:\"N\\xe3o\"},textRotation:{type:ControlType.Number,title:\"Rota\\xe7\\xe3o texto\",defaultValue:0,min:-180,max:180,step:1,unit:\"\\xb0\"},ariaLabel:{type:ControlType.String,title:\"A11y label\",defaultValue:\"Ticker de texto no caminho\"},showBackground:{type:ControlType.Boolean,title:\"Background\",defaultValue:false,enabledTitle:\"On\",disabledTitle:\"Off\"},backgroundColor:{type:ControlType.Color,title:\"Bg cor\",defaultValue:\"#F5F5F5\",hidden:p=>!p.showBackground},backgroundWidthUnit:{type:ControlType.Enum,title:\"Bg unidade\",defaultValue:\"%\",options:[\"%\",\"px\"],optionTitles:[\"%\",\"px\"],displaySegmentedControl:true,hidden:p=>!p.showBackground},backgroundWidth:{type:ControlType.Number,title:\"Bg largura\",defaultValue:100,min:1,max:2e3,step:1,hidden:p=>!p.showBackground},backgroundHeight:{type:ControlType.Number,title:\"Bg altura\",defaultValue:56,min:1,max:1e3,step:1,unit:\"px\",hidden:p=>!p.showBackground},backgroundRadius:{type:ControlType.Number,title:\"Bg radius\",defaultValue:16,min:0,max:200,step:1,unit:\"px\",hidden:p=>!p.showBackground}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"TextPathTicker\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerIntrinsicHeight\":\"200\",\"framerSupportedLayoutHeight\":\"any-prefer-fixed\",\"framerIntrinsicWidth\":\"600\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./TextPathTicker.map"],"mappings":"gSAUG,SAAwB,EAAe,EAAM,CAAC,GAAK,CAAC,SAAO,YAAU,YAAU,UAAQ,iBAAe,UAAQ,cAAY,aAAW,WAAS,UAAQ,YAAU,OAAK,WAAS,aAAU,aAAU,SAAM,WAAS,gBAAc,QAAM,QAAM,eAAa,YAAU,qBAAmB,WAAS,kBAAgB,mBAAgB,iBAAe,mBAAgB,kBAAgB,sBAAoB,oBAAiB,qBAAkB,EAAY,EAAS,GAAoB,EAAQ,EAAGA,GAAM,CAAC,CAAC,QAAQ,KAAK,GAAG,EAAQ,GAAO,eAAe,IAAW,EAAW,oBAAoB,IAAW,EAAkB,4BAA4B,IAAW,EAAaC,EAAO,IAAI,EAAQ,EAAQA,EAAO,IAAI,EAAQ,EAAWA,EAAO,IAAI,EAAQ,GAAkBA,EAAO,IAAI,EAAQ,GAAoBA,EAAO,IAAI,EAAQ,EAAO,GAAU,EAAa,CAAC,OAAO,EAAE,CAAC,EAAO,CAAC,EAAQ,IAAYC,EAAS,EAAK,EAAO,CAAC,EAAW,IAAeA,EAAS,CAAC,EAAO,CAAC,EAAe,IAAmBA,EAAS,CAAC,EAAO,CAAC,mBAAiB,mBAAiBC,MAAY,CAAC,IAAM,GAAW,GAAU,GAAA,CAAI,KAAK,EAAE,GAAG,IAAa,MAAO,MAAM,C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