{"version":3,"file":"FitVariantCarousel_4.DjEDWIi1.mjs","names":["React.isValidElement","React.useMemo","React.useState","React.useRef","React.useCallback","_Fragment"],"sources":["https:/framerusercontent.com/modules/Hf8NNv2qm5YWmwcozl0R/u4Wc9m51loFvOAqhIvtU/FitVariantCarousel_4.js"],"sourcesContent":["// Instructions:\n// create a carousel that fits according to the largest child component / layer. Furthermore it should have the functionality that can change the variant of the components used in the carousel.\nimport{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";import{addPropertyControls,ControlType,useIsStaticRenderer}from\"framer\";import*as React from\"react\";import{startTransition}from\"react\";import{AnimatePresence,motion}from\"framer-motion\";function parsePadding(padding){const raw=typeof padding===\"string\"?padding.trim():\"0px\";const parts=raw.split(/\\s+/).filter(Boolean);const toPx=v=>{const m=/^(-?\\d*\\.?\\d+)px$/.exec(v);return m?Math.max(0,Number(m[1])):0;};const n=parts.map(toPx);const top=n[0]??0;const right=n[1]??n[0]??0;const bottom=n[2]??n[0]??0;const left=n[3]??n[1]??n[0]??0;return{top,right,bottom,left};}function coerceToArray(slides){const arr=React.Children.toArray(slides);return arr.filter(React.isValidElement);}function applyVariant(el,variant){if(!variant)return el;return /*#__PURE__*/React.cloneElement(el,{variant});}function forceFill(el){if(!el)return el;if(!/*#__PURE__*/React.isValidElement(el))return el;const prevStyle=el.props?.style??{};const nextStyle={...prevStyle,width:\"100%\",// Don't force height; let content define it so the carousel can fit the slide height.\nminWidth:0,minHeight:0};return /*#__PURE__*/React.cloneElement(el,{style:nextStyle});}/**\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n */export default function FitVariantCarousel(props){const{slides,padding=\"0px\",transitionDuration=.35,variantMode=\"keep\",globalVariant=\"\",perSlideVariants=[\"\"],initialIndex=0,showArrows=true,arrowSize=36,arrowRadius=999,arrowBackground=\"rgba(0,0,0,0.35)\",arrowColor=\"#FFFFFF\",showDots=true,dotColor=\"rgba(255,255,255,0.5)\",dotActiveColor=\"#FFFFFF\"}=props;const isStatic=useIsStaticRenderer();const parsedPadding=React.useMemo(()=>parsePadding(padding),[padding]);const slidesArray=React.useMemo(()=>coerceToArray(slides),[slides]);const count=slidesArray.length;const clampedInitial=React.useMemo(()=>{if(count<=0)return 0;const n=Number.isFinite(initialIndex)?Math.round(initialIndex):0;return Math.max(0,Math.min(count-1,n));},[initialIndex,count]);const[index,setIndex]=React.useState(clampedInitial);React.useEffect(()=>{startTransition(()=>setIndex(clampedInitial));},[clampedInitial]);const slideRefs=React.useRef([]);const measureRef=React.useRef(null);const[maxSize,setMaxSize]=React.useState({w:320,h:320});const[currentSize,setCurrentSize]=React.useState({w:320,h:320});const[isMobile,setIsMobile]=React.useState(false);const effectivePadding=React.useMemo(()=>{const extraBottomMobile=60;const extraBottomDesktop=60;if(!isMobile)return{...parsedPadding,bottom:parsedPadding.bottom+extraBottomDesktop};return{top:parsedPadding.top,right:parsedPadding.right,bottom:parsedPadding.bottom+extraBottomMobile,left:parsedPadding.left};},[parsedPadding,isMobile]);const effectivePaddingString=React.useMemo(()=>{return`${effectivePadding.top}px ${effectivePadding.right}px ${effectivePadding.bottom}px ${effectivePadding.left}px`;},[effectivePadding]);const computeMax=React.useCallback(()=>{if(typeof window===\"undefined\")return;let w=0;let h=0;for(const n of slideRefs.current){if(!n)continue;const rect=n.getBoundingClientRect();const rw=Number.isFinite(rect.width)?rect.width:0;const rh=Number.isFinite(rect.height)?rect.height:0;const ow=typeof n.offsetWidth===\"number\"?n.offsetWidth:0;const oh=typeof n.offsetHeight===\"number\"?n.offsetHeight:0;w=Math.max(w,rw,ow);h=Math.max(h,rh,oh);}if(w<=0||h<=0)return;const nextW=w+effectivePadding.left+effectivePadding.right;const nextH=h+effectivePadding.top+effectivePadding.bottom;const currentNode=slideRefs.current[index];let nextCurrentW=nextW;let nextCurrentH=nextH;if(isMobile&&measureRef.current){const rect=measureRef.current.getBoundingClientRect();const rh=Number.isFinite(rect.height)?rect.height:0;const oh=typeof measureRef.current.offsetHeight===\"number\"?measureRef.current.offsetHeight:0;const ch=Math.max(rh,oh);if(ch>0)nextCurrentH=ch;}else if(currentNode){const rect=currentNode.getBoundingClientRect();const rw=Number.isFinite(rect.width)?rect.width:0;const rh=Number.isFinite(rect.height)?rect.height:0;const ow=typeof currentNode.offsetWidth===\"number\"?currentNode.offsetWidth:0;const oh=typeof currentNode.offsetHeight===\"number\"?currentNode.offsetHeight:0;const cw=Math.max(rw,ow);let ch=Math.max(rh,oh);if(cw>0&&ch>0){nextCurrentW=cw+effectivePadding.left+effectivePadding.right;nextCurrentH=ch+effectivePadding.top+effectivePadding.bottom;}}startTransition(()=>{setMaxSize(prev=>{if(Math.round(prev.w)===Math.round(nextW)&&Math.round(prev.h)===Math.round(nextH))return prev;return{w:nextW,h:nextH};});setCurrentSize(prev=>{if(Math.round(prev.w)===Math.round(nextCurrentW)&&Math.round(prev.h)===Math.round(nextCurrentH))return prev;return{w:nextCurrentW,h:nextCurrentH};});});},[effectivePadding,index,isMobile]);React.useEffect(()=>{if(typeof window===\"undefined\")return;const update=()=>{startTransition(()=>setIsMobile(window.innerWidth<=1024));};update();window.addEventListener(\"resize\",update,{passive:true});return()=>window.removeEventListener(\"resize\",update);},[]);React.useEffect(()=>{if(typeof window===\"undefined\")return;// Ensure ref array matches slide count\nslideRefs.current=slideRefs.current.slice(0,count);if(typeof ResizeObserver===\"undefined\"){const t=window.setTimeout(()=>computeMax(),0);const t2=window.setTimeout(()=>computeMax(),50);return()=>{window.clearTimeout(t);window.clearTimeout(t2);};}const obs=new ResizeObserver(()=>computeMax());for(const n of slideRefs.current){if(n)obs.observe(n);}if(measureRef.current)obs.observe(measureRef.current);const r1=window.requestAnimationFrame(()=>computeMax());const r2=window.requestAnimationFrame(()=>computeMax());return()=>{window.cancelAnimationFrame(r1);window.cancelAnimationFrame(r2);obs.disconnect();};// Depend on a stable string to avoid effect thrashing / loader timeouts.\n},[computeMax,count,variantMode,globalVariant,perSlideVariants.join(\"\\x00\")]);const isFixedWidth=props?.style&&props.style.width===\"100%\";const isFixedHeight=props?.style&&props.style.height===\"100%\";const goTo=React.useCallback(nextIndex=>{if(count<=0)return;const n=Math.max(0,Math.min(count-1,nextIndex));startTransition(()=>setIndex(n));},[count]);const prev=React.useCallback(()=>goTo(index-1),[goTo,index]);const next=React.useCallback(()=>goTo(index+1),[goTo,index]);const handleDragEnd=React.useCallback((_,info)=>{if(count<=1)return;const offsetX=info?.offset?.x??0;const velocityX=info?.velocity?.x??0;const shouldSwipe=Math.abs(offsetX)>50||Math.abs(velocityX)>500;if(!shouldSwipe)return;if(offsetX<0)next();else prev();},[count,next,prev]);const withVariantSlides=React.useMemo(()=>{return slidesArray.map((el,i)=>{if(variantMode===\"keep\")return el;if(variantMode===\"global\")return applyVariant(el,globalVariant);return applyVariant(el,perSlideVariants[i]??\"\");});},[slidesArray,variantMode,globalVariant,perSlideVariants]);const current=withVariantSlides[index]??null;const currentFill=React.useMemo(()=>forceFill(current),[current]);return /*#__PURE__*/_jsxs(\"div\",{style:{...props.style,position:\"relative\",boxSizing:\"border-box\",width:isFixedWidth?\"100%\":`${maxSize.w}px`,height:isFixedHeight?\"100%\":!isMobile?`${maxSize.h}px`:\"auto\",transition:isStatic?undefined:`width ${transitionDuration}s ease, height ${transitionDuration}s ease`,overflow:\"hidden\",display:\"grid\",placeItems:\"stretch\",userSelect:\"none\"},\"aria-roledescription\":\"carousel\",children:[/*#__PURE__*/_jsx(\"div\",{style:{position:\"absolute\",top:-1e5,left:-1e5,pointerEvents:\"none\",visibility:\"hidden\",overflow:\"visible\",width:\"max-content\",height:\"max-content\"},\"aria-hidden\":\"true\",children:withVariantSlides.map((node,i)=>/*#__PURE__*/_jsx(\"div\",{ref:el=>{slideRefs.current[i]=el;},style:{display:\"block\",width:\"max-content\",height:\"max-content\"},children:node},i))}),/*#__PURE__*/_jsx(\"div\",{ref:measureRef,style:{position:\"absolute\",top:0,left:0,right:0,padding:effectivePaddingString,boxSizing:\"border-box\",pointerEvents:\"none\",visibility:\"hidden\",overflow:\"visible\",height:\"max-content\",width:\"100%\",display:isMobile?\"block\":\"none\"},\"aria-hidden\":\"true\",children:/*#__PURE__*/_jsx(\"div\",{style:{width:\"100%\",height:\"max-content\",minWidth:0,minHeight:0},children:current})}),/*#__PURE__*/_jsx(\"div\",{style:{position:\"relative\",width:\"100%\",height:isFixedHeight?\"100%\":!isMobile?\"100%\":\"auto\",boxSizing:\"border-box\",display:\"block\",minWidth:0,minHeight:0,overflow:\"hidden\"},children:isStatic?/*#__PURE__*/_jsx(\"div\",{style:{position:isFixedHeight?\"absolute\":\"relative\",inset:isFixedHeight?0:undefined,padding:effectivePaddingString,boxSizing:\"border-box\",display:\"flex\",alignItems:\"stretch\",justifyContent:\"stretch\",minWidth:0,minHeight:0},children:/*#__PURE__*/_jsx(\"div\",{style:{width:\"100%\",height:\"auto\",minWidth:0,minHeight:0},children:currentFill})}):/*#__PURE__*/_jsx(AnimatePresence,{initial:false,mode:\"wait\",children:/*#__PURE__*/_jsx(motion.div,{initial:{opacity:0,x:12},animate:{opacity:1,x:0},exit:{opacity:0,x:-12},drag:!isStatic&&isMobile&&count>1?\"x\":false,dragConstraints:{left:0,right:0},dragDirectionLock:true,dragElastic:.12,dragMomentum:false,onDragEnd:!isStatic&&isMobile&&count>1?handleDragEnd:undefined,transition:{duration:transitionDuration,ease:\"easeInOut\"},style:{position:isFixedHeight?\"absolute\":\"relative\",inset:isFixedHeight?0:undefined,padding:effectivePaddingString,boxSizing:\"border-box\",display:\"flex\",alignItems:\"stretch\",justifyContent:\"stretch\",minWidth:0,minHeight:0,willChange:\"transform, opacity\",touchAction:\"pan-y\"},children:/*#__PURE__*/_jsx(\"div\",{style:{width:\"100%\",height:\"auto\",minWidth:0,minHeight:0},children:currentFill})},index)})}),showArrows&&count>1&&/*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"button\",{type:\"button\",\"aria-label\":\"Previous slide\",onClick:isStatic?undefined:prev,style:{position:\"absolute\",left:10,top:\"50%\",transform:\"translateY(-50%)\",width:arrowSize,height:arrowSize,borderRadius:arrowRadius,border:\"none\",background:arrowBackground,color:arrowColor,display:\"grid\",placeItems:\"center\",cursor:\"pointer\",padding:0,lineHeight:0},children:/*#__PURE__*/_jsx(\"svg\",{width:Math.max(12,Math.round(arrowSize*.45)),height:Math.max(12,Math.round(arrowSize*.45)),viewBox:\"0 0 24 24\",fill:\"none\",\"aria-hidden\":\"true\",children:/*#__PURE__*/_jsx(\"path\",{d:\"M15 18l-6-6 6-6\",stroke:\"currentColor\",strokeWidth:\"2\",strokeLinecap:\"round\",strokeLinejoin:\"round\"})})}),/*#__PURE__*/_jsx(\"button\",{type:\"button\",\"aria-label\":\"Next slide\",onClick:isStatic?undefined:next,style:{position:\"absolute\",right:10,top:\"50%\",transform:\"translateY(-50%)\",width:arrowSize,height:arrowSize,borderRadius:arrowRadius,border:\"none\",background:arrowBackground,color:arrowColor,display:\"grid\",placeItems:\"center\",cursor:\"pointer\",padding:0,lineHeight:0},children:/*#__PURE__*/_jsx(\"svg\",{width:Math.max(12,Math.round(arrowSize*.45)),height:Math.max(12,Math.round(arrowSize*.45)),viewBox:\"0 0 24 24\",fill:\"none\",\"aria-hidden\":\"true\",children:/*#__PURE__*/_jsx(\"path\",{d:\"M9 6l6 6-6 6\",stroke:\"currentColor\",strokeWidth:\"2\",strokeLinecap:\"round\",strokeLinejoin:\"round\"})})})]}),showDots&&count>1&&/*#__PURE__*/_jsx(\"div\",{style:{position:\"absolute\",left:\"50%\",bottom:10,transform:\"translateX(-50%)\",display:\"flex\",gap:8,alignItems:\"center\",justifyContent:\"center\"},\"aria-label\":\"Slide navigation\",role:\"tablist\",children:Array.from({length:count}).map((_,i)=>{const active=i===index;return /*#__PURE__*/_jsx(\"button\",{type:\"button\",role:\"tab\",\"aria-selected\":active,\"aria-label\":`Go to slide ${i+1}`,onClick:isStatic?undefined:()=>goTo(i),style:{width:8,height:8,borderRadius:999,border:\"none\",background:active?dotActiveColor:dotColor,cursor:\"pointer\",padding:0}},i);})})]});}addPropertyControls(FitVariantCarousel,{slides:{type:ControlType.Slot,title:\"Slides\",maxCount:10},padding:{type:ControlType.Padding,title:\"Padding\",defaultValue:\"0px\"},transitionDuration:{type:ControlType.Number,title:\"Transition\",defaultValue:.35,min:0,max:2,step:.05,unit:\"s\"},initialIndex:{type:ControlType.Number,title:\"Initial\",defaultValue:0,min:0,max:50,step:1},variantMode:{type:ControlType.Enum,title:\"Variant\",options:[\"keep\",\"global\",\"perSlide\"],optionTitles:[\"Keep\",\"Global\",\"Per Slide\"],defaultValue:\"keep\",displaySegmentedControl:true},globalVariant:{type:ControlType.String,title:\"Global\",defaultValue:\"\",hidden:({variantMode})=>variantMode!==\"global\"},perSlideVariants:{type:ControlType.Array,title:\"Per Slide\",control:{type:ControlType.String,defaultValue:\"\"},defaultValue:[\"\"],hidden:({variantMode})=>variantMode!==\"perSlide\",maxCount:10},showArrows:{type:ControlType.Boolean,title:\"Arrows\",defaultValue:true,enabledTitle:\"Show\",disabledTitle:\"Hide\"},arrowSize:{type:ControlType.Number,title:\"Arrow Size\",defaultValue:36,min:20,max:80,step:1,unit:\"px\",hidden:({showArrows})=>!showArrows},arrowRadius:{type:ControlType.Number,title:\"Arrow Radius\",defaultValue:999,min:0,max:999,step:1,unit:\"px\",hidden:({showArrows})=>!showArrows},arrowBackground:{type:ControlType.Color,title:\"Arrow BG\",defaultValue:\"#000000\",hidden:({showArrows})=>!showArrows},arrowColor:{type:ControlType.Color,title:\"Arrow Color\",defaultValue:\"#FFFFFF\",hidden:({showArrows})=>!showArrows},showDots:{type:ControlType.Boolean,title:\"Dots\",defaultValue:true,enabledTitle:\"Show\",disabledTitle:\"Hide\"},dotColor:{type:ControlType.Color,title:\"Dot\",defaultValue:\"#CCCCCC\",hidden:({showDots})=>!showDots},dotActiveColor:{type:ControlType.Color,title:\"Dot Active\",defaultValue:\"#FFFFFF\",hidden:({showDots})=>!showDots}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"FitVariantCarousel\",\"slots\":[\"slides\"],\"annotations\":{\"framerSupportedLayoutHeight\":\"any-prefer-fixed\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./FitVariantCarousel_4.map"],"mappings":"iUAEwQ,SAAS,EAAa,EAAQ,CAAgM,IAAM,GAA3L,OAAO,GAAU,SAAS,EAAQ,KAAK,EAAE,MAAA,CAAsB,MAAM,KAAK,CAAC,CAAC,OAAO,OAA0G,CAAA,CAAM,IAA5F,GAAG,CAAC,IAAM,EAAE,oBAAoB,KAAK,CAAC,EAAE,OAAO,EAAE,KAAK,IAAI,EAAE,OAAO,EAAE,EAAE,CAAC,EAAE,CAAE,CAAwB,EAAwG,MAAM,CAAC,IAAnG,EAAE,IAAI,EAAiG,MAAnF,EAAE,IAAI,EAAE,IAAI,EAA6E,OAA9D,EAAE,IAAI,EAAE,IAAI,EAAyD,KAA5C,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAA8B,CAAE,CAAC,SAAS,GAAc,EAAO,CAA0C,OAAA,EAAhB,QAAQ,CAAiB,CAAC,CAAC,OAAOA,CAAoB,CAAE,CAAC,SAAS,EAAa,EAAG,EAAQ,CAAuB,OAAlB,EAAsC,EAAmB,EAAG,CAAC,SAAO,CAAC,EAAtD,CAAwD,CAAC,SAAS,EAAU,EAAG,CACh2B,MADo2B,CAAC,GAAgB,CAAc,EAAqB,CAAE,EAAS,EAC/4B,EAAmB,EAAG,CAAC,MAAM,CAD06B,GAArC,EAAG,OAAO,OAAO,CAAC,EAAgC,MAAM,OACtgC,SAAS,EAAE,UAAU,CAAoD,CAAS,CAAC,CAAE,CAGlF,SAAwB,EAAmB,EAAM,CAAC,GAAK,CAAC,SAAO,UAAQ,MAAM,qBAAmB,IAAI,cAAY,OAAO,gBAAc,GAA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