{"version":3,"file":"GFFButton.BL8Bo9dB.mjs","names":["React.useId","_Fragment"],"sources":["https:/framerusercontent.com/modules/UsmkYblwkXQcwJXGwNHr/AAznEz5E894KhtSkbb53/GFFButton.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";import*as React from\"react\";import{addPropertyControls,ControlType}from\"framer\";/**\n * GFF Button\n *\n * The site's call-to-action shape (60px, 12px corners, label plus a 52px\n * arrow tile) in two tones, so paired buttons always match:\n * - Primary: brand blue, light arrow tile (same as the Featured Button)\n * - Secondary: white, dark label, blue arrow tile\n * On hover the arrow tile slides across the button.\n *\n * @framerSupportedLayoutWidth auto\n * @framerSupportedLayoutHeight auto\n */export default function GFFButton(props){const{label,link,tone,newTab,fullWidth}=props;const uid=\"gfb\"+React.useId().replace(/[^a-zA-Z0-9]/g,\"\");const primary=tone!==\"secondary\";const bg=primary?\"#1C64F2\":\"#FFFFFF\";const fg=primary?\"#FFFFFF\":\"#0A0A0B\";const tile=primary?\"#E9EEFF\":\"#1C64F2\";const arrow=primary?\"#0A0A0B\":\"#FFFFFF\";const ext=typeof link===\"string\"&&/^https?:/.test(link);const css=`\n.${uid}{position:relative;display:inline-flex;align-items:center;justify-content:space-between;gap:20px;box-sizing:border-box;height:60px;padding:4px 4px 4px 28px;border-radius:12px;background:${bg};color:${fg};text-decoration:none;overflow:hidden;isolation:isolate;cursor:pointer;-webkit-font-smoothing:antialiased;${fullWidth?\"width:100%;\":\"min-width:176px;\"}}\n.${uid} .lbl{position:relative;z-index:2;font-family:\"Altform Bold\",\"Altform\",sans-serif;font-weight:700;font-size:16px;line-height:1;white-space:nowrap;transition:color .45s cubic-bezier(.22,1,.36,1)}\n.${uid} .fill{position:absolute;z-index:1;inset:4px;border-radius:8px;background:${tile};clip-path:inset(0 0 0 calc(100% - 52px) round 8px);transition:clip-path .5s cubic-bezier(.22,1,.36,1)}\n.${uid} .arr{position:relative;z-index:2;width:52px;height:52px;display:grid;place-items:center;color:${arrow};flex:none}\n.${uid} .arr svg{width:18px;height:18px;transition:transform .45s cubic-bezier(.22,1,.36,1)}\n.${uid}:hover .fill,.${uid}:focus-visible .fill{clip-path:inset(0 0 0 0 round 8px)}\n.${uid}:hover .lbl,.${uid}:focus-visible .lbl{color:${arrow}}\n.${uid}:hover .arr svg{transform:translateX(3px)}\n.${uid}:focus-visible{outline:2px solid #1C64F2;outline-offset:3px}\n@media (prefers-reduced-motion: reduce){.${uid} *{transition:none!important}}\n`;return /*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"style\",{dangerouslySetInnerHTML:{__html:css}}),/*#__PURE__*/_jsxs(\"a\",{className:uid,href:link||\"#\",...newTab||ext?{target:\"_blank\",rel:\"noopener\"}:{},children:[/*#__PURE__*/_jsx(\"span\",{className:\"fill\",\"aria-hidden\":\"true\"}),/*#__PURE__*/_jsx(\"span\",{className:\"lbl\",children:label}),/*#__PURE__*/_jsx(\"span\",{className:\"arr\",\"aria-hidden\":\"true\",children:/*#__PURE__*/_jsx(\"svg\",{viewBox:\"0 0 24 24\",fill:\"none\",children:/*#__PURE__*/_jsx(\"path\",{d:\"M9 6l6 6-6 6\",stroke:\"currentColor\",strokeWidth:\"2.2\",strokeLinecap:\"round\",strokeLinejoin:\"round\"})})})]})]});}GFFButton.defaultProps={label:\"Get Funded\",link:\"/#pricing\",tone:\"primary\",newTab:false,fullWidth:false};addPropertyControls(GFFButton,{label:{type:ControlType.String,title:\"Label\"},link:{type:ControlType.Link,title:\"Link\"},tone:{type:ControlType.Enum,title:\"Tone\",options:[\"primary\",\"secondary\"],optionTitles:[\"Primary (blue)\",\"Secondary (white)\"]},newTab:{type:ControlType.Boolean,title:\"New Tab\"},fullWidth:{type:ControlType.Boolean,title:\"Full Width\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"GFFButton\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"auto\",\"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