import{resolveComponent as n,createBlock as u,openBlock as c,withCtx as l,createVNode as o,unref as i,renderSlot as m}from"/vue.js";import{L as r}from"./nc-main.DEgIQeOo.js";import"./service-worker.DGZzV4eE.js";const $=Object.assign({name:"nc-label-dropdown"},{__name:"nc-label-dropdown",props:Object.assign({},r.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(f){const s=f,a=s.hdrModel||s.hdr||s.model;return(e,d)=>{const t=n("nc-label"),b=n("nc-form-field"),p=n("nc-col"),h=n("nc-row");return e.horizontal?(c(),u(h,{key:1,class:"nc-label-dropdown"},{default:l(()=>[o(p,null,{default:l(()=>[o(t,{class:"nc-label-dropdown-label",model:e.hdrModel||e.model,hdr:i(a),"label-style":e.labelStyle},{default:l(()=>[m(e.$slots,"default")]),_:3},8,["model","hdr","label-style"])]),_:3}),o(p,{width:"auto"},{default:l(()=>[o(r,{"dropdown-style":e.dropdownStyle,focus:e.focus,blur:e.blur,"select-icons":e.selectIcons,model:e.model,selected:e.selected,placeholder:e.placeholder,multiple:e.multiple,search:e.search,disabled:e.disabled,onChange:d[1]||(d[1]=y=>e.$emit("change"))},null,8,["dropdown-style","focus","blur","select-icons","model","selected","placeholder","multiple","search","disabled"])]),_:1})]),_:3})):(c(),u(b,{key:0,class:"nc-label-dropdown"},{default:l(()=>[o(t,{model:e.hdrModel||e.model,hdr:i(a),"label-style":e.labelStyle},{default:l(()=>[m(e.$slots,"default")]),_:3},8,["model","hdr","label-style"]),o(r,{"dropdown-style":e.dropdownStyle,focus:e.focus,blur:e.blur,"select-icons":e.selectIcons,model:e.model,selected:e.selected,placeholder:e.placeholder,multiple:e.multiple,search:e.search,disabled:e.disabled,onChange:d[0]||(d[0]=y=>e.$emit("change"))},null,8,["dropdown-style","focus","blur","select-icons","model","selected","placeholder","multiple","search","disabled"])]),_:3}))}}});export{$ as default};
