import{d as u,A as a,J as b,_ as l,P as o,O as m,B as d,C as r,j as s,b6 as x,H as v,c as C,g as n,an as B}from"./index-DOFLUERq.js";import{_ as D}from"./_plugin-vue_export-helper-DlAUqK2U.js";const y={class:"field-label"},g={key:0,class:"required"},h=u({__name:"Button",props:{df:{},record:{},canEdit:{type:Boolean},ctx:{}},setup(e){const c=e,f=C(()=>c.df.label_layout||"vertical"),i={Button:{colorDefault:"#f3f4f6",colorHoverDefault:"#e5e7eb",colorPressedDefault:"#d1d5db",textColorDefault:"#374151",textColorHoverDefault:"#374151",textColorPressedDefault:"#374151",borderDefault:"1px solid #d1d5db",borderHoverDefault:"1px solid #9ca3af",borderPressedDefault:"1px solid #9ca3af"}};return(P,t)=>(n(),a("div",{class:v(["field-wrapper",`layout-${f.value}`])},[b("label",y,[l(o(e.ctx.t(e.df.label||e.df.fieldname))+" ",1),e.df.reqd?(n(),a("span",g,"*")):m("",!0)]),d(s(x),{"theme-overrides":i},{default:r(()=>[d(s(B),{type:"default",disabled:!e.canEdit,onClick:t[0]||(t[0]=N=>e.ctx.handleButtonClick?e.ctx.handleButtonClick(e.df):null)},{default:r(()=>[l(o(e.ctx.t(e.df.label||e.df.fieldname)),1)]),_:1},8,["disabled"])]),_:1})],2))}}),k=D(h,[["__scopeId","data-v-e111381f"]]),O=Object.freeze(Object.defineProperty({__proto__:null,default:k},Symbol.toStringTag,{value:"Module"}));export{O as _};
