{"version":3,"file":"Slideshow.mXMoj_C9.mjs","names":["useState"],"sources":["https:/framerusercontent.com/modules/6CQ7rRhnVCyPUwhMJuAC/Asva00gbLJIcjzynbf4G/Slideshow.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{useEffect,useState}from\"react\";import{motion}from\"framer-motion\";import{addPropertyControls,ControlType,useIsStaticRenderer}from\"framer\";/**\n * Showcase Slideshow — an auto-advancing image panel with a circular\n * arc-progress ring, live counter, and a rotating caption. Self-contained.\n *\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n */export default function ShowcaseSlideshow(props){const{width,height,slides=[],intervalSec=5,fit=\"cover\",radius=22,overlay=true,showLabel=true,showCounter=true,ringColor=\"rgba(255, 255, 255, 0.85)\",ringTrackColor=\"rgba(255, 255, 255, 0.12)\",ringThickness=1.5,textColor=\"rgba(255, 255, 255, 0.9)\",placeholderColor=\"#1a1a1a\",style}=props;const isStatic=useIsStaticRenderer();const[current,setCurrent]=useState(0);const len=slides.length;const total=Math.max(len,1);useEffect(()=>{if(isStatic||len<2)return;const id=setInterval(()=>setCurrent(c=>(c+1)%len),intervalSec*1e3);return()=>clearInterval(id);},[isStatic,len,intervalSec]);// Ring geometry (matches a 38px viewBox with r=16).\nconst R=16;const CIRCUM=2*Math.PI*R;const idx=len?current%len:0;const activeLabel=len?slides[idx]?.label:\"Add slides →\";return /*#__PURE__*/_jsxs(\"div\",{style:{position:\"relative\",width:width??\"100%\",height:height??\"100%\",overflow:\"hidden\",borderRadius:radius,background:placeholderColor,...style},children:[len===0?/*#__PURE__*/_jsx(\"div\",{style:{position:\"absolute\",inset:0,display:\"flex\",alignItems:\"center\",justifyContent:\"center\",color:\"rgba(255,255,255,0.4)\",fontFamily:\"sans-serif\",fontSize:14},children:\"Add slides →\"}):slides.map((s,i)=>/*#__PURE__*/_jsx(\"div\",{style:{position:\"absolute\",inset:0,opacity:i===idx?1:0,transition:\"opacity 0.9s cubic-bezier(0.4, 0, 0.2, 1)\"},children:s?.image?/*#__PURE__*/_jsx(\"img\",{src:s.image,alt:\"\",style:{width:\"100%\",height:\"100%\",objectFit:fit,display:\"block\"}}):/*#__PURE__*/_jsx(\"div\",{style:{width:\"100%\",height:\"100%\",background:placeholderColor}})},i)),overlay&&/*#__PURE__*/_jsx(\"div\",{style:{position:\"absolute\",inset:0,background:\"linear-gradient(to top, rgba(0,0,0,0.55) 0%, transparent 50%)\",pointerEvents:\"none\"}}),showLabel&&/*#__PURE__*/_jsx(\"div\",{style:{position:\"absolute\",bottom:22,left:20,fontFamily:\"sans-serif\",fontSize:10,fontWeight:600,letterSpacing:\"1.8px\",textTransform:\"uppercase\",color:textColor,opacity:.7,whiteSpace:\"nowrap\"},children:activeLabel}),showCounter&&/*#__PURE__*/_jsxs(\"div\",{style:{position:\"absolute\",bottom:16,right:20,display:\"flex\",alignItems:\"center\",gap:10},children:[/*#__PURE__*/_jsxs(\"svg\",{width:38,height:38,viewBox:\"0 0 38 38\",style:{transform:\"rotate(-90deg)\",flexShrink:0},children:[/*#__PURE__*/_jsx(\"circle\",{cx:\"19\",cy:\"19\",r:R,fill:\"none\",stroke:ringTrackColor,strokeWidth:ringThickness}),/*#__PURE__*/_jsx(motion.circle,{cx:\"19\",cy:\"19\",r:R,fill:\"none\",stroke:ringColor,strokeWidth:ringThickness,strokeLinecap:\"round\",strokeDasharray:CIRCUM,initial:{strokeDashoffset:isStatic?CIRCUM*.65:CIRCUM},animate:{strokeDashoffset:isStatic?CIRCUM*.65:0},transition:isStatic?{duration:0}:{duration:intervalSec,ease:\"linear\"}},isStatic?\"static\":idx)]}),/*#__PURE__*/_jsxs(\"div\",{style:{fontFamily:\"sans-serif\",fontSize:12,fontWeight:600,letterSpacing:\"0.3px\",color:textColor,opacity:.5,lineHeight:1},children:[/*#__PURE__*/_jsx(\"strong\",{style:{color:textColor,opacity:1,fontWeight:600},children:idx+1}),\" \",\"/ \",total]})]})]});}addPropertyControls(ShowcaseSlideshow,{slides:{type:ControlType.Array,title:\"Slides\",control:{type:ControlType.Object,controls:{image:{type:ControlType.Image,title:\"Image\"},label:{type:ControlType.String,title:\"Label\",defaultValue:\"Untitled\"}}},defaultValue:[{label:\"Project One\"},{label:\"Project Two\"},{label:\"Project Three\"},{label:\"Project Four\"}]},intervalSec:{type:ControlType.Number,title:\"Interval\",description:\"Seconds per slide. Also drives the ring sweep.\",defaultValue:5,min:1,max:20,step:.5,unit:\"s\"},fit:{type:ControlType.Enum,title:\"Image Fit\",options:[\"cover\",\"contain\"],optionTitles:[\"Cover\",\"Contain\"],defaultValue:\"cover\",displaySegmentedControl:true},radius:{type:ControlType.Number,title:\"Corner Radius\",defaultValue:22,min:0,max:64,step:1,unit:\"px\"},overlay:{type:ControlType.Boolean,title:\"Bottom Scrim\",description:\"Dark gradient for caption legibility.\",defaultValue:true,enabledTitle:\"On\",disabledTitle:\"Off\"},showLabel:{type:ControlType.Boolean,title:\"Caption\",defaultValue:true,enabledTitle:\"Show\",disabledTitle:\"Hide\"},showCounter:{type:ControlType.Boolean,title:\"Counter + Ring\",defaultValue:true,enabledTitle:\"Show\",disabledTitle:\"Hide\"},ringColor:{type:ControlType.Color,title:\"Ring\",defaultValue:\"rgba(255, 255, 255, 0.85)\",hidden:p=>!p.showCounter},ringTrackColor:{type:ControlType.Color,title:\"Ring Track\",defaultValue:\"rgba(255, 255, 255, 0.12)\",hidden:p=>!p.showCounter},ringThickness:{type:ControlType.Number,title:\"Ring Width\",defaultValue:1.5,min:.5,max:5,step:.5,unit:\"px\",hidden:p=>!p.showCounter},textColor:{type:ControlType.Color,title:\"Text\",defaultValue:\"rgba(255, 255, 255, 0.9)\"},placeholderColor:{type:ControlType.Color,title:\"Placeholder\",description:\"Fill shown behind slides / before images load.\",defaultValue:\"#1a1a1a\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"ShowcaseSlideshow\",\"slots\":[],\"annotations\":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