PageSourceSearch

https://cortico.health/_nuxt/Button-CqEATCZk.js

js cortico.health collected 2026-10-10 02:00:18 UTC 2,798 bytes, 1 lines download raw bytes

1import{p as l,_ as f}from"./D1EJK7Tj.js";import{d as i,a4 as u,a5 as s,a6 as c,as as b,F as y,a9 as g,ab as h,aa as m,ac as p,a2 as d,af as w}from"./vendor-vue-7DQK8ixm.js";try{(function(){var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="05da4374-7a60-4aa3-bbff-eee04f1571b8",e._sentryDebugIdIdentifier="sentry-dbid-05da4374-7a60-4aa3-bbff-eee04f1571b8")})()}catch{}(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};e._sentryModuleMetadata=e._sentryModuleMetadata||{},e._sentryModuleMetadata[new e.Error().stack]=(function(t){for(var r=1;r<arguments.length;r++){var a=arguments[r];if(a!=null)for(var n in a)a.hasOwnProperty(n)&&(t[n]=a[n])}return t})({},e._sentryModuleMetadata[new e.Error().stack],{"_sentryBundlerPluginAppKey:cortico-website":!0})}catch{}})();const v=l("/images/plugin/next-arrow.svg"),x={key:0,class:"w-[20px]",src:v,alt:"Arrow"},B={__name:"Button",props:{title:{type:String,default:""},hasIcon:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},handleClick:{type:Function,default:()=>{}},customClass:{type:[String,Array,Object],default:""},variant:{type:String,default:"primary"},type:{type:String,default:"button"},to:{type:String,default:null},href:{type:String,default:null},target:{type:String,default:"_self"}},setup(e){const t=e,r=i(()=>t.to?f:t.href?"a":"button"),a=i(()=>{switch(t.variant){case"secondary":return"bg-white font-bold border border-primary text-primary hover:bg-gray-50 active:bg-gray-100";case"tertiary":return"bg-transparent font-bold text-primary hover:bg-gray-50 active:bg-gray-100";case"pink":return"text-white font-bold bg-pink-normal hover:bg-pink-active active:opacity-90";case"inverted":return"bg-white font-bold text-cortico-blue border-2 border-white hover:bg-transparent hover:text-white";default:return"text-white font-bold bg-primary hover:bg-cortico-blue active:bg-premium-active"}}),n=o=>{t.disabled||t.handleClick(o)};return(o,k)=>(s(),u(w(d(r)),{to:e.to||void 0,href:e.href||void 0,target:e.href?e.target:void 0,type:!e.to&&!e.href?e.type:void 0,disabled:!e.to&&!e.href?e.disabled:void 0,"aria-busy":!e.to&&!e.href&&e.disabled?"true":"false",class:p(["disabled:opacity-50 disabled:cursor-wait flex gap-x-2 items-center justify-center","px-4 py-[10px] rounded-md w-fit transition-colors text-base","focus:ring-2 focus:ring-offset-2 focus:ring-cortico-blue focus:outline-none",d(a),e.customClass]),onClick:n},{default:c(()=>[b(o.$slots,"default",{},()=>[h(m(e.title),1)]),e.hasIcon?(s(),y("img",x)):g("",!0)]),_:3},8,["to","href","target","type","disabled","aria-busy","class"]))}};export{B 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.