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