import{Q as h}from"./vue-datepicker-DJOolBJW.js";/* empty css             */import{a as q,w as x,p as F,t as S}from"./widget-BUAABBRb.js";import{u as y}from"./translationsStore-DBJu9sBR.js";import{_ as D}from"./RequiredHint.vue_vue_type_style_index_0_lang-R4Bqx90z.js";import{a as B,C,b as p,k as N,m,g as l,p as c,f as R,q as f,u as e,L as T,D as H,n as L,I as O}from"./convert-case-to-camel-case.utils-DDUpNI96.js";import"./_commonjsHelpers-Cpj98o6Y.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";const w={class:"ccb-order-field__title"},Q={class:"ccb-order-field__label"},$={key:0,class:"ccb-order-required-mark"},z={class:"ccb-field__input-wrapper"},J=B({__name:"OrderDate",props:{field:{}},setup(_){const b=_,{field:a}=C(b),{checkFieldRequired:v}=x(),n=y(),g=q(),d=p(()=>v(a.value)),{displayValueHelper:i}=F(),r=p(()=>g.getLanguage),k=()=>i(s.value,r.value),s=N(),V=u=>{const{updateValue:t}=S(),o=i(u,r.value);t(a.value.id,o)};return(u,t)=>(l(),m("div",{class:O(["ccb-order-field ccb-order-date",{[`ccb-col-${e(a).fieldWidth}`]:!0,"ccb-order-field--required":d.value}])},[c("div",w,[d.value?(l(),R(D,{key:0,text:e(n).getTranslations.requiredField},null,8,["text"])):f("",!0),c("label",Q,[T(H(e(a).label)+" ",1),e(a).required?(l(),m("span",$,"*")):f("",!0)])]),c("div",z,[L(e(h),{placeholder:e(a).placeholder?e(a).placeholder:e(n).getTranslations.selectDate,"text-input":"","enable-time-picker":!1,"auto-apply":!0,range:e(a).attributes.range,modelValue:s.value,"onUpdate:modelValue":[t[0]||(t[0]=o=>s.value=o),V],locale:r.value,format:k},null,8,["placeholder","range","modelValue","locale"])])],2))}});export{J as default};
//# sourceMappingURL=OrderDate-CNl7Cqvc.js.map
