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