{"version":3,"file":"FitVariantCarousel_4.FfMnqa3J.mjs","names":["React.isValidElement","React.useMemo","React.useState","React.useRef","React.useCallback","_Fragment","__esmMin","ne","init_ssg_sandbox_shims","j","init_npm_react_18_3_1","te","window","pe","_e","de","init_jsx_runtime","K","c","p","ce","AnimatePresence","init_framer_motion_DhsWWWsN","motion","init_framer_CaDWdxiz","addPropertyControls","ControlType","useIsStaticRenderer","parsePadding","n","padding","m","v","coerceToArray","slides","applyVariant","variant","el","forceFill","nextStyle","FitVariantCarousel","props","isStatic","parsedPadding","slidesArray","count","clampedInitial","initialIndex","index","setIndex","slideRefs","measureRef","maxSize","setMaxSize","currentSize","setCurrentSize","isMobile","setIsMobile","effectivePadding","effectivePaddingString","computeMax","w","h","rect","rw","rh","ow","oh","nextW","nextH","currentNode","nextCurrentW","nextCurrentH","ch","cw","prev","update","t","t2","obs","r1","r2","variantMode","globalVariant","perSlideVariants","isFixedWidth","isFixedHeight","goTo","nextIndex","next","handleDragEnd","offsetX","info","velocityX","withVariantSlides","i","current","currentFill","transitionDuration","node","showArrows","l","arrowSize","arrowRadius","arrowBackground","arrowColor","showDots","active","dotActiveColor","dotColor","init_FitVariantCarousel_4"],"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":"A,+TAEwQ,SAAS4B,EAAa,EAAQ,CAAgM,IAAMC,GAA3L,OAAOC,GAAU,SAASA,EAAQ,KAAK,EAAE,MAAA,CAAsB,MAAM,KAAK,CAAC,CAAC,OAAO,OAA0G,CAAA,CAAM,IAA5F,GAAG,CAAC,IAAMC,EAAE,oBAAoB,KAAKC,CAAC,EAAE,OAAOD,EAAE,KAAK,IAAI,EAAE,OAAOA,EAAE,EAAE,CAAC,EAAE,CAAE,CAAwB,EAAwG,MAAM,CAAC,IAAnGF,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