{"version":3,"file":"SlideShowWithToggle2.BrQjp_et.mjs","names":["React.useState"],"sources":["https:/framerusercontent.com/modules/vKkEXWNqIHTMtTsEkEYA/4bTCF5yodyfoeGelO6ww/CustomSlidebar2.js","https:/framerusercontent.com/modules/zmw73eWPzb7S1Ozyt0IV/Va8rxjNOscFESXWCe0tY/SlideShowWithToggle2.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";export function MinimalSlideshow({slides=[],slideIndex=0}){if(!slides.length)return null;const slide=slides[slideIndex];if(!slide)return null;return /*#__PURE__*/_jsxs(\"div\",{style:{width:\"100%\",height:\"100%\",display:\"flex\",flexDirection:\"column\",alignItems:\"center\",gap:\"8px\"},children:[/*#__PURE__*/_jsx(\"div\",{style:{display:\"inline-block\",textAlign:\"center\",fontSize:18,fontWeight:600,color:\"#1976d2\",whiteSpace:\"nowrap\",justifyContent:\"flex-start\"},children:slide.title}),/*#__PURE__*/_jsx(\"div\",{style:{textAlign:\"left\",fontSize:18,color:\"#fff\",opacity:.9,whiteSpace:\"pre-wrap\",marginBottom:\"10px\"},children:slide.description}),/*#__PURE__*/_jsx(\"div\",{style:{width:\"100%\",height:\"100%\",overflow:\"hidden\"},children:/*#__PURE__*/_jsx(\"img\",{src:slide.image,style:{width:\"100%\",height:\"100%\",objectFit:\"cover\",display:\"block\"},alt:slide.title})})]});}addPropertyControls(MinimalSlideshow,{slides:{type:ControlType.Array,propertyControl:{type:ControlType.Object,controls:{title:{type:ControlType.String},description:{type:ControlType.String,multiline:true},image:{type:ControlType.Image}}}}});\nexport const __FramerMetadata__ = {\"exports\":{\"MinimalSlideshow\":{\"type\":\"reactComponent\",\"name\":\"MinimalSlideshow\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"SlideItem\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./CustomSlidebar2.map","import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import*as React from\"react\";import{addPropertyControls,ControlType}from\"framer\";import{MinimalSlideshow}from\"https://framerusercontent.com/modules/vKkEXWNqIHTMtTsEkEYA/4bTCF5yodyfoeGelO6ww/CustomSlidebar2.js\";export function SlideShowWithToggle2({lightSlides=[],darkSlides=[]}){const[mode,setMode]=React.useState(\"Light\");const[slideIndex,setSlideIndex]=React.useState(0);const slides=mode===\"Light\"?lightSlides:darkSlides;const slideCount=slides.length;const nextSlide=()=>setSlideIndex((slideIndex+1)%slideCount);const prevSlide=()=>setSlideIndex((slideIndex-1+slideCount)%slideCount);return /*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",flexDirection:\"column\",alignItems:\"center\",justifyContent:\"center\",width:\"100%\",height:\"100%\",pointerEvents:\"auto\",gap:8},children:[/*#__PURE__*/_jsxs(\"button\",{onClick:()=>{setMode(mode===\"Light\"?\"Dark\":\"Light\");setSlideIndex(0);},style:{padding:\"4px 8px\",cursor:\"pointer\",zIndex:20,textAlign:\"center\",marginBottom:\"12px\"},children:[\"View \",mode===\"Light\"?\"Dark\":\"Light\",\" mode\"]}),/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",alignItems:\"center\",gap:8},children:[/*#__PURE__*/_jsx(\"button\",{onClick:prevSlide,style:{padding:\"4px 8px\",cursor:\"pointer\"},children:\"Prev\"}),/*#__PURE__*/_jsx(\"div\",{style:{width:\"100%\",height:\"100%\"/* adjust as needed */},children:/*#__PURE__*/_jsx(MinimalSlideshow,{slides:slides,slideIndex:slideIndex})}),/*#__PURE__*/_jsx(\"button\",{onClick:nextSlide,style:{padding:\"4px 8px\",cursor:\"pointer\"},children:\"Next\"})]})]});}addPropertyControls(SlideShowWithToggle2,{lightSlides:{type:ControlType.Array,propertyControl:{type:ControlType.Object,maxWidth:520,controls:{title:{type:ControlType.String,defaultValue:\"Light Slide\"},description:{type:ControlType.String,multiline:true,rows:3},image:{type:ControlType.Image,defaultValue:\"\"}}}},darkSlides:{type:ControlType.Array,propertyControl:{maxWidth:520,type:ControlType.Object,controls:{title:{type:ControlType.String,defaultValue:\"Dark Slide\"},description:{type:ControlType.String,multiline:true,rows:3},image:{type:ControlType.Image,defaultValue:\"\"}}}}});\nexport const __FramerMetadata__ = {\"exports\":{\"SlideShowWithToggle2\":{\"type\":\"reactComponent\",\"name\":\"SlideShowWithToggle2\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}"],"mappings":"iLAA6G,SAAgB,EAAiB,CAAC,SAAO,EAAE,CAAC,aAAW,GAAG,CAAC,GAAG,CAAC,EAAO,OAAO,OAAO,KAAK,IAAM,EAAM,EAAO,GAAkC,OAAlB,EAAsC,EAAM,MAAM,CAAC,MAAM,CAAC,MAAM,OAAO,OAAO,OAAO,QAAQ,OAAO,cAAc,SAAS,WAAW,SAAS,IAAI,MAAM,CAAC,SAAS,CAAc,EAAK,MAAM,CAAC,MAAM,CAAC,QAAQ,eAAe,UAAU,SAAS,SAAS,GAAG,WAAW,IAAI,MAAM,UAAU,WAAW,SAAS,eAAe,aAAa,CAAC,SAAS,EAAM,MAAM,CAAC,CAAc,EAAK,MAAM,CAAC,MAAM,CAAC,UAAU,OAAO,SAAS,GAAG,MAAM,OAAO,QAAQ,GAAG,WAAW,WAAW,aAAa,OAAO,CAAC,SAAS,EAAM,YAAY,CAAC,CAAc,EAAK,MAAM,CAAC,MAAM,CAAC,MAAM,OAAO,OAAO,OAAO,SAAS,SAAS,CAAC,SAAsB,EAAK,MAAM,CAAC,IAAI,EAAM,MAAM,MAAM,CAAC,MAAM,OAAO,OAAO,OAAO,UAAU,QAAQ,QAAQ,QAAQ,CAAC,IAAI,EAAM,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAA5sB,sBAA7L,IAAoD,CAAu1B,EAAoB,EAAiB,CAAC,OAAO,CAAC,KAAK,EAAY,MAAM,gB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