import{Q as h}from"./vendor-datepicker--1DmXemW.js";import{r as q,o as x,l as F}from"./fieldsStore-CNpVuoPu.js";import{u as S}from"./translationsStore-D6vLzgNA.js";import{_ as y}from"./RequiredHint.vue_vue_type_style_index_0_lang-DGTCbwUk.js";import{u as B}from"./settingsStore-8bwiLMEn.js";import{d as D,e as p,f as m,i as l,x as i,k as N,t as f,z as R,j as T}from"./vendor-vue-runtime-core-DwK6Ry68.js";import{t as C,r as H,u as e}from"./vendor-vue-reactivity-CheHbvBM.js";import{t as O,a as z}from"./vendor-vue-shared-DrzsEcag.js";import"./vendor-vue-runtime-dom-B2rky8vu.js";import"./vendor-date-fns-DoIqsk4U.js";import"./vendor-pinia-BSPefQhS.js";import"./appStore-CFAkQG2b.js";import"./convert-case-to-camel-case.utils-CK5dBN7n.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 L={class:"ccb-order-field__title"},Q={class:"ccb-order-field__label"},$={key:0,class:"ccb-order-required-mark"},j={class:"ccb-field__input-wrapper"},oe=D({__name:"OrderDate",props:{field:{}},setup(_){const v=_,{field:t}=C(v),{checkFieldRequired:b}=q(),c=S(),g=B(),d=p(()=>b(t.value)),{displayValueHelper:n}=x(),a=p(()=>g.getLanguage),k=()=>n(o.value,a.value),o=H(),V=u=>{const{updateValue:r}=F(),s=n(u,a.value);r(t.value.id,s)};return(u,r)=>(l(),m("div",{class:z(["ccb-order-field ccb-order-date",{[`ccb-col-${e(t).fieldWidth}`]:!0,"ccb-order-field--required":d.value}])},[i("div",L,[d.value?(l(),N(y,{key:0,text:e(c).getTranslations.requiredField},null,8,["text"])):f("",!0),i("label",Q,[R(O(e(t).label)+" ",1),e(t).required?(l(),m("span",$,"*")):f("",!0)])]),i("div",j,[T(e(h),{placeholder:e(t).placeholder?e(t).placeholder:e(c).getTranslations.selectDate,"text-input":"","enable-time-picker":!1,"auto-apply":!0,range:e(t).attributes.range,modelValue:o.value,"onUpdate:modelValue":[r[0]||(r[0]=s=>o.value=s),V],locale:a.value,format:k},null,8,["placeholder","range","modelValue","locale"])])],2))}});export{oe as default};
//# sourceMappingURL=OrderDate-8vfz_Q_0.js.map
