{"version":3,"file":"AIHero.CluO2lw-.mjs","names":["useState"],"sources":["https:/framerusercontent.com/modules/G5r0iCoGEwpDEaeDrMGS/kC2SBmpBG258FqUKlHdf/AIHero.js"],"sourcesContent":["// Hero section with automatic loopable background image for AI company\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{useState,useEffect,startTransition}from\"react\";import{addPropertyControls,ControlType,useIsStaticRenderer}from\"framer\";import{motion,AnimatePresence}from\"framer-motion\";/**\n * Hero Section with automatic loopable background images for AI company\n *\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n */export default function AIHero(props){const{title,subtitle,ctaText,ctaLink,backgroundImages=[{src:\"https://framerusercontent.com/images/GfGkADagM4KEibNcIiRUWlfrR0.jpg\",alt:\"AI Background 1\"},{src:\"https://framerusercontent.com/images/aNsAT3jCvt4zglbWCUoFe33Q.jpg\",alt:\"AI Background 2\"},{src:\"https://framerusercontent.com/images/BYnxEV1zjYb9bhWh1IwBZ1ZoS60.jpg\",alt:\"AI Background 3\"}],autoPlay,interval,currentIndex,overlayOpacity,overlayColor,titleFont,subtitleFont,ctaFont,titleColor,subtitleColor,ctaBackgroundColor,ctaTextColor,ctaBorderRadius,hideContent=false}=props;const[activeIndex,setActiveIndex]=useState(currentIndex);const isStatic=useIsStaticRenderer();useEffect(()=>{if(isStatic||!autoPlay||backgroundImages.length<=1)return;const timer=setInterval(()=>{startTransition(()=>{setActiveIndex(prev=>(prev+1)%backgroundImages.length);});},interval*1e3);return()=>clearInterval(timer);},[autoPlay,interval,backgroundImages.length,isStatic]);useEffect(()=>{startTransition(()=>{setActiveIndex(currentIndex);});},[currentIndex]);const handleCTAClick=()=>{if(typeof window!==\"undefined\"&&ctaLink){window.location.href=ctaLink;}};const currentImage=backgroundImages[activeIndex]||backgroundImages[0];return /*#__PURE__*/_jsxs(\"div\",{style:{position:\"relative\",width:\"100%\",height:\"100%\",overflow:\"hidden\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\",...props.style},children:[/*#__PURE__*/_jsx(AnimatePresence,{mode:\"wait\",children:backgroundImages.map((img,idx)=>/*#__PURE__*/_jsx(motion.div,{initial:{opacity:0},animate:{opacity:idx===activeIndex?1:0},exit:{opacity:0},transition:{duration:.8,ease:\"easeOut\"},style:{position:\"absolute\",top:0,left:0,width:\"100%\",height:\"100%\",backgroundImage:`url(${img?.src||\"https://framerusercontent.com/images/GfGkADagM4KEibNcIiRUWlfrR0.jpg\"})`,backgroundSize:\"cover\",backgroundPosition:\"center\",backgroundRepeat:\"no-repeat\",pointerEvents:\"none\"}},idx))}),/*#__PURE__*/_jsx(\"div\",{style:{position:\"absolute\",top:0,left:0,width:\"100%\",height:\"100%\",backgroundColor:overlayColor,opacity:overlayOpacity/100,zIndex:1}}),!hideContent&&/*#__PURE__*/_jsxs(\"div\",{style:{position:\"relative\",zIndex:2,textAlign:\"center\",maxWidth:\"800px\",padding:\"40px 20px\",display:\"flex\",flexDirection:\"column\",alignItems:\"center\",gap:\"24px\"},children:[/*#__PURE__*/_jsx(motion.h1,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:1.2,delay:.3,ease:[.25,.46,.45,.94]},style:{margin:0,color:titleColor,textAlign:\"center\",...titleFont},children:title}),/*#__PURE__*/_jsx(motion.p,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:1.2,delay:.5,ease:[.25,.46,.45,.94]},style:{margin:0,color:subtitleColor,textAlign:\"center\",maxWidth:\"600px\",...subtitleFont},children:subtitle}),props.showCTA&&/*#__PURE__*/_jsx(motion.button,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:1.2,delay:.3,ease:[.25,.46,.45,.94]},whileHover:{scale:1.02,transition:{duration:.3,ease:[.25,.46,.45,.94]}},whileTap:{scale:.98,transition:{duration:.15,ease:[.25,.46,.45,.94]}},onClick:handleCTAClick,style:{backgroundColor:ctaBackgroundColor,color:ctaTextColor,border:\"none\",borderRadius:ctaBorderRadius,padding:\"16px 32px\",cursor:ctaLink?\"pointer\":\"not-allowed\",transition:\"all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94)\",...ctaFont},disabled:!ctaLink,children:ctaText})]}),backgroundImages.length>1&&false&&/*#__PURE__*/_jsx(\"div\",{style:{position:\"absolute\",bottom:\"30px\",left:\"50%\",transform:\"translateX(-50%)\",display:\"flex\",gap:\"12px\",zIndex:3},children:backgroundImages.map((_,index)=>/*#__PURE__*/_jsx(\"button\",{onClick:()=>startTransition(()=>setActiveIndex(index)),style:{width:\"12px\",height:\"12px\",borderRadius:0,border:\"2px solid rgba(255, 255, 255, 0.5)\",backgroundColor:index===activeIndex?\"rgba(255, 255, 255, 0.9)\":\"transparent\",cursor:\"pointer\",transition:\"all 0.3s ease\"},\"aria-label\":`Go to slide ${index+1}`},index))})]});}addPropertyControls(AIHero,{title:{type:ControlType.String,title:\"Title\",defaultValue:\"Revolutionizing AI Technology\"},subtitle:{type:ControlType.String,title:\"Subtitle\",defaultValue:\"Empowering businesses with cutting-edge artificial intelligence solutions that transform the way you work and innovate.\",displayTextArea:true},ctaText:{type:ControlType.String,title:\"CTA Text\",defaultValue:\"Get Started\"},ctaLink:{type:ControlType.Link,title:\"CTA Link\",defaultValue:\"\"},backgroundImages:{type:ControlType.Array,title:\"Background Images\",control:{type:ControlType.ResponsiveImage},defaultValue:[{src:\"https://framerusercontent.com/images/GfGkADagM4KEibNcIiRUWlfrR0.jpg\",alt:\"AI Background 1\"},{src:\"https://framerusercontent.com/images/aNsAT3jCvt4zglbWCUoFe33Q.jpg\",alt:\"AI Background 2\"},{src:\"https://framerusercontent.com/images/BYnxEV1zjYb9bhWh1IwBZ1ZoS60.jpg\",alt:\"AI Background 3\"}]},autoPlay:{type:ControlType.Boolean,title:\"Auto Play\",defaultValue:true,enabledTitle:\"On\",disabledTitle:\"Off\"},interval:{type:ControlType.Number,title:\"Interval\",defaultValue:5,min:1,max:20,step:1,unit:\"s\",hidden:({autoPlay})=>!autoPlay},currentIndex:{type:ControlType.Number,title:\"Current Slide\",defaultValue:0,min:0,max:10,step:1,displayStepper:true,hidden:({autoPlay})=>!!autoPlay},overlayOpacity:{type:ControlType.Number,title:\"Overlay Opacity\",defaultValue:40,min:0,max:100,step:5,unit:\"%\"},overlayColor:{type:ControlType.Color,title:\"Overlay Color\",defaultValue:\"#000000\"},titleFont:{type:ControlType.Font,title:\"Title Font\",defaultValue:{fontSize:\"48px\",variant:\"Bold\",letterSpacing:\"-0.04em\",lineHeight:\"1.1em\"},controls:\"extended\",defaultFontType:\"sans-serif\"},subtitleFont:{type:ControlType.Font,title:\"Subtitle Font\",defaultValue:{fontSize:\"18px\",variant:\"Regular\",letterSpacing:\"-0.01em\",lineHeight:\"1.5em\"},controls:\"extended\",defaultFontType:\"sans-serif\"},ctaFont:{type:ControlType.Font,title:\"CTA Font\",defaultValue:{fontSize:\"16px\",variant:\"Semibold\",letterSpacing:\"-0.01em\",lineHeight:\"1em\"},controls:\"extended\",defaultFontType:\"sans-serif\"},titleColor:{type:ControlType.Color,title:\"Title Color\",defaultValue:\"#FFFFFF\"},subtitleColor:{type:ControlType.Color,title:\"Subtitle Color\",defaultValue:\"#FFFFFF\"},ctaBackgroundColor:{type:ControlType.Color,title:\"CTA Background\",defaultValue:\"#0099FF\"},ctaTextColor:{type:ControlType.Color,title:\"CTA Text Color\",defaultValue:\"#FFFFFF\"},ctaBorderRadius:{type:ControlType.Number,title:\"CTA Border Radius\",defaultValue:8,min:0,max:50,step:1,unit:\"px\"},showCTA:{type:ControlType.Boolean,title:\"Show CTA Button\",defaultValue:true,enabledTitle:\"Show\",disabledTitle:\"Hide\"},hideContent:{type:ControlType.Boolean,title:\"Hide All Text & Buttons\",defaultValue:false,enabledTitle:\"Hide\",disabledTitle:\"Show\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"AIHero\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"fixed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