{"version":3,"file":"Button.CDJQnGfb.mjs","names":["_Fragment","__esmMin","init_jsx_runtime","c","p","addPropertyControls","ControlType","init_framer_Dt_XqoQa","FlipLabel","label","TONButton","props","common","variant","size","style","inner","l","TON_BUTTON_CSS","link","newTab","init_Button"],"sources":["https:/framerusercontent.com/modules/elW6eWpjdrdlw94exBTJ/tIXuNKwv5zg5p7z9Fxmn/Button.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";/**\n * TON Button · flip and expand\n * The label rolls up to a copy of itself and the pill grows slightly and turns TON blue on hover.\n * Variants: Dark (for light backgrounds), Light (for dark backgrounds), Glass (secondary on dark).\n * Sizes: Regular, Small.\n *\n * @framerSupportedLayoutWidth auto\n * @framerSupportedLayoutHeight auto\n */export const TON_BUTTON_CSS=['.tb{--tb-ease:cubic-bezier(0.2,1,0.22,1);--tb-bg:#0A0A0A;--tb-ink:#FFFFFF;--tb-hover-bg:#003CFF;--tb-hover-ink:#FFFFFF;--tb-line:transparent;position:relative;display:inline-block;width:fit-content;padding:12px 24px;border:0;background:none;color:var(--tb-ink);font-family:Gellix,\"Inter\",\"Helvetica Neue\",Arial,sans-serif;font-size:16px;line-height:1.25;font-weight:600;letter-spacing:-.005em;text-decoration:none;cursor:pointer;white-space:nowrap;-webkit-font-smoothing:antialiased;transition:color .72s var(--tb-ease);-webkit-tap-highlight-color:transparent}','.tb::after{content:\"\";position:absolute;inset:0;border-radius:999px;background:var(--tb-bg);box-shadow:inset 0 0 0 1px var(--tb-line);transition:scale .72s var(--tb-ease),background-color .72s var(--tb-ease),box-shadow .72s var(--tb-ease)}',\".tb:hover{color:var(--tb-hover-ink)}\",\".tb:hover::after{background:var(--tb-hover-bg);box-shadow:inset 0 0 0 1px transparent;scale:1.09}\",\".tb:active::after{scale:.96}\",\".tb:focus-visible{outline:2px solid #003CFF;outline-offset:4px;border-radius:999px}\",\".tb .tb-c{position:relative;z-index:1;display:block;overflow:hidden}\",\".tb .tb-c>span{position:relative;display:block;transition:transform .72s var(--tb-ease)}\",\".tb .tb-c>span::after{content:attr(data-label);position:absolute;top:100%;left:0;right:0}\",\".tb:hover .tb-c>span{transform:translateY(-100%)}\",'.tb[data-variant=\"light\"]{--tb-bg:#FFFFFF;--tb-ink:#0A0A0A}','.tb[data-variant=\"glass\"]{--tb-bg:rgba(255,255,255,.1);--tb-ink:#F2F0EC;--tb-line:rgba(255,255,255,.18)}','.tb[data-size=\"small\"]{padding:8px 16px;font-size:14px}',\"@media (prefers-reduced-motion:reduce){.tb,.tb::after,.tb .tb-c>span{transition:none}}\"].join(\"\\n\");export function FlipLabel({label}){return /*#__PURE__*/_jsx(\"span\",{className:\"tb-c\",children:/*#__PURE__*/_jsx(\"span\",{\"data-label\":label,children:label})});}export default function TONButton(props){const{label=\"Book a call\",link=\"\",newTab=false,variant=\"dark\",size=\"regular\",onClick,style}=props;const common={className:\"tb\",\"data-variant\":variant,\"data-size\":size,style:{...style}};const inner=/*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"style\",{children:TON_BUTTON_CSS}),/*#__PURE__*/_jsx(FlipLabel,{label:label})]});if(link){return /*#__PURE__*/_jsx(\"a\",{...common,href:link,target:newTab?\"_blank\":undefined,rel:newTab?\"noopener noreferrer\":undefined,onClick:onClick,children:inner});}return /*#__PURE__*/_jsx(\"button\",{...common,type:\"button\",onClick:onClick,children:inner});}addPropertyControls(TONButton,{label:{type:ControlType.String,title:\"Label\",defaultValue:\"Book a call\"},link:{type:ControlType.Link,title:\"Link\"},newTab:{type:ControlType.Boolean,title:\"New tab\",defaultValue:false},variant:{type:ControlType.Enum,title:\"Variant\",options:[\"dark\",\"light\",\"glass\"],optionTitles:[\"Dark (on light)\",\"Light (on dark)\",\"Glass (on dark)\"],defaultValue:\"dark\"},size:{type:ControlType.Enum,title:\"Size\",options:[\"regular\",\"small\"],optionTitles:[\"Regular\",\"Small\"],defaultValue:\"regular\",displaySegmentedControl:true},onClick:{type:ControlType.EventHandler}});\nexport const __FramerMetadata__ = {\"exports\":{\"TON_BUTTON_CSS\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"auto\",\"framerSupportedLayoutWidth\":\"auto\"}},\"FlipLabel\":{\"type\":\"reactComponent\",\"name\":\"FlipLabel\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"default\":{\"type\":\"reactComponent\",\"name\":\"TONButton\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Button.map"],"mappings":"A,0KAQ+rD,SAAgBQ,EAAU,CAAC,SAAO,CAAC,MAAoB,gBAAK,OAAO,CAAC,UAAU,OAAO,SAAsB,gBAAK,OAAO,CAAC,aAAaC,EAAM,SAASA,CAAK,CAAC,CAAC,CAAC,CAAE,CAAC,SAAwBC,EAAU,EAAM,CAAC,GAAK,CAAC,QAAM,cAAc,OAAK,GAAG,SAAO,GAAM,UAAQ,OAAO,OAAK,UAAU,UAAQ,SAAOC,EAAYC,EAAO,CAAC,UAAU,KAAK,eAAeC,EAAQ,YAAYC,EAAK,MAAM,CAAC,GAAGC,CAAK,CAAC,EAAQC,EAAmB,gBAAMhB,EAAU,CAAC,SAAS,CAAc,gBAAK,QAAQ,CAAC,SAASkB,CAAc,CAAC,EAAe,gBAAKV,EAAU,CAAO,OAAK,CAAC,CAAC,CAAC,CAAC,EAA2K,OAAtKW,EAA0B,gBAAK,IAAI,CAAC,GAAGP,EAAO,KAAKO,EAAK,OAAOC,EAAO,SAAS,IAAA,GAAU,IAAIA,EAAO,sBAAsB,IAAA,GAAkB,UAAQ,SAASJ,CAAK,CAAC,EAAuB,gBAAK,SAAS,CAAC,GAAGJ,EAAO,KAAK,SAAiB,UAAQ,SAASI,CAAK,CAAC,CAAE,C,4CAA58E,EAAe,CAAC,mjBAAmjB,kPAAkP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