import{_ as u,d as f,k as c,a as T,T as p,m as D,e as b,o as h}from"./app-D7zH3Nl5.js";import{D as C}from"./dayjs-Bh5BavPT.js";const g=f({props:{dateTime:{default:void 0},disabled:{default:!1},disableFutureDate:{default:!0}},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.disableFutureDate?e.disabledDate:()=>!1,"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 Y=u(g,[["render",k]]);export{Y as D};
