{"version":3,"file":"AngloButton.BmydGVOR.mjs","names":["useState","startTransition"],"sources":["https:/framerusercontent.com/modules/jwHZ8q4N9V8HG4ur2o5H/9J2jdqgrGu4n0uHNOZJr/AngloButton.js"],"sourcesContent":["// Anglo button: \"pill\" = orange circle behind uppercase label + arrow (hover fills orange);\n// \"round\" = 155px outlined circle (hover fills orange).\n// Converted from the Anglo template .primary-btn and .cs_round_btn.\n// The label is set in Syne, the template's button font. The font picker only sets size, weight and spacing;\n// the family is fixed here so it can never fall back to Inter.\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{useState,startTransition}from\"react\";import{addPropertyControls,ControlType}from\"framer\";const SYNE='\"Syne\", \"Syne Placeholder\", sans-serif';/**\n * Anglo Button\n *\n * @framerIntrinsicWidth 220\n * @framerIntrinsicHeight 60\n *\n * @framerSupportedLayoutWidth auto\n * @framerSupportedLayoutHeight auto\n */export default function AngloButton(props){const{label=\"Build Together\",link=\"#\",variant=\"pill\",showArrow=true,font,textColor=\"#FFFFFF\",accentColor=\"#FF5101\",borderColor=\"#FFFFFF\",newTab=false,style}=props;const[hover,setHover]=useState(false);const isRound=variant===\"round\";const base={...style,...font,fontFamily:SYNE,position:\"relative\",display:\"inline-flex\",alignItems:\"center\",justifyContent:\"center\",gap:5,boxSizing:\"border-box\",textDecoration:\"none\",textTransform:\"uppercase\",textAlign:\"center\",color:textColor,cursor:\"pointer\",overflow:\"hidden\",transition:\"background-color 0.4s ease, border-color 0.4s ease\",...isRound?{width:155,height:155,borderRadius:\"50%\",border:`1px solid ${hover?accentColor:borderColor}`,backgroundColor:hover?accentColor:\"transparent\",padding:20}:{height:60,padding:\"0 25px\",borderRadius:30,backgroundColor:hover?accentColor:\"transparent\"}};return /*#__PURE__*/_jsxs(\"a\",{href:link,target:newTab?\"_blank\":undefined,rel:newTab?\"noopener noreferrer\":undefined,onMouseEnter:()=>startTransition(()=>setHover(true)),onMouseLeave:()=>startTransition(()=>setHover(false)),style:base,children:[!isRound&&/*#__PURE__*/_jsx(\"span\",{\"aria-hidden\":\"true\",style:{position:\"absolute\",left:0,top:0,width:60,height:60,borderRadius:\"50%\",backgroundColor:accentColor}}),/*#__PURE__*/_jsx(\"span\",{style:{position:\"relative\",zIndex:1},children:label}),!isRound&&showArrow&&/*#__PURE__*/_jsx(\"svg\",{\"aria-hidden\":\"true\",width:\"15\",height:\"8\",viewBox:\"0 0 15 8\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",style:{position:\"relative\",zIndex:1,flexShrink:0},children:/*#__PURE__*/_jsx(\"path\",{d:\"M14.4273 4.55668C14.6225 4.36142 14.6225 4.04483 14.4273 3.84957L11.2453 0.667591C11.05 0.472329 10.7335 0.472329 10.5382 0.667591C10.3429 0.862853 10.3429 1.17944 10.5382 1.3747L13.3666 4.20312L10.5382 7.03155C10.3429 7.22681 10.3429 7.5434 10.5382 7.73866C10.7335 7.93392 11.05 7.93392 11.2453 7.73866L14.4273 4.55668ZM0.0737305 4.70312H14.0737V3.70312H0.0737305V4.70312Z\",fill:textColor})})]});}addPropertyControls(AngloButton,{label:{type:ControlType.String,title:\"Label\",defaultValue:\"Build Together\"},link:{type:ControlType.Link,title:\"Link\"},newTab:{type:ControlType.Boolean,title:\"New Tab\",defaultValue:false},variant:{type:ControlType.Enum,title:\"Variant\",options:[\"pill\",\"round\"],optionTitles:[\"Pill + Arrow\",\"Round Outline\"],defaultValue:\"pill\",displaySegmentedControl:true},showArrow:{type:ControlType.Boolean,title:\"Arrow\",defaultValue:true,hidden:props=>props.variant===\"round\"},font:{type:ControlType.Font,title:\"Font\",description:\"Size, weight and spacing only. The family is Syne.\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:\"18px\",variant:\"Semibold\",letterSpacing:\"0em\",lineHeight:\"1.2em\"}},textColor:{type:ControlType.Color,title:\"Text\",defaultValue:\"#FFFFFF\"},accentColor:{type:ControlType.Color,title:\"Accent\",defaultValue:\"#FF5101\"},borderColor:{type:ControlType.Color,title:\"Border\",defaultValue:\"#FFFFFF\",hidden:props=>props.variant!==\"round\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"AngloButton\",\"slots\":[],\"annotations\":{\"framerIntrinsicWidth\":\"220\",\"framerSupportedLayoutWidth\":\"auto\",\"framerContractVersion\":\"1\",\"framerIntrinsicHeight\":\"60\",\"framerSupportedLayoutHeight\":\"auto\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./AngloButton.map"],"mappings":"wLAaG,SAAwB,EAAY,EAAM,CAAC,GAAK,CAAC,QAAM,iBAAiB,OAAK,IAAI,UAAQ,OAAO,YAAU,GAAK,OAAK,YAAU,UAAU,cAAY,UAAU,cAAY,UAAU,SAAO,GAAM,SAAO,EAAW,CAAC,EAAM,GAAUA,EAAS,EAAK,EAAQ,EAAQ,IAAU,QAAc,EAAK,CAAC,GAAG,EAAM,GAAG,EAAK,WAAW,EAAK,SAAS,WAAW,QAAQ,cAAc,WAAW,SAAS,eAAe,SAAS,IAAI,EAAE,UAAU,aAAa,eAAe,OAAO,cAAc,YAAY,UAAU,SAAS,MAAM,EAAU,OAAO,UAAU,SAAS,SAAS,WAAW,qDAAqD,GAAG,EAAQ,CAAC,MAAM,IAAI,OAAO,IAAI,aAAa,MAAM,OAAO,aAAa,EAAM,EAAY,IAAc,gBAAgB,EAAM,EAAY,cAAc,QAAQ,EAAE,EAAE,CAAC,OAAO,GAAG,QAAQ,SAAS,aAAa,GAAG,gBAAgB,EAAM,EAAY,aAAa,CAAC,EAAE,OAAoB,EAAM,IAAI,CAAC,KAAK,EAAK,OAAO,EAAO,SAAS,IAAA,GAAU,IAAI,EAAO,sBAAsB,IAAA,GAAU,iBAAiBC,MAAoB,EAAS,EAAI,CAAC,EAAE,iBAAiBA,MAAoB,EAAS,EAAK,CAAC,EAAE,MAAM,EAAK,SAAS,CAAC,CAAC,GAAsB,EAAK,OAAO,CAAC,cAAc,OAAO,MAA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