{"version":3,"file":"ImageComparisonSlider.CLqXsmPL.mjs","names":["React.useContext","React.useMemo","React.Fragment","useRef","React.useId","Image","useRef","useState","useCallback","x"],"sources":["https:/framerusercontent.com/modules/zPd58V2QVDE9NKwRqBkH/bI2CDqyH8cTaBvc1J5bo/no9_1farN.js","https:/framerusercontent.com/modules/dLgje7dMIC9FY2Xyvk51/uU6B2Yafct2eERdDljvK/ImageComparisonSlider.js"],"sourcesContent":["// Generated by Framer (b1d4f6a)\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{addFonts,addPropertyControls,ControlType,cx,getLoadingLazyAtYPosition,Image,useComponentViewport,useLocaleInfo,useVariantState,withCSS}from\"framer\";import{LayoutGroup,motion,MotionConfigContext}from\"framer-motion\";import*as React from\"react\";import{useRef}from\"react\";const enabledGestures={bCF9rarrZ:{hover:true},JNz7PoakW:{hover:true},rUV63N7zI:{hover:true},y90o2MxIj:{hover:true}};const cycleOrder=[\"rUV63N7zI\",\"JNz7PoakW\",\"bCF9rarrZ\",\"y90o2MxIj\"];const serializationHash=\"framer-pTxFM\";const variantClassNames={bCF9rarrZ:\"framer-v-6tb4rs\",JNz7PoakW:\"framer-v-v4bjoe\",rUV63N7zI:\"framer-v-tul7r7\",y90o2MxIj:\"framer-v-1byb2hx\"};function addPropertyOverrides(overrides,...variants){const nextOverrides={};variants?.forEach(variant=>variant&&Object.assign(nextOverrides,overrides[variant]));return nextOverrides;}const transition1={delay:0,duration:.2,ease:[.7,-.35,.3,1.35],type:\"tween\"};const Transition=({value,children})=>{const config=React.useContext(MotionConfigContext);const transition=value??config.transition;const contextValue=React.useMemo(()=>({...config,transition}),[JSON.stringify(transition)]);return /*#__PURE__*/_jsx(MotionConfigContext.Provider,{value:contextValue,children:children});};const Variants=motion.create(React.Fragment);const humanReadableVariantMap={\"Baby Romper\":\"y90o2MxIj\",Backpacker:\"bCF9rarrZ\",Parfum:\"JNz7PoakW\",Sportvoeding:\"rUV63N7zI\"};const getProps=({height,id,width,...props})=>{return{...props,variant:humanReadableVariantMap[props.variant]??props.variant??\"rUV63N7zI\"};};const createLayoutDependency=(props,variants)=>{if(props.layoutDependency)return variants.join(\"-\")+props.layoutDependency;return variants.join(\"-\");};const Component=/*#__PURE__*/React.forwardRef(function(props,ref){const fallbackRef=useRef(null);const refBinding=ref??fallbackRef;const defaultLayoutId=React.useId();const{activeLocale,setLocale}=useLocaleInfo();const componentViewport=useComponentViewport();const{style,className,layoutId,variant,...restProps}=getProps(props);const{baseVariant,classNames,clearLoadingGesture,gestureHandlers,gestureVariant,isLoading,setGestureState,setVariant,variants}=useVariantState({cycleOrder,defaultVariant:\"rUV63N7zI\",enabledGestures,ref:refBinding,variant,variantClassNames});const layoutDependency=createLayoutDependency(props,variants);const sharedStyleClassNames=[];const scopingClassNames=cx(serializationHash,...sharedStyleClassNames);return /*#__PURE__*/_jsx(LayoutGroup,{id:layoutId??defaultLayoutId,children:/*#__PURE__*/_jsx(Variants,{animate:variants,initial:false,children:/*#__PURE__*/_jsx(Transition,{value:transition1,children:/*#__PURE__*/_jsx(motion.div,{...restProps,...gestureHandlers,className:cx(scopingClassNames,\"framer-tul7r7\",className,classNames),\"data-framer-name\":\"Sportvoeding\",layoutDependency:layoutDependency,layoutId:\"rUV63N7zI\",ref:refBinding,style:{borderBottomLeftRadius:4,borderBottomRightRadius:4,borderTopLeftRadius:4,borderTopRightRadius:4,...style},...addPropertyOverrides({\"bCF9rarrZ-hover\":{\"data-framer-name\":undefined},\"JNz7PoakW-hover\":{\"data-framer-name\":undefined},\"rUV63N7zI-hover\":{\"data-framer-name\":undefined},\"y90o2MxIj-hover\":{\"data-framer-name\":undefined},bCF9rarrZ:{\"data-framer-name\":\"Backpacker\"},JNz7PoakW:{\"data-framer-name\":\"Parfum\"},y90o2MxIj:{\"data-framer-name\":\"Baby Romper\"}},baseVariant,gestureVariant),children:/*#__PURE__*/_jsx(Image,{background:{alt:\"\",fit:\"fill\",intrinsicHeight:512,intrinsicWidth:512,loading:getLoadingLazyAtYPosition((componentViewport?.y||0)+0),pixelHeight:1024,pixelWidth:1024,sizes:componentViewport?.width||\"100vw\",src:\"https://framerusercontent.com/images/a6ibcZBQCyeAOKOqiqnh2bMGA.png?scale-down-to=512\",srcSet:\"https://framerusercontent.com/images/a6ibcZBQCyeAOKOqiqnh2bMGA.png?scale-down-to=512 512w,https://framerusercontent.com/images/a6ibcZBQCyeAOKOqiqnh2bMGA.png 1024w\"},className:\"framer-1yehz4x\",\"data-framer-name\":\"IMG\",layoutDependency:layoutDependency,layoutId:\"RCOn3F0B4\",style:{rotate:0},variants:{\"bCF9rarrZ-hover\":{rotate:45},\"JNz7PoakW-hover\":{rotate:30},\"rUV63N7zI-hover\":{rotate:38},\"y90o2MxIj-hover\":{rotate:30}},...addPropertyOverrides({\"bCF9rarrZ-hover\":{background:{alt:\"\",fit:\"fill\",intrinsicHeight:512,intrinsicWidth:512,loading:getLoadingLazyAtYPosition((componentViewport?.y||0)+-33),pixelHeight:1200,pixelWidth:1200,sizes:`calc(${componentViewport?.width||\"100vw\"} + 132px)`,src:\"https://framerusercontent.com/images/dlJy8JpqlCGIQX72WsAveFFnlQ.png?scale-down-to=512\",srcSet:\"https://framerusercontent.com/images/dlJy8JpqlCGIQX72WsAveFFnlQ.png?scale-down-to=512 512w,https://framerusercontent.com/images/dlJy8JpqlCGIQX72WsAveFFnlQ.png?scale-down-to=1024 1024w,https://framerusercontent.com/images/dlJy8JpqlCGIQX72WsAveFFnlQ.png 1200w\"}},\"JNz7PoakW-hover\":{background:{alt:\"\",fit:\"fill\",intrinsicHeight:512,intrinsicWidth:512,loading:getLoadingLazyAtYPosition((componentViewport?.y||0)+-33),pixelHeight:1e3,pixelWidth:1e3,sizes:`calc(${componentViewport?.width||\"100vw\"} + 132px)`,src:\"https://framerusercontent.com/images/TyCpOU9LSRRfH0SvDNtib2PL3GQ.png?scale-down-to=512\",srcSet:\"https://framerusercontent.com/images/TyCpOU9LSRRfH0SvDNtib2PL3GQ.png?scale-down-to=512 512w,https://framerusercontent.com/images/TyCpOU9LSRRfH0SvDNtib2PL3GQ.png 1000w\"}},\"rUV63N7zI-hover\":{background:{alt:\"\",fit:\"fill\",intrinsicHeight:512,intrinsicWidth:512,loading:getLoadingLazyAtYPosition((componentViewport?.y||0)+-33),pixelHeight:1100,pixelWidth:1100,sizes:`calc(${componentViewport?.width||\"100vw\"} + 132px)`,src:\"https://framerusercontent.com/images/YLtPRD0vwqdH0fE5GswvxFS4K0.webp?scale-down-to=512\",srcSet:\"https://framerusercontent.com/images/YLtPRD0vwqdH0fE5GswvxFS4K0.webp?scale-down-to=512 512w,https://framerusercontent.com/images/YLtPRD0vwqdH0fE5GswvxFS4K0.webp?scale-down-to=1024 1024w,https://framerusercontent.com/images/YLtPRD0vwqdH0fE5GswvxFS4K0.webp 1100w\"}},\"y90o2MxIj-hover\":{background:{alt:\"\",fit:\"fill\",intrinsicHeight:512,intrinsicWidth:512,loading:getLoadingLazyAtYPosition((componentViewport?.y||0)+-38),pixelHeight:900,pixelWidth:900,sizes:`calc(${componentViewport?.width||\"100vw\"} + 132px)`,src:\"https://framerusercontent.com/images/J7NoYQmMzkwpq0xoSnXAUpFYJxY.png?scale-down-to=512\",srcSet:\"https://framerusercontent.com/images/J7NoYQmMzkwpq0xoSnXAUpFYJxY.png?scale-down-to=512 512w,https://framerusercontent.com/images/J7NoYQmMzkwpq0xoSnXAUpFYJxY.png 900w\"}},bCF9rarrZ:{background:{alt:\"\",fit:\"fill\",intrinsicHeight:512,intrinsicWidth:512,loading:getLoadingLazyAtYPosition((componentViewport?.y||0)+0),pixelHeight:1024,pixelWidth:1536,sizes:componentViewport?.width||\"100vw\",src:\"https://framerusercontent.com/images/YvQ6OJu3fQLhnBnZ7aWKaVLs8.png?scale-down-to=512\",srcSet:\"https://framerusercontent.com/images/YvQ6OJu3fQLhnBnZ7aWKaVLs8.png?scale-down-to=512 512w,https://framerusercontent.com/images/YvQ6OJu3fQLhnBnZ7aWKaVLs8.png?scale-down-to=1024 1024w,https://framerusercontent.com/images/YvQ6OJu3fQLhnBnZ7aWKaVLs8.png 1536w\"}},JNz7PoakW:{background:{alt:\"\",fit:\"fill\",intrinsicHeight:512,intrinsicWidth:512,loading:getLoadingLazyAtYPosition((componentViewport?.y||0)+0),pixelHeight:1024,pixelWidth:1024,sizes:componentViewport?.width||\"100vw\",src:\"https://framerusercontent.com/images/hhuaBCusJZZhvOevVgRGQHiXYVg.png?scale-down-to=512\",srcSet:\"https://framerusercontent.com/images/hhuaBCusJZZhvOevVgRGQHiXYVg.png?scale-down-to=512 512w,https://framerusercontent.com/images/hhuaBCusJZZhvOevVgRGQHiXYVg.png 1024w\"}},y90o2MxIj:{background:{alt:\"\",fit:\"fill\",intrinsicHeight:512,intrinsicWidth:512,loading:getLoadingLazyAtYPosition((componentViewport?.y||0)+0),pixelHeight:1536,pixelWidth:1024,sizes:componentViewport?.width||\"100vw\",src:\"https://framerusercontent.com/images/hK4UegcDrwjz1hom0bHAmA5nU.png?scale-down-to=512\",srcSet:\"https://framerusercontent.com/images/hK4UegcDrwjz1hom0bHAmA5nU.png?scale-down-to=1024 682w,https://framerusercontent.com/images/hK4UegcDrwjz1hom0bHAmA5nU.png 1024w\"}}},baseVariant,gestureVariant)})})})})});});const css=[\"@supports (aspect-ratio: 1) { body { --framer-aspect-ratio-supported: auto; } }\",\".framer-pTxFM.framer-12clf6m, .framer-pTxFM .framer-12clf6m { display: block; }\",\".framer-pTxFM.framer-tul7r7 { cursor: pointer; height: 350px; overflow: hidden; position: relative; width: 300px; will-change: var(--framer-will-change-override, transform); }\",\".framer-pTxFM .framer-1yehz4x { bottom: 0px; flex: none; left: 0px; overflow: visible; position: absolute; right: 0px; top: 0px; }\",\".framer-pTxFM.framer-v-v4bjoe.framer-tul7r7, .framer-pTxFM.framer-v-6tb4rs.framer-tul7r7, .framer-pTxFM.framer-v-1byb2hx.framer-tul7r7, .framer-pTxFM.framer-v-tul7r7.hover.framer-tul7r7 { aspect-ratio: 0.8571428571428571 / 1; height: var(--framer-aspect-ratio-supported, 350px); }\",\".framer-pTxFM.framer-v-tul7r7.hover .framer-1yehz4x { -webkit-tap-highlight-color: var(--token-dd7d759e-b9d1-4177-a3dd-b3c452b1246e, #111111); bottom: -33px; left: -66px; right: -66px; top: -33px; }\",\".framer-pTxFM.framer-v-v4bjoe.hover .framer-1yehz4x, .framer-pTxFM.framer-v-6tb4rs.hover .framer-1yehz4x { bottom: -33px; left: -66px; right: -66px; top: -33px; }\",\".framer-pTxFM.framer-v-1byb2hx.hover .framer-1yehz4x { bottom: -39px; left: -66px; right: -66px; top: -38px; }\"];/**\n * This is a generated Framer component.\n * @framerIntrinsicHeight 350\n * @framerIntrinsicWidth 300\n * @framerCanvasComponentVariantDetails {\"propertyName\":\"variant\",\"data\":{\"default\":{\"layout\":[\"fixed\",\"fixed\"]},\"JNz7PoakW\":{\"layout\":[\"fixed\",\"fixed\"]},\"bCF9rarrZ\":{\"layout\":[\"fixed\",\"fixed\"]},\"y90o2MxIj\":{\"layout\":[\"fixed\",\"fixed\"]},\"wOno0DVbU\":{\"layout\":[\"fixed\",\"fixed\"]},\"TBMeXjct_\":{\"layout\":[\"fixed\",\"fixed\"]},\"tDTDbJFrt\":{\"layout\":[\"fixed\",\"fixed\"]},\"giD_1Rt71\":{\"layout\":[\"fixed\",\"fixed\"]}}}\n * @framerImmutableVariables true\n * @framerDisplayContentsDiv false\n * @framerAutoSizeImages true\n * @framerComponentViewportWidth true\n * @framerColorSyntax true\n */const Framerno9_1farN=withCSS(Component,css,\"framer-pTxFM\");export default Framerno9_1farN;Framerno9_1farN.displayName=\"Afbeelding Studio - Hover Cards\";Framerno9_1farN.defaultProps={height:350,width:300};addPropertyControls(Framerno9_1farN,{variant:{options:[\"rUV63N7zI\",\"JNz7PoakW\",\"bCF9rarrZ\",\"y90o2MxIj\"],optionTitles:[\"Sportvoeding\",\"Parfum\",\"Backpacker\",\"Baby Romper\"],title:\"Variant\",type:ControlType.Enum}});addFonts(Framerno9_1farN,[{explicitInter:true,fonts:[]}],{supportsExplicitInterCodegen:true});\nexport const __FramerMetadata__ = {\"exports\":{\"Props\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"default\":{\"type\":\"reactComponent\",\"name\":\"Framerno9_1farN\",\"slots\":[],\"annotations\":{\"framerIntrinsicHeight\":\"350\",\"framerIntrinsicWidth\":\"300\",\"framerColorSyntax\":\"true\",\"framerImmutableVariables\":\"true\",\"framerComponentViewportWidth\":\"true\",\"framerDisplayContentsDiv\":\"false\",\"framerAutoSizeImages\":\"true\",\"framerContractVersion\":\"1\",\"framerCanvasComponentVariantDetails\":\"{\\\"propertyName\\\":\\\"variant\\\",\\\"data\\\":{\\\"default\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"fixed\\\"]},\\\"JNz7PoakW\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"fixed\\\"]},\\\"bCF9rarrZ\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"fixed\\\"]},\\\"y90o2MxIj\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"fixed\\\"]},\\\"wOno0DVbU\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"fixed\\\"]},\\\"TBMeXjct_\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"fixed\\\"]},\\\"tDTDbJFrt\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"fixed\\\"]},\\\"giD_1Rt71\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"fixed\\\"]}}}\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./no9_1farN.map","// Image Comparison Slider with draggable handle, customizable handle size, radius, padding, and optional arrows\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{useRef,useState,useCallback,useEffect,startTransition}from\"react\";import{addPropertyControls,ControlType,useIsStaticRenderer}from\"framer\";const defaultBefore={src:\"https://framerusercontent.com/images/GfGkADagM4KEibNcIiRUWlfrR0.jpg\",alt:\"Before image\"};const defaultAfter={src:\"https://framerusercontent.com/images/aNsAT3jCvt4zglbWCUoFe33Q.jpg\",alt:\"After image\"};function clamp(val,min,max){return Math.max(min,Math.min(max,val));}/**\n * Image Comparison Slider\n *\n * @framerIntrinsicWidth 500\n * @framerIntrinsicHeight 300\n *\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight any\n */export default function ImageComparisonSlider(props){const{beforeImage=defaultBefore,afterImage=defaultAfter,initialPosition=50,handleSize=40,handleRadius=20,handlePadding=8,showArrows=false,arrowColor=\"#222\",arrowSize=18,arrowOffset=0,autoSlide=true,style}=props;const isStatic=useIsStaticRenderer();const containerRef=useRef(null);const[position,setPosition]=useState(initialPosition);const[dragging,setDragging]=useState(false);const[isTouchDevice,setIsTouchDevice]=useState(false);const[isHovering,setIsHovering]=useState(false);// Detect touch device on mount\nuseEffect(()=>{if(typeof window!==\"undefined\"){const isTouchCapable=\"ontouchstart\"in window||window.navigator.maxTouchPoints>0;startTransition(()=>setIsTouchDevice(isTouchCapable));}},[]);// Drag logic\nconst updatePosition=useCallback(e=>{if(!containerRef.current)return;const rect=containerRef.current.getBoundingClientRect();let x=(e.touches?e.touches[0].clientX:e.clientX)-rect.left;let percent=clamp(x/rect.width*100,0,100);startTransition(()=>setPosition(percent));},[]);const onDown=e=>{e.preventDefault();startTransition(()=>setDragging(true));};const onUp=useCallback(()=>{startTransition(()=>setDragging(false));},[]);const onMove=useCallback(e=>{if(!dragging)return;updatePosition(e);},[dragging,updatePosition]);// Mouse hover tracking for auto slider\nconst onMouseMove=useCallback(e=>{if(isStatic||!autoSlide||isTouchDevice)return;updatePosition(e);},[updatePosition,isStatic,autoSlide,isTouchDevice]);const onMouseEnter=useCallback(()=>{startTransition(()=>setIsHovering(true));},[]);const onMouseLeave=useCallback(()=>{startTransition(()=>setIsHovering(false));},[]);// Handle global events for dragging\nuseEffect(()=>{if(!dragging)return;const handleGlobalMove=e=>{e.preventDefault()// Prevent scrolling while dragging\n;onMove(e);};window.addEventListener(\"mousemove\",onMove);window.addEventListener(\"touchmove\",handleGlobalMove,{passive:false});window.addEventListener(\"mouseup\",onUp);window.addEventListener(\"touchend\",onUp);return()=>{window.removeEventListener(\"mousemove\",onMove);window.removeEventListener(\"touchmove\",handleGlobalMove);window.removeEventListener(\"mouseup\",onUp);window.removeEventListener(\"touchend\",onUp);};},[dragging,onMove,onUp]);// Arrow SVG\nfunction Arrow({direction}){const rotate=direction===\"left\"?180:0;return /*#__PURE__*/_jsx(\"svg\",{width:arrowSize,height:arrowSize,viewBox:\"0 0 24 24\",style:{display:\"block\",transform:`rotate(${rotate}deg)`},\"aria-hidden\":\"true\",children:/*#__PURE__*/_jsx(\"path\",{d:\"M8 12h8m-4-4 4 4-4 4\",stroke:arrowColor,strokeWidth:2,fill:\"none\",strokeLinecap:\"round\",strokeLinejoin:\"round\"})});}// Handle position\nconst handleX=`calc(${position}% - ${handleSize/2}px)`;const handleY=`calc(50% - ${handleSize/2}px)`;// Vertical divider line\nconst dividerWidth=2;return /*#__PURE__*/_jsxs(\"div\",{ref:containerRef,style:{...style,position:\"relative\",width:\"100%\",height:\"100%\",overflow:\"hidden\",userSelect:\"none\",touchAction:\"none\"},onClick:isStatic?undefined:updatePosition,onMouseMove:isStatic?undefined:onMouseMove,onMouseEnter:isStatic?undefined:onMouseEnter,onMouseLeave:isStatic?undefined:onMouseLeave,tabIndex:0,role:\"region\",\"aria-label\":\"Image comparison slider\",children:[/*#__PURE__*/_jsx(\"img\",{src:afterImage.src,alt:afterImage.alt,style:{position:\"absolute\",top:0,left:0,width:\"100%\",height:\"100%\",objectFit:\"cover\",pointerEvents:\"none\"},draggable:false}),/*#__PURE__*/_jsx(\"img\",{src:beforeImage.src,alt:beforeImage.alt,style:{position:\"absolute\",top:0,left:0,width:\"100%\",height:\"100%\",objectFit:\"cover\",clipPath:`inset(0 ${100-position}% 0 0)`,pointerEvents:\"none\"},draggable:false}),/*#__PURE__*/_jsx(\"div\",{style:{position:\"absolute\",top:0,left:`calc(${position}% - ${dividerWidth/2}px)`,width:`${dividerWidth}px`,height:\"100%\",backgroundColor:\"rgba(255, 255, 255, 0.7)\",boxShadow:\"0 0 5px rgba(0, 0, 0, 0.3)\",zIndex:1,pointerEvents:\"none\"}}),/*#__PURE__*/_jsx(\"div\",{style:{position:\"absolute\",left:handleX,top:handleY,width:handleSize,height:handleSize,borderRadius:handleRadius,background:\"#fff\",boxShadow:\"0 2px 8px rgba(0,0,0,0.12)\",border:\"2px solid #eee\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\",cursor:isStatic?\"default\":\"ew-resize\",zIndex:2,padding:handlePadding,transition:dragging?\"none\":\"box-shadow 0.2s\",transform:isHovering||dragging?\"scale(1.1)\":\"scale(1)\"},onMouseDown:isStatic?undefined:onDown,onTouchStart:isStatic?undefined:onDown,\"aria-label\":\"Drag to compare images\",role:\"slider\",\"aria-valuenow\":position,\"aria-valuemin\":0,\"aria-valuemax\":100,children:/*#__PURE__*/_jsxs(\"svg\",{width:handleSize-handlePadding*2,height:handleSize-handlePadding*2,viewBox:\"0 0 40 40\",style:{display:\"block\"},\"aria-hidden\":\"true\",children:[/*#__PURE__*/_jsx(\"rect\",{x:\"19\",y:\"6\",width:\"2\",height:\"28\",rx:\"1\",fill:\"#bbb\"}),/*#__PURE__*/_jsx(\"polygon\",{points:\"13,20 19,16 19,24\",fill:\"#666\"}),/*#__PURE__*/_jsx(\"polygon\",{points:\"27,20 21,16 21,24\",fill:\"#666\"})]})}),isTouchDevice&&/*#__PURE__*/_jsx(\"div\",{style:{position:\"absolute\",bottom:16,left:0,right:0,textAlign:\"center\",color:\"white\",backgroundColor:\"rgba(0, 0, 0, 0.5)\",padding:\"8px 16px\",borderRadius:8,margin:\"0 auto\",maxWidth:\"80%\",fontSize:14,fontWeight:500,opacity:dragging?0:.9,transition:\"opacity 0.3s\",pointerEvents:\"none\",zIndex:3},children:\"Drag slider to compare images\"})]});}addPropertyControls(ImageComparisonSlider,{beforeImage:{type:ControlType.ResponsiveImage,title:\"Before Image\"},afterImage:{type:ControlType.ResponsiveImage,title:\"After Image\"},initialPosition:{type:ControlType.Number,title:\"Initial Position\",defaultValue:50,min:0,max:100,step:1,unit:\"%\"},handleSize:{type:ControlType.Number,title:\"Handle Size\",defaultValue:40,min:24,max:100,step:1,unit:\"px\"},handleRadius:{type:ControlType.Number,title:\"Handle Radius\",defaultValue:20,min:0,max:50,step:1,unit:\"px\"},handlePadding:{type:ControlType.Number,title:\"Handle Padding\",defaultValue:8,min:0,max:32,step:1,unit:\"px\"},showArrows:{type:ControlType.Boolean,title:\"Show Arrows\",defaultValue:false,enabledTitle:\"Show\",disabledTitle:\"Hide\"},arrowColor:{type:ControlType.Color,title:\"Arrow Color\",defaultValue:\"#222\",hidden:({showArrows})=>!showArrows},arrowSize:{type:ControlType.Number,title:\"Arrow Size\",defaultValue:18,min:10,max:48,step:1,unit:\"px\",hidden:({showArrows})=>!showArrows},arrowOffset:{type:ControlType.Number,title:\"Arrow Offset\",defaultValue:0,min:0,max:32,step:1,unit:\"px\",hidden:({showArrows})=>!showArrows}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"ImageComparisonSlider\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerIntrinsicWidth\":\"500\",\"framerIntrinsicHeight\":\"300\",\"framerSupportedLayoutWidth\":\"any\",\"framerSupportedLayoutHeight\":\"any\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ImageComparisonSlider.map"],"mappings":"ypBACuqB,SAAS,EAAqB,EAAU,GAAG,EAAS,CAAC,IAAM,EAAc,EAAE,CAAsF,OAArF,GAAU,QAAQ,GAAS,GAAS,OAAO,OAAO,EAAc,EAAU,GAAS,CAAC,CAAQ,2CAApyB,IAA2J,IAAkE,IAA4B,CAAgC,EAAgB,CAAC,UAAU,CAAC,MAAM,GAAK,CAAC,UAAU,CAAC,MAAM,GAAK,CAAC,UAAU,CA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