import v from"./Icon.sNzKdesA.js";import{_ as y}from"./Avatar.AyoIKaT6.js";import{C as w,D as p,f as C,E as k,i as o,N as z,O as s,o as r,c as n,a as l,x as t,F as S,H as $,t as _,j as f,K as m,k as b}from"./entry.2xM5grDS.js";import{u as U}from"./selectMenu.72ERhOvP.js";import{_ as j}from"./_plugin-vue_export-helper.x3n3nnut.js";import"./Icon.rhzHF9SY.js";import"./index.aIcZnwHK.js";const A={wrapper:{base:"flex items-center align-center text-center w-full",horizontal:"flex-row",vertical:"flex-col"},container:{base:"font-medium text-gray-700 dark:text-gray-200 flex",horizontal:"mx-3 whitespace-nowrap",vertical:"my-2"},border:{base:"flex border-gray-200 dark:border-gray-800",horizontal:"w-full",vertical:"h-full",size:{horizontal:"border-t",vertical:"border-s"},type:{solid:"border-solid",dotted:"border-dotted",dashed:"border-dashed"}},icon:{base:"flex-shrink-0 w-5 h-5"},avatar:{base:"flex-shrink-0",size:"2xs"},label:"text-sm"},B=w(p.ui.strategy,p.ui.divider,A),O=C({components:{UIcon:v,UAvatar:y},inheritAttrs:!1,props:{label:{type:String,default:null},icon:{type:String,default:null},avatar:{type:Object,default:null},orientation:{type:String,default:"horizontal",validator:e=>["horizontal","vertical"].includes(e)},type:{type:String,default:"solid",validator:e=>["solid","dotted","dashed"].includes(e)},class:{type:[String,Object,Array],default:()=>""},ui:{type:Object,default:()=>({})}},setup(e){const{ui:a,attrs:i}=U("divider",k(e,"ui"),B),d=o(()=>z(s(a.value.wrapper.base,a.value.wrapper[e.orientation]),e.class)),u=o(()=>s(a.value.container.base,a.value.container[e.orientation])),c=o(()=>s(a.value.border.base,a.value.border[e.orientation],a.value.border.size[e.orientation],a.value.border.type[e.type]));return{ui:a,attrs:i,wrapperClass:d,containerClass:u,borderClass:c}}});function I(e,a,i,d,u,c){const g=v,h=y;return r(),n("div",m({class:e.wrapperClass},e.attrs),[l("div",{class:t(e.borderClass)},null,2),e.label||e.icon||e.avatar||e.$slots.default?(r(),n(S,{key:0},[l("div",{class:t(e.containerClass)},[$(e.$slots,"default",{},()=>[e.label?(r(),n("span",{key:0,class:t(e.ui.label)},_(e.label),3)):e.icon?(r(),f(g,{key:1,name:e.icon,class:t(e.ui.icon.base)},null,8,["name","class"])):e.avatar?(r(),f(h,m({key:2},{size:e.ui.avatar.size,...e.avatar},{class:e.ui.avatar.base}),null,16,["class"])):b("",!0)])],2),l("div",{class:t(e.borderClass)},null,2)],64)):b("",!0)],16)}const K=j(O,[["render",I]]);export{K as default};
