1import{i as e,t}from"./jsx-runtime-DUAcabCT.js";import{t as n}from"./react-DbyrFoBd.js";import{At as r,Mt as i,jt as a}from"./index-DC2e6FG_.js";var o=e(n(),1),s=t(),c=`inline-flex items-center font-medium tracking-[1%] transition-colors duration-300 ease-in-out`,l=`text-white bg-teal-cta hover:bg-teal-cta-hover active:bg-teal-cta-hover/90`,u=`text-teal-dark border border-teal-dark hover:bg-teal-dark hover:text-white active:bg-teal-dark/90 active:text-white`,d=`bg-white text-gray-90 hover:bg-gray-10 active:bg-gray-20`,f={teal:l,"teal-outline":u,white:d,"white-outline":`border border-white text-white hover:bg-white hover:text-charcoal active:bg-gray-10 active:text-charcoal`,"white-teal":`bg-white text-teal-dark hover:bg-gray-10 active:bg-gray-20`,violet:`text-white bg-violet hover:bg-purple-60 active:bg-purple-60`,pink:`text-charcoal bg-pink-accent hover:bg-pink-accent/85 active:bg-pink-accent/75`,"pink-outline":`text-pink-accent border border-pink-accent hover:bg-pink-accent hover:text-charcoal active:bg-pink-accent/90 active:text-charcoal`,lime:`text-charcoal bg-green-60 hover:bg-green-60/85 active:bg-green-60/75`,primary:l,secondary:u,outline:d};function p(e){return e===`primary`||e===`teal`?`teal`:e===`secondary`||e===`teal-outline`?`teal-outline`:e===`white-outline`||e===`white-teal`?`white-outline`:e===`violet`?`violet`:e===`pink`?`pink`:e===`lime`?`lime`:`white`}function m(e,t){return p(e)===`white`?`rounded-lg`:t===`xl`||t===`lg`?`rounded-10`:`rounded-lg`}var h=Object.fromEntries(Object.entries({xl:{teal:`px-10 py-2.5 text-19 leading-normal`,"teal-outline":`px-10 py-2.5 text-19 leading-normal`,white:`gap-1.5 px-10 py-2.5 text-19 leading-normal`,"white-outline":`px-10 py-2.5 text-19 leading-normal`,violet:`px-10 py-2.5 text-19 leading-normal`,pink:`px-10 py-2.5 text-19 leading-normal`,lime:`px-10 py-2.5 text-19 leading-normal`},lg:{teal:`px-8 py-2 leading-[1.625rem]`,"teal-outline":`px-8 py-2 leading-[1.625rem]`,white:`gap-1.5 px-8 py-2 leading-[1.625rem]`,"white-outline":`px-8 py-2 leading-[1.625rem]`,violet:`px-8 py-2 leading-[1.625rem]`,pink:`px-8 py-2 leading-[1.625rem]`,lime:`px-8 py-2 leading-[1.625rem]`},md:{teal:`px-5 py-1.5 leading-normal`,"teal-outline":`px-5 py-1.5 leading-normal`,white:`gap-1.5 px-5 py-1 leading-[1.75rem]`,"white-outline":`px-5 py-1.5 leading-normal`,violet:`px-5 py-1.5 leading-normal`,pink:`px-5 py-1.5 leading-normal`,lime:`px-5 py-1.5 leading-normal`},sm:{teal:`px-4 py-1 text-13 leading-[1.5rem]`,"teal-outline":`gap-1.5 px-4 py-1.5 text-13 leading-tight`,white:`gap-1.5 px-4 py-1 text-13 leading-[1.5rem]`,"white-outline":`px-4 py-1 text-13 leading-[1.5rem]`,violet:`px-4 py-1 text-13 leading-[1.5rem]`,pink:`px-4 py-1 text-13 leading-[1.5rem]`,lime:`px-4 py-1 text-13 leading-[1.5rem]`}}).map(([e,t])=>[e,{...t,primary:t.teal,secondary:t[`teal-outline`],outline:t.white,"white-outline":t.white,"white-teal":t[`white-outline`],"pink-outline":t.pink}]));function g({href:e,variant:t=`primary`,size:n=`lg`,className:r=``,children:i,target:o,rel:l,onClick:u,type:d=`button`}){let p=`${c} ${f[t]} ${h[n][t]} ${m(t,n)} ${r}`.trim();return e?a(e)?(0,s.jsx)(_,{href:e,className:p,target:o,rel:l,children:i}):(0,s.jsx)(`a`,{href:e,className:p,target:o,rel:l,children:i}):(0,s.jsx)(`button`,{type:d,className:p,onClick:u,children:i})}function _({href:e,className:t,target:n,rel:a,children:c}){let[l,u]=(0,o.useState)(e);return(0,o.useEffect)(()=>{u(i(e,r()))},[e]),(0,s.jsx)(`a`,{href:l,className:t,target:n,rel:a,children:c})}export{g as t}; 2//# sourceMappingURL=Button-BWaajKGQ.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.