import{c as e,v as s,x as t,F as l,b0 as a,N as n,D as i,B as o,K as p,z as c,A as d,y as r,e as u,C as x,b1 as y,G as m,ar as f,aq as k,ap as b}from"./base-lib.js?v=1761009159";import{af as _,b3 as v,_ as C}from"./utils-lib.js?v=1761009159";const h={class:"flex items-center"},w={key:1},z={key:0},B={key:1,class:"inline-block flex flex-col py-[12px] mb-[8px]"},g={class:"text-secondary text-base mb-[8px]"},L=["innerHTML"],j=C(e({__name:"index",props:{options:{default:()=>[]}},setup(e){const C=e=>!e.hide||v(e.hide)&&!e.hide(),j=e=>e.active?"primary":"default";return(e,v)=>{const H=y,M=m,T=f,q=k,A=b;return s(),t("div",h,[(s(!0),t(l,null,a(e.options,(e,y)=>(s(),t(l,null,[e.division?(s(),n(H,{key:"division"+y,class:"!h-[25px]",direction:"vertical"})):i("",!0),C(e)&&!e.dropdown?(s(),n(M,{key:y,size:e.size||"",type:j(e),title:r(_)(e.title)?e.content:e.title,class:"!flex items-center",onClick:e.event},{default:o(()=>[e.icon?(s(),t("i",{key:0,class:p(e.icon+" mr-4px")},null,2)):i("",!0),c("span",{class:p("flex items-center "+e.class)},d(e.content),3)]),_:2},1032,["size","type","title","onClick"])):i("",!0),C(e)&&e.dropdown?(s(),n(A,{key:"dropdown"+y,"split-button":e.splitButton,type:j(e),size:"small",onClick:e.event},{dropdown:o(()=>[u(q,null,{default:o(()=>[(s(!0),t(l,null,a(e.settingList,(l,a)=>(s(),n(T,{key:a,class:p(["!py-0 !px-[1.5rem] !leading-[2.7rem]",!0===l.hide?"hidden":""]),onClick:s=>e.event(l.name)},{default:o(()=>[l.description?i("",!0):(s(),t("span",z,d(l.label),1)),l.description?(s(),t("div",B,[c("span",g,d(l.label),1),c("span",{class:"text-tertiary text-small",innerHTML:l.description},null,8,L)])):i("",!0)]),_:2},1032,["class","onClick"]))),128))]),_:2},1024)]),default:o(()=>[e.splitButton?i("",!0):(s(),n(M,{key:0,type:"default"},{default:o(()=>[x(d(e.content)+" ",1),v[0]||(v[0]=c("i",{class:"svgtofont-arrow-down ml-4px text-small"},null,-1))]),_:2,__:[0]},1024)),e.splitButton?(s(),t("span",w,d(e.content),1)):i("",!0)]),_:2},1032,["split-button","type","onClick"])):i("",!0)],64))),256))])}}}),[["__scopeId","data-v-b616a617"]]);export{j as _};
