1import{_ as b}from"./B1vqxUT6.js";import{u as h}from"./BX32j7c6.js";import{d as y,W as r,L as o,Z as n,E as t,Y as f,a9 as l,$ as p,e as x}from"./Cvqyg1dT.js";const C={key:0,class:"group flex items-center"},k=["href","target","aria-label"],w=["href"],z={key:1,class:"flex items-center"},$=["aria-label"],v=["aria-label"],B=y({__name:"CtaButton",props:{href:String,external:Boolean,ariaName:String,btnText:String,color:{type:String,default:"primary"},size:{type:String,default:"large"},isIcon:Boolean,isDisabled:Boolean,isText:Boolean,hasLink:Boolean,icon:Object},setup(u){const e=u,{sanitizeUrl:d}=h(),m={primary:"bg-energy-blue border border-energy-blue text-white",secondary:"bg-deep-blue border border-deep-blue text-white",tertiary:"bg-white border border-energy-blue text-deep-blue"},g={large:"px-[1.813rem] py-[0.563rem] text-xl ",medium:"px-[1.438rem] py-[0.438rem] text-base",small:"px-[1.063rem] py-[0.313rem] text-sm"},_={large:"p-[0.688rem] text-2xl",medium:"p-[0.438rem] text-2xl",small:"p-[0.438rem] text-base"},i=x(()=>{const s=m[e.color]||"",a=g[e.size]||"";return`${s} ${a}`}),c=x(()=>{const s=m[e.color]||"",a=_[e.size]||"";return`${s} ${a}`});return(s,a)=>u.hasLink?(r(),o("div",C,[e?.isText?(r(),o("a",{key:0,href:t(d)(e.href),target:e?.external?"_blank":"_self",class:n(["cursor-pointer self-start rounded-full text-center font-semibold transition duration-300 ease-in-out md:mt-0",e?.isDisabled?`${t(i)} pointer-events-none !bg-off-white group-hover:bg-off-white !text-dark-grey border border-off-white`:t(i)]),"aria-label":e.ariaName},f(e.btnText),11,k)):l("",!0),e?.isIcon?(r(),o("a",{key:1,href:t(d)(e.href),class:n(["arrow-animation flex items-center justify-center overflow-hidden rounded-full transition-all duration-300 md:mt-0",e?.isDisabled?`${t(c)} pointer-events-none !bg-off-white group-hover:bg-off-white !text-dark-grey border border-off-white`:t(c)])},[p(b,{icon:e.icon,class:"relative z-10","auto-align":!1},null,8,["icon"])],10,w)):l("",!0)])):(r(),o("div",z,[e?.isText?(r(),o("button",{key:0,"aria-label":e.ariaName,class:n(`cursor-pointer self-start rounded-full w-full ${t(i)}`)},f(e.btnText),11,$)):l("",!0),e?.isIcon?(r(),o("button",{key:1,"aria-label":e.ariaName,class:n(`flex items-center justify-center rounded-full bg-deep-blue text-2xl ${t(c)}`)},[p(b,{icon:e.icon,class:"relative z-10","auto-align":!1},null,8,["icon"])],10,v)):l("",!0)]))}}),j=Object.assign(B,{__name:"CtaButton"});export{j as _};
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.