{"version":3,"file":"TelosButton.LBQV_WVi.mjs","names":["__esmMin","init_npm_react_18_3_1","p","c","init_jsx_runtime","ce","init_framer_DPhDUVVB","Link","ControlType","addPropertyControls","TelosButton","props","l","anchor","variant","fullWidth","CSS","label","ARROW","link","newTab","init_TelosButton"],"sources":["https:/framerusercontent.com/modules/WgTP9M2JRrVtMAFDb2G0/JMframYIBou9AKgasVnC/TelosButton.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType,Link}from\"framer\";import{useEffect}from\"react\";/**\n * Telos Wellbeing: the one button used across the site.\n * Copies the hero Btn (Large): 248 x 44, padding 0 24, gap 6, radius 4,\n * Label 12px/600 uppercase in Chalk, 16px arrow-circle icon,\n * hover to Antique Gold.\n *\n * @framerSupportedLayoutWidth auto\n * @framerSupportedLayoutHeight auto\n */export default function TelosButton(props){const{label,link,variant,newTab,fullWidth}=props;useEffect(()=>{if(typeof document===\"undefined\")return;if(document.getElementById(\"telos-btn-font\"))return;const l=document.createElement(\"link\");l.id=\"telos-btn-font\";l.rel=\"stylesheet\";l.href=\"https://fonts.googleapis.com/css2?family=Inter:wght@500;600;700&display=swap\";document.head.appendChild(l);},[]);// Framer's Link resolves page and section links (e.g. Home #start)\n// so they work in Preview and on the published site, with smooth scroll.\nconst anchor=/*#__PURE__*/_jsxs(\"a\",{className:\"tbtn tbtn-\"+(variant||\"primary\"),style:{width:fullWidth?\"100%\":undefined},children:[/*#__PURE__*/_jsx(\"style\",{children:CSS}),/*#__PURE__*/_jsx(\"span\",{children:label}),ARROW]});if(!link)return anchor;return /*#__PURE__*/_jsx(Link,{href:link,openInNewTab:!!newTab,smoothScroll:true,children:anchor});}// Phosphor \"arrow-circle-right\" (regular)\nconst ARROW=/*#__PURE__*/_jsx(\"svg\",{viewBox:\"0 0 256 256\",fill:\"currentColor\",\"aria-hidden\":\"true\",children:/*#__PURE__*/_jsx(\"path\",{d:\"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm45.66-93.66a8,8,0,0,1,0,11.32l-32,32a8,8,0,0,1-11.32-11.32L148.69,136H88a8,8,0,0,1,0-16h60.69l-18.35-18.34a8,8,0,0,1,11.32-11.32Z\"})});const CSS=`\n.tbtn{display:inline-flex;align-items:center;justify-content:center;gap:6px;box-sizing:border-box;width:248px;max-width:100%;height:44px;padding:0 24px;border-radius:4px;border:0;font-family:\"Inter\",system-ui,-apple-system,\"Segoe UI\",sans-serif;font-size:12px;font-weight:600;line-height:1.4;letter-spacing:.12em;text-transform:uppercase;text-decoration:none;white-space:nowrap;cursor:pointer;color:#F0EEE4;-webkit-font-smoothing:antialiased;transition:background-color .25s ease,transform .15s ease}\n.tbtn svg{width:16px;height:16px;flex:none}\n.tbtn:hover{background:#A88742}\n.tbtn:active{transform:scale(.97)}\n.tbtn-primary{background:#F47068}\n.tbtn-primary svg{color:#0F606B}\n.tbtn-secondary{background:rgba(255,255,255,.16)}\n.tbtn-secondary svg{color:#F0EEE4}\n.tbtn-light{background:transparent;color:#0F606B;box-shadow:inset 0 0 0 1px rgba(15,96,107,.45)}\n.tbtn-light:hover{color:#F0EEE4;box-shadow:none}\n@media (prefers-reduced-motion:reduce){.tbtn{transition:none}.tbtn:active{transform:none}}\n`;TelosButton.defaultProps={label:\"Start a conversation\",link:\"/enquire\",variant:\"primary\",newTab:false,fullWidth:false};addPropertyControls(TelosButton,{label:{type:ControlType.String,title:\"Label\"},link:{type:ControlType.Link,title:\"Link\"},variant:{type:ControlType.Enum,title:\"Style\",options:[\"primary\",\"secondary\",\"light\"],optionTitles:[\"Coral\",\"Soft (on dark)\",\"Outline (on light)\"]},newTab:{type:ControlType.Boolean,title:\"New tab\"},fullWidth:{type:ControlType.Boolean,title:\"Full width\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"TelosButton\",\"slots\":[],\"annotations\":{\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