import f from"./a3_T1sui.js";import{_ as g}from"./BVh1h3O-.js";import{o as a,c as n,b as s,w as c,n as e,s as r,d as u,t as d,a as m}from"./BbPtyKFD.js";const h={key:0},x={key:0,class:"flex items-center mr-4"},k={key:1,class:"flex self-center ml-4"},b={class:"relative inline-block"},y={class:"w-full flex"},C={__name:"CustomButton",props:{isTertiary:{type:Boolean,default:!1},isIcon:{type:Boolean,default:!1},isPrimary:{type:Boolean,default:!0},isPositionLeft:{type:Boolean,default:!1},name:String,buttonClass:{type:String,default:"py-[19px] px-6 sm:py-[27px] sm:px-8"},linkButtonClass:{type:String,default:"text-custom-blue dark:text-[#66AFF9]"},iconName:String,iconSize:String,iconClass:{type:String,default:""},outerDivClass:{type:String,default:""},isToHash:{type:Boolean,default:!1},toHash:{type:String,default:""},toPath:String,isBlank:{type:Boolean,default:!1},dataGtm:{type:String,default:""}},setup(t){return(i,v)=>{const o=f,l=g;return t.isTertiary?(a(),n("div",h,[s(l,{to:i.localePath(t.toPath),target:t.isBlank?"_blank":"",class:e([t.linkButtonClass,"z-10 relative inline-flex items-center uppercase text-sm font-semibold rounded-xl hover:text-[#0055AA] dark:hover:text-custom-blue"]),"data-gtm":t.dataGtm},{default:c(()=>[t.isIcon&&t.isPositionLeft?(a(),n("div",x,[s(o,{name:t.iconName,size:t.iconSize,class:e(["text-base",t.iconClass])},null,8,["name","size","class"])])):r("",!0),u(" "+d(t.name)+" ",1),t.isIcon&&!t.isPositionLeft?(a(),n("div",k,[m("div",b,[s(o,{name:t.iconName,size:t.iconSize,class:e(["text-base",t.iconClass])},null,8,["name","size","class"])])])):r("",!0)]),_:1},8,["to","target","class","data-gtm"])])):(a(),n("div",{key:1,class:e(t.outerDivClass)},[m("div",y,[s(l,{to:t.isToHash?{path:i.localePath(t.toPath),hash:"#"+t.toHash}:i.localePath(t.toPath),"data-gtm":t.dataGtm,target:t.isBlank?"_blank":"",class:e([t.buttonClass,t.isPrimary?"bg-custom-blue hover:bg-[#0055AA] dark:hover:bg-[#0A8DFF] dark:bg-[#66AFF9] text-white dark:text-[#001327] focus:bg-[#0666E5] dark:focus:bg-[#66AFF9] focus:ring ring-offset-white dark:ring-offset-[#001327] dark:focus:outline-none focus:ring-[#0055AA] dark:focus:ring-white ring-offset-8":"bg-transparent hover:bg-[#0055AA1A] dark:hover:bg-[#0055AA26] text-custom-blue dark:text-white ring-[1.5px] ring-inset ring-custom-blue dark:ring-[#66AFF9]","w-full content-center justify-center flex text-center mx-auto z-10 items-center relative text-sm uppercase rounded-md font-semibold whitespace-nowrap cursor-pointer"])},{default:c(()=>[u(d(t.name),1)]),_:1},8,["to","data-gtm","target","class"])])],2))}}};export{C as _};