{"version":3,"file":"StaggeredTextCycle_Prod.CU5HeNDb.mjs","names":["Hero","React.useContext","React.useMemo","React.Fragment","useRef","React.useId","sharedStyle.className","sharedStyle1.className","className","sharedStyle.css","sharedStyle1.css","sharedStyle.fonts","sharedStyle1.fonts","useState","_Fragment"],"sources":["https:/framerusercontent.com/modules/osUrP6HolPZ4PmS0Flo5/KlICS6tV1NodFKFEak7z/DPPt1RA8v.js","https:/framerusercontent.com/modules/4lPJUInr9BbZwDYdxSgD/MtDBVuDoZ2YXDgn8MBbB/StaggeredTextCycle_Prod.js"],"sourcesContent":["// Generated by Framer (84fc51f)\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addFonts,addPropertyControls,ComponentViewportProvider,ControlType,cx,getFonts,getFontsFromSharedStyle,RichText,SmartComponentScopedContainer,useComponentViewport,useLocaleInfo,useVariantState,withCSS}from\"framer\";import{LayoutGroup,motion,MotionConfigContext}from\"framer-motion\";import*as React from\"react\";import{useRef}from\"react\";import{Icon as Hero}from\"https://framerusercontent.com/modules/hKjtTuWGYB451ckw6eTN/bbq95ZQZ142lE2fXscHd/Hero.js\";import*as sharedStyle from\"https://framerusercontent.com/modules/AX9tJb8e0jaZJOSClPgj/Uhjj4k9ye35vZCIRHFtI/bA6gtqwOu.js\";import*as sharedStyle1 from\"https://framerusercontent.com/modules/mub2si9BJaPZqdy1TSy5/DdA6vIK0p8lQNyaIJ9QJ/us4C5oGgo.js\";const HeroFonts=getFonts(Hero);const cycleOrder=[\"GH3T7TQWR\",\"bbVBeFWEw\",\"fpYwxAfcd\"];const serializationHash=\"framer-ZfWAT\";const variantClassNames={bbVBeFWEw:\"framer-v-hj1lzg\",fpYwxAfcd:\"framer-v-x7tf7p\",GH3T7TQWR:\"framer-v-1099pzx\"};function addPropertyOverrides(overrides,...variants){const nextOverrides={};variants?.forEach(variant=>variant&&Object.assign(nextOverrides,overrides[variant]));return nextOverrides;}const transition1={bounce:.2,delay:0,duration:.4,type:\"spring\"};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 humanReadableVariantMap={Desktop:\"GH3T7TQWR\",Phone:\"fpYwxAfcd\",Tablet:\"bbVBeFWEw\"};const getProps=({backgroundColor,height,id,width,...props})=>{return{...props,GNEvjNkyd:backgroundColor??props.GNEvjNkyd??\"var(--token-23c5b227-07ba-4eca-a431-16bcfe8cb89f, rgb(255, 255, 255))\",variant:humanReadableVariantMap[props.variant]??props.variant??\"GH3T7TQWR\"};};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,GNEvjNkyd,...restProps}=getProps(props);const{baseVariant,classNames,clearLoadingGesture,gestureHandlers,gestureVariant,isLoading,setGestureState,setVariant,variants}=useVariantState({cycleOrder,defaultVariant:\"GH3T7TQWR\",ref:refBinding,variant,variantClassNames});const layoutDependency=createLayoutDependency(props,variants);const sharedStyleClassNames=[sharedStyle.className,sharedStyle1.className];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(motion.div,{...restProps,...gestureHandlers,className:cx(scopingClassNames,\"framer-1099pzx\",className,classNames),\"data-framer-name\":\"Desktop\",layoutDependency:layoutDependency,layoutId:\"GH3T7TQWR\",ref:refBinding,style:{backgroundColor:GNEvjNkyd,...style},...addPropertyOverrides({bbVBeFWEw:{\"data-framer-name\":\"Tablet\"},fpYwxAfcd:{\"data-framer-name\":\"Phone\"}},baseVariant,gestureVariant),children:/*#__PURE__*/_jsxs(motion.div,{className:\"framer-fchyoj\",layoutDependency:layoutDependency,layoutId:\"hbUqAUzCi\",children:[/*#__PURE__*/_jsx(RichText,{__fromCanvasComponent:true,children:/*#__PURE__*/_jsx(React.Fragment,{children:/*#__PURE__*/_jsx(motion.h2,{className:\"framer-styles-preset-1jkob13\",\"data-styles-preset\":\"bA6gtqwOu\",style:{\"--framer-text-alignment\":\"center\"},children:\"Mer enn 3 000 forn\\xf8yde h\\xe5ndverkere bruker Drifti\"})}),className:\"framer-17mmchj\",fonts:[\"Inter\"],layoutDependency:layoutDependency,layoutId:\"xRSBAW4Cg\",style:{\"--framer-link-text-color\":\"rgb(0, 153, 255)\",\"--framer-link-text-decoration\":\"underline\"},verticalAlignment:\"top\",withExternalLayout:true}),/*#__PURE__*/_jsxs(motion.div,{className:\"framer-4sl0og\",layoutDependency:layoutDependency,layoutId:\"lgaPSjmlL\",children:[/*#__PURE__*/_jsx(ComponentViewportProvider,{children:/*#__PURE__*/_jsx(SmartComponentScopedContainer,{className:\"framer-1uhd31u-container\",isAuthoredByUser:true,isModuleExternal:true,layoutDependency:layoutDependency,layoutId:\"Dsh8dSjNV-container\",nodeId:\"Dsh8dSjNV\",rendersWithMotion:true,scopeId:\"DPPt1RA8v\",children:/*#__PURE__*/_jsx(Hero,{color:\"var(--token-8d30d478-e033-4f04-b8b1-ef34e74d6ce9, rgb(249, 70, 209))\",height:\"100%\",iconSearch:\"Home\",iconSelection:\"Star\",id:\"Dsh8dSjNV\",layoutId:\"Dsh8dSjNV\",mirrored:false,selectByList:true,style:{height:\"100%\",width:\"100%\"},width:\"100%\"})})}),/*#__PURE__*/_jsx(ComponentViewportProvider,{children:/*#__PURE__*/_jsx(SmartComponentScopedContainer,{className:\"framer-o8717k-container\",isAuthoredByUser:true,isModuleExternal:true,layoutDependency:layoutDependency,layoutId:\"pQ7a7UVxQ-container\",nodeId:\"pQ7a7UVxQ\",rendersWithMotion:true,scopeId:\"DPPt1RA8v\",children:/*#__PURE__*/_jsx(Hero,{color:\"var(--token-8d30d478-e033-4f04-b8b1-ef34e74d6ce9, rgb(249, 70, 209))\",height:\"100%\",iconSearch:\"Home\",iconSelection:\"Star\",id:\"pQ7a7UVxQ\",layoutId:\"pQ7a7UVxQ\",mirrored:false,selectByList:true,style:{height:\"100%\",width:\"100%\"},width:\"100%\"})})}),/*#__PURE__*/_jsx(ComponentViewportProvider,{children:/*#__PURE__*/_jsx(SmartComponentScopedContainer,{className:\"framer-1qs70nl-container\",isAuthoredByUser:true,isModuleExternal:true,layoutDependency:layoutDependency,layoutId:\"Ps9o31FM2-container\",nodeId:\"Ps9o31FM2\",rendersWithMotion:true,scopeId:\"DPPt1RA8v\",children:/*#__PURE__*/_jsx(Hero,{color:\"var(--token-8d30d478-e033-4f04-b8b1-ef34e74d6ce9, rgb(249, 70, 209))\",height:\"100%\",iconSearch:\"Home\",iconSelection:\"Star\",id:\"Ps9o31FM2\",layoutId:\"Ps9o31FM2\",mirrored:false,selectByList:true,style:{height:\"100%\",width:\"100%\"},width:\"100%\"})})}),/*#__PURE__*/_jsx(ComponentViewportProvider,{children:/*#__PURE__*/_jsx(SmartComponentScopedContainer,{className:\"framer-1kwvfci-container\",isAuthoredByUser:true,isModuleExternal:true,layoutDependency:layoutDependency,layoutId:\"O7Ig2RsMF-container\",nodeId:\"O7Ig2RsMF\",rendersWithMotion:true,scopeId:\"DPPt1RA8v\",children:/*#__PURE__*/_jsx(Hero,{color:\"var(--token-8d30d478-e033-4f04-b8b1-ef34e74d6ce9, rgb(249, 70, 209))\",height:\"100%\",iconSearch:\"Home\",iconSelection:\"Star\",id:\"O7Ig2RsMF\",layoutId:\"O7Ig2RsMF\",mirrored:false,selectByList:true,style:{height:\"100%\",width:\"100%\"},width:\"100%\"})})}),/*#__PURE__*/_jsx(ComponentViewportProvider,{children:/*#__PURE__*/_jsx(SmartComponentScopedContainer,{className:\"framer-18vvf6x-container\",isAuthoredByUser:true,isModuleExternal:true,layoutDependency:layoutDependency,layoutId:\"yDVQ9rhs7-container\",nodeId:\"yDVQ9rhs7\",rendersWithMotion:true,scopeId:\"DPPt1RA8v\",children:/*#__PURE__*/_jsx(Hero,{color:\"var(--token-8d30d478-e033-4f04-b8b1-ef34e74d6ce9, rgb(249, 70, 209))\",height:\"100%\",iconSearch:\"Home\",iconSelection:\"Star\",id:\"yDVQ9rhs7\",layoutId:\"yDVQ9rhs7\",mirrored:false,selectByList:true,style:{height:\"100%\",width:\"100%\"},width:\"100%\"})})})]}),/*#__PURE__*/_jsx(RichText,{__fromCanvasComponent:true,children:/*#__PURE__*/_jsx(React.Fragment,{children:/*#__PURE__*/_jsx(motion.p,{className:\"framer-styles-preset-83xlhk\",\"data-styles-preset\":\"us4C5oGgo\",style:{\"--framer-text-alignment\":\"center\"},children:'\"Jeg har pr\\xf8vd mange systemer, men Drifti er det beste\"'})}),className:\"framer-1h9op1f\",fonts:[\"Inter\"],layoutDependency:layoutDependency,layoutId:\"D6Ex2UZcZ\",style:{\"--framer-link-text-color\":\"rgb(0, 153, 255)\",\"--framer-link-text-decoration\":\"underline\"},verticalAlignment:\"top\",withExternalLayout:true}),/*#__PURE__*/_jsx(RichText,{__fromCanvasComponent:true,children:/*#__PURE__*/_jsx(React.Fragment,{children:/*#__PURE__*/_jsx(motion.p,{className:\"framer-styles-preset-83xlhk\",\"data-styles-preset\":\"us4C5oGgo\",style:{\"--framer-text-alignment\":\"center\"},children:\"Tom i R\\xf8rteam\"})}),className:\"framer-1esv6sq\",fonts:[\"Inter\"],layoutDependency:layoutDependency,layoutId:\"YXlm1MC4T\",verticalAlignment:\"top\",withExternalLayout:true})]})})})})});});const css=[\"@supports (aspect-ratio: 1) { body { --framer-aspect-ratio-supported: auto; } }\",\".framer-ZfWAT.framer-t6jagf, .framer-ZfWAT .framer-t6jagf { display: block; }\",\".framer-ZfWAT.framer-1099pzx { align-content: center; align-items: center; display: flex; flex-direction: column; flex-wrap: nowrap; gap: 30px; height: min-content; justify-content: center; overflow: visible; padding: 50px 100px 50px 100px; position: relative; width: 1200px; }\",\".framer-ZfWAT .framer-fchyoj { align-content: center; align-items: center; display: flex; flex: none; flex-direction: column; flex-wrap: nowrap; gap: 20px; height: min-content; justify-content: center; max-width: 1200px; overflow: visible; padding: 0px 100px 0px 100px; position: relative; width: 100%; }\",\".framer-ZfWAT .framer-17mmchj, .framer-ZfWAT .framer-1h9op1f, .framer-ZfWAT .framer-1esv6sq { flex: none; height: auto; max-width: 600px; position: relative; white-space: pre-wrap; width: 600px; word-break: break-word; word-wrap: break-word; }\",\".framer-ZfWAT .framer-4sl0og { align-content: center; align-items: center; display: flex; flex: none; flex-direction: row; flex-wrap: nowrap; gap: 10px; height: min-content; justify-content: center; overflow: hidden; padding: 0px; position: relative; width: min-content; }\",\".framer-ZfWAT .framer-1uhd31u-container, .framer-ZfWAT .framer-o8717k-container, .framer-ZfWAT .framer-1qs70nl-container, .framer-ZfWAT .framer-1kwvfci-container, .framer-ZfWAT .framer-18vvf6x-container { flex: none; height: 25px; position: relative; width: 25px; }\",\".framer-ZfWAT.framer-v-hj1lzg.framer-1099pzx { padding: 50px 40px 50px 40px; width: 810px; }\",\".framer-ZfWAT.framer-v-hj1lzg .framer-fchyoj { gap: 40px; padding: 0px 60px 0px 60px; }\",\".framer-ZfWAT.framer-v-x7tf7p.framer-1099pzx { padding: 0px; width: 390px; }\",\".framer-ZfWAT.framer-v-x7tf7p .framer-fchyoj { padding: 50px 20px 50px 20px; }\",\".framer-ZfWAT.framer-v-x7tf7p .framer-17mmchj, .framer-ZfWAT.framer-v-x7tf7p .framer-1h9op1f, .framer-ZfWAT.framer-v-x7tf7p .framer-1esv6sq { width: 100%; }\",...sharedStyle.css,...sharedStyle1.css];/**\n * This is a generated Framer component.\n * @framerIntrinsicHeight 324\n * @framerIntrinsicWidth 1200\n * @framerCanvasComponentVariantDetails {\"propertyName\":\"variant\",\"data\":{\"default\":{\"layout\":[\"fixed\",\"auto\"]},\"bbVBeFWEw\":{\"layout\":[\"fixed\",\"auto\"]},\"fpYwxAfcd\":{\"layout\":[\"fixed\",\"auto\"]}}}\n * @framerVariables {\"GNEvjNkyd\":\"backgroundColor\"}\n * @framerImmutableVariables true\n * @framerDisplayContentsDiv false\n * @framerAutoSizeImages true\n * @framerComponentViewportWidth true\n * @framerColorSyntax true\n */const FramerDPPt1RA8v=withCSS(Component,css,\"framer-ZfWAT\");export default FramerDPPt1RA8v;FramerDPPt1RA8v.displayName=\"Reviews\";FramerDPPt1RA8v.defaultProps={height:324,width:1200};addPropertyControls(FramerDPPt1RA8v,{variant:{options:[\"GH3T7TQWR\",\"bbVBeFWEw\",\"fpYwxAfcd\"],optionTitles:[\"Desktop\",\"Tablet\",\"Phone\"],title:\"Variant\",type:ControlType.Enum},GNEvjNkyd:{defaultValue:'var(--token-23c5b227-07ba-4eca-a431-16bcfe8cb89f, rgb(255, 255, 255)) /* {\"name\":\"White linen\"} */',title:\"Background color\",type:ControlType.Color}});addFonts(FramerDPPt1RA8v,[{explicitInter:true,fonts:[{family:\"Inter\",source:\"framer\",style:\"normal\",unicodeRange:\"U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F\",url:\"https://framerusercontent.com/assets/5vvr9Vy74if2I6bQbJvbw7SY1pQ.woff2\",weight:\"400\"},{family:\"Inter\",source:\"framer\",style:\"normal\",unicodeRange:\"U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116\",url:\"https://framerusercontent.com/assets/EOr0mi4hNtlgWNn9if640EZzXCo.woff2\",weight:\"400\"},{family:\"Inter\",source:\"framer\",style:\"normal\",unicodeRange:\"U+1F00-1FFF\",url:\"https://framerusercontent.com/assets/Y9k9QrlZAqio88Klkmbd8VoMQc.woff2\",weight:\"400\"},{family:\"Inter\",source:\"framer\",style:\"normal\",unicodeRange:\"U+0370-03FF\",url:\"https://framerusercontent.com/assets/OYrD2tBIBPvoJXiIHnLoOXnY9M.woff2\",weight:\"400\"},{family:\"Inter\",source:\"framer\",style:\"normal\",unicodeRange:\"U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF\",url:\"https://framerusercontent.com/assets/JeYwfuaPfZHQhEG8U5gtPDZ7WQ.woff2\",weight:\"400\"},{family:\"Inter\",source:\"framer\",style:\"normal\",unicodeRange:\"U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2070, U+2074-207E, U+2080-208E, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD\",url:\"https://framerusercontent.com/assets/GrgcKwrN6d3Uz8EwcLHZxwEfC4.woff2\",weight:\"400\"},{family:\"Inter\",source:\"framer\",style:\"normal\",unicodeRange:\"U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+1EA0-1EF9, U+20AB\",url:\"https://framerusercontent.com/assets/b6Y37FthZeALduNqHicBT6FutY.woff2\",weight:\"400\"}]},...HeroFonts,...getFontsFromSharedStyle(sharedStyle.fonts),...getFontsFromSharedStyle(sharedStyle1.fonts)],{supportsExplicitInterCodegen:true});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"FramerDPPt1RA8v\",\"slots\":[],\"annotations\":{\"framerIntrinsicHeight\":\"324\",\"framerIntrinsicWidth\":\"1200\",\"framerVariables\":\"{\\\"GNEvjNkyd\\\":\\\"backgroundColor\\\"}\",\"framerColorSyntax\":\"true\",\"framerAutoSizeImages\":\"true\",\"framerComponentViewportWidth\":\"true\",\"framerImmutableVariables\":\"true\",\"framerContractVersion\":\"1\",\"framerDisplayContentsDiv\":\"false\",\"framerCanvasComponentVariantDetails\":\"{\\\"propertyName\\\":\\\"variant\\\",\\\"data\\\":{\\\"default\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"auto\\\"]},\\\"bbVBeFWEw\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"auto\\\"]},\\\"fpYwxAfcd\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"auto\\\"]}}}\"}},\"Props\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./DPPt1RA8v.map","import{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";import{useState,useEffect}from\"react\";import{addPropertyControls,ControlType,RenderTarget}from\"framer\";import{motion,AnimatePresence}from\"framer-motion\";const MAX_SPEED=20;const defaultTransition={// ease: \"power4.out\",\nease:[.11,.72,0,1]};/**\n * @framerIntrinsicWidth 400\n * @framerIntrinsicHeight 200\n *\n * @framerDisableUnlink\n *\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight any\n */export default function StaggeredTextCycleV2({text,speed,delay,font,userSelect,color,alignment,tag,loop,stagger}){const Tag=tag;const content=text.split(\", \").map(phrase=>phrase.replace(/\\s+/g,\" \").trim());const[iteration,setIteration]=useState(0);const speedFormatted=(MAX_SPEED-speed+1)/MAX_SPEED*5;const delayFormattedMs=delay*1e3;const speedFormattedMs=speedFormatted*1e3;const isCanvas=RenderTarget.current()===RenderTarget.canvas;const[isFirstRender,setIsFirstRender]=useState(true);useEffect(()=>{const timeout=isFirstRender?speedFormattedMs/3+delayFormattedMs:speedFormattedMs+delayFormattedMs;const interval=setInterval(()=>{setIsFirstRender(false);if(iteration<content.length-1){setIteration(prev=>prev+1);}else if(loop){setIteration(0);}},timeout);return()=>clearInterval(interval);},[iteration,loop,isFirstRender]);return /*#__PURE__*/_jsxs(\"div\",{style:{userSelect:userSelect?\"auto\":\"none\",position:\"relative\",display:\"flex\",flexDirection:\"row\",overflow:\"visible\",justifyContent:alignment===\"center\"?\"center\":alignment===\"right\"?\"flex-end\":\"flex-start\"},children:[/*#__PURE__*/_jsx(Tag,{\"aria-hidden\":true,style:{fontSize:\"24px\",...font,marginBlockStart:\"0px\",marginBlockEnd:\"0px\",pointerEvents:\"none\",opacity:0,whiteSpace:\"pre-wrap\",width:\"100%\",textAlign:alignment},children:content.reduce((longest,current)=>current.length>longest.length?current:longest)}),isCanvas&&/*#__PURE__*/_jsx(Tag,{style:{fontSize:\"24px\",...font,color,marginBlockStart:\"0px\",marginBlockEnd:\"0px\",whiteSpace:\"pre-wrap\",position:\"absolute\",top:0,left:0,width:\"100%\",textAlign:alignment},children:content[0]}),!isCanvas&&/*#__PURE__*/_jsx(_Fragment,{children:content.map((sentence,sentenceIndex)=>{let charIndex=0;// Split sentence into segments\nconst segments=sentence.split(/(\\s+|\\b)/).map(segment=>({text:segment,chars:segment.split(\"\").map(char=>({char,originalIndex:charIndex++}))}));console.log(segments);return /*#__PURE__*/_jsx(\"div\",{style:{position:\"absolute\",top:0,left:0,overflow:\"visible\",width:\"100%\",textAlign:alignment},children:/*#__PURE__*/_jsx(AnimatePresence,{mode:\"sync\",children:iteration===sentenceIndex&&/*#__PURE__*/_jsx(\"div\",{style:{display:\"flex\",flexWrap:\"wrap\",width:\"100%\",justifyContent:alignment===\"center\"?\"center\":alignment===\"right\"?\"flex-end\":\"flex-start\",gap:0},children:segments.map((segment,segmentIndex)=>/*#__PURE__*/_jsx(\"div\",{style:{display:\"inline-flex\",flexWrap:\"nowrap\",whiteSpace:\"pre\",overflow:\"hidden\"},children:segment.chars.map(({char,originalIndex})=>{const baseDelay=originalIndex/(sentence.length-1);const delayInitial=baseDelay*(speedFormatted*.3)// 30% of speed\n    ;const delayAnimate=baseDelay*(speedFormatted*.4)// 40% of speed\n    ;const delayExit=baseDelay*(speedFormatted*.3)// 30% of speed\n    ;const itemTransition={initial:{transform:`translate(0px, 150%)`,transition:{...defaultTransition,duration:speedFormatted/2,delay:delayInitial*stagger}},animate:{transform:`translate(0px, 0px)`,transition:{...defaultTransition,duration:speedFormatted/2,delay:delayAnimate*stagger}},exit:{transform:`translate(0px, -150%)`,transition:{...defaultTransition,duration:speedFormatted/2,delay:delayExit*stagger}}};return /*#__PURE__*/_jsx(motion.div,{variants:itemTransition,initial:isFirstRender?false:\"initial\",animate:isFirstRender?false:\"animate\",exit:\"exit\",style:{display:\"inline-block\"},children:/*#__PURE__*/_jsx(Tag,{style:{fontSize:\"24px\",...font,color,marginBlockStart:\"0px\",marginBlockEnd:\"0px\",opacity:1},children:char})},sentence+originalIndex);})},segmentIndex))})})},sentenceIndex);})})]});}StaggeredTextCycleV2.displayName=\"Staggered Cycle\";addPropertyControls(StaggeredTextCycleV2,{text:{type:ControlType.String,title:\"Text\",defaultValue:\"DESIGNER, DEVELOPER\",description:\"Divide the words with a comma (,) if you want to display them separately.\"},speed:{type:ControlType.Number,title:\"Speed\",defaultValue:MAX_SPEED/2,min:1,max:MAX_SPEED},delay:{type:ControlType.Number,title:\"Delay\",defaultValue:1,min:0,max:10,unit:\"s\"},stagger:{title:\"Stagger\",description:\"The delay between each word.\",type:ControlType.Number,defaultValue:.5,step:.1,min:0,max:1},font:{title:\"Font\",type:ControlType.Font,controls:\"extended\"},alignment:{type:ControlType.Enum,displaySegmentedControl:true,title:\"Alignment\",defaultValue:\"left\",options:[\"left\",\"center\",\"right\"],optionTitles:[\"Left\",\"Center\",\"Right\"]},userSelect:{title:\"User Select\",type:ControlType.Boolean,defaultValue:false},color:{title:\"Color\",type:ControlType.Color,defaultValue:\"#ffffff\"},tag:{type:ControlType.Enum,title:\"Tag\",defaultValue:\"p\",displaySegmentedControl:true,segmentedControlDirection:\"horizontal\",options:[\"h1\",\"h2\",\"h3\",\"p\"],optionTitles:[\"H1\",\"H2\",\"H3\",\"P\"]},loop:{title:\"Loop\",type:ControlType.Boolean,defaultValue:true,description:\"More components at [Framer University](https://frameruni.link/cc).\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"StaggeredTextCycleV2\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"any\",\"framerSupportedLayoutHeight\":\"any\",\"framerDisableUnlink\":\"*\",\"framerIntrinsicWidth\":\"400\",\"framerIntrinsicHeight\":\"200\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./StaggeredTextCycle_Prod.map"],"mappings":"87BAC+9B,SAAS,GAAqB,EAAU,GAAG,EAAS,CAAC,IAAM,EAAc,EAAE,CAAsF,OAArF,GAAU,QAAQ,GAAS,GAAS,OAAO,OAAO,EAAc,EAAU,GAAS,CAAC,CAAQ,gDAA9kC,IAA6N,IAAkE,IAA4B,IAA4I,KAAyH,IAA0H,CAAM,EAAU,EAASA,EAAK,CAAO,EAAW,CAAC,YAAY,YAAY,YAAY,CAAO,EAAkB,eAAqB,EAAkB,CAAC,UAAU,kBAAkB,UAAU,kBAAkB,UAAU,mBAAmB,CAA8L,EAAY,CAAC,OAAO,GAAG,MAAM,EAAE,SAAS,GAAG,KAAK,SAAS,CAAO,GAAY,CAAC,QAAM,cAAY,CAAC,IAAM,EAAOC,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,EAAwB,CAAC,QAAQ,YAAY,MAAM,YAAY,OAAO,YAAY,CAAO,GAAU,CAAC,kBAAgB,SAAO,KAAG,QAAM,GAAG,MAAgB,CAAC,GAAG,EAAM,UAAU,GAAiB,EAAM,WAAW,wEAAwE,QAAQ,EAAwB,EAAM,UAAU,EAAM,SAAS,YAAY,EAAS,GAAwB,EAAM,IAAe,EAAM,iBAAwB,EAAS,KAAK,IAAI,CAAC,EAAM,iBAAwB,EAAS,KAAK,IAAI,CAAS,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