import{b as i,p as m,a$ as c,x as b,o as f,h,f as n,B as V}from"./index.4d3e3847.js";import{b as R,c as C}from"./remoteSelect.9c029262.js";import{R as v}from"./basic-form.vue_vue_type_style_index_0_scoped_d6f0d2ed_lang.3165143d.js";const k=i({__name:"Company",props:{placeholder:null,modelValue:null,project_name:null,disabled:{type:Boolean}},emits:["update:modelValue","change"],setup(a,{emit:d}){const s=a,r=m(null),o=c(s,"modelValue");function t(l){d("change",l)}return b(()=>s.project_name,l=>{!l&&!r.value||r.value.initalData({project_name:l})},{deep:!0}),(l,p)=>(f(),h(n(v),{modelValue:n(o),"onUpdate:modelValue":p[0]||(p[0]=e=>V(o)?o.value=e:null),api:n(R),placeholder:a.placeholder,disabled:a.disabled,ref_key:"remoteSelectRef",ref:r,"response-label-prop":"title","response-val-prop":"id","request-prop":"title",isRoot:!0,onItemChange:t},null,8,["modelValue","api","placeholder","disabled"]))}}),x=i({__name:"Card",props:{placeholder:null,modelValue:null,brand_name:null},emits:["update:modelValue","change"],setup(a,{expose:d,emit:s}){const r=a,o=m(null),t=c(r,"modelValue");function l(p){o.value.initalData(p)}return d({initalData:l}),(p,e)=>(f(),h(n(v),{modelValue:n(t),"onUpdate:modelValue":e[0]||(e[0]=u=>V(t)?t.value=u:null),api:n(C),placeholder:a.placeholder,ref_key:"remoteSelectRef",ref:o,"response-label-prop":"title","response-val-prop":"id","request-prop":"title",isRoot:!0,onChange:e[1]||(e[1]=u=>s("change",u)),onInital:e[2]||(e[2]=u=>t.value=u)},null,8,["modelValue","api","placeholder"]))}});export{k as _,x as a};
