import{l as m,bG as b,U as D,az as h,V as v,b2 as n,a3 as s,bS as S,cz as Y,dH as g,dI as k,y as w,bK as H}from"./index.69621fe4.js";const U={__name:"DateTimePicker",props:{modelValue:{type:[String,Number,Date],default:null},label:{type:String,default:""}},emits:["update:modelValue"],setup(r,{emit:i}){const a=r,p=m(a.modelValue?a.modelValue:""),c=m(a.modelValue?a.modelValue:""),{t}=b(),V=D(()=>a.label||t("lista_transmissao.labels.escolha_data_hora"));function d(o){i("update:modelValue",o)}const u=m({days:t("dias").split("_"),daysShort:t("dias_curto").split("_"),months:t("meses").split("_"),monthsShort:t("meses_curto").split("_"),firstDayOfWeek:1,format24h:!0,pluralDay:t("plural_dia")});function f(o){const e=new Date,l=e.getDate(),_=e.getMonth()+1,y=`${e.getFullYear()}/${_.toString().padStart(2,"0")}/${l.toString().padStart(2,"0")}`;return o>=y}return(o,e)=>(h(),v(H,{label:w(V),filled:"",modelValue:a.modelValue,"onUpdate:modelValue":e[2]||(e[2]=l=>d(l)),readonly:""},{prepend:n(()=>[s(S,{name:"mdi-calendar-clock",class:"cursor-pointer"},{default:n(()=>[s(Y,{cover:"","transition-show":"scale","transition-hide":"scale",class:"popUpTime row q-py-sm q-pr-sm q-gutter-sm no-shadow"},{default:n(()=>[s(g,{locale:u.value,"v-model":p.value,modelValue:a.modelValue,"onUpdate:modelValue":e[0]||(e[0]=l=>d(l)),mask:"DD/MM/YYYY, HH:mm",options:f},null,8,["locale","v-model","modelValue"]),s(k,{locale:u.value,"v-model":c.value,modelValue:a.modelValue,"onUpdate:modelValue":e[1]||(e[1]=l=>d(l)),mask:"DD/MM/YYYY, HH:mm",format24h:""},null,8,["locale","v-model","modelValue"])]),_:1})]),_:1})]),_:1},8,["label","modelValue"]))}};export{U as _};
