const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./MultiSelectDropDown-BXfPE_zk.css"])))=>i.map(i=>d[i]);
import{_ as l}from"./convert-case-to-camel-case.utils-CK5dBN7n.js";import{r as g}from"./fieldsStore-CQRN0FvQ.js";import{u as h}from"./translationsStore-D6vLzgNA.js";import{_ as x}from"./RequiredHint.vue_vue_type_style_index_0_lang-DGTCbwUk.js";import{d as y,e as n,$ as c,f as d,i as o,x as m,k as u,t as p,z as C,v as R}from"./vendor-vue-runtime-core-DwK6Ry68.js";import{t as T,r as V,u as t}from"./vendor-vue-reactivity-CheHbvBM.js";import{t as B,a as D}from"./vendor-vue-shared-DrzsEcag.js";import"./vendor-pinia-BSPefQhS.js";import"./settingsStore-8bwiLMEn.js";import"./appStore-CFAkQG2b.js";import"./vendor-moment-Cv92BTSA.js";import"./vendor-bootstrap-CCU-90um.js";import"./vendor-jspdf-UFhKzYHA.js";import"./vendor-php-date-formatter-DSpPwBF8.js";import"./callbackStore-BhxBUA6V.js";const E={class:"ccb-order-field__title"},F={class:"ccb-order-field__label"},O={key:0,class:"ccb-order-required-mark"},M=y({__name:"OrderDropdown",props:{field:{}},setup(_){const f=_,{field:e}=T(f),{checkFieldRequired:v}=g(),b=h(),i=V(!1),k=r=>{i.value=r},q=n(()=>{var r,s;return(s=(r=e.value)==null?void 0:r.attributes)!=null&&s.multiselect?c(()=>l(()=>import("./MultiSelectDropDown-DQiZ7_Mt.js"),__vite__mapDeps([0]),import.meta.url)):c(()=>l(()=>import("./Default-DjcRAn2T.js"),[],import.meta.url))}),a=n(()=>e.value.required?v(e.value):!1);return(r,s)=>(o(),d("div",{class:D(["ccb-order-field ccb-order-dropdown",{active:i.value,[`ccb-col-${t(e).fieldWidth}`]:!0,"ccb-order-field--required":a.value}])},[m("div",E,[a.value?(o(),u(x,{key:0,text:t(b).getTranslations.requiredField},null,8,["text"])):p("",!0),m("label",F,[C(B(t(e).label)+" ",1),t(e).required?(o(),d("span",O,"*")):p("",!0)])]),(o(),u(R(q.value),{field:t(e),onToggle:k},null,40,["field"]))],2))}});export{M as default};
//# sourceMappingURL=index-mG14t9eg.js.map
