import"./E-vkuI0X.mjs";import{i as T}from"./D7QRsIUK.mjs";import{bg as B,b0 as b,bu as r,ad as c,aw as a,b1 as D,a3 as W,bo as k,bP as x,W as C,bd as E,bI as F,bC as I,b8 as m,au as M}from"./D_PZV9Md.mjs";import{g as N}from"./BZYxBvHH.mjs";import{a7 as P}from"./tnLI9iJm.mjs";import{fD as S,fE as j,fF as q}from"./CPjd1xqp.mjs";import{e as A}from"./Bw_OGHRt.mjs";import{p as i}from"./3irscRxQ.mjs";import{p as G}from"./z46xv_bf.mjs";var H=M('<div role="toolbar"><!></div>');function Y(_,e){B(e,!1);const g=()=>F(G,"$pageTheme",v),[v,h]=I(),l=m(),u=m();let w=i(e,"id",8,void 0),y=i(e,"class",8,""),n=i(e,"size",8,void 0),f=i(e,"wrap",8,void 0),s=m();b(()=>c(n()),()=>{r(l,n()?`--buttons-size: ${n()}rem; `:"")}),b(()=>c(f()),()=>{f()===void 0?r(s,""):r(s,f()?"--buttons-wrap: wrap; ":"--buttons-wrap: nowrap; ")}),b(()=>(a(l),a(s)),()=>{r(u,a(l)+a(s))}),D(),T();var t=H();let d,p;var z=W(t);P(z,e,"default",{}),k(t),x(()=>{var o;S(t,"id",w()),d=j(t,1,`button-toolbar btn-toolbar ${(o=y())!=null?o:""}`,"svelte-1v9a56g",d,{nightMode:g().isDark}),p=q(t,a(u),p,{"--icon-align":"baseline"})}),N("focusout",t,function(o){A.call(this,e,o)}),C(_,t),E(),h()}export{Y as B};
