import"./E-vkuI0X.mjs";import{i as T}from"./DoxTZSDF.mjs";import{p as B,l as f,s as r,m as p,j as b,g as s,a as j,h as k,i as q,r as x,b as D,c as M,d as N}from"./4Xd67fio.mjs";import{e as S}from"./DC2aKjHe.mjs";import{s as W}from"./MDPyFyai.mjs";import{t as A,q as C,u as E}from"./BTt3VLuJ.mjs";import{b as F}from"./BQrEQjFg.mjs";import{p as i,s as G,a as H}from"./B7xFKswI.mjs";import{p as I}from"./DiJRoIPc.mjs";var J=k('<div role="toolbar"><!></div>');function Y(_,e){B(e,!1);const g=()=>G(I,"$pageTheme",v),[v,h]=H(),l=p(),u=p();let w=i(e,"id",8,void 0),y=i(e,"class",8,""),n=i(e,"size",8,void 0),m=i(e,"wrap",8,void 0),a=p();f(()=>b(n()),()=>{r(l,n()?`--buttons-size: ${n()}rem; `:"")}),f(()=>b(m()),()=>{m()===void 0?r(a,""):r(a,m()?"--buttons-wrap: wrap; ":"--buttons-wrap: nowrap; ")}),f(()=>(s(l),s(a)),()=>{r(u,s(l)+s(a))}),j(),T();var t=J();let c,d;var z=q(t);W(z,e,"default",{}),x(t),D(()=>{var o;A(t,"id",w()),c=C(t,1,`button-toolbar btn-toolbar ${(o=y())!=null?o:""}`,"svelte-1v9a56g",c,{nightMode:g().isDark}),d=E(t,s(u),d,{"--icon-align":"baseline"})}),S("focusout",t,function(o){F.call(this,e,o)}),M(_,t),N(),h()}export{Y as B};
