{"version":3,"file":"AstraSlide.DTC7eetc.mjs","names":["useState","_Fragment"],"sources":["https:/framerusercontent.com/modules/OjpBVbSQHPxWgaepvbOR/47FDm3qRqXg0GtkZ6Jlp/AstraSlide.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";import React,{useState,startTransition}from\"react\";import{addPropertyControls,ControlType}from\"framer\";/**\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n */export default function AstraSlide(props){const{slides=[{image:{src:\"https://cdn.leonardo.ai/users/761ef2ae-c1fb-45d0-ac71-2034ef1f193f/generations/af95eba5-19fa-41f3-b86d-ae6b2e97f92d/segments/1:4:1/Lucid_Origin_A_persons_head_is_radiating_a_vibrant_ethereal_gl_0.jpg\",alt:\"Slide 1\"},textLine1:\"BETWEEN SHADOW\",textLine2:\"AND LIGHT\"},{image:{src:\"https://cdn.leonardo.ai/users/b68c3405-08b5-4ac7-9ab6-a742fc6b770d/generations/152c2eee-c29c-43eb-aa91-3eb80a58e5c6/Leonardo_Phoenix_10_Ultra_HD_422_years_old_light_blue_eyes_tha_3.jpg\",alt:\"Slide 2\"},textLine1:\"SILENCE SPEAKS\",textLine2:\"THROUGH FORM\"},{image:{src:\"https://cdn.leonardo.ai/users/0b59624b-1f02-45cb-a9b3-aaa7642412c1/generations/f5448978-cf97-487d-b597-a0174ef0e4c8/segments/3:4:1/Lucid_Origin_Editorial_closeup_portrait_topdown_view_of_a_mode_2.jpg\",alt:\"Slide 3\"},textLine1:\"ESSENCE BEYOND\",textLine2:\"PERCEPTION\"}],textColor,buttonColor,buttonTextColor,counterColor,textFont,counterFont,autoPlay,autoPlayInterval,showCounter,showNavigation,padding=60}=props;const[current,setCurrent]=useState(0);const nextSlide=()=>{startTransition(()=>{setCurrent(prev=>(prev+1)%slides.length);});};const prevSlide=()=>{startTransition(()=>{setCurrent(prev=>(prev-1+slides.length)%slides.length);});};React.useEffect(()=>{if(!autoPlay||slides.length<=1)return;const interval=setInterval(()=>{nextSlide();},autoPlayInterval*1e3);return()=>clearInterval(interval);},[autoPlay,autoPlayInterval,slides.length]);const formatNumber=num=>{return num<10?`0${num}`:`${num}`;};return /*#__PURE__*/_jsxs(\"div\",{style:{position:\"relative\",width:\"100%\",height:\"100%\",overflow:\"hidden\"},children:[slides.map((slide,i)=>/*#__PURE__*/_jsx(\"div\",{style:{position:\"absolute\",top:0,left:0,width:\"100%\",height:\"100%\",backgroundImage:`url(${slide.image?.src||\"https://cdn.leonardo.ai/users/761ef2ae-c1fb-45d0-ac71-2034ef1f193f/generations/af95eba5-19fa-41f3-b86d-ae6b2e97f92d/segments/1:4:1/Lucid_Origin_A_persons_head_is_radiating_a_vibrant_ethereal_gl_0.jpg\"})`,backgroundSize:\"cover\",backgroundPosition:\"center\",opacity:i===current?1:0,transition:\"opacity 0.5s ease-in-out\",display:\"flex\",alignItems:\"flex-end\",justifyContent:\"flex-start\",padding:`${padding}px`},children:/*#__PURE__*/_jsxs(\"div\",{style:{textAlign:\"left\",color:textColor,...textFont,textShadow:\"2px 2px 4px rgba(0,0,0,0.7)\",textTransform:\"uppercase\",fontWeight:\"bold\"},children:[/*#__PURE__*/_jsx(\"div\",{style:{marginBottom:\"4px\",fontSize:\"48px\",lineHeight:\"1.1\"},children:slide.textLine1}),/*#__PURE__*/_jsx(\"div\",{style:{fontSize:\"48px\",lineHeight:\"1.1\"},children:slide.textLine2})]})},i)),showNavigation&&slides.length>1&&/*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"button\",{onClick:prevSlide,style:{position:\"absolute\",left:\"30px\",top:\"50%\",transform:\"translateY(-50%)\",backgroundColor:buttonColor,color:buttonTextColor,border:`1px solid ${buttonColor}`,borderRadius:\"4px\",width:\"40px\",height:\"40px\",cursor:\"pointer\",fontSize:\"18px\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\",zIndex:10,transition:\"all 0.2s ease\",opacity:.7,backdropFilter:\"blur(10px)\"},onMouseEnter:e=>{e.currentTarget.style.opacity=\"1\";e.currentTarget.style.backgroundColor=buttonColor;},onMouseLeave:e=>{e.currentTarget.style.opacity=\"0.7\";e.currentTarget.style.backgroundColor=buttonColor;},children:\"←\"}),/*#__PURE__*/_jsx(\"button\",{onClick:nextSlide,style:{position:\"absolute\",right:\"30px\",top:\"50%\",transform:\"translateY(-50%)\",backgroundColor:buttonColor,color:buttonTextColor,border:`1px solid ${buttonColor}`,borderRadius:\"4px\",width:\"40px\",height:\"40px\",cursor:\"pointer\",fontSize:\"18px\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\",zIndex:10,transition:\"all 0.2s ease\",opacity:.7,backdropFilter:\"blur(10px)\"},onMouseEnter:e=>{e.currentTarget.style.opacity=\"1\";e.currentTarget.style.backgroundColor=buttonColor;},onMouseLeave:e=>{e.currentTarget.style.opacity=\"0.7\";e.currentTarget.style.backgroundColor=buttonColor;},children:\"→\"})]}),showCounter&&slides.length>1&&/*#__PURE__*/_jsxs(\"div\",{style:{position:\"absolute\",bottom:`${padding}px`,right:`${padding}px`,color:counterColor,...counterFont,zIndex:10,textShadow:\"1px 1px 2px rgba(0,0,0,0.7)\",fontSize:\"16px\",fontWeight:\"500\",letterSpacing:\"0.1em\"},children:[formatNumber(current+1),\" / \",formatNumber(slides.length)]})]});}addPropertyControls(AstraSlide,{slides:{type:ControlType.Array,title:\"Slides\",control:{type:ControlType.Object,controls:{image:{type:ControlType.ResponsiveImage,title:\"Image\"},textLine1:{type:ControlType.String,title:\"Text Line 1\",defaultValue:\"FIRST LINE\"},textLine2:{type:ControlType.String,title:\"Text Line 2\",defaultValue:\"SECOND LINE\"}}},defaultValue:[{image:{src:\"https://cdn.leonardo.ai/users/761ef2ae-c1fb-45d0-ac71-2034ef1f193f/generations/af95eba5-19fa-41f3-b86d-ae6b2e97f92d/segments/1:4:1/Lucid_Origin_A_persons_head_is_radiating_a_vibrant_ethereal_gl_0.jpg\",alt:\"Slide 1\"},textLine1:\"BETWEEN SHADOW\",textLine2:\"AND LIGHT\"},{image:{src:\"https://cdn.leonardo.ai/users/b68c3405-08b5-4ac7-9ab6-a742fc6b770d/generations/152c2eee-c29c-43eb-aa91-3eb80a58e5c6/Leonardo_Phoenix_10_Ultra_HD_422_years_old_light_blue_eyes_tha_3.jpg\",alt:\"Slide 2\"},textLine1:\"SILENCE SPEAKS\",textLine2:\"THROUGH FORM\"},{image:{src:\"https://cdn.leonardo.ai/users/0b59624b-1f02-45cb-a9b3-aaa7642412c1/generations/f5448978-cf97-487d-b597-a0174ef0e4c8/segments/3:4:1/Lucid_Origin_Editorial_closeup_portrait_topdown_view_of_a_mode_2.jpg\",alt:\"Slide 3\"},textLine1:\"ESSENCE BEYOND\",textLine2:\"PERCEPTION\"}],maxCount:10},textColor:{type:ControlType.Color,title:\"Text Color\",defaultValue:\"#FFFFFF\"},buttonColor:{type:ControlType.Color,title:\"Button Color\",defaultValue:\"#FFFFFF\"},buttonTextColor:{type:ControlType.Color,title:\"Button Text\",defaultValue:\"#000000\"},counterColor:{type:ControlType.Color,title:\"Counter Color\",defaultValue:\"#FFFFFF\"},textFont:{type:ControlType.Font,title:\"Text Font\",defaultValue:{fontSize:\"32px\",variant:\"Bold\",letterSpacing:\"0.1em\",lineHeight:\"1.2em\"},controls:\"extended\",defaultFontType:\"sans-serif\"},counterFont:{type:ControlType.Font,title:\"Counter Font\",defaultValue:{fontSize:\"14px\",variant:\"Medium\",letterSpacing:\"0.05em\",lineHeight:\"1em\"},controls:\"extended\",defaultFontType:\"sans-serif\"},autoPlay:{type:ControlType.Boolean,title:\"Auto Play\",defaultValue:false,enabledTitle:\"On\",disabledTitle:\"Off\"},autoPlayInterval:{type:ControlType.Number,title:\"Auto Play Interval\",defaultValue:3,min:1,max:10,step:.5,unit:\"s\",hidden:({autoPlay})=>!autoPlay},showCounter:{type:ControlType.Boolean,title:\"Show Counter\",defaultValue:true,enabledTitle:\"Show\",disabledTitle:\"Hide\"},showNavigation:{type:ControlType.Boolean,title:\"Show Navigation\",defaultValue:true,enabledTitle:\"Show\",disabledTitle:\"Hide\"},padding:{type:ControlType.Number,title:\"Padding\",defaultValue:60,min:10,max:100,step:5,unit:\"px\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"AstraSlide\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"fixed\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./AstraSlide.map"],"mappings":"4LAGG,SAAwB,EAAW,EAAM,CAAC,GAAK,CAAC,SAAO,CAAC,CAAC,MAAM,CAAC,IAAI,0MAA0M,IAAI,UAAU,CAAC,UAAU,iBAAiB,UAAU,YAAY,CAAC,CAAC,MAAM,CAAC,IAAI,2LAA2L,IAAI,UAAU,CAAC,UAAU,iBAAiB,UAAU,eAAe,CAAC,CAAC,MAAM,CAAC,IAAI,0MAA0M,IAAI,UAAU,CAAC,UAAU,iBAAiB,UAAU,aAAa,CAAC,CAAC,YAAU,cAAY,kBAAgB,eAAa,WAAS,cAAY,WAAS,mBAAiB,cAAY,iBAAe,UAAQ,IAAI,EAAW,CAAC,EAAQ,GAAYA,EAAS,EAAE,CAAO,MAAc,CAAC,MAAoB,CAAC,EAAW,IAAO,EAAK,GAAG,EAAO,OAAO,EAAG,EAAS,MAAc,CAAC,MAAoB,CAAC,EAAW,IAAO,EAAK,EAAE,EAAO,QAAQ,EAAO,OAAO,EAAG,EAAG,EAAM,cAAc,CAAC,GAAG,CAAC,GAAU,EAAO,QAAQ,EAAE,OAAO,IAAM,EAAS,gBAAgB,CAAC,GAAW,EAAG,EAAiB,IAAI,CAAC,UAAU,cAAc,EAAS,EAAG,CAAC,EAAS,EAAiB,EAAO,OAAO,CAAC,CAAC,IAAM,EAAa,GAAa,EAAI,GAAG,IAAI,IAAM,GAAG,IAAQ,OAAoB,EAAM,MAAM,CAAC,MAAM,CA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