{"version":3,"file":"TraceButton.sHjTy-95.mjs","names":["useState","_jsxs","_jsx","__esmMin","init_npm_react_18_3_1","_e","p","c","init_jsx_runtime","init_framer_BWzg2IRg","addPropertyControls","ControlType","TraceButton","props","text","link","color","fontSize","paddingX","paddingY","duration","background","hoverBackground","blur","fixedWidth","trace","animate","hover","setHover","run","setRun","r","init_TraceButton"],"sources":["https:/framerusercontent.com/modules/WPjSRLnZMeK9aRe8uuC1/3lnLpFu8YnYvRvgc2jdN/TraceButton.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import{useState}from\"react\";/**\n * @framerSupportedLayoutWidth auto\n * @framerSupportedLayoutHeight auto\n */export default function TraceButton(props){const{text,link,color,fontSize,paddingX,paddingY,duration,background,hoverBackground,blur,fixedWidth,trace}=props;const animate=trace!==false;const[hover,setHover]=useState(false);const[run,setRun]=useState(0);return /*#__PURE__*/_jsxs(\"div\",{onMouseEnter:()=>{setHover(true);setRun(r=>r+1);},onMouseLeave:()=>setHover(false),style:{position:\"relative\",display:\"inline-flex\",alignItems:\"center\",justifyContent:\"center\",padding:paddingY+\"px \"+paddingX+\"px\",color,textDecoration:\"none\",fontFamily:\"Inter, sans-serif\",fontSize,fontWeight:400,letterSpacing:\"0.3px\",textTransform:\"uppercase\",lineHeight:1,whiteSpace:\"nowrap\",boxSizing:\"border-box\",width:fixedWidth?fixedWidth:undefined,cursor:\"pointer\",background:hover?hoverBackground:background,backdropFilter:blur?\"blur(\"+blur+\"px)\":undefined,WebkitBackdropFilter:blur?\"blur(\"+blur+\"px)\":undefined,transition:\"background 0.25s ease\"},children:[/*#__PURE__*/_jsx(\"style\",{children:\"@keyframes smTrace{from{stroke-dashoffset:100}to{stroke-dashoffset:0}}\"}),/*#__PURE__*/_jsx(\"span\",{style:{display:\"block\",paddingTop:\"0.12em\",marginRight:\"-0.3px\"},children:text}),/*#__PURE__*/_jsxs(\"svg\",{style:{position:\"absolute\",inset:0,width:\"100%\",height:\"100%\",overflow:\"visible\",pointerEvents:\"none\"},children:[/*#__PURE__*/_jsx(\"rect\",{x:\"0.5\",y:\"0.5\",width:\"100%\",height:\"100%\",fill:\"none\",stroke:color,strokeWidth:\"1\",style:{opacity:hover&&animate?0:1,transform:\"scale(0.999)\",transformOrigin:\"center\",transformBox:\"fill-box\"}}),hover&&animate&&/*#__PURE__*/_jsx(\"rect\",{x:\"0.5\",y:\"0.5\",width:\"100%\",height:\"100%\",fill:\"none\",stroke:color,strokeWidth:\"1\",pathLength:100,style:{strokeDasharray:100,strokeDashoffset:100,animation:\"smTrace \"+duration+\"s ease forwards\"}},run)]})]});}TraceButton.defaultProps={text:\"Afspraak maken\",link:\"/afspraak-maken-contact\",color:\"#111111\",fontSize:12,paddingX:12,paddingY:5,duration:.7,background:\"rgba(0,0,0,0)\",hoverBackground:\"rgba(0,0,0,0)\",blur:0,fixedWidth:0,trace:true};addPropertyControls(TraceButton,{text:{type:ControlType.String,title:\"Tekst\"},link:{type:ControlType.Link,title:\"Link\"},color:{type:ControlType.Color,title:\"Kleur\"},fontSize:{type:ControlType.Number,title:\"Grootte\",min:8,max:32},paddingX:{type:ControlType.Number,title:\"Padding X\"},paddingY:{type:ControlType.Number,title:\"Padding Y\"},duration:{type:ControlType.Number,title:\"Duur\",min:.1,max:3,step:.1},background:{type:ControlType.Color,title:\"Achtergrond\"},hoverBackground:{type:ControlType.Color,title:\"Hover achtergrond\"},blur:{type:ControlType.Number,title:\"Blur\",min:0,max:30},fixedWidth:{type:ControlType.Number,title:\"Vaste breedte\",min:0,max:600,unit:\"px\"},trace:{type:ControlType.Boolean,title:\"Kader-animatie\",defaultValue:true}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"TraceButton\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"auto\",\"framerSupportedLayoutHeight\":\"auto\"}},\"__FramerMetadata__\":{\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