import{_ as f,x as u,r as c,a as T,E as p,G as D,o as h,f as b,ap as C}from"./app-DGDivIsO.js";const g=u({props:{dateTime:{default:void 0},disabled:{default:!1}},emits:["dateTimeChanged"],setup(e,{emit:t}){const d=c(void 0),{disabledDate:s,formatDateTime:i,dayjs:m}=T();p(()=>{n(e.dateTime)});const n=a=>{e.dateTime?d.value=m(a):d.value=void 0},o=a=>a?i(a.format()):void 0,l=a=>{const r=a?a.utc().format("YYYY-MM-DDTHH:mm:ssZ"):void 0;t("dateTimeChanged",r)};return D(()=>e.dateTime,(a,r)=>{n(a)}),{dateTimeValue:d,disabledDate:s,formatOrderDate:o,dateTimeChanged:l}}});function k(e,t,d,s,i,m){const n=C;return h(),b(n,{value:e.dateTimeValue,"onUpdate:value":t[0]||(t[0]=o=>e.dateTimeValue=o),format:e.formatOrderDate,"disabled-date":e.disabledDate,"show-time":"",placeholder:e.$t("common.date_time"),style:{width:"100%"},onChange:e.dateTimeChanged,disabled:e.disabled},null,8,["value","format","disabled-date","placeholder","onChange","disabled"])}const _=f(g,[["render",k]]);export{_ as D};
