const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./vendor-datepicker-CWmBI_q2.css","./RangeTime-C2bwKsKq.css"])))=>i.map(i=>d[i]);
import{_ as l}from"./convert-case-to-camel-case.utils-CK5dBN7n.js";import"./vendor-datepicker--1DmXemW.js";import{r as V,l as C}from"./fieldsStore-CNpVuoPu.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 F,e as i,$ as m,f as n,i as a,x as d,k as c,t as u,z as R,v as T}from"./vendor-vue-runtime-core-DwK6Ry68.js";import{t as y,u as o}from"./vendor-vue-reactivity-CheHbvBM.js";import{t as E,a as O}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"./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 g={class:"ccb-order-field__title"},B={class:"ccb-order-field__label"},D=["format"],X=F({__name:"OrderTime",props:{field:{}},setup(p){const _=i(()=>{var r,t;return((t=(r=e.value)==null?void 0:r.attributes)==null?void 0:t.format)||!1}),f=p,{field:e}=y(f),{checkFieldRequired:v}=V(),b=h(),k=i(()=>{var r,t;return(t=(r=e.value)==null?void 0:r.attributes)!=null&&t.range?m(()=>l(()=>import("./RangeTime-CJduuQOf.js"),__vite__mapDeps([0,1]),import.meta.url)):m(()=>l(()=>import("./SingleTime-BCcRnHP7.js"),__vite__mapDeps([0]),import.meta.url))}),q=r=>{e.value.value=r;const{updateValue:t}=C();t(e.value.id,r)},s=i(()=>e.value.required?v(e.value):!1);return(r,t)=>(a(),n("div",{class:O(["ccb-order-field ccb-order-time",{[`ccb-col-${o(e).fieldWidth}`]:!0,"ccb-order-field--required":s.value}])},[d("div",g,[s.value?(a(),c(x,{key:0,text:o(b).getTranslations.requiredField},null,8,["text"])):u("",!0),d("label",B,[R(E(o(e).label)+" ",1),o(e).required?(a(),n("span",{key:0,class:"ccb-order-required-mark",format:_.value},"*",8,D)):u("",!0)])]),(a(),c(T(k.value),{field:o(e),"onUpdate:modelValue":q},null,8,["field"]))],2))}});export{X as default};
//# sourceMappingURL=index-XSPua895.js.map
