{"version":3,"file":"ArrowButton.CpIS2Y4T.mjs","names":[],"sources":["https:/framerusercontent.com/modules/nYEBq5weSsN8ZCB3mNc9/m4ppT0JSi1qs9wQ6Yad4/ArrowButton.js"],"sourcesContent":["// Button with arrow icon, 40px height, hover state, \"Testa Gratis\" text, customizable colors and shadow\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{motion}from\"framer-motion\";import{addPropertyControls,ControlType}from\"framer\";/**\n * @framerSupportedLayoutWidth auto\n * @framerSupportedLayoutHeight auto\n */export default function ArrowButton(props){const{text,link,backgroundColor,textColor,arrowColor,hoverBackgroundColor,hoverTextColor,hoverArrowColor,showShadow,shadowColor,font,borderRadius,style}=props;const href=typeof link===\"string\"?link:link?.href;const target=typeof link===\"object\"&&link?.target?link.target:\"_blank\";// Ensure proper URL formatting\nconst formattedHref=href&&!href.startsWith(\"http://\")&&!href.startsWith(\"https://\")?`https://${href}`:href;return /*#__PURE__*/_jsx(motion.a,{href:formattedHref,target:target,rel:\"noopener noreferrer\",style:{textDecoration:\"none\",display:\"inline-block\"},children:/*#__PURE__*/_jsxs(motion.button,{style:{...style,position:\"relative\",height:\"auto\",minWidth:\"max-content\",padding:\"10px 10px\",backgroundColor,color:textColor,border:\"none\",borderRadius,cursor:\"pointer\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\",gap:12,boxShadow:showShadow?`3px 3px 3px ${shadowColor}`:\"none\",...font},whileHover:{backgroundColor:hoverBackgroundColor,color:hoverTextColor,scale:1.02},transition:{duration:.25,ease:\"easeOut\"},children:[/*#__PURE__*/_jsx(\"span\",{children:text}),/*#__PURE__*/_jsx(motion.svg,{width:\"20\",height:\"20\",viewBox:\"0 0 20 20\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",initial:{fill:arrowColor},whileHover:{fill:hoverArrowColor,x:2},transition:{duration:.25,ease:\"easeOut\"},children:/*#__PURE__*/_jsx(\"path\",{d:\"M4 10H16M16 10L11 5M16 10L11 15\",stroke:\"currentColor\",strokeWidth:\"1.5\",strokeLinecap:\"round\",strokeLinejoin:\"round\",style:{stroke:arrowColor}})})]})});}addPropertyControls(ArrowButton,{text:{type:ControlType.String,title:\"Text\",defaultValue:\"Testa Gratis\"},link:{type:ControlType.Link,title:\"Link\"},borderRadius:{type:ControlType.Number,title:\"Border Radius\",defaultValue:100,min:0,max:50,step:1,unit:\"px\"},backgroundColor:{type:ControlType.Color,title:\"Background\",defaultValue:\"#5B6B8C\"},textColor:{type:ControlType.Color,title:\"Text Color\",defaultValue:\"#FFFFFF\"},arrowColor:{type:ControlType.Color,title:\"Arrow Color\",defaultValue:\"#FFFFFF\"},hoverBackgroundColor:{type:ControlType.Color,title:\"Hover Background\",defaultValue:\"#4A5A7A\"},hoverTextColor:{type:ControlType.Color,title:\"Hover Text\",defaultValue:\"#FFFFFF\"},hoverArrowColor:{type:ControlType.Color,title:\"Hover Arrow\",defaultValue:\"#FFFFFF\"},showShadow:{type:ControlType.Boolean,title:\"Shadow\",defaultValue:true,enabledTitle:\"On\",disabledTitle:\"Off\"},shadowColor:{type:ControlType.Color,title:\"Shadow Color\",defaultValue:\"rgba(0, 0, 0, 0.15)\"},font:{type:ControlType.Font,title:\"Font\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:\"16px\",variant:\"Semibold\",letterSpacing:\"-0.01em\",lineHeight:\"1em\"}}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"ArrowButton\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"auto\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"auto\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ArrowButton.map"],"mappings":"oNAIG,SAAwB,EAAY,EAAM,CAAC,GAAK,CAAC,OAAK,OAAK,kBAAgB,YAAU,aAAW,uBAAqB,iBAAe,kBAAgB,aAAW,cAAY,OAAK,eAAa,SAAO,EAAY,EAAK,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