import{a as i,r as m,ao as c,c as f,j as h,u as t,O as b}from"./index.4d061c66.js";import{b as R,c as w}from"./remoteSelect.403add72.js";import{R as V}from"./remote-select.36ee67a3.js";const y=i({__name:"Company",props:{placeholder:null,modelValue:null,project_name:null,disabled:{type:Boolean},showDisabled:{type:Boolean}},emits:["update:modelValue","change"],setup(l,{expose:d,emit:r}){const u=l,n=m(null),a=c(u,"modelValue");function p(e){r("change",e)}function s(e){n.value.initalData(e)}return d({initalData:s}),(e,o)=>(f(),h(t(V),{modelValue:t(a),"onUpdate:modelValue":o[0]||(o[0]=v=>b(a)?a.value=v:null),api:t(R),placeholder:l.placeholder,disabled:l.disabled,ref_key:"remoteSelectRef",ref:n,"response-label-prop":"title","response-val-prop":"id","request-prop":"title","show-disabled":l.showDisabled,isRoot:!0,onItemChange:p},null,8,["modelValue","api","placeholder","disabled","show-disabled"]))}}),B=i({__name:"Card",props:{placeholder:null,modelValue:null,brand_name:null,showDisabled:{type:Boolean}},emits:["update:modelValue","change"],setup(l,{expose:d,emit:r}){const u=l,n=m(null),a=c(u,"modelValue");function p(s){n.value.initalData(s)}return d({initalData:p}),(s,e)=>(f(),h(t(V),{modelValue:t(a),"onUpdate:modelValue":e[0]||(e[0]=o=>b(a)?a.value=o:null),api:t(w),placeholder:l.placeholder,ref_key:"remoteSelectRef",ref:n,"response-label-prop":"title","response-val-prop":"id","show-disabled":l.showDisabled,"request-prop":"title",isRoot:!0,onChange:e[1]||(e[1]=o=>r("change",o)),onInital:e[2]||(e[2]=o=>a.value=o)},null,8,["modelValue","api","placeholder","show-disabled"]))}});export{y as _,B as a};
