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