# bit-form/3.3.1/assets/bf-856-312.js

Bit Form – Contact Form, Payment Forms, Multi Step Forms, Calculator &amp; Custom Form Builder, version 3.3.1. 2 lines.

- Page: https://pluginprobe.com/plugins/bit-form/3.3.1/code/assets/bf-856-312.js
- Raw: https://pluginprobe.com/plugins/bit-form/3.3.1/raw/assets/bf-856-312.js
- Modified: 2026-09-16T12:36:52+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/bit-form/3.3.1/code/assets/bf-856-312.js#L10-L20`.

```javascript
import{i as A,g as T,u as h,ay as $,at as N,r as y,a as C,H as L,j as s,_ as m,M as w,em as S,f as u,aY as c,bI as b,eo as z,dg as E,ep as K,b1 as V}from"./main-762.js";import{t as q,F}from"./bf-842-324.js";import{F as i}from"./bf-850-326.js";import{A as Y}from"./bf-968-323.js";import{I as k}from"./bf-466-325.js";import{S as G}from"./bf-45-176.js";import"./bf-747-208.js";import"./bf-537-206.js";import"./bf-685-46.js";import"./bf-610-181.js";import"./bf-734-179.js";import"./bf-111-180.js";import"./bf-848-68.js";import"./bf-81-43.js";import"./bf-871-60.js";/* empty css         */import"./bf-435-62.js";import"./bf-653-63.js";import"./bf-775-182.js";function pe(){const[d,a]=A(V),{fieldKey:t}=T(),I=h($),j=h(N),[v,p]=y.useState(!1),[H,R]=y.useState(""),{css:l}=C(),e=L(d[t]),f=(e==null?void 0:e.redoBtn)||"",x=e.adminLbl||"",_=({target:{checked:o}})=>{o?(e.redoBtn=m("Redo"),e.redoBtnHide=!1,S(I,"redoBtn")):(delete e.redoBtn,delete e.redoPreIcn,delete e.redoSufIcn,e.redoBtnHide=!0);const n=o?"on":"off",r=u(d,P=>{P[t]=e});a(r),c(t),b({event:`Redo Button ${n}:  ${f||x||t}`,type:`redo_btn_${n}`,state:{fields:r,fldKey:t}})},M=({target:{value:o}})=>{o===""?(delete e.redoBtn,c(t)):e.redoBtn=o;const n=u(d,r=>{r[t]=e});a(n),c(t),b({event:`Redo btn text updated: ${x||e.redoBtn||t}`,type:"change_redo_btn_txt",state:{fields:n,fldKey:t}})},g=o=>{z(j,t,E[o])||S(I,o),K(o,t),R(o),p(!0)},B=o=>{if(e[o]){delete e[o];const n=u(d,r=>{r[t]=e});a(n),c(t)}};return s.jsxs("div",{children:[s.jsxs(G,{id:"redo-button-stng",title:m("Redo Button"),className:l(i.fieldSection,i.hover_tip),switching:!0,tip:q.redoBtn,tipProps:{width:250,icnSize:17},toggleAction:_,toggleChecked:!(e!=null&&e.redoBtnHide),open:!(e!=null&&e.redoBtnHide),disable:e==null?void 0:e.redoBtnHide,children:[s.jsx("div",{className:l(i.placeholder),children:s.jsx(Y,{id:"redo-btn-stng",ariaLabel:"Redo Button for this Field",placeholder:"Type redo button txt here...",value:f,changeAction:M})}),s.jsxs("div",{className:l(i.iconLayoutHorizontal),children:[s.jsx(F,{label:"Leading Icon",iconSrc:e==null?void 0:e.redoPreIcn,styleRoute:"redo-btn-pre-i",setIcon:()=>g("redoPreIcn"),removeIcon:()=>B("redoPreIcn"),proProperty:"leadingIcon",position:"prefix"}),s.jsx("span",{className:l(i.iconSeparator),children:"|"}),s.jsx(F,{label:"Trailing Icon",iconSrc:e==null?void 0:e.redoSufIcn,styleRoute:"redo-btn-suf-i",setIcon:()=>g("redoSufIcn"),removeIcon:()=>B("redoSufIcn"),proProperty:"trailingIcon",position:"suffix"})]})]}),s.jsxs(w,{md:!0,autoHeight:!0,show:v,setModal:p,className:"o-v",title:m("Icons"),children:[s.jsx("div",{className:"pos-rel"}),s.jsx(k,{iconType:H,setModal:p})]})]})}export{pe as default};

```
