| 1 |
import{g as _,i as g,a as R,aj as S,at as x,j as a,_ as $,I as h,f as d,bI as j,b1 as D}from"./main-762.js";import{F as r}from"./bf-850-326.js";import{t as F}from"./bf-842-324.js";import{S as B}from"./bf-111-180.js";import"./bf-747-208.js";import"./bf-537-206.js";import"./bf-685-46.js";function O({cls:f}){const{fieldKey:e}=_(),[o,c]=g(D),p=o[e].btnDir||!1,{css:m}=R(),u=S(x),v=({target:y})=>{if(!h)return;const{checked:i}=y;let l="row";const n=d(o,t=>{const s=t[e];i?(s.btnDir="row-reverse",l="row-reverse"):delete s.btnDir});u(t=>d(t,s=>{s.fields[e].classes[`.${e}-ctrl`]["flex-direction"]=l}));const b=i?"on":"off";c(n),j({event:`Button reverse ${b}`,type:"button_reverse_on_off",state:{fields:n,fldKey:e}})};return a.jsx("div",{className:`${m(r.fieldSection,r.hover_tip,r.singleOption)} ${f}`,children:a.jsx(B,{id:"fld-hid-stng",tip:F.btnReverse,title:$("Button Reverse"),action:v,isChecked:p,isPro:!0,proProperty:"reverse"})})}export{O as default}; |