const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./RangeTime-C2bwKsKq.css","./main-CWmBI_q2.css"])))=>i.map(i=>d[i]);
import{a as C,b as s,C as V,e as l,_ as n,m as c,g as o,p as d,f as u,q as m,u as a,L as h,D as F,r as R,I as T}from"./convert-case-to-camel-case.utils-DDUpNI96.js";/* empty css             */import{w as g,t as x}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"./_commonjsHelpers-Cpj98o6Y.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";const E={class:"ccb-order-field__title"},O={class:"ccb-order-field__label"},B=["format"],w=C({__name:"OrderTime",props:{field:{}},setup(_){const p=s(()=>{var r,t;return((t=(r=e.value)==null?void 0:r.attributes)==null?void 0:t.format)||!1}),f=_,{field:e}=V(f),{checkFieldRequired:v}=g(),b=y(),q=s(()=>{var r,t;return(t=(r=e.value)==null?void 0:r.attributes)!=null&&t.range?l(()=>n(()=>import("./RangeTime-9wKWCQP1.js"),__vite__mapDeps([0,1]),import.meta.url)):l(()=>n(()=>import("./SingleTime-VdDrzr1H.js"),__vite__mapDeps([1]),import.meta.url))}),k=r=>{e.value.value=r;const{updateValue:t}=x();t(e.value.id,r)},i=s(()=>e.value.required?v(e.value):!1);return(r,t)=>(o(),c("div",{class:T(["ccb-order-field ccb-order-time",{[`ccb-col-${a(e).fieldWidth}`]:!0,"ccb-order-field--required":i.value}])},[d("div",E,[i.value?(o(),u(D,{key:0,text:a(b).getTranslations.requiredField},null,8,["text"])):m("",!0),d("label",O,[h(F(a(e).label)+" ",1),a(e).required?(o(),c("span",{key:0,class:"ccb-order-required-mark",format:p.value},"*",8,B)):m("",!0)])]),(o(),u(R(q.value),{field:a(e),"onUpdate:modelValue":k},null,8,["field"]))],2))}});export{w as default};
//# sourceMappingURL=index-DrvwY5TU.js.map
