import{d as n,c as i,e as t,f as c,s as p,g as f,k as _,h as m,j as u,B as b,n as o,a_ as v}from"./index-a0da86f0.js";import{_ as y}from"./_plugin-vue_export-helper-c27b6911.js";const g={class:"field-label"},k={key:0,class:"required"},B=n({__name:"Datetime",props:{df:{},record:{},canEdit:{type:Boolean},ctx:{}},setup(l){const d=l,s=i(()=>d.df.label_layout||"vertical");return(e,a)=>(o(),t("div",{class:b(["field-wrapper",`layout-${s.value}`])},[c("label",g,[p(f(e.ctx.t(e.df.label||e.df.fieldname))+" ",1),e.df.reqd?(o(),t("span",k,"*")):_("",!0)]),m(u(v),{value:e.record[e.df.fieldname],"onUpdate:value":a[0]||(a[0]=r=>e.record[e.df.fieldname]=r),type:"datetime",placeholder:e.ctx.t(e.df.fieldname),disabled:!e.canEdit},null,8,["value","placeholder","disabled"])],2))}});const D=y(B,[["__scopeId","data-v-eeece6ed"]]),V=Object.freeze(Object.defineProperty({__proto__:null,default:D},Symbol.toStringTag,{value:"Module"}));export{V as _};
