import{a as m,g as y,i as o,aH as g,aX as F,H as b,j as d,_ as x,f as n,bG as S}from"./main-634.js";import{F as w}from"./bf-767-388.js";import{S as W}from"./bf-497-246.js";import"./bf-25-81.js";function v(){const{css:c}=m(),{fieldKey:t}=y(),[i,r]=o(g),[_,u]=o(F);if(!t)return null;const e=b(i[t]),{fulW:f}=e,p=s=>{u(l=>n(l,h=>{h.fields[t].classes[`.${t}-btn`].width=s.target.checked?"100%":"auto"})),e.fulW=s.target.checked;const a=n(i,l=>{l[t]=e});r(a),S({event:`Button Full width ${s.target.checked?"on":"off"}`,type:"set_btn_full",state:{fields:a,fldKey:t}})};return d.jsx("div",{className:c(w.fieldSection,{pr:"36px"}),children:d.jsx(W,{id:"ful-wid-btn",tip:"By disabling this option, the button full width will be remove",title:x("Full Width"),action:p,isChecked:f||""})})}export{v as default};
