import{b as p}from"./settings.consts-C6F6lZ8o.js";import{T as _}from"./Toggle-CJkQhFp2.js";import{_ as h}from"./Dropdown.vue_vue_type_script_setup_true_lang-DIVo72j0.js";import{_ as v}from"./MultiSelect.vue_vue_type_script_setup_true_lang-yDnKxHFg.js";import"./vendor-vueform-slider-CCH9_7pb.js";import{u as C}from"./OrderForm--Em8u8hn.js";import{O}from"./OrderFormOptionsEditor-DqGOht0q.js";import{T as k}from"./Tab-CaYIC5iw.js";import{O as D}from"./field-settings.constants-BwuDQrPV.js";import{d as F,f as E,i as d,x as t,j as r,k as f}from"./vendor-vue-runtime-core-DwK6Ry68.js";import{u as e}from"./vendor-vue-reactivity-CheHbvBM.js";import"./admin-BM775jCq.js";import"./vendor-vue-runtime-dom-B2rky8vu.js";import"./vendor-vue-shared-DrzsEcag.js";import"./convert-case-to-camel-case.utils-CK5dBN7n.js";import"./vendor-pinia-BSPefQhS.js";import"./vendor-axios-xsH4HHeE.js";import"./vendor-vue3-toastify-DBGjcIyK.js";/* empty css               */import"./vendor-vue3-html2pdf-KR020wX8.js";import"./vendor-html2pdf.js-B-tok4Ns.js";import"./vendor-jspdf-UFhKzYHA.js";import"./vendor-bootstrap-CCU-90um.js";import"./vendor-html2canvas-BfYXEYrK.js";import"./SidebarCollapseToolbar-DMeQTXRR.js";import"./EmbedPopup-BUj0yGgY.js";import"./useAppearanceStore-IzenP-G4.js";import"./vendor-vue-flow-CRbOssRZ.js";import"./Badge.vue_vue_type_script_setup_true_lang-D3oqtQF2.js";import"./ThemeToggle-a3yohy6x.js";/* empty css                */const B={class:"ccb-order-form-field-editor"},T={class:"ccb-field-sidebar__body"},q={class:"ccb-field-sidebar__item"},w={class:"ccb-field-sidebar__item"},x={class:"ccb-field-sidebar__item"},y={class:"ccb-field-sidebar__item"},A={class:"ccb-field-sidebar__item"},I={class:"ccb-field-sidebar__item"},L={class:"ccb-field-sidebar__item"},be=F({__name:"OrderFormDropdown",setup(M){const{stringAttribute:a,booleanAttribute:s,updateAttribute:m,fieldWidth:b,updateFieldWidth:c,optionItems:n,defaultValue:V,defaultValueList:g,updateDefaultValue:u}=C();return(R,l)=>(d(),E("div",B,[t("div",T,[t("div",q,[r(e(_),{label:"Make this field required",modelValue:e(s)("required"),onChange:l[0]||(l[0]=(o,i)=>e(m)("required",i?"1":"0")),size:"m",weight:"medium"},null,8,["modelValue"])]),t("div",w,[r(e(p),{label:"Label",placeholder:"Enter label",modelValue:e(a)("label"),onChange:l[1]||(l[1]=(o,i)=>e(m)("label",String(i||"")))},null,8,["modelValue"])]),t("div",x,[r(O)]),t("div",y,[e(s)("multiselect")?(d(),f(e(v),{key:0,label:"Default Value",items:e(n),modelValue:e(g),onChange:l[2]||(l[2]=(o,i)=>e(u)(i))},null,8,["items","modelValue"])):(d(),f(e(h),{key:1,label:"Default Value",items:e(n),modelValue:e(V),onChange:l[3]||(l[3]=(o,i)=>e(u)(i))},null,8,["items","modelValue"]))]),t("div",A,[r(e(_),{label:"Multiselect",modelValue:e(s)("multiselect"),onChange:l[4]||(l[4]=(o,i)=>e(m)("multiselect",i?"1":"0")),size:"m",weight:"medium"},null,8,["modelValue"])]),t("div",I,[r(e(p),{label:"Placeholder",placeholder:"Enter placeholder",modelValue:e(a)("placeholder"),onChange:l[5]||(l[5]=(o,i)=>e(m)("placeholder",String(i||"")))},null,8,["modelValue"])]),t("div",L,[r(k,{items:e(D),modelValue:e(b),onChange:l[6]||(l[6]=(o,i)=>e(c)(i))},null,8,["items","modelValue"])])])]))}});export{be as default};
//# sourceMappingURL=OrderFormDropdown-BqygnrN6.js.map
