{"version":3,"file":"SlideShowWithToggle2.fJj33KNT.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,CAAC,EAAE,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,KAAK,EAAE,SAAS,CAAc,EAAK,MAAM,CAAC,MAAM,CAAC,QAAQ,eAAe,UAAU,SAAS,SAAS,GAAG,WAAW,IAAI,MAAM,UAAU,WAAW,SAAS,eAAe,YAAY,EAAE,SAAS,EAAM,KAAK,CAAC,EAAe,EAAK,MAAM,CAAC,MAAM,CAAC,UAAU,OAAO,SAAS,GAAG,MAAM,OAAO,QAAQ,GAAG,WAAW,WAAW,aAAa,MAAM,EAAE,SAAS,EAAM,WAAW,CAAC,EAAe,EAAK,MAAM,CAAC,MAAM,CAAC,MAAM,OAAO,OAAO,OAAO,SAAS,QAAQ,EAAE,SAAsB,EAAK,MAAM,CAAC,IAAI,EAAM,MAAM,MAAM,CAAC,MAAM,OAAO,OAAO,OAAO,UAAU,QAAQ,QAAQ,OAAO,EAAE,IAAI,EAAM,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAA3sB,IAA6sB,iBAA34B,IAAoD,EAAw1B,EAAoB,EAAiB,CAAC,OAAO,CAAC,KAAK,EAAY,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