{"version":3,"file":"ImageCycle.CjyrUUWt.mjs","names":["ArrowRight","React.useContext","React.useMemo","React.Fragment","useRef","React.useId","sharedStyle.className","className","sharedStyle.css","sharedStyle.fonts","React.useMemo","React.useRef","React.useState","React.useCallback","__esmMin","x","init_ssg_sandbox_shims","pe","te","init_npm_react_18_3_1","_e","de","oe","ne","p","c","J","init_jsx_runtime","ie","ce","window","useInView","motion","LayoutGroup","MotionConfigContext","init_framer_motion_DhsWWWsN","getFontsFromSharedStyle","addFonts","useVariantState","useOnVariantChange","useLocaleInfo","useComponentViewport","Link","cx","addPropertyControls","withCSS","useActiveVariantCallback","ControlType","init_framer_Dt_XqoQa","useIsStaticRenderer","RichText","getFonts","Icon","init_NsFAbos2D","className","css$1","init_BKM6OLajM","fonts","addPropertyOverrides","variants","nextOverrides","variant","overrides","ArrowRightFonts","cycleOrder","serializationHash","variantClassNames","transition1","transition2","Transition","humanReadableVariantMap","Variants","getProps","createLayoutDependency","Component","css","FramerYm5yZze2T","init_Ym5yZze2T","config","transition","value","contextValue","props","label","click","link","fallbackRef","refBinding","ref","defaultLayoutId","className$1","restProps","layoutDependency","sharedStyleClassNames","baseVariant","onTap1avp1oo","activeVariantCallback","args","setGestureState","o6zBb5592","onMouseEnter1f1uzog","setVariant","onMouseLeave1unxobq","scopingClassNames","onAppearjkeezr","delay","onAppearfu801c","layoutId","gestureVariant","y3DLPBO8W","gestureHandlers","classNames","style","gerVZF2pu","ImageCycle","fallbackImages","resolvedImages","list","images","i","isStatic","containerRef","inView","index","setIndex","hoverPaused","setHoverPaused","loadedSrcs","setLoadedSrcs","markLoaded","src","prev","canCycle","delaySeconds","paused","pauseOnHover","intervalMs","id","step","next","duration","crossfadeSeconds","img","fit","init_ImageCycle"],"sources":["https:/framerusercontent.com/modules/iBjwJClf448DDAcR47iQ/rOF6rgIo03DeIk4bup1L/Ym5yZze2T.js","https:/framerusercontent.com/modules/H6ofjSHWlNsUjpbYBDon/XcTgsBPprszURlquBOJW/ImageCycle.js"],"sourcesContent":["// Generated by Framer (ae08463)\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addFonts,addPropertyControls,ControlType,cx,getFonts,getFontsFromSharedStyle,Link,RichText,useActiveVariantCallback,useComponentViewport,useLocaleInfo,useOnVariantChange,useVariantState,withCSS}from\"framer\";import{LayoutGroup,motion,MotionConfigContext}from\"framer-motion\";import*as React from\"react\";import{useRef}from\"react\";import ArrowRight from\"https://framerusercontent.com/modules/vucbAKTzqT9fDdQ6cWjl/jQNH78BJFkN7F3O7BfDw/NsFAbos2D.js\";import*as sharedStyle from\"https://framerusercontent.com/modules/YifrC8t1hk6G7mci4oIm/OVaWKJwbqTVpZZ9dAZSn/BKM6OLajM.js\";const ArrowRightFonts=getFonts(ArrowRight);const cycleOrder=[\"OYjGNCJW1\",\"f3xKpDw_j\",\"dsMIF3VWZ\",\"Tjd8se7Jq\",\"B7pOOkbhc\"];const serializationHash=\"framer-7Q6sU\";const variantClassNames={B7pOOkbhc:\"framer-v-yubcbr\",dsMIF3VWZ:\"framer-v-zqgorw\",f3xKpDw_j:\"framer-v-tovtt6\",OYjGNCJW1:\"framer-v-162dc5c\",Tjd8se7Jq:\"framer-v-18gt4y9\"};function addPropertyOverrides(overrides,...variants){const nextOverrides={};variants?.forEach(variant=>variant&&Object.assign(nextOverrides,overrides[variant]));return nextOverrides;}const o6zBb5592=undefined;const y3DLPBO8W=undefined;const gerVZF2pu=undefined;const transition1={duration:0,type:\"tween\"};const transition2={delay:0,duration:.6,ease:[.62,.2,.13,.93],type:\"tween\"};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 humanReadableVariantMap={\"Regular - Line in\":\"f3xKpDw_j\",\"Regular - Reset\":\"dsMIF3VWZ\",\"Variant 5\":\"B7pOOkbhc\",Mobile:\"Tjd8se7Jq\",Regular:\"OYjGNCJW1\"};const Variants=motion.create(React.Fragment);const getProps=({click,height,id,label,link,width,...props})=>{return{...props,gerVZF2pu:label??props.gerVZF2pu??\"GET IN TOUCH\",o6zBb5592:click??props.o6zBb5592,variant:humanReadableVariantMap[props.variant]??props.variant??\"OYjGNCJW1\",y3DLPBO8W:link??props.y3DLPBO8W};};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,gerVZF2pu,y3DLPBO8W,o6zBb5592,...restProps}=getProps(props);const{baseVariant,classNames,clearLoadingGesture,gestureHandlers,gestureVariant,isLoading,setGestureState,setVariant,variants}=useVariantState({cycleOrder,defaultVariant:\"OYjGNCJW1\",ref:refBinding,variant,variantClassNames});const layoutDependency=createLayoutDependency(props,variants);const sharedStyleClassNames=[sharedStyle.className];const{activeVariantCallback,delay}=useActiveVariantCallback(baseVariant);const onTap1avp1oo=activeVariantCallback(async(...args)=>{setGestureState({isPressed:false});if(o6zBb5592){const res=await o6zBb5592(...args);if(res===false)return false;}});const onMouseEnter1f1uzog=activeVariantCallback(async(...args)=>{setGestureState({isHovered:true});setVariant(\"f3xKpDw_j\");});const onMouseLeave1unxobq=activeVariantCallback(async(...args)=>{setGestureState({isHovered:false});setVariant(\"f3xKpDw_j\");});const scopingClassNames=cx(serializationHash,...sharedStyleClassNames);const onAppearjkeezr=activeVariantCallback(async(...args)=>{await delay(()=>setVariant(\"dsMIF3VWZ\",true),300);});const onAppearfu801c=activeVariantCallback(async(...args)=>{await delay(()=>setVariant(\"OYjGNCJW1\",true),600);});useOnVariantChange(baseVariant,{dsMIF3VWZ:onAppearfu801c,f3xKpDw_j:onAppearjkeezr});return /*#__PURE__*/_jsx(LayoutGroup,{id:layoutId??defaultLayoutId,children:/*#__PURE__*/_jsx(Variants,{animate:variants,initial:false,children:/*#__PURE__*/_jsx(Transition,{value:transition1,...addPropertyOverrides({dsMIF3VWZ:{value:transition2},f3xKpDw_j:{value:transition2}},baseVariant,gestureVariant),children:/*#__PURE__*/_jsx(Link,{href:y3DLPBO8W,motionChild:true,nodeId:\"OYjGNCJW1\",openInNewTab:false,scopeId:\"Ym5yZze2T\",children:/*#__PURE__*/_jsxs(motion.a,{...restProps,...gestureHandlers,className:`${cx(scopingClassNames,\"framer-162dc5c\",className,classNames)} framer-jztabf`,\"data-framer-name\":\"Regular\",\"data-highlight\":true,layoutDependency:layoutDependency,layoutId:\"OYjGNCJW1\",onMouseEnter:onMouseEnter1f1uzog,onMouseLeave:onMouseLeave1unxobq,onTap:onTap1avp1oo,ref:refBinding,style:{...style},...addPropertyOverrides({B7pOOkbhc:{\"data-framer-name\":\"Variant 5\",onMouseEnter:undefined,onMouseLeave:undefined},dsMIF3VWZ:{\"data-framer-name\":\"Regular - Reset\",onMouseEnter:undefined,onMouseLeave:undefined},f3xKpDw_j:{\"data-framer-name\":\"Regular - Line in\",onMouseEnter:undefined,onMouseLeave:undefined},Tjd8se7Jq:{\"data-framer-name\":\"Mobile\",onMouseEnter:undefined,onMouseLeave:undefined}},baseVariant,gestureVariant),children:[/*#__PURE__*/_jsxs(motion.div,{className:\"framer-fth298\",\"data-framer-name\":\"Text + arrow\",layoutDependency:layoutDependency,layoutId:\"wDC4o2PrV\",children:[/*#__PURE__*/_jsx(RichText,{__fromCanvasComponent:true,children:/*#__PURE__*/_jsx(React.Fragment,{children:/*#__PURE__*/_jsx(motion.p,{className:\"framer-styles-preset-1lyz8q4\",\"data-styles-preset\":\"BKM6OLajM\",dir:\"auto\",children:\"GET IN TOUCH\"})}),className:\"framer-15kjroe\",\"data-framer-name\":\"Label\",fonts:[\"Inter\"],layoutDependency:layoutDependency,layoutId:\"ySfdKzk_O\",text:gerVZF2pu,variants:{B7pOOkbhc:{\"--extracted-r6o4lv\":\"rgb(255, 255, 255)\"}},verticalAlignment:\"top\",withExternalLayout:true,...addPropertyOverrides({B7pOOkbhc:{children:/*#__PURE__*/_jsx(React.Fragment,{children:/*#__PURE__*/_jsx(motion.p,{className:\"framer-styles-preset-1lyz8q4\",\"data-styles-preset\":\"BKM6OLajM\",dir:\"auto\",style:{\"--framer-text-color\":\"var(--extracted-r6o4lv, rgb(255, 255, 255))\"},children:\"GET IN TOUCH\"})})}},baseVariant,gestureVariant)}),/*#__PURE__*/_jsxs(motion.div,{className:\"framer-1p1nh9a\",\"data-framer-name\":\"Arrow Wrapper\",layoutDependency:layoutDependency,layoutId:\"rP0ZeyEbA\",children:[/*#__PURE__*/_jsx(ArrowRight,{animated:true,className:\"framer-1ytwk6g\",layoutDependency:layoutDependency,layoutId:\"Gbj38G7Du\",style:{\"--1dlwa4q\":2,\"--1hdsue\":\"var(--token-702e6964-0cea-4652-8d29-44f23bbf4365, rgb(8, 8, 8))\"}}),/*#__PURE__*/_jsx(ArrowRight,{animated:true,className:\"framer-41uiqp\",\"data-framer-name\":\"Arrow Right 2\",layoutDependency:layoutDependency,layoutId:\"Ch3W4aTQx\",style:{\"--1dlwa4q\":2,\"--1hdsue\":\"var(--token-702e6964-0cea-4652-8d29-44f23bbf4365, rgb(8, 8, 8))\"},variants:{B7pOOkbhc:{\"--1hdsue\":\"var(--token-c8dadb07-f7d9-406b-a3d0-4f8ea5ae7dfe, rgb(241, 241, 241))\"}}})]})]}),/*#__PURE__*/_jsxs(motion.div,{className:\"framer-dld85e\",\"data-framer-name\":\"Underline\",layoutDependency:layoutDependency,layoutId:\"K6FiOO2OS\",children:[/*#__PURE__*/_jsx(motion.div,{className:\"framer-1vpzfg2\",\"data-framer-name\":\"Secondary\",layoutDependency:layoutDependency,layoutId:\"Vl6EgxRgo\",style:{backgroundColor:\"var(--token-702e6964-0cea-4652-8d29-44f23bbf4365, rgb(8, 8, 8))\"},variants:{B7pOOkbhc:{backgroundColor:\"rgb(255, 255, 255)\"}}}),/*#__PURE__*/_jsx(motion.div,{className:\"framer-1887en3\",\"data-framer-name\":\"Primary\",layoutDependency:layoutDependency,layoutId:\"It6445sK2\",style:{backgroundColor:\"var(--token-702e6964-0cea-4652-8d29-44f23bbf4365, rgb(8, 8, 8))\"},variants:{B7pOOkbhc:{backgroundColor:\"rgb(255, 255, 255)\"}}})]})]})})})})});});const css=[\".framer-7Q6sU.framer-jztabf, .framer-7Q6sU .framer-jztabf { display: block; }\",\".framer-7Q6sU.framer-162dc5c { align-content: flex-start; align-items: flex-start; cursor: pointer; display: flex; flex-direction: column; flex-wrap: nowrap; gap: 2px; height: min-content; justify-content: flex-start; overflow: var(--overflow-clip-fallback, clip); padding: 0px; position: relative; text-decoration: none; width: min-content; }\",\".framer-7Q6sU .framer-fth298 { align-content: center; align-items: center; align-self: stretch; display: flex; flex: none; flex-direction: row; flex-wrap: nowrap; gap: 4px; height: min-content; justify-content: center; overflow: visible; padding: 0px; position: relative; width: auto; }\",\".framer-7Q6sU .framer-15kjroe { flex: none; height: auto; position: relative; white-space: pre; width: auto; }\",\".framer-7Q6sU .framer-1p1nh9a { 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: var(--overflow-clip-fallback, clip); padding: 0px; position: relative; width: min-content; }\",\".framer-7Q6sU .framer-1ytwk6g { aspect-ratio: 1 / 1; bottom: 0px; flex: none; height: auto; left: -30px; position: absolute; width: 24px; z-index: 1; }\",\".framer-7Q6sU .framer-41uiqp { aspect-ratio: 1 / 1; flex: none; height: auto; position: relative; width: 24px; z-index: 1; }\",\".framer-7Q6sU .framer-dld85e { align-content: center; align-items: center; align-self: stretch; display: flex; flex: none; flex-direction: row; flex-wrap: nowrap; gap: 0px; height: 1px; justify-content: center; overflow: visible; padding: 0px; position: relative; width: auto; }\",\".framer-7Q6sU .framer-1vpzfg2 { bottom: 0px; flex: none; height: 1px; left: -10px; overflow: var(--overflow-clip-fallback, clip); position: absolute; width: 1px; z-index: 1; }\",\".framer-7Q6sU .framer-1887en3 { flex: none; height: 1px; overflow: var(--overflow-clip-fallback, clip); position: relative; width: 100%; z-index: 1; }\",\".framer-7Q6sU.framer-v-tovtt6 .framer-1ytwk6g, .framer-7Q6sU.framer-v-zqgorw .framer-1ytwk6g { bottom: unset; left: unset; position: relative; }\",\".framer-7Q6sU.framer-v-tovtt6 .framer-41uiqp, .framer-7Q6sU.framer-v-zqgorw .framer-41uiqp { bottom: 0px; position: absolute; right: -30px; }\",\".framer-7Q6sU.framer-v-tovtt6 .framer-1887en3, .framer-7Q6sU.framer-v-zqgorw .framer-1887en3 { bottom: 0px; position: absolute; right: -10px; width: 1px; }\",\".framer-7Q6sU.framer-v-zqgorw .framer-1vpzfg2 { bottom: unset; left: unset; position: relative; width: 100%; }\",...sharedStyle.css];/**\n * This is a generated Framer component.\n * @framerIntrinsicHeight 27\n * @framerIntrinsicWidth 134\n * @framerCanvasComponentVariantDetails {\"propertyName\":\"variant\",\"data\":{\"default\":{\"layout\":[\"auto\",\"auto\"]},\"f3xKpDw_j\":{\"layout\":[\"auto\",\"auto\"]},\"dsMIF3VWZ\":{\"layout\":[\"auto\",\"auto\"]},\"Tjd8se7Jq\":{\"layout\":[\"auto\",\"auto\"]},\"B7pOOkbhc\":{\"layout\":[\"auto\",\"auto\"]}}}\n * @framerVariables {\"gerVZF2pu\":\"label\",\"y3DLPBO8W\":\"link\",\"o6zBb5592\":\"click\"}\n * @framerImmutableVariables true\n * @framerDisplayContentsDiv false\n * @framerAutoSizeImages true\n * @framerComponentViewportWidth true\n * @framerColorSyntax true\n */const FramerYm5yZze2T=withCSS(Component,css,\"framer-7Q6sU\");export default FramerYm5yZze2T;FramerYm5yZze2T.displayName=\"Primary link\";FramerYm5yZze2T.defaultProps={height:27,width:134};addPropertyControls(FramerYm5yZze2T,{variant:{options:[\"OYjGNCJW1\",\"f3xKpDw_j\",\"dsMIF3VWZ\",\"Tjd8se7Jq\",\"B7pOOkbhc\"],optionTitles:[\"Regular\",\"Regular - Line in\",\"Regular - Reset\",\"Mobile\",\"Variant 5\"],title:\"Variant\",type:ControlType.Enum},gerVZF2pu:{defaultValue:\"GET IN TOUCH\",description:\"\",displayTextArea:false,title:\"Label\",type:ControlType.String},ongerVZF2puChange:{changes:\"gerVZF2pu\",type:ControlType.ChangeHandler},y3DLPBO8W:{title:\"Link\",type:ControlType.Link},o6zBb5592:{title:\"Click\",type:ControlType.EventHandler}});addFonts(FramerYm5yZze2T,[{explicitInter:true,fonts:[{cssFamilyName:\"Inter\",source:\"framer\",style:\"normal\",uiFamilyName:\"Inter\",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\"},{cssFamilyName:\"Inter\",source:\"framer\",style:\"normal\",uiFamilyName:\"Inter\",unicodeRange:\"U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116\",url:\"https://framerusercontent.com/assets/EOr0mi4hNtlgWNn9if640EZzXCo.woff2\",weight:\"400\"},{cssFamilyName:\"Inter\",source:\"framer\",style:\"normal\",uiFamilyName:\"Inter\",unicodeRange:\"U+1F00-1FFF\",url:\"https://framerusercontent.com/assets/Y9k9QrlZAqio88Klkmbd8VoMQc.woff2\",weight:\"400\"},{cssFamilyName:\"Inter\",source:\"framer\",style:\"normal\",uiFamilyName:\"Inter\",unicodeRange:\"U+0370-03FF\",url:\"https://framerusercontent.com/assets/OYrD2tBIBPvoJXiIHnLoOXnY9M.woff2\",weight:\"400\"},{cssFamilyName:\"Inter\",source:\"framer\",style:\"normal\",uiFamilyName:\"Inter\",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\"},{cssFamilyName:\"Inter\",source:\"framer\",style:\"normal\",uiFamilyName:\"Inter\",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\"},{cssFamilyName:\"Inter\",source:\"framer\",style:\"normal\",uiFamilyName:\"Inter\",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\"}]},...ArrowRightFonts,...getFontsFromSharedStyle(sharedStyle.fonts)],{supportsExplicitInterCodegen:true});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"FramerYm5yZze2T\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerImmutableVariables\":\"true\",\"framerColorSyntax\":\"true\",\"framerComponentViewportWidth\":\"true\",\"framerVariables\":\"{\\\"gerVZF2pu\\\":\\\"label\\\",\\\"y3DLPBO8W\\\":\\\"link\\\",\\\"o6zBb5592\\\":\\\"click\\\"}\",\"framerIntrinsicWidth\":\"134\",\"framerCanvasComponentVariantDetails\":\"{\\\"propertyName\\\":\\\"variant\\\",\\\"data\\\":{\\\"default\\\":{\\\"layout\\\":[\\\"auto\\\",\\\"auto\\\"]},\\\"f3xKpDw_j\\\":{\\\"layout\\\":[\\\"auto\\\",\\\"auto\\\"]},\\\"dsMIF3VWZ\\\":{\\\"layout\\\":[\\\"auto\\\",\\\"auto\\\"]},\\\"Tjd8se7Jq\\\":{\\\"layout\\\":[\\\"auto\\\",\\\"auto\\\"]},\\\"B7pOOkbhc\\\":{\\\"layout\\\":[\\\"auto\\\",\\\"auto\\\"]}}}\",\"framerAutoSizeImages\":\"true\",\"framerDisplayContentsDiv\":\"false\",\"framerIntrinsicHeight\":\"27\"}},\"Props\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Ym5yZze2T.map","import{jsx as _jsx}from\"react/jsx-runtime\";import*as React from\"react\";import{addPropertyControls,ControlType,useIsStaticRenderer}from\"framer\";import{motion,useInView}from\"framer-motion\";/**\n * Instructions:\n * Create image cycle component.\n * Images are cycling one after the another, user should be able to set the time delay,\n * also user should be able to source images from project CMS.\n *//**\n * @framerIntrinsicWidth 600\n * @framerIntrinsicHeight 400\n *\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n */export default function ImageCycle(props){const{images,delaySeconds,crossfadeSeconds,fit,background,pauseOnHover,style}=props;const fallbackImages=React.useMemo(()=>[{src:\"https://framerusercontent.com/images/GfGkADagM4KEibNcIiRUWlfrR0.jpg\",alt:\"Gradient 1 - Blue\"},{src:\"https://framerusercontent.com/images/aNsAT3jCvt4zglbWCUoFe33Q.jpg\",alt:\"Gradient 2 - Purple\"},{src:\"https://framerusercontent.com/images/BYnxEV1zjYb9bhWh1IwBZ1ZoS60.jpg\",alt:\"Gradient 3 - Orange\"}],[]);const resolvedImages=React.useMemo(()=>{const list=Array.isArray(images)?images.filter(i=>i&&typeof i.src===\"string\"&&i.src):[];return list.length>0?list:fallbackImages;},[images,fallbackImages]);const isStatic=useIsStaticRenderer();const containerRef=React.useRef(null);const inView=useInView(containerRef,{amount:.15});const[index,setIndex]=React.useState(0);const[hoverPaused,setHoverPaused]=React.useState(false);// Tracks which image URLs have actually finished downloading, so the cycle\n// never advances to a frame that has nothing to show yet.\nconst[loadedSrcs,setLoadedSrcs]=React.useState(()=>new Set);const markLoaded=React.useCallback(src=>{if(!src)return;setLoadedSrcs(prev=>prev.has(src)?prev:new Set(prev).add(src));},[]);React.useEffect(()=>{React.startTransition(()=>setIndex(0));},[resolvedImages.length]);const canCycle=resolvedImages.length>1&&delaySeconds>0;const paused=pauseOnHover&&hoverPaused||!inView||isStatic;React.useEffect(()=>{if(typeof window===\"undefined\")return;if(!canCycle)return;if(paused)return;const intervalMs=Math.max(50,delaySeconds*1e3);const id=window.setInterval(()=>{React.startTransition(()=>{setIndex(prev=>{// Advance to the next image that has already finished loading, so the\n// crossfade never lands on a blank frame. If nothing is ready yet, hold\n// on the current frame and try again on the next tick.\nfor(let step=1;step<=resolvedImages.length;step++){const next=(prev+step)%resolvedImages.length;if(loadedSrcs.has(resolvedImages[next].src))return next;}return prev;});});},intervalMs);return()=>window.clearInterval(id);},[canCycle,paused,delaySeconds,resolvedImages,loadedSrcs]);const duration=Math.max(0,crossfadeSeconds);return /*#__PURE__*/_jsx(\"div\",{ref:containerRef,style:{position:\"relative\",width:\"100%\",height:\"100%\",overflow:\"hidden\",background,...style},onMouseEnter:pauseOnHover?()=>{React.startTransition(()=>setHoverPaused(true));}:undefined,onMouseLeave:pauseOnHover?()=>{React.startTransition(()=>setHoverPaused(false));}:undefined,\"aria-label\":\"Image carousel\",role:\"img\",children:resolvedImages.map((img,i)=>/*#__PURE__*/_jsx(motion.img,{src:img.src,srcSet:img.srcSet,alt:img.alt??\"\",draggable:false,loading:\"eager\",onLoad:()=>markLoaded(img.src),onError:()=>markLoaded(img.src),\"aria-hidden\":i!==index,style:{position:\"absolute\",inset:0,width:\"100%\",height:\"100%\",objectFit:fit,userSelect:\"none\",WebkitUserSelect:\"none\"},initial:false,animate:{opacity:i===index?1:0},transition:{duration:isStatic?0:duration,ease:\"easeInOut\"}},i))});}addPropertyControls(ImageCycle,{images:{type:ControlType.Array,title:\"Images\",control:{type:ControlType.ResponsiveImage},defaultValue:[{src:\"https://framerusercontent.com/images/GfGkADagM4KEibNcIiRUWlfrR0.jpg\",alt:\"Gradient 1 - Blue\"},{src:\"https://framerusercontent.com/images/aNsAT3jCvt4zglbWCUoFe33Q.jpg\",alt:\"Gradient 2 - Purple\"},{src:\"https://framerusercontent.com/images/BYnxEV1zjYb9bhWh1IwBZ1ZoS60.jpg\",alt:\"Gradient 3 - Orange\"}],maxCount:25},delaySeconds:{type:ControlType.Number,title:\"Delay\",defaultValue:2.5,min:.1,max:60,step:.1,unit:\"s\"},crossfadeSeconds:{type:ControlType.Number,title:\"Crossfade\",defaultValue:.35,min:0,max:2,step:.05,unit:\"s\"},fit:{type:ControlType.Enum,title:\"Fit\",options:[\"cover\",\"contain\"],optionTitles:[\"Cover\",\"Contain\"],defaultValue:\"cover\",displaySegmentedControl:true},background:{type:ControlType.Color,title:\"Background\",defaultValue:\"#FFFFFF\"},pauseOnHover:{type:ControlType.Boolean,title:\"Pause Hover\",defaultValue:true,enabledTitle:\"On\",disabledTitle:\"Off\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"ImageCycle\",\"slots\":[],\"annotations\":{\"framerIntrinsicWidth\":\"600\",\"framerIntrinsicHeight\":\"400\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerSupportedLayoutHeight\":\"any-prefer-fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ImageCycle.map"],"mappings":"A,ggBAC87B,SAAS0D,EAAqB,EAAU,GAAGC,EAAS,CAAC,IAAMC,EAAc,CAAC,EAAuF,OAArFD,GAAU,QAAQ,GAASE,GAAS,OAAO,OAAOD,EAAcE,EAAUD,EAAQ,CAAC,EAASD,CAAc,C,wFAAzf,EAAgBT,EAASnD,CAAU,EAAQ,EAAW,CAAC,YAAY,YAAY,YAAY,YAAY,WAAW,EAAQ,EAAkB,eAAqB,EAAkB,CAAC,UAAU,kBAAkB,UAAU,kBAAkB,UAAU,kBAAkB,UAAU,mBAAmB,UAAU,kBAAkB,EAA6Q,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