import{H as e,Q as t,W as n,c as r,l as i,mt as a,pt as o,s,yt as c}from"./BA99CCI5.js";import"./xihTtKlq.js";import"./DGo8yE5j.js";import{t as l}from"./ELQnUoYO.js";import{t as u}from"./3rupxGJ5.js";import{t as d}from"./Bv3FroHu2.js";import{t as f}from"./CVQm0Ols.js";import{t as p}from"./C3FImjIr2.js";import{t as m}from"./BTzQwcpc.js";import{t as h}from"./BdjudyaY.js";var g=new Set([`$$slots`,`$$events`,`$$legacy`]);function _(e,t){let n=r(t,g),a=[[`path`,{d:`M12 3v18`}],[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`}],[`path`,{d:`M3 9h18`}],[`path`,{d:`M3 15h18`}]];u(e,i({name:`table`},()=>n,{get iconNode(){return a}}))}var v=n(`<!> <!> <!>`,1);function y(n,r){let i=s(r,`value`,12,`cards`),u=s(r,`position`,8,`right`);m(n,{get icon(){return d},hasDropdown:!0,get dropdownPosition(){return u()},$$slots:{dropdown:(n,r)=>{l(n,{slot:`dropdown`,get position(){return u()},children:(n,r)=>{var s=v(),l=o(s);h(l,{label:`View`});var u=a(l,2);{let e=c(()=>i()===`cards`);p(u,{get icon(){return f},label:`Cards`,get selected(){return t(e)},$$events:{click:()=>i(`cards`)}})}var d=a(u,2);{let e=c(()=>i()===`table`);p(d,{get icon(){return _},label:`Table`,get selected(){return t(e)},$$events:{click:()=>i(`table`)}})}e(n,s)},$$slots:{default:!0}})}}})}export{y as t};