{"version":3,"file":"AmbButton.BK498qeG.mjs","names":[],"sources":["https:/framerusercontent.com/modules/bMmvbsVExwYfqx5iLMk8/tmlJIkAzmZfpKjlLwTg9/AmbButton.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";/**\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight any\n */export default function AmbButton(props){const{label,variant,href,link,openInNewTab,style:externalStyle}=props;// Accept either `href` or `link` (Framer instance link attribute).\nconst resolvedHref=(href&&href.length>0?href:link)||\"\";const baseStyle={display:\"inline-flex\",alignItems:\"center\",justifyContent:\"center\",gap:8,borderRadius:6,cursor:\"pointer\",textDecoration:\"none\",fontFamily:\"Inter, sans-serif\",fontSize:\"clamp(14px, 1.3vw, 15px)\",fontWeight:500,lineHeight:\"1.2em\",letterSpacing:0,whiteSpace:\"normal\",textAlign:\"center\",transition:\"background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease\",boxSizing:\"border-box\",...externalStyle};const variants={primary:{backgroundColor:\"#E67A30\",color:\"#FFFFFF\",border:\"none\",padding:\"clamp(12px, 1.5vw, 14px) clamp(20px, 2.5vw, 28px)\"},secondary:{backgroundColor:\"transparent\",color:\"#FFFFFF\",border:\"1.5px solid rgba(255,255,255,0.5)\",padding:\"clamp(11px, 1.5vw, 13px) clamp(19px, 2.5vw, 27px)\"},text:{// Legible on the dark Amabus background: white with subtle\n// orange underline. Hover flips the color to the accent.\nbackgroundColor:\"transparent\",color:\"#FFFFFF\",border:\"none\",padding:\"clamp(12px, 1.5vw, 14px) 6px\",textDecoration:\"underline\",textDecorationColor:\"rgba(230,122,48,0.55)\",textUnderlineOffset:\"4px\"}};const variantStyle=variants[variant]||variants.primary;const Tag=resolvedHref?\"a\":\"button\";const linkProps=resolvedHref?{href:resolvedHref,target:openInNewTab?\"_blank\":undefined,rel:openInNewTab?\"noopener noreferrer\":undefined}:{};return /*#__PURE__*/_jsx(Tag,{style:{...baseStyle,...variantStyle},...linkProps,onMouseEnter:e=>{if(variant===\"text\"){e.currentTarget.style.color=\"#E67A30\";}},onMouseLeave:e=>{if(variant===\"text\"){e.currentTarget.style.color=\"#FFFFFF\";}},children:label});}AmbButton.defaultProps={label:\"Solicitar propuesta tecnica\",variant:\"primary\",href:\"\",link:\"\",openInNewTab:false};addPropertyControls(AmbButton,{label:{type:ControlType.String,title:\"Label\",defaultValue:\"Solicitar propuesta tecnica\"},variant:{type:ControlType.Enum,title:\"Variant\",options:[\"primary\",\"secondary\",\"text\"],optionTitles:[\"Primary (Naranja)\",\"Secondary (Outline)\",\"Text Link\"],defaultValue:\"primary\"},href:{type:ControlType.Link,title:\"Link\"},link:{type:ControlType.Link,title:\"Link (alias)\"},openInNewTab:{type:ControlType.Boolean,title:\"New Tab\",defaultValue:false}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"AmbButton\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"any\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"any\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./AmbButton.map"],"mappings":"4JAGG,SAAwB,EAAU,EAAM,CAAC,GAAK,CAAC,QAAM,UAAQ,OAAK,OAAK,eAAa,MAAM,GAAe,EACtG,GAAc,GAAM,EAAK,OAAO,EAAE,EAAK,IAAO,GAAS,EAAU,CAAC,QAAQ,cAAc,WAAW,SAAS,eAAe,SAAS,IAAI,EAAE,aAAa,EAAE,OAAO,UAAU,eAAe,OAAO,WAAW,oBAAoB,SAAS,2BAA2B,WAAW,IAAI,WAAW,QAAQ,cAAc,EAAE,WAAW,SAAS,UAAU,SAAS,WAAW,sEAAsE,UAAU,aAAa,GAAG,EAAc,CAAO,EAAS,CAAC,QAAQ,CAAC,gBAAgB,UAAU,MAAM,UAAU,OAAO,OAAO,QAAQ,oDAAoD,CAAC,UAAU,CAAC,gBAAgB,cAAc,MAAM,UAAU,O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