import{t as e}from"./nc-dropdown.CpnM_4Xb.js";import{createBlock as t,createVNode as n,openBlock as r,renderSlot as i,resolveComponent as a,unref as o,withCtx as s}from"/vue.js";var c=Object.assign({name:`nc-label-dropdown`},{__name:`nc-label-dropdown`,props:Object.assign({},e.props,{hdr:{type:String,default:void 0},hdrModel:{type:String,default:void 0},horizontal:{type:Boolean,default:!0},labelStyle:{type:[String,Object],default:void 0},dropdownStyle:{type:[String,Object],default:void 0}}),emits:[`change`],setup(c){let l=c,u=l.hdrModel||l.hdr||l.model;return(c,l)=>{let d=a(`nc-label`),f=a(`nc-form-field`),p=a(`nc-col`),m=a(`nc-row`);return c.horizontal?(r(),t(m,{key:1,class:`nc-label-dropdown`},{default:s(()=>[n(p,null,{default:s(()=>[n(d,{class:`nc-label-dropdown-label`,model:c.hdrModel||c.model,hdr:o(u),"label-style":c.labelStyle},{default:s(()=>[i(c.$slots,`default`)]),_:3},8,[`model`,`hdr`,`label-style`])]),_:3}),n(p,{width:`auto`},{default:s(()=>[n(e,{"dropdown-style":c.dropdownStyle,focus:c.focus,blur:c.blur,"select-icons":c.selectIcons,model:c.model,selected:c.selected,placeholder:c.placeholder,multiple:c.multiple,search:c.search,disabled:c.disabled,onChange:l[1]||(l[1]=e=>c.$emit(`change`))},null,8,[`dropdown-style`,`focus`,`blur`,`select-icons`,`model`,`selected`,`placeholder`,`multiple`,`search`,`disabled`])]),_:1})]),_:3})):(r(),t(f,{key:0,class:`nc-label-dropdown`},{default:s(()=>[n(d,{model:c.hdrModel||c.model,hdr:o(u),"label-style":c.labelStyle},{default:s(()=>[i(c.$slots,`default`)]),_:3},8,[`model`,`hdr`,`label-style`]),n(e,{"dropdown-style":c.dropdownStyle,focus:c.focus,blur:c.blur,"select-icons":c.selectIcons,model:c.model,selected:c.selected,placeholder:c.placeholder,multiple:c.multiple,search:c.search,disabled:c.disabled,onChange:l[0]||(l[0]=e=>c.$emit(`change`))},null,8,[`dropdown-style`,`focus`,`blur`,`select-icons`,`model`,`selected`,`placeholder`,`multiple`,`search`,`disabled`])]),_:3}))}}});export{c as default};