iBet uBet web content aggregator. Adding the entire web to your favor.
iBet uBet web content aggregator. Adding the entire web to your favor.



Link to original content: http://ecommerceDB.com/_nuxt/wMmrnhvC.js
import{d as B,D as k,k as n,f as e,o as i,c as g,w as h,a6 as d,v as r,t as u,O as f,G as b,_ as v,a9 as $}from"./llFuKhWI.js";const C=["href","aria-label","data-gtm"],G=["type","aria-label","data-gtm","disabled"],w=B({__name:"VariantButton",props:{variant:{default:"primary"},type:{default:"button"},label:{default:""},dataGtm:{default:null},disabled:{type:Boolean,default:!1},to:{default:null},size:{default:"medium"},isFullwidth:{type:Boolean,default:!1},isRounded:{type:Boolean,default:!1},buttonClass:{default:""}},setup(c){const t=c,{isNuxtReady:m}=k(),s=n(()=>["variantButton",`variantButton--${t.variant}`,`variantButton--${t.size}Size`,{"variantButton--isFullwidth":t.isFullwidth,"variantButton--isRounded":t.isRounded},...[t.buttonClass].flat()]),p=n(()=>{if(t.to===null)return!1;if(typeof t.to=="string"){const a=/^https?:\/\//.test(t.to),l=/^mailto:/.test(t.to),o=/^tel:/.test(t.to);return!a&&!l&&!o}return!0}),_=n(()=>t.to===null?"":typeof t.to=="string"?t.to:t.to.path);return(a,l)=>{const o=v;return e(p)&&t.to?(i(),g(o,{key:0,to:t.to,class:f(e(s)),"aria-label":t.label,"data-gtm":t.dataGtm,disabled:t.disabled},{default:h(()=>[d(a.$slots,"default",{},()=>[r(u(t.label),1)],!0)]),_:3},8,["to","class","aria-label","data-gtm","disabled"])):!e(p)&&a.to?(i(),b("a",{key:1,href:e(_),class:f(e(s)),"aria-label":a.label,"data-gtm":a.dataGtm,onClick:l[0]||(l[0]=y=>a.$emit("click",y))},[d(a.$slots,"default",{},()=>[r(u(a.label),1)],!0)],10,C)):(i(),b("button",{key:2,type:t.type,class:f(e(s)),"aria-label":t.label,"data-gtm":t.dataGtm,disabled:!e(m)||t.disabled},[d(a.$slots,"default",{},()=>[r(u(t.label),1)],!0)],10,G))}}}),z=$(w,[["__scopeId","data-v-27f87b7d"]]);export{z as _};