import{p as x,i as m,a as n,b as y,f as j}from"./i18n-Dnhn5Rxr.js";import{R as A,a6 as h,S as b,a as _,T as C,aj as D,V as z,X as q,Y as B,t as I,W as S,w as o,a5 as g}from"./index-DWyDLubb.js";import{s as P}from"./snippet-BWgYNF9D.js";import{I as R}from"./Image-CeW7PJs4.js";import"./ScrollFade.svelte_svelte_type_style_lang-DPHOQHBm.js";/* empty css                                                   */var E=S("<a><!> <!></a>"),F=S("<button><!> <!></button>");function N(T,e){A(e,!0);let k=x(e,"elem_classes",19,()=>[]),V=x(e,"onclick",3,()=>{});var w=h(),W=b(w);{var X=l=>{var a=E();let d,c;var s=z(a);{var v=t=>{{let i=g(()=>({alt:`${e.value} icon`,class:"button-icon"}));R(t,{get src(){return e.icon.url},get restProps(){return o(i)}})}};m(s,t=>{e.icon&&t(v)})}var f=q(s,2);{var u=t=>{var i=h(),r=b(i);P(r,()=>e.children),_(t,i)};m(f,t=>{e.children&&t(u)})}B(a),I(t=>{n(a,"href",e.link),n(a,"target",e.link_target),n(a,"rel",e.link_target==="_blank"?"noopener noreferrer":void 0),n(a,"aria-disabled",e.disabled),d=y(a,1,`${e.size??""} ${e.variant??""} ${t??""}`,"svelte-xzq5jh",d,{hidden:e.visible===!1||e.visible==="hidden",disabled:e.disabled}),n(a,"id",e.elem_id),c=j(a,"",c,{"flex-grow":e.scale,"pointer-events":e.disabled?"none":null,width:e.scale===0?"fit-content":null,"min-width":typeof e.min_width=="number"?`calc(min(${e.min_width}px, 100%))`:null})},[()=>k().join(" ")]),_(l,a)},Y=l=>{var a=F();a.__click=function(...t){V()?.apply(this,t)};let d,c;var s=z(a);{var v=t=>{{let i=g(()=>({alt:`${e.value} icon`})),r=g(()=>[`button-icon ${e.value?"right-padded":""}`]);R(t,{get restProps(){return o(i)},get class_names(){return o(r)},get src(){return e.icon.url}})}};m(s,t=>{e.icon&&t(v)})}var f=q(s,2);{var u=t=>{var i=h(),r=b(i);P(r,()=>e.children),_(t,i)};m(f,t=>{e.children&&t(u)})}B(a),I(t=>{d=y(a,1,`${e.size??""} ${e.variant??""} ${t??""}`,"svelte-xzq5jh",d,{hidden:e.visible===!1||e.visible==="hidden"}),n(a,"id",e.elem_id),a.disabled=e.disabled,c=j(a,"",c,{"flex-grow":e.scale,width:e.scale===0?"fit-content":null,"min-width":typeof e.min_width=="number"?`calc(min(${e.min_width}px, 100%))`:null})},[()=>k().join(" ")]),_(l,a)};m(W,l=>{e.link&&e.link.length>0?l(X):l(Y,!1)})}_(T,w),C()}D(["click"]);export{N as B};
