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